WordPress SEO Plugin – Rank Math - Version 1.0.66

Version Description

[Jun 16, 2021] = * Improved: [HUGE!] Made several significant code improvements that have made the plugin even FASTER. Now, Rank Math is one of the most FASTEST SEO PLUGINS. * Added: New Database Tool to remove the old Schema code from the database. The plugin is not using that data anymore after introducing the revamped Schema Generator in version 1.0.48 * Added: Warning notice on the plugins page when the filter to remove everything related to Rank Math from the database is used * Added: Filter to hide Email Reporting options * Improved: Schema Module performance by optimizing and removing redundant code * Improved: Hide Analytics options if Google Services are not connected * Improved: Redirection flow after connecting Google Services from various setting pages * Improved: Description length indicator behavior to monitor 160 character limit * Improved: File structure by moving assets in their respective module folders * Fixed: Disabling Images in Sitemaps option was not working * Fixed: Incorrect display of single post URL in the Single Post Analytics reports if WordPress was installed in the subfolder. This was visible only to the admins and did not impact anything on the frontend * Fixed: Added missing condition to check if WooCommerce function exists in breadcrumbs

Full changelog can be found here - Rank Math SEO changelog

Download this release

Release Info

Developer rankmath
Plugin Icon 128x128 WordPress SEO Plugin – Rank Math
Version 1.0.66
Comparing to
See all releases

Code changes from version 1.0.65 to 1.0.66

assets/admin/js/acf-analysis.js DELETED
@@ -1 +0,0 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=79)}({1:function(e,t){e.exports=lodash},2:function(e,t){e.exports=jQuery},6:function(e,t){e.exports=wp.hooks},79:function(e,t,n){"use strict";n.r(t);var r=n(2),a=n.n(r),i=n(1),c=function(e){var t=function(e){var t=Object(i.find)(rankMath.acf.headlines,(function(t,n){return e.key===n}));return t&&(t=parseInt(t,10)),(t<1||t>6)&&(t=!1),t}(e);return e.content=t?"<h"+t+">"+e.content+"</h"+t+">":"<p>"+e.content+"</p>",e},u=function(e){var t=e.$el.find("textarea")[0],n=t.id,r=t.value;return function(e){return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length&&null!==tinyMCE.get(e)&&!tinyMCE.get(e).isHidden()}(n)&&(r=tinyMCE.get(n)&&tinyMCE.get(n).getContent()||""),r};function o(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,r.key,r)}}var l=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache={}}var t,n,r;return t=e,(n=[{key:"refresh",value:function(e){var t=this,n=this.getUncached(e);0!==n.length&&window.wp.ajax.post("query-attachments",{query:{post__in:n}}).done((function(e){Object(i.each)(e,(function(e){t.setCache(e.id,e),window.RankMathACFAnalysis.refresh()}))}))}},{key:"get",value:function(e){var t=this.getCache(e);if(!t)return!1;var n=window.wp.media.attachment(e);return n.has("alt")&&(t.alt=n.get("alt")),n.has("title")&&(t.title=n.get("title")),t}},{key:"getAttachmentContent",value:function(e){var t="";if(l.get(e,"attachment")){var n=l.get(e,"attachment");t+='<img src="'+n.url+'" alt="'+n.alt+'" title="'+n.title+'">'}return t}},{key:"setCache",value:function(e,t){this.cache[e]=t}},{key:"getCache",value:function(e){return e in this.cache&&this.cache[e]}},{key:"getUncached",value:function(e){var t=this;return(e=Object(i.uniq)(e)).filter((function(e){return!1===t.get(e)}))}}])&&o(t.prototype,n),r&&o(t,r),e}());function f(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,r.key,r)}}var p={text:function(e){return e=Object(i.map)(e,(function(e){return"text"!==e.type?e:(e.content=e.$el.find("input[type=text][id^=acf]").val(),e=c(e))}))},textarea:function(e){return e=Object(i.map)(e,(function(e){return"textarea"!==e.type||(e.content="<p>"+e.$el.find("textarea[id^=acf]").val()+"</p>"),e}))},email:function(e){return e=Object(i.map)(e,(function(e){return"email"!==e.type||(e.content=e.$el.find("input[type=email][id^=acf]").val()),e}))},url:function(e){return e=Object(i.map)(e,(function(e){if("url"!==e.type)return e;var t=e.$el.find("input[type=url][id^=acf]").val();return e.content=t?'<a href="'+t+'">'+t+"</a>":"",e}))},link:function(e){return Object(i.map)(e,(function(e){if("link"!==e.type)return e;var t=e.$el.find("input[type=hidden].input-title").val(),n=e.$el.find("input[type=hidden].input-url").val(),r=e.$el.find("input[type=hidden].input-target").val();return e.content='<a href="'+n+'" target="'+r+'">'+t+"</a>",e}))},wysiwyg:function(e){return e=Object(i.map)(e,(function(e){return"wysiwyg"!==e.type||(e.content=u(e)),e}))},image:function(e){var t=[];return e=Object(i.map)(e,(function(e){if("image"!==e.type)return e;e.content="";var n=e.$el.find("input[type=hidden]").val();return t.push(n),e.content+=l.getAttachmentContent(n),e})),l.refresh(t),e},gallery:function(e){var t=[];return e=Object(i.map)(e,(function(e){return"gallery"!==e.type||(e.content="",e.$el.find(".acf-gallery-attachment input[type=hidden]").each((function(){var n=a()(this).val();t.push(n),e.content+=l.getAttachmentContent(n)}))),e})),l.refresh(t),e},taxonomy:function(e){return e=Object(i.map)(e,(function(e){if("taxonomy"!==e.type)return e;var t=[];if(e.$el.find('.acf-taxonomy-field[data-type="multi_select"]').length>0){var n=acf.select2.version>=4?"select":"input";t=Object(i.map)(e.$el.find('.acf-taxonomy-field[data-type="multi_select"] '+n).select2("data"),"text")}else e.$el.find('.acf-taxonomy-field[data-type="checkbox"]').length>0?t=Object(i.map)(e.$el.find('.acf-taxonomy-field[data-type="checkbox"] input[type="checkbox"]:checked').next(),"textContent"):e.$el.find("input[type=checkbox]:checked").length>0?t=Object(i.map)(e.$el.find("input[type=checkbox]:checked").parent(),"textContent"):e.$el.find("select option:checked").length>0&&(t=Object(i.map)(e.$el.find("select option:checked"),"textContent"));return(t=Object(i.map)(t,(function(e){return e.trim()}))).length>0&&(e.content="<ul>\n<li>"+t.join("</li>\n<li>")+"</li>\n</ul>"),e}))}},h=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"getFieldContent",value:function(){var e=this.excludeNames(this.excludeTypes(this.getData())),t=Object(i.uniq)(Object(i.map)(e,"type"));return a.a.each(t,(function(t,n){n in p&&(e=p[n](e))})),e}},{key:"append",value:function(e){var t=this.getFieldContent();return Object(i.each)(t,(function(t){void 0!==t.content&&""!==t.content&&(e+="\n"+t.content)})),e}},{key:"getData",value:function(){var e=["flexible_content","repeater","group"],t=[],n=[],r=Object(i.map)(acf.get_fields(),(function(r){var i=a.a.extend(!0,{},acf.get_data(a()(r)));return i.$el=a()(r),i.post_meta_key=i.name,-1===e.indexOf(i.type)?t.push(i):n.push(i),i}));return 0===n.length||Object(i.each)(t,(function(e){Object(i.each)(n,(function(t){a.a.contains(t.$el[0],e.$el[0])&&("flexible_content"!==t.type&&"repeater"!==t.type||(t.children=t.children||[],t.children.push(e),e.parent=t,e.post_meta_key=t.name+"_"+(t.children.length-1)+"_"+e.name),"group"===t.type&&(t.children=[e],e.parent=t,e.post_meta_key=t.name+"_"+e.name))}))})),r}},{key:"excludeTypes",value:function(e){return Object(i.filter)(e,(function(e){return!Object(i.includes)(rankMath.acf.blacklistTypes,e.type)}))}},{key:"excludeNames",value:function(e){return Object(i.filter)(e,(function(e){return!Object(i.includes)(rankMath.acf.names,e.name)}))}}])&&f(t.prototype,n),r&&f(t,r),e}()),s=n(6);function d(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,r.key,r)}}var y=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analysisTimeout=0,this.maybeRefresh=this.maybeRefresh.bind(this),this.refresh=Object(i.debounce)(this.maybeRefresh,rankMath.acf.refreshRate),Object(s.addFilter)("rank_math_content","rank-math",h.append.bind(h),11),a()(".acf-field").on("change",(function(){t.refresh()}))}var t,n,r;return t=e,(n=[{key:"maybeRefresh",value:function(){rankMathEditor.refresh("content")}}])&&d(t.prototype,n),r&&d(t,r),e}();window.RankMathACFAnalysis=new y}});
 
assets/admin/js/blocks.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=77)}({0:function(e,t){e.exports=wp.i18n},1:function(e,t){e.exports=lodash},10:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var l=a.apply(null,r);l&&e.push(l)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var i in r)n.call(r,i)&&r[i]&&e.push(i);else e.push(r.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},12:function(e,t){e.exports=wp.blockEditor},21:function(e,t){e.exports=wp.blocks},3:function(e,t){e.exports=wp.components},4:function(e,t){e.exports=wp.data},5:function(e,t){e.exports=wp.element},6:function(e,t){e.exports=wp.hooks},77:function(e,t,n){"use strict";n.r(t);var r=n(1),a=n(21),o=wp.element.createElement("svg",{viewBox:"0 0 462.03 462.03",xmlns:"http://www.w3.org/2000/svg",width:"20"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z"}),wp.element.createElement("path",{d:"m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z"}))),l=n(0),i={attributes:{questions:[{visible:!0,titleWrapper:"div",title:"Question",content:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}]}},s=n(5),c=n(3),u=n(12),p=n(4);function m(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=Object(p.withSelect)((function(e,t){var n=(0,e("core/block-editor").getSettings)().imageSizes;return f(f({},t),{},{imageSizes:n})}))((function(e){var t=e.imageSizes,n=e.attributes,a=e.setAttributes,o=function(e){return Object(r.map)(e,(function(e){var t=e.name;return{value:e.slug,label:t}}))}(t);return wp.element.createElement(u.InspectorControls,{key:"inspector"},wp.element.createElement(c.PanelBody,{title:Object(l.__)("FAQ Options","rank-math")},wp.element.createElement(c.SelectControl,{label:Object(l.__)("List Style","rank-math"),value:n.listStyle,options:[{value:"",label:Object(l.__)("None","rank-math")},{value:"numbered",label:Object(l.__)("Numbered","rank-math")},{value:"unordered",label:Object(l.__)("Unordered","rank-math")}],onChange:function(e){a({listStyle:e})}}),wp.element.createElement(c.SelectControl,{label:Object(l.__)("Title Wrapper","rank-math"),value:n.titleWrapper,options:[{value:"h2",label:Object(l.__)("H2","rank-math")},{value:"h3",label:Object(l.__)("H3","rank-math")},{value:"h4",label:Object(l.__)("H4","rank-math")},{value:"h5",label:Object(l.__)("H5","rank-math")},{value:"h6",label:Object(l.__)("H6","rank-math")},{value:"p",label:Object(l.__)("P","rank-math")},{value:"div",label:Object(l.__)("DIV","rank-math")}],onChange:function(e){a({titleWrapper:e})}}),wp.element.createElement(c.SelectControl,{label:Object(l.__)("Image Size","rank-math"),value:n.sizeSlug,options:o,onChange:function(e){a({sizeSlug:e})}})),wp.element.createElement(c.PanelBody,{title:Object(l.__)("Styling Options","rank-math")},wp.element.createElement(c.TextControl,{label:Object(l.__)("Title Wrapper CSS Class(es)","rank-math"),value:n.titleCssClasses,onChange:function(e){a({titleCssClasses:e})}}),wp.element.createElement(c.TextControl,{label:Object(l.__)("Content Wrapper CSS Class(es)","rank-math"),value:n.contentCssClasses,onChange:function(e){a({contentCssClasses:e})}}),wp.element.createElement(c.TextControl,{label:Object(l.__)("List CSS Class(es)","rank-math"),value:n.listCssClasses,onChange:function(e){a({listCssClasses:e})}})))})),y=n(10),d=n.n(y);function v(e,t){var n=Object(p.select)("core").getMedia,a=e?n(e):null;return null===a?null:t?function(e,t){return Object(r.get)(e,["media_details","sizes",t,"source_url"])||Object(r.get)(e,["media_details","sizes","full","source_url"])}(a,t):a}var g=Object(p.withSelect)((function(e,t){var n=t.imageID,r=t.sizeSlug;return{imageUrl:n?v(n,r):null}}))((function(e){var t=e.imageUrl;return t?wp.element.createElement("img",{src:t,alt:""}):null})),k=function(e){var t=e.imageID,n=e.sizeSlug,r=e.open,a=e.removeImage,o=e.addButtonLabel,i=void 0===o?Object(l.__)("Add Image","rank-math"):o;return wp.element.createElement("div",{className:"rank-math-media-placeholder"},t>0&&wp.element.createElement(g,{imageID:t,sizeSlug:n}),t>0?wp.element.createElement(c.Button,{icon:"edit",className:"rank-math-replace-image",onClick:r}):wp.element.createElement(c.Button,{onClick:r,className:"rank-math-add-image",isPrimary:!0,isLarge:!0},i),t>0&&wp.element.createElement(c.Button,{icon:"no-alt",className:"rank-math-delete-image",onClick:a}))};function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(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 j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(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,r.key,r)}}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(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=P(e);if(t){var a=P(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=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}}),t&&C(e,t)}(o,e);var t,n,r,a=E(o);function o(){var e;j(this,o);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.call.apply(a,[this].concat(n))).toggleVisibility=function(){var t=e.props,n=t.setAttributes,r=t.index,a=O(e.props.questions);a[r].visible=!e.props.visible,n({questions:a})},e.deleteQuestion=function(){var t=e.props,n=t.setAttributes,r=t.index,a=O(e.props.questions);a.splice(r,1),n({questions:a})},e}return t=o,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.title,r=t.content,a=t.visible,o=t.imageID,i=t.sizeSlug,s=t.titleWrapper,p=t.titleCssClasses,m=t.contentCssClasses,f=d()("rank-math-question-wrapper",{"question-not-visible":!a});return wp.element.createElement("div",{className:f},wp.element.createElement("div",{className:"rank-math-block-actions"},wp.element.createElement(c.Button,{className:"rank-math-item-visbility",icon:a?"visibility":"hidden",onClick:this.toggleVisibility,title:Object(l.__)("Hide Question","rank-math")}),wp.element.createElement(c.Button,{icon:"trash",className:"rank-math-item-delete",onClick:this.deleteQuestion,title:Object(l.__)("Delete Question","rank-math")})),wp.element.createElement(u.RichText,{tagName:s,className:"rank-math-faq-question rank-math-block-title"+p,value:n,onChange:function(t){e.setQuestionProp("title",t)},keepPlaceholderOnFocus:!0,placeholder:Object(l.__)("Question…","rank-math")}),wp.element.createElement(u.MediaUpload,{allowedTypes:["image"],multiple:!1,value:o,render:function(t){var n=t.open;return wp.element.createElement(k,{imageID:o,sizeSlug:i,open:n,removeImage:function(){e.setQuestionProp("imageID",0)}})},onSelect:function(t){e.setQuestionProp("imageID",t.id)}}),wp.element.createElement(u.RichText,{tagName:"div",className:"rank-math-faq-answer "+m,value:r,onChange:function(t){e.setQuestionProp("content",t)},keepPlaceholderOnFocus:!0,placeholder:Object(l.__)("Enter the answer to the question","rank-math")}))}},{key:"setQuestionProp",value:function(e,t){var n=this.props,r=n.setAttributes,a=n.index,o=O(this.props.questions);o[a][e]=t,r({questions:o})}}])&&S(t.prototype,n),r&&S(t,r),o}(s.Component),N=function(e){return"".concat(e,"-").concat((new Date).getTime())};function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(){return(I=Object.assign||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}).apply(this,arguments)}function D(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(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 q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z(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,r.key,r)}}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(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=Q(e);if(t){var a=Q(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return W(this,n)}}function W(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var H=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}}),t&&B(e,t)}(i,e);var t,n,a,o=M(i);function i(){var e;q(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).addNew=function(){var t=D(e.props.attributes.questions);t.push({id:N("faq-question"),title:"",content:"",visible:!0}),e.props.setAttributes({questions:t})},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.isSelected,a=this.props.attributes.textAlign;return wp.element.createElement("div",{id:"rank-math-faq",className:"rank-math-block "+n},r&&wp.element.createElement(h,this.props),r&&wp.element.createElement(s.Fragment,null,wp.element.createElement(u.BlockControls,null,wp.element.createElement(u.AlignmentToolbar,{value:a,onChange:function(t){return e.props.setAttributes({textAlign:t})}}))),wp.element.createElement("ul",{style:{textAlign:a}},this.renderQuestions()),wp.element.createElement(c.Button,{isPrimary:!0,isLarge:!0,onClick:this.addNew},Object(l.__)("Add New FAQ","rank-math")),wp.element.createElement("a",{href:"https://rankmath.com/kb/faq-schema-block/",rel:"noopener noreferrer",target:"_blank",title:Object(l.__)("More Info","rank-math"),className:"rank-math-block-info"},wp.element.createElement(c.Dashicon,{icon:"info"})))}},{key:"renderQuestions",value:function(){var e=this,t=this.props.attributes,n=t.sizeSlug,a=t.titleWrapper,o=t.titleCssClasses,l=t.contentCssClasses,i=this.props.attributes.questions;return Object(r.isEmpty)(i)&&(i=[{id:N("faq-question"),title:"",content:"",visible:!0}]),i.map((function(t,r){return wp.element.createElement("li",{key:t.id},wp.element.createElement(x,I({},t,{index:r,key:t.id+"-question",questions:i,setAttributes:e.props.setAttributes,sizeSlug:n,titleWrapper:a,titleCssClasses:o,contentCssClasses:l})))}))}}])&&z(t.prototype,n),a&&z(t,a),i}(s.Component),F={from:[{type:"block",blocks:["yoast/faq-block"],transform:function(e){var t={titleWrapper:"h3",questions:e.questions.map((function(e){return{title:e.jsonQuestion,content:e.jsonAnswer,visible:!0}})),className:e.className};return Object(a.createBlock)("rank-math/faq-block",t)}}]},L=function(e){var t=e.attributes,n=t.questions,a=t.titleWrapper;return Object(r.isEmpty)(n)?null:wp.element.createElement("div",null,n.map((function(e,t){return Object(r.isEmpty)(e.title)||Object(r.isEmpty)(e.content)||!1===e.visible?null:wp.element.createElement("div",{className:"rank-math-faq-item",key:t},wp.element.createElement(u.RichText.Content,{tagName:a,value:e.title,className:"rank-math-question"}),wp.element.createElement(u.RichText.Content,{tagName:"div",value:e.content,className:"rank-math-answer"}))})))},U=n(6),V={attributes:{steps:[{visible:!0,titleWrapper:"div",title:"Step # 1",content:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}]}};function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(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 J(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(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,r.key,r)}}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(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=te(e);if(t){var a=te(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ee(this,n)}}function ee(e,t){return!t||"object"!==$(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ne=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}}),t&&X(e,t)}(o,e);var t,n,r,a=Z(o);function o(){var e;J(this,o);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.call.apply(a,[this].concat(n))).toggleVisibility=function(){var t=e.props,n=t.setAttributes,r=t.index,a=Y(e.props.steps);a[r].visible=!e.props.visible,n({steps:a})},e.deleteStep=function(){var t=e.props,n=t.setAttributes,r=t.index,a=Y(e.props.steps);a.splice(r,1),n({steps:a})},e}return t=o,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.title,r=t.content,a=t.visible,o=t.imageID,i=t.sizeSlug,s=t.titleWrapper,p=t.titleCssClasses,m=t.contentCssClasses,f=d()("rank-math-step-wrapper",{"step-not-visible":!a});return wp.element.createElement("div",{className:f},wp.element.createElement("div",{className:"rank-math-block-actions"},wp.element.createElement(c.Button,{className:"rank-math-item-visbility",icon:a?"visibility":"hidden",onClick:this.toggleVisibility,title:Object(l.__)("Hide Step","rank-math")}),wp.element.createElement(c.Button,{icon:"trash",className:"rank-math-item-delete",onClick:this.deleteStep,title:Object(l.__)("Delete Step","rank-math")})),wp.element.createElement(u.RichText,{tagName:s,className:"rank-math-howto-step-title rank-math-block-title"+p,value:n,onChange:function(t){e.setStepProp("title",t)},keepPlaceholderOnFocus:!0,placeholder:Object(l.__)("Enter a step title","rank-math")}),wp.element.createElement(u.MediaUpload,{allowedTypes:["image"],multiple:!1,value:o,render:function(t){var n=t.open;return wp.element.createElement(k,{imageID:o,sizeSlug:i,open:n,addButtonLabel:Object(l.__)("Add Step Image","rank-math"),removeImage:function(){e.setStepProp("imageID",0)}})},onSelect:function(t){e.setStepProp("imageID",t.id)}}),wp.element.createElement(u.RichText,{tagName:"div",className:"rank-math-howto-step-content"+m,value:r,onChange:function(t){e.setStepProp("content",t)},keepPlaceholderOnFocus:!0,placeholder:Object(l.__)("Enter a step description","rank-math")}))}},{key:"setStepProp",value:function(e,t){var n=this.props,r=n.setAttributes,a=n.index,o=Y(this.props.steps);o[a][e]=t,r({steps:o})}}])&&K(t.prototype,n),r&&K(t,r),o}(s.Component);function re(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 ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var le=Object(p.withSelect)((function(e,t){var n=(0,e("core/block-editor").getSettings)().imageSizes;return ae(ae({},t),{},{imageSizes:n})}))((function(e){var t=e.imageSizes,n=e.attributes,a=e.setAttributes,o=function(e){return Object(r.map)(e,(function(e){var t=e.name;return{value:e.slug,label:t}}))}(t);return wp.element.createElement(u.InspectorControls,{key:"inspector"},wp.element.createElement(c.PanelBody,{title:Object(l.__)("HowTo Options","rank-math")},wp.element.createElement(c.SelectControl,{label:Object(l.__)("List Style","rank-math"),value:n.listStyle,options:[{value:"",label:Object(l.__)("None","rank-math")},{value:"numbered",label:Object(l.__)("Numbered","rank-math")},{value:"unordered",label:Object(l.__)("Unordered","rank-math")}],onChange:function(e){a({listStyle:e})}}),wp.element.createElement(c.SelectControl,{label:Object(l.__)("Title Wrapper","rank-math"),value:n.titleWrapper,options:[{value:"h2",label:Object(l.__)("H2","rank-math")},{value:"h3",label:Object(l.__)("H3","rank-math")},{value:"h4",label:Object(l.__)("H4","rank-math")},{value:"h5",label:Object(l.__)("H5","rank-math")},{value:"h6",label:Object(l.__)("H6","rank-math")},{value:"p",label:Object(l.__)("P","rank-math")},{value:"div",label:Object(l.__)("DIV","rank-math")}],onChange:function(e){a({titleWrapper:e})}}),wp.element.createElement(c.SelectControl,{label:Object(l.__)("Main Image Size","rank-math"),value:n.mainSizeSlug,options:o,onChange:function(e){a({mainSizeSlug:e})}}),wp.element.createElement(c.SelectControl,{label:Object(l.__)("Image Size","rank-math"),value:n.sizeSlug,options:o,onChange:function(e){a({sizeSlug:e})}})),wp.element.createElement(c.PanelBody,{title:Object(l.__)("Styling Options","rank-math")},wp.element.createElement(c.TextControl,{label:Object(l.__)("Step Title Wrapper CSS Class(es)","rank-math"),value:n.titleCssClasses,onChange:function(e){a({titleCssClasses:e})}}),wp.element.createElement(c.TextControl,{label:Object(l.__)("Step Content Wrapper CSS Class(es)","rank-math"),value:n.contentCssClasses,onChange:function(e){a({contentCssClasses:e})}}),wp.element.createElement(c.TextControl,{label:Object(l.__)("Step List CSS Class(es)","rank-math"),value:n.listCssClasses,onChange:function(e){a({listCssClasses:e})}})))}));function ie(e){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function se(){return(se=Object.assign||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}).apply(this,arguments)}function ce(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ue(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(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 pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(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,r.key,r)}}function fe(e,t){return(fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function be(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=ye(e);if(t){var a=ye(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return he(this,n)}}function he(e,t){return!t||"object"!==ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ye(e){return(ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var de,ve=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}}),t&&fe(e,t)}(i,e);var t,n,a,o=be(i);function i(){var e;pe(this,i);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return(e=o.call.apply(o,[this].concat(n))).addNew=function(){var t=e.props.attributes.steps,n=Object(r.isEmpty)(t)?[]:ce(t);n.push({id:N("howto-step"),title:"",content:"",visible:!0}),e.props.setAttributes({steps:n})},e.toggleDuration=function(){e.props.setAttributes({hasDuration:!e.props.attributes.hasDuration})},e.onSelectImage=function(t){(0,e.props.setAttributes)({imageID:t.id})},e.removeImage=function(){(0,e.props.setAttributes)({imageID:0})},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.isSelected,a=t.attributes,o=t.setAttributes,i=a.imageID,p=a.mainSizeSlug,m=a.textAlign;return wp.element.createElement("div",{id:"rank-math-howto",className:"rank-math-block "+n},r&&wp.element.createElement(le,this.props),r&&wp.element.createElement(s.Fragment,null,wp.element.createElement(u.BlockControls,null,wp.element.createElement(u.AlignmentToolbar,{value:m,onChange:function(t){return e.props.setAttributes({textAlign:t})}}))),wp.element.createElement(u.MediaUpload,{allowedTypes:["image"],multiple:!1,value:i,render:function(t){var n=t.open;return wp.element.createElement("div",{className:"rank-math-howto-final-image"},wp.element.createElement(k,{imageID:i,sizeSlug:p,open:n,addButtonLabel:Object(l.__)("Add Final Image","rank-math"),removeImage:e.removeImage}))},onSelect:this.onSelectImage}),wp.element.createElement(u.RichText,{style:{textAlign:m},tagName:"div",className:"rank-math-howto-description",value:a.description,onChange:function(e){o({description:e})},keepPlaceholderOnFocus:!0,placeholder:Object(l.__)("Enter a main description","rank-math")}),wp.element.createElement("div",{className:"rank-math-howto-duration"},wp.element.createElement("div",{className:"components-base-control rank-math-howto-duration-label"},wp.element.createElement("span",null,Object(l.__)("Duration","rank-math")),wp.element.createElement(c.ToggleControl,{checked:a.hasDuration,onChange:this.toggleDuration})),wp.element.createElement("div",{className:"rank-math-howto-duration-fields"+(a.hasDuration?"":" hidden")},wp.element.createElement(c.TextControl,{value:a.timeLabel,placeholder:Object(l.__)("Total time:","rank-math"),onChange:function(e){o({timeLabel:e})}}),wp.element.createElement(c.TextControl,{type:"number",value:a.days,placeholder:Object(l.__)("DD","rank-math"),onChange:function(e){o({days:e})}}),wp.element.createElement(c.TextControl,{type:"number",value:a.hours,placeholder:Object(l.__)("HH","rank-math"),onChange:function(e){o({hours:e})}}),wp.element.createElement(c.TextControl,{type:"number",value:a.minutes,placeholder:Object(l.__)("MM","rank-math"),onChange:function(e){o({minutes:e})}})),wp.element.createElement("div",{className:"rank-math-howto-duration-instructions"+(a.hasDuration?"":" hidden")},Object(l.__)("Optional, use first field to describe the duration.","rank-math"))),Object(U.applyFilters)("rank_math_block_howto_data","",this.props),wp.element.createElement("ul",{style:{textAlign:m}},this.renderSteps()),wp.element.createElement(c.Button,{isPrimary:!0,isLarge:!0,onClick:this.addNew},Object(l.__)("Add New Step","rank-math")),wp.element.createElement("a",{href:"http://rankmath.com/blog/howto-schema/",title:Object(l.__)("More Info","rank-math"),target:"_blank",rel:"noopener noreferrer",className:"rank-math-block-info"},wp.element.createElement(c.Dashicon,{icon:"info"})))}},{key:"renderSteps",value:function(){var e=this,t=this.props.attributes,n=t.steps,a=t.sizeSlug,o=t.titleWrapper,l=t.titleCssClasses,i=t.contentCssClasses;return Object(r.isEmpty)(n)?(this.addNew(),null):n.map((function(t,r){return wp.element.createElement("li",{key:t.id},wp.element.createElement(ne,se({},t,{index:r,key:t.id+"-step",steps:n,setAttributes:e.props.setAttributes,sizeSlug:a,titleWrapper:o,titleCssClasses:l,contentCssClasses:i})))}))}}])&&me(t.prototype,n),a&&me(t,a),i}(s.Component),ge=function(e){var t=e.attributes,n=t.steps,a=t.titleWrapper;return Object(r.isEmpty)(n)?null:wp.element.createElement("div",null,n.map((function(e,t){return!1===e.visible?null:wp.element.createElement("div",{className:"rank-math-howto-step",key:t},e.title&&wp.element.createElement(u.RichText.Content,{tagName:a,value:e.title,className:"rank-math-howto-title"}),e.content&&wp.element.createElement(u.RichText.Content,{tagName:"div",value:e.content,className:"rank-math-howto-content"}))})))},ke={from:[{type:"block",blocks:["yoast/how-to-block"],transform:function(e){var t={steps:e.steps.map((function(e){return{visible:!0,id:N("howto-step"),title:e.jsonName,content:e.jsonText}})),titleWrapper:"h3",hasDuration:e.hasDuration,days:e.days,hours:e.hours,minutes:e.minutes,description:e.jsonDescription,className:e.className,listStyle:e.unorderedList?"unordered":""};return Object(a.createBlock)("rank-math/howto-block",t)}}]};Object(a.updateCategory)("rank-math-blocks",{icon:o}),de=[Object(l.__)("FAQ","rank-math"),Object(l.__)("Frequently Asked Questions","rank-math"),Object(l.__)("Schema","rank-math"),Object(l.__)("SEO","rank-math"),Object(l.__)("Structured Data","rank-math"),Object(l.__)("Yoast","rank-math"),Object(l.__)("Rank Math","rank-math"),Object(l.__)("Block","rank-math"),Object(l.__)("Markup","rank-math"),Object(l.__)("Rich Snippet","rank-math")],Object(a.registerBlockType)("rank-math/faq-block",{title:Object(l.__)("FAQ by Rank Math","rank-math"),description:Object(l.__)("Easily add Schema-ready, SEO-friendly, Frequently Asked Questions to your content.","rank-math"),category:"rank-math-blocks",icon:"editor-ul",keywords:de,attributes:{listStyle:{type:"string"},sizeSlug:{type:"string",default:"thumbnail"},titleWrapper:{type:"string",default:"h3"},questions:{type:"array"},textAlign:{type:"string",default:""},listCssClasses:{type:"string",default:""},titleCssClasses:{type:"string",default:""},contentCssClasses:{type:"string",default:""}},example:i,edit:H,save:L,transforms:F}),function(){var e=[Object(l.__)("HowTo","rank-math"),Object(l.__)("Schema","rank-math"),Object(l.__)("SEO","rank-math"),Object(l.__)("Structured Data","rank-math"),Object(l.__)("Yoast","rank-math"),Object(l.__)("Rank Math","rank-math"),Object(l.__)("Block","rank-math"),Object(l.__)("Markup","rank-math"),Object(l.__)("Rich Snippet","rank-math")],t=Object(U.applyFilters)("rank_math_block_howto_attributes",{hasDuration:{type:"boolean"},days:{type:"string"},hours:{type:"string"},minutes:{type:"string"},description:{type:"string"},steps:{type:"array"},sizeSlug:{type:"string",default:"full"},imageID:{type:"integer"},mainSizeSlug:{type:"string",default:"full"},titleWrapper:{type:"string",default:"h3"},textAlign:{type:"string",default:""},timeLabel:{type:"string"},listStyle:{type:"string"},listCssClasses:{type:"string",default:""},titleCssClasses:{type:"string",default:""},contentCssClasses:{type:"string",default:""}});Object(a.registerBlockType)("rank-math/howto-block",{title:Object(l.__)("HowTo by Rank Math","rank-math"),description:Object(l.__)("Easily add Schema-ready, SEO-friendly, HowTo block to your content.","rank-math"),category:"rank-math-blocks",icon:"editor-ol",supports:{multiple:!1},keywords:e,attributes:t,example:V,edit:ve,save:ge,transforms:ke})}(),rankMath.canUser.snippet&&!Object(r.isUndefined)(rankMath.schemas)&&function(){var e=[Object(l.__)("Schema","rank-math"),Object(l.__)("Markup","rank-math"),Object(l.__)("Structured Data","rank-math"),Object(l.__)("Rich Snippet","rank-math"),Object(l.__)("SEO","rank-math"),Object(l.__)("Rank Math","rank-math"),Object(l.__)("Yoast","rank-math")];Object(a.registerBlockType)("rank-math/rich-snippet",{title:Object(l.__)("Schema by Rank Math","rank-math"),description:Object(l.__)("Add the Schema generated by Rank Math anywhere on your page using this Block.","rank-math"),category:"rank-math-blocks",icon:o,keywords:e,attributes:Object(U.applyFilters)("rank_math_block_schema_attributes",{post_id:{default:rankMath.objectID}}),edit:function(e){var t=e.setAttributes,n=e.attributes,a=[];return Object(r.forEach)(n,(function(e,o){"post_id"!==o?"className"!==o&&a.push(wp.element.createElement(c.TextControl,{key:o,label:Object(l.__)(Object(r.startCase)(o),"rank-math"),value:n[o],type:"string",onChange:function(e){var n={};n[o]=e,t(n)}})):a.push(wp.element.createElement(c.TextControl,{key:o,label:Object(l.__)(Object(r.startCase)(o),"rank-math"),value:n[o],type:"number",min:1,step:1,onChange:function(e){var n={};n[o]=e||rankMath.objectID,t(n)}}))})),wp.element.createElement("div",null,wp.element.createElement(u.InspectorControls,{key:"inspector"},a),wp.element.createElement(c.ServerSideRender,{block:"rank-math/rich-snippet",attributes:n}))}})}()}});
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=75)}({0:function(e,t){e.exports=wp.i18n},1:function(e,t){e.exports=lodash},10:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var l=a.apply(null,r);l&&e.push(l)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var i in r)n.call(r,i)&&r[i]&&e.push(i);else e.push(r.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},12:function(e,t){e.exports=wp.blockEditor},2:function(e,t){e.exports=wp.components},21:function(e,t){e.exports=wp.blocks},4:function(e,t){e.exports=wp.data},5:function(e,t){e.exports=wp.element},6:function(e,t){e.exports=wp.hooks},75:function(e,t,n){"use strict";n.r(t);var r=n(1),a=n(21),o=wp.element.createElement("svg",{viewBox:"0 0 462.03 462.03",xmlns:"http://www.w3.org/2000/svg",width:"20"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z"}),wp.element.createElement("path",{d:"m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z"}))),l=n(0),i={attributes:{questions:[{visible:!0,titleWrapper:"div",title:"Question",content:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}]}},s=n(5),c=n(2),u=n(12),p=n(4);function m(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=Object(p.withSelect)((function(e,t){var n=(0,e("core/block-editor").getSettings)().imageSizes;return f(f({},t),{},{imageSizes:n})}))((function(e){var t=e.imageSizes,n=e.attributes,a=e.setAttributes,o=function(e){return Object(r.map)(e,(function(e){var t=e.name;return{value:e.slug,label:t}}))}(t);return wp.element.createElement(u.InspectorControls,{key:"inspector"},wp.element.createElement(c.PanelBody,{title:Object(l.__)("FAQ Options","rank-math")},wp.element.createElement(c.SelectControl,{label:Object(l.__)("List Style","rank-math"),value:n.listStyle,options:[{value:"",label:Object(l.__)("None","rank-math")},{value:"numbered",label:Object(l.__)("Numbered","rank-math")},{value:"unordered",label:Object(l.__)("Unordered","rank-math")}],onChange:function(e){a({listStyle:e})}}),wp.element.createElement(c.SelectControl,{label:Object(l.__)("Title Wrapper","rank-math"),value:n.titleWrapper,options:[{value:"h2",label:Object(l.__)("H2","rank-math")},{value:"h3",label:Object(l.__)("H3","rank-math")},{value:"h4",label:Object(l.__)("H4","rank-math")},{value:"h5",label:Object(l.__)("H5","rank-math")},{value:"h6",label:Object(l.__)("H6","rank-math")},{value:"p",label:Object(l.__)("P","rank-math")},{value:"div",label:Object(l.__)("DIV","rank-math")}],onChange:function(e){a({titleWrapper:e})}}),wp.element.createElement(c.SelectControl,{label:Object(l.__)("Image Size","rank-math"),value:n.sizeSlug,options:o,onChange:function(e){a({sizeSlug:e})}})),wp.element.createElement(c.PanelBody,{title:Object(l.__)("Styling Options","rank-math")},wp.element.createElement(c.TextControl,{label:Object(l.__)("Title Wrapper CSS Class(es)","rank-math"),value:n.titleCssClasses,onChange:function(e){a({titleCssClasses:e})}}),wp.element.createElement(c.TextControl,{label:Object(l.__)("Content Wrapper CSS Class(es)","rank-math"),value:n.contentCssClasses,onChange:function(e){a({contentCssClasses:e})}}),wp.element.createElement(c.TextControl,{label:Object(l.__)("List CSS Class(es)","rank-math"),value:n.listCssClasses,onChange:function(e){a({listCssClasses:e})}})))})),y=n(10),d=n.n(y);function v(e,t){var n=Object(p.select)("core").getMedia,a=e?n(e):null;return null===a?null:t?function(e,t){return Object(r.get)(e,["media_details","sizes",t,"source_url"])||Object(r.get)(e,["media_details","sizes","full","source_url"])}(a,t):a}var g=Object(p.withSelect)((function(e,t){var n=t.imageID,r=t.sizeSlug;return{imageUrl:n?v(n,r):null}}))((function(e){var t=e.imageUrl;return t?wp.element.createElement("img",{src:t,alt:""}):null})),k=function(e){var t=e.imageID,n=e.sizeSlug,r=e.open,a=e.removeImage,o=e.addButtonLabel,i=void 0===o?Object(l.__)("Add Image","rank-math"):o;return wp.element.createElement("div",{className:"rank-math-media-placeholder"},t>0&&wp.element.createElement(g,{imageID:t,sizeSlug:n}),t>0?wp.element.createElement(c.Button,{icon:"edit",className:"rank-math-replace-image",onClick:r}):wp.element.createElement(c.Button,{onClick:r,className:"rank-math-add-image",isPrimary:!0,isLarge:!0},i),t>0&&wp.element.createElement(c.Button,{icon:"no-alt",className:"rank-math-delete-image",onClick:a}))};function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(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 j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(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,r.key,r)}}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(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=P(e);if(t){var a=P(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=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}}),t&&C(e,t)}(o,e);var t,n,r,a=E(o);function o(){var e;j(this,o);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.call.apply(a,[this].concat(n))).toggleVisibility=function(){var t=e.props,n=t.setAttributes,r=t.index,a=O(e.props.questions);a[r].visible=!e.props.visible,n({questions:a})},e.deleteQuestion=function(){var t=e.props,n=t.setAttributes,r=t.index,a=O(e.props.questions);a.splice(r,1),n({questions:a})},e}return t=o,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.title,r=t.content,a=t.visible,o=t.imageID,i=t.sizeSlug,s=t.titleWrapper,p=t.titleCssClasses,m=t.contentCssClasses,f=d()("rank-math-question-wrapper",{"question-not-visible":!a});return wp.element.createElement("div",{className:f},wp.element.createElement("div",{className:"rank-math-block-actions"},wp.element.createElement(c.Button,{className:"rank-math-item-visbility",icon:a?"visibility":"hidden",onClick:this.toggleVisibility,title:Object(l.__)("Hide Question","rank-math")}),wp.element.createElement(c.Button,{icon:"trash",className:"rank-math-item-delete",onClick:this.deleteQuestion,title:Object(l.__)("Delete Question","rank-math")})),wp.element.createElement(u.RichText,{tagName:s,className:"rank-math-faq-question rank-math-block-title"+p,value:n,onChange:function(t){e.setQuestionProp("title",t)},keepPlaceholderOnFocus:!0,placeholder:Object(l.__)("Question…","rank-math")}),wp.element.createElement(u.MediaUpload,{allowedTypes:["image"],multiple:!1,value:o,render:function(t){var n=t.open;return wp.element.createElement(k,{imageID:o,sizeSlug:i,open:n,removeImage:function(){e.setQuestionProp("imageID",0)}})},onSelect:function(t){e.setQuestionProp("imageID",t.id)}}),wp.element.createElement(u.RichText,{tagName:"div",className:"rank-math-faq-answer "+m,value:r,onChange:function(t){e.setQuestionProp("content",t)},keepPlaceholderOnFocus:!0,placeholder:Object(l.__)("Enter the answer to the question","rank-math")}))}},{key:"setQuestionProp",value:function(e,t){var n=this.props,r=n.setAttributes,a=n.index,o=O(this.props.questions);o[a][e]=t,r({questions:o})}}])&&S(t.prototype,n),r&&S(t,r),o}(s.Component),N=function(e){return"".concat(e,"-").concat((new Date).getTime())};function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(){return(I=Object.assign||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}).apply(this,arguments)}function D(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(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 q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z(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,r.key,r)}}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(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=Q(e);if(t){var a=Q(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return W(this,n)}}function W(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var H=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}}),t&&B(e,t)}(i,e);var t,n,a,o=M(i);function i(){var e;q(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).addNew=function(){var t=D(e.props.attributes.questions);t.push({id:N("faq-question"),title:"",content:"",visible:!0}),e.props.setAttributes({questions:t})},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.isSelected,a=this.props.attributes.textAlign;return wp.element.createElement("div",{id:"rank-math-faq",className:"rank-math-block "+n},r&&wp.element.createElement(h,this.props),r&&wp.element.createElement(s.Fragment,null,wp.element.createElement(u.BlockControls,null,wp.element.createElement(u.AlignmentToolbar,{value:a,onChange:function(t){return e.props.setAttributes({textAlign:t})}}))),wp.element.createElement("ul",{style:{textAlign:a}},this.renderQuestions()),wp.element.createElement(c.Button,{isPrimary:!0,isLarge:!0,onClick:this.addNew},Object(l.__)("Add New FAQ","rank-math")),wp.element.createElement("a",{href:"https://rankmath.com/kb/faq-schema-block/",rel:"noopener noreferrer",target:"_blank",title:Object(l.__)("More Info","rank-math"),className:"rank-math-block-info"},wp.element.createElement(c.Dashicon,{icon:"info"})))}},{key:"renderQuestions",value:function(){var e=this,t=this.props.attributes,n=t.sizeSlug,a=t.titleWrapper,o=t.titleCssClasses,l=t.contentCssClasses,i=this.props.attributes.questions;return Object(r.isEmpty)(i)&&(i=[{id:N("faq-question"),title:"",content:"",visible:!0}]),i.map((function(t,r){return wp.element.createElement("li",{key:t.id},wp.element.createElement(x,I({},t,{index:r,key:t.id+"-question",questions:i,setAttributes:e.props.setAttributes,sizeSlug:n,titleWrapper:a,titleCssClasses:o,contentCssClasses:l})))}))}}])&&z(t.prototype,n),a&&z(t,a),i}(s.Component),F={from:[{type:"block",blocks:["yoast/faq-block"],transform:function(e){var t={titleWrapper:"h3",questions:e.questions.map((function(e){return{title:e.jsonQuestion,content:e.jsonAnswer,visible:!0}})),className:e.className};return Object(a.createBlock)("rank-math/faq-block",t)}}]},L=function(e){var t=e.attributes,n=t.questions,a=t.titleWrapper;return Object(r.isEmpty)(n)?null:wp.element.createElement("div",null,n.map((function(e,t){return Object(r.isEmpty)(e.title)||Object(r.isEmpty)(e.content)||!1===e.visible?null:wp.element.createElement("div",{className:"rank-math-faq-item",key:t},wp.element.createElement(u.RichText.Content,{tagName:a,value:e.title,className:"rank-math-question"}),wp.element.createElement(u.RichText.Content,{tagName:"div",value:e.content,className:"rank-math-answer"}))})))},U=n(6),V={attributes:{steps:[{visible:!0,titleWrapper:"div",title:"Step # 1",content:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}]}};function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(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 J(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(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,r.key,r)}}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(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=te(e);if(t){var a=te(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ee(this,n)}}function ee(e,t){return!t||"object"!==$(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ne=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}}),t&&X(e,t)}(o,e);var t,n,r,a=Z(o);function o(){var e;J(this,o);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.call.apply(a,[this].concat(n))).toggleVisibility=function(){var t=e.props,n=t.setAttributes,r=t.index,a=Y(e.props.steps);a[r].visible=!e.props.visible,n({steps:a})},e.deleteStep=function(){var t=e.props,n=t.setAttributes,r=t.index,a=Y(e.props.steps);a.splice(r,1),n({steps:a})},e}return t=o,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.title,r=t.content,a=t.visible,o=t.imageID,i=t.sizeSlug,s=t.titleWrapper,p=t.titleCssClasses,m=t.contentCssClasses,f=d()("rank-math-step-wrapper",{"step-not-visible":!a});return wp.element.createElement("div",{className:f},wp.element.createElement("div",{className:"rank-math-block-actions"},wp.element.createElement(c.Button,{className:"rank-math-item-visbility",icon:a?"visibility":"hidden",onClick:this.toggleVisibility,title:Object(l.__)("Hide Step","rank-math")}),wp.element.createElement(c.Button,{icon:"trash",className:"rank-math-item-delete",onClick:this.deleteStep,title:Object(l.__)("Delete Step","rank-math")})),wp.element.createElement(u.RichText,{tagName:s,className:"rank-math-howto-step-title rank-math-block-title"+p,value:n,onChange:function(t){e.setStepProp("title",t)},keepPlaceholderOnFocus:!0,placeholder:Object(l.__)("Enter a step title","rank-math")}),wp.element.createElement(u.MediaUpload,{allowedTypes:["image"],multiple:!1,value:o,render:function(t){var n=t.open;return wp.element.createElement(k,{imageID:o,sizeSlug:i,open:n,addButtonLabel:Object(l.__)("Add Step Image","rank-math"),removeImage:function(){e.setStepProp("imageID",0)}})},onSelect:function(t){e.setStepProp("imageID",t.id)}}),wp.element.createElement(u.RichText,{tagName:"div",className:"rank-math-howto-step-content"+m,value:r,onChange:function(t){e.setStepProp("content",t)},keepPlaceholderOnFocus:!0,placeholder:Object(l.__)("Enter a step description","rank-math")}))}},{key:"setStepProp",value:function(e,t){var n=this.props,r=n.setAttributes,a=n.index,o=Y(this.props.steps);o[a][e]=t,r({steps:o})}}])&&K(t.prototype,n),r&&K(t,r),o}(s.Component);function re(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 ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var le=Object(p.withSelect)((function(e,t){var n=(0,e("core/block-editor").getSettings)().imageSizes;return ae(ae({},t),{},{imageSizes:n})}))((function(e){var t=e.imageSizes,n=e.attributes,a=e.setAttributes,o=function(e){return Object(r.map)(e,(function(e){var t=e.name;return{value:e.slug,label:t}}))}(t);return wp.element.createElement(u.InspectorControls,{key:"inspector"},wp.element.createElement(c.PanelBody,{title:Object(l.__)("HowTo Options","rank-math")},wp.element.createElement(c.SelectControl,{label:Object(l.__)("List Style","rank-math"),value:n.listStyle,options:[{value:"",label:Object(l.__)("None","rank-math")},{value:"numbered",label:Object(l.__)("Numbered","rank-math")},{value:"unordered",label:Object(l.__)("Unordered","rank-math")}],onChange:function(e){a({listStyle:e})}}),wp.element.createElement(c.SelectControl,{label:Object(l.__)("Title Wrapper","rank-math"),value:n.titleWrapper,options:[{value:"h2",label:Object(l.__)("H2","rank-math")},{value:"h3",label:Object(l.__)("H3","rank-math")},{value:"h4",label:Object(l.__)("H4","rank-math")},{value:"h5",label:Object(l.__)("H5","rank-math")},{value:"h6",label:Object(l.__)("H6","rank-math")},{value:"p",label:Object(l.__)("P","rank-math")},{value:"div",label:Object(l.__)("DIV","rank-math")}],onChange:function(e){a({titleWrapper:e})}}),wp.element.createElement(c.SelectControl,{label:Object(l.__)("Main Image Size","rank-math"),value:n.mainSizeSlug,options:o,onChange:function(e){a({mainSizeSlug:e})}}),wp.element.createElement(c.SelectControl,{label:Object(l.__)("Image Size","rank-math"),value:n.sizeSlug,options:o,onChange:function(e){a({sizeSlug:e})}})),wp.element.createElement(c.PanelBody,{title:Object(l.__)("Styling Options","rank-math")},wp.element.createElement(c.TextControl,{label:Object(l.__)("Step Title Wrapper CSS Class(es)","rank-math"),value:n.titleCssClasses,onChange:function(e){a({titleCssClasses:e})}}),wp.element.createElement(c.TextControl,{label:Object(l.__)("Step Content Wrapper CSS Class(es)","rank-math"),value:n.contentCssClasses,onChange:function(e){a({contentCssClasses:e})}}),wp.element.createElement(c.TextControl,{label:Object(l.__)("Step List CSS Class(es)","rank-math"),value:n.listCssClasses,onChange:function(e){a({listCssClasses:e})}})))}));function ie(e){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function se(){return(se=Object.assign||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}).apply(this,arguments)}function ce(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ue(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(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 pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(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,r.key,r)}}function fe(e,t){return(fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function be(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=ye(e);if(t){var a=ye(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return he(this,n)}}function he(e,t){return!t||"object"!==ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ye(e){return(ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var de,ve=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}}),t&&fe(e,t)}(i,e);var t,n,a,o=be(i);function i(){var e;pe(this,i);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return(e=o.call.apply(o,[this].concat(n))).addNew=function(){var t=e.props.attributes.steps,n=Object(r.isEmpty)(t)?[]:ce(t);n.push({id:N("howto-step"),title:"",content:"",visible:!0}),e.props.setAttributes({steps:n})},e.toggleDuration=function(){e.props.setAttributes({hasDuration:!e.props.attributes.hasDuration})},e.onSelectImage=function(t){(0,e.props.setAttributes)({imageID:t.id})},e.removeImage=function(){(0,e.props.setAttributes)({imageID:0})},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.isSelected,a=t.attributes,o=t.setAttributes,i=a.imageID,p=a.mainSizeSlug,m=a.textAlign;return wp.element.createElement("div",{id:"rank-math-howto",className:"rank-math-block "+n},r&&wp.element.createElement(le,this.props),r&&wp.element.createElement(s.Fragment,null,wp.element.createElement(u.BlockControls,null,wp.element.createElement(u.AlignmentToolbar,{value:m,onChange:function(t){return e.props.setAttributes({textAlign:t})}}))),wp.element.createElement(u.MediaUpload,{allowedTypes:["image"],multiple:!1,value:i,render:function(t){var n=t.open;return wp.element.createElement("div",{className:"rank-math-howto-final-image"},wp.element.createElement(k,{imageID:i,sizeSlug:p,open:n,addButtonLabel:Object(l.__)("Add Final Image","rank-math"),removeImage:e.removeImage}))},onSelect:this.onSelectImage}),wp.element.createElement(u.RichText,{style:{textAlign:m},tagName:"div",className:"rank-math-howto-description",value:a.description,onChange:function(e){o({description:e})},keepPlaceholderOnFocus:!0,placeholder:Object(l.__)("Enter a main description","rank-math")}),wp.element.createElement("div",{className:"rank-math-howto-duration"},wp.element.createElement("div",{className:"components-base-control rank-math-howto-duration-label"},wp.element.createElement("span",null,Object(l.__)("Duration","rank-math")),wp.element.createElement(c.ToggleControl,{checked:a.hasDuration,onChange:this.toggleDuration})),wp.element.createElement("div",{className:"rank-math-howto-duration-fields"+(a.hasDuration?"":" hidden")},wp.element.createElement(c.TextControl,{value:a.timeLabel,placeholder:Object(l.__)("Total time:","rank-math"),onChange:function(e){o({timeLabel:e})}}),wp.element.createElement(c.TextControl,{type:"number",value:a.days,placeholder:Object(l.__)("DD","rank-math"),onChange:function(e){o({days:e})}}),wp.element.createElement(c.TextControl,{type:"number",value:a.hours,placeholder:Object(l.__)("HH","rank-math"),onChange:function(e){o({hours:e})}}),wp.element.createElement(c.TextControl,{type:"number",value:a.minutes,placeholder:Object(l.__)("MM","rank-math"),onChange:function(e){o({minutes:e})}})),wp.element.createElement("div",{className:"rank-math-howto-duration-instructions"+(a.hasDuration?"":" hidden")},Object(l.__)("Optional, use first field to describe the duration.","rank-math"))),Object(U.applyFilters)("rank_math_block_howto_data","",this.props),wp.element.createElement("ul",{style:{textAlign:m}},this.renderSteps()),wp.element.createElement(c.Button,{isPrimary:!0,isLarge:!0,onClick:this.addNew},Object(l.__)("Add New Step","rank-math")),wp.element.createElement("a",{href:"http://rankmath.com/blog/howto-schema/",title:Object(l.__)("More Info","rank-math"),target:"_blank",rel:"noopener noreferrer",className:"rank-math-block-info"},wp.element.createElement(c.Dashicon,{icon:"info"})))}},{key:"renderSteps",value:function(){var e=this,t=this.props.attributes,n=t.steps,a=t.sizeSlug,o=t.titleWrapper,l=t.titleCssClasses,i=t.contentCssClasses;return Object(r.isEmpty)(n)?(this.addNew(),null):n.map((function(t,r){return wp.element.createElement("li",{key:t.id},wp.element.createElement(ne,se({},t,{index:r,key:t.id+"-step",steps:n,setAttributes:e.props.setAttributes,sizeSlug:a,titleWrapper:o,titleCssClasses:l,contentCssClasses:i})))}))}}])&&me(t.prototype,n),a&&me(t,a),i}(s.Component),ge=function(e){var t=e.attributes,n=t.steps,a=t.titleWrapper;return Object(r.isEmpty)(n)?null:wp.element.createElement("div",null,n.map((function(e,t){return!1===e.visible?null:wp.element.createElement("div",{className:"rank-math-howto-step",key:t},e.title&&wp.element.createElement(u.RichText.Content,{tagName:a,value:e.title,className:"rank-math-howto-title"}),e.content&&wp.element.createElement(u.RichText.Content,{tagName:"div",value:e.content,className:"rank-math-howto-content"}))})))},ke={from:[{type:"block",blocks:["yoast/how-to-block"],transform:function(e){var t={steps:e.steps.map((function(e){return{visible:!0,id:N("howto-step"),title:e.jsonName,content:e.jsonText}})),titleWrapper:"h3",hasDuration:e.hasDuration,days:e.days,hours:e.hours,minutes:e.minutes,description:e.jsonDescription,className:e.className,listStyle:e.unorderedList?"unordered":""};return Object(a.createBlock)("rank-math/howto-block",t)}}]};Object(a.updateCategory)("rank-math-blocks",{icon:o}),de=[Object(l.__)("FAQ","rank-math"),Object(l.__)("Frequently Asked Questions","rank-math"),Object(l.__)("Schema","rank-math"),Object(l.__)("SEO","rank-math"),Object(l.__)("Structured Data","rank-math"),Object(l.__)("Yoast","rank-math"),Object(l.__)("Rank Math","rank-math"),Object(l.__)("Block","rank-math"),Object(l.__)("Markup","rank-math"),Object(l.__)("Rich Snippet","rank-math")],Object(a.registerBlockType)("rank-math/faq-block",{title:Object(l.__)("FAQ by Rank Math","rank-math"),description:Object(l.__)("Easily add Schema-ready, SEO-friendly, Frequently Asked Questions to your content.","rank-math"),category:"rank-math-blocks",icon:"editor-ul",keywords:de,attributes:{listStyle:{type:"string"},sizeSlug:{type:"string",default:"thumbnail"},titleWrapper:{type:"string",default:"h3"},questions:{type:"array"},textAlign:{type:"string",default:""},listCssClasses:{type:"string",default:""},titleCssClasses:{type:"string",default:""},contentCssClasses:{type:"string",default:""}},example:i,edit:H,save:L,transforms:F}),function(){var e=[Object(l.__)("HowTo","rank-math"),Object(l.__)("Schema","rank-math"),Object(l.__)("SEO","rank-math"),Object(l.__)("Structured Data","rank-math"),Object(l.__)("Yoast","rank-math"),Object(l.__)("Rank Math","rank-math"),Object(l.__)("Block","rank-math"),Object(l.__)("Markup","rank-math"),Object(l.__)("Rich Snippet","rank-math")],t=Object(U.applyFilters)("rank_math_block_howto_attributes",{hasDuration:{type:"boolean"},days:{type:"string"},hours:{type:"string"},minutes:{type:"string"},description:{type:"string"},steps:{type:"array"},sizeSlug:{type:"string",default:"full"},imageID:{type:"integer"},mainSizeSlug:{type:"string",default:"full"},titleWrapper:{type:"string",default:"h3"},textAlign:{type:"string",default:""},timeLabel:{type:"string"},listStyle:{type:"string"},listCssClasses:{type:"string",default:""},titleCssClasses:{type:"string",default:""},contentCssClasses:{type:"string",default:""}});Object(a.registerBlockType)("rank-math/howto-block",{title:Object(l.__)("HowTo by Rank Math","rank-math"),description:Object(l.__)("Easily add Schema-ready, SEO-friendly, HowTo block to your content.","rank-math"),category:"rank-math-blocks",icon:"editor-ol",supports:{multiple:!1},keywords:e,attributes:t,example:V,edit:ve,save:ge,transforms:ke})}(),rankMath.canUser.snippet&&!Object(r.isUndefined)(rankMath.schemas)&&function(){var e=[Object(l.__)("Schema","rank-math"),Object(l.__)("Markup","rank-math"),Object(l.__)("Structured Data","rank-math"),Object(l.__)("Rich Snippet","rank-math"),Object(l.__)("SEO","rank-math"),Object(l.__)("Rank Math","rank-math"),Object(l.__)("Yoast","rank-math")];Object(a.registerBlockType)("rank-math/rich-snippet",{title:Object(l.__)("Schema by Rank Math","rank-math"),description:Object(l.__)("Add the Schema generated by Rank Math anywhere on your page using this Block.","rank-math"),category:"rank-math-blocks",icon:o,keywords:e,attributes:Object(U.applyFilters)("rank_math_block_schema_attributes",{post_id:{default:rankMath.objectID}}),edit:function(e){var t=e.setAttributes,n=e.attributes,a=[];return Object(r.forEach)(n,(function(e,o){"post_id"!==o?"className"!==o&&a.push(wp.element.createElement(c.TextControl,{key:o,label:Object(l.__)(Object(r.startCase)(o),"rank-math"),value:n[o],type:"string",onChange:function(e){var n={};n[o]=e,t(n)}})):a.push(wp.element.createElement(c.TextControl,{key:o,label:Object(l.__)(Object(r.startCase)(o),"rank-math"),value:n[o],type:"number",min:1,step:1,onChange:function(e){var n={};n[o]=e||rankMath.objectID,t(n)}}))})),wp.element.createElement("div",null,wp.element.createElement(u.InspectorControls,{key:"inspector"},a),wp.element.createElement(c.ServerSideRender,{block:"rank-math/rich-snippet",attributes:n}))}})}()}});
assets/admin/js/classic.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=78)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=wp.compose},function(e,t){e.exports=rankMathAnalyzer},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(2),a=r.n(n);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,r,n;return t=e,(r=[{key:"swap",value:function(e,t){var r=this;if(!(e=e||""))return"";var n=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(n,(function(e){return r.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var r=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(r)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():a()("#description").val():r.includes("customfield(")?(r=r.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[r]:"":(e=e||this.getMap(),(r="seo_description"===(r="seo_title"===(r=r.includes("(")?r.split("(")[0]:r)?"title":r)?"excerpt":r)in e?e[r]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(t,r){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=r.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&i(t.prototype,r),n&&i(t,n),e}())},function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var o=a.apply(null,n);o&&e.push(o)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},function(e,t){e.exports=wp.url},,function(e,t,r){"use strict";var n=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),n.innerHTML=e,e=n.textContent,n.textContent=""),e}},,function(e,t){e.exports=wp.apiFetch},,function(e,t,r){"use strict";r.d(t,"a",(function(){return kr}));var n={};r.r(n),r.d(n,"updateKeywords",(function(){return d})),r.d(n,"updatePillarContent",(function(){return p})),r.d(n,"toggleFrontendScore",(function(){return h})),r.d(n,"updateAnalysisScore",(function(){return f})),r.d(n,"updateCanonicalUrl",(function(){return m})),r.d(n,"updateAdvancedRobots",(function(){return g})),r.d(n,"updateRobots",(function(){return k})),r.d(n,"updateBreadcrumbTitle",(function(){return v})),r.d(n,"resetDirtyMetadata",(function(){return y})),r.d(n,"updateFacebookTitle",(function(){return b})),r.d(n,"updateFacebookDescription",(function(){return w})),r.d(n,"updateFacebookImage",(function(){return _})),r.d(n,"updateFacebookImageID",(function(){return O})),r.d(n,"updateFacebookHasOverlay",(function(){return T})),r.d(n,"updateFacebookImageOverlay",(function(){return P})),r.d(n,"updateAppData",(function(){return u})),r.d(n,"updateAppUi",(function(){return l})),r.d(n,"updatePostID",(function(){return j})),r.d(n,"updatePermalink",(function(){return I})),r.d(n,"updateTitle",(function(){return S})),r.d(n,"updateDescription",(function(){return D})),r.d(n,"updateFeaturedImage",(function(){return C})),r.d(n,"updatePrimaryTermID",(function(){return M})),r.d(n,"updateRedirection",(function(){return E})),r.d(n,"updateRedirectionItem",(function(){return x})),r.d(n,"resetRedirection",(function(){return A})),r.d(n,"updateHasRedirect",(function(){return F})),r.d(n,"updateSerpTitle",(function(){return R})),r.d(n,"updateSerpDescription",(function(){return K})),r.d(n,"toggleSnippetEditor",(function(){return N})),r.d(n,"updateSnippetPreviewType",(function(){return H})),r.d(n,"toggleTrendsCta",(function(){return W})),r.d(n,"updateTwitterUseFacebook",(function(){return G})),r.d(n,"updateTwitterCardType",(function(){return z})),r.d(n,"updateTwitterTitle",(function(){return L})),r.d(n,"updateTwitterDescription",(function(){return B})),r.d(n,"updateTwitterAuthor",(function(){return V})),r.d(n,"updateTwitterImageID",(function(){return $})),r.d(n,"updateTwitterImage",(function(){return J})),r.d(n,"updateTwitterHasOverlay",(function(){return q})),r.d(n,"updateTwitterImageOverlay",(function(){return Q})),r.d(n,"updateTwitterPlayerUrl",(function(){return Z})),r.d(n,"updateTwitterPlayerSize",(function(){return X})),r.d(n,"updateTwitterPlayerStreamUrl",(function(){return Y})),r.d(n,"updateTwitterPlayerStreamCtype",(function(){return ee})),r.d(n,"updateTwitterAppDescription",(function(){return te})),r.d(n,"updateTwitterAppIphoneID",(function(){return re})),r.d(n,"updateTwitterAppIphoneName",(function(){return ne})),r.d(n,"updateTwitterAppIphoneUrl",(function(){return ae})),r.d(n,"updateTwitterAppIpadID",(function(){return ie})),r.d(n,"updateTwitterAppIpadName",(function(){return oe})),r.d(n,"updateTwitterAppIpadUrl",(function(){return se})),r.d(n,"updateTwitterAppGoogleplayID",(function(){return ce})),r.d(n,"updateTwitterAppGoogleplayName",(function(){return ue})),r.d(n,"updateTwitterAppGoogleplayUrl",(function(){return le})),r.d(n,"updateTwitterAppCountry",(function(){return de})),r.d(n,"toggleLoaded",(function(){return pe})),r.d(n,"updateSelectedKeyword",(function(){return he})),r.d(n,"refreshResults",(function(){return fe})),r.d(n,"setVersion",(function(){return me})),r.d(n,"toggleIsDiviPageSettingsBarActive",(function(){return ge})),r.d(n,"toggleIsDiviRankMathModalActive",(function(){return ke})),r.d(n,"toggleSchemaEditor",(function(){return Pe})),r.d(n,"toggleSchemaTemplates",(function(){return je})),r.d(n,"schemaUpdated",(function(){return Ie})),r.d(n,"setEditingSchemaId",(function(){return Se})),r.d(n,"setEditorTab",(function(){return De})),r.d(n,"setTemplateTab",(function(){return Ce})),r.d(n,"updateEditSchemas",(function(){return Me})),r.d(n,"updateSchemas",(function(){return Ee})),r.d(n,"updateEditSchema",(function(){return xe})),r.d(n,"saveSchema",(function(){return Ae})),r.d(n,"deleteSchema",(function(){return Fe})),r.d(n,"saveTemplate",(function(){return Ue}));var a={};r.r(a),r.d(a,"appData",(function(){return ze})),r.d(a,"appUi",(function(){return Je}));var i={};r.r(i),r.d(i,"getAppData",(function(){return qe})),r.d(i,"getDirtyMetadata",(function(){return Qe})),r.d(i,"getAnalysisScore",(function(){return Ze})),r.d(i,"getKeywords",(function(){return Xe})),r.d(i,"getPillarContent",(function(){return Ye})),r.d(i,"getRobots",(function(){return et})),r.d(i,"getAdvancedRobots",(function(){return tt})),r.d(i,"getCanonicalUrl",(function(){return rt})),r.d(i,"getBreadcrumbTitle",(function(){return nt})),r.d(i,"getRichSnippets",(function(){return at})),r.d(i,"getShowScoreFrontend",(function(){return it})),r.d(i,"isLoaded",(function(){return ot})),r.d(i,"getSelectedKeyword",(function(){return st})),r.d(i,"isRefreshing",(function(){return ct})),r.d(i,"isPro",(function(){return ut})),r.d(i,"isDiviPageSettingsBarActive",(function(){return lt})),r.d(i,"isDiviRankMathModalActive",(function(){return dt})),r.d(i,"getFacebookTitle",(function(){return pt})),r.d(i,"getFacebookDescription",(function(){return ht})),r.d(i,"getFacebookAuthor",(function(){return ft})),r.d(i,"getFacebookImageID",(function(){return mt})),r.d(i,"getFacebookImage",(function(){return gt})),r.d(i,"getFacebookHasOverlay",(function(){return kt})),r.d(i,"getFacebookImageOverlay",(function(){return vt})),r.d(i,"getPostID",(function(){return yt})),r.d(i,"getTitle",(function(){return bt})),r.d(i,"getPermalink",(function(){return wt})),r.d(i,"getDescription",(function(){return _t})),r.d(i,"getFeaturedImage",(function(){return Ot})),r.d(i,"getFeaturedImageHtml",(function(){return Tt})),r.d(i,"getPrimaryTermID",(function(){return Pt})),r.d(i,"getRedirectionID",(function(){return jt})),r.d(i,"getRedirectionType",(function(){return It})),r.d(i,"getRedirectionUrl",(function(){return St})),r.d(i,"getRedirectionItem",(function(){return Dt})),r.d(i,"hasRedirect",(function(){return Ct})),r.d(i,"getSerpTitle",(function(){return Et})),r.d(i,"getSerpDescription",(function(){return xt})),r.d(i,"isSnippetEditorOpen",(function(){return At})),r.d(i,"getSnippetPreviewType",(function(){return Ft})),r.d(i,"isTrendsCtaOpen",(function(){return Ut})),r.d(i,"isSchemaEditorOpen",(function(){return Rt})),r.d(i,"isSchemaTemplatesOpen",(function(){return Kt})),r.d(i,"hasSchemaUpdated",(function(){return Nt})),r.d(i,"getSchemas",(function(){return Ht})),r.d(i,"getEditSchemas",(function(){return Wt})),r.d(i,"getEditingSchema",(function(){return Gt})),r.d(i,"getPreviewSchema",(function(){return zt})),r.d(i,"getEditorTab",(function(){return Lt})),r.d(i,"getTemplateTab",(function(){return Bt})),r.d(i,"getTwitterUseFacebook",(function(){return Vt})),r.d(i,"getTwitterCardType",(function(){return $t})),r.d(i,"getTwitterTitle",(function(){return Jt})),r.d(i,"getTwitterDescription",(function(){return qt})),r.d(i,"getTwitterAuthor",(function(){return Qt})),r.d(i,"getTwitterImageID",(function(){return Zt})),r.d(i,"getTwitterImage",(function(){return Xt})),r.d(i,"getTwitterHasOverlay",(function(){return Yt})),r.d(i,"getTwitterImageOverlay",(function(){return er})),r.d(i,"getTwitterAppDescription",(function(){return tr})),r.d(i,"getTwitterAppIphoneID",(function(){return rr})),r.d(i,"getTwitterAppIphoneName",(function(){return nr})),r.d(i,"getTwitterAppIphoneUrl",(function(){return ar})),r.d(i,"getTwitterAppIpadID",(function(){return ir})),r.d(i,"getTwitterAppIpadName",(function(){return or})),r.d(i,"getTwitterAppIpadUrl",(function(){return sr})),r.d(i,"getTwitterAppGoogleplayID",(function(){return cr})),r.d(i,"getTwitterAppGoogleplayName",(function(){return ur})),r.d(i,"getTwitterAppGoogleplayUrl",(function(){return lr})),r.d(i,"getTwitterAppCountry",(function(){return dr})),r.d(i,"getTwitterPlayerUrl",(function(){return pr})),r.d(i,"getTwitterPlayerSize",(function(){return hr})),r.d(i,"getTwitterPlayerStream",(function(){return fr})),r.d(i,"getTwitterPlayerStreamCtype",(function(){return mr}));var o=r(4),s=r(9),c=r(6);function u(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(c.applyFilters)("rank_math_sanitize_data",t,e,r),null!==n&&(n=Object(c.applyFilters)("rank_math_sanitize_meta_value",n,e,r)),n=null===n?t:n,Object(c.doAction)("rank_math_data_changed",e,t,r),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:r,metaValue:n}}function l(e,t){return Object(c.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function d(e){return s.a.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),u("keywords",e,"rank_math_focus_keyword")}function p(e){return u("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function h(e){return u("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function f(e){return u("score",e,"rank_math_seo_score")}function m(e){return u("canonicalUrl",e,"rank_math_canonical_url")}function g(e){return u("advancedRobots",e,"rank_math_advanced_robots")}function k(e){return u("robots",e,"rank_math_robots",Object.keys(e))}function v(e){return u("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function y(){return u("dirtyMetadata",{})}function b(e){return u("facebookTitle",e,"rank_math_facebook_title")}function w(e){return u("facebookDescription",e,"rank_math_facebook_description")}function _(e){return u("facebookImage",e,"rank_math_facebook_image")}function O(e){return u("facebookImageID",e,"rank_math_facebook_image_id")}function T(e){return u("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function P(e){return u("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function j(e){return rankMath.objectID=e,u("postID",e)}function I(e){return u("permalink",e,"permalink")}function S(e){return u("title",e,"rank_math_title")}function D(e){return u("description",e,"rank_math_description")}function C(e){return u("featuredImage",e)}function M(e,t){return u("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function E(e,t){return u(e,t)}function x(e){return l("redirectionItem",e)}function A(){return l("redirectionItem",{})}function F(e){return l("hasRedirect",e)}var U=r(25);function R(e){return e=s.a.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),l("serpTitle",e)}function K(e){return e=s.a.swap(Object(U.a)(e)),rankMathEditor.refresh("description"),l("serpDescription",e)}function N(e){return l("isSnippetEditorOpen",e)}function H(e){return l("snippetPreviewType",e)}function W(e){return l("isTrendsCtaOpen",e)}function G(e){return u("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function z(e){return u("twitterCardType",e,"rank_math_twitter_card_type")}function L(e){return u("twitterTitle",e,"rank_math_twitter_title")}function B(e){return u("twitterDescription",e,"rank_math_twitter_description")}function V(e){return u("twitterAuthor",e,"rank_math_twitter_author")}function $(e){return u("twitterImageID",e,"rank_math_twitter_image_id")}function J(e){return u("twitterImage",e,"rank_math_twitter_image")}function q(e){return u("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function Q(e){return u("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function Z(e){return u("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function X(e){return u("twitterPlayerSize",e,"rank_math_twitter_player_size")}function Y(e){return u("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function ee(e){return u("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function te(e){return u("twitterAppDescription",e,"rank_math_twitter_app_description")}function re(e){return u("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function ne(e){return u("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function ae(e){return u("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function ie(e){return u("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function oe(e){return u("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function se(e){return u("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function ce(e){return u("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function ue(e){return u("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function le(e){return u("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function de(e){return u("twitterAppCountry",e,"rank_math_twitter_app_country")}function pe(e){return l("isLoaded",e)}function he(e){return l("selectedKeyword",e)}function fe(){return l("refreshResults",Date.now())}function me(){return l("isPro",!0)}function ge(e){return l("isDiviPageSettingsBarActive",e)}function ke(e){return l("isDiviRankMathModalActive",e)}var ve=r(1),ye=r(0),be=r(15),we=r.n(be);function _e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(r),!0).forEach((function(t){Te(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_e(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Te(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pe(e){return l("isSchemaEditorOpen",e)}function je(e){return l("isSchemaTemplatesOpen",e)}function Ie(e){return l("schemaUpdated",e)}function Se(e){return l("editingSchemaId",e)}function De(e){return l("editorTab",e)}function Ce(e){return l("templateTab",e)}function Me(e){return l("editSchemas",e)}function Ee(e){return u("schemas",e)}function xe(e,t){var r=Oe({},Object(o.select)("rank-math").getEditSchemas());return r[e]=t,l("editSchemas",r)}function Ae(e,t){var r=Oe({},Object(o.select)("rank-math").getSchemas());return r[e]=t,u("schemas",r)}function Fe(e){var t=Oe({},Object(o.select)("rank-math").getSchemas());return delete t[e],Object(c.doAction)("rank_math_schema_trash",e),u("schemas",t,"rank_math_delete_"+e,"")}function Ue(e,t,r){return we()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:r}}).then((function(r){t({loading:!1,showNotice:!0,postId:r.id}),setTimeout((function(){t({showNotice:!1}),Object(ve.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(ye.__)("Edit Schema","rank-math"),window.history.pushState(null,"",r.link.replace(/&amp;/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ke(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(r),!0).forEach((function(t){Ne(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var He=rankMath.assessor.serpData,We=rankMath.assessor.hasRedirection,Ge={postID:null,title:He.title?He.title:He.titleTemplate,description:He.description,keywords:He.focusKeywords,pillarContent:He.pillarContent,featuredImage:"",permalink:!1,primaryTerm:He.primaryTerm,robots:He.robots,advancedRobots:He.advancedRobots,canonicalUrl:He.canonicalUrl,breadcrumbTitle:He.breadcrumbTitle,showScoreFrontend:He.showScoreFrontend,redirectionID:We?Object(ve.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:We?Object(ve.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:We?Object(ve.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:He.facebookTitle,facebookImage:He.facebookImage,facebookImageID:He.facebookImageID,facebookAuthor:He.facebookAuthor,facebookDescription:He.facebookDescription,facebookHasOverlay:He.facebookHasOverlay,facebookImageOverlay:He.facebookImageOverlay,twitterTitle:He.twitterTitle,twitterImage:He.twitterImage,twitterAuthor:He.twitterAuthor,twitterImageID:He.twitterImageID,twitterCardType:He.twitterCardType,twitterUseFacebook:He.twitterUseFacebook,twitterDescription:He.twitterDescription,twitterHasOverlay:He.twitterHasOverlay,twitterImageOverlay:He.twitterImageOverlay,twitterPlayerUrl:He.twitterPlayerUrl,twitterPlayerSize:He.twitterPlayerSize,twitterPlayerStream:He.twitterPlayerStream,twitterPlayerStreamCtype:He.twitterPlayerStreamCtype,twitterAppDescription:He.twitterAppDescription,twitterAppIphoneName:He.twitterAppIphoneName,twitterAppIphoneID:He.twitterAppIphoneID,twitterAppIphoneUrl:He.twitterAppIphoneUrl,twitterAppIpadName:He.twitterAppIpadName,twitterAppIpadID:He.twitterAppIpadID,twitterAppIpadUrl:He.twitterAppIpadUrl,twitterAppGoogleplayName:He.twitterAppGoogleplayName,twitterAppGoogleplayID:He.twitterAppGoogleplayID,twitterAppGoogleplayUrl:He.twitterAppGoogleplayUrl,twitterAppCountry:He.twitterAppCountry,schemas:Object(ve.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function ze(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ge,r=arguments.length>1?arguments[1]:void 0,n=Ke({},t.dirtyMetadata);return!1!==r.metaKey&&(n[r.metaKey]=r.metaValue),"RANK_MATH_APP_DATA"===r.type?"dirtyMetadata"===r.key?Ke(Ke({},t),{},{dirtyMetadata:r.value}):Ke(Ke({},t),{},(Ne(e={},r.key,r.value),Ne(e,"dirtyMetadata",n),e)):t}function Le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach((function(t){Ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $e={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(ve.isEmpty)(Object(ve.get)(rankMath.assessor,"redirection.id",""))||!Object(ve.isEmpty)(Object(ve.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1};function Je(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$e,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?Be(Be({},e),{},Ve({},t.key,t.value)):e}function qe(e){return e.appData}function Qe(e){return e.appData.dirtyMetadata}function Ze(e){return e.appData.score}function Xe(e){return e.appData.keywords}function Ye(e){return e.appData.pillarContent}function et(e){return e.appData.robots}function tt(e){return e.appData.advancedRobots}function rt(e){return e.appData.canonicalUrl}function nt(e){return e.appData.breadcrumbTitle}function at(e){return"todo"}function it(e){return e.appData.showScoreFrontend}function ot(e){return e.appUi.isLoaded}function st(e){return e.appUi.selectedKeyword}function ct(e){return e.appUi.refreshResults}function ut(e){return e.appUi.isPro}function lt(e){return e.appUi.isDiviPageSettingsBarActive}function dt(e){return e.appUi.isDiviRankMathModalActive}function pt(e){return e.appData.facebookTitle}function ht(e){return e.appData.facebookDescription}function ft(e){return e.appData.facebookAuthor}function mt(e){return e.appData.facebookImageID}function gt(e){return e.appData.facebookImage}function kt(e){return e.appData.facebookHasOverlay}function vt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function yt(e){return e.appData.postID}function bt(e){return e.appData.title}function wt(e){return e.appData.permalink}function _t(e){return e.appData.description}function Ot(e){return e.appData.featuredImage}function Tt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function Pt(e){return e.appData.primaryTerm}function jt(e){return e.appData.redirectionID}function It(e){return e.appData.redirectionType}function St(e){return e.appData.redirectionUrl}function Dt(e){return e.appUi.redirectionItem}function Ct(e){return e.appUi.hasRedirect}var Mt=r(13);function Et(e){return Object(Mt.a)(e.appUi.serpTitle)}function xt(e){return e.appUi.serpDescription}function At(e){return e.appUi.isSnippetEditorOpen}function Ft(e){return e.appUi.snippetPreviewType}function Ut(e){return e.appUi.isTrendsCtaOpen}function Rt(e){return e.appUi.isSchemaEditorOpen}function Kt(e){return e.appUi.isSchemaTemplatesOpen}function Nt(e){return e.appUi.schemaUpdated}function Ht(e){return e.appData.schemas}function Wt(e){return e.appUi.editSchemas}function Gt(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function zt(e){return e.appData.schemas[e.appUi.editingSchemaId]}function Lt(e){return e.appUi.editorTab}function Bt(e){return e.appUi.templateTab}function Vt(e){return e.appData.twitterUseFacebook}function $t(e){return e.appData.twitterCardType}function Jt(e){return e.appData.twitterTitle}function qt(e){return e.appData.twitterDescription}function Qt(e){return e.appData.twitterAuthor}function Zt(e){return e.appData.twitterImageID}function Xt(e){return e.appData.twitterImage}function Yt(e){return e.appData.twitterHasOverlay}function er(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function tr(e){return e.appData.twitterAppDescription}function rr(e){return e.appData.twitterAppIphoneID}function nr(e){return e.appData.twitterAppIphoneName}function ar(e){return e.appData.twitterAppIphoneUrl}function ir(e){return e.appData.twitterAppIpadID}function or(e){return e.appData.twitterAppIpadName}function sr(e){return e.appData.twitterAppIpadUrl}function cr(e){return e.appData.twitterAppGoogleplayID}function ur(e){return e.appData.twitterAppGoogleplayName}function lr(e){return e.appData.twitterAppGoogleplayUrl}function dr(e){return e.appData.twitterAppCountry}function pr(e){return e.appData.twitterPlayerUrl}function hr(e){return e.appData.twitterPlayerSize}function fr(e){return e.appData.twitterPlayerStream}function mr(e){return e.appData.twitterPlayerStreamCtype}var gr=Object(o.registerStore)("rank-math",{reducer:Object(o.combineReducers)(a),selectors:i,actions:n});function kr(){return gr}},,function(e,t,r){"use strict";var n=r(1);t.a=function(e,t,r,a){return""===e||Object(n.isUndefined)(t)?t:(t=Object(n.truncate)(t,{length:r,separator:a||" "})).replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"}))}},function(e,t,r){"use strict";t.a=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},,,,,function(e,t,r){"use strict";r(2);var n=r(8),a=r(1),i=r(6),o=r(9),s=r(13),c=function(e,t){return e=(e=n.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(a.truncate)(e,{length:t,separator:" "}):e};t.a=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),r=t.excerpt,u=t.content?function(e){if(Object(a.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(a.filter)(n.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==e.trim()}));if(!t.length)return"";var r=rankMathEditor.getPrimaryKeyword();if(""!==r){var i=Object(a.filter)(t,(function(e){return Object(a.includes)(e.toLowerCase(),r.toLowerCase())}));if(0<i.length)return c(i[0],160)}return c(t[0],160)}(t.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",l=Object(a.isUndefined)(r)||Object(a.isEmpty)(r)?u:r;if(o.a.setVariable("excerpt",l),o.a.setVariable("seo_description",l),""!==(e=Object(s.a)(Object(i.applyFilters)("rankMath/description",e))))return n.Helpers.cleanText(e);if(!Object(a.isUndefined)(r)&&!Object(a.isEmpty)(r))return n.Helpers.cleanText(r);var d=rankMath.assessor.serpData.descriptionTemplate;return Object(a.isUndefined)(d)||""===d?u:n.Helpers.cleanText(d)}},,,,,function(e,t,r){"use strict";var n=r(0),a=r(6);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,r,o;return t=e,(r=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(n.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(n.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(n.sprintf)(Object(n.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(n.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(t.prototype,r),o&&i(t,o),e}();t.a=o},function(e,t,r){"use strict";var n=r(1),a=r(13);function i(e,t,r){var a=0;return!1!==Object(n.get)(r,"pixelWidth",!1)&&(a=Math.min(100,Math.floor(t/r.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/r.max*100)),a)+"%"}function o(e,t){return e<=t.min||e>t.max}function s(e,t){return e<=t.minWidth||e>t.pixelWidth}t.a=function(e,t){var r=Object(a.a)(e).length,c=0,u=!1;if(!1!==Object(n.get)(t,"pixelWidth",!1)){u=!0;var l=document.createTextNode(e),d=document.createElement("span");d.appendChild(l),d.id="rank-math-width-tester",d.className=t.widthCheckerClass;var p=document.body.appendChild(d);c=document.getElementById("rank-math-width-tester").offsetWidth,p.outerHTML=""}return{left:i(r,c,t),isInvalid:o(r,t),isInvalidWidth:!!u&&s(c,t),count:r+" / "+t.max,pixelWidth:u?c+"px / "+t.pixelWidth+"px":""}}},function(e,t,r){"use strict";var n=r(0),a=r(7),i=r(5),o=r(3),s=r(4);t.a=Object(a.compose)(Object(s.withSelect)((function(e){return{isTrendsCtaOpen:e("rank-math").isTrendsCtaOpen()}})),Object(s.withDispatch)((function(e,t){return{toggleTrendsCta:function(){e("rank-math").toggleTrendsCta(!t.isTrendsCtaOpen)}}})))((function(e){var t=e.isTrendsCtaOpen,r=e.toggleTrendsCta;return wp.element.createElement(i.Fragment,null,wp.element.createElement("a",{href:"#",title:Object(n.__)("Trends","rank-math"),rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon},onClick:r}),t&&wp.element.createElement(o.Modal,{title:Object(n.__)("Google Trends","rank-math"),closeButtonLabel:Object(n.__)("Close","rank-math"),shouldCloseOnClickOutside:!0,onRequestClose:r,className:"rank-math-modal rank-math-trends-cta-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"components-panel__body rank-math-trends-cta-wrapper"},wp.element.createElement("img",{src:rankMath.trendsPreviewImage,alt:"",className:"trends-cta blurred"}),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"center"},wp.element.createElement("div",{className:"rank-math-cta-box blue-ticks width-50"},wp.element.createElement("h3",null,Object(n.__)("Track Keyword Trends","rank-math")),wp.element.createElement("ul",null,wp.element.createElement("li",null,Object(n.__)("Data fetched directly from Google","rank-math")),wp.element.createElement("li",null,Object(n.__)("Analyze search trends and compare keywords","rank-math")),wp.element.createElement("li",null,Object(n.__)("See data from a particular Country or timeframe","rank-math"))),wp.element.createElement("a",{className:"button button-primary is-green",href:rankMath.trendsUpgradeLink,rel:"noreferrer noopener",target:"_blank"},Object(n.__)("Upgrade","rank-math")))))))}))},function(e,t){e.exports=Tagify},function(e,t,r){"use strict";var n=r(1);t.a=function(e,t){var r=Object(n.round)(e/t*100);if(!(100<=r))return 49<r?"test-check-good":30<r?"test-check-ok":"test-check-bad"}},,function(e,t,r){"use strict";var n=r(1);t.a=function(){return!(Object(n.isNil)(window.wp)||Object(n.isNil)(wp.data)||Object(n.isNil)(wp.data.select("core/editor"))||!Object(n.isFunction)(wp.data.select("core/editor").getEditedPostAttribute))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r.r(t);var n=r(2),a=r.n(n),i=r(1),o=r(8),s=r(6),c=r(0);function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new o.Analyzer({i18n:c,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.promises=[],this.hooks(),this.registerRefresh()}var t,r,n;return t=e,(r=[{key:"hooks",value:function(){this.assessAll=this.assessAll.bind(this),this.assessTitle=this.assessTitle.bind(this),this.assessContent=this.assessContent.bind(this),this.assessPermalink=this.assessPermalink.bind(this),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.assessKeyword=this.assessKeyword.bind(this),this.assessThumbnail=this.assessThumbnail.bind(this),Object(s.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(s.addAction)("rank_math_init_refresh","rank-math",this.assessAll),Object(s.addAction)("rank_math_title_refresh","rank-math",this.assessTitle),Object(s.addAction)("rank_math_content_refresh","rank-math",this.assessContent,11),Object(s.addAction)("rank_math_permalink_refresh","rank-math",this.assessPermalink,11),Object(s.addAction)("rank_math_featuredImage_refresh","rank-math",this.assessThumbnail,11),Object(s.addAction)("rank_math_keyword_refresh","rank-math",this.assessKeyword,12)}},{key:"getPaper",value:function(e){var t=this.dataCollector.getData(),r=new o.Paper("",{locale:rankMath.localeFull});return r.setTitle(t.title),r.setPermalink(t.slug),r.setDescription(t.description),r.setUrl(t.permalink),r.setText(Object(s.applyFilters)("rank_math_content",t.content)),r.setKeyword(o.Helpers.removeDiacritics(e)),r.setKeywords(rankMathEditor.components.focusKeywords.getFocusKeywords()),Object(i.isUndefined)(t.featuredImage)||(r.setThumbnail(t.featuredImage.source_url),r.setThumbnailAltText(o.Helpers.removeDiacritics(t.featuredImage.alt_text))),r}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(i.debounce)((function(t){e.promises=[],Object(s.doAction)("rank_math_"+t+"_refresh"),Promise.all(e.promises).then((function(){e.refreshResults()}))}),500)}},{key:"assessAll",value:function(){var e=this;rankMathEditor.components.focusKeywords.getFocusKeywords().map((function(t,r){e.run(0===r?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests(),t,0===r)}))}},{key:"run",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=t||rankMathEditor.getSelectedKeyword();var n=this.getPaper(t);this.promises.push(this.analyzer.analyzeSome(this.filterTests(e),n).then((function(e){rankMathEditor.resultManager.update(n.getKeyword(),e,r)})))}},{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===rankMathEditor.getSelectedKeyword().toLowerCase()&&this.refreshResults()}},{key:"assessThumbnail",value:function(){this.run(["keywordInImageAlt","contentHasAssets"])}},{key:"assessKeyword",value:function(){var e=rankMathEditor.getSelectedKeyword()===rankMathEditor.getPrimaryKeyword();this.run(e?rankMath.assessor.researchesTests:this.getSecondaryKeywordTests())}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"assessTitle",value:function(){this.run(["keywordInTitle","titleHasPowerWords","titleHasNumber","titleSentiment","titleStartWithKeyword"])}},{key:"assessContent",value:function(){return this.run(["contentHasShortParagraphs","contentHasTOC","contentHasAssets","keywordDensity","keywordIn10Percent","keywordInContent","keywordInImageAlt","keywordInMetaDescription","keywordInSubheadings","lengthContent","linksHasExternals","linksHasInternal","linksNotAllExternals"])}},{key:"assessPermalink",value:function(){return this.run(["keywordInPermalink","lengthPermalink"])}},{key:"getPrimaryKeyword",value:function(){return rankMathEditor.components.focusKeywords.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return rankMathEditor.components.focusKeywords.getSelectedKeyword()}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}},{key:"refreshResults",value:function(){Object(s.doAction)("rank_math_refresh_results")}},{key:"filterTests",value:function(e){return Object(i.intersection)(e,rankMath.assessor.researchesTests)}}])&&u(t.prototype,r),n&&u(t,n),e}(),d=r(36),p=r(30);function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.methods=[],this.init=this.init.bind(this),this.refresh=this.refresh.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.init)}var t,r,n;return t=e,(r=[{key:"init",value:function(){this.methods.length&&rankMathEditor.refresh("content")}},{key:"registerPlugin",value:function(){console.warn("RankMathApp.registerPlugin is deprecated.")}},{key:"refresh",value:function(e){console.warn("RankMathApp.refresh is deprecated, use rankMathEditor.refresh()"),this.methods.push(e)}},{key:"reloadPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"content";console.warn("RankMathApp.reloadPlugin is deprecated, use rankMathEditor.refresh()"),this.refresh(t)}}])&&h(t.prototype,r),n&&h(t,n),e}(),m=r(17),g=r(4),k=r(9);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var w=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this.oldSlug=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.refresh),this.getPostAttribute=this.getPostAttribute.bind(this),this.subscribeToGutenberg()}var t,r,n;return t=e,(r=[{key:"collectGutenbergData",value:function(){return!1===this.oldSlug&&""!==this.getSlug()&&(this.oldSlug=this.getSlug()),{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getPostAttribute("content"),title:this.getPostAttribute("title"),excerpt:this.getPostAttribute("excerpt"),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return rankMath.objectID}},{key:"getPermalink",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),this._coreEditorSelect.getPermalink()}},{key:"getSlug",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),this.getPostAttribute("slug")||e}},{key:"getFeaturedImage",value:function(){var e=this.getPostAttribute("featured_media");if(this.isValidMediaId(e)){var t=Object(g.select)("core").getMedia(e);if(!Object(i.isUndefined)(t))return t}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"getPostAttribute",value:function(e){return this._coreEditorSelect||(this._coreEditorSelect=Object(g.select)("core/editor")),this._coreEditorSelect.getEditedPostAttribute(e)}},{key:"subscribeToGutenberg",value:function(){this.subscriber=Object(i.debounce)(this.refresh,500),Object(g.subscribe)(this.subscriber)}},{key:"refresh",value:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(e)}},{key:"handleEditorChange",value:function(e){var t=this,r={slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(i.isInteger)(e.id))return this.initialize?void Object(i.forEach)(r,(function(r,n){t._data[n]!==e[n]&&t[r](t._data[n])})):(this.initialize=!0,Object(i.forEach)(r,(function(e,r){t[e](t._data[r])})),void rankMathEditor.refresh("init"))}},{key:"handleSlugChange",value:function(){""!==this.getSlug()&&!1===this.oldSlug&&(this.oldSlug=this.getSlug()),rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){k.a.setVariable("title",e),k.a.setVariable("term",e),k.a.setVariable("author",e),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){k.a.setVariable("excerpt",e),k.a.setVariable("excerpt_only",e),k.a.setVariable("wc_shortdesc",e),k.a.setVariable("seo_description",e),rankMathEditor.refresh("content")}},{key:"handleFeaturedImageChange",value:function(e){this._data.featuredImage=e,rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}},{key:"updateData",value:function(e,t){this._data[e]=t}}])&&b(t.prototype,r),n&&b(t,n),e}();function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var O=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1,description:""},this.refresh=this.refresh.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.refresh),this.setup(),this.init()}var t,r,n;return t=e,(r=[{key:"init",value:function(){var e=this;this.elemTitle.on("input",Object(i.debounce)((function(){e.handleTitleChange(e.elemTitle.val())}),500)),this.elemDescription.on("input",Object(i.debounce)((function(){e.handleExcerptChange(e.elemDescription.val())}),500)),this.elemSlug.on("input",Object(i.debounce)((function(){rankMathEditor.updatePermalink(e.elemSlug.val())}),500))}},{key:"collectData",value:function(){this._data={id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return rankMath.objectID}},{key:"getTitle",value:function(){return this.elemTitle.val()}},{key:"getExcerpt",value:function(){var e=this.elemDescription.val();return k.a.setVariable("excerpt",e),k.a.setVariable("excerpt_only",e),k.a.setVariable("wc_shortdesc",e),k.a.setVariable("seo_description",e),e}},{key:"getPermalink",value:function(){return rankMath.homeUrl+"/"+this.getSlug()}},{key:"getSlug",value:function(){return this.elemSlug.val()}},{key:"getFeaturedImage",value:function(){return this.featuredImage}},{key:"refresh",value:function(){this.collectData(),rankMathEditor.refresh("init")}},{key:"handleSlugChange",value:function(e){var t=rankMathEditor.components.SerpPreview;this.elemSlug.val(e),a()("#editable-post-name").text(e),a()("#editable-post-name-full").text(e),Object(i.isUndefined)(t.serpPermalinkField)||t.serpPermalinkField.val(e),this._data.slug=this.getSlug(),this._data.permalink=this.getPermalink(),rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){k.a.setVariable("title",e),k.a.setVariable("term",e),k.a.setVariable("author",e),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(){this._data.excerpt=this.getExcerpt(),rankMathEditor.refresh("content")}},{key:"handleFeaturedImageChange",value:function(){this._data.featuredImage=this.getFeaturedImage(),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){this._data.excerpt=this.getExcerpt(),this._data.content=this.getContent(),rankMathEditor.refresh("content")}},{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?this._data[e]:this._data}},{key:"updateData",value:function(e,t){this._data[e]=t}},{key:"isTinymce",value:function(){return"undefined"!=typeof tinymce}}])&&_(t.prototype,r),n&&_(t,n),e}();function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(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 r,n=C(e);if(t){var a=C(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return D(this,r)}}function D(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var M=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}}),t&&I(e,t)}(c,e);var t,r,n,o=S(c);function c(){return P(this,c),o.apply(this,arguments)}return t=c,(r=[{key:"setup",value:function(){this.elemSlug=a()("#post_name"),this.elemTitle=a()("#title"),this.elemDescription=a()("#excerpt"),this.elemContent=a()("#content"),this.editableName=a()("#editable-post-name-full"),this.assessThumbnail=this.assessThumbnail.bind(this),Object(s.addAction)("rank_math_updated_featured_image","rank-math",this.assessThumbnail),this.events()}},{key:"getContent",value:function(){if(null!==this.elemContent&&0!==this.elemContent.length)return this.isTinymce()&&tinymce.activeEditor&&"content"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():this.elemContent.val()}},{key:"getSlug",value:function(){var e=""===this.elemSlug.val()&&this.editableName.length?this.editableName.text():this.elemSlug.val();return Object(i.isUndefined)(e)?"":e}},{key:"events",value:function(){var e=this;this.elemContent.on("input change",Object(i.debounce)((function(){e.handleContentChange()}),500)),a()(window).on("load",(function(){e.isTinymce()&&(tinymce.activeEditor&&!Object(i.isUndefined)(tinymce.editors.content)&&tinymce.editors.content.on("keyup change",Object(i.debounce)((function(){e.handleContentChange()}),500)),tinymce.editors&&!Object(i.isUndefined)(tinymce.editors.excerpt)&&tinymce.editors.excerpt.on("keyup change",Object(i.debounce)((function(){tinymce.editors.excerpt.save(),e.handleExcerptChange()}),500)))})),a()(document).on("ajaxComplete",(function(t,r,n){var i="/admin-ajax.php";if(i===n.url.substr(0-i.length)){var o="";"string"==typeof n.data&&-1!==n.data.indexOf("action=sample-permalink")&&(o=""===r.responseText?e.elemTitle.val():a()("<div>"+r.responseText+"</div>").find("#editable-post-name-full").text(),rankMathEditor.updatePermalink(o))}}))}},{key:"assessThumbnail",value:function(e){this.featuredImage={source_url:e.src,alt_text:e.alt},this.handleFeaturedImageChange(e)}}])&&j(t.prototype,r),n&&j(t,n),c}(O);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(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 r,n=K(e);if(t){var a=K(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return R(this,r)}}function R(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var N=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}}),t&&F(e,t)}(s,e);var t,r,n,o=U(s);function s(){return x(this,s),o.apply(this,arguments)}return t=s,(r=[{key:"setup",value:function(){this.elemSlug=a()("#slug"),this.elemTitle=a()("#name"),this.elemDescription=a()("#rank_math_description_editor"),this.events()}},{key:"getContent",value:function(){return null===this.elemDescription||0===this.elemDescription.length?"":this.isTinymce()&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():this.elemDescription.val()}},{key:"events",value:function(){var e=this;a()(window).on("load",(function(){e.isTinymce()&&tinymce.activeEditor&&!Object(i.isUndefined)(tinymce.editors.rank_math_description_editor)&&tinymce.editors.rank_math_description_editor.on("keyup change",Object(i.debounce)((function(){e.handleContentChange()}),500))}))}}])&&A(t.prototype,r),n&&A(t,n),s}(O);function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function z(e,t){return(z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(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 r,n=V(e);if(t){var a=V(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return B(this,r)}}function B(e,t){return!t||"object"!==H(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $=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}}),t&&z(e,t)}(o,e);var t,r,n,i=L(o);function o(){return W(this,o),i.apply(this,arguments)}return t=o,(r=[{key:"setup",value:function(){this.elemSlug=a()("#rank_math_permalink"),this.elemTitle=a()("#display_name"),this.elemDescription=a()("#description")}},{key:"getContent",value:function(){return this.elemDescription.val()}}])&&G(t.prototype,r),n&&G(t,n),o}(O),J=r(5),q=r(11),Q=r(25),Z=r(19),X=r(10),Y=r.n(X),ee=r(31);function te(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var re=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,(r=[{key:"check",value:function(e,t){this.elem=e,this.elem.closest(".cmb-td").find(".length-indicator-wrapper").length||this.wrapIndicator(t),this.updateLength(t)}},{key:"wrapIndicator",value:function(e){this.elem.closest(".cmb-td").append('<span class="'+Y()("length-indicator-wrapper",{"width-indicator":!1!==Object(i.get)(e,"pixelWidth",!1)})+'"><span class="length-count">0 / '+e.max+'</span><span class="length-indicator"><span></span></span></span>')}},{key:"updateLength",value:function(e){var t=this.elem.closest(".cmb-td").find(".length-indicator"),r=t.find(">span"),n=this.elem.closest(".cmb-td").find(".length-count"),a=Object(ee.a)(e.text,e);t.removeClass("invalid short"),r.css("left",a.left),n.text(a.count),!1!==Object(i.get)(e,"pixelWidth",!1)&&n.text(n.text()+" ("+a.pixelWidth+")"),(a.isInvalid||a.isInvalidWidth)&&t.addClass("invalid")}}])&&te(t.prototype,r),n&&te(t,n),e}();function ne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ae=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.title="",this.description="",this.lengthIndicator=new re}var t,r,n;return t=e,(r=[{key:"hooks",value:function(){this.previewDevice=this.previewDevice.bind(this),this.updatePreview=this.updatePreview.bind(this),this.updateTitlePreview=this.updateTitlePreview.bind(this),this.updatePermalinkPreview=this.updatePermalinkPreview.bind(this),this.updateDescriptionPreview=this.updateDescriptionPreview.bind(this),Object(s.addAction)("rank_math_preview_device","rank-math",this.previewDevice),Object(s.addAction)("rank_math_init_refresh","rank-math",this.updatePreview,1),Object(s.addAction)("rank_math_title_refresh","rank-math",this.updateTitlePreview,1),Object(s.addAction)("rank_math_permalink_refresh","rank-math",this.updatePermalinkPreview,1),Object(s.addAction)("rank_math_content_refresh","rank-math",this.updateDescriptionPreview,1),Object(s.addAction)("rank_math_keyword_refresh","rank-math",this.updatePreview,11)}},{key:"updatePreview",value:function(){this.updateTitlePreview(),this.updatePermalinkPreview(),this.updateDescriptionPreview()}},{key:"previewDevice",value:function(e){switch(this.devices.removeClass("active"),e){case"desktop":this.serpWrapper.removeClass("mobile-preview"),this.serpWrapper.addClass("desktop-preview expanded-preview"),rankMathEditor.elemMetabox.find(".rank-math-select-device.device-desktop").addClass("active");break;case"mobile":this.serpWrapper.removeClass("desktop-preview"),this.serpWrapper.addClass("mobile-preview expanded-preview"),rankMathEditor.elemMetabox.find(".rank-math-select-device.device-mobile").addClass("active");break;default:this.serpWrapper.removeClass("mobile-preview expanded-preview"),this.serpWrapper.addClass("desktop-preview")}}},{key:"updateTitlePreview",value:function(){this.title=this.serpTitleField.val();var e=""!==this.title;this.serpTitleField.val(e?this.title:this.serpTitle.data("format")),this.title=o.Helpers.sanitizeText(k.a.swap(""!==this.title?this.title:this.serpTitle.data("format"))),this.lengthIndicator.check(this.serpTitleField,{text:this.title,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),this.serpTitle.html(Object(Z.a)(rankMathEditor.getSelectedKeyword(),o.Helpers.sanitizeText(this.title),60)),this.updatePreviewCallbacks("title",this.title),this.serpTitle.trigger("rank-math-vars-replaced")}},{key:"updatePermalinkPreview",value:function(){var e=this.serpPermalink.data("format")||"",t=this.serpPermalinkField.val(),r=rankMathEditor.assessor.getResearch("slugify")(rankMathEditor.getSelectedKeyword());this.permalink=""!==t?e.replace(/%(postname|pagename)%/,t).trimRight("/")+"/":"",this.serpCanonical.attr("placeholder",this.permalink),this.lengthIndicator.check(this.serpPermalinkField,{text:this.permalink,min:5,max:75}),this.serpPermalink.html(Object(Z.a)(r,o.Helpers.sanitizeText(Object(q.safeDecodeURIComponent)(this.permalink)),75)),this.updatePreviewCallbacks("permalink",this.permalink),this.serpPermalink.trigger("rank-math-vars-replaced")}},{key:"updateDescriptionPreview",value:function(){this.description=o.Helpers.sanitizeText(k.a.swap(Object(Q.a)(this.serpDescriptionField.val()))),this.lengthIndicator.check(this.serpDescriptionField,{text:this.description,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),this.serpDescription.html(Object(Z.a)(rankMathEditor.getSelectedKeyword(),o.Helpers.sanitizeText(this.description),160)),this.serpDescriptionField.attr("placeholder",""!==this.description?this.description:this.serpDescription.data("format")),this.updatePreviewCallbacks("description",this.description),this.serpDescription.trigger("rank-math-vars-replaced")}}])&&ne(t.prototype,r),n&&ne(t,n),e}(),ie=r(32);function oe(e){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function se(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ce(e,t){return(ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ue(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 r,n=de(e);if(t){var a=de(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return le(this,r)}}function le(e,t){return!t||"object"!==oe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pe=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}}),t&&ce(e,t)}(c,e);var t,r,n,o=ue(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),e=o.call(this),rankMath.canUser.general?(e.hooks(),e.elemMetabox=rankMathEditor.elemMetabox,e.serpCanonical=e.elemMetabox.find("#rank_math_canonical_url"),e.serpTitleField=e.elemMetabox.find("#rank_math_title"),e.serpPermalinkField=e.elemMetabox.find("#rank_math_permalink"),e.serpDescriptionField=e.elemMetabox.find("#rank_math_description"),e.serpWrapper=e.elemMetabox.find(".serp-preview"),e.serpFieldsWrapper=e.elemMetabox.find(".rank-math-serp-fields-wrapper"),e.serpTitle=e.serpWrapper.find(".serp-title"),e.serpPermalink=e.serpWrapper.find(".serp-url"),e.serpDescription=e.serpWrapper.find(".serp-description"),e.devices=e.elemMetabox.find(".rank-math-select-device"),e.init(),e):le(e)}return t=c,(r=[{key:"init",value:function(){this.previewEvent(),this.updateEvents(),this.serpEvents(),this.trendEvents(),this.robotsEvents()}},{key:"previewEvent",value:function(){this.devices.on("click",(function(e){e.preventDefault();var t=a()(e.currentTarget),r=t.hasClass("active")?"":t.data("device");Object(s.doAction)("rank_math_preview_device",r)}))}},{key:"serpEvents",value:function(){var e=this,t=this.elemMetabox.find(".rank-math-edit-snippet");t.on("click",(function(r){r.preventDefault(),t.toggleClass("hidden active"),e.serpFieldsWrapper.toggleClass("hidden")})),this.elemMetabox.on("click",".serp-preview-body",(function(r){r.preventDefault(),t.toggleClass("hidden active"),e.serpFieldsWrapper.toggleClass("hidden")}))}},{key:"trendEvents",value:function(){rankMath.isPro||setTimeout((function(){Object(J.render)(Object(J.createElement)(ie.a),document.getElementById("rank-math-trends-tool-preview"))}),1e3)}},{key:"updateEvents",value:function(){var e=this;this.serpTitleField.on("input",Object(i.debounce)((function(){rankMathEditor.refresh("title")}),500)).on("keypress",(function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),a()(e.target).closest(".cmb-row").prev().trigger("click"),!1})),this.serpPermalinkField.val(rankMathEditor.assessor.dataCollector.getSlug()).on("blur",(function(){rankMathEditor.updatePermalink(e.serpPermalinkField.val())})).on("input",Object(i.debounce)((function(){e.updatePermalinkPreview()}),500)).on("keypress",(function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),a()(e.target).closest(".cmb-row").prev().trigger("click"),!1})),rankMath.is_front_page&&this.serpPermalinkField.val("/").attr("disabled","disabled"),this.serpDescriptionField.on("input",Object(i.debounce)((function(){rankMathEditor.refresh("content")}),500)).on("keypress",(function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),a()(e.target).closest(".cmb-row").prev().trigger("click"),!1}))}},{key:"updatePreviewCallbacks",value:function(e,t){e=e||"global",rankMathEditor.assessor.dataCollector.updateData(e,t),this.elemMetabox.trigger("rank-math-updating-preview-"+e),this.elemMetabox.trigger("rank-math-"+e+"-updated",t)}},{key:"robotsEvents",value:function(){var e=this,t=a()("#rank_math_robots1"),r=a()("#rank_math_robots2");t.on("change",(function(){t.is(":checked")?(e.serpWrapper.addClass("noindex-preview"),r.prop("checked",!1).trigger("change")):e.serpWrapper.removeClass("noindex-preview")})),r.on("change",(function(){if(r.is(":checked"))return e.serpWrapper.addClass("noindex-preview"),void t.prop("checked",!1);e.serpWrapper.removeClass("noindex-preview")})).trigger("change")}}])&&se(t.prototype,r),n&&se(t,n),c}(ae),he=r(13);function fe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var me=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elemMetabox=rankMathEditor.elemMetabox,this.currentNetwork="facebook",this.useFacebook=!0,this.shouldUpdatePreview=!1,this.facebookTitleField=this.elemMetabox.find("#rank_math_facebook_title"),this.facebookDescriptionField=this.elemMetabox.find("#rank_math_facebook_description"),this.twitterTitleField=this.elemMetabox.find("#rank_math_twitter_title"),this.twitterDescriptionField=this.elemMetabox.find("#rank_math_twitter_description"),this.facebookImageField=this.elemMetabox.find("#rank_math_facebook_image"),this.twitterImageField=this.elemMetabox.find("#rank_math_twitter_image"),this.facebookImageStatus=this.elemMetabox.find("#rank_math_facebook_image-status"),this.twitterImageStatus=this.elemMetabox.find("#rank_math_twitter_image-status"),this.socialWrapper=this.elemMetabox.find(".rank-math-social-preview"),this.socialPreview=this.socialWrapper.find(".rank-math-social-preview-item"),this.socialTitle=this.socialWrapper.find(".rank-math-social-preview-title"),this.socialDescription=this.socialWrapper.find(".rank-math-social-preview-description"),this.events(),this.removeImageEvent(),this.shouldUpdatePreview=!0,this.updateTitlePreview=this.updateTitlePreview.bind(this),this.updateDescriptionPreview=this.updateDescriptionPreview.bind(this),this.updateThumbnailPreview=this.updateThumbnailPreview.bind(this),this.updatePreview=this.updatePreview.bind(this),Object(s.addAction)("rank_math_init_refresh","rank-math",this.updatePreview),Object(s.addAction)("rank_math_title_refresh","rank-math",this.updateTitlePreview,2),Object(s.addAction)("rank_math_content_refresh","rank-math",this.updateDescriptionPreview,2),Object(s.addAction)("rank_math_featuredImage_refresh","rank-math",this.updateThumbnailPreview),this.updatePreview()}var t,r,n;return t=e,(r=[{key:"events",value:function(){var e=this;this.facebookTitleField.on("input",(function(){e.updateTitlePreview()})),this.facebookDescriptionField.on("input",(function(){e.updateDescriptionPreview()})),this.facebookImageField.on("input",(function(){e.updateThumbnailPreview()})),this.twitterTitleField.on("input",(function(){e.updateTitlePreview()})),this.twitterDescriptionField.on("input",(function(){e.updateDescriptionPreview()})),this.twitterImageField.on("input",(function(){e.updateThumbnailPreview()}));var t=a()(".rank-math-social-preview-button"),r=t.find(">span");t.on("click",(function(t){t.preventDefault(),r.toggleClass("dashicons-arrow-down dashicons-arrow-up"),e.updatePreview(),e.socialWrapper.toggleClass("open"),e.socialPreview.slideToggle()}));var n=a()("#rank_math_twitter_card_type");a()(".preview-network").on("click",(function(r){a()(r.target).hasClass("tab-facebook")?t.show():n.trigger("change"),e.updatePreview()})),n.on("change",(function(){var r=n.val();"player"===r&&a()(".cmb2-id-rank-math-twitter-image, .cmb2-id-rank-math-twitter-title, .cmb2-id-rank-math-twitter-description").show();var i="player"===r||"app"===r;t.toggle(!i),a()(".cmb2-id-rank-math-twitter-use-facebook").toggle(!i),i||e.updatePreview()})).trigger("change");var i=a()("#rank_math_twitter_use_facebook");i.on("input change",(function(){e.useFacebook=i.is(":checked"),e.updatePreview()})).trigger("change"),a()(".cmb2-id-rank-math-facebook-enable-image-overlay, .cmb2-id-rank-math-facebook-image-overlay, .cmb2-id-rank-math-twitter-enable-image-overlay, .cmb2-id-rank-math-twitter-image-overlay").on("change","input",(function(){e.updateThumbnailOverlay()})),a()(document).on("cmb_media_modal_select",(function(t,r,n){"rank_math_facebook_image"!==n.field&&"rank_math_twitter_image"!==n.field||(e.updateThumbnailPreview(),e.removeImageEvent())}))}},{key:"removeImageEvent",value:function(){var e=this;a()(".cmb2-remove-file-button").on("click",Object(i.debounce)((function(t){"rank_math_facebook_image"!==t.currentTarget.rel&&"rank_math_twitter_image"!==t.currentTarget.rel||e.updateThumbnailPreview()}),300))}},{key:"updatePreview",value:function(){!1!==this.shouldUpdatePreview&&a()(".preview-network.tab-active").length&&(this.currentNetwork=a()(".preview-network.tab-active").attr("href").replace("#setting-panel-social-",""),this.socialWrapper.removeClass(),this.socialWrapper.addClass("rank-math-social-preview rank-math-social-preview-"+this.currentNetwork),"twitter"===this.currentNetwork&&this.socialWrapper.addClass(a()("#rank_math_twitter_card_type").val()),this.updateTitlePreview(),this.updateDescriptionPreview(),this.updateThumbnailPreview())}},{key:"updateTitlePreview",value:function(){var e="twitter"===this.currentNetwork&&this.useFacebook?this.facebookTitleField.val():this[this.currentNetwork+"TitleField"].val();""!==e?e=this.truncate(k.a.swap(e),90):(e=Object(he.a)(rankMathEditor.assessor.dataCollector.getData("title")),this.facebookTitleField.attr("placeholder",e),this.twitterTitleField.attr("placeholder",e)),this.socialTitle.text(e),"facebook"===this.currentNetwork&&this.hideDescription()}},{key:"updateDescriptionPreview",value:function(){var e="twitter"===this.currentNetwork&&this.useFacebook?this.facebookDescriptionField.val():this[this.currentNetwork+"DescriptionField"].val();""!==e?e=this.truncate(k.a.swap(e),240):(e=rankMathEditor.assessor.dataCollector.getData("description"),this.facebookDescriptionField.attr("placeholder",e),this.twitterDescriptionField.attr("placeholder",e)),this.socialDescription.text(Object(i.isUndefined)(e)?"":e)}},{key:"updateThumbnailPreview",value:function(){var e=a()("#rank_math_post_thumbnail").attr("src"),t="<div>"+rankMathEditor.assessor.dataCollector.getData("content")+"</div>",r=!!/<img(?:[^>]+)?>/.test(t)&&a()(t).find("img:first").attr("src"),n=this.facebookImageField.val()||e||r||rankMath.defautOgImage,i=this.twitterImageField.val()||e||r||rankMath.defautOgImage;if("twitter"===this.currentNetwork&&this.useFacebook)i=n;else if(this.twitterImageStatus.find("img.cmb-file-field-image").length){var o=this.twitterImageStatus.siblings(".notice"),s=this.twitterImageStatus.find("img.cmb-file-field-image")[0];o.addClass("hidden"),a()(s).on("load",(function(){(200>s.naturalWidth||200>s.naturalHeight)&&o.removeClass("hidden")}))}var c=this.facebookImageStatus.siblings(".notice"),u=this.facebookImageStatus.find("img.cmb-file-field-image");c.addClass("hidden"),"facebook"===this.currentNetwork&&this.facebookImageField.val()&&u.length&&a()(u[0]).on("load",(function(){(200>u[0].naturalWidth||200>u[0].naturalHeight)&&c.removeClass("hidden")}));var l=a()(".rank-math-social-preview-image");a()(".facebook-thumbnail",l).attr("src",n),a()(".twitter-thumbnail",l).attr("src",i),l.toggleClass("no-facebook-image",!n),l.toggleClass("no-twitter-image",!i),l.parents(".rank-math-social-preview-facebook").find(".error-msg").toggleClass("show",!n),l.parents(".rank-math-social-preview-twitter").find(".error-msg").toggleClass("show",!i),this.updateThumbnailOverlay()}},{key:"updateThumbnailOverlay",value:function(){var e=a()(".rank-math-social-preview-image-overlay"),t=a()('[name="rank_math_'+this.currentNetwork+'_enable_image_overlay"]:checked').val(),r=!a()(".rank-math-social-preview-image").hasClass("no-"+this.currentNetwork+"-image"),n=a()('[name="rank_math_'+this.currentNetwork+'_image_overlay"]:checked').val();"twitter"===this.currentNetwork&&this.useFacebook&&(n=a()('[name="rank_math_facebook_image_overlay"]:checked').val(),r=!1);var i=a()(".cmb2-id-rank-math-"+this.currentNetwork+"-enable-image-overlay"),o="on"===i.find("input:checked").val();i.toggle(r),i.find(".notice-warning").toggle(o),"on"===t?(e.attr("src",rankMath.overlayImages[n].url).attr("class",(function(){return a()(this).attr("class").replace(/(^| )overlay-position-[a-zA-Z0-9_-]+/,"")+" overlay-position-"+rankMath.overlayImages[n].position})).show(),a()(".cmb2-id-rank-math-"+this.currentNetwork+"-image-overlay").toggle(r)):e.hide()}},{key:"hideDescription",value:function(){this.socialDescription.removeClass("hidden"),this.socialTitle.height()>22&&this.socialDescription.addClass("hidden")}},{key:"truncate",value:function(e,t){return e.length>t?e.substring(0,t):e}}])&&fe(t.prototype,r),n&&fe(t,n),e}();var ge=function e(){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"post"===rankMath.objectType){var t=a()('.rank-math-tabs-navigation a[href="#setting-panel-schema"] .dashicons'),r=a()("#_bsf_post_type");if(a()('#rank_math_rich_snippet, input[type="radio"][name="rank_math_rich_snippet"]').on("change",(function(){var e,n="rank_math_rich_snippet"===a()(this).attr("id")?a()(this).val():a()('input[type="radio"][name="rank_math_rich_snippet"]:checked').val();t.removeClass().addClass((e=n,Object(i.get)({off:"rm-icon rm-icon-schema",Article:"rm-icon rm-icon-post",Book:"rm-icon rm-icon-book",Course:"rm-icon rm-icon-course",Event:"rm-icon rm-icon-calendar",JobPosting:"rm-icon rm-icon-job",Local:"rm-icon rm-icon-local-seo",Music:"rm-icon rm-icon-music",Product:"rm-icon rm-icon-cart",WooCommerceProduct:"rm-icon rm-icon-cart",Recipe:"rm-icon rm-icon-recipe",Restaurant:"rm-icon rm-icon-restaurant",Video:"rm-icon rm-icon-video",Person:"rm-icon rm-icon-users",Review:"rm-icon rm-icon-star",Service:"rm-icon rm-icon-service",Software:"rm-icon rm-icon-software"},e,"rm-icon rm-icon-schema"))),r.length&&"off"!==n&&r.val("0").trigger("change")})).trigger("change"),r.length){var n=a()("#rank_math_rich_snippet"),o=a()('input[name="rank_math_rich_snippet"][value="off"]');r.on("change",(function(){"0"!==r.val()&&(n.val("off").trigger("change"),o.prop("checked",!0).trigger("change"))})).trigger("change")}}};function ke(e){return(ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ve=function e(){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"post"===rankMath.objectType&&rankMath.postSettings.linkSuggestions){a.a.fn.extend({insertLink:function(e,t){var r=this[0],n="";if(r.selectionStart||"0"===r.selectionStart){var a=r.selectionStart,i=r.selectionEnd,o=r.scrollTop;n='<a href="'+e+'">'+r.value.substring(a,i)+"</a>",a===i&&(n='<a href="'+e+'">'+t+"</a>"),r.value=r.value.substring(0,a)+n+r.value.substring(i,r.value.length),r.focus(),r.selectionStart=a+n.length,r.selectionEnd=a+n.length,r.scrollTop=o}else n='<a href="'+e+'">'+t+"</a>",r.value+=n,r.focus()}});if("function"==typeof ClipboardJS)new ClipboardJS(".suggestion-copy").on("success",(function(e){var t=a()(e.trigger).parent().next(".suggestion-title"),r=t.html();t.text("Link Copied"),setTimeout((function(){t.html(r)}),1500)}));if("object"!==("undefined"==typeof tinymce?"undefined":ke(tinymce)))return!0;var t=null,r=null;a()(".suggestion-insert").on("click",(function(e){e.preventDefault();var n,i,o,s,c=a()(this);if(c.hasClass("clicked"))return!0;if(null!==tinymce.activeEditor&&!0!==tinymce.activeEditor.isHidden()){t=tinymce.activeEditor,r=a()(t.getBody());var u=t.selection.getContent()||"";if(r.find("a[data-mce-selected]").length){var l=(n="",i="",o=t.selection.getStart(),(s=t.dom.getParent(o,"a[href]"))||(i=t.selection.getContent({format:"raw"}))&&-1!==i.indexOf("</a>")&&((n=i.match(/href="([^">]+)"/))&&n[1]&&(s=t.$('a[href="'+n[1]+'"]',o)[0]),s&&t.selection.select(s)),s);t.dom.setAttribs(l,{href:c.data("url")}),a()(l).text()!==u&&t.insertContent(u)}else u.length?t.insertContent('<a href="'+c.data("url")+'">'+u+"</a>"):t.insertContent('<a href="'+c.data("url")+'">'+c.data("text")+"</a>")}else{var d=a()("textarea.wp-editor-area:visible");d.length&&d.first().insertLink(c.data("url"),c.data("text"))}var p=c.closest(".suggestion-item").find(".suggestion-title"),h=p.html();p.text("Link Inserted"),c.addClass("clicked"),setTimeout((function(){var e,t,r,n;p.html(h),c.removeClass("clicked"),!0===rankMath.postSettings.useFocusKeyword&&(t=c,r=(e=p).data("fkcount")||0,n=e.data("fk"),(r+=1)===n.length&&(r=0),e.find(">a").text(n[r]),e.data("fkcount",r),t.data("text",n[r]))}),1500)})),a()("#rank_math_metabox_link_suggestions").find("h2").append(a()("#rank-math-link-suggestions-tooltip").html())}};var ye=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"post"===rankMath.objectType&&!1!==rankMath.assessor.primaryTaxonomy&&a()("[data-primary-term]").each((function(){var e=a()(this),t=e.val(),r=e.data("primary-term"),n=a()("#"+r+"div"),i=a()("#"+r+"checklist"),o=i.find("li"),s=i.find('input[type="checkbox"]:checked');o.addClass("rank-math-primary-term-li"),o.find("input").each((function(){var e=a()(this);e.parent().append('<span class="rank-math-tooltip"><input class="rank-math-make-primary" value="'+e.val()+'" type="radio" name="rank_math_primary_'+r+'"><span>Make Term Primary</span></span>')})),s.each((function(){var e=a()(this).closest("li");e.addClass("term-checked"),r+"-"+t===e.attr("id")&&(e.addClass("term-marked-primary"),e.find(">label .rank-math-make-primary").prop("checked",!0))})),n.on("click",'input[type="checkbox"]',(function(){var t=a()(this).closest("li");if(t.toggleClass("term-checked"),1===i.find("li.term-checked").length||t.hasClass("term-marked-primary")&&!t.hasClass("term-checked")){var r=i.find("li.term-checked:first > label .rank-math-make-primary");0<r.length?r.trigger("click"):(o.removeClass("term-marked-primary"),o.find('input[type="radio"]').prop("checked",!1),e.val(""))}})),n.on("click",".rank-math-make-primary",(function(){var t=a()(this),r=t.closest("li");o.removeClass("term-marked-primary"),r.addClass("term-marked-primary"),e.val(t.val())})),i.on("wpListAddEnd",(function(){i.find("li:not(.rank-math-primary-term-li)").addClass("rank-math-primary-term-li term-checked").find("input").each((function(){var e=a()(this);e.parent().append('<span class="rank-math-tooltip"><input class="rank-math-make-primary" value="'+e.val()+'" type="radio" name="rank_math_primary_'+r+'"><span>Make Term Primary</span></span>')}))}))}))},be=r(33),we=r.n(be),_e=r(20);function Oe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Te=function(){function e(){var t=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.canUser.general){this.elem=a()("#rank_math_focus_keyword"),this.elemWrapper=this.elem.parent(),this.clickCount=0,this.selectedKeyword={};var r={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this)};rankMath.isUserRegistered&&(r.input=Object(i.debounce)(this.onInput.bind(this),300)),this.tagify=new we.a(this.elem[0],{addTagOnBlur:!0,maxTags:"post"===rankMath.objectType?rankMath.maxTags:1,whitelist:this.whitelist||[],transformTag:function(e){e.value=t.stripTags(e.value)},templates:{tag:function(e,r){return"<tag title='".concat(t.stripTags(e),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(r.class?r.class:"","'\n ").concat(t.getAttributes_esc(r),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(t.stripTags(e),"</span>\n </div>\n </tag>")}},callbacks:r}),this.selectFirstKeyword(),this.setKeywordsClasses=this.setKeywordsClasses.bind(this),Object(s.addAction)("rank_math_refresh_results","rank-math",this.setKeywordsClasses,11)}}var t,r,n;return t=e,(r=[{key:"onInput",value:function(e){var t=this;(e=Object(i.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hasAdded?this.hasAdded=!1:this.request=a.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(r){if(t.hasAdded)t.hasAdded=!1;else{var n=a.a.map(r,(function(e){return e}));t.tagify.settings.whitelist=n,t.tagify.dropdown.show.call(t.tagify,e)}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,e.detail.tag.classList.add("bad-fk"),this.updateSelectedKeyword(e.detail),this.updateKeywords()}},{key:"onRemove",value:function(e){0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){this.updateSelectedKeyword(e.detail),setTimeout((function(){Object(s.doAction)("rank_math_refresh_results")}),500)}},{key:"onEdit",value:function(e){e.detail.tag.setAttribute("value",e.detail.data.value),this.hasAdded=!0,this.updateKeywords()}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"updateSelectedKeyword",value:function(e){this.elemWrapper.find("tag.selected").removeClass("selected"),""!==e.tag?(this.selectedKeyword=e,e.tag.classList.add("selected")):this.selectedKeyword={}}},{key:"setKeywordsClasses",value:function(){if(void 0!==this.tagify.value){var e=this.tagify.value;if(e.length>0){var t=this.elemWrapper.find("tag");e.map((function(e,r){var n=rankMathEditor.resultManager.getScore(o.Helpers.removeDiacritics(e.value));t[r].classList.remove("ok-fk","good-fk","bad-fk"),t[r].classList.add(Object(_e.a)(n))}))}}}},{key:"selectFirstKeyword",value:function(){var e=this.elemWrapper.find("tag"),t={tag:"",index:0,data:{value:""}};e.length>0&&(t={tag:e[0],index:0,data:{value:e[0].getAttribute("value")}}),this.updateSelectedKeyword(t)}},{key:"updateKeywords",value:function(){rankMathEditor.refresh("keyword")}},{key:"getFocusKeywords",value:function(){if(void 0===this.tagify||void 0===this.tagify.value)return[""];var e=this.tagify.value.map((function(e){return e.value}));return e.length?e:[""]}},{key:"getSelectedKeyword",value:function(){return Object(i.get)(this.selectedKeyword,["data","value"],"")}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,r,n=Object.keys(e),a="";for(r=n.length;r--;)"class"!=(t=n[r])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=jQuery("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||"(invalid)"}}])&&Oe(t.prototype,r),n&&Oe(t,n),e}();function Pe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var je=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.image_src="",this.image_alt="",this.getFeaturedImage(),this.setImage(),this.removeImage(),Object(d.a)()&&this.gutenbergImage()}var t,r,n;return t=e,(r=[{key:"setImage",value:function(){var e=this;if(!Object(i.isUndefined)(wp.media)){var t=wp.media.featuredImage.frame();t.on("select",(function(){var r=a()("#rank_math_post_thumbnail"),n=t.state().get("selection").first().toJSON();e.sizeWarning(n),1>r.length&&(r=a()('<img id="rank_math_post_thumbnail" />'),a()(".facebook-thumbnail",".rank-math-social-preview-image").before(r)),"large"in n.sizes?r.attr("src",n.sizes.large.url):r.attr("src",n.sizes.full.url),e.setFeaturedImage(n)}))}}},{key:"removeImage",value:function(){var e=this;a()("#postimagediv").on("click","#remove-post-thumbnail",(function(){a()("#rank_math_image_warning").remove(),a()("#rank_math_post_thumbnail").remove(),e.setFeaturedImage("")}))}},{key:"gutenbergImage",value:function(){var e,t,r=this;wp.data.subscribe((function(){var n=wp.data.select("core/editor").getEditedPostAttribute("featured_media");r.isValidMediaId(n)&&(e=wp.data.select("core").getMedia(n),Object(i.isUndefined)(e)||e!==t&&(t=e,r.setFeaturedImage({url:e.guid.rendered,alt:e.alt_text})))}))}},{key:"setFeaturedImage",value:function(e){var t={src:Object(i.get)(e,"url",""),alt:Object(i.get)(e,"alt","")};Object(s.doAction)("rank_math_updated_featured_image",t)}},{key:"sizeWarning",value:function(e){if(a()("#rank_math_image_warning").remove(),!(200<e.width&&200<e.height)){var t=a()("#postimagediv").find(".hndle");a()('<div id="rank_math_image_warning" class="notice notice-error notice-alt"><p>'+rankMath.featuredImageNotice+"</p></div>").insertAfter(t)}}},{key:"getFeaturedImage",value:function(){var e=a()("#postimagediv img");if(!e||e.length){var t={url:e[0].src,alt:e[0].alt};this.setFeaturedImage(t)}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}}])&&Pe(t.prototype,r),n&&Pe(t,n),e}(),Ie=r(34);function Se(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var De=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.canUser.analysis&&(a()("#setting-panel-general").append('<div id="rank-math-serp-checklist" class="rank-math-serp-checklist"></div>'),this.elem=a()("#rank-math-serp-checklist"),this.scoreText=rankMath.showScore?'<span class="score-text"><span class="score-icon"><svg viewBox="0 0 460 460" xmlns="http://www.w3.org/2000/svg" width="20"><g><path d="m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z"/><path d="m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z"/></g></svg></span> SEO: <strong>Not available</strong></span>':"",this.fkScoreText=rankMath.showScore?'<span class="score-text">Not available</span>':"",this.scoreElem=a()('<div class="misc-pub-section rank-math-seo-score loading">'+this.scoreText+"</div>"),this.scoreText=this.scoreElem.find("strong"),this.scoreField=a()("#rank_math_seo_score"),this.fkScoreElem=a()('<div class="rank-math-seo-score loading below-focus-keyword">'+this.fkScoreText+"</div>"),this.fkScoreText=this.fkScoreElem.find("span"),a()("#misc-publishing-actions").append(this.scoreElem),a()(".cmb-td",".cmb2-id-rank-math-focus-keyword").append(this.fkScoreElem),this.events(),this.refreshResults=this.refreshResults.bind(this),Object(s.addAction)("rank_math_refresh_results","rank-math",this.refreshResults))}var t,r,n;return t=e,(r=[{key:"events",value:function(){var e=this;this.elem.on("click",".group-handle",(function(t){t.preventDefault();var r=a()(t.target),n={},i=r.closest(".rank-math-serp-group");i.toggleClass("state-open state-closed"),e.elem.find(">.rank-math-serp-group").each((function(){i=a()(this),n[i.data("id")]=i.hasClass("state-closed")?"closed":"open"})),a.a.ajax({url:rankMath.ajaxurl,type:"POST",data:{action:"rank_math_save_checklist_layout",security:rankMath.security,layout:n}})}))}},{key:"refreshResults",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();if(this.isPrimary=t===rankMathEditor.getPrimaryKeyword(),this.results=rankMathEditor.resultManager.getResult(t),Object(i.isUndefined)(this.results))return null;var r=Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}));this.elem.html(r),this.updateScore()}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e),r="basic"===e||a()("#rank-math-serp-group-"+e).hasClass("state-open")?"state-open":"state-closed",n=0===this.errors?"test-ok":"test-fail",i=Object(c.__)("All Good","rank-math");return 0<this.errors&&(i=1===this.errors?this.errors+" "+Object(c.__)("Error","rank-math"):this.errors+" "+Object(c.__)("Errors","rank-math")),'\n\t\t<div id="rank-math-serp-group-'.concat(e,'" class="rank-math-serp-group ').concat(r,'" data-id="').concat(e,'">\n\t\t\t<div class="group-handle">\n\t\t\t\t<h4>').concat(this.getGroupTitle(e),'</h4>\n\t\t\t\t<span class="rank-math-group-score ').concat(n,'">').concat(i,'</span>\n\t\t\t\t<button type="button" class="group-handlediv" aria-expanded="true"><span class="screen-reader-text"></span><span class="toggle-indicator"></span></button>\n\t\t\t</div>\n\t\t\t<ul>').concat(t,"</ul>\n\t\t</div>")}},{key:"renderGroupItems",value:function(e){var t=this,r=this.results.results,n=this.getGroupItems(e),a="";return Object.keys(n).map((function(e){if(Object(i.isUndefined)(r[e])||!t.isPrimary&&n[e])return!1;var o=r[e],s="seo-check-"+e;s+=o.hasScore()?" test-ok":" test-fail",o.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(s+=" "+Object(Ie.a)(o.getScore(),o.getMaxScore())),"fleschReading"===e&&o.hasScore()&&(s+=" "+o.note.replace(/ /g,"-")),!1===o.hasScore()&&(t.errors+=1);var c=o.hasTooltip()?'<span class="rank-math-tooltip"><em class="dashicons-before dashicons-editor-help" ></em><span>'+o.getTooltip()+"</span></span>":"";a+='<li key="'.concat(e,'" class="').concat(s,'">\n\t\t\t\t\t<span>').concat(o.getText(),"</span>\n\t\t\t\t\t").concat(c,"\n\t\t\t\t</li>")})),a}},{key:"updateScore",value:function(){var e=rankMathEditor.resultManager.getScore(rankMathEditor.getPrimaryKeyword()),t=Object(_e.a)(e);this.scoreElem.removeClass("loading bad-fk ok-fk good-fk"),this.fkScoreElem.removeClass("loading bad-fk ok-fk good-fk"),this.scoreElem.addClass(t),this.fkScoreElem.addClass(t),this.scoreText.html(e+" / 100"),this.fkScoreText.html(e+" / 100"),this.scoreField.val(parseInt(e))}},{key:"getGroupItems",value:function(e){return("post"===rankMath.objectType?{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}:{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0},advanced:{titleStartWithKeyword:!0,keywordNotUsed:!0}})[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return"post"===rankMath.objectType?{basic:Object(c.__)("Basic SEO","rank-math"),advanced:Object(c.__)("Additional","rank-math"),"title-readability":Object(c.__)("Title Readability","rank-math"),"content-readability":Object(c.__)("Content Readability","rank-math")}:{basic:Object(c.__)("Basic SEO","rank-math"),advanced:Object(c.__)("Additional","rank-math")}}}])&&Se(t.prototype,r),n&&Se(t,n),e}();function Ce(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Me=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,(r=[{key:"setup",value:function(){this.elemMetabox=a()("#cmb2-metabox-rank_math_metabox"),this.resultManager=new o.ResultManager,this.assessor=new l(this.getCollector()),new p.a,this.registerComponents=this.registerComponents.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.registerComponents,1)}},{key:"registerComponents",value:function(){this.components={},this.components.SerpPreview=new pe,this.components.socialFields=new me,this.components.richSnippet=new ge,this.components.linkSuggestions=new ve,this.components.primaryTerm=new ye,this.components.focusKeywords=new Te,this.components.featuredImage=new je,this.components.checkLists=new De,rankMathAdmin.variableInserter(!1)}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"updatePermalink",value:function(e){e=this.assessor.getResearch("slugify")(e),this.assessor.dataCollector.handleSlugChange(e)}},{key:"getPrimaryKeyword",value:function(){return o.Helpers.removeDiacritics(this.components.focusKeywords.getFocusKeywords()[0])}},{key:"getSelectedKeyword",value:function(){var e=this.components.focusKeywords.getSelectedKeyword();return Object(i.isUndefined)(e)?"":o.Helpers.removeDiacritics(this.components.focusKeywords.getSelectedKeyword())}},{key:"getCollector",value:function(){return"post"===rankMath.objectType?Object(d.a)()?new w:new M(this):"term"===rankMath.objectType?new N:"user"===rankMath.objectType?new $:void 0}}])&&Ce(t.prototype,r),n&&Ce(t,n),e}();a()((function(){Object(m.a)(),window.rankMathEditor=new Me,window.rankMathEditor.setup(),window.RankMathApp=new f})),a()(window).on("load",(function(){a.a.when(a.a.ready).then((function(){Object(s.doAction)("rank_math_loaded")}))}))}]);
1
+ !function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=76)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=wp.components},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=wp.compose},function(e,t){e.exports=rankMathAnalyzer},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(3),a=r.n(n);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,r,n;return t=e,(r=[{key:"swap",value:function(e,t){var r=this;if(!(e=e||""))return"";var n=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(n,(function(e){return r.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var r=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(r)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():a()("#description").val():r.includes("customfield(")?(r=r.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[r]:"":(e=e||this.getMap(),(r="seo_description"===(r="seo_title"===(r=r.includes("(")?r.split("(")[0]:r)?"title":r)?"excerpt":r)in e?e[r]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(t,r){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=r.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&i(t.prototype,r),n&&i(t,n),e}())},function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var o=a.apply(null,n);o&&e.push(o)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},function(e,t){e.exports=wp.url},,function(e,t,r){"use strict";var n=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),n.innerHTML=e,e=n.textContent,n.textContent=""),e}},,function(e,t){e.exports=wp.apiFetch},,function(e,t,r){"use strict";r.d(t,"a",(function(){return kr}));var n={};r.r(n),r.d(n,"updateKeywords",(function(){return d})),r.d(n,"updatePillarContent",(function(){return p})),r.d(n,"toggleFrontendScore",(function(){return h})),r.d(n,"updateAnalysisScore",(function(){return f})),r.d(n,"updateCanonicalUrl",(function(){return m})),r.d(n,"updateAdvancedRobots",(function(){return g})),r.d(n,"updateRobots",(function(){return k})),r.d(n,"updateBreadcrumbTitle",(function(){return v})),r.d(n,"resetDirtyMetadata",(function(){return y})),r.d(n,"updateFacebookTitle",(function(){return b})),r.d(n,"updateFacebookDescription",(function(){return w})),r.d(n,"updateFacebookImage",(function(){return _})),r.d(n,"updateFacebookImageID",(function(){return O})),r.d(n,"updateFacebookHasOverlay",(function(){return T})),r.d(n,"updateFacebookImageOverlay",(function(){return P})),r.d(n,"updateAppData",(function(){return u})),r.d(n,"updateAppUi",(function(){return l})),r.d(n,"updatePostID",(function(){return j})),r.d(n,"updatePermalink",(function(){return I})),r.d(n,"updateTitle",(function(){return S})),r.d(n,"updateDescription",(function(){return D})),r.d(n,"updateFeaturedImage",(function(){return C})),r.d(n,"updatePrimaryTermID",(function(){return M})),r.d(n,"updateRedirection",(function(){return E})),r.d(n,"updateRedirectionItem",(function(){return x})),r.d(n,"resetRedirection",(function(){return A})),r.d(n,"updateHasRedirect",(function(){return F})),r.d(n,"updateSerpTitle",(function(){return R})),r.d(n,"updateSerpDescription",(function(){return K})),r.d(n,"toggleSnippetEditor",(function(){return N})),r.d(n,"updateSnippetPreviewType",(function(){return H})),r.d(n,"toggleTrendsCta",(function(){return W})),r.d(n,"updateTwitterUseFacebook",(function(){return G})),r.d(n,"updateTwitterCardType",(function(){return z})),r.d(n,"updateTwitterTitle",(function(){return L})),r.d(n,"updateTwitterDescription",(function(){return B})),r.d(n,"updateTwitterAuthor",(function(){return V})),r.d(n,"updateTwitterImageID",(function(){return $})),r.d(n,"updateTwitterImage",(function(){return J})),r.d(n,"updateTwitterHasOverlay",(function(){return q})),r.d(n,"updateTwitterImageOverlay",(function(){return Q})),r.d(n,"updateTwitterPlayerUrl",(function(){return Z})),r.d(n,"updateTwitterPlayerSize",(function(){return X})),r.d(n,"updateTwitterPlayerStreamUrl",(function(){return Y})),r.d(n,"updateTwitterPlayerStreamCtype",(function(){return ee})),r.d(n,"updateTwitterAppDescription",(function(){return te})),r.d(n,"updateTwitterAppIphoneID",(function(){return re})),r.d(n,"updateTwitterAppIphoneName",(function(){return ne})),r.d(n,"updateTwitterAppIphoneUrl",(function(){return ae})),r.d(n,"updateTwitterAppIpadID",(function(){return ie})),r.d(n,"updateTwitterAppIpadName",(function(){return oe})),r.d(n,"updateTwitterAppIpadUrl",(function(){return se})),r.d(n,"updateTwitterAppGoogleplayID",(function(){return ce})),r.d(n,"updateTwitterAppGoogleplayName",(function(){return ue})),r.d(n,"updateTwitterAppGoogleplayUrl",(function(){return le})),r.d(n,"updateTwitterAppCountry",(function(){return de})),r.d(n,"toggleLoaded",(function(){return pe})),r.d(n,"updateSelectedKeyword",(function(){return he})),r.d(n,"refreshResults",(function(){return fe})),r.d(n,"setVersion",(function(){return me})),r.d(n,"toggleIsDiviPageSettingsBarActive",(function(){return ge})),r.d(n,"toggleIsDiviRankMathModalActive",(function(){return ke})),r.d(n,"toggleSchemaEditor",(function(){return Pe})),r.d(n,"toggleSchemaTemplates",(function(){return je})),r.d(n,"schemaUpdated",(function(){return Ie})),r.d(n,"setEditingSchemaId",(function(){return Se})),r.d(n,"setEditorTab",(function(){return De})),r.d(n,"setTemplateTab",(function(){return Ce})),r.d(n,"updateEditSchemas",(function(){return Me})),r.d(n,"updateSchemas",(function(){return Ee})),r.d(n,"updateEditSchema",(function(){return xe})),r.d(n,"saveSchema",(function(){return Ae})),r.d(n,"deleteSchema",(function(){return Fe})),r.d(n,"saveTemplate",(function(){return Ue}));var a={};r.r(a),r.d(a,"appData",(function(){return ze})),r.d(a,"appUi",(function(){return Je}));var i={};r.r(i),r.d(i,"getAppData",(function(){return qe})),r.d(i,"getDirtyMetadata",(function(){return Qe})),r.d(i,"getAnalysisScore",(function(){return Ze})),r.d(i,"getKeywords",(function(){return Xe})),r.d(i,"getPillarContent",(function(){return Ye})),r.d(i,"getRobots",(function(){return et})),r.d(i,"getAdvancedRobots",(function(){return tt})),r.d(i,"getCanonicalUrl",(function(){return rt})),r.d(i,"getBreadcrumbTitle",(function(){return nt})),r.d(i,"getRichSnippets",(function(){return at})),r.d(i,"getShowScoreFrontend",(function(){return it})),r.d(i,"isLoaded",(function(){return ot})),r.d(i,"getSelectedKeyword",(function(){return st})),r.d(i,"isRefreshing",(function(){return ct})),r.d(i,"isPro",(function(){return ut})),r.d(i,"isDiviPageSettingsBarActive",(function(){return lt})),r.d(i,"isDiviRankMathModalActive",(function(){return dt})),r.d(i,"getFacebookTitle",(function(){return pt})),r.d(i,"getFacebookDescription",(function(){return ht})),r.d(i,"getFacebookAuthor",(function(){return ft})),r.d(i,"getFacebookImageID",(function(){return mt})),r.d(i,"getFacebookImage",(function(){return gt})),r.d(i,"getFacebookHasOverlay",(function(){return kt})),r.d(i,"getFacebookImageOverlay",(function(){return vt})),r.d(i,"getPostID",(function(){return yt})),r.d(i,"getTitle",(function(){return bt})),r.d(i,"getPermalink",(function(){return wt})),r.d(i,"getDescription",(function(){return _t})),r.d(i,"getFeaturedImage",(function(){return Ot})),r.d(i,"getFeaturedImageHtml",(function(){return Tt})),r.d(i,"getPrimaryTermID",(function(){return Pt})),r.d(i,"getRedirectionID",(function(){return jt})),r.d(i,"getRedirectionType",(function(){return It})),r.d(i,"getRedirectionUrl",(function(){return St})),r.d(i,"getRedirectionItem",(function(){return Dt})),r.d(i,"hasRedirect",(function(){return Ct})),r.d(i,"getSerpTitle",(function(){return Et})),r.d(i,"getSerpDescription",(function(){return xt})),r.d(i,"isSnippetEditorOpen",(function(){return At})),r.d(i,"getSnippetPreviewType",(function(){return Ft})),r.d(i,"isTrendsCtaOpen",(function(){return Ut})),r.d(i,"isSchemaEditorOpen",(function(){return Rt})),r.d(i,"isSchemaTemplatesOpen",(function(){return Kt})),r.d(i,"hasSchemaUpdated",(function(){return Nt})),r.d(i,"getSchemas",(function(){return Ht})),r.d(i,"getEditSchemas",(function(){return Wt})),r.d(i,"getEditingSchema",(function(){return Gt})),r.d(i,"getPreviewSchema",(function(){return zt})),r.d(i,"getEditorTab",(function(){return Lt})),r.d(i,"getTemplateTab",(function(){return Bt})),r.d(i,"getTwitterUseFacebook",(function(){return Vt})),r.d(i,"getTwitterCardType",(function(){return $t})),r.d(i,"getTwitterTitle",(function(){return Jt})),r.d(i,"getTwitterDescription",(function(){return qt})),r.d(i,"getTwitterAuthor",(function(){return Qt})),r.d(i,"getTwitterImageID",(function(){return Zt})),r.d(i,"getTwitterImage",(function(){return Xt})),r.d(i,"getTwitterHasOverlay",(function(){return Yt})),r.d(i,"getTwitterImageOverlay",(function(){return er})),r.d(i,"getTwitterAppDescription",(function(){return tr})),r.d(i,"getTwitterAppIphoneID",(function(){return rr})),r.d(i,"getTwitterAppIphoneName",(function(){return nr})),r.d(i,"getTwitterAppIphoneUrl",(function(){return ar})),r.d(i,"getTwitterAppIpadID",(function(){return ir})),r.d(i,"getTwitterAppIpadName",(function(){return or})),r.d(i,"getTwitterAppIpadUrl",(function(){return sr})),r.d(i,"getTwitterAppGoogleplayID",(function(){return cr})),r.d(i,"getTwitterAppGoogleplayName",(function(){return ur})),r.d(i,"getTwitterAppGoogleplayUrl",(function(){return lr})),r.d(i,"getTwitterAppCountry",(function(){return dr})),r.d(i,"getTwitterPlayerUrl",(function(){return pr})),r.d(i,"getTwitterPlayerSize",(function(){return hr})),r.d(i,"getTwitterPlayerStream",(function(){return fr})),r.d(i,"getTwitterPlayerStreamCtype",(function(){return mr}));var o=r(4),s=r(9),c=r(6);function u(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(c.applyFilters)("rank_math_sanitize_data",t,e,r),null!==n&&(n=Object(c.applyFilters)("rank_math_sanitize_meta_value",n,e,r)),n=null===n?t:n,Object(c.doAction)("rank_math_data_changed",e,t,r),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:r,metaValue:n}}function l(e,t){return Object(c.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function d(e){return s.a.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),u("keywords",e,"rank_math_focus_keyword")}function p(e){return u("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function h(e){return u("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function f(e){return u("score",e,"rank_math_seo_score")}function m(e){return u("canonicalUrl",e,"rank_math_canonical_url")}function g(e){return u("advancedRobots",e,"rank_math_advanced_robots")}function k(e){return u("robots",e,"rank_math_robots",Object.keys(e))}function v(e){return u("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function y(){return u("dirtyMetadata",{})}function b(e){return u("facebookTitle",e,"rank_math_facebook_title")}function w(e){return u("facebookDescription",e,"rank_math_facebook_description")}function _(e){return u("facebookImage",e,"rank_math_facebook_image")}function O(e){return u("facebookImageID",e,"rank_math_facebook_image_id")}function T(e){return u("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function P(e){return u("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function j(e){return rankMath.objectID=e,u("postID",e)}function I(e){return u("permalink",e,"permalink")}function S(e){return u("title",e,"rank_math_title")}function D(e){return u("description",e,"rank_math_description")}function C(e){return u("featuredImage",e)}function M(e,t){return u("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function E(e,t){return u(e,t)}function x(e){return l("redirectionItem",e)}function A(){return l("redirectionItem",{})}function F(e){return l("hasRedirect",e)}var U=r(25);function R(e){return e=s.a.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),l("serpTitle",e)}function K(e){return e=s.a.swap(Object(U.a)(e)),rankMathEditor.refresh("description"),l("serpDescription",e)}function N(e){return l("isSnippetEditorOpen",e)}function H(e){return l("snippetPreviewType",e)}function W(e){return l("isTrendsCtaOpen",e)}function G(e){return u("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function z(e){return u("twitterCardType",e,"rank_math_twitter_card_type")}function L(e){return u("twitterTitle",e,"rank_math_twitter_title")}function B(e){return u("twitterDescription",e,"rank_math_twitter_description")}function V(e){return u("twitterAuthor",e,"rank_math_twitter_author")}function $(e){return u("twitterImageID",e,"rank_math_twitter_image_id")}function J(e){return u("twitterImage",e,"rank_math_twitter_image")}function q(e){return u("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function Q(e){return u("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function Z(e){return u("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function X(e){return u("twitterPlayerSize",e,"rank_math_twitter_player_size")}function Y(e){return u("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function ee(e){return u("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function te(e){return u("twitterAppDescription",e,"rank_math_twitter_app_description")}function re(e){return u("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function ne(e){return u("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function ae(e){return u("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function ie(e){return u("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function oe(e){return u("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function se(e){return u("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function ce(e){return u("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function ue(e){return u("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function le(e){return u("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function de(e){return u("twitterAppCountry",e,"rank_math_twitter_app_country")}function pe(e){return l("isLoaded",e)}function he(e){return l("selectedKeyword",e)}function fe(){return l("refreshResults",Date.now())}function me(){return l("isPro",!0)}function ge(e){return l("isDiviPageSettingsBarActive",e)}function ke(e){return l("isDiviRankMathModalActive",e)}var ve=r(1),ye=r(0),be=r(15),we=r.n(be);function _e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(r),!0).forEach((function(t){Te(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_e(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Te(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pe(e){return l("isSchemaEditorOpen",e)}function je(e){return l("isSchemaTemplatesOpen",e)}function Ie(e){return l("schemaUpdated",e)}function Se(e){return l("editingSchemaId",e)}function De(e){return l("editorTab",e)}function Ce(e){return l("templateTab",e)}function Me(e){return l("editSchemas",e)}function Ee(e){return u("schemas",e)}function xe(e,t){var r=Oe({},Object(o.select)("rank-math").getEditSchemas());return r[e]=t,l("editSchemas",r)}function Ae(e,t){var r=Oe({},Object(o.select)("rank-math").getSchemas());return r[e]=t,u("schemas",r)}function Fe(e){var t=Oe({},Object(o.select)("rank-math").getSchemas());return delete t[e],Object(c.doAction)("rank_math_schema_trash",e),u("schemas",t,"rank_math_delete_"+e,"")}function Ue(e,t,r){return we()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:r}}).then((function(r){t({loading:!1,showNotice:!0,postId:r.id}),setTimeout((function(){t({showNotice:!1}),Object(ve.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(ye.__)("Edit Schema","rank-math"),window.history.pushState(null,"",r.link.replace(/&amp;/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ke(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(r),!0).forEach((function(t){Ne(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var He=rankMath.assessor.serpData,We=rankMath.assessor.hasRedirection,Ge={postID:null,title:He.title?He.title:He.titleTemplate,description:He.description,keywords:He.focusKeywords,pillarContent:He.pillarContent,featuredImage:"",permalink:!1,primaryTerm:He.primaryTerm,robots:He.robots,advancedRobots:He.advancedRobots,canonicalUrl:He.canonicalUrl,breadcrumbTitle:He.breadcrumbTitle,showScoreFrontend:He.showScoreFrontend,redirectionID:We?Object(ve.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:We?Object(ve.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:We?Object(ve.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:He.facebookTitle,facebookImage:He.facebookImage,facebookImageID:He.facebookImageID,facebookAuthor:He.facebookAuthor,facebookDescription:He.facebookDescription,facebookHasOverlay:He.facebookHasOverlay,facebookImageOverlay:He.facebookImageOverlay,twitterTitle:He.twitterTitle,twitterImage:He.twitterImage,twitterAuthor:He.twitterAuthor,twitterImageID:He.twitterImageID,twitterCardType:He.twitterCardType,twitterUseFacebook:He.twitterUseFacebook,twitterDescription:He.twitterDescription,twitterHasOverlay:He.twitterHasOverlay,twitterImageOverlay:He.twitterImageOverlay,twitterPlayerUrl:He.twitterPlayerUrl,twitterPlayerSize:He.twitterPlayerSize,twitterPlayerStream:He.twitterPlayerStream,twitterPlayerStreamCtype:He.twitterPlayerStreamCtype,twitterAppDescription:He.twitterAppDescription,twitterAppIphoneName:He.twitterAppIphoneName,twitterAppIphoneID:He.twitterAppIphoneID,twitterAppIphoneUrl:He.twitterAppIphoneUrl,twitterAppIpadName:He.twitterAppIpadName,twitterAppIpadID:He.twitterAppIpadID,twitterAppIpadUrl:He.twitterAppIpadUrl,twitterAppGoogleplayName:He.twitterAppGoogleplayName,twitterAppGoogleplayID:He.twitterAppGoogleplayID,twitterAppGoogleplayUrl:He.twitterAppGoogleplayUrl,twitterAppCountry:He.twitterAppCountry,schemas:Object(ve.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function ze(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ge,r=arguments.length>1?arguments[1]:void 0,n=Ke({},t.dirtyMetadata);return!1!==r.metaKey&&(n[r.metaKey]=r.metaValue),"RANK_MATH_APP_DATA"===r.type?"dirtyMetadata"===r.key?Ke(Ke({},t),{},{dirtyMetadata:r.value}):Ke(Ke({},t),{},(Ne(e={},r.key,r.value),Ne(e,"dirtyMetadata",n),e)):t}function Le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach((function(t){Ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $e={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(ve.isEmpty)(Object(ve.get)(rankMath.assessor,"redirection.id",""))||!Object(ve.isEmpty)(Object(ve.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1};function Je(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$e,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?Be(Be({},e),{},Ve({},t.key,t.value)):e}function qe(e){return e.appData}function Qe(e){return e.appData.dirtyMetadata}function Ze(e){return e.appData.score}function Xe(e){return e.appData.keywords}function Ye(e){return e.appData.pillarContent}function et(e){return e.appData.robots}function tt(e){return e.appData.advancedRobots}function rt(e){return e.appData.canonicalUrl}function nt(e){return e.appData.breadcrumbTitle}function at(e){return"todo"}function it(e){return e.appData.showScoreFrontend}function ot(e){return e.appUi.isLoaded}function st(e){return e.appUi.selectedKeyword}function ct(e){return e.appUi.refreshResults}function ut(e){return e.appUi.isPro}function lt(e){return e.appUi.isDiviPageSettingsBarActive}function dt(e){return e.appUi.isDiviRankMathModalActive}function pt(e){return e.appData.facebookTitle}function ht(e){return e.appData.facebookDescription}function ft(e){return e.appData.facebookAuthor}function mt(e){return e.appData.facebookImageID}function gt(e){return e.appData.facebookImage}function kt(e){return e.appData.facebookHasOverlay}function vt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function yt(e){return e.appData.postID}function bt(e){return e.appData.title}function wt(e){return e.appData.permalink}function _t(e){return e.appData.description}function Ot(e){return e.appData.featuredImage}function Tt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function Pt(e){return e.appData.primaryTerm}function jt(e){return e.appData.redirectionID}function It(e){return e.appData.redirectionType}function St(e){return e.appData.redirectionUrl}function Dt(e){return e.appUi.redirectionItem}function Ct(e){return e.appUi.hasRedirect}var Mt=r(13);function Et(e){return Object(Mt.a)(e.appUi.serpTitle)}function xt(e){return e.appUi.serpDescription}function At(e){return e.appUi.isSnippetEditorOpen}function Ft(e){return e.appUi.snippetPreviewType}function Ut(e){return e.appUi.isTrendsCtaOpen}function Rt(e){return e.appUi.isSchemaEditorOpen}function Kt(e){return e.appUi.isSchemaTemplatesOpen}function Nt(e){return e.appUi.schemaUpdated}function Ht(e){return e.appData.schemas}function Wt(e){return e.appUi.editSchemas}function Gt(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function zt(e){return e.appData.schemas[e.appUi.editingSchemaId]}function Lt(e){return e.appUi.editorTab}function Bt(e){return e.appUi.templateTab}function Vt(e){return e.appData.twitterUseFacebook}function $t(e){return e.appData.twitterCardType}function Jt(e){return e.appData.twitterTitle}function qt(e){return e.appData.twitterDescription}function Qt(e){return e.appData.twitterAuthor}function Zt(e){return e.appData.twitterImageID}function Xt(e){return e.appData.twitterImage}function Yt(e){return e.appData.twitterHasOverlay}function er(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function tr(e){return e.appData.twitterAppDescription}function rr(e){return e.appData.twitterAppIphoneID}function nr(e){return e.appData.twitterAppIphoneName}function ar(e){return e.appData.twitterAppIphoneUrl}function ir(e){return e.appData.twitterAppIpadID}function or(e){return e.appData.twitterAppIpadName}function sr(e){return e.appData.twitterAppIpadUrl}function cr(e){return e.appData.twitterAppGoogleplayID}function ur(e){return e.appData.twitterAppGoogleplayName}function lr(e){return e.appData.twitterAppGoogleplayUrl}function dr(e){return e.appData.twitterAppCountry}function pr(e){return e.appData.twitterPlayerUrl}function hr(e){return e.appData.twitterPlayerSize}function fr(e){return e.appData.twitterPlayerStream}function mr(e){return e.appData.twitterPlayerStreamCtype}var gr=Object(o.registerStore)("rank-math",{reducer:Object(o.combineReducers)(a),selectors:i,actions:n});function kr(){return gr}},,function(e,t,r){"use strict";var n=r(1);t.a=function(e,t,r,a){return Object(n.isUndefined)(t)?t:(t=Object(n.truncate)(t,{length:r,separator:a||" "}),""===e?t:t.replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"})))}},function(e,t,r){"use strict";t.a=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},,,,,function(e,t,r){"use strict";r(3);var n=r(8),a=r(1),i=r(6),o=r(9),s=r(13),c=function(e,t){return e=(e=n.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(a.truncate)(e,{length:t,separator:" "}):e};t.a=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),r=t.excerpt,u=t.content?function(e){if(Object(a.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(a.filter)(n.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==e.trim()}));if(!t.length)return"";var r=rankMathEditor.getPrimaryKeyword();if(""!==r){var i=Object(a.filter)(t,(function(e){return Object(a.includes)(e.toLowerCase(),r.toLowerCase())}));if(0<i.length)return c(i[0],160)}return c(t[0],160)}(t.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",l=Object(a.isUndefined)(r)||Object(a.isEmpty)(r)?u:r;if(o.a.setVariable("excerpt",l),o.a.setVariable("seo_description",l),""!==(e=Object(s.a)(Object(i.applyFilters)("rankMath/description",e))))return n.Helpers.cleanText(e);if(!Object(a.isUndefined)(r)&&!Object(a.isEmpty)(r))return n.Helpers.cleanText(r);var d=rankMath.assessor.serpData.descriptionTemplate;return Object(a.isUndefined)(d)||""===d?u:n.Helpers.cleanText(d)}},function(e,t,r){"use strict";var n=r(0),a=r(6);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,r,o;return t=e,(r=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(n.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(n.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(n.sprintf)(Object(n.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(n.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(t.prototype,r),o&&i(t,o),e}();t.a=o},function(e,t,r){"use strict";var n=r(1),a=r(13);function i(e,t,r){var a=0;return!1!==Object(n.get)(r,"pixelWidth",!1)&&(a=Math.min(100,Math.floor(t/r.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/r.max*100)),a)+"%"}function o(e,t){return e<=t.min||e>t.max}function s(e,t){return e<=t.minWidth||e>t.pixelWidth}t.a=function(e,t){var r=Object(a.a)(e).length,c=0,u=!1;if(!1!==Object(n.get)(t,"pixelWidth",!1)){u=!0;var l=document.createTextNode(e),d=document.createElement("span");d.appendChild(l),d.id="rank-math-width-tester",d.className=t.widthCheckerClass;var p=document.body.appendChild(d);c=document.getElementById("rank-math-width-tester").offsetWidth,p.outerHTML=""}return{left:i(r,c,t),isInvalid:o(r,t),isInvalidWidth:!!u&&s(c,t),count:r+" / "+t.max,pixelWidth:u?c+"px / "+t.pixelWidth+"px":""}}},function(e,t,r){"use strict";var n=r(0),a=r(7),i=r(5),o=r(2),s=r(4);t.a=Object(a.compose)(Object(s.withSelect)((function(e){return{isTrendsCtaOpen:e("rank-math").isTrendsCtaOpen()}})),Object(s.withDispatch)((function(e,t){return{toggleTrendsCta:function(){e("rank-math").toggleTrendsCta(!t.isTrendsCtaOpen)}}})))((function(e){var t=e.isTrendsCtaOpen,r=e.toggleTrendsCta;return wp.element.createElement(i.Fragment,null,wp.element.createElement("a",{href:"#",title:Object(n.__)("Trends","rank-math"),rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon},onClick:r}),t&&wp.element.createElement(o.Modal,{title:Object(n.__)("Google Trends","rank-math"),closeButtonLabel:Object(n.__)("Close","rank-math"),shouldCloseOnClickOutside:!0,onRequestClose:r,className:"rank-math-modal rank-math-trends-cta-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"components-panel__body rank-math-trends-cta-wrapper"},wp.element.createElement("img",{src:rankMath.trendsPreviewImage,alt:"",className:"trends-cta blurred"}),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"center"},wp.element.createElement("div",{className:"rank-math-cta-box blue-ticks width-50"},wp.element.createElement("h3",null,Object(n.__)("Track Keyword Trends","rank-math")),wp.element.createElement("ul",null,wp.element.createElement("li",null,Object(n.__)("Data fetched directly from Google","rank-math")),wp.element.createElement("li",null,Object(n.__)("Analyze search trends and compare keywords","rank-math")),wp.element.createElement("li",null,Object(n.__)("See data from a particular Country or timeframe","rank-math"))),wp.element.createElement("a",{className:"button button-primary is-green",href:rankMath.trendsUpgradeLink,rel:"noreferrer noopener",target:"_blank"},Object(n.__)("Upgrade","rank-math")))))))}))},function(e,t){e.exports=Tagify},function(e,t,r){"use strict";var n=r(1);t.a=function(e,t){var r=Object(n.round)(e/t*100);if(!(100<=r))return 49<r?"test-check-good":30<r?"test-check-ok":"test-check-bad"}},,function(e,t,r){"use strict";var n=r(1);t.a=function(){return!(Object(n.isNil)(window.wp)||Object(n.isNil)(wp.data)||Object(n.isNil)(wp.data.select("core/editor"))||!Object(n.isFunction)(wp.data.select("core/editor").getEditedPostAttribute))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r.r(t);var n=r(3),a=r.n(n),i=r(1),o=r(8),s=r(6),c=r(0);function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new o.Analyzer({i18n:c,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.promises=[],this.hooks(),this.registerRefresh()}var t,r,n;return t=e,(r=[{key:"hooks",value:function(){this.assessAll=this.assessAll.bind(this),this.assessTitle=this.assessTitle.bind(this),this.assessContent=this.assessContent.bind(this),this.assessPermalink=this.assessPermalink.bind(this),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.assessKeyword=this.assessKeyword.bind(this),this.assessThumbnail=this.assessThumbnail.bind(this),Object(s.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(s.addAction)("rank_math_init_refresh","rank-math",this.assessAll),Object(s.addAction)("rank_math_title_refresh","rank-math",this.assessTitle),Object(s.addAction)("rank_math_content_refresh","rank-math",this.assessContent,11),Object(s.addAction)("rank_math_permalink_refresh","rank-math",this.assessPermalink,11),Object(s.addAction)("rank_math_featuredImage_refresh","rank-math",this.assessThumbnail,11),Object(s.addAction)("rank_math_keyword_refresh","rank-math",this.assessKeyword,12)}},{key:"getPaper",value:function(e){var t=this.dataCollector.getData(),r=new o.Paper("",{locale:rankMath.localeFull});return r.setTitle(t.title),r.setPermalink(t.slug),r.setDescription(t.description),r.setUrl(t.permalink),r.setText(Object(s.applyFilters)("rank_math_content",t.content)),r.setKeyword(o.Helpers.removeDiacritics(e)),r.setKeywords(rankMathEditor.components.focusKeywords.getFocusKeywords()),Object(i.isUndefined)(t.featuredImage)||(r.setThumbnail(t.featuredImage.source_url),r.setThumbnailAltText(o.Helpers.removeDiacritics(t.featuredImage.alt_text))),r}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(i.debounce)((function(t){e.promises=[],Object(s.doAction)("rank_math_"+t+"_refresh"),Promise.all(e.promises).then((function(){e.refreshResults()}))}),500)}},{key:"assessAll",value:function(){var e=this;rankMathEditor.components.focusKeywords.getFocusKeywords().map((function(t,r){e.run(0===r?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests(),t,0===r)}))}},{key:"run",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=t||rankMathEditor.getSelectedKeyword();var n=this.getPaper(t);this.promises.push(this.analyzer.analyzeSome(this.filterTests(e),n).then((function(e){rankMathEditor.resultManager.update(n.getKeyword(),e,r)})))}},{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===rankMathEditor.getSelectedKeyword().toLowerCase()&&this.refreshResults()}},{key:"assessThumbnail",value:function(){this.run(["keywordInImageAlt","contentHasAssets"])}},{key:"assessKeyword",value:function(){var e=rankMathEditor.getSelectedKeyword()===rankMathEditor.getPrimaryKeyword();this.run(e?rankMath.assessor.researchesTests:this.getSecondaryKeywordTests())}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"assessTitle",value:function(){this.run(["keywordInTitle","titleHasPowerWords","titleHasNumber","titleSentiment","titleStartWithKeyword"])}},{key:"assessContent",value:function(){return this.run(["contentHasShortParagraphs","contentHasTOC","contentHasAssets","keywordDensity","keywordIn10Percent","keywordInContent","keywordInImageAlt","keywordInMetaDescription","keywordInSubheadings","lengthContent","linksHasExternals","linksHasInternal","linksNotAllExternals"])}},{key:"assessPermalink",value:function(){return this.run(["keywordInPermalink","lengthPermalink"])}},{key:"getPrimaryKeyword",value:function(){return rankMathEditor.components.focusKeywords.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return rankMathEditor.components.focusKeywords.getSelectedKeyword()}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}},{key:"refreshResults",value:function(){Object(s.doAction)("rank_math_refresh_results")}},{key:"filterTests",value:function(e){return Object(i.intersection)(e,rankMath.assessor.researchesTests)}}])&&u(t.prototype,r),n&&u(t,n),e}(),d=r(32),p=r(26);function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.methods=[],this.init=this.init.bind(this),this.refresh=this.refresh.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.init)}var t,r,n;return t=e,(r=[{key:"init",value:function(){this.methods.length&&rankMathEditor.refresh("content")}},{key:"registerPlugin",value:function(){console.warn("RankMathApp.registerPlugin is deprecated.")}},{key:"refresh",value:function(e){console.warn("RankMathApp.refresh is deprecated, use rankMathEditor.refresh()"),this.methods.push(e)}},{key:"reloadPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"content";console.warn("RankMathApp.reloadPlugin is deprecated, use rankMathEditor.refresh()"),this.refresh(t)}}])&&h(t.prototype,r),n&&h(t,n),e}(),m=r(17),g=r(4),k=r(9);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var w=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this.oldSlug=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.refresh),this.getPostAttribute=this.getPostAttribute.bind(this),this.subscribeToGutenberg()}var t,r,n;return t=e,(r=[{key:"collectGutenbergData",value:function(){return!1===this.oldSlug&&""!==this.getSlug()&&(this.oldSlug=this.getSlug()),{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getPostAttribute("content"),title:this.getPostAttribute("title"),excerpt:this.getPostAttribute("excerpt"),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return rankMath.objectID}},{key:"getPermalink",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),this._coreEditorSelect.getPermalink()}},{key:"getSlug",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),this.getPostAttribute("slug")||e}},{key:"getFeaturedImage",value:function(){var e=this.getPostAttribute("featured_media");if(this.isValidMediaId(e)){var t=Object(g.select)("core").getMedia(e);if(!Object(i.isUndefined)(t))return t}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"getPostAttribute",value:function(e){return this._coreEditorSelect||(this._coreEditorSelect=Object(g.select)("core/editor")),this._coreEditorSelect.getEditedPostAttribute(e)}},{key:"subscribeToGutenberg",value:function(){this.subscriber=Object(i.debounce)(this.refresh,500),Object(g.subscribe)(this.subscriber)}},{key:"refresh",value:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(e)}},{key:"handleEditorChange",value:function(e){var t=this,r={slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(i.isInteger)(e.id))return this.initialize?void Object(i.forEach)(r,(function(r,n){t._data[n]!==e[n]&&t[r](t._data[n])})):(this.initialize=!0,Object(i.forEach)(r,(function(e,r){t[e](t._data[r])})),void rankMathEditor.refresh("init"))}},{key:"handleSlugChange",value:function(){""!==this.getSlug()&&!1===this.oldSlug&&(this.oldSlug=this.getSlug()),rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){k.a.setVariable("title",e),k.a.setVariable("term",e),k.a.setVariable("author",e),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){k.a.setVariable("excerpt",e),k.a.setVariable("excerpt_only",e),k.a.setVariable("wc_shortdesc",e),k.a.setVariable("seo_description",e),rankMathEditor.refresh("content")}},{key:"handleFeaturedImageChange",value:function(e){this._data.featuredImage=e,rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}},{key:"updateData",value:function(e,t){this._data[e]=t}}])&&b(t.prototype,r),n&&b(t,n),e}();function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var O=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1,description:""},this.refresh=this.refresh.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.refresh),this.setup(),this.init()}var t,r,n;return t=e,(r=[{key:"init",value:function(){var e=this;this.elemTitle.on("input",Object(i.debounce)((function(){e.handleTitleChange(e.elemTitle.val())}),500)),this.elemDescription.on("input",Object(i.debounce)((function(){e.handleExcerptChange(e.elemDescription.val())}),500)),this.elemSlug.on("input",Object(i.debounce)((function(){rankMathEditor.updatePermalink(e.elemSlug.val())}),500))}},{key:"collectData",value:function(){this._data={id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return rankMath.objectID}},{key:"getTitle",value:function(){return this.elemTitle.val()}},{key:"getExcerpt",value:function(){var e=this.elemDescription.val();return k.a.setVariable("excerpt",e),k.a.setVariable("excerpt_only",e),k.a.setVariable("wc_shortdesc",e),k.a.setVariable("seo_description",e),e}},{key:"getPermalink",value:function(){return rankMath.homeUrl+"/"+this.getSlug()}},{key:"getSlug",value:function(){return this.elemSlug.val()}},{key:"getFeaturedImage",value:function(){return this.featuredImage}},{key:"refresh",value:function(){this.collectData(),rankMathEditor.refresh("init")}},{key:"handleSlugChange",value:function(e){var t=rankMathEditor.components.SerpPreview;this.elemSlug.val(e),a()("#editable-post-name").text(e),a()("#editable-post-name-full").text(e),Object(i.isUndefined)(t.serpPermalinkField)||t.serpPermalinkField.val(e),this._data.slug=this.getSlug(),this._data.permalink=this.getPermalink(),rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){k.a.setVariable("title",e),k.a.setVariable("term",e),k.a.setVariable("author",e),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(){this._data.excerpt=this.getExcerpt(),rankMathEditor.refresh("content")}},{key:"handleFeaturedImageChange",value:function(){this._data.featuredImage=this.getFeaturedImage(),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){this._data.excerpt=this.getExcerpt(),this._data.content=this.getContent(),rankMathEditor.refresh("content")}},{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?this._data[e]:this._data}},{key:"updateData",value:function(e,t){this._data[e]=t}},{key:"isTinymce",value:function(){return"undefined"!=typeof tinymce}}])&&_(t.prototype,r),n&&_(t,n),e}();function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(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 r,n=C(e);if(t){var a=C(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return D(this,r)}}function D(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var M=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}}),t&&I(e,t)}(c,e);var t,r,n,o=S(c);function c(){return P(this,c),o.apply(this,arguments)}return t=c,(r=[{key:"setup",value:function(){this.elemSlug=a()("#post_name"),this.elemTitle=a()("#title"),this.elemDescription=a()("#excerpt"),this.elemContent=a()("#content"),this.editableName=a()("#editable-post-name-full"),this.assessThumbnail=this.assessThumbnail.bind(this),Object(s.addAction)("rank_math_updated_featured_image","rank-math",this.assessThumbnail),this.events()}},{key:"getContent",value:function(){if(null!==this.elemContent&&0!==this.elemContent.length)return this.isTinymce()&&tinymce.activeEditor&&"content"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():this.elemContent.val()}},{key:"getSlug",value:function(){var e=""===this.elemSlug.val()&&this.editableName.length?this.editableName.text():this.elemSlug.val();return Object(i.isUndefined)(e)?"":e}},{key:"events",value:function(){var e=this;this.elemContent.on("input change",Object(i.debounce)((function(){e.handleContentChange()}),500)),a()(window).on("load",(function(){e.isTinymce()&&(tinymce.activeEditor&&!Object(i.isUndefined)(tinymce.editors.content)&&tinymce.editors.content.on("keyup change",Object(i.debounce)((function(){e.handleContentChange()}),500)),tinymce.editors&&!Object(i.isUndefined)(tinymce.editors.excerpt)&&tinymce.editors.excerpt.on("keyup change",Object(i.debounce)((function(){tinymce.editors.excerpt.save(),e.handleExcerptChange()}),500)))})),a()(document).on("ajaxComplete",(function(t,r,n){var i="/admin-ajax.php";if(i===n.url.substr(0-i.length)){var o="";"string"==typeof n.data&&-1!==n.data.indexOf("action=sample-permalink")&&(o=""===r.responseText?e.elemTitle.val():a()("<div>"+r.responseText+"</div>").find("#editable-post-name-full").text(),rankMathEditor.updatePermalink(o))}}))}},{key:"assessThumbnail",value:function(e){this.featuredImage={source_url:e.src,alt_text:e.alt},this.handleFeaturedImageChange(e)}}])&&j(t.prototype,r),n&&j(t,n),c}(O);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(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 r,n=K(e);if(t){var a=K(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return R(this,r)}}function R(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var N=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}}),t&&F(e,t)}(s,e);var t,r,n,o=U(s);function s(){return x(this,s),o.apply(this,arguments)}return t=s,(r=[{key:"setup",value:function(){this.elemSlug=a()("#slug"),this.elemTitle=a()("#name"),this.elemDescription=a()("#rank_math_description_editor"),this.events()}},{key:"getContent",value:function(){return null===this.elemDescription||0===this.elemDescription.length?"":this.isTinymce()&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():this.elemDescription.val()}},{key:"events",value:function(){var e=this;a()(window).on("load",(function(){e.isTinymce()&&tinymce.activeEditor&&!Object(i.isUndefined)(tinymce.editors.rank_math_description_editor)&&tinymce.editors.rank_math_description_editor.on("keyup change",Object(i.debounce)((function(){e.handleContentChange()}),500))}))}}])&&A(t.prototype,r),n&&A(t,n),s}(O);function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function z(e,t){return(z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(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 r,n=V(e);if(t){var a=V(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return B(this,r)}}function B(e,t){return!t||"object"!==H(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $=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}}),t&&z(e,t)}(o,e);var t,r,n,i=L(o);function o(){return W(this,o),i.apply(this,arguments)}return t=o,(r=[{key:"setup",value:function(){this.elemSlug=a()("#rank_math_permalink"),this.elemTitle=a()("#display_name"),this.elemDescription=a()("#description")}},{key:"getContent",value:function(){return this.elemDescription.val()}}])&&G(t.prototype,r),n&&G(t,n),o}(O),J=r(5),q=r(11),Q=r(25),Z=r(19),X=r(10),Y=r.n(X),ee=r(27);function te(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var re=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,(r=[{key:"check",value:function(e,t){this.elem=e,this.elem.closest(".cmb-td").find(".length-indicator-wrapper").length||this.wrapIndicator(t),this.updateLength(t)}},{key:"wrapIndicator",value:function(e){this.elem.closest(".cmb-td").append('<span class="'+Y()("length-indicator-wrapper",{"width-indicator":!1!==Object(i.get)(e,"pixelWidth",!1)})+'"><span class="length-count">0 / '+e.max+'</span><span class="length-indicator"><span></span></span></span>')}},{key:"updateLength",value:function(e){var t=this.elem.closest(".cmb-td").find(".length-indicator"),r=t.find(">span"),n=this.elem.closest(".cmb-td").find(".length-count"),a=Object(ee.a)(e.text,e);t.removeClass("invalid short"),r.css("left",a.left),n.text(a.count),!1!==Object(i.get)(e,"pixelWidth",!1)&&n.text(n.text()+" ("+a.pixelWidth+")"),(a.isInvalid||a.isInvalidWidth)&&t.addClass("invalid")}}])&&te(t.prototype,r),n&&te(t,n),e}();function ne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ae=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.title="",this.description="",this.lengthIndicator=new re}var t,r,n;return t=e,(r=[{key:"hooks",value:function(){this.previewDevice=this.previewDevice.bind(this),this.updatePreview=this.updatePreview.bind(this),this.updateTitlePreview=this.updateTitlePreview.bind(this),this.updatePermalinkPreview=this.updatePermalinkPreview.bind(this),this.updateDescriptionPreview=this.updateDescriptionPreview.bind(this),Object(s.addAction)("rank_math_preview_device","rank-math",this.previewDevice),Object(s.addAction)("rank_math_init_refresh","rank-math",this.updatePreview,1),Object(s.addAction)("rank_math_title_refresh","rank-math",this.updateTitlePreview,1),Object(s.addAction)("rank_math_permalink_refresh","rank-math",this.updatePermalinkPreview,1),Object(s.addAction)("rank_math_content_refresh","rank-math",this.updateDescriptionPreview,1),Object(s.addAction)("rank_math_keyword_refresh","rank-math",this.updatePreview,11)}},{key:"updatePreview",value:function(){this.updateTitlePreview(),this.updatePermalinkPreview(),this.updateDescriptionPreview()}},{key:"previewDevice",value:function(e){switch(this.devices.removeClass("active"),e){case"desktop":this.serpWrapper.removeClass("mobile-preview"),this.serpWrapper.addClass("desktop-preview expanded-preview"),rankMathEditor.elemMetabox.find(".rank-math-select-device.device-desktop").addClass("active");break;case"mobile":this.serpWrapper.removeClass("desktop-preview"),this.serpWrapper.addClass("mobile-preview expanded-preview"),rankMathEditor.elemMetabox.find(".rank-math-select-device.device-mobile").addClass("active");break;default:this.serpWrapper.removeClass("mobile-preview expanded-preview"),this.serpWrapper.addClass("desktop-preview")}}},{key:"updateTitlePreview",value:function(){this.title=this.serpTitleField.val();var e=""!==this.title;this.serpTitleField.val(e?this.title:this.serpTitle.data("format")),this.title=o.Helpers.sanitizeText(k.a.swap(""!==this.title?this.title:this.serpTitle.data("format"))),this.lengthIndicator.check(this.serpTitleField,{text:this.title,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),this.serpTitle.html(Object(Z.a)(rankMathEditor.getSelectedKeyword(),o.Helpers.sanitizeText(this.title),60)),this.updatePreviewCallbacks("title",this.title),this.serpTitle.trigger("rank-math-vars-replaced")}},{key:"updatePermalinkPreview",value:function(){var e=this.serpPermalink.data("format")||"",t=this.serpPermalinkField.val(),r=rankMathEditor.assessor.getResearch("slugify")(rankMathEditor.getSelectedKeyword());this.permalink=""!==t?e.replace(/%(postname|pagename)%/,t).trimRight("/")+"/":"",this.serpCanonical.attr("placeholder",this.permalink),this.lengthIndicator.check(this.serpPermalinkField,{text:this.permalink,min:5,max:75}),this.serpPermalink.html(Object(Z.a)(r,o.Helpers.sanitizeText(Object(q.safeDecodeURIComponent)(this.permalink)),75)),this.updatePreviewCallbacks("permalink",this.permalink),this.serpPermalink.trigger("rank-math-vars-replaced")}},{key:"updateDescriptionPreview",value:function(){this.description=o.Helpers.sanitizeText(k.a.swap(Object(Q.a)(this.serpDescriptionField.val()))),this.lengthIndicator.check(this.serpDescriptionField,{text:this.description,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),this.serpDescription.html(Object(Z.a)(rankMathEditor.getSelectedKeyword(),o.Helpers.sanitizeText(this.description),160)),this.serpDescriptionField.attr("placeholder",""!==this.description?this.description:this.serpDescription.data("format")),this.updatePreviewCallbacks("description",this.description),this.serpDescription.trigger("rank-math-vars-replaced")}}])&&ne(t.prototype,r),n&&ne(t,n),e}(),ie=r(28);function oe(e){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function se(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ce(e,t){return(ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ue(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 r,n=de(e);if(t){var a=de(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return le(this,r)}}function le(e,t){return!t||"object"!==oe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pe=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}}),t&&ce(e,t)}(c,e);var t,r,n,o=ue(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),e=o.call(this),rankMath.canUser.general?(e.hooks(),e.elemMetabox=rankMathEditor.elemMetabox,e.serpCanonical=e.elemMetabox.find("#rank_math_canonical_url"),e.serpTitleField=e.elemMetabox.find("#rank_math_title"),e.serpPermalinkField=e.elemMetabox.find("#rank_math_permalink"),e.serpDescriptionField=e.elemMetabox.find("#rank_math_description"),e.serpWrapper=e.elemMetabox.find(".serp-preview"),e.serpFieldsWrapper=e.elemMetabox.find(".rank-math-serp-fields-wrapper"),e.serpTitle=e.serpWrapper.find(".serp-title"),e.serpPermalink=e.serpWrapper.find(".serp-url"),e.serpDescription=e.serpWrapper.find(".serp-description"),e.devices=e.elemMetabox.find(".rank-math-select-device"),e.init(),e):le(e)}return t=c,(r=[{key:"init",value:function(){this.previewEvent(),this.updateEvents(),this.serpEvents(),this.trendEvents(),this.robotsEvents()}},{key:"previewEvent",value:function(){this.devices.on("click",(function(e){e.preventDefault();var t=a()(e.currentTarget),r=t.hasClass("active")?"":t.data("device");Object(s.doAction)("rank_math_preview_device",r)}))}},{key:"serpEvents",value:function(){var e=this,t=this.elemMetabox.find(".rank-math-edit-snippet");t.on("click",(function(r){r.preventDefault(),t.toggleClass("hidden active"),e.serpFieldsWrapper.toggleClass("hidden")})),this.elemMetabox.on("click",".serp-preview-body",(function(r){r.preventDefault(),t.toggleClass("hidden active"),e.serpFieldsWrapper.toggleClass("hidden")}))}},{key:"trendEvents",value:function(){rankMath.isPro||setTimeout((function(){Object(J.render)(Object(J.createElement)(ie.a),document.getElementById("rank-math-trends-tool-preview"))}),1e3)}},{key:"updateEvents",value:function(){var e=this;this.serpTitleField.on("input",Object(i.debounce)((function(){rankMathEditor.refresh("title")}),500)).on("keypress",(function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),a()(e.target).closest(".cmb-row").prev().trigger("click"),!1})),this.serpPermalinkField.val(rankMathEditor.assessor.dataCollector.getSlug()).on("blur",(function(){rankMathEditor.updatePermalink(e.serpPermalinkField.val())})).on("input",Object(i.debounce)((function(){e.updatePermalinkPreview()}),500)).on("keypress",(function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),a()(e.target).closest(".cmb-row").prev().trigger("click"),!1})),rankMath.is_front_page&&this.serpPermalinkField.val("/").attr("disabled","disabled"),this.serpDescriptionField.on("input",Object(i.debounce)((function(){rankMathEditor.refresh("content")}),500)).on("keypress",(function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),a()(e.target).closest(".cmb-row").prev().trigger("click"),!1}))}},{key:"updatePreviewCallbacks",value:function(e,t){e=e||"global",rankMathEditor.assessor.dataCollector.updateData(e,t),this.elemMetabox.trigger("rank-math-updating-preview-"+e),this.elemMetabox.trigger("rank-math-"+e+"-updated",t)}},{key:"robotsEvents",value:function(){var e=this,t=a()("#rank_math_robots1"),r=a()("#rank_math_robots2");t.on("change",(function(){t.is(":checked")?(e.serpWrapper.addClass("noindex-preview"),r.prop("checked",!1).trigger("change")):e.serpWrapper.removeClass("noindex-preview")})),r.on("change",(function(){if(r.is(":checked"))return e.serpWrapper.addClass("noindex-preview"),void t.prop("checked",!1);e.serpWrapper.removeClass("noindex-preview")})).trigger("change")}}])&&se(t.prototype,r),n&&se(t,n),c}(ae),he=r(13);function fe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var me=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elemMetabox=rankMathEditor.elemMetabox,this.currentNetwork="facebook",this.useFacebook=!0,this.shouldUpdatePreview=!1,this.facebookTitleField=this.elemMetabox.find("#rank_math_facebook_title"),this.facebookDescriptionField=this.elemMetabox.find("#rank_math_facebook_description"),this.twitterTitleField=this.elemMetabox.find("#rank_math_twitter_title"),this.twitterDescriptionField=this.elemMetabox.find("#rank_math_twitter_description"),this.facebookImageField=this.elemMetabox.find("#rank_math_facebook_image"),this.twitterImageField=this.elemMetabox.find("#rank_math_twitter_image"),this.facebookImageStatus=this.elemMetabox.find("#rank_math_facebook_image-status"),this.twitterImageStatus=this.elemMetabox.find("#rank_math_twitter_image-status"),this.socialWrapper=this.elemMetabox.find(".rank-math-social-preview"),this.socialPreview=this.socialWrapper.find(".rank-math-social-preview-item"),this.socialTitle=this.socialWrapper.find(".rank-math-social-preview-title"),this.socialDescription=this.socialWrapper.find(".rank-math-social-preview-description"),this.events(),this.removeImageEvent(),this.shouldUpdatePreview=!0,this.updateTitlePreview=this.updateTitlePreview.bind(this),this.updateDescriptionPreview=this.updateDescriptionPreview.bind(this),this.updateThumbnailPreview=this.updateThumbnailPreview.bind(this),this.updatePreview=this.updatePreview.bind(this),Object(s.addAction)("rank_math_init_refresh","rank-math",this.updatePreview),Object(s.addAction)("rank_math_title_refresh","rank-math",this.updateTitlePreview,2),Object(s.addAction)("rank_math_content_refresh","rank-math",this.updateDescriptionPreview,2),Object(s.addAction)("rank_math_featuredImage_refresh","rank-math",this.updateThumbnailPreview),this.updatePreview()}var t,r,n;return t=e,(r=[{key:"events",value:function(){var e=this;this.facebookTitleField.on("input",(function(){e.updateTitlePreview()})),this.facebookDescriptionField.on("input",(function(){e.updateDescriptionPreview()})),this.facebookImageField.on("input",(function(){e.updateThumbnailPreview()})),this.twitterTitleField.on("input",(function(){e.updateTitlePreview()})),this.twitterDescriptionField.on("input",(function(){e.updateDescriptionPreview()})),this.twitterImageField.on("input",(function(){e.updateThumbnailPreview()}));var t=a()(".rank-math-social-preview-button"),r=t.find(">span");t.on("click",(function(t){t.preventDefault(),r.toggleClass("dashicons-arrow-down dashicons-arrow-up"),e.updatePreview(),e.socialWrapper.toggleClass("open"),e.socialPreview.slideToggle()}));var n=a()("#rank_math_twitter_card_type");a()(".preview-network").on("click",(function(r){a()(r.target).hasClass("tab-facebook")?t.show():n.trigger("change"),e.updatePreview()})),n.on("change",(function(){var r=n.val();"player"===r&&a()(".cmb2-id-rank-math-twitter-image, .cmb2-id-rank-math-twitter-title, .cmb2-id-rank-math-twitter-description").show();var i="player"===r||"app"===r;t.toggle(!i),a()(".cmb2-id-rank-math-twitter-use-facebook").toggle(!i),i||e.updatePreview()})).trigger("change");var i=a()("#rank_math_twitter_use_facebook");i.on("input change",(function(){e.useFacebook=i.is(":checked"),e.updatePreview()})).trigger("change"),a()(".cmb2-id-rank-math-facebook-enable-image-overlay, .cmb2-id-rank-math-facebook-image-overlay, .cmb2-id-rank-math-twitter-enable-image-overlay, .cmb2-id-rank-math-twitter-image-overlay").on("change","input",(function(){e.updateThumbnailOverlay()})),a()(document).on("cmb_media_modal_select",(function(t,r,n){"rank_math_facebook_image"!==n.field&&"rank_math_twitter_image"!==n.field||(e.updateThumbnailPreview(),e.removeImageEvent())}))}},{key:"removeImageEvent",value:function(){var e=this;a()(".cmb2-remove-file-button").on("click",Object(i.debounce)((function(t){"rank_math_facebook_image"!==t.currentTarget.rel&&"rank_math_twitter_image"!==t.currentTarget.rel||e.updateThumbnailPreview()}),300))}},{key:"updatePreview",value:function(){!1!==this.shouldUpdatePreview&&a()(".preview-network.tab-active").length&&(this.currentNetwork=a()(".preview-network.tab-active").attr("href").replace("#setting-panel-social-",""),this.socialWrapper.removeClass(),this.socialWrapper.addClass("rank-math-social-preview rank-math-social-preview-"+this.currentNetwork),"twitter"===this.currentNetwork&&this.socialWrapper.addClass(a()("#rank_math_twitter_card_type").val()),this.updateTitlePreview(),this.updateDescriptionPreview(),this.updateThumbnailPreview())}},{key:"updateTitlePreview",value:function(){var e="twitter"===this.currentNetwork&&this.useFacebook?this.facebookTitleField.val():this[this.currentNetwork+"TitleField"].val();""!==e?e=this.truncate(k.a.swap(e),90):(e=Object(he.a)(rankMathEditor.assessor.dataCollector.getData("title")),this.facebookTitleField.attr("placeholder",e),this.twitterTitleField.attr("placeholder",e)),this.socialTitle.text(e),"facebook"===this.currentNetwork&&this.hideDescription()}},{key:"updateDescriptionPreview",value:function(){var e="twitter"===this.currentNetwork&&this.useFacebook?this.facebookDescriptionField.val():this[this.currentNetwork+"DescriptionField"].val();""!==e?e=this.truncate(k.a.swap(e),240):(e=rankMathEditor.assessor.dataCollector.getData("description"),this.facebookDescriptionField.attr("placeholder",e),this.twitterDescriptionField.attr("placeholder",e)),this.socialDescription.text(Object(i.isUndefined)(e)?"":e)}},{key:"updateThumbnailPreview",value:function(){var e=a()("#rank_math_post_thumbnail").attr("src"),t="<div>"+rankMathEditor.assessor.dataCollector.getData("content")+"</div>",r=!!/<img(?:[^>]+)?>/.test(t)&&a()(t).find("img:first").attr("src"),n=this.facebookImageField.val()||e||r||rankMath.defautOgImage,i=this.twitterImageField.val()||e||r||rankMath.defautOgImage;if("twitter"===this.currentNetwork&&this.useFacebook)i=n;else if(this.twitterImageStatus.find("img.cmb-file-field-image").length){var o=this.twitterImageStatus.siblings(".notice"),s=this.twitterImageStatus.find("img.cmb-file-field-image")[0];o.addClass("hidden"),a()(s).on("load",(function(){(200>s.naturalWidth||200>s.naturalHeight)&&o.removeClass("hidden")}))}var c=this.facebookImageStatus.siblings(".notice"),u=this.facebookImageStatus.find("img.cmb-file-field-image");c.addClass("hidden"),"facebook"===this.currentNetwork&&this.facebookImageField.val()&&u.length&&a()(u[0]).on("load",(function(){(200>u[0].naturalWidth||200>u[0].naturalHeight)&&c.removeClass("hidden")}));var l=a()(".rank-math-social-preview-image");a()(".facebook-thumbnail",l).attr("src",n),a()(".twitter-thumbnail",l).attr("src",i),l.toggleClass("no-facebook-image",!n),l.toggleClass("no-twitter-image",!i),l.parents(".rank-math-social-preview-facebook").find(".error-msg").toggleClass("show",!n),l.parents(".rank-math-social-preview-twitter").find(".error-msg").toggleClass("show",!i),this.updateThumbnailOverlay()}},{key:"updateThumbnailOverlay",value:function(){var e=a()(".rank-math-social-preview-image-overlay"),t=a()('[name="rank_math_'+this.currentNetwork+'_enable_image_overlay"]:checked').val(),r=!a()(".rank-math-social-preview-image").hasClass("no-"+this.currentNetwork+"-image"),n=a()('[name="rank_math_'+this.currentNetwork+'_image_overlay"]:checked').val();"twitter"===this.currentNetwork&&this.useFacebook&&(n=a()('[name="rank_math_facebook_image_overlay"]:checked').val(),r=!1);var i=a()(".cmb2-id-rank-math-"+this.currentNetwork+"-enable-image-overlay"),o="on"===i.find("input:checked").val();i.toggle(r),i.find(".notice-warning").toggle(o),"on"===t?(e.attr("src",rankMath.overlayImages[n].url).attr("class",(function(){return a()(this).attr("class").replace(/(^| )overlay-position-[a-zA-Z0-9_-]+/,"")+" overlay-position-"+rankMath.overlayImages[n].position})).show(),a()(".cmb2-id-rank-math-"+this.currentNetwork+"-image-overlay").toggle(r)):e.hide()}},{key:"hideDescription",value:function(){this.socialDescription.removeClass("hidden"),this.socialTitle.height()>22&&this.socialDescription.addClass("hidden")}},{key:"truncate",value:function(e,t){return e.length>t?e.substring(0,t):e}}])&&fe(t.prototype,r),n&&fe(t,n),e}();var ge=function e(){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"post"===rankMath.objectType){var t=a()('.rank-math-tabs-navigation a[href="#setting-panel-schema"] .dashicons'),r=a()("#_bsf_post_type");if(a()('#rank_math_rich_snippet, input[type="radio"][name="rank_math_rich_snippet"]').on("change",(function(){var e,n="rank_math_rich_snippet"===a()(this).attr("id")?a()(this).val():a()('input[type="radio"][name="rank_math_rich_snippet"]:checked').val();t.removeClass().addClass((e=n,Object(i.get)({off:"rm-icon rm-icon-schema",Article:"rm-icon rm-icon-post",Book:"rm-icon rm-icon-book",Course:"rm-icon rm-icon-course",Event:"rm-icon rm-icon-calendar",JobPosting:"rm-icon rm-icon-job",Local:"rm-icon rm-icon-local-seo",Music:"rm-icon rm-icon-music",Product:"rm-icon rm-icon-cart",WooCommerceProduct:"rm-icon rm-icon-cart",Recipe:"rm-icon rm-icon-recipe",Restaurant:"rm-icon rm-icon-restaurant",Video:"rm-icon rm-icon-video",Person:"rm-icon rm-icon-users",Review:"rm-icon rm-icon-star",Service:"rm-icon rm-icon-service",Software:"rm-icon rm-icon-software"},e,"rm-icon rm-icon-schema"))),r.length&&"off"!==n&&r.val("0").trigger("change")})).trigger("change"),r.length){var n=a()("#rank_math_rich_snippet"),o=a()('input[name="rank_math_rich_snippet"][value="off"]');r.on("change",(function(){"0"!==r.val()&&(n.val("off").trigger("change"),o.prop("checked",!0).trigger("change"))})).trigger("change")}}};function ke(e){return(ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ve=function e(){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"post"===rankMath.objectType&&rankMath.postSettings.linkSuggestions){a.a.fn.extend({insertLink:function(e,t){var r=this[0],n="";if(r.selectionStart||"0"===r.selectionStart){var a=r.selectionStart,i=r.selectionEnd,o=r.scrollTop;n='<a href="'+e+'">'+r.value.substring(a,i)+"</a>",a===i&&(n='<a href="'+e+'">'+t+"</a>"),r.value=r.value.substring(0,a)+n+r.value.substring(i,r.value.length),r.focus(),r.selectionStart=a+n.length,r.selectionEnd=a+n.length,r.scrollTop=o}else n='<a href="'+e+'">'+t+"</a>",r.value+=n,r.focus()}});if("function"==typeof ClipboardJS)new ClipboardJS(".suggestion-copy").on("success",(function(e){var t=a()(e.trigger).parent().next(".suggestion-title"),r=t.html();t.text("Link Copied"),setTimeout((function(){t.html(r)}),1500)}));if("object"!==("undefined"==typeof tinymce?"undefined":ke(tinymce)))return!0;var t=null,r=null;a()(".suggestion-insert").on("click",(function(e){e.preventDefault();var n,i,o,s,c=a()(this);if(c.hasClass("clicked"))return!0;if(null!==tinymce.activeEditor&&!0!==tinymce.activeEditor.isHidden()){t=tinymce.activeEditor,r=a()(t.getBody());var u=t.selection.getContent()||"";if(r.find("a[data-mce-selected]").length){var l=(n="",i="",o=t.selection.getStart(),(s=t.dom.getParent(o,"a[href]"))||(i=t.selection.getContent({format:"raw"}))&&-1!==i.indexOf("</a>")&&((n=i.match(/href="([^">]+)"/))&&n[1]&&(s=t.$('a[href="'+n[1]+'"]',o)[0]),s&&t.selection.select(s)),s);t.dom.setAttribs(l,{href:c.data("url")}),a()(l).text()!==u&&t.insertContent(u)}else u.length?t.insertContent('<a href="'+c.data("url")+'">'+u+"</a>"):t.insertContent('<a href="'+c.data("url")+'">'+c.data("text")+"</a>")}else{var d=a()("textarea.wp-editor-area:visible");d.length&&d.first().insertLink(c.data("url"),c.data("text"))}var p=c.closest(".suggestion-item").find(".suggestion-title"),h=p.html();p.text("Link Inserted"),c.addClass("clicked"),setTimeout((function(){var e,t,r,n;p.html(h),c.removeClass("clicked"),!0===rankMath.postSettings.useFocusKeyword&&(t=c,r=(e=p).data("fkcount")||0,n=e.data("fk"),(r+=1)===n.length&&(r=0),e.find(">a").text(n[r]),e.data("fkcount",r),t.data("text",n[r]))}),1500)})),a()("#rank_math_metabox_link_suggestions").find("h2").append(a()("#rank-math-link-suggestions-tooltip").html())}};var ye=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"post"===rankMath.objectType&&!1!==rankMath.assessor.primaryTaxonomy&&a()("[data-primary-term]").each((function(){var e=a()(this),t=e.val(),r=e.data("primary-term"),n=a()("#"+r+"div"),i=a()("#"+r+"checklist"),o=i.find("li"),s=i.find('input[type="checkbox"]:checked');o.addClass("rank-math-primary-term-li"),o.find("input").each((function(){var e=a()(this);e.parent().append('<span class="rank-math-tooltip"><input class="rank-math-make-primary" value="'+e.val()+'" type="radio" name="rank_math_primary_'+r+'"><span>Make Term Primary</span></span>')})),s.each((function(){var e=a()(this).closest("li");e.addClass("term-checked"),r+"-"+t===e.attr("id")&&(e.addClass("term-marked-primary"),e.find(">label .rank-math-make-primary").prop("checked",!0))})),n.on("click",'input[type="checkbox"]',(function(){var t=a()(this).closest("li");if(t.toggleClass("term-checked"),1===i.find("li.term-checked").length||t.hasClass("term-marked-primary")&&!t.hasClass("term-checked")){var r=i.find("li.term-checked:first > label .rank-math-make-primary");0<r.length?r.trigger("click"):(o.removeClass("term-marked-primary"),o.find('input[type="radio"]').prop("checked",!1),e.val(""))}})),n.on("click",".rank-math-make-primary",(function(){var t=a()(this),r=t.closest("li");o.removeClass("term-marked-primary"),r.addClass("term-marked-primary"),e.val(t.val())})),i.on("wpListAddEnd",(function(){i.find("li:not(.rank-math-primary-term-li)").addClass("rank-math-primary-term-li term-checked").find("input").each((function(){var e=a()(this);e.parent().append('<span class="rank-math-tooltip"><input class="rank-math-make-primary" value="'+e.val()+'" type="radio" name="rank_math_primary_'+r+'"><span>Make Term Primary</span></span>')}))}))}))},be=r(29),we=r.n(be),_e=r(20);function Oe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Te=function(){function e(){var t=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.canUser.general){this.elem=a()("#rank_math_focus_keyword"),this.elemWrapper=this.elem.parent(),this.clickCount=0,this.selectedKeyword={};var r={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this)};rankMath.isUserRegistered&&(r.input=Object(i.debounce)(this.onInput.bind(this),300)),this.tagify=new we.a(this.elem[0],{addTagOnBlur:!0,maxTags:"post"===rankMath.objectType?rankMath.maxTags:1,whitelist:this.whitelist||[],transformTag:function(e){e.value=t.stripTags(e.value)},templates:{tag:function(e,r){return"<tag title='".concat(t.stripTags(e),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(r.class?r.class:"","'\n ").concat(t.getAttributes_esc(r),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(t.stripTags(e),"</span>\n </div>\n </tag>")}},callbacks:r}),this.selectFirstKeyword(),this.setKeywordsClasses=this.setKeywordsClasses.bind(this),Object(s.addAction)("rank_math_refresh_results","rank-math",this.setKeywordsClasses,11)}}var t,r,n;return t=e,(r=[{key:"onInput",value:function(e){var t=this;(e=Object(i.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hasAdded?this.hasAdded=!1:this.request=a.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(r){if(t.hasAdded)t.hasAdded=!1;else{var n=a.a.map(r,(function(e){return e}));t.tagify.settings.whitelist=n,t.tagify.dropdown.show.call(t.tagify,e)}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,e.detail.tag.classList.add("bad-fk"),this.updateSelectedKeyword(e.detail),this.updateKeywords()}},{key:"onRemove",value:function(e){0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){this.updateSelectedKeyword(e.detail),setTimeout((function(){Object(s.doAction)("rank_math_refresh_results")}),500)}},{key:"onEdit",value:function(e){e.detail.tag.setAttribute("value",e.detail.data.value),this.hasAdded=!0,this.updateKeywords()}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"updateSelectedKeyword",value:function(e){this.elemWrapper.find("tag.selected").removeClass("selected"),""!==e.tag?(this.selectedKeyword=e,e.tag.classList.add("selected")):this.selectedKeyword={}}},{key:"setKeywordsClasses",value:function(){if(void 0!==this.tagify.value){var e=this.tagify.value;if(e.length>0){var t=this.elemWrapper.find("tag");e.map((function(e,r){var n=rankMathEditor.resultManager.getScore(o.Helpers.removeDiacritics(e.value));t[r].classList.remove("ok-fk","good-fk","bad-fk"),t[r].classList.add(Object(_e.a)(n))}))}}}},{key:"selectFirstKeyword",value:function(){var e=this.elemWrapper.find("tag"),t={tag:"",index:0,data:{value:""}};e.length>0&&(t={tag:e[0],index:0,data:{value:e[0].getAttribute("value")}}),this.updateSelectedKeyword(t)}},{key:"updateKeywords",value:function(){rankMathEditor.refresh("keyword")}},{key:"getFocusKeywords",value:function(){if(void 0===this.tagify||void 0===this.tagify.value)return[""];var e=this.tagify.value.map((function(e){return e.value}));return e.length?e:[""]}},{key:"getSelectedKeyword",value:function(){return Object(i.get)(this.selectedKeyword,["data","value"],"")}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,r,n=Object.keys(e),a="";for(r=n.length;r--;)"class"!=(t=n[r])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=jQuery("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||"(invalid)"}}])&&Oe(t.prototype,r),n&&Oe(t,n),e}();function Pe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var je=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.image_src="",this.image_alt="",this.getFeaturedImage(),this.setImage(),this.removeImage(),Object(d.a)()&&this.gutenbergImage()}var t,r,n;return t=e,(r=[{key:"setImage",value:function(){var e=this;if(!Object(i.isUndefined)(wp.media)){var t=wp.media.featuredImage.frame();t.on("select",(function(){var r=a()("#rank_math_post_thumbnail"),n=t.state().get("selection").first().toJSON();e.sizeWarning(n),1>r.length&&(r=a()('<img id="rank_math_post_thumbnail" />'),a()(".facebook-thumbnail",".rank-math-social-preview-image").before(r)),"large"in n.sizes?r.attr("src",n.sizes.large.url):r.attr("src",n.sizes.full.url),e.setFeaturedImage(n)}))}}},{key:"removeImage",value:function(){var e=this;a()("#postimagediv").on("click","#remove-post-thumbnail",(function(){a()("#rank_math_image_warning").remove(),a()("#rank_math_post_thumbnail").remove(),e.setFeaturedImage("")}))}},{key:"gutenbergImage",value:function(){var e,t,r=this;wp.data.subscribe((function(){var n=wp.data.select("core/editor").getEditedPostAttribute("featured_media");r.isValidMediaId(n)&&(e=wp.data.select("core").getMedia(n),Object(i.isUndefined)(e)||e!==t&&(t=e,r.setFeaturedImage({url:e.guid.rendered,alt:e.alt_text})))}))}},{key:"setFeaturedImage",value:function(e){var t={src:Object(i.get)(e,"url",""),alt:Object(i.get)(e,"alt","")};Object(s.doAction)("rank_math_updated_featured_image",t)}},{key:"sizeWarning",value:function(e){if(a()("#rank_math_image_warning").remove(),!(200<e.width&&200<e.height)){var t=a()("#postimagediv").find(".hndle");a()('<div id="rank_math_image_warning" class="notice notice-error notice-alt"><p>'+rankMath.featuredImageNotice+"</p></div>").insertAfter(t)}}},{key:"getFeaturedImage",value:function(){var e=a()("#postimagediv img");if(!e||e.length){var t={url:e[0].src,alt:e[0].alt};this.setFeaturedImage(t)}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}}])&&Pe(t.prototype,r),n&&Pe(t,n),e}(),Ie=r(30);function Se(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var De=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.canUser.analysis&&(a()("#setting-panel-general").append('<div id="rank-math-serp-checklist" class="rank-math-serp-checklist"></div>'),this.elem=a()("#rank-math-serp-checklist"),this.scoreText=rankMath.showScore?'<span class="score-text"><span class="score-icon"><svg viewBox="0 0 460 460" xmlns="http://www.w3.org/2000/svg" width="20"><g><path d="m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z"/><path d="m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z"/></g></svg></span> SEO: <strong>Not available</strong></span>':"",this.fkScoreText=rankMath.showScore?'<span class="score-text">Not available</span>':"",this.scoreElem=a()('<div class="misc-pub-section rank-math-seo-score loading">'+this.scoreText+"</div>"),this.scoreText=this.scoreElem.find("strong"),this.scoreField=a()("#rank_math_seo_score"),this.fkScoreElem=a()('<div class="rank-math-seo-score loading below-focus-keyword">'+this.fkScoreText+"</div>"),this.fkScoreText=this.fkScoreElem.find("span"),a()("#misc-publishing-actions").append(this.scoreElem),a()(".cmb-td",".cmb2-id-rank-math-focus-keyword").append(this.fkScoreElem),this.events(),this.refreshResults=this.refreshResults.bind(this),Object(s.addAction)("rank_math_refresh_results","rank-math",this.refreshResults))}var t,r,n;return t=e,(r=[{key:"events",value:function(){var e=this;this.elem.on("click",".group-handle",(function(t){t.preventDefault();var r=a()(t.target),n={},i=r.closest(".rank-math-serp-group");i.toggleClass("state-open state-closed"),e.elem.find(">.rank-math-serp-group").each((function(){i=a()(this),n[i.data("id")]=i.hasClass("state-closed")?"closed":"open"})),a.a.ajax({url:rankMath.ajaxurl,type:"POST",data:{action:"rank_math_save_checklist_layout",security:rankMath.security,layout:n}})}))}},{key:"refreshResults",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();if(this.isPrimary=t===rankMathEditor.getPrimaryKeyword(),this.results=rankMathEditor.resultManager.getResult(t),Object(i.isUndefined)(this.results))return null;var r=Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}));this.elem.html(r),this.updateScore()}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e),r="basic"===e||a()("#rank-math-serp-group-"+e).hasClass("state-open")?"state-open":"state-closed",n=0===this.errors?"test-ok":"test-fail",i=Object(c.__)("All Good","rank-math");return 0<this.errors&&(i=1===this.errors?this.errors+" "+Object(c.__)("Error","rank-math"):this.errors+" "+Object(c.__)("Errors","rank-math")),'\n\t\t<div id="rank-math-serp-group-'.concat(e,'" class="rank-math-serp-group ').concat(r,'" data-id="').concat(e,'">\n\t\t\t<div class="group-handle">\n\t\t\t\t<h4>').concat(this.getGroupTitle(e),'</h4>\n\t\t\t\t<span class="rank-math-group-score ').concat(n,'">').concat(i,'</span>\n\t\t\t\t<button type="button" class="group-handlediv" aria-expanded="true"><span class="screen-reader-text"></span><span class="toggle-indicator"></span></button>\n\t\t\t</div>\n\t\t\t<ul>').concat(t,"</ul>\n\t\t</div>")}},{key:"renderGroupItems",value:function(e){var t=this,r=this.results.results,n=this.getGroupItems(e),a="";return Object.keys(n).map((function(e){if(Object(i.isUndefined)(r[e])||!t.isPrimary&&n[e])return!1;var o=r[e],s="seo-check-"+e;s+=o.hasScore()?" test-ok":" test-fail",o.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(s+=" "+Object(Ie.a)(o.getScore(),o.getMaxScore())),"fleschReading"===e&&o.hasScore()&&(s+=" "+o.note.replace(/ /g,"-")),!1===o.hasScore()&&(t.errors+=1);var c=o.hasTooltip()?'<span class="rank-math-tooltip"><em class="dashicons-before dashicons-editor-help" ></em><span>'+o.getTooltip()+"</span></span>":"";a+='<li key="'.concat(e,'" class="').concat(s,'">\n\t\t\t\t\t<span>').concat(o.getText(),"</span>\n\t\t\t\t\t").concat(c,"\n\t\t\t\t</li>")})),a}},{key:"updateScore",value:function(){var e=rankMathEditor.resultManager.getScore(rankMathEditor.getPrimaryKeyword()),t=Object(_e.a)(e);this.scoreElem.removeClass("loading bad-fk ok-fk good-fk"),this.fkScoreElem.removeClass("loading bad-fk ok-fk good-fk"),this.scoreElem.addClass(t),this.fkScoreElem.addClass(t),this.scoreText.html(e+" / 100"),this.fkScoreText.html(e+" / 100"),this.scoreField.val(parseInt(e))}},{key:"getGroupItems",value:function(e){return("post"===rankMath.objectType?{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}:{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0},advanced:{titleStartWithKeyword:!0,keywordNotUsed:!0}})[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return"post"===rankMath.objectType?{basic:Object(c.__)("Basic SEO","rank-math"),advanced:Object(c.__)("Additional","rank-math"),"title-readability":Object(c.__)("Title Readability","rank-math"),"content-readability":Object(c.__)("Content Readability","rank-math")}:{basic:Object(c.__)("Basic SEO","rank-math"),advanced:Object(c.__)("Additional","rank-math")}}}])&&Se(t.prototype,r),n&&Se(t,n),e}();function Ce(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Me=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,(r=[{key:"setup",value:function(){this.elemMetabox=a()("#cmb2-metabox-rank_math_metabox"),this.resultManager=new o.ResultManager,this.assessor=new l(this.getCollector()),new p.a,this.registerComponents=this.registerComponents.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.registerComponents,1)}},{key:"registerComponents",value:function(){this.components={},this.components.SerpPreview=new pe,this.components.socialFields=new me,this.components.richSnippet=new ge,this.components.linkSuggestions=new ve,this.components.primaryTerm=new ye,this.components.focusKeywords=new Te,this.components.featuredImage=new je,this.components.checkLists=new De,rankMathAdmin.variableInserter(!1)}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"updatePermalink",value:function(e){e=this.assessor.getResearch("slugify")(e),this.assessor.dataCollector.handleSlugChange(e)}},{key:"getPrimaryKeyword",value:function(){return o.Helpers.removeDiacritics(this.components.focusKeywords.getFocusKeywords()[0])}},{key:"getSelectedKeyword",value:function(){var e=this.components.focusKeywords.getSelectedKeyword();return Object(i.isUndefined)(e)?"":o.Helpers.removeDiacritics(this.components.focusKeywords.getSelectedKeyword())}},{key:"getCollector",value:function(){return"post"===rankMath.objectType?Object(d.a)()?new w:new M(this):"term"===rankMath.objectType?new N:"user"===rankMath.objectType?new $:void 0}}])&&Ce(t.prototype,r),n&&Ce(t,n),e}();a()((function(){Object(m.a)(),window.rankMathEditor=new Me,window.rankMathEditor.setup(),window.RankMathApp=new f})),a()(window).on("load",(function(){a.a.when(a.a.ready).then((function(){Object(s.doAction)("rank_math_loaded")}))}))}]);
assets/admin/js/common.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function a(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=84)}({0:function(e,t){e.exports=wp.i18n},1:function(e,t){e.exports=lodash},14:function(e,t,a){"use strict";var n=a(2),i=a.n(n);t.a=function(e,t,a){return i.a.ajax({url:rankMath.ajaxurl,type:a||"POST",dataType:"json",data:i.a.extend(!0,{action:"rank_math_"+e,security:rankMath.security},t)})}},18:function(e,t,a){"use strict";var n=a(2),i=a.n(n);t.a=function(e,t,a,n){t=t||"error",n=n||!1;var o=i()('<div class="notice notice-'+t+' is-dismissible"><p>'+e+"</p></div>").hide();a.next(".notice").remove(),a.after(o),o.slideDown(),i()(document).trigger("wp-updates-notice-added"),n&&setTimeout((function(){o.fadeOut((function(){o.remove()}))}),n)}},2:function(e,t){e.exports=jQuery},53:function(e,t,a){"use strict";var n=a(2),i=a.n(n);t.a=function(e){var t=e||".rank-math-box-tabs";i()(t).children().on("click",(function(e){e.preventDefault();var t=i()(this),a=t.attr("href").substr(1);t.addClass("active-tab").siblings().removeClass("active-tab"),i()("#"+a).addClass("active-tab").siblings().removeClass("active-tab")}))}},84:function(e,t,a){"use strict";a.r(t);var n=a(2),i=a.n(n),o=a(0),r=a(14),c=a(18),s=a(1);function l(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var d,p=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.response=""}var t,a,n;return t=e,(a=[{key:"checkAll",value:function(){var e=this,t=i()("#setting-panel-analytics .cmb2-id-check-all-services:not(.done), #cmb2-metabox-rank-math-wizard .cmb2-id-check-all-services:not(.done)");t.length>0&&"0"==t.val()&&(t.addClass("done"),Object(r.a)("google_check_all_services").done((function(t){e.response=t,e.fillSelect(),e.accordions.removeClass("locked")})))}},{key:"events",value:function(){var e=this;this.saveChanges=!1,this.accountSelect=i()(".site-analytics-account"),this.profileSelect=i()(".site-console-profile"),this.propertySelect=i()(".site-analytics-property"),this.viewSelect=i()(".site-analytics-view"),this.adsenseSelect=i()(".site-adsense-account"),this.accordions=i()(".rank-math-accordion"),this.countryConsole=i()("#site-console-country"),this.countryAnalytics=i()("#site-analytics-country"),this.accountSelect.on("change",(function(){var t=parseInt(e.accountSelect.val());0!==t?e.fillPropertySelect(t):e.propertySelect.html('<option value="0">Select Property</option>')})),i()([".rank-math-wizard-body--analytics .form-footer.rank-math-ui .button-primary",".rank-math_page_rank-math-options-general .form-footer.rank-math-ui .button-primary"].join(", ")).on("click",(function(t){e.submitButtonHandler(t)})),this.propertySelect.on("change",(function(){var t=e.accountSelect.val(),a=e.propertySelect.val(),n=e.response.accounts;e.response.views=Object(s.get)(n,[t,"properties",a,"profiles"],{}),e.fillViewSelect()})),i()(".rank-math-disconnect-google").on("click",(function(e){e.preventDefault(),confirm(rankMath.confirmDisconnect)&&Object(r.a)("disconnect_google").done((function(){window.location.reload()}))}))}},{key:"submitButtonHandler",value:function(e){var t=i()(e.target);e.preventDefault(),this.saveConsole(),this.saveAnalytics(),this.saveAdsense(),setTimeout((function(){t.off("click").trigger("click")}),100)}},{key:"saveConsole",value:function(){if(0!==parseInt(this.profileSelect.val())){var e={profile:this.profileSelect.val(),country:this.countryConsole.val()},t=i()("#console_caching_control");t.length>0&&(e.days=t.val()),Object(r.a)("save_analytic_profile",e,"post")}}},{key:"saveAnalytics",value:function(){var e={accountID:this.accountSelect.val(),propertyID:this.propertySelect.val(),viewID:this.viewSelect.val(),country:this.countryAnalytics.val(),installCode:i()("#install-code").is(":checked"),anonymizeIP:i()("#anonymize-ip").is(":checked"),localGAJS:i()("#local-ga-js").is(":checked"),cookielessGA:i()("#cookieless-ga").is(":checked"),excludeLoggedin:i()("#exclude-loggedin").is(":checked")};if(0!==parseInt(e.accountID)&&0!==parseInt(e.propertyID)){var t=i()("#console_caching_control");t.length>0&&(e.days=t.val()),Object(r.a)("save_analytic_options",e,"post")}}},{key:"saveAdsense",value:function(){var e={accountID:this.adsenseSelect.val()};e.accountID&&Object(r.a)("save_adsense_account",e,"post")}},{key:"fillSelect",value:function(){var e=this,t=this.response,a=t.inSearchConsole,n=t.isVerified;this.fillProfileSelect(),this.fillAccountSelect(),this.fillAdsenseSelect(),a||Object(r.a)("add_site_console").done((function(t){e.response.sites=t.sites,e.fillProfileSelect()})),a&&!n&&Object(r.a)("verify_site_console"),this.saveChanges=!1}},{key:"fillAdsenseSelect",value:function(){var e=this,t=this.response.adsenseAccounts,a=void 0!==t&&t;!1!==a&&(this.adsenseSelect.html('<option value="0">Select Account</option>'),Object(s.map)(a,(function(t,a){e.adsenseSelect.append('<option value="'+a+'">'+t.name+"</option>")})),this.adsenseSelect.data("selected")&&this.adsenseSelect.val(this.adsenseSelect.data("selected")),this.adsenseSelect.prop("disabled",!1))}},{key:"fillAccountSelect",value:function(){var e=this,t=this.response.accounts;this.accountSelect.html('<option value="0">Select Account</option>'),Object(s.map)(t,(function(t,a){e.accountSelect.append('<option value="'+a+'">'+t.name+"</option>")})),this.accountSelect.data("selected")?this.accountSelect.val(this.accountSelect.data("selected")):(this.accountSelect.prop("disabled",!1),this.countryAnalytics.prop("disabled",!1)),this.accountSelect.trigger("change")}},{key:"fillPropertySelect",value:function(e){var t=this,a=this.response,n=a.accounts,i=a.homeUrl,o=n[e].properties;this.propertySelect.html('<option value="0">Select Property</option>'),Object(s.map)(o,(function(e){var a=e.url===i?' selected="selected"':"";t.propertySelect.append("<option"+a+' value="'+e.id+'">'+e.name+"</option>")})),this.propertySelect.data("selected")?this.propertySelect.val(this.propertySelect.data("selected")):this.propertySelect.prop("disabled",!1),this.propertySelect.trigger("change")}},{key:"fillProfileSelect",value:function(){var e=this,t=this.response,a=t.sites,n=t.homeUrl;this.profileSelect.html('<option value="0">Select Profile</option>');var i=!1;Object(s.map)(a,(function(t,a){i=a===n?' selected="selected"':"",e.profileSelect.append("<option"+i+' value="'+a+'">'+t+"</option>")})),this.profileSelect.data("selected")&&this.profileSelect.closest(".rank-math-accordion").addClass("connected"),this.profileSelect.prop("disabled",!1),this.countryConsole.prop("disabled",!1)}},{key:"fillViewSelect",value:function(){var e=this;this.viewSelect.html('<option value="0">Select Web View</option>');var t=this.response.views;Object(s.map)(t,(function(t){e.viewSelect.append('<option value="'+t.id+'">'+t.name+"</option>")})),this.viewSelect.data("selected")&&this.viewSelect.val(this.viewSelect.data("selected")),this.viewSelect.prop("disabled",!1)}}])&&l(t.prototype,a),n&&l(t,n),e}()),u=a(53);d=i.a,String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,a){return void 0!==e[a]?e[a]:t}))}),String.prototype.trimRight=function(e){return void 0===e&&(e="s"),this.replace(new RegExp("["+e+"]+$"),"")},d((function(){window.rankMathAdmin={init:function(){this.misc(),this.tabs(),this.dependencyManager(),-1!==Object.values(window.rankMath.modules).indexOf("analytics")&&(p.events(),p.checkAll())},misc:function(){void 0!==i.a.fn.select2&&d("[data-s2]").select2(),d(".cmb-group-text-only,.cmb-group-fix-me").each((function(){var e=d(this),t=e.find(".cmb-repeatable-group"),a=t.find("> .cmb-row:eq(0) > .cmb-th");e.prepend('<div class="cmb-th"><label>'+a.find("h2").text()+"</label></div>"),t.find(".cmb-add-row").append('<span class="cmb2-metabox-description">'+a.find("p").text()+"</span>"),a.parent().remove()})),d(".rank-math-collapsible-trigger").on("click",(function(e){e.preventDefault();var t=d(this),a=d("#"+t.data("target"));t.toggleClass("open"),a.toggleClass("open")}));var e=d("#rank_math_rich_snippet"),t=e.find("option[value=review]"),a=e.val();t&&(t.prop("disabled",!0),"review"===a&&d(".cmb2-id-rank-math-review-schema-notice").removeClass("hidden"),e.on("change",(function(){null!==e.val()&&"review"!==e.val()&&d(".cmb2-id-rank-math-review-schema-notice").addClass("hidden")})))},searchConsole1:function(){var e=d(".cmb2-id-console-authorization-code"),t=d("#console_authorization_code"),a=d("#gsc-dp-info"),n=d("#console_profile"),i=n.parent().find(".rank-math-refresh"),s=t.parent(),l=d("body").hasClass("rank-math-wizard-body--analytics")?d("> p:first-of-type",".cmb-form"):d("h1",".rank-math-wrap-settings");s.on("click",".rank-math-deauthorize-account",(function(a){a.preventDefault();var s=d(this);if(s.prop("disabled",!0),t.data("authorized"))return Object(r.a)("search_console_deauthentication").always((function(){s.prop("disabled",!1)})).done((function(){t.val(""),t.show(),t.data("authorized",!1),e.removeClass("authorized").addClass("unauthorized"),s.html(Object(o.__)("Authorize","rank-math")),n.prop("disabled",!0),i.prop("disabled",!0)})),!1;t.addClass("input-loading"),Object(r.a)("search_console_authentication",{code:t.val()}).always((function(){s.prop("disabled",!1),t.removeClass("input-loading")})).done((function(a){a&&!a.success&&Object(c.a)(a.error,"error",l),a&&a.success&&(t.hide(),t.data("authorized",!0),s.html("De-authorize Account"),i.trigger("click"),n.removeAttr("disabled"),e.removeClass("unauthorized authorizing").addClass("authorized"))}))})),n.on("change",(function(){null!==n.val()&&0===n.val().indexOf("sc-domain:")?a.removeClass("hidden"):a.addClass("hidden")})).change(),i.on("click",(function(e){e.preventDefault(),i.prop("disabled",!0),n.addClass("input-loading"),Object(r.a)("search_console_get_profiles").always((function(){i.prop("disabled",!1),d(".console-cache-update-manually").prop("disabled",!1),n.removeClass("input-loading")})).done((function(e){if(e&&!e.success&&Object(c.a)(e.error,"error",l),e&&e.success){var t=e.selected||n.val();n.html(""),d.each(e.profiles,(function(e,t){n.append('<option value="'+e+'">'+t+"</option>")})),n.val(t||Object.keys(e.profiles)[0]),i.removeClass("hidden")}}))}))},dependencyManager:function(){var e=this,t=d(".cmb-form, .rank-math-metabox-wrap");d(".cmb-repeat-group-wrap",t).each((function(){var e=d(this),t=e.next(".rank-math-cmb-dependency.hidden");t.length&&e.find("> .cmb-td").append(t)})),d(".rank-math-cmb-dependency",t).each((function(){e.loopDependencies(d(this))})),d("input, select",t).on("change",(function(){var t=d(this).attr("name");d('span[data-field="'+t+'"]').each((function(){e.loopDependencies(d(this).closest(".rank-math-cmb-dependency"))}))}))},checkDependency:function(e,t,a){return"string"==typeof t&&t.includes(",")&&"="===a?t.includes(e):"string"==typeof t&&t.includes(",")&&"!="===a?!t.includes(e):"="===a&&e===t||"=="===a&&e===t||">="===a&&e>=t||"<="===a&&e<=t||">"===a&&e>t||"<"===a&&e<t||"!="===a&&e!==t},loopDependencies:function(e){var t=this,a=e.data("relation"),n=null;e.find("span").each((function(){var e=d(this),i=d("[name='"+e.data("field")+"']"),o=i.val();i.is(":radio")&&(o=i.filter(":checked").val()),i.is(":checkbox")&&(o=i.filter(":checked").val());var r=t.checkDependency(o,e.data("value"),e.data("comparison"));if("or"===a&&r)return n=!0,!1;"and"===a&&(n=(null===n||n)&&r)}));var i=e.closest(".rank-math-cmb-group");i.length||(i=e.closest(".cmb-row")),n?i.slideDown(300):i.hide()},tabs:function(){Object(u.a)();var e=d(".rank-math-tabs-navigation");e.length&&e.each((function(){var t=d(this),a=t.closest(".rank-math-tabs"),n=d(">a",t),i=d(">.rank-math-tabs-content>.rank-math-tab",a),o=t.data("active-class")||"active",r=t.hasClass("before-header");n.on("click",(function(){var e=d(this),t=d(e.attr("href"));if(n.removeClass(o),i.hide(),r){var c=t.find(".cmb-type-title.tab-header").clone();c.addClass("before-header-title"),d(".before-header-title").remove(),a.prepend(c)}return e.addClass(o),t.show(),!1}));var c=window.location.hash||window.localStorage.getItem(a.attr("id"));null===c?n.eq(0).trigger("click"):(c=d('a[href="'+c+'"]',t)).length?c.trigger("click"):n.eq(0).trigger("click"),e.next().css("min-height",t.outerHeight())}))},variableInserter:function(e){var t=d("input[type=text], textarea",".rank-math-supports-variables");if(e=void 0===e||e,t.length){var a,n=this,i=d("body");t.attr("autocomplete","off"),t.wrap('<div class="rank-math-variables-wrap"/>'),d(".rank-math-variables-wrap").append('<a href="#" class="rank-math-variables-button button button-secondary"><span class="dashicons dashicons-arrow-down-alt2"></span></a>'),e&&(d(".rank-math-variables-wrap").after('<div class="rank-math-variables-preview" data-title="'+Object(o.__)("Example","rank-math")+'"/>'),t.on("rank_math_variable_change input",(function(e){var t=d(e.currentTarget),a=n.replaceVariables(t.val());60<a.length&&0<=t.attr("name").indexOf("title")?a=a.substring(0,60)+"...":160<a.length&&0<=t.attr("name").indexOf("description")&&(a=a.substring(0,160)+"...");var i=d("<textarea/>").html(a).val();t.parent().next(".rank-math-variables-preview").text(i)})),t.trigger("rank_math_variable_change"));var r=d("<ul/>"),c=d('<div class="rank-math-variables-dropdown"><input type="text" placeholder="'+Object(o.__)("Search &hellip;","rank-math")+'"></div>');d.each(rankMath.variables,(function(){r.append('<li data-var="%'+this.variable+'%" data-example="'+this.example+'"><strong>'+this.name+"</strong><span>"+this.description+"</span></li>")})),c.append(r),d(".rank-math-variables-wrap:eq(0)").append(c);var s=d(".rank-math-variables-button, .rank-math-variables-button *, .rank-math-variables-dropdown, .rank-math-variables-dropdown *");i.on("click",(function(e){d(e.target).is(s)||h()}));var l=c.find("input"),p=c.find("li");i.on("click",".rank-math-variables-button",(function(e){e.preventDefault();var t=d(this);t.after(c),p.show(),void 0!==(a=t.prev().data("exclude-variables"))&&(a=a.split(","),u()),c.show(),l.val("").focus()})),c.on("click","li",(function(e){e.preventDefault();var t=d(this),a=t.closest(".rank-math-variables-wrap").find("input,textarea");a.val(d.trim(a.val())+" "+t.data("var")),a.trigger("rank_math_variable_change").trigger("input"),h()})),c.on("keyup","input",(function(e){e.preventDefault();var t=d(this).val().toLowerCase();if(2>t.length)return p.show(),void u();p.hide().each((function(){var e=d(this);-1!==e.text().toLowerCase().indexOf(t)&&e.show()})),u()}))}function u(){void 0!==a&&a.forEach((function(e){c.find('[data-var="%'+e+'%"]').hide()}))}function h(){a=void 0,c.hide()}},replaceVariables:function(e){return d.each(rankMath.variables,(function(t){if(!this.example)return!0;var a=new RegExp("\\([a-z]+\\)","g");t=t.replace(a,"\\(.*?\\)"),e=e.replace(new RegExp("%+"+t+"%+","g"),this.example)})),e}},window.rankMathAdmin.init()}))}});
1
+ !function(e){var t={};function a(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=81)}({0:function(e,t){e.exports=wp.i18n},1:function(e,t){e.exports=lodash},14:function(e,t,a){"use strict";var n=a(3),i=a.n(n);t.a=function(e,t,a){return i.a.ajax({url:rankMath.ajaxurl,type:a||"POST",dataType:"json",data:i.a.extend(!0,{action:"rank_math_"+e,security:rankMath.security},t)})}},18:function(e,t,a){"use strict";var n=a(3),i=a.n(n);t.a=function(e,t,a,n){t=t||"error",n=n||!1;var o=i()('<div class="notice notice-'+t+' is-dismissible"><p>'+e+"</p></div>").hide();a.next(".notice").remove(),a.after(o),o.slideDown(),i()(document).trigger("wp-updates-notice-added"),n&&setTimeout((function(){o.fadeOut((function(){o.remove()}))}),n)}},3:function(e,t){e.exports=jQuery},42:function(e,t,a){"use strict";var n=a(3),i=a.n(n);t.a=function(e){var t=e||".rank-math-box-tabs";i()(t).children().on("click",(function(e){e.preventDefault();var t=i()(this),a=t.attr("href").substr(1);t.addClass("active-tab").siblings().removeClass("active-tab"),i()("#"+a).addClass("active-tab").siblings().removeClass("active-tab")}))}},81:function(e,t,a){"use strict";a.r(t);var n=a(3),i=a.n(n),o=a(0),r=a(14),c=a(18),s=a(1);function l(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var d,p=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.response=""}var t,a,n;return t=e,(a=[{key:"checkAll",value:function(){var e=this,t=i()("#setting-panel-analytics .cmb2-id-check-all-services:not(.done), #cmb2-metabox-rank-math-wizard .cmb2-id-check-all-services:not(.done)");t.length>0&&"0"===t.val()&&(t.addClass("done"),Object(r.a)("google_check_all_services").done((function(t){e.response=t,e.fillSelect(),e.accordions.removeClass("locked")})))}},{key:"events",value:function(){var e=this;this.saveChanges=!1,this.accountSelect=i()(".site-analytics-account"),this.profileSelect=i()(".site-console-profile"),this.propertySelect=i()(".site-analytics-property"),this.viewSelect=i()(".site-analytics-view"),this.adsenseSelect=i()(".site-adsense-account"),this.accordions=i()(".rank-math-accordion"),this.countryConsole=i()("#site-console-country"),this.countryAnalytics=i()("#site-analytics-country"),this.accountSelect.on("change",(function(){var t=parseInt(e.accountSelect.val());0!==t?e.fillPropertySelect(t):e.propertySelect.html('<option value="0">Select Property</option>')})),i()([".rank-math-wizard-body--analytics .form-footer.rank-math-ui .button-primary",".rank-math_page_rank-math-options-general .form-footer.rank-math-ui .button-primary"].join(", ")).on("click",(function(t){e.submitButtonHandler(t)})),this.propertySelect.on("change",(function(){var t=e.accountSelect.val(),a=e.propertySelect.val(),n=e.response.accounts;e.response.views=Object(s.get)(n,[t,"properties",a,"profiles"],{}),e.fillViewSelect()})),i()(".rank-math-disconnect-google").on("click",(function(e){e.preventDefault(),confirm(rankMath.confirmDisconnect)&&Object(r.a)("disconnect_google").done((function(){window.location.reload()}))}))}},{key:"submitButtonHandler",value:function(e){var t=i()(e.target);e.preventDefault(),this.saveConsole(),this.saveAnalytics(),this.saveAdsense(),setTimeout((function(){t.off("click").trigger("click")}),100)}},{key:"saveConsole",value:function(){if(0!==parseInt(this.profileSelect.val())){var e={profile:this.profileSelect.val(),country:this.countryConsole.val()},t=i()("#console_caching_control");t.length>0&&(e.days=t.val()),Object(r.a)("save_analytic_profile",e,"post")}}},{key:"saveAnalytics",value:function(){var e={accountID:this.accountSelect.val(),propertyID:this.propertySelect.val(),viewID:this.viewSelect.val(),country:this.countryAnalytics.val(),installCode:i()("#install-code").is(":checked"),anonymizeIP:i()("#anonymize-ip").is(":checked"),localGAJS:i()("#local-ga-js").is(":checked"),cookielessGA:i()("#cookieless-ga").is(":checked"),excludeLoggedin:i()("#exclude-loggedin").is(":checked")};if(0!==parseInt(e.accountID)&&0!==parseInt(e.propertyID)){var t=i()("#console_caching_control");t.length>0&&(e.days=t.val()),Object(r.a)("save_analytic_options",e,"post")}}},{key:"saveAdsense",value:function(){var e={accountID:this.adsenseSelect.val()};e.accountID&&Object(r.a)("save_adsense_account",e,"post")}},{key:"fillSelect",value:function(){var e=this,t=this.response,a=t.inSearchConsole,n=t.isVerified;this.fillProfileSelect(),this.fillAccountSelect(),this.fillAdsenseSelect(),a||Object(r.a)("add_site_console").done((function(t){e.response.sites=t.sites,e.fillProfileSelect()})),a&&!n&&Object(r.a)("verify_site_console"),this.saveChanges=!1}},{key:"fillAdsenseSelect",value:function(){var e=this,t=this.response.adsenseAccounts,a=void 0!==t&&t;!1!==a&&(this.adsenseSelect.html('<option value="0">Select Account</option>'),Object(s.map)(a,(function(t,a){e.adsenseSelect.append('<option value="'+a+'">'+t.name+"</option>")})),this.adsenseSelect.data("selected")&&this.adsenseSelect.val(this.adsenseSelect.data("selected")),this.adsenseSelect.prop("disabled",!1))}},{key:"fillAccountSelect",value:function(){var e=this,t=this.response.accounts;this.accountSelect.html('<option value="0">Select Account</option>'),Object(s.map)(t,(function(t,a){e.accountSelect.append('<option value="'+a+'">'+t.name+"</option>")})),this.accountSelect.data("selected")?this.accountSelect.val(this.accountSelect.data("selected")):(this.accountSelect.prop("disabled",!1),this.countryAnalytics.prop("disabled",!1)),this.accountSelect.trigger("change")}},{key:"fillPropertySelect",value:function(e){var t=this,a=this.response,n=a.accounts,i=a.homeUrl,o=n[e].properties;this.propertySelect.html('<option value="0">Select Property</option>'),Object(s.map)(o,(function(e){var a=e.url===i?' selected="selected"':"";t.propertySelect.append("<option"+a+' value="'+e.id+'">'+e.name+"</option>")})),this.propertySelect.data("selected")?this.propertySelect.val(this.propertySelect.data("selected")):this.propertySelect.prop("disabled",!1),this.propertySelect.trigger("change")}},{key:"fillProfileSelect",value:function(){var e=this,t=this.response,a=t.sites,n=t.homeUrl;this.profileSelect.html('<option value="0">Select Profile</option>');var i=!1;Object(s.map)(a,(function(t,a){i=a===n?' selected="selected"':"",e.profileSelect.append("<option"+i+' value="'+a+'">'+t+"</option>")})),this.profileSelect.data("selected")&&this.profileSelect.closest(".rank-math-accordion").addClass("connected"),this.profileSelect.prop("disabled",!1),this.countryConsole.prop("disabled",!1)}},{key:"fillViewSelect",value:function(){var e=this;this.viewSelect.html('<option value="0">Select Web View</option>');var t=this.response.views;Object(s.map)(t,(function(t){e.viewSelect.append('<option value="'+t.id+'">'+t.name+"</option>")})),this.viewSelect.data("selected")&&this.viewSelect.val(this.viewSelect.data("selected")),this.viewSelect.prop("disabled",!1)}}])&&l(t.prototype,a),n&&l(t,n),e}()),u=a(42);d=i.a,String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,a){return void 0!==e[a]?e[a]:t}))}),String.prototype.trimRight=function(e){return void 0===e&&(e="s"),this.replace(new RegExp("["+e+"]+$"),"")},d((function(){window.rankMathAdmin={init:function(){this.misc(),this.tabs(),this.dependencyManager(),-1!==Object.values(window.rankMath.modules).indexOf("analytics")&&(p.events(),p.checkAll())},misc:function(){void 0!==i.a.fn.select2&&d("[data-s2]").select2(),d(".cmb-group-text-only,.cmb-group-fix-me").each((function(){var e=d(this),t=e.find(".cmb-repeatable-group"),a=t.find("> .cmb-row:eq(0) > .cmb-th");e.prepend('<div class="cmb-th"><label>'+a.find("h2").text()+"</label></div>"),t.find(".cmb-add-row").append('<span class="cmb2-metabox-description">'+a.find("p").text()+"</span>"),a.parent().remove()})),d(".rank-math-collapsible-trigger").on("click",(function(e){e.preventDefault();var t=d(this),a=d("#"+t.data("target"));t.toggleClass("open"),a.toggleClass("open")}));var e=d("#rank_math_rich_snippet"),t=e.find("option[value=review]"),a=e.val();t&&(t.prop("disabled",!0),"review"===a&&d(".cmb2-id-rank-math-review-schema-notice").removeClass("hidden"),e.on("change",(function(){null!==e.val()&&"review"!==e.val()&&d(".cmb2-id-rank-math-review-schema-notice").addClass("hidden")})))},searchConsole1:function(){var e=d(".cmb2-id-console-authorization-code"),t=d("#console_authorization_code"),a=d("#gsc-dp-info"),n=d("#console_profile"),i=n.parent().find(".rank-math-refresh"),s=t.parent(),l=d("body").hasClass("rank-math-wizard-body--analytics")?d("> p:first-of-type",".cmb-form"):d("h1",".rank-math-wrap-settings");s.on("click",".rank-math-deauthorize-account",(function(a){a.preventDefault();var s=d(this);if(s.prop("disabled",!0),t.data("authorized"))return Object(r.a)("search_console_deauthentication").always((function(){s.prop("disabled",!1)})).done((function(){t.val(""),t.show(),t.data("authorized",!1),e.removeClass("authorized").addClass("unauthorized"),s.html(Object(o.__)("Authorize","rank-math")),n.prop("disabled",!0),i.prop("disabled",!0)})),!1;t.addClass("input-loading"),Object(r.a)("search_console_authentication",{code:t.val()}).always((function(){s.prop("disabled",!1),t.removeClass("input-loading")})).done((function(a){a&&!a.success&&Object(c.a)(a.error,"error",l),a&&a.success&&(t.hide(),t.data("authorized",!0),s.html("De-authorize Account"),i.trigger("click"),n.removeAttr("disabled"),e.removeClass("unauthorized authorizing").addClass("authorized"))}))})),n.on("change",(function(){null!==n.val()&&0===n.val().indexOf("sc-domain:")?a.removeClass("hidden"):a.addClass("hidden")})).change(),i.on("click",(function(e){e.preventDefault(),i.prop("disabled",!0),n.addClass("input-loading"),Object(r.a)("search_console_get_profiles").always((function(){i.prop("disabled",!1),d(".console-cache-update-manually").prop("disabled",!1),n.removeClass("input-loading")})).done((function(e){if(e&&!e.success&&Object(c.a)(e.error,"error",l),e&&e.success){var t=e.selected||n.val();n.html(""),d.each(e.profiles,(function(e,t){n.append('<option value="'+e+'">'+t+"</option>")})),n.val(t||Object.keys(e.profiles)[0]),i.removeClass("hidden")}}))}))},dependencyManager:function(){var e=this,t=d(".cmb-form, .rank-math-metabox-wrap");d(".cmb-repeat-group-wrap",t).each((function(){var e=d(this),t=e.next(".rank-math-cmb-dependency.hidden");t.length&&e.find("> .cmb-td").append(t)})),d(".rank-math-cmb-dependency",t).each((function(){e.loopDependencies(d(this))})),d("input, select",t).on("change",(function(){var t=d(this).attr("name");d('span[data-field="'+t+'"]').each((function(){e.loopDependencies(d(this).closest(".rank-math-cmb-dependency"))}))}))},checkDependency:function(e,t,a){return"string"==typeof t&&t.includes(",")&&"="===a?t.includes(e):"string"==typeof t&&t.includes(",")&&"!="===a?!t.includes(e):"="===a&&e===t||"=="===a&&e===t||">="===a&&e>=t||"<="===a&&e<=t||">"===a&&e>t||"<"===a&&e<t||"!="===a&&e!==t},loopDependencies:function(e){var t=this,a=e.data("relation"),n=null;e.find("span").each((function(){var e=d(this),i=d("[name='"+e.data("field")+"']"),o=i.val();i.is(":radio")&&(o=i.filter(":checked").val()),i.is(":checkbox")&&(o=i.filter(":checked").val());var r=t.checkDependency(o,e.data("value"),e.data("comparison"));if("or"===a&&r)return n=!0,!1;"and"===a&&(n=(null===n||n)&&r)}));var i=e.closest(".rank-math-cmb-group");i.length||(i=e.closest(".cmb-row")),n?i.slideDown(300):i.hide()},tabs:function(){Object(u.a)();var e=d(".rank-math-tabs-navigation");e.length&&e.each((function(){var t=d(this),a=t.closest(".rank-math-tabs"),n=d(">a",t),i=d(">.rank-math-tabs-content>.rank-math-tab",a),o=t.data("active-class")||"active",r=t.hasClass("before-header");n.on("click",(function(){var e=d(this),t=d(e.attr("href"));if(n.removeClass(o),i.hide(),r){var c=t.find(".cmb-type-title.tab-header").clone();c.addClass("before-header-title"),d(".before-header-title").remove(),a.prepend(c)}return e.addClass(o),t.show(),!1}));var c=window.location.hash||window.localStorage.getItem(a.attr("id"));null===c?n.eq(0).trigger("click"):(c=d('a[href="'+c+'"]',t)).length?c.trigger("click"):n.eq(0).trigger("click"),e.next().css("min-height",t.outerHeight())}))},variableInserter:function(e){var t=d("input[type=text], textarea",".rank-math-supports-variables");if(e=void 0===e||e,t.length){var a,n=this,i=d("body");t.attr("autocomplete","off"),t.wrap('<div class="rank-math-variables-wrap"/>'),d(".rank-math-variables-wrap").append('<a href="#" class="rank-math-variables-button button button-secondary"><span class="dashicons dashicons-arrow-down-alt2"></span></a>'),e&&(d(".rank-math-variables-wrap").after('<div class="rank-math-variables-preview" data-title="'+Object(o.__)("Example","rank-math")+'"/>'),t.on("rank_math_variable_change input",(function(e){var t=d(e.currentTarget),a=n.replaceVariables(t.val());60<a.length&&0<=t.attr("name").indexOf("title")?a=a.substring(0,60)+"...":160<a.length&&0<=t.attr("name").indexOf("description")&&(a=a.substring(0,160)+"...");var i=d("<textarea/>").html(a).val();t.parent().next(".rank-math-variables-preview").text(i)})),t.trigger("rank_math_variable_change"));var r=d("<ul/>"),c=d('<div class="rank-math-variables-dropdown"><input type="text" placeholder="'+Object(o.__)("Search &hellip;","rank-math")+'"></div>');d.each(rankMath.variables,(function(){r.append('<li data-var="%'+this.variable+'%" data-example="'+this.example+'"><strong>'+this.name+"</strong><span>"+this.description+"</span></li>")})),c.append(r),d(".rank-math-variables-wrap:eq(0)").append(c);var s=d(".rank-math-variables-button, .rank-math-variables-button *, .rank-math-variables-dropdown, .rank-math-variables-dropdown *");i.on("click",(function(e){d(e.target).is(s)||h()}));var l=c.find("input"),p=c.find("li");i.on("click",".rank-math-variables-button",(function(e){e.preventDefault();var t=d(this);t.after(c),p.show(),void 0!==(a=t.prev().data("exclude-variables"))&&(a=a.split(","),u()),c.show(),l.val("").focus()})),c.on("click","li",(function(e){e.preventDefault();var t=d(this),a=t.closest(".rank-math-variables-wrap").find("input,textarea");a.val(d.trim(a.val())+" "+t.data("var")),a.trigger("rank_math_variable_change").trigger("input"),h()})),c.on("keyup","input",(function(e){e.preventDefault();var t=d(this).val().toLowerCase();if(2>t.length)return p.show(),void u();p.hide().each((function(){var e=d(this);-1!==e.text().toLowerCase().indexOf(t)&&e.show()})),u()}))}function u(){void 0!==a&&a.forEach((function(e){c.find('[data-var="%'+e+'%"]').hide()}))}function h(){a=void 0,c.hide()}},replaceVariables:function(e){return d.each(rankMath.variables,(function(t){if(!this.example)return!0;var a=new RegExp("\\([a-z]+\\)","g");t=t.replace(a,"\\(.*?\\)"),e=e.replace(new RegExp("%+"+t+"%+","g"),this.example)})),e}},window.rankMathAdmin.init()}))}});
assets/admin/js/custom-fields.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=67)}({1:function(e,t){e.exports=lodash},2:function(e,t){e.exports=jQuery},67:function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(1);function u(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,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getContent=function(e){return o()(this.fields).each((function(t,n){e+=o()(n).val()})),e},this.init(),this.hooks(),this.events()}var t,n,r;return t=e,(n=[{key:"init",value:function(){this.fields=this.getFields(),this.getContent=this.getContent.bind(this)}},{key:"hooks",value:function(){wp.hooks.addFilter("rank_math_content","rank-math",this.getContent,11)}},{key:"events",value:function(){o()(this.fields).each((function(e,t){o()(t).on("keyup change",Object(i.debounce)((function(){rankMathEditor.refresh("content")}),500))}))}},{key:"getFields",value:function(){var e=[];return o()("#the-list > tr:visible").each((function(t,n){var r=o()("#"+n.id+"-key").val();-1!==o.a.inArray(r,rankMath.analyzeFields)&&e.push("#"+n.id+"-value")})),e}}])&&u(t.prototype,n),r&&u(t,r),e}();o()((function(){setTimeout((function(){new a}),500)}))}});
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=67)}({1:function(e,t){e.exports=lodash},3:function(e,t){e.exports=jQuery},67:function(e,t,n){"use strict";n.r(t);var r=n(3),o=n.n(r),i=n(1);function u(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,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getContent=function(e){return o()(this.fields).each((function(t,n){e+=o()(n).val()})),e},this.init(),this.hooks(),this.events()}var t,n,r;return t=e,(n=[{key:"init",value:function(){this.fields=this.getFields(),this.getContent=this.getContent.bind(this)}},{key:"hooks",value:function(){wp.hooks.addFilter("rank_math_content","rank-math",this.getContent,11)}},{key:"events",value:function(){o()(this.fields).each((function(e,t){o()(t).on("keyup change",Object(i.debounce)((function(){rankMathEditor.refresh("content")}),500))}))}},{key:"getFields",value:function(){var e=[];return o()("#the-list > tr:visible").each((function(t,n){var r=o()("#"+n.id+"-key").val();-1!==o.a.inArray(r,rankMath.analyzeFields)&&e.push("#"+n.id+"-value")})),e}}])&&u(t.prototype,n),r&&u(t,r),e}();o()((function(){setTimeout((function(){new a}),500)}))}});
assets/admin/js/dashboard.js CHANGED
@@ -1 +1 @@
1
- !function(e){var n={};function t(a){if(n[a])return n[a].exports;var o=n[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(a,o,function(n){return e[n]}.bind(null,o));return a},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=68)}({2:function(e,n){e.exports=jQuery},68:function(e,n,t){"use strict";t.r(n);var a=t(2),o=t.n(a);function r(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var i=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.deactivatePlugins(),this.updateModules(),this.initializeClipBoard(),this.modeSelector(),this.usageTracking()}var n,t,a;return n=e,(t=[{key:"deactivatePlugins",value:function(){o()(".dashboard-deactivate-plugin").on("click",(function(e){e.preventDefault();var n=o()(this);return o.a.ajax({url:window.ajaxurl,type:"POST",data:{action:"rank_math_deactivate_plugins",security:rankMath.security,plugin:"all"}}).always((function(e){"1"===e&&n.parents(".rank-math-notice").remove()})),!1}))}},{key:"updateModules",value:function(){o()(".rank-math-modules").on("change",(function(){var e=o()(this),n=e.closest(".rank-math-box"),t=e.is(":checked"),a=e.val();n.addClass("saving"),o.a.ajax({url:rankMath.api.root+"rankmath/v1/saveModule",method:"POST",beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",rankMath.api.nonce)},data:{module:a,state:t?"on":"off"}}).done((function(e){e?(n.removeClass("saving"),n.toggleClass("active",t),o.a.ajax({url:window.location.pathname+window.location.search,method:"GET"}).done((function(e){if(e){var n=o()(e).find("#toplevel_page_rank-math"),t=o()("#toplevel_page_rank-math > .wp-submenu");n.length&&n.find("> .wp-submenu > li").length!==t.children("li").length&&t.fadeOut(200,(function(){t.html(n.find("> .wp-submenu").hide().children()).fadeIn(400)}))}}))):window.alert("Something went wrong! Please try again.")}))}))}},{key:"initializeClipBoard",value:function(){"undefined"!=typeof ClipboardJS&&(o()(".get-debug-report").on("click",(function(){return o()("#debug-report").slideDown(),o()("#debug-report textarea").focus().select(),o()(this).parent().fadeOut(),!1})),new ClipboardJS("#copy-for-support"))}},{key:"modeSelector",value:function(){o()(".rank-math-mode-selector a").on("click",(function(e){e.preventDefault();var n=o()(this).data("mode");return o.a.ajax({url:rankMath.api.root+"rankmath/v1/updateMode",method:"POST",beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",rankMath.api.nonce)},data:{mode:n}}).done((function(e){e?window.location.reload():window.alert("Something went wrong! Please try again.")})),!1}))}},{key:"usageTracking",value:function(){o()("#rank-math-usage-tracking").on("change",(function(){o.a.ajax({url:rankMath.api.root+"rankmath/v1/updateTracking",method:"POST",beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",rankMath.api.nonce)},data:{enable:o()(this).is(":checked")}}).done((function(e){e||window.alert("Something went wrong! Please try again.")}))}))}}])&&r(n.prototype,t),a&&r(n,a),e}();jQuery(document).ready((function(){new i}))}});
1
+ !function(e){var n={};function t(a){if(n[a])return n[a].exports;var o=n[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(a,o,function(n){return e[n]}.bind(null,o));return a},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=68)}({3:function(e,n){e.exports=jQuery},68:function(e,n,t){"use strict";t.r(n);var a=t(3),o=t.n(a);function r(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var i=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.deactivatePlugins(),this.updateModules(),this.initializeClipBoard(),this.modeSelector(),this.usageTracking()}var n,t,a;return n=e,(t=[{key:"deactivatePlugins",value:function(){o()(".dashboard-deactivate-plugin").on("click",(function(e){e.preventDefault();var n=o()(this);return o.a.ajax({url:window.ajaxurl,type:"POST",data:{action:"rank_math_deactivate_plugins",security:rankMath.security,plugin:"all"}}).always((function(e){"1"===e&&n.parents(".rank-math-notice").remove()})),!1}))}},{key:"updateModules",value:function(){o()(".rank-math-modules").on("change",(function(){var e=o()(this),n=e.closest(".rank-math-box"),t=e.is(":checked"),a=e.val();n.addClass("saving"),o.a.ajax({url:rankMath.api.root+"rankmath/v1/saveModule",method:"POST",beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",rankMath.api.nonce)},data:{module:a,state:t?"on":"off"}}).done((function(e){e?(n.removeClass("saving"),n.toggleClass("active",t),o.a.ajax({url:window.location.pathname+window.location.search,method:"GET"}).done((function(e){if(e){var n=o()(e).find("#toplevel_page_rank-math"),t=o()("#toplevel_page_rank-math > .wp-submenu");n.length&&n.find("> .wp-submenu > li").length!==t.children("li").length&&t.fadeOut(200,(function(){t.html(n.find("> .wp-submenu").hide().children()).fadeIn(400)}))}}))):window.alert("Something went wrong! Please try again.")}))}))}},{key:"initializeClipBoard",value:function(){"undefined"!=typeof ClipboardJS&&(o()(".get-debug-report").on("click",(function(){return o()("#debug-report").slideDown(),o()("#debug-report textarea").focus().select(),o()(this).parent().fadeOut(),!1})),new ClipboardJS("#copy-for-support"))}},{key:"modeSelector",value:function(){o()(".rank-math-mode-selector a").on("click",(function(e){e.preventDefault();var n=o()(this).data("mode");return o.a.ajax({url:rankMath.api.root+"rankmath/v1/updateMode",method:"POST",beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",rankMath.api.nonce)},data:{mode:n}}).done((function(e){e?window.location.reload():window.alert("Something went wrong! Please try again.")})),!1}))}},{key:"usageTracking",value:function(){o()("#rank-math-usage-tracking").on("change",(function(){o.a.ajax({url:rankMath.api.root+"rankmath/v1/updateTracking",method:"POST",beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",rankMath.api.nonce)},data:{enable:o()(this).is(":checked")}}).done((function(e){e||window.alert("Something went wrong! Please try again.")}))}))}}])&&r(n.prototype,t),a&&r(n,a),e}();jQuery(document).ready((function(){new i}))}});
assets/admin/js/divi-admin.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=83)}({0:function(e,t){e.exports=wp.i18n},4:function(e,t){e.exports=wp.element},5:function(e,t){e.exports=jQuery},7:function(e,t,n){var i;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var r=typeof i;if("string"===r||"number"===r)e.push(i);else if(Array.isArray(i)){if(i.length){var s=o.apply(null,i);s&&e.push(s)}}else if("object"===r)if(i.toString===Object.prototype.toString)for(var a in i)n.call(i,a)&&i[a]&&e.push(a);else e.push(i.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(i=function(){return o}.apply(t,[]))||(e.exports=i)}()},83:function(e,t,n){"use strict";n.r(t);var i=n(5),o=n.n(i),r=n(0),s=n(4),a=n(7),d=n.n(a);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=function(e){var t=e.type,n=void 0===t?"info":t,i=e.isDismissible,o=void 0!==i&&i,r=e.children,s=c(e,["type","isDismissible","children"]),a=d()("notice","notice-"+n,{"is-dismissible":o});return wp.element.createElement("div",l({className:a},s),r)};function _(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var p=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cacheDom(),this.renderSeoSettingsNotice(),this.disableDiviSeoInputs()}var t,n,i;return t=e,(n=[{key:"cacheDom",value:function(){this.$etSeoSettingsArea=o()("#wrap-seo"),this.$etDisabledTextInputs=o()("#divi_seo_home_titletext").add("#divi_seo_home_descriptiontext").add("#divi_seo_home_keywordstext").add("#divi_seo_home_separate").add("#divi_seo_single_field_title").add("#divi_seo_single_field_description").add("#divi_seo_single_field_keywords").add("#divi_seo_single_separate").add("#divi_seo_index_separate"),this.$etDisabledSelectInputs=o()("#divi_seo_home_type").add("#divi_seo_single_type").add("#divi_seo_index_type"),this.$etDisabledToggleInputs=o()("#divi_seo_home_title").add("#divi_seo_home_description").add("#divi_seo_home_keywords").add("#divi_seo_home_canonical").add("#divi_seo_single_title").add("#divi_seo_single_description").add("#divi_seo_single_keywords").add("#divi_seo_single_canonical").add("#divi_seo_index_canonical").add("#divi_seo_index_description")}},{key:"renderSeoSettingsNotice",value:function(){var e="rank-math-divi-seo-admin-notice-container";this.$etSeoSettingsArea.find(".et-tab-content").prepend(o()('<div id="'.concat(e,'" />'))),document.querySelectorAll("#"+e).forEach((function(e){Object(s.render)(this.getAdminNotice(),e)}),this)}},{key:"disableDiviSeoInputs",value:function(){this.$etDisabledTextInputs.attr("readonly",!0).css({cursor:"not-allowed"}),this.$etDisabledSelectInputs.css({cursor:"not-allowed"}).find("option").attr("disabled",!0),this.$etDisabledToggleInputs.attr("disabled",!0).find("+ .et_pb_yes_no_button").css({cursor:"not-allowed"}).on("mousedown keydown",(function(){var e=o()(this);e.is(".et_pb_on_state")?e.removeClass("et_pb_on_state").addClass("et_pb_off_state"):e.is(".et_pb_off_state")&&e.addClass("et_pb_on_state").removeClass("et_pb_off_state")}))}},{key:"getAdminNotice",value:function(){return wp.element.createElement(u,{style:{margin:"0",marginBottom:"30px",padding:"12px",borderTopColor:"#e4e4e5",borderRightColor:"#e4e4e5",borderBottomColor:"#e4e4e5"}},wp.element.createElement("p",null,Object(s.createInterpolateElement)(Object(r.__)("The below options are handled via the Rank Math SEO <settings_page_link/>.","rank-math"),{settings_page_link:wp.element.createElement("a",{href:"/wp-admin/admin.php?page=rank-math-options-titles"},Object(r.__)("settings page","rank-math"))})))}}])&&_(t.prototype,n),i&&_(t,i),e}();o()((function(){new p}))}});
1
+ !function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=83)}({0:function(e,t){e.exports=wp.i18n},4:function(e,t){e.exports=wp.element},5:function(e,t){e.exports=jQuery},7:function(e,t,n){var i;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var r=typeof i;if("string"===r||"number"===r)e.push(i);else if(Array.isArray(i)){if(i.length){var s=o.apply(null,i);s&&e.push(s)}}else if("object"===r)if(i.toString===Object.prototype.toString)for(var a in i)n.call(i,a)&&i[a]&&e.push(a);else e.push(i.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(i=function(){return o}.apply(t,[]))||(e.exports=i)}()},83:function(e,t,n){"use strict";n.r(t);var i=n(5),o=n.n(i),r=n(0),s=n(4),a=n(7),d=n.n(a),l=["type","isDismissible","children"];function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var _=function(e){var t=e.type,n=void 0===t?"info":t,i=e.isDismissible,o=void 0!==i&&i,r=e.children,s=u(e,l),a=d()("notice","notice-"+n,{"is-dismissible":o});return wp.element.createElement("div",c({className:a},s),r)};function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cacheDom(),this.renderSeoSettingsNotice(),this.disableDiviSeoInputs()}var t,n,i;return t=e,(n=[{key:"cacheDom",value:function(){this.$etSeoSettingsArea=o()("#wrap-seo"),this.$etDisabledTextInputs=o()("#divi_seo_home_titletext").add("#divi_seo_home_descriptiontext").add("#divi_seo_home_keywordstext").add("#divi_seo_home_separate").add("#divi_seo_single_field_title").add("#divi_seo_single_field_description").add("#divi_seo_single_field_keywords").add("#divi_seo_single_separate").add("#divi_seo_index_separate"),this.$etDisabledSelectInputs=o()("#divi_seo_home_type").add("#divi_seo_single_type").add("#divi_seo_index_type"),this.$etDisabledToggleInputs=o()("#divi_seo_home_title").add("#divi_seo_home_description").add("#divi_seo_home_keywords").add("#divi_seo_home_canonical").add("#divi_seo_single_title").add("#divi_seo_single_description").add("#divi_seo_single_keywords").add("#divi_seo_single_canonical").add("#divi_seo_index_canonical").add("#divi_seo_index_description")}},{key:"renderSeoSettingsNotice",value:function(){var e="rank-math-divi-seo-admin-notice-container";this.$etSeoSettingsArea.find(".et-tab-content").prepend(o()('<div id="'.concat(e,'" />'))),document.querySelectorAll("#"+e).forEach((function(e){Object(s.render)(this.getAdminNotice(),e)}),this)}},{key:"disableDiviSeoInputs",value:function(){this.$etDisabledTextInputs.attr("readonly",!0).css({cursor:"not-allowed"}),this.$etDisabledSelectInputs.css({cursor:"not-allowed"}).find("option").attr("disabled",!0),this.$etDisabledToggleInputs.attr("disabled",!0).find("+ .et_pb_yes_no_button").css({cursor:"not-allowed"}).on("mousedown keydown",(function(){var e=o()(this);e.is(".et_pb_on_state")?e.removeClass("et_pb_on_state").addClass("et_pb_off_state"):e.is(".et_pb_off_state")&&e.addClass("et_pb_on_state").removeClass("et_pb_off_state")}))}},{key:"getAdminNotice",value:function(){return wp.element.createElement(_,{style:{margin:"0",marginBottom:"30px",padding:"12px",borderTopColor:"#e4e4e5",borderRightColor:"#e4e4e5",borderBottomColor:"#e4e4e5"}},wp.element.createElement("p",null,Object(s.createInterpolateElement)(Object(r.__)("The below options are handled via the Rank Math SEO <settings_page_link/>.","rank-math"),{settings_page_link:wp.element.createElement("a",{href:"/wp-admin/admin.php?page=rank-math-options-titles"},Object(r.__)("settings page","rank-math"))})))}}])&&p(t.prototype,n),i&&p(t,i),e}();o()((function(){new f}))}});
assets/admin/js/divi.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=82)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.components},function(e,t){e.exports=lodash},function(e,t){e.exports=wp.element},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.compose},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var o=a.apply(null,r);o&&e.push(o)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var l in r)n.call(r,l)&&r[l]&&e.push(l);else e.push(r.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=rankMathAnalyzer},function(e,t){e.exports=wp.apiFetch},function(e,t,n){var r=n(20),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},function(e,t,n){var r=n(11).Symbol;e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(16),a=n(24);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},function(e,t){e.exports=wp.url},function(e,t,n){var r=n(12),a=n(22),i=n(23),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},,,,function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(21))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(12),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var a=o.call(e);return r&&(t?e[l]=n:delete e[l]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},,function(e,t){e.exports=React},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},,function(e,t){e.exports=wp.mediaUtils},function(e,t){e.exports=wp.htmlEntities},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=l(n(26)),i=l(n(36)),o=l(n(39));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function s(e,t){var n,o,l,u,p,m,d,h,f=[],g={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],l=m;break}f.push(t[p.value])}else f.push(p.value);return n&&(u=function(e,t){var n,r,a=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,e),d=s(e.slice(l+1,u),t),o=a.default.cloneElement(n,{},d),f.push(o),u<e.length-1&&(h=s(e.slice(u+1),t),f=f.concat(h))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(g["interpolation-child-"+t]=e)})),(0,i.default)(g))}t.default=function(e){var t=e.mixedString,n=e.components,a=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,o.default)(t);try{return s(i,n)}catch(e){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t){e.exports=wp.blockEditor},function(e,t){e.exports=Tagify},function(e,t,n){var r=n(13),a=n(40),i=n(41),o=Math.max,l=Math.min;e.exports=function(e,t,n){var c,s,u,p,m,d,h=0,f=!1,g=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(t){var n=c,r=s;return c=s=void 0,h=t,p=e.apply(r,n)}function y(e){return h=e,m=setTimeout(k,t),f?w(e):p}function v(e){var n=e-d;return void 0===d||n>=t||n<0||g&&e-h>=u}function k(){var e=a();if(v(e))return O(e);m=setTimeout(k,function(e){var n=t-(e-d);return g?l(n,u-(e-h)):n}(e))}function O(e){return m=void 0,b&&c?w(e):(c=s=void 0,p)}function _(){var e=a(),n=v(e);if(c=arguments,s=this,d=e,n){if(void 0===m)return y(d);if(g)return clearTimeout(m),m=setTimeout(k,t),w(d)}return void 0===m&&(m=setTimeout(k,t)),p}return t=i(t)||0,r(n)&&(f=!!n.leading,u=(g="maxWait"in n)?o(i(n.maxWait)||0,t):u,b="trailing"in n?!!n.trailing:b),_.cancel=function(){void 0!==m&&clearTimeout(m),h=0,c=d=s=m=void 0},_.flush=function(){return void 0===m?p:O(a())},_}},,function(e,t,n){"use strict";var r=n(26),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(27),o=n(37),l=n(38),c="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===a)return n(r,e,""===t?"."+s(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=u(i=e[d],m+s(i,d),n,r);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var f,g=h.call(e),b=0;!(f=g.next()).done;)p+=u(i=f.value,m+s(i,b++),n,r)}else if("object"===l){0;var w=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,"")}}return p}var p=/\/+/g;function m(e){return(""+e).replace(p,"$&/")}var d,h,f=g,g=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},b=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function w(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,o,l=e.result,c=e.keyPrefix,s=e.func,u=e.context,p=s.call(u,t,e.count++);Array.isArray(p)?v(p,l,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,o=c+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),l.push(p))}function v(e,t,n,r,a){var i="";null!=n&&(i=m(n)+"/");var o=w.getPooled(t,i,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,o),w.release(o)}w.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},(h=w).instancePool=[],h.getPooled=d||f,h.poolSize||(h.poolSize=10),h.release=b;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)v(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(27);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,n){var r=n(11);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(42),a=n(13),i=n(14),o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}},function(e,t,n){var r=n(43),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"updateKeywords",(function(){return N})),n.d(r,"updatePillarContent",(function(){return M})),n.d(r,"toggleFrontendScore",(function(){return F})),n.d(r,"updateAnalysisScore",(function(){return U})),n.d(r,"updateCanonicalUrl",(function(){return B})),n.d(r,"updateAdvancedRobots",(function(){return L})),n.d(r,"updateRobots",(function(){return H})),n.d(r,"updateBreadcrumbTitle",(function(){return z})),n.d(r,"resetDirtyMetadata",(function(){return G})),n.d(r,"updateFacebookTitle",(function(){return K})),n.d(r,"updateFacebookDescription",(function(){return $})),n.d(r,"updateFacebookImage",(function(){return V})),n.d(r,"updateFacebookImageID",(function(){return W})),n.d(r,"updateFacebookHasOverlay",(function(){return Y})),n.d(r,"updateFacebookImageOverlay",(function(){return q})),n.d(r,"updateAppData",(function(){return A})),n.d(r,"updateAppUi",(function(){return R})),n.d(r,"updatePostID",(function(){return Q})),n.d(r,"updatePermalink",(function(){return Z})),n.d(r,"updateTitle",(function(){return J})),n.d(r,"updateDescription",(function(){return X})),n.d(r,"updateFeaturedImage",(function(){return ee})),n.d(r,"updatePrimaryTermID",(function(){return te})),n.d(r,"updateRedirection",(function(){return ne})),n.d(r,"updateRedirectionItem",(function(){return re})),n.d(r,"resetRedirection",(function(){return ae})),n.d(r,"updateHasRedirect",(function(){return ie})),n.d(r,"updateSerpTitle",(function(){return pe})),n.d(r,"updateSerpDescription",(function(){return me})),n.d(r,"toggleSnippetEditor",(function(){return de})),n.d(r,"updateSnippetPreviewType",(function(){return he})),n.d(r,"toggleTrendsCta",(function(){return fe})),n.d(r,"updateTwitterUseFacebook",(function(){return ge})),n.d(r,"updateTwitterCardType",(function(){return be})),n.d(r,"updateTwitterTitle",(function(){return we})),n.d(r,"updateTwitterDescription",(function(){return ye})),n.d(r,"updateTwitterAuthor",(function(){return ve})),n.d(r,"updateTwitterImageID",(function(){return ke})),n.d(r,"updateTwitterImage",(function(){return Oe})),n.d(r,"updateTwitterHasOverlay",(function(){return _e})),n.d(r,"updateTwitterImageOverlay",(function(){return Ee})),n.d(r,"updateTwitterPlayerUrl",(function(){return je})),n.d(r,"updateTwitterPlayerSize",(function(){return Te})),n.d(r,"updateTwitterPlayerStreamUrl",(function(){return Se})),n.d(r,"updateTwitterPlayerStreamCtype",(function(){return Ie})),n.d(r,"updateTwitterAppDescription",(function(){return Ce})),n.d(r,"updateTwitterAppIphoneID",(function(){return De})),n.d(r,"updateTwitterAppIphoneName",(function(){return Pe})),n.d(r,"updateTwitterAppIphoneUrl",(function(){return xe})),n.d(r,"updateTwitterAppIpadID",(function(){return Ae})),n.d(r,"updateTwitterAppIpadName",(function(){return Re})),n.d(r,"updateTwitterAppIpadUrl",(function(){return Ne})),n.d(r,"updateTwitterAppGoogleplayID",(function(){return Me})),n.d(r,"updateTwitterAppGoogleplayName",(function(){return Fe})),n.d(r,"updateTwitterAppGoogleplayUrl",(function(){return Ue})),n.d(r,"updateTwitterAppCountry",(function(){return Be})),n.d(r,"toggleLoaded",(function(){return Le})),n.d(r,"updateSelectedKeyword",(function(){return He})),n.d(r,"refreshResults",(function(){return ze})),n.d(r,"setVersion",(function(){return Ge})),n.d(r,"toggleIsDiviPageSettingsBarActive",(function(){return Ke})),n.d(r,"toggleIsDiviRankMathModalActive",(function(){return $e})),n.d(r,"toggleSchemaEditor",(function(){return Qe})),n.d(r,"toggleSchemaTemplates",(function(){return Ze})),n.d(r,"schemaUpdated",(function(){return Je})),n.d(r,"setEditingSchemaId",(function(){return Xe})),n.d(r,"setEditorTab",(function(){return et})),n.d(r,"setTemplateTab",(function(){return tt})),n.d(r,"updateEditSchemas",(function(){return nt})),n.d(r,"updateSchemas",(function(){return rt})),n.d(r,"updateEditSchema",(function(){return at})),n.d(r,"saveSchema",(function(){return it})),n.d(r,"deleteSchema",(function(){return ot})),n.d(r,"saveTemplate",(function(){return lt}));var a={};n.r(a),n.d(a,"appData",(function(){return ht})),n.d(a,"appUi",(function(){return yt}));var i={};n.r(i),n.d(i,"getAppData",(function(){return vt})),n.d(i,"getDirtyMetadata",(function(){return kt})),n.d(i,"getAnalysisScore",(function(){return Ot})),n.d(i,"getKeywords",(function(){return _t})),n.d(i,"getPillarContent",(function(){return Et})),n.d(i,"getRobots",(function(){return jt})),n.d(i,"getAdvancedRobots",(function(){return Tt})),n.d(i,"getCanonicalUrl",(function(){return St})),n.d(i,"getBreadcrumbTitle",(function(){return It})),n.d(i,"getRichSnippets",(function(){return Ct})),n.d(i,"getShowScoreFrontend",(function(){return Dt})),n.d(i,"isLoaded",(function(){return Pt})),n.d(i,"getSelectedKeyword",(function(){return xt})),n.d(i,"isRefreshing",(function(){return At})),n.d(i,"isPro",(function(){return Rt})),n.d(i,"isDiviPageSettingsBarActive",(function(){return Nt})),n.d(i,"isDiviRankMathModalActive",(function(){return Mt})),n.d(i,"getFacebookTitle",(function(){return Ft})),n.d(i,"getFacebookDescription",(function(){return Ut})),n.d(i,"getFacebookAuthor",(function(){return Bt})),n.d(i,"getFacebookImageID",(function(){return Lt})),n.d(i,"getFacebookImage",(function(){return Ht})),n.d(i,"getFacebookHasOverlay",(function(){return zt})),n.d(i,"getFacebookImageOverlay",(function(){return Gt})),n.d(i,"getPostID",(function(){return Kt})),n.d(i,"getTitle",(function(){return $t})),n.d(i,"getPermalink",(function(){return Vt})),n.d(i,"getDescription",(function(){return Wt})),n.d(i,"getFeaturedImage",(function(){return Yt})),n.d(i,"getFeaturedImageHtml",(function(){return qt})),n.d(i,"getPrimaryTermID",(function(){return Qt})),n.d(i,"getRedirectionID",(function(){return Zt})),n.d(i,"getRedirectionType",(function(){return Jt})),n.d(i,"getRedirectionUrl",(function(){return Xt})),n.d(i,"getRedirectionItem",(function(){return en})),n.d(i,"hasRedirect",(function(){return tn})),n.d(i,"getSerpTitle",(function(){return nn})),n.d(i,"getSerpDescription",(function(){return rn})),n.d(i,"isSnippetEditorOpen",(function(){return an})),n.d(i,"getSnippetPreviewType",(function(){return on})),n.d(i,"isTrendsCtaOpen",(function(){return ln})),n.d(i,"isSchemaEditorOpen",(function(){return cn})),n.d(i,"isSchemaTemplatesOpen",(function(){return sn})),n.d(i,"hasSchemaUpdated",(function(){return un})),n.d(i,"getSchemas",(function(){return pn})),n.d(i,"getEditSchemas",(function(){return mn})),n.d(i,"getEditingSchema",(function(){return dn})),n.d(i,"getPreviewSchema",(function(){return hn})),n.d(i,"getEditorTab",(function(){return fn})),n.d(i,"getTemplateTab",(function(){return gn})),n.d(i,"getTwitterUseFacebook",(function(){return bn})),n.d(i,"getTwitterCardType",(function(){return wn})),n.d(i,"getTwitterTitle",(function(){return yn})),n.d(i,"getTwitterDescription",(function(){return vn})),n.d(i,"getTwitterAuthor",(function(){return kn})),n.d(i,"getTwitterImageID",(function(){return On})),n.d(i,"getTwitterImage",(function(){return _n})),n.d(i,"getTwitterHasOverlay",(function(){return En})),n.d(i,"getTwitterImageOverlay",(function(){return jn})),n.d(i,"getTwitterAppDescription",(function(){return Tn})),n.d(i,"getTwitterAppIphoneID",(function(){return Sn})),n.d(i,"getTwitterAppIphoneName",(function(){return In})),n.d(i,"getTwitterAppIphoneUrl",(function(){return Cn})),n.d(i,"getTwitterAppIpadID",(function(){return Dn})),n.d(i,"getTwitterAppIpadName",(function(){return Pn})),n.d(i,"getTwitterAppIpadUrl",(function(){return xn})),n.d(i,"getTwitterAppGoogleplayID",(function(){return An})),n.d(i,"getTwitterAppGoogleplayName",(function(){return Rn})),n.d(i,"getTwitterAppGoogleplayUrl",(function(){return Nn})),n.d(i,"getTwitterAppCountry",(function(){return Mn})),n.d(i,"getTwitterPlayerUrl",(function(){return Fn})),n.d(i,"getTwitterPlayerSize",(function(){return Un})),n.d(i,"getTwitterPlayerStream",(function(){return Bn})),n.d(i,"getTwitterPlayerStreamCtype",(function(){return Ln}));var o=n(10),l=n.n(o),c=n(1),s=n(29),u=n(4),p=n(8),m=n(2),d=Object(m.createSlotFill)("RankMathAfterEditor"),h=d.Fill,f=d.Slot,g=function(e){var t=e.children,n=e.className;return wp.element.createElement(h,null,wp.element.createElement(m.PanelRow,{className:n},t))};g.Slot=f;var b=g,w=Object(m.createSlotFill)("RankMathAdvancedTab"),y=w.Fill,v=w.Slot,k=function(e){var t=e.children,n=e.className;return wp.element.createElement(y,null,wp.element.createElement(m.PanelRow,{className:n},t))};k.Slot=v;var O=k,_=Object(m.createSlotFill)("RankMathAfterFocusKeyword"),E=_.Fill,j=_.Slot,T=function(e){var t=e.children,n=e.className;return wp.element.createElement(E,null,wp.element.createElement("div",{className:n},t))};T.Slot=j;var S=T,I=n(9),C=n(5),D=n.n(C);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,r.key,r)}}var x=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,r;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():D()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},D.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&P(t.prototype,n),r&&P(t,r),e}());function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(p.applyFilters)("rank_math_sanitize_data",t,e,n),null!==r&&(r=Object(p.applyFilters)("rank_math_sanitize_meta_value",r,e,n)),r=null===r?t:r,Object(p.doAction)("rank_math_data_changed",e,t,n),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:n,metaValue:r}}function R(e,t){return Object(p.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function N(e){return x.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),A("keywords",e,"rank_math_focus_keyword")}function M(e){return A("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function F(e){return A("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function U(e){return A("score",e,"rank_math_seo_score")}function B(e){return A("canonicalUrl",e,"rank_math_canonical_url")}function L(e){return A("advancedRobots",e,"rank_math_advanced_robots")}function H(e){return A("robots",e,"rank_math_robots",Object.keys(e))}function z(e){return A("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function G(){return A("dirtyMetadata",{})}function K(e){return A("facebookTitle",e,"rank_math_facebook_title")}function $(e){return A("facebookDescription",e,"rank_math_facebook_description")}function V(e){return A("facebookImage",e,"rank_math_facebook_image")}function W(e){return A("facebookImageID",e,"rank_math_facebook_image_id")}function Y(e){return A("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function q(e){return A("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function Q(e){return rankMath.objectID=e,A("postID",e)}function Z(e){return A("permalink",e,"permalink")}function J(e){return A("title",e,"rank_math_title")}function X(e){return A("description",e,"rank_math_description")}function ee(e){return A("featuredImage",e)}function te(e,t){return A("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function ne(e,t){return A(e,t)}function re(e){return R("redirectionItem",e)}function ae(){return R("redirectionItem",{})}function ie(e){return R("hasRedirect",e)}var oe=n(3),le=document.createElement("div"),ce=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),le.innerHTML=e,e=le.textContent,le.textContent=""),e},se=function(e,t){return e=(e=I.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(oe.truncate)(e,{length:t,separator:" "}):e},ue=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),n=t.excerpt,r=t.content?function(e){if(Object(oe.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(oe.filter)(I.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==e.trim()}));if(!t.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var r=Object(oe.filter)(t,(function(e){return Object(oe.includes)(e.toLowerCase(),n.toLowerCase())}));if(0<r.length)return se(r[0],160)}return se(t[0],160)}(t.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",a=Object(oe.isUndefined)(n)||Object(oe.isEmpty)(n)?r:n;if(x.setVariable("excerpt",a),x.setVariable("seo_description",a),""!==(e=ce(Object(p.applyFilters)("rankMath/description",e))))return I.Helpers.cleanText(e);if(!Object(oe.isUndefined)(n)&&!Object(oe.isEmpty)(n))return I.Helpers.cleanText(n);var i=rankMath.assessor.serpData.descriptionTemplate;return Object(oe.isUndefined)(i)||""===i?r:I.Helpers.cleanText(i)};function pe(e){return e=x.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),R("serpTitle",e)}function me(e){return e=x.swap(ue(e)),rankMathEditor.refresh("description"),R("serpDescription",e)}function de(e){return R("isSnippetEditorOpen",e)}function he(e){return R("snippetPreviewType",e)}function fe(e){return R("isTrendsCtaOpen",e)}function ge(e){return A("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function be(e){return A("twitterCardType",e,"rank_math_twitter_card_type")}function we(e){return A("twitterTitle",e,"rank_math_twitter_title")}function ye(e){return A("twitterDescription",e,"rank_math_twitter_description")}function ve(e){return A("twitterAuthor",e,"rank_math_twitter_author")}function ke(e){return A("twitterImageID",e,"rank_math_twitter_image_id")}function Oe(e){return A("twitterImage",e,"rank_math_twitter_image")}function _e(e){return A("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function Ee(e){return A("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function je(e){return A("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function Te(e){return A("twitterPlayerSize",e,"rank_math_twitter_player_size")}function Se(e){return A("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function Ie(e){return A("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function Ce(e){return A("twitterAppDescription",e,"rank_math_twitter_app_description")}function De(e){return A("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function Pe(e){return A("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function xe(e){return A("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function Ae(e){return A("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function Re(e){return A("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function Ne(e){return A("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function Me(e){return A("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function Fe(e){return A("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function Ue(e){return A("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function Be(e){return A("twitterAppCountry",e,"rank_math_twitter_app_country")}function Le(e){return R("isLoaded",e)}function He(e){return R("selectedKeyword",e)}function ze(){return R("refreshResults",Date.now())}function Ge(){return R("isPro",!0)}function Ke(e){return R("isDiviPageSettingsBarActive",e)}function $e(e){return R("isDiviRankMathModalActive",e)}var Ve=n(0);function We(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 Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qe(e){return R("isSchemaEditorOpen",e)}function Ze(e){return R("isSchemaTemplatesOpen",e)}function Je(e){return R("schemaUpdated",e)}function Xe(e){return R("editingSchemaId",e)}function et(e){return R("editorTab",e)}function tt(e){return R("templateTab",e)}function nt(e){return R("editSchemas",e)}function rt(e){return A("schemas",e)}function at(e,t){var n=Ye({},Object(c.select)("rank-math").getEditSchemas());return n[e]=t,R("editSchemas",n)}function it(e,t){var n=Ye({},Object(c.select)("rank-math").getSchemas());return n[e]=t,A("schemas",n)}function ot(e){var t=Ye({},Object(c.select)("rank-math").getSchemas());return delete t[e],Object(p.doAction)("rank_math_schema_trash",e),A("schemas",t,"rank_math_delete_"+e,"")}function lt(e,t,n){return l()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:n}}).then((function(n){t({loading:!1,showNotice:!0,postId:n.id}),setTimeout((function(){t({showNotice:!1}),Object(oe.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(Ve.__)("Edit Schema","rank-math"),window.history.pushState(null,"",n.link.replace(/&amp;/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function ct(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 st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pt=rankMath.assessor.serpData,mt=rankMath.assessor.hasRedirection,dt={postID:null,title:pt.title?pt.title:pt.titleTemplate,description:pt.description,keywords:pt.focusKeywords,pillarContent:pt.pillarContent,featuredImage:"",permalink:!1,primaryTerm:pt.primaryTerm,robots:pt.robots,advancedRobots:pt.advancedRobots,canonicalUrl:pt.canonicalUrl,breadcrumbTitle:pt.breadcrumbTitle,showScoreFrontend:pt.showScoreFrontend,redirectionID:mt?Object(oe.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:mt?Object(oe.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:mt?Object(oe.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:pt.facebookTitle,facebookImage:pt.facebookImage,facebookImageID:pt.facebookImageID,facebookAuthor:pt.facebookAuthor,facebookDescription:pt.facebookDescription,facebookHasOverlay:pt.facebookHasOverlay,facebookImageOverlay:pt.facebookImageOverlay,twitterTitle:pt.twitterTitle,twitterImage:pt.twitterImage,twitterAuthor:pt.twitterAuthor,twitterImageID:pt.twitterImageID,twitterCardType:pt.twitterCardType,twitterUseFacebook:pt.twitterUseFacebook,twitterDescription:pt.twitterDescription,twitterHasOverlay:pt.twitterHasOverlay,twitterImageOverlay:pt.twitterImageOverlay,twitterPlayerUrl:pt.twitterPlayerUrl,twitterPlayerSize:pt.twitterPlayerSize,twitterPlayerStream:pt.twitterPlayerStream,twitterPlayerStreamCtype:pt.twitterPlayerStreamCtype,twitterAppDescription:pt.twitterAppDescription,twitterAppIphoneName:pt.twitterAppIphoneName,twitterAppIphoneID:pt.twitterAppIphoneID,twitterAppIphoneUrl:pt.twitterAppIphoneUrl,twitterAppIpadName:pt.twitterAppIpadName,twitterAppIpadID:pt.twitterAppIpadID,twitterAppIpadUrl:pt.twitterAppIpadUrl,twitterAppGoogleplayName:pt.twitterAppGoogleplayName,twitterAppGoogleplayID:pt.twitterAppGoogleplayID,twitterAppGoogleplayUrl:pt.twitterAppGoogleplayUrl,twitterAppCountry:pt.twitterAppCountry,schemas:Object(oe.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function ht(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dt,n=arguments.length>1?arguments[1]:void 0,r=st({},t.dirtyMetadata);return!1!==n.metaKey&&(r[n.metaKey]=n.metaValue),"RANK_MATH_APP_DATA"===n.type?"dirtyMetadata"===n.key?st(st({},t),{},{dirtyMetadata:n.value}):st(st({},t),{},(ut(e={},n.key,n.value),ut(e,"dirtyMetadata",r),e)):t}function ft(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 gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wt={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(oe.isEmpty)(Object(oe.get)(rankMath.assessor,"redirection.id",""))||!Object(oe.isEmpty)(Object(oe.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1};function yt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wt,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?gt(gt({},e),{},bt({},t.key,t.value)):e}function vt(e){return e.appData}function kt(e){return e.appData.dirtyMetadata}function Ot(e){return e.appData.score}function _t(e){return e.appData.keywords}function Et(e){return e.appData.pillarContent}function jt(e){return e.appData.robots}function Tt(e){return e.appData.advancedRobots}function St(e){return e.appData.canonicalUrl}function It(e){return e.appData.breadcrumbTitle}function Ct(e){return"todo"}function Dt(e){return e.appData.showScoreFrontend}function Pt(e){return e.appUi.isLoaded}function xt(e){return e.appUi.selectedKeyword}function At(e){return e.appUi.refreshResults}function Rt(e){return e.appUi.isPro}function Nt(e){return e.appUi.isDiviPageSettingsBarActive}function Mt(e){return e.appUi.isDiviRankMathModalActive}function Ft(e){return e.appData.facebookTitle}function Ut(e){return e.appData.facebookDescription}function Bt(e){return e.appData.facebookAuthor}function Lt(e){return e.appData.facebookImageID}function Ht(e){return e.appData.facebookImage}function zt(e){return e.appData.facebookHasOverlay}function Gt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function Kt(e){return e.appData.postID}function $t(e){return e.appData.title}function Vt(e){return e.appData.permalink}function Wt(e){return e.appData.description}function Yt(e){return e.appData.featuredImage}function qt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function Qt(e){return e.appData.primaryTerm}function Zt(e){return e.appData.redirectionID}function Jt(e){return e.appData.redirectionType}function Xt(e){return e.appData.redirectionUrl}function en(e){return e.appUi.redirectionItem}function tn(e){return e.appUi.hasRedirect}function nn(e){return ce(e.appUi.serpTitle)}function rn(e){return e.appUi.serpDescription}function an(e){return e.appUi.isSnippetEditorOpen}function on(e){return e.appUi.snippetPreviewType}function ln(e){return e.appUi.isTrendsCtaOpen}function cn(e){return e.appUi.isSchemaEditorOpen}function sn(e){return e.appUi.isSchemaTemplatesOpen}function un(e){return e.appUi.schemaUpdated}function pn(e){return e.appData.schemas}function mn(e){return e.appUi.editSchemas}function dn(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function hn(e){return e.appData.schemas[e.appUi.editingSchemaId]}function fn(e){return e.appUi.editorTab}function gn(e){return e.appUi.templateTab}function bn(e){return e.appData.twitterUseFacebook}function wn(e){return e.appData.twitterCardType}function yn(e){return e.appData.twitterTitle}function vn(e){return e.appData.twitterDescription}function kn(e){return e.appData.twitterAuthor}function On(e){return e.appData.twitterImageID}function _n(e){return e.appData.twitterImage}function En(e){return e.appData.twitterHasOverlay}function jn(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function Tn(e){return e.appData.twitterAppDescription}function Sn(e){return e.appData.twitterAppIphoneID}function In(e){return e.appData.twitterAppIphoneName}function Cn(e){return e.appData.twitterAppIphoneUrl}function Dn(e){return e.appData.twitterAppIpadID}function Pn(e){return e.appData.twitterAppIpadName}function xn(e){return e.appData.twitterAppIpadUrl}function An(e){return e.appData.twitterAppGoogleplayID}function Rn(e){return e.appData.twitterAppGoogleplayName}function Nn(e){return e.appData.twitterAppGoogleplayUrl}function Mn(e){return e.appData.twitterAppCountry}function Fn(e){return e.appData.twitterPlayerUrl}function Un(e){return e.appData.twitterPlayerSize}function Bn(e){return e.appData.twitterPlayerStream}function Ln(e){return e.appData.twitterPlayerStreamCtype}var Hn=Object(c.registerStore)("rank-math",{reducer:Object(c.combineReducers)(a),selectors:i,actions:r});function zn(){return Hn}function Gn(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,r.key,r)}}var Kn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new I.Analyzer({i18n:Ve,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(p.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(p.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(p.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var t,n,r;return t=e,(n=[{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===this.getSelectedKeyword().toLowerCase()&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(e,t){return"schemas"===t||Object(oe.isObject)(e)||Object(oe.isEmpty)(e)?e:I.Helpers.sanitizeAppData(e)}},{key:"getPaper",value:function(e,t){var n=zn().getState(),r=this.dataCollector.getData(),a=new I.Paper("",{locale:rankMath.localeFull});return a.setTitle(n.appUi.serpTitle),a.setPermalink(r.slug),a.setDescription(n.appUi.serpDescription),a.setUrl(r.permalink),a.setText(Object(p.applyFilters)("rank_math_content",r.content)),a.setKeyword(e),a.setKeywords(t),Object(oe.isUndefined)(r.featuredImage)||(a.setThumbnail(r.featuredImage.source_url),a.setThumbnailAltText(I.Helpers.removeDiacritics(r.featuredImage.alt_text))),a}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(oe.debounce)((function(t){var n=zn().getState();if(!1!==n.appUi.isLoaded){var r=n.appData.keywords.split(","),a=[];Object(p.doAction)("rank_math_"+t+"_refresh"),r.map((function(t,n){var i=e.getPaper(I.Helpers.removeDiacritics(t),r),o=0===n?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests();a.push(e.analyzer.analyzeSome(o,i).then((function(e){rankMathEditor.resultManager.update(i.getKeyword(),e,0===n),0===n&&Object(c.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(i.getKeyword()))}))),Promise.all(a).then((function(){Object(c.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var e=zn().getState().appData.keywords;return I.Helpers.removeDiacritics(e.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var e=zn().getState(),t=""!==e.appUi.selectedKeyword.data.value?e.appUi.selectedKeyword.data.value:e.appData.keywords.split(",")[0];return I.Helpers.removeDiacritics(t)}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}}])&&Gn(t.prototype,n),r&&Gn(t,r),e}();function $n(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,r.key,r)}}var Vn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(p.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(p.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,n,r;return t=e,(n=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(Ve.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(Ve.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(Ve.sprintf)(Object(Ve.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(Ve.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&$n(t.prototype,n),r&&$n(t,r),e}();function Wn(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,r.key,r)}}var Yn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"setup",value:function(e){zn(),this.resultManager=new I.ResultManager,this.assessor=new Kn(e),new Vn,Object(p.doAction)("rank_math_loaded")}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(e){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(e){throw"Implement the function"}}])&&Wn(t.prototype,n),r&&Wn(t,r),e}();function qn(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 Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qn(Object(n),!0).forEach((function(t){Zn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jn(e,t,n,r,a,i,o){try{var l=e[i](o),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,a)}function Xn(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Jn(i,r,a,o,l,"next",e)}function l(e){Jn(i,r,a,o,l,"throw",e)}o(void 0)}))}}function er(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,r.key,r)}}var tr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this.etSettingsData={title:"",excerpt:"",featuredImage:""},this._featuredImage=null,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.savePost=this.savePost.bind(this),this.saveRedirection=this.saveRedirection.bind(this),this.saveSchemas=this.saveSchemas.bind(this),this.subscribeToDivi()}var t,n,r,a,i,o;return t=e,(n=[{key:"collectPostData",value:function(){return{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return parseInt(Object(oe.get)(ETBuilderBackendDynamic,"postId",0))}},{key:"getTitle",value:function(){return this.etSettingsData.title}},{key:"setTitle",value:function(e){this.etSettingsData.title=e}},{key:"getContent",value:function(){var e=[];return this.getContentArea().find(".et_pb_section").each((function(){e.push(D()(this).html())})),e.join("")}},{key:"getContentArea",value:function(){if(this._contentArea)return this._contentArea;if(this._etAppFrameElem||(this._etAppFrameElem=Object(oe.get)(ET_Builder,"Frames.app.frameElement",document.querySelector("iframe#et-fb-app-frame"))),!this._etAppFrameElem)return D()("<div />");var e=D()(this._etAppFrameElem.contentWindow.document.querySelector("#et-fb-app"));return e.length<1?D()("<div />"):(this._contentArea=e,e)}},{key:"getExcerpt",value:function(){return this.etSettingsData.excerpt}},{key:"setExcerpt",value:function(e){this.etSettingsData.excerpt=e}},{key:"getPermalink",value:function(){return rankMath.is_front_page?rankMath.homeUrl+"/":rankMath.homeUrl+"/"+Object(c.select)("rank-math").getPermalink()}},{key:"getSlug",value:function(){var e=D()(document).find("#rank-math-editor-permalink");return e.length?e.val():Object(oe.get)(ETBuilderBackendDynamic,"postMeta.post_name",this.getPermalink().replace(rankMath.homeUrl,"").replace(/\//g,""))}},{key:"getFeaturedImage",value:function(){if(this._featuredImage)return this._featuredImage;this.setFeaturedImage()}},{key:"setFeaturedImage",value:(o=Xn(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t){e.next=4;break}return e.next=3,this.fetchFeaturedImageId();case 3:t=e.sent;case 4:if(!this.isValidMediaId(t)||!t){e.next=10;break}return e.next=7,this.fetchWpMedia(t);case 7:this._featuredImage=e.sent,e.next=11;break;case 10:this._featuredImage=!1;case 11:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"fetchFeaturedImageId",value:(i=Xn(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.next=3,l()({path:"/wp-json/rankmath/v1/getFeaturedImageId",method:"POST",data:{postId:Object(oe.get)(ETBuilderBackendDynamic,"postId",0)}}).then((function(e){return t=!!e.success&&e.featImgId}));case 3:return e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})},{key:"fetchWpMedia",value:(a=Xn(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},e.next=3,l()({path:"/wp-json/wp/v2/media/".concat(t),method:"GET"}).then((function(e){return n=e}));case 3:return e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"subscribeToDivi",value:function(){var e=this;this.setTitle(Object(oe.get)(ETBuilderBackendDynamic,"postTitle","")),this.setExcerpt(Object(oe.get)(ETBuilderBackendDynamic,"postMeta.post_excerpt","")),this.setFeaturedImage(Object(oe.get)(ETBuilderBackendDynamic,"currentPage.thumbnailId",0)),Object(c.dispatch)("rank-math").updatePermalink(rankMath.postName),this.subscriber=Object(oe.debounce)(this.refresh,500),Object(c.subscribe)(this.subscriber),D()(".et-fb-page-settings-bar").find(".et-fb-button--save-draft, .et-fb-button--publish").on("click",(function(){e.savePost(),e.saveRedirection(),e.saveSchemas()})),Object(p.addFilter)("et.builder.store.setting.update","rank-math",(function(t,n){if(t)switch(n){case"et_pb_post_settings_title":e.setTitle(t),e.subscriber();break;case"et_pb_post_settings_excerpt":e.setExcerpt(t),e.subscriber();break;case"et_pb_post_settings_image":e.setFeaturedImage(parseInt(t)),e.subscriber()}return t})),window.addEventListener("message",(function(t){"et_fb_section_content_change"===t.data.etBuilderEvent&&e.subscriber()}))}},{key:"refresh",value:function(){var e=Qn({},this._data);this._data=this.collectPostData(),this.handleEditorChange(e),!Object(oe.isEqual)(e,this._data)&&e.id&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"savePost",value:function(){var e=Object(c.select)("rank-math").getDirtyMetadata();Object(oe.isEmpty)(e)||(l()({method:"POST",path:"/wp-json/rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:e}}).then((function(e){Object(oe.isString)(e)&&Object(c.dispatch)("rank-math").updatePermalink(e)})),Object(c.dispatch)("rank-math").resetDirtyMetadata())}},{key:"saveRedirection",value:function(){var e=Object(c.select)("rank-math").getRedirectionItem();Object(oe.isEmpty)(e)||(e.objectID=this.getPostID(),e.redirectionSources=this.getPermalink(),l()({method:"POST",path:"/wp-json/rankmath/v1/updateRedirection",data:e}).then((function(e){"delete"===e.action?Object(c.dispatch)("rank-math").updateRedirection("redirectionID",0):"new"===e.action&&Object(c.dispatch)("rank-math").updateRedirection("redirectionID",e.id)})),Object(c.dispatch)("rank-math").resetRedirection())}},{key:"saveSchemas",value:function(){var e=Object(c.select)("rank-math").getSchemas();if(!Object(oe.isEmpty)(e)&&!Object(oe.isEqual)(e,Object(oe.get)(rankMath,"schemas",{}))){var t=Object(c.select)("rank-math").getEditSchemas();l()({method:"POST",path:"/wp-json/rankmath/v1/updateSchemas",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,schemas:e}}).then((function(n){if(!Object(oe.isEmpty)(n)){var r=Qn({},e),a=Qn({},t);Object(oe.map)(n,(function(e,t){r["schema-"+e]=Qn({},r[t]),a["schema-"+e]=Qn({},a[t]),delete r[t],delete a[t]})),Object(c.dispatch)("rank-math").updateSchemas(r),Object(c.dispatch)("rank-math").updateEditSchemas(a)}}))}}},{key:"handleEditorChange",value:function(e){var t=this,n={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(oe.isInteger)(e.id))return this.initialize?void Object(oe.forEach)(n,(function(n,r){t._data[r]!==e[r]&&t[n](t._data[r])})):(this.initialize=!0,Object(oe.forEach)(n,(function(e,n){t[e](t._data[n])})),void rankMathEditor.refresh("init"));Object(c.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(e){Object(c.dispatch)("rank-math").updatePostID(e),Object(c.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){x.setVariable("title",e),Object(c.dispatch)("rank-math").updateSerpTitle(Object(c.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){x.setVariable("excerpt",e),x.setVariable("excerpt_only",e),x.setVariable("wc_shortdesc",e),x.setVariable("seo_description",e),Object(c.dispatch)("rank-math").updateSerpDescription(Object(c.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(e){Object(c.dispatch)("rank-math").updateFeaturedImage(e),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(c.dispatch)("rank-math").updateSerpDescription(Object(c.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&er(t.prototype,n),r&&er(t,r),e}(),nr=n(7),rr=n.n(nr),ar=function(){return wp.element.createElement("span",{className:"rank-math-rm-modal-toggle-button-icon",style:{display:"block",fill:"rgb(255, 255, 255)",width:"0px",height:"0px",marginTop:"-10px",marginLeft:"-1px"}},wp.element.createElement("svg",{viewBox:"0 0 462.03 462.03",xmlns:"http://www.w3.org/2000/svg",width:"20"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z"}),wp.element.createElement("path",{d:"m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z"}))))},ir=function(){return wp.element.createElement("button",{type:"button","data-tip":"Rank Math SEO",onClick:function(){Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!Object(c.select)("rank-math").isDiviRankMathModalActive())},className:rr()("rank-math-rm-modal-toggle-button","et_fb_ignore_iframe","et-fb-button","et-fb-button--elevate","et-fb-button--primary","et-fb-button--round","et-fb-button--Tooltip"),style:{width:"40px",height:"40px"}},wp.element.createElement(ar,null))},or=function(){return wp.element.createElement("div",{className:"rank-math-rm-settings-bar"},wp.element.createElement(ir,null))};function lr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return cr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function cr(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}var sr={init:function(){this.cacheProps(),this.toggleBodyClasses(),this.initSettingsBar(),this.addEventListeners()},cacheProps:function(){this.$document=D()(document),this.$body=D()("body"),this.rmModalHiddingTimer=null,this.rmPrevModalActiveState=!1,this.rmSettingsBarMediaQuery=window.matchMedia("(min-width: 768px)"),this.rmSettingsBarRootSelector="#rank-math-rm-settings-bar-root",this.$rmSettingsBarRoot=D()(this.rmSettingsBarRootSelector).detach(),this.$etPageSettingsBar=D()(".et-fb-page-settings-bar"),this.$etPageSettingsBarToggleButton=this.$etPageSettingsBar.find(".et-fb-page-settings-bar__toggle-button"),this.$etPageSettingsBarColumn=this.$etPageSettingsBar.find(".et-fb-page-settings-bar__column"),this.etSettingsBarObserver=new MutationObserver(this.onEtSettingsBarClassAttrChange.bind(this))},toggleBodyClasses:function(){var e=this.isEtSettingsBarActive();this.$body.toggleClass("rank-math-et-settings-bar-is-active",e),this.$body.toggleClass("rank-math-et-settings-bar-is-inactive",!e)},initSettingsBar:function(){var e=this.getEtSettingsBarPosition();this.onRmSettingsBarMediaQueryChange(),Object(u.render)(Object(u.createElement)(or),this.$rmSettingsBarRoot[0]),this.removePositionalClassNames(this.$body,"rank-math-et-settings-bar-is"),this.$body.addClass("rank-math-et-settings-bar-is-".concat(e)),this.attachRmSettingsBar(e)},addEventListeners:function(){this.$document.on("click",this.onDocumentClick.bind(this)),this.rmSettingsBarMediaQuery.addListener(this.onRmSettingsBarMediaQueryChange.bind(this)),this.etSettingsBarObserver.observe(this.$etPageSettingsBar[0],{attributeFilter:["class"]})},onDocumentClick:function(e){this.hideModalOnOutsideClick(e.target)},onRmSettingsBarMediaQueryChange:function(){this.detachRmSettingsBar(),this.attachRmSettingsBar(this.getEtSettingsBarPosition())},onEtSettingsBarClassAttrChange:function(){var e=this.isEtSettingsBarActive(),t=this.getEtSettingsBarPosition();this.removePositionalClassNames(this.$body,"rank-math-et-settings-bar-is"),this.$body.addClass("rank-math-et-settings-bar-is-".concat(t)),Object(c.dispatch)("rank-math").toggleIsDiviPageSettingsBarActive(e),this.toggleBodyClasses(),this.detachRmSettingsBar(),this.isEtSettingsBarDragged()?(this.rmPrevModalActiveState=Object(c.select)("rank-math").isDiviRankMathModalActive(),this.rmPrevModalActiveState&&(this.rmModalHiddingTimer=setTimeout((function(){Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}),200))):(clearTimeout(this.rmModalHiddingTimer),this.attachRmSettingsBar(t),Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(this.rmPrevModalActiveState||Object(c.select)("rank-math").isDiviRankMathModalActive()),this.rmPrevModalActiveState=!1)},attachRmSettingsBar:function(e){this.isRmSettingsBarAttached()||(this.toggleRmSettingsBarClassNames(e),this.isEtSettingsBarActive()?this.rmSettingsBarMediaQuery.matches?this.$etPageSettingsBarColumn.filter(".et-fb-page-settings-bar__column--main").append(this.$rmSettingsBarRoot):this.$etPageSettingsBarColumn.filter(".et-fb-page-settings-bar__column--left").prepend(this.$rmSettingsBarRoot):this.$etPageSettingsBarToggleButton.after(this.$rmSettingsBarRoot))},detachRmSettingsBar:function(){this.isRmSettingsBarAttached()&&(this.$rmSettingsBarRoot=this.$etPageSettingsBar.find(this.rmSettingsBarRootSelector).detach())},toggleRmSettingsBarClassNames:function(e){this.removePositionalClassNames(this.$rmSettingsBarRoot),this.$rmSettingsBarRoot.addClass("rank-math-rm-settings-bar-root-".concat(e)),this.$rmSettingsBarRoot.toggleClass(["rank-math-rm-settings-bar-root-is-mobile","rank-math-rm-settings-bar-root-is-mobile-".concat(e)].join(" "),!this.rmSettingsBarMediaQuery.matches),this.$rmSettingsBarRoot.toggleClass(["rank-math-rm-settings-bar-root-is-desktop","rank-math-rm-settings-bar-root-is-desktop-".concat(e)].join(" "),this.rmSettingsBarMediaQuery.matches)},isRmSettingsBarAttached:function(){return D.a.contains(document.documentElement,this.$rmSettingsBarRoot[0])},isEtSettingsBarActive:function(){return this.$etPageSettingsBar.hasClass("et-fb-page-settings-bar--active")},isEtSettingsBarDragged:function(){return this.$etPageSettingsBar.hasClass("et-fb-page-settings-bar--dragged")&&!this.isEtSettingsBarActive()},removePositionalClassNames:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=["".concat(t,"-left"),"".concat(t,"-right"),"".concat(t,"-top"),"".concat(t,"-top-left"),"".concat(t,"-top-right"),"".concat(t,"-bottom"),"".concat(t,"-bottom-left"),"".concat(t,"-bottom-right")].join("|"),r=new RegExp("(".concat(n,")$"),"gim");e.removeClass((function(e,t){var n,a=[],i=lr(t.split(" "));try{for(i.s();!(n=i.n()).done;){var o=n.value;r.test(o)&&a.push(o)}}catch(e){i.e(e)}finally{i.f()}return a}))},getEtSettingsBarPosition:function(){var e=this.$etPageSettingsBar;return e.hasClass("et-fb-page-settings-bar--horizontal")&&!e.hasClass("et-fb-page-settings-bar--top")?"bottom":e.hasClass("et-fb-page-settings-bar--top")&&!e.hasClass("et-fb-page-settings-bar--corner")?"top":e.hasClass("et-fb-page-settings-bar--bottom-corner")?e.hasClass("et-fb-page-settings-bar--left-corner")?"bottom-left":"bottom-right":e.hasClass("et-fb-page-settings-bar--top-corner")?e.hasClass("et-fb-page-settings-bar--left-corner")?"top-left":"top-right":e.hasClass("et-fb-page-settings-bar--vertical--right")?"right":e.hasClass("et-fb-page-settings-bar--vertical--left")?"left":""},hideModalOnOutsideClick:function(e){if(Object(c.select)("rank-math").isDiviRankMathModalActive()){var t=".rank-math-rm-modal";e.closest(t)||e.closest(".components-modal__screen-overlay.rank-math-modal-overlay")||e.contains(document.querySelector(t))||Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}}},ur=Object(c.withSelect)((function(e){return{primaryTermId:e("rank-math").getPrimaryTermID()}}))((function(e){var t=e.taxonomySlug,n=e.primaryTermId,r=e.options;if(r.length<2||!t)return null;return wp.element.createElement(m.SelectControl,{className:"rank-math-primary-term-select",label:Object(Ve.__)("Select Primary Term","rank-math"),value:n,options:r,onChange:function(e){Object(c.dispatch)("rank-math").updatePrimaryTermID(parseInt(e),t)}})}));function pr(e,t,n,r,a,i,o){try{var l=e[i](o),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,a)}function mr(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){pr(i,r,a,o,l,"next",e)}function l(e){pr(i,r,a,o,l,"throw",e)}o(void 0)}))}}function dr(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,r.key,r)}}var hr=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),D()(document).on("click",".et-fb-button--toggle-setting",(function(){clearTimeout(t.initRecursionTimer),t.attemptsRun=0,t.init.call(t)}))}var t,n,r,a,i;return t=e,(n=[{key:"init",value:(i=mr(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==this.hasPostPrimaryTaxonomySupport){e.next=3;break}return e.next=3,this.cacheTaxonomyData();case 3:if(this.hasPostPrimaryTaxonomySupport){e.next=5;break}return e.abrupt("return");case 5:if(this.attemptsRun++,!(this.attemptsRun>this.maxAttempts)){e.next=8;break}return e.abrupt("return");case 8:this.cacheDom()?(this.renderContainer(),this.renderComponent(),this.bindEvents()):this.initRecursionTimer=setTimeout(this.init.bind(this),this.attemptInterval);case 10:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"cacheTaxonomyData",value:(a=mr(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object(oe.get)(rankMath,"assessor.primaryTaxonomy.name")||"",n=Object(oe.get)(ETBuilderBackendDynamic,"getTaxonomies",{}),this.primaryTaxonomyTerms=n[t]||[],e.next=4,l()({path:"/wp-json/wp/v2/taxonomies"}).then((function(e){r.primaryTaxonomy=Object.keys(n).includes(t)&&e[t]?e[t]:{}}));case 4:this.hasPostPrimaryTaxonomySupport=!D.a.isEmptyObject(this.primaryTaxonomy),this.primaryTaxonomyValue=Object(oe.get)(ETBuilderBackendDynamic,"pageSettingsValues.et_pb_post_settings_".concat(this.primaryTaxonomy.rest_base),"");case 6:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"cacheDom",value:function(){return this.$diviSettingsModal=D()(document).find(".et-fb-modal__page-settings"),!!this.$diviSettingsModal.length&&(this.$diviTermSettingInputs=this.$diviSettingsModal.find(".et-fb-option--".concat(this.primaryTaxonomy.rest_base)),this.$diviTermSettingArea=this.$diviTermSettingInputs.parents(".et-fb-form__group"),this.$diviTermSettingArea.length||(this.$diviTermSettingArea=this.workaroundForFalseDiviTaxonomySelector()),this.$PrimaryTermSelectContainer=D()('<div id="rank-math-primary-term-input" />'),!0)}},{key:"workaroundForFalseDiviTaxonomySelector",value:function(){var e=this.primaryTaxonomy.name.toLowerCase();return this.$diviSettingsModal.find(".et-fb-form__label-text").filter((function(t,n){return D()(n).text().toLowerCase()===e})).parents(".et-fb-form__group")}},{key:"renderContainer",value:function(){this.$diviTermSettingArea.after(this.$PrimaryTermSelectContainer)}},{key:"renderComponent",value:function(e){var t={taxonomySlug:this.primaryTaxonomy.slug,options:this.formatActiveTerms(e)};Object(u.render)(Object(u.createElement)(ur,t),this.$PrimaryTermSelectContainer[0])}},{key:"bindEvents",value:function(){var e=this;Object(p.addFilter)("et.builder.store.setting.update","rank-math",(function(t,n){return"et_pb_post_settings_".concat(e.primaryTaxonomy.rest_base)===n&&e.renderComponent(t),t}))}},{key:"formatActiveTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.primaryTaxonomyValue;return this.primaryTaxonomyTerms.length&&t.trim()?t.split(",").map((function(t){var n=Object(oe.find)(e.primaryTaxonomyTerms,["term_id",parseInt(t)])||{};return{label:n.name,value:n.term_id}})):[]}}])&&dr(t.prototype,n),r&&dr(t,r),e}();hr.initRecursionTimer=void 0,hr.attemptsRun=0,hr.maxAttempts=10,hr.attemptInterval=1e3;var fr=n(6);function gr(e){return(gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function br(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yr(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,r.key,r)}}function vr(e,t){return(vr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function kr(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=_r(e);if(t){var a=_r(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Or(this,n)}}function Or(e,t){return!t||"object"!==gr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _r(e){return(_r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Er(){return(Er=Object.assign||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}).apply(this,arguments)}function jr(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(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)&&(a[n]=e[n])}return a}var Tr=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=jr(e,["tabId","onClick","children","selected"]);return wp.element.createElement(m.Button,Er({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},Sr=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}}),t&&vr(e,t)}(i,e);var t,n,r,a=kr(i);function i(){var e;wr(this,i),(e=a.apply(this,arguments)).handleClick=function(t){var n=e.props.onSelect,r=void 0===n?oe.noop:n;e.setState({selected:t}),r(t)},e.onNavigate=function(e,t){t.click()},e.toggle=function(){e.setState((function(e){return{isOpen:!e.isOpen}}))};var t=e.props,n=t.tabs,r=t.initialTabName;return e.state={isOpen:!1,selected:r||(n.length>0?n[0].name:null)},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,o=n.instanceId,l=n.orientation,c=void 0===l?"horizontal":l,s=n.tabs,u=Object(oe.find)(s,{name:t}),p=o+"-"+u.name,d=s.slice(4);return wp.element.createElement("div",{className:i},wp.element.createElement(m.NavigableMenu,{role:"tablist",orientation:c,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},s.slice(0,4).map((function(n){return wp.element.createElement(Tr,{className:rr()("components-tab-panel__tabs-item",n.className,br({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(oe.partial)(e.handleClick,n.name)},n.title)})),!Object(oe.isEmpty)(d)&&wp.element.createElement(m.Button,{onClick:this.toggle,"aria-expanded":this.state.isOpen,className:rr()("components-tab-panel__tabs-item",{active:this.state.isOpen})},wp.element.createElement("i",{className:"rm-icon rm-icon-plus"}),wp.element.createElement("span",null,"More")),this.state.isOpen&&wp.element.createElement("div",{className:"rank-math-extra-menu"},d.map((function(n){return wp.element.createElement(Tr,{className:rr()("components-tab-panel__tabs-item",n.className,br({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(oe.partial)(e.handleClick,n.name)},n.title)})))),u&&wp.element.createElement("div",{"aria-labelledby":p,role:"tabpanel",id:p+"-view",className:"components-tab-panel__tab-content"},this.props.children(u)))}}])&&yr(t.prototype,n),r&&yr(t,r),i}(u.Component),Ir=Object(fr.withInstanceId)(Sr);function Cr(e,t,n){var r=0;return!1!==Object(oe.get)(n,"pixelWidth",!1)&&(r=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),r)+"%"}function Dr(e,t){return e<=t.min||e>t.max}function Pr(e,t){return e<=t.minWidth||e>t.pixelWidth}var xr=function(e){var t=function(e,t){var n=ce(e).length,r=0,a=!1;if(!1!==Object(oe.get)(t,"pixelWidth",!1)){a=!0;var i=document.createTextNode(e),o=document.createElement("span");o.appendChild(i),o.id="rank-math-width-tester",o.className=t.widthCheckerClass;var l=document.body.appendChild(o);r=document.getElementById("rank-math-width-tester").offsetWidth,l.outerHTML=""}return{left:Cr(n,r,t),isInvalid:Dr(n,t),isInvalidWidth:!!a&&Pr(r,t),count:n+" / "+t.max,pixelWidth:a?r+"px / "+t.pixelWidth+"px":""}}(e.source,e),n=t.pixelWidth?" (".concat(t.pixelWidth,")"):"";return wp.element.createElement("span",{className:rr()("length-indicator-wrapper",{invalid:t.isInvalid})},wp.element.createElement("span",{className:"length-count"},t.count,n),wp.element.createElement("span",{className:"length-indicator"},wp.element.createElement("span",{style:{left:t.left}})))},Ar=n(30),Rr=n(31),Nr=n.n(Rr),Mr=function(e){var t=e.tags,n=e.components,r=e.children;return n=n||{},!1===Object(oe.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),Nr()({mixedString:r,components:n})};function Fr(e){return(Fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ur(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,r.key,r)}}function Br(e,t){return(Br=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lr(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=Gr(e);if(t){var a=Gr(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Hr(this,n)}}function Hr(e,t){return!t||"object"!==Fr(t)&&"function"!=typeof t?zr(e):t}function zr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gr(e){return(Gr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Kr=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}}),t&&Br(e,t)}(i,e);var t,n,r,a=Lr(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).state={},t.state.variables=t.getFiltered(),t.state.filtered=t.state.variables,t.state.display="none",t.state.isOpen=!1,t.handleOutsideClick=t.handleOutsideClick.bind(zr(t)),t}return t=i,(n=[{key:"getFiltered",value:function(){var e=this.props.exclude,t=Object.values(rankMath.variables);return Object(oe.isUndefined)(e)?t:t.filter((function(t){return!e.includes(t.variable)}))}},{key:"render",value:function(){var e=this;return wp.element.createElement(u.Fragment,null,wp.element.createElement("div",{className:"rank-math-variables-dropdown",style:{display:this.state.display},ref:function(t){e.node=t}},wp.element.createElement(m.TextControl,{autoComplete:"off",placeholder:Object(Ar.decodeEntities)(Object(Ve.__)("Search &hellip;","rank-math")),onChange:function(t){e.handleSearch(t)}}),wp.element.createElement("ul",null,this.state.filtered.map((function(t,n){return wp.element.createElement("li",{key:n,"data-var":t.variable,role:"presentation",onClick:function(){e.props.onClick(t)}},wp.element.createElement("strong",null,t.name),wp.element.createElement("span",null,wp.element.createElement(Mr,{tags:"strong"},t.description.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"))))}),this))),wp.element.createElement(m.Button,{icon:"arrow-down-alt2",onClick:function(){e.toggle()}}))}},{key:"toggle",value:function(){this.state.isOpen?document.removeEventListener("click",this.handleOutsideClick,!1):document.addEventListener("click",this.handleOutsideClick,!1),this.setState({display:this.state.isOpen?"none":"block",isOpen:!this.state.isOpen})}},{key:"handleOutsideClick",value:function(e){this.node.contains(e.target)||this.toggle()}},{key:"handleSearch",value:function(e){var t=e.toLowerCase();2>t.length?this.setState({filtered:this.state.variables}):this.setState({filtered:this.state.variables.filter((function(e){return-1!==Object.values(e).join(" ").toLowerCase().indexOf(t)}))})}}])&&Ur(t.prototype,n),r&&Ur(t,r),i}(u.Component),$r=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{title:t.getTitle(),serpTitle:t.getSerpTitle()}})),Object(c.withDispatch)((function(e){return{updateTitle:function(t){e("rank-math").updateSerpTitle(t),e("rank-math").updateTitle(t)}}})))((function(e){var t=e.title,n=e.serpTitle,r=e.updateTitle;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-title"},Object(Ve.__)("Title","rank-math")),wp.element.createElement(xr,{source:n,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(m.TextControl,{id:"rank-math-editor-title",value:t,placeholder:rankMath.assessor.serpData.titleTemplate,help:Object(Ve.__)("This is what will appear in the first line when this post shows up in the search results.","rank-math"),onChange:r}),wp.element.createElement(Kr,{exclude:["seo_title","seo_description"],onClick:function(e){return r(t+" %"+e.variable+"%")}})))})),Vr=n(15),Wr=Object(fr.compose)(Object(c.withSelect)((function(){var e=rankMathEditor.assessor.dataCollector;return{permalink:e.getSlug(),serpPermalink:e.getPermalink()}})),Object(c.withDispatch)((function(){return{updatePermalink:function(e){rankMathEditor.updatePermalink(I.Helpers.sanitizeText(e))},updatePermalinkSanitize:function(e){rankMathEditor.updatePermalinkSanitize(I.Helpers.sanitizeText(e))}}})))((function(e){var t=e.permalink,n=e.serpPermalink,r=e.updatePermalink,a=e.updatePermalinkSanitize;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-permalink"},Object(Ve.__)("Permalink","rank-math")),wp.element.createElement(xr,{source:Object(Vr.safeDecodeURIComponent)(n),min:5,max:75}),wp.element.createElement(m.TextControl,{id:"rank-math-editor-permalink",value:rankMath.is_front_page?"/":Object(Vr.safeDecodeURIComponent)(t),onChange:r,help:rankMath.is_front_page?Object(Ve.__)("Editing Homepage permalink is not possible.","rank-math"):Object(Ve.__)("This is the unique URL of this page, displayed below the post title in the search results.","rank-math"),disabled:rankMath.is_front_page?"disabled":"",onBlur:function(e){a(e.target.value)}}))})),Yr=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{description:t.getDescription(),serpDescription:t.getSerpDescription()}})),Object(c.withDispatch)((function(e){return{updateDescription:function(t){e("rank-math").updateSerpDescription(t),e("rank-math").updateDescription(t)}}})))((function(e){var t=e.description,n=e.serpDescription,r=e.updateDescription;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-description"},Object(Ve.__)("Description","rank-math")),wp.element.createElement(xr,{source:n,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(m.TextareaControl,{id:"rank-math-editor-description",value:ce(t),placeholder:n||rankMath.assessor.serpData.descriptionTemplate,help:Object(Ve.__)("This is what will appear as the description when this post shows up in the search results.","rank-math"),onChange:r}),wp.element.createElement(Kr,{exclude:["seo_title","seo_description"],onClick:function(e){return r(t+" %"+e.variable+"%")}})))})),qr=Object(fr.compose)(Object(c.withSelect)((function(e){return{type:e("rank-math").getSnippetPreviewType()}})),Object(c.withDispatch)((function(e,t){return{updatePreviewType:function(n){e("rank-math").updateSnippetPreviewType(n===t.type?"":n)}}})))((function(e){var t=e.type,n=e.updatePreviewType,r=rr()("button button-secondary button-small",{active:"desktop"===t}),a=rr()("button button-secondary button-small",{active:"mobile"===t});return wp.element.createElement("div",{className:"rank-math-button-devices alignright"},wp.element.createElement("div",{onClick:function(){return n("desktop")},className:r},wp.element.createElement("i",{className:"rm-icon rm-icon-desktop"})),wp.element.createElement("div",{onClick:function(){return n("mobile")},className:a},wp.element.createElement("i",{className:"rm-icon rm-icon-mobile"})))})),Qr=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"},Zr=Object(c.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Qr(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))})),Jr=function(e,t,n,r){return""===e||Object(oe.isUndefined)(t)?t:(t=Object(oe.truncate)(t,{length:n,separator:r||" "})).replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"}))},Xr=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(m.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},ea=Object(c.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(oe.find)(t,(function(e){return!Object(oe.isEmpty)(e.metadata.isPrimary)}))}}))((function(e){var t=e.schema;if(Object(oe.isEmpty)(t))return null;var n=Object(oe.get)(t,"review.reviewRating",{}),r=n.ratingValue;if(Object(oe.isEmpty)(r))return null;Object(oe.get)(n,"worstRating",1);var a=Object(oe.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},Xr(a,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},Xr(n,"filled"))}(r,0,a)),wp.element.createElement("span",{className:"serp-rating-label"},Object(Ve.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},r))}));function ta(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var na=Object(c.withSelect)((function(e){var t=e("rank-math"),n=t.getRobots();return{title:t.getSerpTitle(),permalink:rankMathEditor.assessor.dataCollector.getPermalink(),description:t.getSerpDescription(),previewType:t.getSnippetPreviewType(),isNoIndex:"noindex"in n,keyword:t.getSelectedKeyword().data.value}}))((function(e){var t,n=e.title,r=e.permalink,a=e.description,i=e.previewType,o=void 0===i?"desktop":i,l=e.isNoIndex,c=e.keyword,s=e.onClick,u=e.showScore,p=void 0===u||u,m=e.showDevices,d=void 0!==m&&m,h=rr()("serp-preview",(ta(t={"expanded-preview":""!==o},"".concat(o,"-preview"),""!==o&&d),ta(t,"noindex-preview",l),t)),f=rankMathEditor.assessor.getResearch("slugify")(c);return wp.element.createElement("div",{className:h},wp.element.createElement("div",{className:"serp-preview-title","data-title":Object(Ve.__)("Preview","rank-math"),"data-desktop":Object(Ve.__)("Desktop Preview","rank-math"),"data-mobile":Object(Ve.__)("Mobile Preview","rank-math")},p&&wp.element.createElement(Zr,null)," ",d&&wp.element.createElement(qr,null)),wp.element.createElement("div",{className:"serp-preview-wrapper"},wp.element.createElement("div",{className:"serp-preview-bg"},wp.element.createElement("div",{className:"serp-preview-input"},wp.element.createElement("input",{type:"text",value:c||Object(Ve.__)("Rank Math","rank-math"),disabled:!0}),wp.element.createElement("span",{className:"serp-icon-search"},wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))),wp.element.createElement("span",{className:"serp-icon-mic"})),wp.element.createElement("div",{className:"serp-preview-menus"},wp.element.createElement("ul",null,wp.element.createElement("li",{className:"current"},wp.element.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxwYXRoIGZpbGw9IiMzNEE4NTMiIGQ9Ik0xMCAydjJhNiA2IDAgMCAxIDYgNmgyYTggOCAwIDAgMC04LTh6Ii8+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTEwIDRWMmE4IDggMCAwIDAtOCA4aDJjMC0zLjMgMi43LTYgNi02eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDQiIGQ9Ik00IDEwSDJhOCA4IDAgMCAwIDggOHYtMmMtMy4zIDAtNi0yLjY5LTYtNnoiLz48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMjIgMjAuNTlsLTUuNjktNS42OUE3Ljk2IDcuOTYgMCAwIDAgMTggMTBoLTJhNiA2IDAgMCAxLTYgNnYyYzEuODUgMCAzLjUyLS42NCA0Ljg4LTEuNjhsNS42OSA1LjY5TDIyIDIwLjU5eiIvPjwvc3ZnPgo=",alt:"","data-atf":"1"}),Object(Ve.__)("All","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M14 13l4 5H6l4-4 1.79 1.78L14 13zm-6.01-2.99A2 2 0 0 0 8 6a2 2 0 0 0-.01 4.01zM22 5v14a3 3 0 0 1-3 2.99H5c-1.64 0-3-1.36-3-3V5c0-1.64 1.36-3 3-3h14c1.65 0 3 1.36 3 3zm-2.01 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h7v-.01h7a1 1 0 0 0 1-1V5z"}))," ",Object(Ve.__)("Images","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{clipRule:"evenodd",d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{clipRule:"evenodd",d:"M10 16.5l6-4.5-6-4.5v9zM5 20h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1zm14.5 2H5a3 3 0 0 1-3-3V4.4A2.4 2.4 0 0 1 4.4 2h15.2A2.4 2.4 0 0 1 22 4.4v15.1a2.5 2.5 0 0 1-2.5 2.5z",fillRule:"evenodd"}))," ",Object(Ve.__)("Videos","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M12 11h6v2h-6v-2zm-6 6h12v-2H6v2zm0-4h4V7H6v6zm16-7.22v12.44c0 1.54-1.34 2.78-3 2.78H5c-1.64 0-3-1.25-3-2.78V5.78C2 4.26 3.36 3 5 3h14c1.64 0 3 1.25 3 2.78zM19.99 12V5.78c0-.42-.46-.78-1-.78H5c-.54 0-1 .36-1 .78v12.44c0 .42.46.78 1 .78h14c.54 0 1-.36 1-.78V12zM12 9h6V7h-6v2z"}))," ",Object(Ve.__)("News","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))," ","More")),wp.element.createElement("ul",{className:"menus-right"},wp.element.createElement("li",null,Object(Ve.__)("Settings","rank-math")),wp.element.createElement("li",null,Object(Ve.__)("Tools","rank-math")))),wp.element.createElement("div",{className:"serp-preview-result-stats"},Object(Ve.__)("About 43,700,000 results (0.32 seconds) ","rank-math"))),wp.element.createElement("div",{className:"serp-preview-body",role:"button",tabIndex:0,onClick:function(){s&&s()}},wp.element.createElement("div",{className:"group"},wp.element.createElement("img",{src:rankMath.siteFavIcon,width:"16",height:"16",className:"serp-preview-favicon",alt:""}),wp.element.createElement("div",{className:"serp-url",dangerouslySetInnerHTML:{__html:Jr(f,I.Helpers.sanitizeText(Object(Vr.safeDecodeURIComponent)(r)),75,/-? +/)}})),wp.element.createElement("div",{className:"group"},wp.element.createElement("h5",{className:"serp-title",dangerouslySetInnerHTML:{__html:Jr(c,I.Helpers.sanitizeText(n),60)}})),wp.element.createElement(ea,null),wp.element.createElement("div",{className:"group"},wp.element.createElement("div",{className:"serp-description",dangerouslySetInnerHTML:{__html:Jr(c,I.Helpers.sanitizeText(a),160)}}))),wp.element.createElement("div",{className:"serp-preview-noindex"},wp.element.createElement("h3",null,Object(Ve.__)("Noindex robots meta is enabled","rank-math")),wp.element.createElement("p",null,Object(Ve.__)("This page will not appear in search results. You can disable noindex in the Advanced tab.","rank-math")))))})),ra=Object(c.withSelect)((function(e){return{isNoIndex:"noindex"in e("rank-math").getRobots()}}))((function(){return wp.element.createElement("div",{className:"rank-math-editor-general"},wp.element.createElement(na,{showScore:!1,showDevices:!0}),wp.element.createElement($r,null),wp.element.createElement(Wr,null),wp.element.createElement(Yr,null))})),aa=function(e){var t=rr()("rank-math-social-preview","rank-math-social-preview-"+e.network,e.cardType);return wp.element.createElement("div",{className:t},wp.element.createElement("div",{className:"rank-math-social-preview-item"},wp.element.createElement("div",{className:"rank-math-social-preview-meta"},wp.element.createElement("div",{className:"social-profile-image"}),e.children),wp.element.createElement("div",{className:"rank-math-social-preview-item-wrapper"},wp.element.createElement("div",{className:"rank-math-social-preview-image"},wp.element.createElement("img",{className:"rank-math-social-image-thumbnail",src:e.image,alt:""}),e.hasOverlay&&e.imageOverlay&&wp.element.createElement("img",{src:rankMath.overlayImages[e.imageOverlay].url,className:"rank-math-social-preview-image-overlay overlay-position-"+rankMath.overlayImages[e.imageOverlay].position,alt:""})),wp.element.createElement("div",{className:"rank-math-social-preview-caption"},"facebook"===e.network&&wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},e.siteurl),wp.element.createElement("h3",{className:"rank-math-social-preview-title"},e.title?x.swap(e.title):e.serpTitle),wp.element.createElement("p",{className:"rank-math-social-preview-description"},e.description?x.swap(e.description):e.serpDescription),"twitter"===e.network&&wp.element.createElement(u.Fragment,null,wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},wp.element.createElement(m.Dashicon,{icon:"admin-links"}),e.siteurl))))))},ia=n(32),oa=function(e){return wp.element.createElement("div",{className:"components-base-control field-group"},wp.element.createElement(ia.MediaUpload,{allowedTypes:["image"],multiple:!1,value:e.imageID,render:function(t){var n=t.open;return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.Button,{onClick:n,className:"button",isPrimary:!0},e.imageID>0?Object(Ve.__)("Replace Image","rank-math"):Object(Ve.__)("Add Image","rank-math")),e.imageID>0&&wp.element.createElement(m.Button,{className:"button",isDestructive:!0,isLink:!0,onClick:e.removeImage},Object(Ve.__)("Remove Image","rank-math")))},onSelect:e.updateImage}),wp.element.createElement("p",{className:"components-base-control__help"},Object(Ve.__)("Upload at least 600x315px image. Recommended size is 1200x630px.","rank-math")),wp.element.createElement("div",{className:"notice notice-warning inline hidden"},wp.element.createElement("p",null,Object(Ve.__)("Image is smaller than the minimum size, please select a different image.","rank-math"))))};function la(){var e=rankMath.overlayImages,t=[];return Object.keys(e).forEach((function(n){t.push({label:e[n].name,value:n})})),t}function ca(){return(ca=Object.assign||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}).apply(this,arguments)}var sa=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math"),n=function(){if(t.getFacebookImage())return t.getFacebookImage();var e=t.getFeaturedImage();return Object(oe.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{title:t.getFacebookTitle(),description:t.getFacebookDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getFacebookAuthor(),image:n,imageID:t.getFacebookImageID(),hasOverlay:t.getFacebookHasOverlay(),imageOverlay:t.getFacebookImageOverlay()}})),Object(c.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateFacebookImage(""),e("rank-math").updateFacebookImageID(0),e("rank-math").updateFacebookHasOverlay(!1)},updateImage:function(t){e("rank-math").updateFacebookImage(t.url),e("rank-math").updateFacebookImageID(t.id)},updateTitle:function(t){e("rank-math").updateFacebookTitle(t)},updateDescription:function(t){e("rank-math").updateFacebookDescription(t)},updateImageOverlay:function(t){e("rank-math").updateFacebookImageOverlay(t)},toggleOverlay:function(t){e("rank-math").updateFacebookHasOverlay(t)}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(aa,ca({},e,{network:"facebook",siteurl:rankMath.parentDomain}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName),wp.element.createElement("div",{className:"social-time"},wp.element.createElement("span",null,Object(Ve.__)("2 hrs","rank-math")),wp.element.createElement("span",null,wp.element.createElement(m.Dashicon,{icon:"admin-site",size:"12"})))),wp.element.createElement("div",{className:"notice notice-alt notice-info components-base-control"},wp.element.createElement("p",null,Object(Ve.__)("Customize the title, description and images of your post used while sharing on Facebook and Twitter.","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/kb/meta-box-social-tab/?utm_source=Plugin&utm_medium=Gutenberg%20Social%20Tab&utm_campaign=WP",target:"_blank",rel:"noreferrer noopener"},Object(Ve.__)("Read more","rank-math")))),wp.element.createElement(oa,e),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.TextControl,{label:Object(Ve.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.TextareaControl,{label:Object(Ve.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.ToggleControl,{label:Object(Ve.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(m.SelectControl,{value:e.imageOverlay,label:Object(Ve.__)("Icon overlay","rank-math"),options:la(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(Ve.__)("Please be careful with this option. Although this option will help increase CTR on Facebook, it might get you penalised if over-used.","rank-math"))))))})),ua=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{country:t.getTwitterAppCountry(),description:t.getTwitterAppDescription(),iphoneName:t.getTwitterAppIphoneName(),iphoneID:t.getTwitterAppIphoneID(),iphoneUrl:t.getTwitterAppIphoneUrl(),ipadName:t.getTwitterAppIpadName(),ipadID:t.getTwitterAppIpadID(),ipadUrl:t.getTwitterAppIpadUrl(),googleplayName:t.getTwitterAppGoogleplayName(),googleplayID:t.getTwitterAppGoogleplayID(),googleplayUrl:t.getTwitterAppGoogleplayUrl()}})),Object(c.withDispatch)((function(e){return{updateAppIphoneName:function(t){e("rank-math").updateTwitterAppIphoneName(t)},updateAppIphoneID:function(t){e("rank-math").updateTwitterAppIphoneID(t)},updateAppIphoneUrl:function(t){e("rank-math").updateTwitterAppIphoneUrl(t)},updateAppIpadName:function(t){e("rank-math").updateTwitterAppIpadName(t)},updateAppIpadID:function(t){e("rank-math").updateTwitterAppIpadID(t)},updateAppIpadUrl:function(t){e("rank-math").updateTwitterAppIpadUrl(t)},updateAppGoogleplayName:function(t){e("rank-math").updateTwitterAppGoogleplayName(t)},updateAppGoogleplayID:function(t){e("rank-math").updateTwitterAppGoogleplayID(t)},updateAppGoogleplayUrl:function(t){e("rank-math").updateTwitterAppGoogleplayUrl(t)},updateAppDescription:function(t){e("rank-math").updateTwitterAppDescription(t)},updateAppCountry:function(t){e("rank-math").updateTwitterAppCountry(t)}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.description,label:Object(Ve.__)("App Description","rank-math"),help:Object(Ve.__)("You can use this as a more concise description than what you may have on the app store. This field has a maximum of 200 characters. (optional)","rank-math"),onChange:e.updateAppDescription}),function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.iphoneName,label:Object(Ve.__)("iPhone App Name","rank-math"),help:Object(Ve.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIphoneName}),wp.element.createElement(m.TextControl,{value:e.iphoneID,label:Object(Ve.__)("iPhone App ID","rank-math"),help:Object(Ve.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIphoneID}),wp.element.createElement(m.TextControl,{value:e.iphoneUrl,label:Object(Ve.__)("iPhone App URL","rank-math"),help:Object(Ve.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIphoneUrl}))}(e),function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.ipadName,label:Object(Ve.__)("iPad App Name","rank-math"),help:Object(Ve.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIpadName}),wp.element.createElement(m.TextControl,{value:e.ipadID,label:Object(Ve.__)("iPad App ID","rank-math"),help:Object(Ve.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIpadID}),wp.element.createElement(m.TextControl,{value:e.ipadUrl,label:Object(Ve.__)("iPad App URL","rank-math"),help:Object(Ve.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIpadUrl}))}(e),function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.googleplayName,label:Object(Ve.__)("Google Play App Name","rank-math"),help:Object(Ve.__)("The name of your app to show.","rank-math"),onChange:e.updateAppGoogleplayName}),wp.element.createElement(m.TextControl,{value:e.googleplayID,label:Object(Ve.__)("Google Play App ID","rank-math"),help:Object(Ve.__)("Your app ID in the Google Play (.i.e. com.android.app)","rank-math"),onChange:e.updateAppGoogleplayID}),wp.element.createElement(m.TextControl,{value:e.googleplayUrl,label:Object(Ve.__)("Google Play App URL","rank-math"),help:Object(Ve.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppGoogleplayUrl}))}(e),wp.element.createElement(m.TextControl,{value:e.country,label:Object(Ve.__)("App Country","rank-math"),help:Object(Ve.__)("If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.","rank-math"),onChange:e.updateAppCountry}))})),pa=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{url:t.getTwitterPlayerUrl(),size:t.getTwitterPlayerSize(),stream:t.getTwitterPlayerStream(),ctype:t.getTwitterPlayerStreamCtype()}})),Object(c.withDispatch)((function(e){return{updatePlayerUrl:function(t){e("rank-math").updateTwitterPlayerUrl(t)},updatePlayerSize:function(t){e("rank-math").updateTwitterPlayerSize(t)},updatePlayerStreamUrl:function(t){e("rank-math").updateTwitterPlayerStreamUrl(t)},updatePlayerStreamCtype:function(t){e("rank-math").updateTwitterPlayerStreamCtype(t)}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.url,label:Object(Ve.__)("Player URL","rank-math"),help:Object(Ve.__)("HTTPS URL to iFrame player. This must be a HTTPS URL which does not generate active mixed content warnings in a web browser. The audio or video player must not require plugins such as Adobe Flash.","rank-math"),onChange:e.updatePlayerUrl}),wp.element.createElement(m.TextControl,{value:e.size,label:Object(Ve.__)("Player Size","rank-math"),help:Object(Ve.__)("iFrame width and height, specified in pixels in the following format: 600x400.","rank-math"),onChange:e.updatePlayerSize}),wp.element.createElement(m.TextControl,{value:e.stream,label:Object(Ve.__)("Stream URL","rank-math"),help:Object(Ve.__)("Optional URL to raw stream that will be rendered in Twitter’s mobile applications directly. If provided, the stream must be delivered in the MPEG-4 container format (the .mp4 extension). The container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile (BP), Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile (LC).","rank-math"),onChange:e.updatePlayerStreamUrl}),wp.element.createElement(m.TextControl,{value:e.ctype,label:Object(Ve.__)("Stream Content Type","rank-math"),help:Object(Ve.__)("The MIME type/subtype combination that describes the content contained in twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are those defined in RFC 4337 (MIME Type Registration for MP4).","rank-math"),onChange:e.updatePlayerStreamCtype}))}));function ma(){return(ma=Object.assign||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}).apply(this,arguments)}var da=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook(),r=function(){if(n&&t.getFacebookImage())return t.getFacebookImage();if(t.getTwitterImage())return t.getTwitterImage();var e=t.getFeaturedImage();return Object(oe.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{useFacebook:n,cardType:t.getTwitterCardType(),title:n?t.getFacebookTitle():t.getTwitterTitle(),description:n?t.getFacebookDescription():t.getTwitterDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getTwitterAuthor(),image:r,imageID:n?t.getFacebookImageID():t.getTwitterImageID(),hasOverlay:n?t.getFacebookHasOverlay():t.getTwitterHasOverlay(),imageOverlay:n?t.getFacebookImageOverlay():t.getTwitterImageOverlay()}})),Object(c.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateTwitterImage(""),e("rank-math").updateTwitterImageID(0),e("rank-math").updateTwitterHasOverlay(!1)},updateImage:function(t){e("rank-math").updateTwitterImage(t.url),e("rank-math").updateTwitterImageID(t.id)},updateTitle:function(t){e("rank-math").updateTwitterTitle(t)},updateDescription:function(t){e("rank-math").updateTwitterDescription(t)},updateImageOverlay:function(t){e("rank-math").updateTwitterImageOverlay(t)},toggleUseFacebook:function(t){e("rank-math").updateTwitterUseFacebook(t)},updateCardType:function(t){e("rank-math").updateTwitterCardType(t)},toggleOverlay:function(t){e("rank-math").updateTwitterHasOverlay(t)}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(aa,ma({},e,{network:"twitter",siteurl:rankMath.parentDomain,classes:e.cardType,description:Object(oe.truncate)(e.description?e.description:e.serpDescription,{length:240,separator:" "})}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName,wp.element.createElement("span",{className:"social-username"},"@",e.author),wp.element.createElement("span",{className:"social-time"},Object(Ve.__)("2h","rank-math"))),wp.element.createElement("div",{className:"social-text"},Object(Ve.__)("The card for your website will look little something like this!","rank-math"))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.ToggleControl,{label:Object(Ve.__)("Use Data from Facebook Tab","rank-math"),checked:e.useFacebook,onChange:e.toggleUseFacebook})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.SelectControl,{value:e.cardType,label:Object(Ve.__)("Card Type","rank-math"),options:[{value:"summary_large_image",label:Object(Ve.__)("Summary Card with Large Image","rank-math")},{value:"summary_card",label:Object(Ve.__)("Summary Card","rank-math")},{value:"app",label:Object(Ve.__)("App Card","rank-math")},{value:"player",label:Object(Ve.__)("Player Card","rank-math")}],onChange:e.updateCardType})),"player"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(Ve.sprintf)(Object(Ve.__)("Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. Player Cards must be submitted for approval before they can be used. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/player",target:"blank"},"https://dev.twitter.com/cards/types/player"))),"app"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(Ve.sprintf)(Object(Ve.__)("The App Card is a great way to represent mobile applications on Twitter and to drive installs. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/app",target:"blank"}," https://dev.twitter.com/cards/types/app"))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement(oa,e),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.TextControl,{label:Object(Ve.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.TextareaControl,{label:Object(Ve.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.ToggleControl,{label:Object(Ve.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(m.SelectControl,{value:e.imageOverlay,label:Object(Ve.__)("Icon overlay","rank-math"),options:la(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(Ve.__)("Please be careful with this option. Although this option will help increase CTR on Twitter, it might get you penalised if over-used.","rank-math"))))),"player"===e.cardType&&wp.element.createElement(pa,null),"app"===e.cardType&&wp.element.createElement(ua,null))})),ha=function(){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TabPanel,{className:"rank-math-editor-social",activeClass:"is-active",tabs:[{name:"facebook",title:wp.element.createElement(u.Fragment,null,wp.element.createElement(m.Dashicon,{icon:"facebook-alt"}),Object(Ve.__)("Facebook","rank-math")),view:sa,className:"button-facebook"},{name:"twitter",title:wp.element.createElement(u.Fragment,null,wp.element.createElement(m.Dashicon,{icon:"twitter"}),Object(Ve.__)("Twitter","rank-math")),view:da,className:"button-twitter"}]},(function(e){return Object(u.createElement)(e.view)})))};function fa(e){return(fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ga(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,r.key,r)}}function ba(e,t){return(ba=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wa(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=ka(e);if(t){var a=ka(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ya(this,n)}}function ya(e,t){return!t||"object"!==fa(t)&&"function"!=typeof t?va(e):t}function va(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ka(e){return(ka=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Oa=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}}),t&&ba(e,t)}(i,e);var t,n,r,a=wa(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=a.call(this))._handleRef=e._handleRef.bind(va(e)),e}return t=i,(n=[{key:"componentDidMount",value:function(){var e=D()(this.component),t=e.find(".stars a"),n=e.find(".smiley");t.on("mouseenter",(function(){var e=D()(this).index();t.removeClass("highlighted"),t.slice(0,e+1).addClass("highlighted"),e<2?n.removeClass("normal happy").addClass("angry"):e>3?n.removeClass("normal angry").addClass("happy"):n.removeClass("happy angry").addClass("normal")}))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){for(var e=this,t=[],n=1;n<=5;n++)t.push(wp.element.createElement("a",{key:n,href:"https://s.rankmath.com/wpreview",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"dashicons dashicons-star-filled"})));return wp.element.createElement("div",{className:"ask-review",ref:this._handleRef},wp.element.createElement("h3",null,Object(Ve.__)("Rate Rank Math SEO","rank-math")),wp.element.createElement("p",null,wp.element.createElement(Mr,{tags:"em"},Object(Ve.__)("Hey, we noticed you are using Rank Math SEO plugin for more than 2 weeks –{{em}}that's awesome!{{/em}} Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?","rank-math"))),wp.element.createElement("div",{className:"stars-wrapper"},wp.element.createElement("div",{className:"face"},wp.element.createElement("div",{className:"smiley happy"},wp.element.createElement("div",{className:"eyes"},wp.element.createElement("div",{className:"eye"}),wp.element.createElement("div",{className:"eye"})),wp.element.createElement("div",{className:"mouth"}))),wp.element.createElement("div",{className:"stars"},t)),wp.element.createElement(m.CheckboxControl,{label:wp.element.createElement(u.Fragment,null,wp.element.createElement("span",null,Object(Ve.__)("I already did. Please don't show this message again.","rank-math"))),onChange:function(){return e.alreadyReviewed()}}))}},{key:"alreadyReviewed",value:function(){D.a.ajax({url:rankMath.ajaxurl,data:{action:"rank_math_already_reviewed",security:rankMath.security}}),rankMath.pluginReviewed=!0;var e=D()(this.component);e.animate({opacity:.01},1500,(function(){var t=D()(".rank-math-editor > .components-tab-panel__tabs > button");t.first().click(),t.last().remove(),e.remove()}))}}])&&ga(t.prototype,n),r&&ga(t,r),i}(u.Component),_a=Object(m.withFilters)("rankMath.analytics.reportButton")((function(){return null})),Ea=Object(fr.compose)(Object(c.withSelect)((function(e){return{isOpen:e("rank-math").isSnippetEditorOpen()}})),Object(c.withDispatch)((function(e,t){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!t.isOpen)}}})))((function(e){var t=e.isOpen,n=e.initialTab,r=void 0===n?"":n,a=e.toggleEditor,i=[{name:"general",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings"}),wp.element.createElement("span",null,Object(Ve.__)("General","rank-math"))),view:ra},{name:"social",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social"}),wp.element.createElement("span",null,Object(Ve.__)("Social","rank-math"))),view:ha}];return rankMath.showReviewTab&&!1===rankMath.pluginReviewed&&i.push({name:"review",className:"review-tab",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-heart-filled"})),view:Oa}),wp.element.createElement(u.Fragment,null,wp.element.createElement(m.Button,{isPrimary:!0,className:"rank-math-edit-snippet",onClick:a},Object(Ve.__)("Edit Snippet","rank-math")),""===r&&wp.element.createElement(_a,null),t&&wp.element.createElement(m.Modal,{title:"Preview Snippet Editor",closeButtonLabel:Object(Ve.__)("Close","rank-math"),shouldCloseOnClickOutside:!1,onRequestClose:a,className:"rank-math-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement(m.TabPanel,{className:"rank-math-tabs rank-math-editor",activeClass:"is-active",initialTabName:r,tabs:i},(function(e){return Object(u.createElement)(e.view)}))))})),ja=function(){return wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(m.BaseControl,{className:"rank-math-social"},wp.element.createElement("span",{className:"components-base-control__label"},Object(Ve.__)("Social Media Preview","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(Ve.__)("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media.","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(Ve.__)("Click on the button below to view and edit the preview.","rank-math")),wp.element.createElement(Ea,{buttonLabel:Object(Ve.__)("Preview & Edit Social Media","rank-math"),initialTab:"social"})))},Ta=Object(fr.withInstanceId)((function(e){var t=e.className,n=e.instanceId,r=e.children,a="rank-math-tooltip-"+n,i=rr()("rank-math-tooltip",t);return wp.element.createElement("span",{className:i},wp.element.createElement("input",{id:a,type:"checkbox"}),wp.element.createElement("label",{htmlFor:a,className:"dashicons-before dashicons-editor-help"}),wp.element.createElement("div",{className:"rank-math-tooltip-content"},r))}));function Sa(e){return(Sa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ia(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ca(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,r.key,r)}}function Da(e,t){return(Da=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pa(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=Aa(e);if(t){var a=Aa(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return xa(this,n)}}function xa(e,t){return!t||"object"!==Sa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Aa(e){return(Aa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ra=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}}),t&&Da(e,t)}(i,e);var t,n,r,a=Pa(i);function i(){return Ia(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"shouldComponentUpdate",value:function(e){return e.isLoaded!==this.props.isLoaded||e.selectedKeyword.index!==this.props.selectedKeyword.index||e.isRefreshing!==this.props.isRefreshing}},{key:"render",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();return this.results=rankMathEditor.resultManager.getResult(t),this.isPrimary=0===this.props.selectedKeyword.index,Object(oe.isUndefined)(this.results)?null:Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}))}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e);return wp.element.createElement(m.PanelBody,{key:"panel-"+e,title:wp.element.createElement(u.Fragment,null,this.getGroupTitle(e),0===this.errors?wp.element.createElement("span",{className:"rank-math-group-score test-ok"},Object(Ve.__)("All Good","rank-math")):wp.element.createElement("span",{className:"rank-math-group-score test-fail"},this.errors," ",Object(Ve.__)("Errors","rank-math"))),initialOpen:"basic"===e,className:"rank-math-checklist"},wp.element.createElement("ul",null,t))}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,r=this.getGroupItems(e);return Object.keys(r).map((function(e){if(Object(oe.isUndefined)(n[e])||!t.isPrimary&&r[e])return!1;var a=n[e],i=rr()("seo-check-"+e,{"test-ok":a.hasScore(),"test-fail":!a.hasScore()});return a.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(i+=" "+function(e,t){var n=Object(oe.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}(a.getScore(),a.getMaxScore())),!1===a.hasScore()&&(t.errors+=1),wp.element.createElement("li",{key:e,className:i},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:a.getText()}}),a.hasTooltip()?wp.element.createElement(Ta,null,a.getTooltip()):null)}))}},{key:"getGroupItems",value:function(e){return{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return{basic:Object(Ve.__)("Basic SEO","rank-math"),advanced:Object(Ve.__)("Additional","rank-math"),"title-readability":Object(Ve.__)("Title Readability","rank-math"),"content-readability":Object(Ve.__)("Content Readability","rank-math")}}}])&&Ca(t.prototype,n),r&&Ca(t,r),i}(u.Component),Na=Object(c.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isRefreshing:t.isRefreshing(),selectedKeyword:t.getSelectedKeyword()}}))(Ra),Ma=Object(c.withSelect)((function(e){return{isPro:e("rank-math").isPro()}}))((function(e){return e.isPro?rankMath.isUserRegistered?wp.element.createElement(m.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(Mr,{components:{link:wp.element.createElement("a",{href:"https://rankmath.com/kb/score-100-in-tests/?utm_source=Plugin&utm_medium=Gutenberg%20General%20Tab%20Score%20Notice&utm_campaign=WP",target:"_blank",rel:"noopener noreferrer"})}},Object(Ve.__)("Read here to {{link}}Score 100/100{{/link}} ","rank-math"))):wp.element.createElement(m.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(Mr,{components:{link:wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=help",target:"_blank",rel:"noopener noreferrer"})}},Object(Ve.__)("Activate your account by {{link}}connecting to Rank Math!{{/link}} ","rank-math"))):wp.element.createElement(m.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(Mr,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.futureSeo,target:"_blank",rel:"noopener noreferrer"}),strong:wp.element.createElement("strong",null)}},Object(Ve.__)("Want more? {{link}}{{strong}}Upgrade today to the PRO{{/strong}}{{/link}} version.","rank-math")))})),Fa=n(33),Ua=n.n(Fa);function Ba(e){return(Ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function La(){return(La=Object.assign||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}).apply(this,arguments)}function Ha(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,r.key,r)}}function za(e,t){return(za=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ga(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=Va(e);if(t){var a=Va(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ka(this,n)}}function Ka(e,t){return!t||"object"!==Ba(t)&&"function"!=typeof t?$a(e):t}function $a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Va(e){return(Va=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wa=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}}),t&&za(e,t)}(i,e);var t,n,r,a=Ga(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e))._handleRef=t._handleRef.bind($a(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this.tagify=new Ua.a(this.component,this.props.settings||{}),this.props.settings.callbacks.setup&&setTimeout((function(){e.props.settings.callbacks.setup.call(e.tagify),e.tagify.DOM.input.setAttribute("contenteditable",!0),e.tagify.DOM.input.addEventListener("blur",e.props.settings.callbacks.blur)}),100)}},{key:"shouldComponentUpdate",value:function(e){return this.tagify.settings.whitelist=e.settings.whitelist,e.showDropdown&&this.tagify.dropdown.show.call(this.tagify,e.showDropdown),!1===e.showDropdown&&this.tagify.dropdown.hide.call(this.tagify,!0),!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){var e={ref:this._handleRef,name:this.props.name,autoFocus:this.props.autofocus,className:this.props.className,placeholder:this.props.placeholder};return"textarea"===this.props.mode?wp.element.createElement("textarea",La({},e,{defaultValue:this.props.initialValue})):wp.element.createElement("input",La({},e,{defaultValue:this.props.initialValue}))}},{key:"toArray",value:function(){return this.tagify.value.map((function(e){return e.value}))}},{key:"toString",value:function(){return this.toArray().join(",")}},{key:"queryTags",value:function(){return this.tagify.DOM.scope.querySelectorAll("tag")}}])&&Ha(t.prototype,n),r&&Ha(t,r),i}(u.Component);function Ya(e){return(Ya="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qa(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,r.key,r)}}function Qa(e,t){return(Qa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Za(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=ei(e);if(t){var a=ei(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ja(this,n)}}function Ja(e,t){return!t||"object"!==Ya(t)&&"function"!=typeof t?Xa(e):t}function Xa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ei(e){return(ei=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ti=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}}),t&&Qa(e,t)}(i,e);var t,n,r,a=Za(i);function i(e){var t,n=e.keywords;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this)).state={},t.request=null,t.hasAdded=!1,t.clickCount=0,t.singleClickTimer=null,t.tagifyField=Object(u.createRef)(),t.keywords=n,t.hideDropdown=t.hideDropdown.bind(Xa(t)),window.rankMathEditor.focusKeywordField=Xa(t),t}return t=i,(n=[{key:"render",value:function(){var e=this,t={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this),blur:this.hideDropdown};rankMath.isUserRegistered&&(t.input=Object(oe.debounce)(this.onInput.bind(this),300));var n={addTagOnBlur:!0,maxTags:rankMath.maxTags,whitelist:this.state.whitelist||[],transformTag:function(t){t.value=e.stripTags(t.value)},templates:{tag:function(t,n){return"<tag title='".concat(e.stripTags(t),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(n.class?n.class:"","'\n ").concat(e.getAttributes_esc(n),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(e.stripTags(t),"</span>\n </div>\n </tag>")}},callbacks:t};return this.setKeywordsClasses(),wp.element.createElement(Wa,{ref:this.tagifyField,mode:"input",settings:n,showDropdown:this.state.showDropdown,initialValue:this.keywords,placeholder:Object(Ve.__)("Example: Rank Math SEO","rank-math")})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.showDropdown!==t.showDropdown||e.isRefreshing!==this.props.isRefreshing||e.keywords!==this.props.keywords}},{key:"getScoreClass",value:function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},{key:"setKeywordsClasses",value:function(){var e=this;if(null!==this.tagifyField.current){var t=this.tagifyField.current,n=t.tagify.value;if(n.length>0){var r=t.queryTags();n.map((function(t,n){var a=rankMathEditor.resultManager.getScore(I.Helpers.removeDiacritics(t.value));r[n].classList.remove("ok-fk","good-fk","bad-fk"),r[n].classList.add(e.getScoreClass(a))}))}}}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"onInput",value:function(e){var t=this;(e=Object(oe.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hideDropdown(),this.hasAdded?this.hasAdded=!1:this.request=D.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var r=D.a.map(n,(function(e){return e}));t.setState({whitelist:r,showDropdown:e})}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,0===e.detail.index&&this.props.updateSelectedKeyword(e.detail,this.tagifyField.current),this.updateKeywords()}},{key:"onRemove",value:function(e){this.hideDropdown(),0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){var t=this;this.clickCount++,1===this.clickCount?this.singleClickTimer=setTimeout((function(){t.clickCount=0,t.props.updateSelectedKeyword(e.detail,t.tagifyField.current)}),400):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0)}},{key:"onEdit",value:function(){this.hasAdded=!0,this.updateKeywords()}},{key:"selectFirstKeyword",value:function(){var e=this.tagifyField.current,t=e.tagify.value,n={tag:"",index:0,data:{value:""}};t.length>0&&(n={tag:e.queryTags()[0],index:0,data:{value:t[0].value}}),this.props.updateSelectedKeyword(n,e)}},{key:"updateKeywords",value:function(){var e=this.tagifyField.current,t=this.stripTags(e.toString());this.props.updateKeywords(t)}},{key:"hideDropdown",value:function(){null!==this.request&&(this.request.abort(),this.request=null),this.setState({whitelist:[],showDropdown:!1})}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,n,r=Object.keys(e),a="";for(n=r.length;n--;)"class"!=(t=r[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=D()("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||""}}])&&qa(t.prototype,n),r&&qa(t,r),i}(u.Component),ni=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{keywords:t.getKeywords(),isRefreshing:t.isRefreshing()}})),Object(c.withDispatch)((function(e){return{updateKeywords:function(t){e("rank-math").updateKeywords(t)},updateSelectedKeyword:function(t,n){n.queryTags().forEach((function(e){e.classList.remove("selected")})),""!==t.tag&&t.tag.classList.add("selected"),e("rank-math").updateSelectedKeyword(t)}}})))(ti),ri=Object(fr.compose)(Object(c.withSelect)((function(e){return{isTrendsCtaOpen:e("rank-math").isTrendsCtaOpen()}})),Object(c.withDispatch)((function(e,t){return{toggleTrendsCta:function(){e("rank-math").toggleTrendsCta(!t.isTrendsCtaOpen)}}})))((function(e){var t=e.isTrendsCtaOpen,n=e.toggleTrendsCta;return wp.element.createElement(u.Fragment,null,wp.element.createElement("a",{href:"#",title:Object(Ve.__)("Trends","rank-math"),rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon},onClick:n}),t&&wp.element.createElement(m.Modal,{title:Object(Ve.__)("Google Trends","rank-math"),closeButtonLabel:Object(Ve.__)("Close","rank-math"),shouldCloseOnClickOutside:!0,onRequestClose:n,className:"rank-math-modal rank-math-trends-cta-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"components-panel__body rank-math-trends-cta-wrapper"},wp.element.createElement("img",{src:rankMath.trendsPreviewImage,alt:"",className:"trends-cta blurred"}),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"center"},wp.element.createElement("div",{className:"rank-math-cta-box blue-ticks width-50"},wp.element.createElement("h3",null,Object(Ve.__)("Track Keyword Trends","rank-math")),wp.element.createElement("ul",null,wp.element.createElement("li",null,Object(Ve.__)("Data fetched directly from Google","rank-math")),wp.element.createElement("li",null,Object(Ve.__)("Analyze search trends and compare keywords","rank-math")),wp.element.createElement("li",null,Object(Ve.__)("See data from a particular Country or timeframe","rank-math"))),wp.element.createElement("a",{className:"button button-primary is-green",href:rankMath.trendsUpgradeLink,rel:"noreferrer noopener",target:"_blank"},Object(Ve.__)("Upgrade","rank-math")))))))})),ai=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isPillarContent:t.getPillarContent()}})),Object(c.withDispatch)((function(e,t){return{togglePillarContent:function(t){e("rank-math").updatePillarContent(t)}}})))((function(e){var t=e.isLoaded,n=e.isPillarContent,r=e.togglePillarContent;return t?wp.element.createElement(m.PanelBody,{initialOpen:!0,className:"rank-math-focus-keyword"},wp.element.createElement("h2",{className:"components-panel__body-title"},Object(Ve.__)("Focus Keyword","rank-math"),wp.element.createElement(Ta,null,wp.element.createElement(Mr,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.hundredScoreLink,target:"_blank",rel:"noopener noreferrer"})}},Object(Ve.__)("Insert keywords you want to rank for. Try to {{link}}attain 100/100 points{{/link}} for better chances of ranking.","rank-math")))),!rankMath.isPro&&wp.element.createElement(ri,null),wp.element.createElement(S.Slot,null,(function(e){return e.length>0?e:[]})),wp.element.createElement("div",null,wp.element.createElement(ni,null)),wp.element.createElement(Ma,null),wp.element.createElement(m.CheckboxControl,{className:"pillar-content",label:wp.element.createElement(u.Fragment,null,wp.element.createElement("strong",null,Object(Ve.__)("This post is Pillar Content","rank-math")),wp.element.createElement(Ta,null,Object(Ve.__)("Select one or more Pillar Content posts for each post tag or category to show them in the Link Suggestions meta box.","rank-math"))),checked:n,onChange:r})):null})),ii=Object(c.withDispatch)((function(e){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!0)}}}))((function(e){var t=e.toggleEditor;return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(na,{onClick:t}),wp.element.createElement(Ea,null),wp.element.createElement(b.Slot,null,(function(e){return e.length>0?e:[]}))),wp.element.createElement(ai,null),rankMath.canUser.analysis&&wp.element.createElement(Na,null))})),oi=function(e,t,n){return!1===n?delete e[t]:e[t]=!0,e},li=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math").getRobots();return{robots:t,isRobotIndex:"index"in t,isRobotNoIndex:"noindex"in t,isRobotNoFollow:"nofollow"in t,isRobotNoArchive:"noarchive"in t,isRobotNoImageIndex:"noimageindex"in t,isRobotNoSnippet:"nosnippet"in t}})),Object(c.withDispatch)((function(e,t){var n=t.robots;return{updateRobots:function(t,r){n=oi(n,t,r),"index"===t&&(n=oi(n,"noindex",!r)),"noindex"===t&&(n=oi(n,"index",!r)),e("rank-math").updateRobots(n)}}})))((function(e){return wp.element.createElement(m.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(Ve.__)("Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list"},wp.element.createElement(m.CheckboxControl,{className:"robot-choice-index",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Index","rank-math"),wp.element.createElement(Ta,null,Object(Ve.__)("Instructs search engines to index and show these pages in the search results","rank-math"))),checked:e.isRobotIndex,onChange:function(t){return e.updateRobots("index",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-noindex",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("No Index","rank-math"),wp.element.createElement(Ta,null,Object(Ve.__)("Prevents pages from being indexed and displayed in search engine result pages","rank-math"))),checked:e.isRobotNoIndex,onChange:function(t){return e.updateRobots("noindex",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-nofollow",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Nofollow","rank-math"),wp.element.createElement(Ta,null,Object(Ve.__)("Prevents search engines from following links on the pages","rank-math"))),checked:e.isRobotNoFollow,onChange:function(t){return e.updateRobots("nofollow",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-noarchive",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("No Archive","rank-math"),wp.element.createElement(Ta,null,Object(Ve.__)("Prevents search engines from showing Cached links for pages","rank-math"))),checked:e.isRobotNoArchive,onChange:function(t){return e.updateRobots("noarchive",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-noimageindex",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("No Image Index","rank-math"),wp.element.createElement(Ta,null,Object(Ve.__)("Lets you specify that you do not want your pages to appear as the referring page for images that appear in image search results","rank-math"))),checked:e.isRobotNoImageIndex,onChange:function(t){return e.updateRobots("noimageindex",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-nosnippet",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("No Snippet","rank-math"),wp.element.createElement(Ta,null,Object(Ve.__)("Prevents a snippet from being shown in the search results","rank-math"))),checked:e.isRobotNoSnippet,onChange:function(t){return e.updateRobots("nosnippet",t)}})))}));function ci(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 si(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ci(Object(n),!0).forEach((function(t){ui(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ci(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ui(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pi=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{redirectionID:t.getRedirectionID(),redirectionUrl:t.getRedirectionUrl(),redirectionType:t.getRedirectionType(),hasRedirect:t.hasRedirect()}})),Object(c.withDispatch)((function(e,t){return{toggle:function(){e("rank-math").updateHasRedirect(!t.hasRedirect),e("rank-math").updateRedirectionItem(si(si({},t),{},{hasRedirect:!t.hasRedirect}))},updateRedirection:function(n,r){e("rank-math").updateRedirection(n,r),e("rank-math").updateRedirectionItem(si(si({},t),{},ui({},n,r)))}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.ToggleControl,{className:e.hasRedirect?"is-open":"is-close",label:Object(Ve.__)("Redirect","rank-math"),checked:e.hasRedirect,onChange:function(){return e.toggle()}}),wp.element.createElement(m.SelectControl,{label:Object(Ve.__)("Redirection Type","rank-math"),className:e.hasRedirect?"":"hidden",value:e.redirectionType,onChange:function(t){return e.updateRedirection("redirectionType",t)},options:[{value:"301",label:Object(Ve.__)("301 Permanent Move","rank-math")},{value:"302",label:Object(Ve.__)("302 Temporary Move","rank-math")},{value:"307",label:Object(Ve.__)("307 Temporary Redirect","rank-math")},{value:"410",label:Object(Ve.__)("410 Content Deleted","rank-math")},{value:"451",label:Object(Ve.__)("451 Content Unavailable for Legal Reasons","rank-math")}]}),!1===["410","451"].includes(e.redirectionType)&&wp.element.createElement(m.TextControl,{type:"url",autoComplete:"off",label:Object(Ve.__)("Destination URL","rank-math"),value:e.redirectionUrl,placeholder:"https://rankmath.com/",className:e.hasRedirect?"":"hidden",onChange:function(t){return e.updateRedirection("redirectionUrl",t)}}),wp.element.createElement(m.TextControl,{type:"hidden",value:e.redirectionID,className:"hidden"}))})),mi=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math"),n=rankMathEditor.assessor.dataCollector;return{placeholder:t.getCanonicalUrl()?t.getCanonicalUrl():n.getPermalink()?n.getPermalink():"https://rankmath.com/",canonicalUrl:t.getCanonicalUrl()}})),Object(c.withDispatch)((function(e){return{onUrlChange:function(t){e("rank-math").updateCanonicalUrl(t)}}})))((function(e){var t=e.canonicalUrl,n=e.placeholder,r=e.onUrlChange;return wp.element.createElement(m.BaseControl,{className:"rank-math-canonical"},wp.element.createElement("span",{className:"components-base-control__label"},Object(Ve.__)("Canonical URL","rank-math"),wp.element.createElement(Ta,null,Object(Ve.__)("The canonical URL informs search crawlers which page is the main page if you have double content","rank-math"))),wp.element.createElement(m.TextControl,{type:"url",autoComplete:"off",value:t,placeholder:n,onChange:function(e){return r(e)}}))})),di=Object(fr.compose)(Object(c.withSelect)((function(e){return{title:e("rank-math").getBreadcrumbTitle()}})),Object(c.withDispatch)((function(e){return{onTitleChange:function(t){e("rank-math").updateBreadcrumbTitle(t)}}})))((function(e){var t=e.title,n=e.onTitleChange;return wp.element.createElement(m.BaseControl,{className:"rank-math-breadcrumb-title"},wp.element.createElement("span",{className:"components-base-control__label"},Object(Ve.__)("Breadcrumb Title","rank-math"),wp.element.createElement(Ta,null,Object(Ve.__)("Breadcrumb Title to use for this post","rank-math"))),wp.element.createElement(m.TextControl,{value:t,onChange:function(e){return n(e)}}))}));function hi(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 fi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hi(Object(n),!0).forEach((function(t){gi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bi={"max-snippet":-1,"max-video-preview":-1,"max-image-preview":"large"},wi=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math").getAdvancedRobots(),n=fi({},t);Object(oe.defaults)(n,bi);var r=null,a=null,i=null;return"max-snippet"in t&&(r=n["max-snippet"]),"max-image-preview"in t&&(a=n["max-image-preview"]),"max-video-preview"in t&&(i=n["max-video-preview"]),{meta:t,isSnippet:r,isImage:a,isVideo:i,maxSnippet:r?n["max-snippet"]:-1,maxImage:n["max-image-preview"],maxVideo:i?n["max-video-preview"]:-1}})),Object(c.withDispatch)((function(e,t){var n=fi({},t.meta);return{updateRobots:function(t,r){Object(oe.isBoolean)(r)?!1===r?delete n[t]:n[t]=bi[t]:n[t]=r,e("rank-math").updateAdvancedRobots(n)}}})))((function(e){return wp.element.createElement(m.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(Ve.__)("Advanced Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list advanced-robots"},wp.element.createElement(m.CheckboxControl,{label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Max Snippet","rank-math"),wp.element.createElement(Ta,null,Object(Ve.__)("Specify a maximum text-length, in characters, of a snippet for your page","rank-math"))),checked:e.isSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(m.TextControl,{type:"number",value:e.maxSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(m.CheckboxControl,{label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Max Video Preview","rank-math"),wp.element.createElement(Ta,null,Object(Ve.__)("Specify a maximum duration in seconds of an animated video preview","rank-math"))),checked:e.isVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(m.TextControl,{type:"number",value:e.maxVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(m.CheckboxControl,{label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Max Image Preview","rank-math"),wp.element.createElement(Ta,null,Object(Ve.__)("Specify a maximum size of image preview to be shown for images on this page","rank-math"))),checked:e.isImage,onChange:function(t){return e.updateRobots("max-image-preview",t)}}),wp.element.createElement(m.SelectControl,{value:e.maxImage,onChange:function(t){return e.updateRobots("max-image-preview",t)},options:[{value:"large",label:Object(Ve.__)("Large","rank-math")},{value:"standard",label:Object(Ve.__)("Standard","rank-math")},{value:"none",label:Object(Ve.__)("None","rank-math")}]})))})),yi=Object(fr.compose)(Object(c.withSelect)((function(e){return{showScore:e("rank-math").getShowScoreFrontend()}})),Object(c.withDispatch)((function(e){return{toggleScore:function(t){e("rank-math").toggleFrontendScore(t)}}})))((function(e){var t=e.showScore,n=e.toggleScore;return wp.element.createElement(m.BaseControl,{className:"rank-math-frontend-score"},wp.element.createElement(m.ToggleControl,{label:Object(Ve.__)("Show SEO Score on Front-end","rank-math"),checked:t,onChange:n}))})),vi=function(){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(li,null)),wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(wi,null)),wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(mi,null)),rankMath.assessor.hasBreadcrumb&&wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(di,null)),rankMath.assessor.hasRedirection&&wp.element.createElement(m.PanelBody,{initialOpen:!0,className:"rank-math-redirect"},wp.element.createElement(pi,null)),rankMath.frontEndScore&&wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(yi,null)),wp.element.createElement(O.Slot,null,(function(e){return e.length>0?e:[]})))},ki=n(34),Oi=n.n(ki),_i={init:function(){this.cacheProps(),this.initVars(),this.bindEvents()},cacheProps:function(){this.root=document.documentElement,this.$wpAdminbar=D()("#wpadminbar")},initVars:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},bindEvents:function(){window.addEventListener("resize",Oi()(this.onWindowResize.bind(this)))},onWindowResize:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},setWpAdminbarHeight:function(){this.root.style.setProperty("--rankmath-wp-adminbar-height",this.$wpAdminbar.outerHeight()+"px")}};D()((function(){_i.init()}));var Ei=function(e){"social"===e&&Object(c.dispatch)("rank-math").toggleSnippetEditor(!0)},ji=function(){return wp.element.createElement(Ir,{className:"rank-math-tabs",activeClass:"is-active",tabs:(e=[],rankMath.canUser.general&&e.push({name:"general",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings",title:Object(Ve.__)("General","rank-math")}),wp.element.createElement("span",null,Object(Ve.__)("General","rank-math"))),view:ii,className:"rank-math-general-tab"}),rankMath.canUser.advanced&&e.push({name:"advanced",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-toolbox",title:Object(Ve.__)("Advanced","rank-math")}),wp.element.createElement("span",null,Object(Ve.__)("Advanced","rank-math"))),view:vi,className:"rank-math-advanced-tab"}),rankMath.canUser.social&&e.push({name:"social",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social",title:Object(Ve.__)("Social","rank-math")}),wp.element.createElement("span",null,Object(Ve.__)("Social","rank-math"))),view:ja,className:"rank-math-social-tab"}),Object(p.applyFilters)("rank_math_sidebar_tabs",e)),onSelect:Ei},(function(e){return wp.element.createElement("div",{className:"rank-math-tab-content-"+e.name},Object(u.createElement)(e.view))}));var e};function Ti(){return(Ti=Object.assign||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}).apply(this,arguments)}function Si(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(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)&&(a[n]=e[n])}return a}var Ii=function(e){var t=e.className,n=e.children,r=Si(e,["className","children"]),a=rr()("rank-math-rm-modal-button",t);return wp.element.createElement("button",Ti({type:"button",className:a},r),n)},Ci=function(){return wp.element.createElement("div",{className:"et-fb-icon et-fb-icon--close",style:{fill:"rgb(255, 255, 255)",width:"28px",minWidth:"28px",height:"28px",margin:"-6px"}},wp.element.createElement("svg",{viewBox:"0 0 28 28",preserveAspectRatio:"xMidYMid meet",shapeRendering:"geometricPrecision"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"M15.59 14l4.08-4.082a1.124 1.124 0 0 0-1.587-1.588L14 12.411 9.918 8.329A1.124 1.124 0 0 0 8.33 9.92L12.411 14l-4.082 4.082a1.124 1.124 0 0 0 1.59 1.589L14 15.589l4.082 4.082a1.124 1.124 0 0 0 1.589-1.59L15.589 14h.001z",fillRule:"evenodd"}))))},Di=function(){var e=rr()("rank-math-rm-modal-header-discard-button");return wp.element.createElement(Ii,{className:e,onClick:function(){Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}},wp.element.createElement(Ci,null))},Pi=function(){var e=rr()("rank-math-rm-modal-header");return wp.element.createElement("header",{className:e},wp.element.createElement("div",{className:"rank-math-rm-modal-header"},wp.element.createElement("div",{className:"rank-math-rm-modal-header-title"},"Rank Math SEO"),wp.element.createElement("ul",{className:"rank-math-rm-modal-header-options"},wp.element.createElement("li",{className:"rank-math-rm-modal-header-option"},wp.element.createElement(Di,null)))))},xi=function(e){var t=e.children,n=rr()("rank-math-rm-modal-content","rank-math-sidebar-panel");return wp.element.createElement("div",{className:n},t)},Ai=Object(c.withSelect)((function(e){return{rmUiActive:(0,e("rank-math").isDiviRankMathModalActive)()}}))((function(e){var t=e.rmUiActive,n=rr()("rank-math-rm-modal",{"rank-math-rm-modal-is-hidden":!t}),r=rr()("rank-math-rm-modal-inner");return wp.element.createElement("div",{className:n},wp.element.createElement("div",{className:r},wp.element.createElement(Pi,null),wp.element.createElement(xi,null,wp.element.createElement(ji,null))))})),Ri=Object(m.withFilters)("rankMath.diviAppModal")(Ai),Ni=function(){return wp.element.createElement(m.SlotFillProvider,null,wp.element.createElement("div",{className:"rank-math-rm-app"},wp.element.createElement(Ri,null)))};function Mi(e){return(Mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ui(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,r.key,r)}}function Bi(e,t,n){return(Bi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Gi(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function Li(e,t){return(Li=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hi(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=Gi(e);if(t){var a=Gi(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return zi(this,n)}}function zi(e,t){return!t||"object"!==Mi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gi(e){return(Gi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ki=function(){return s.MediaUpload},$i=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}}),t&&Li(e,t)}(i,e);var t,n,r,a=Hi(i);function i(){return Fi(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"setup",value:function(e){l.a.use(l.a.createNonceMiddleware(rankMath.restNonce)),this.registerSlots=this.registerSlots.bind(this),Object(p.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),Object(p.addFilter)("editor.MediaUpload","rank-math/replace-media-upload",Ki),Bi(Gi(i.prototype),"setup",this).call(this,e)}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=b,this.RankMathAfterFocusKeyword=S,this.RankMathAdvancedTab=O,this.slots={AfterEditor:b,AfterFocusKeyword:S,AdvancedTab:O}}},{key:"updatePermalink",value:function(e){Object(c.dispatch)("rank-math").updatePermalink(e)}},{key:"updatePermalinkSanitize",value:function(e){e=this.assessor.getResearch("slugify")(e),Object(c.dispatch)("rank-math").updatePermalink(e)}}])&&Ui(t.prototype,n),r&&Ui(t,r),i}(Yn);window.addEventListener("message",(function(e){"et_builder_api_ready"===e.data.etBuilderEvent&&(window.rankMathEditor=new $i,window.rankMathGutenberg=window.rankMathEditor,window.rankMathEditor.setup(new tr),sr.init(),new hr,Object(u.render)(Object(u.createElement)(Ni),document.getElementById("rank-math-rm-app-root")),Object(c.dispatch)("rank-math").refreshResults())}))}]);
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=82)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.components},function(e,t){e.exports=lodash},function(e,t){e.exports=wp.element},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.compose},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var o=a.apply(null,r);o&&e.push(o)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var l in r)n.call(r,l)&&r[l]&&e.push(l);else e.push(r.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=rankMathAnalyzer},function(e,t){e.exports=wp.apiFetch},function(e,t,n){var r=n(20),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},function(e,t,n){var r=n(11).Symbol;e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(16),a=n(24);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},function(e,t){e.exports=wp.url},function(e,t,n){var r=n(12),a=n(22),i=n(23),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},,,,function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(21))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(12),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var a=o.call(e);return r&&(t?e[l]=n:delete e[l]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},,function(e,t){e.exports=React},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},,function(e,t){e.exports=wp.mediaUtils},function(e,t){e.exports=wp.htmlEntities},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=l(n(26)),i=l(n(36)),o=l(n(39));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function s(e,t){var n,o,l,u,p,m,d,h,f=[],g={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],l=m;break}f.push(t[p.value])}else f.push(p.value);return n&&(u=function(e,t){var n,r,a=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,e),d=s(e.slice(l+1,u),t),o=a.default.cloneElement(n,{},d),f.push(o),u<e.length-1&&(h=s(e.slice(u+1),t),f=f.concat(h))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(g["interpolation-child-"+t]=e)})),(0,i.default)(g))}t.default=function(e){var t=e.mixedString,n=e.components,a=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,o.default)(t);try{return s(i,n)}catch(e){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t){e.exports=wp.blockEditor},function(e,t){e.exports=Tagify},function(e,t,n){var r=n(13),a=n(40),i=n(41),o=Math.max,l=Math.min;e.exports=function(e,t,n){var c,s,u,p,m,d,h=0,f=!1,g=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(t){var n=c,r=s;return c=s=void 0,h=t,p=e.apply(r,n)}function y(e){return h=e,m=setTimeout(k,t),f?w(e):p}function v(e){var n=e-d;return void 0===d||n>=t||n<0||g&&e-h>=u}function k(){var e=a();if(v(e))return O(e);m=setTimeout(k,function(e){var n=t-(e-d);return g?l(n,u-(e-h)):n}(e))}function O(e){return m=void 0,b&&c?w(e):(c=s=void 0,p)}function _(){var e=a(),n=v(e);if(c=arguments,s=this,d=e,n){if(void 0===m)return y(d);if(g)return clearTimeout(m),m=setTimeout(k,t),w(d)}return void 0===m&&(m=setTimeout(k,t)),p}return t=i(t)||0,r(n)&&(f=!!n.leading,u=(g="maxWait"in n)?o(i(n.maxWait)||0,t):u,b="trailing"in n?!!n.trailing:b),_.cancel=function(){void 0!==m&&clearTimeout(m),h=0,c=d=s=m=void 0},_.flush=function(){return void 0===m?p:O(a())},_}},,function(e,t,n){"use strict";var r=n(26),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(27),o=n(37),l=n(38),c="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===a)return n(r,e,""===t?"."+s(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=u(i=e[d],m+s(i,d),n,r);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var f,g=h.call(e),b=0;!(f=g.next()).done;)p+=u(i=f.value,m+s(i,b++),n,r)}else if("object"===l){0;var w=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,"")}}return p}var p=/\/+/g;function m(e){return(""+e).replace(p,"$&/")}var d,h,f=g,g=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},b=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function w(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,o,l=e.result,c=e.keyPrefix,s=e.func,u=e.context,p=s.call(u,t,e.count++);Array.isArray(p)?v(p,l,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,o=c+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),l.push(p))}function v(e,t,n,r,a){var i="";null!=n&&(i=m(n)+"/");var o=w.getPooled(t,i,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,o),w.release(o)}w.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},(h=w).instancePool=[],h.getPooled=d||f,h.poolSize||(h.poolSize=10),h.release=b;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)v(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(27);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,n){var r=n(11);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(42),a=n(13),i=n(14),o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}},function(e,t,n){var r=n(43),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"updateKeywords",(function(){return N})),n.d(r,"updatePillarContent",(function(){return M})),n.d(r,"toggleFrontendScore",(function(){return F})),n.d(r,"updateAnalysisScore",(function(){return U})),n.d(r,"updateCanonicalUrl",(function(){return B})),n.d(r,"updateAdvancedRobots",(function(){return L})),n.d(r,"updateRobots",(function(){return H})),n.d(r,"updateBreadcrumbTitle",(function(){return z})),n.d(r,"resetDirtyMetadata",(function(){return G})),n.d(r,"updateFacebookTitle",(function(){return K})),n.d(r,"updateFacebookDescription",(function(){return $})),n.d(r,"updateFacebookImage",(function(){return V})),n.d(r,"updateFacebookImageID",(function(){return W})),n.d(r,"updateFacebookHasOverlay",(function(){return Y})),n.d(r,"updateFacebookImageOverlay",(function(){return q})),n.d(r,"updateAppData",(function(){return A})),n.d(r,"updateAppUi",(function(){return R})),n.d(r,"updatePostID",(function(){return Q})),n.d(r,"updatePermalink",(function(){return Z})),n.d(r,"updateTitle",(function(){return J})),n.d(r,"updateDescription",(function(){return X})),n.d(r,"updateFeaturedImage",(function(){return ee})),n.d(r,"updatePrimaryTermID",(function(){return te})),n.d(r,"updateRedirection",(function(){return ne})),n.d(r,"updateRedirectionItem",(function(){return re})),n.d(r,"resetRedirection",(function(){return ae})),n.d(r,"updateHasRedirect",(function(){return ie})),n.d(r,"updateSerpTitle",(function(){return pe})),n.d(r,"updateSerpDescription",(function(){return me})),n.d(r,"toggleSnippetEditor",(function(){return de})),n.d(r,"updateSnippetPreviewType",(function(){return he})),n.d(r,"toggleTrendsCta",(function(){return fe})),n.d(r,"updateTwitterUseFacebook",(function(){return ge})),n.d(r,"updateTwitterCardType",(function(){return be})),n.d(r,"updateTwitterTitle",(function(){return we})),n.d(r,"updateTwitterDescription",(function(){return ye})),n.d(r,"updateTwitterAuthor",(function(){return ve})),n.d(r,"updateTwitterImageID",(function(){return ke})),n.d(r,"updateTwitterImage",(function(){return Oe})),n.d(r,"updateTwitterHasOverlay",(function(){return _e})),n.d(r,"updateTwitterImageOverlay",(function(){return Ee})),n.d(r,"updateTwitterPlayerUrl",(function(){return je})),n.d(r,"updateTwitterPlayerSize",(function(){return Te})),n.d(r,"updateTwitterPlayerStreamUrl",(function(){return Se})),n.d(r,"updateTwitterPlayerStreamCtype",(function(){return Ie})),n.d(r,"updateTwitterAppDescription",(function(){return Ce})),n.d(r,"updateTwitterAppIphoneID",(function(){return De})),n.d(r,"updateTwitterAppIphoneName",(function(){return Pe})),n.d(r,"updateTwitterAppIphoneUrl",(function(){return xe})),n.d(r,"updateTwitterAppIpadID",(function(){return Ae})),n.d(r,"updateTwitterAppIpadName",(function(){return Re})),n.d(r,"updateTwitterAppIpadUrl",(function(){return Ne})),n.d(r,"updateTwitterAppGoogleplayID",(function(){return Me})),n.d(r,"updateTwitterAppGoogleplayName",(function(){return Fe})),n.d(r,"updateTwitterAppGoogleplayUrl",(function(){return Ue})),n.d(r,"updateTwitterAppCountry",(function(){return Be})),n.d(r,"toggleLoaded",(function(){return Le})),n.d(r,"updateSelectedKeyword",(function(){return He})),n.d(r,"refreshResults",(function(){return ze})),n.d(r,"setVersion",(function(){return Ge})),n.d(r,"toggleIsDiviPageSettingsBarActive",(function(){return Ke})),n.d(r,"toggleIsDiviRankMathModalActive",(function(){return $e})),n.d(r,"toggleSchemaEditor",(function(){return Qe})),n.d(r,"toggleSchemaTemplates",(function(){return Ze})),n.d(r,"schemaUpdated",(function(){return Je})),n.d(r,"setEditingSchemaId",(function(){return Xe})),n.d(r,"setEditorTab",(function(){return et})),n.d(r,"setTemplateTab",(function(){return tt})),n.d(r,"updateEditSchemas",(function(){return nt})),n.d(r,"updateSchemas",(function(){return rt})),n.d(r,"updateEditSchema",(function(){return at})),n.d(r,"saveSchema",(function(){return it})),n.d(r,"deleteSchema",(function(){return ot})),n.d(r,"saveTemplate",(function(){return lt}));var a={};n.r(a),n.d(a,"appData",(function(){return ht})),n.d(a,"appUi",(function(){return yt}));var i={};n.r(i),n.d(i,"getAppData",(function(){return vt})),n.d(i,"getDirtyMetadata",(function(){return kt})),n.d(i,"getAnalysisScore",(function(){return Ot})),n.d(i,"getKeywords",(function(){return _t})),n.d(i,"getPillarContent",(function(){return Et})),n.d(i,"getRobots",(function(){return jt})),n.d(i,"getAdvancedRobots",(function(){return Tt})),n.d(i,"getCanonicalUrl",(function(){return St})),n.d(i,"getBreadcrumbTitle",(function(){return It})),n.d(i,"getRichSnippets",(function(){return Ct})),n.d(i,"getShowScoreFrontend",(function(){return Dt})),n.d(i,"isLoaded",(function(){return Pt})),n.d(i,"getSelectedKeyword",(function(){return xt})),n.d(i,"isRefreshing",(function(){return At})),n.d(i,"isPro",(function(){return Rt})),n.d(i,"isDiviPageSettingsBarActive",(function(){return Nt})),n.d(i,"isDiviRankMathModalActive",(function(){return Mt})),n.d(i,"getFacebookTitle",(function(){return Ft})),n.d(i,"getFacebookDescription",(function(){return Ut})),n.d(i,"getFacebookAuthor",(function(){return Bt})),n.d(i,"getFacebookImageID",(function(){return Lt})),n.d(i,"getFacebookImage",(function(){return Ht})),n.d(i,"getFacebookHasOverlay",(function(){return zt})),n.d(i,"getFacebookImageOverlay",(function(){return Gt})),n.d(i,"getPostID",(function(){return Kt})),n.d(i,"getTitle",(function(){return $t})),n.d(i,"getPermalink",(function(){return Vt})),n.d(i,"getDescription",(function(){return Wt})),n.d(i,"getFeaturedImage",(function(){return Yt})),n.d(i,"getFeaturedImageHtml",(function(){return qt})),n.d(i,"getPrimaryTermID",(function(){return Qt})),n.d(i,"getRedirectionID",(function(){return Zt})),n.d(i,"getRedirectionType",(function(){return Jt})),n.d(i,"getRedirectionUrl",(function(){return Xt})),n.d(i,"getRedirectionItem",(function(){return en})),n.d(i,"hasRedirect",(function(){return tn})),n.d(i,"getSerpTitle",(function(){return nn})),n.d(i,"getSerpDescription",(function(){return rn})),n.d(i,"isSnippetEditorOpen",(function(){return an})),n.d(i,"getSnippetPreviewType",(function(){return on})),n.d(i,"isTrendsCtaOpen",(function(){return ln})),n.d(i,"isSchemaEditorOpen",(function(){return cn})),n.d(i,"isSchemaTemplatesOpen",(function(){return sn})),n.d(i,"hasSchemaUpdated",(function(){return un})),n.d(i,"getSchemas",(function(){return pn})),n.d(i,"getEditSchemas",(function(){return mn})),n.d(i,"getEditingSchema",(function(){return dn})),n.d(i,"getPreviewSchema",(function(){return hn})),n.d(i,"getEditorTab",(function(){return fn})),n.d(i,"getTemplateTab",(function(){return gn})),n.d(i,"getTwitterUseFacebook",(function(){return bn})),n.d(i,"getTwitterCardType",(function(){return wn})),n.d(i,"getTwitterTitle",(function(){return yn})),n.d(i,"getTwitterDescription",(function(){return vn})),n.d(i,"getTwitterAuthor",(function(){return kn})),n.d(i,"getTwitterImageID",(function(){return On})),n.d(i,"getTwitterImage",(function(){return _n})),n.d(i,"getTwitterHasOverlay",(function(){return En})),n.d(i,"getTwitterImageOverlay",(function(){return jn})),n.d(i,"getTwitterAppDescription",(function(){return Tn})),n.d(i,"getTwitterAppIphoneID",(function(){return Sn})),n.d(i,"getTwitterAppIphoneName",(function(){return In})),n.d(i,"getTwitterAppIphoneUrl",(function(){return Cn})),n.d(i,"getTwitterAppIpadID",(function(){return Dn})),n.d(i,"getTwitterAppIpadName",(function(){return Pn})),n.d(i,"getTwitterAppIpadUrl",(function(){return xn})),n.d(i,"getTwitterAppGoogleplayID",(function(){return An})),n.d(i,"getTwitterAppGoogleplayName",(function(){return Rn})),n.d(i,"getTwitterAppGoogleplayUrl",(function(){return Nn})),n.d(i,"getTwitterAppCountry",(function(){return Mn})),n.d(i,"getTwitterPlayerUrl",(function(){return Fn})),n.d(i,"getTwitterPlayerSize",(function(){return Un})),n.d(i,"getTwitterPlayerStream",(function(){return Bn})),n.d(i,"getTwitterPlayerStreamCtype",(function(){return Ln}));var o=n(10),l=n.n(o),c=n(1),s=n(29),u=n(4),p=n(8),m=n(2),d=Object(m.createSlotFill)("RankMathAfterEditor"),h=d.Fill,f=d.Slot,g=function(e){var t=e.children,n=e.className;return wp.element.createElement(h,null,wp.element.createElement(m.PanelRow,{className:n},t))};g.Slot=f;var b=g,w=Object(m.createSlotFill)("RankMathAdvancedTab"),y=w.Fill,v=w.Slot,k=function(e){var t=e.children,n=e.className;return wp.element.createElement(y,null,wp.element.createElement(m.PanelRow,{className:n},t))};k.Slot=v;var O=k,_=Object(m.createSlotFill)("RankMathAfterFocusKeyword"),E=_.Fill,j=_.Slot,T=function(e){var t=e.children,n=e.className;return wp.element.createElement(E,null,wp.element.createElement("div",{className:n},t))};T.Slot=j;var S=T,I=n(9),C=n(5),D=n.n(C);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,r.key,r)}}var x=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,r;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():D()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},D.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&P(t.prototype,n),r&&P(t,r),e}());function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(p.applyFilters)("rank_math_sanitize_data",t,e,n),null!==r&&(r=Object(p.applyFilters)("rank_math_sanitize_meta_value",r,e,n)),r=null===r?t:r,Object(p.doAction)("rank_math_data_changed",e,t,n),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:n,metaValue:r}}function R(e,t){return Object(p.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function N(e){return x.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),A("keywords",e,"rank_math_focus_keyword")}function M(e){return A("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function F(e){return A("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function U(e){return A("score",e,"rank_math_seo_score")}function B(e){return A("canonicalUrl",e,"rank_math_canonical_url")}function L(e){return A("advancedRobots",e,"rank_math_advanced_robots")}function H(e){return A("robots",e,"rank_math_robots",Object.keys(e))}function z(e){return A("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function G(){return A("dirtyMetadata",{})}function K(e){return A("facebookTitle",e,"rank_math_facebook_title")}function $(e){return A("facebookDescription",e,"rank_math_facebook_description")}function V(e){return A("facebookImage",e,"rank_math_facebook_image")}function W(e){return A("facebookImageID",e,"rank_math_facebook_image_id")}function Y(e){return A("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function q(e){return A("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function Q(e){return rankMath.objectID=e,A("postID",e)}function Z(e){return A("permalink",e,"permalink")}function J(e){return A("title",e,"rank_math_title")}function X(e){return A("description",e,"rank_math_description")}function ee(e){return A("featuredImage",e)}function te(e,t){return A("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function ne(e,t){return A(e,t)}function re(e){return R("redirectionItem",e)}function ae(){return R("redirectionItem",{})}function ie(e){return R("hasRedirect",e)}var oe=n(3),le=document.createElement("div"),ce=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),le.innerHTML=e,e=le.textContent,le.textContent=""),e},se=function(e,t){return e=(e=I.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(oe.truncate)(e,{length:t,separator:" "}):e},ue=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),n=t.excerpt,r=t.content?function(e){if(Object(oe.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(oe.filter)(I.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==e.trim()}));if(!t.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var r=Object(oe.filter)(t,(function(e){return Object(oe.includes)(e.toLowerCase(),n.toLowerCase())}));if(0<r.length)return se(r[0],160)}return se(t[0],160)}(t.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",a=Object(oe.isUndefined)(n)||Object(oe.isEmpty)(n)?r:n;if(x.setVariable("excerpt",a),x.setVariable("seo_description",a),""!==(e=ce(Object(p.applyFilters)("rankMath/description",e))))return I.Helpers.cleanText(e);if(!Object(oe.isUndefined)(n)&&!Object(oe.isEmpty)(n))return I.Helpers.cleanText(n);var i=rankMath.assessor.serpData.descriptionTemplate;return Object(oe.isUndefined)(i)||""===i?r:I.Helpers.cleanText(i)};function pe(e){return e=x.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),R("serpTitle",e)}function me(e){return e=x.swap(ue(e)),rankMathEditor.refresh("description"),R("serpDescription",e)}function de(e){return R("isSnippetEditorOpen",e)}function he(e){return R("snippetPreviewType",e)}function fe(e){return R("isTrendsCtaOpen",e)}function ge(e){return A("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function be(e){return A("twitterCardType",e,"rank_math_twitter_card_type")}function we(e){return A("twitterTitle",e,"rank_math_twitter_title")}function ye(e){return A("twitterDescription",e,"rank_math_twitter_description")}function ve(e){return A("twitterAuthor",e,"rank_math_twitter_author")}function ke(e){return A("twitterImageID",e,"rank_math_twitter_image_id")}function Oe(e){return A("twitterImage",e,"rank_math_twitter_image")}function _e(e){return A("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function Ee(e){return A("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function je(e){return A("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function Te(e){return A("twitterPlayerSize",e,"rank_math_twitter_player_size")}function Se(e){return A("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function Ie(e){return A("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function Ce(e){return A("twitterAppDescription",e,"rank_math_twitter_app_description")}function De(e){return A("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function Pe(e){return A("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function xe(e){return A("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function Ae(e){return A("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function Re(e){return A("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function Ne(e){return A("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function Me(e){return A("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function Fe(e){return A("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function Ue(e){return A("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function Be(e){return A("twitterAppCountry",e,"rank_math_twitter_app_country")}function Le(e){return R("isLoaded",e)}function He(e){return R("selectedKeyword",e)}function ze(){return R("refreshResults",Date.now())}function Ge(){return R("isPro",!0)}function Ke(e){return R("isDiviPageSettingsBarActive",e)}function $e(e){return R("isDiviRankMathModalActive",e)}var Ve=n(0);function We(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 Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qe(e){return R("isSchemaEditorOpen",e)}function Ze(e){return R("isSchemaTemplatesOpen",e)}function Je(e){return R("schemaUpdated",e)}function Xe(e){return R("editingSchemaId",e)}function et(e){return R("editorTab",e)}function tt(e){return R("templateTab",e)}function nt(e){return R("editSchemas",e)}function rt(e){return A("schemas",e)}function at(e,t){var n=Ye({},Object(c.select)("rank-math").getEditSchemas());return n[e]=t,R("editSchemas",n)}function it(e,t){var n=Ye({},Object(c.select)("rank-math").getSchemas());return n[e]=t,A("schemas",n)}function ot(e){var t=Ye({},Object(c.select)("rank-math").getSchemas());return delete t[e],Object(p.doAction)("rank_math_schema_trash",e),A("schemas",t,"rank_math_delete_"+e,"")}function lt(e,t,n){return l()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:n}}).then((function(n){t({loading:!1,showNotice:!0,postId:n.id}),setTimeout((function(){t({showNotice:!1}),Object(oe.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(Ve.__)("Edit Schema","rank-math"),window.history.pushState(null,"",n.link.replace(/&amp;/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function ct(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 st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pt=rankMath.assessor.serpData,mt=rankMath.assessor.hasRedirection,dt={postID:null,title:pt.title?pt.title:pt.titleTemplate,description:pt.description,keywords:pt.focusKeywords,pillarContent:pt.pillarContent,featuredImage:"",permalink:!1,primaryTerm:pt.primaryTerm,robots:pt.robots,advancedRobots:pt.advancedRobots,canonicalUrl:pt.canonicalUrl,breadcrumbTitle:pt.breadcrumbTitle,showScoreFrontend:pt.showScoreFrontend,redirectionID:mt?Object(oe.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:mt?Object(oe.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:mt?Object(oe.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:pt.facebookTitle,facebookImage:pt.facebookImage,facebookImageID:pt.facebookImageID,facebookAuthor:pt.facebookAuthor,facebookDescription:pt.facebookDescription,facebookHasOverlay:pt.facebookHasOverlay,facebookImageOverlay:pt.facebookImageOverlay,twitterTitle:pt.twitterTitle,twitterImage:pt.twitterImage,twitterAuthor:pt.twitterAuthor,twitterImageID:pt.twitterImageID,twitterCardType:pt.twitterCardType,twitterUseFacebook:pt.twitterUseFacebook,twitterDescription:pt.twitterDescription,twitterHasOverlay:pt.twitterHasOverlay,twitterImageOverlay:pt.twitterImageOverlay,twitterPlayerUrl:pt.twitterPlayerUrl,twitterPlayerSize:pt.twitterPlayerSize,twitterPlayerStream:pt.twitterPlayerStream,twitterPlayerStreamCtype:pt.twitterPlayerStreamCtype,twitterAppDescription:pt.twitterAppDescription,twitterAppIphoneName:pt.twitterAppIphoneName,twitterAppIphoneID:pt.twitterAppIphoneID,twitterAppIphoneUrl:pt.twitterAppIphoneUrl,twitterAppIpadName:pt.twitterAppIpadName,twitterAppIpadID:pt.twitterAppIpadID,twitterAppIpadUrl:pt.twitterAppIpadUrl,twitterAppGoogleplayName:pt.twitterAppGoogleplayName,twitterAppGoogleplayID:pt.twitterAppGoogleplayID,twitterAppGoogleplayUrl:pt.twitterAppGoogleplayUrl,twitterAppCountry:pt.twitterAppCountry,schemas:Object(oe.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function ht(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dt,n=arguments.length>1?arguments[1]:void 0,r=st({},t.dirtyMetadata);return!1!==n.metaKey&&(r[n.metaKey]=n.metaValue),"RANK_MATH_APP_DATA"===n.type?"dirtyMetadata"===n.key?st(st({},t),{},{dirtyMetadata:n.value}):st(st({},t),{},(ut(e={},n.key,n.value),ut(e,"dirtyMetadata",r),e)):t}function ft(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 gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wt={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(oe.isEmpty)(Object(oe.get)(rankMath.assessor,"redirection.id",""))||!Object(oe.isEmpty)(Object(oe.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1};function yt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wt,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?gt(gt({},e),{},bt({},t.key,t.value)):e}function vt(e){return e.appData}function kt(e){return e.appData.dirtyMetadata}function Ot(e){return e.appData.score}function _t(e){return e.appData.keywords}function Et(e){return e.appData.pillarContent}function jt(e){return e.appData.robots}function Tt(e){return e.appData.advancedRobots}function St(e){return e.appData.canonicalUrl}function It(e){return e.appData.breadcrumbTitle}function Ct(e){return"todo"}function Dt(e){return e.appData.showScoreFrontend}function Pt(e){return e.appUi.isLoaded}function xt(e){return e.appUi.selectedKeyword}function At(e){return e.appUi.refreshResults}function Rt(e){return e.appUi.isPro}function Nt(e){return e.appUi.isDiviPageSettingsBarActive}function Mt(e){return e.appUi.isDiviRankMathModalActive}function Ft(e){return e.appData.facebookTitle}function Ut(e){return e.appData.facebookDescription}function Bt(e){return e.appData.facebookAuthor}function Lt(e){return e.appData.facebookImageID}function Ht(e){return e.appData.facebookImage}function zt(e){return e.appData.facebookHasOverlay}function Gt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function Kt(e){return e.appData.postID}function $t(e){return e.appData.title}function Vt(e){return e.appData.permalink}function Wt(e){return e.appData.description}function Yt(e){return e.appData.featuredImage}function qt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function Qt(e){return e.appData.primaryTerm}function Zt(e){return e.appData.redirectionID}function Jt(e){return e.appData.redirectionType}function Xt(e){return e.appData.redirectionUrl}function en(e){return e.appUi.redirectionItem}function tn(e){return e.appUi.hasRedirect}function nn(e){return ce(e.appUi.serpTitle)}function rn(e){return e.appUi.serpDescription}function an(e){return e.appUi.isSnippetEditorOpen}function on(e){return e.appUi.snippetPreviewType}function ln(e){return e.appUi.isTrendsCtaOpen}function cn(e){return e.appUi.isSchemaEditorOpen}function sn(e){return e.appUi.isSchemaTemplatesOpen}function un(e){return e.appUi.schemaUpdated}function pn(e){return e.appData.schemas}function mn(e){return e.appUi.editSchemas}function dn(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function hn(e){return e.appData.schemas[e.appUi.editingSchemaId]}function fn(e){return e.appUi.editorTab}function gn(e){return e.appUi.templateTab}function bn(e){return e.appData.twitterUseFacebook}function wn(e){return e.appData.twitterCardType}function yn(e){return e.appData.twitterTitle}function vn(e){return e.appData.twitterDescription}function kn(e){return e.appData.twitterAuthor}function On(e){return e.appData.twitterImageID}function _n(e){return e.appData.twitterImage}function En(e){return e.appData.twitterHasOverlay}function jn(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function Tn(e){return e.appData.twitterAppDescription}function Sn(e){return e.appData.twitterAppIphoneID}function In(e){return e.appData.twitterAppIphoneName}function Cn(e){return e.appData.twitterAppIphoneUrl}function Dn(e){return e.appData.twitterAppIpadID}function Pn(e){return e.appData.twitterAppIpadName}function xn(e){return e.appData.twitterAppIpadUrl}function An(e){return e.appData.twitterAppGoogleplayID}function Rn(e){return e.appData.twitterAppGoogleplayName}function Nn(e){return e.appData.twitterAppGoogleplayUrl}function Mn(e){return e.appData.twitterAppCountry}function Fn(e){return e.appData.twitterPlayerUrl}function Un(e){return e.appData.twitterPlayerSize}function Bn(e){return e.appData.twitterPlayerStream}function Ln(e){return e.appData.twitterPlayerStreamCtype}var Hn=Object(c.registerStore)("rank-math",{reducer:Object(c.combineReducers)(a),selectors:i,actions:r});function zn(){return Hn}function Gn(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,r.key,r)}}var Kn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new I.Analyzer({i18n:Ve,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(p.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(p.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(p.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var t,n,r;return t=e,(n=[{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===this.getSelectedKeyword().toLowerCase()&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(e,t){return"schemas"===t||Object(oe.isObject)(e)||Object(oe.isEmpty)(e)?e:I.Helpers.sanitizeAppData(e)}},{key:"getPaper",value:function(e,t){var n=zn().getState(),r=this.dataCollector.getData(),a=new I.Paper("",{locale:rankMath.localeFull});return a.setTitle(n.appUi.serpTitle),a.setPermalink(r.slug),a.setDescription(n.appUi.serpDescription),a.setUrl(r.permalink),a.setText(Object(p.applyFilters)("rank_math_content",r.content)),a.setKeyword(e),a.setKeywords(t),Object(oe.isUndefined)(r.featuredImage)||(a.setThumbnail(r.featuredImage.source_url),a.setThumbnailAltText(I.Helpers.removeDiacritics(r.featuredImage.alt_text))),a}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(oe.debounce)((function(t){var n=zn().getState();if(!1!==n.appUi.isLoaded){var r=n.appData.keywords.split(","),a=[];Object(p.doAction)("rank_math_"+t+"_refresh"),r.map((function(t,n){var i=e.getPaper(I.Helpers.removeDiacritics(t),r),o=0===n?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests();a.push(e.analyzer.analyzeSome(o,i).then((function(e){rankMathEditor.resultManager.update(i.getKeyword(),e,0===n),0===n&&Object(c.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(i.getKeyword()))}))),Promise.all(a).then((function(){Object(c.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var e=zn().getState().appData.keywords;return I.Helpers.removeDiacritics(e.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var e=zn().getState(),t=""!==e.appUi.selectedKeyword.data.value?e.appUi.selectedKeyword.data.value:e.appData.keywords.split(",")[0];return I.Helpers.removeDiacritics(t)}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}}])&&Gn(t.prototype,n),r&&Gn(t,r),e}();function $n(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,r.key,r)}}var Vn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(p.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(p.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,n,r;return t=e,(n=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(Ve.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(Ve.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(Ve.sprintf)(Object(Ve.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(Ve.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&$n(t.prototype,n),r&&$n(t,r),e}();function Wn(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,r.key,r)}}var Yn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"setup",value:function(e){zn(),this.resultManager=new I.ResultManager,this.assessor=new Kn(e),new Vn,Object(p.doAction)("rank_math_loaded")}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(e){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(e){throw"Implement the function"}}])&&Wn(t.prototype,n),r&&Wn(t,r),e}();function qn(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 Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qn(Object(n),!0).forEach((function(t){Zn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jn(e,t,n,r,a,i,o){try{var l=e[i](o),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,a)}function Xn(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Jn(i,r,a,o,l,"next",e)}function l(e){Jn(i,r,a,o,l,"throw",e)}o(void 0)}))}}function er(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,r.key,r)}}var tr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this.etSettingsData={title:"",excerpt:"",featuredImage:""},this._featuredImage=null,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.savePost=this.savePost.bind(this),this.saveRedirection=this.saveRedirection.bind(this),this.saveSchemas=this.saveSchemas.bind(this),this.subscribeToDivi()}var t,n,r,a,i,o;return t=e,(n=[{key:"collectPostData",value:function(){return{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return parseInt(Object(oe.get)(ETBuilderBackendDynamic,"postId",0))}},{key:"getTitle",value:function(){return this.etSettingsData.title}},{key:"setTitle",value:function(e){this.etSettingsData.title=e}},{key:"getContent",value:function(){var e=[];return this.getContentArea().find(".et_pb_section").each((function(){e.push(D()(this).html())})),e.join("")}},{key:"getContentArea",value:function(){if(this._contentArea)return this._contentArea;if(this._etAppFrameElem||(this._etAppFrameElem=Object(oe.get)(ET_Builder,"Frames.app.frameElement",document.querySelector("iframe#et-fb-app-frame"))),!this._etAppFrameElem)return D()("<div />");var e=D()(this._etAppFrameElem.contentWindow.document.querySelector("#et-fb-app"));return e.length<1?D()("<div />"):(this._contentArea=e,e)}},{key:"getExcerpt",value:function(){return this.etSettingsData.excerpt}},{key:"setExcerpt",value:function(e){this.etSettingsData.excerpt=e}},{key:"getPermalink",value:function(){return rankMath.is_front_page?rankMath.homeUrl+"/":rankMath.homeUrl+"/"+Object(c.select)("rank-math").getPermalink()}},{key:"getSlug",value:function(){var e=D()(document).find("#rank-math-editor-permalink");return e.length?e.val():Object(oe.get)(ETBuilderBackendDynamic,"postMeta.post_name",this.getPermalink().replace(rankMath.homeUrl,"").replace(/\//g,""))}},{key:"getFeaturedImage",value:function(){if(this._featuredImage)return this._featuredImage;this.setFeaturedImage()}},{key:"setFeaturedImage",value:(o=Xn(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t){e.next=4;break}return e.next=3,this.fetchFeaturedImageId();case 3:t=e.sent;case 4:if(!this.isValidMediaId(t)||!t){e.next=10;break}return e.next=7,this.fetchWpMedia(t);case 7:this._featuredImage=e.sent,e.next=11;break;case 10:this._featuredImage=!1;case 11:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"fetchFeaturedImageId",value:(i=Xn(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.next=3,l()({path:"/wp-json/rankmath/v1/getFeaturedImageId",method:"POST",data:{postId:Object(oe.get)(ETBuilderBackendDynamic,"postId",0)}}).then((function(e){return t=!!e.success&&e.featImgId}));case 3:return e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})},{key:"fetchWpMedia",value:(a=Xn(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},e.next=3,l()({path:"/wp-json/wp/v2/media/".concat(t),method:"GET"}).then((function(e){return n=e}));case 3:return e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"subscribeToDivi",value:function(){var e=this;this.setTitle(Object(oe.get)(ETBuilderBackendDynamic,"postTitle","")),this.setExcerpt(Object(oe.get)(ETBuilderBackendDynamic,"postMeta.post_excerpt","")),this.setFeaturedImage(Object(oe.get)(ETBuilderBackendDynamic,"currentPage.thumbnailId",0)),Object(c.dispatch)("rank-math").updatePermalink(rankMath.postName),this.subscriber=Object(oe.debounce)(this.refresh,500),Object(c.subscribe)(this.subscriber),D()(".et-fb-page-settings-bar").find(".et-fb-button--save-draft, .et-fb-button--publish").on("click",(function(){e.savePost(),e.saveRedirection(),e.saveSchemas()})),Object(p.addFilter)("et.builder.store.setting.update","rank-math",(function(t,n){if(t)switch(n){case"et_pb_post_settings_title":e.setTitle(t),e.subscriber();break;case"et_pb_post_settings_excerpt":e.setExcerpt(t),e.subscriber();break;case"et_pb_post_settings_image":e.setFeaturedImage(parseInt(t)),e.subscriber()}return t})),window.addEventListener("message",(function(t){"et_fb_section_content_change"===t.data.etBuilderEvent&&e.subscriber()}))}},{key:"refresh",value:function(){var e=Qn({},this._data);this._data=this.collectPostData(),this.handleEditorChange(e),!Object(oe.isEqual)(e,this._data)&&e.id&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"savePost",value:function(){var e=Object(c.select)("rank-math").getDirtyMetadata();Object(oe.isEmpty)(e)||(l()({method:"POST",path:"/wp-json/rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:e}}).then((function(e){Object(oe.isString)(e)&&Object(c.dispatch)("rank-math").updatePermalink(e)})),Object(c.dispatch)("rank-math").resetDirtyMetadata())}},{key:"saveRedirection",value:function(){var e=Object(c.select)("rank-math").getRedirectionItem();Object(oe.isEmpty)(e)||(e.objectID=this.getPostID(),e.redirectionSources=this.getPermalink(),l()({method:"POST",path:"/wp-json/rankmath/v1/updateRedirection",data:e}).then((function(e){"delete"===e.action?Object(c.dispatch)("rank-math").updateRedirection("redirectionID",0):"new"===e.action&&Object(c.dispatch)("rank-math").updateRedirection("redirectionID",e.id)})),Object(c.dispatch)("rank-math").resetRedirection())}},{key:"saveSchemas",value:function(){var e=Object(c.select)("rank-math").getSchemas();if(!Object(oe.isEmpty)(e)&&!Object(oe.isEqual)(e,Object(oe.get)(rankMath,"schemas",{}))){var t=Object(c.select)("rank-math").getEditSchemas();l()({method:"POST",path:"/wp-json/rankmath/v1/updateSchemas",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,schemas:e}}).then((function(n){if(!Object(oe.isEmpty)(n)){var r=Qn({},e),a=Qn({},t);Object(oe.map)(n,(function(e,t){r["schema-"+e]=Qn({},r[t]),a["schema-"+e]=Qn({},a[t]),delete r[t],delete a[t]})),Object(c.dispatch)("rank-math").updateSchemas(r),Object(c.dispatch)("rank-math").updateEditSchemas(a)}}))}}},{key:"handleEditorChange",value:function(e){var t=this,n={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(oe.isInteger)(e.id))return this.initialize?void Object(oe.forEach)(n,(function(n,r){t._data[r]!==e[r]&&t[n](t._data[r])})):(this.initialize=!0,Object(oe.forEach)(n,(function(e,n){t[e](t._data[n])})),void rankMathEditor.refresh("init"));Object(c.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(e){Object(c.dispatch)("rank-math").updatePostID(e),Object(c.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){x.setVariable("title",e),Object(c.dispatch)("rank-math").updateSerpTitle(Object(c.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){x.setVariable("excerpt",e),x.setVariable("excerpt_only",e),x.setVariable("wc_shortdesc",e),x.setVariable("seo_description",e),Object(c.dispatch)("rank-math").updateSerpDescription(Object(c.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(e){Object(c.dispatch)("rank-math").updateFeaturedImage(e),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(c.dispatch)("rank-math").updateSerpDescription(Object(c.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&er(t.prototype,n),r&&er(t,r),e}(),nr=n(7),rr=n.n(nr),ar=function(){return wp.element.createElement("span",{className:"rank-math-rm-modal-toggle-button-icon",style:{display:"block",fill:"rgb(255, 255, 255)",width:"0px",height:"0px",marginTop:"-10px",marginLeft:"-1px"}},wp.element.createElement("svg",{viewBox:"0 0 462.03 462.03",xmlns:"http://www.w3.org/2000/svg",width:"20"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z"}),wp.element.createElement("path",{d:"m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z"}))))},ir=function(){return wp.element.createElement("button",{type:"button","data-tip":"Rank Math SEO",onClick:function(){Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!Object(c.select)("rank-math").isDiviRankMathModalActive())},className:rr()("rank-math-rm-modal-toggle-button","et_fb_ignore_iframe","et-fb-button","et-fb-button--elevate","et-fb-button--primary","et-fb-button--round","et-fb-button--Tooltip"),style:{width:"40px",height:"40px"}},wp.element.createElement(ar,null))},or=function(){return wp.element.createElement("div",{className:"rank-math-rm-settings-bar"},wp.element.createElement(ir,null))};function lr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return cr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function cr(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}var sr={init:function(){this.cacheProps(),this.toggleBodyClasses(),this.initSettingsBar(),this.addEventListeners()},cacheProps:function(){this.$document=D()(document),this.$body=D()("body"),this.rmModalHiddingTimer=null,this.rmPrevModalActiveState=!1,this.rmSettingsBarMediaQuery=window.matchMedia("(min-width: 768px)"),this.rmSettingsBarRootSelector="#rank-math-rm-settings-bar-root",this.$rmSettingsBarRoot=D()(this.rmSettingsBarRootSelector).detach(),this.$etPageSettingsBar=D()(".et-fb-page-settings-bar"),this.$etPageSettingsBarToggleButton=this.$etPageSettingsBar.find(".et-fb-page-settings-bar__toggle-button"),this.$etPageSettingsBarColumn=this.$etPageSettingsBar.find(".et-fb-page-settings-bar__column"),this.etSettingsBarObserver=new MutationObserver(this.onEtSettingsBarClassAttrChange.bind(this))},toggleBodyClasses:function(){var e=this.isEtSettingsBarActive();this.$body.toggleClass("rank-math-et-settings-bar-is-active",e),this.$body.toggleClass("rank-math-et-settings-bar-is-inactive",!e)},initSettingsBar:function(){var e=this.getEtSettingsBarPosition();this.onRmSettingsBarMediaQueryChange(),Object(u.render)(Object(u.createElement)(or),this.$rmSettingsBarRoot[0]),this.removePositionalClassNames(this.$body,"rank-math-et-settings-bar-is"),this.$body.addClass("rank-math-et-settings-bar-is-".concat(e)),this.attachRmSettingsBar(e)},addEventListeners:function(){this.$document.on("click",this.onDocumentClick.bind(this)),this.rmSettingsBarMediaQuery.addListener(this.onRmSettingsBarMediaQueryChange.bind(this)),this.etSettingsBarObserver.observe(this.$etPageSettingsBar[0],{attributeFilter:["class"]})},onDocumentClick:function(e){this.hideModalOnOutsideClick(e.target)},onRmSettingsBarMediaQueryChange:function(){this.detachRmSettingsBar(),this.attachRmSettingsBar(this.getEtSettingsBarPosition())},onEtSettingsBarClassAttrChange:function(){var e=this.isEtSettingsBarActive(),t=this.getEtSettingsBarPosition();this.removePositionalClassNames(this.$body,"rank-math-et-settings-bar-is"),this.$body.addClass("rank-math-et-settings-bar-is-".concat(t)),Object(c.dispatch)("rank-math").toggleIsDiviPageSettingsBarActive(e),this.toggleBodyClasses(),this.detachRmSettingsBar(),this.isEtSettingsBarDragged()?(this.rmPrevModalActiveState=Object(c.select)("rank-math").isDiviRankMathModalActive(),this.rmPrevModalActiveState&&(this.rmModalHiddingTimer=setTimeout((function(){Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}),200))):(clearTimeout(this.rmModalHiddingTimer),this.attachRmSettingsBar(t),Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(this.rmPrevModalActiveState||Object(c.select)("rank-math").isDiviRankMathModalActive()),this.rmPrevModalActiveState=!1)},attachRmSettingsBar:function(e){this.isRmSettingsBarAttached()||(this.toggleRmSettingsBarClassNames(e),this.isEtSettingsBarActive()?this.rmSettingsBarMediaQuery.matches?this.$etPageSettingsBarColumn.filter(".et-fb-page-settings-bar__column--main").append(this.$rmSettingsBarRoot):this.$etPageSettingsBarColumn.filter(".et-fb-page-settings-bar__column--left").prepend(this.$rmSettingsBarRoot):this.$etPageSettingsBarToggleButton.after(this.$rmSettingsBarRoot))},detachRmSettingsBar:function(){this.isRmSettingsBarAttached()&&(this.$rmSettingsBarRoot=this.$etPageSettingsBar.find(this.rmSettingsBarRootSelector).detach())},toggleRmSettingsBarClassNames:function(e){this.removePositionalClassNames(this.$rmSettingsBarRoot),this.$rmSettingsBarRoot.addClass("rank-math-rm-settings-bar-root-".concat(e)),this.$rmSettingsBarRoot.toggleClass(["rank-math-rm-settings-bar-root-is-mobile","rank-math-rm-settings-bar-root-is-mobile-".concat(e)].join(" "),!this.rmSettingsBarMediaQuery.matches),this.$rmSettingsBarRoot.toggleClass(["rank-math-rm-settings-bar-root-is-desktop","rank-math-rm-settings-bar-root-is-desktop-".concat(e)].join(" "),this.rmSettingsBarMediaQuery.matches)},isRmSettingsBarAttached:function(){return D.a.contains(document.documentElement,this.$rmSettingsBarRoot[0])},isEtSettingsBarActive:function(){return this.$etPageSettingsBar.hasClass("et-fb-page-settings-bar--active")},isEtSettingsBarDragged:function(){return this.$etPageSettingsBar.hasClass("et-fb-page-settings-bar--dragged")&&!this.isEtSettingsBarActive()},removePositionalClassNames:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=["".concat(t,"-left"),"".concat(t,"-right"),"".concat(t,"-top"),"".concat(t,"-top-left"),"".concat(t,"-top-right"),"".concat(t,"-bottom"),"".concat(t,"-bottom-left"),"".concat(t,"-bottom-right")].join("|"),r=new RegExp("(".concat(n,")$"),"gim");e.removeClass((function(e,t){var n,a=[],i=lr(t.split(" "));try{for(i.s();!(n=i.n()).done;){var o=n.value;r.test(o)&&a.push(o)}}catch(e){i.e(e)}finally{i.f()}return a}))},getEtSettingsBarPosition:function(){var e=this.$etPageSettingsBar;return e.hasClass("et-fb-page-settings-bar--horizontal")&&!e.hasClass("et-fb-page-settings-bar--top")?"bottom":e.hasClass("et-fb-page-settings-bar--top")&&!e.hasClass("et-fb-page-settings-bar--corner")?"top":e.hasClass("et-fb-page-settings-bar--bottom-corner")?e.hasClass("et-fb-page-settings-bar--left-corner")?"bottom-left":"bottom-right":e.hasClass("et-fb-page-settings-bar--top-corner")?e.hasClass("et-fb-page-settings-bar--left-corner")?"top-left":"top-right":e.hasClass("et-fb-page-settings-bar--vertical--right")?"right":e.hasClass("et-fb-page-settings-bar--vertical--left")?"left":""},hideModalOnOutsideClick:function(e){if(Object(c.select)("rank-math").isDiviRankMathModalActive()){var t=".rank-math-rm-modal";e.closest(t)||e.closest(".components-modal__screen-overlay.rank-math-modal-overlay")||e.contains(document.querySelector(t))||Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}}},ur=Object(c.withSelect)((function(e){return{primaryTermId:e("rank-math").getPrimaryTermID()}}))((function(e){var t=e.taxonomySlug,n=e.primaryTermId,r=e.options;if(r.length<2||!t)return null;return wp.element.createElement(m.SelectControl,{className:"rank-math-primary-term-select",label:Object(Ve.__)("Select Primary Term","rank-math"),value:n,options:r,onChange:function(e){Object(c.dispatch)("rank-math").updatePrimaryTermID(parseInt(e),t)}})}));function pr(e,t,n,r,a,i,o){try{var l=e[i](o),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,a)}function mr(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){pr(i,r,a,o,l,"next",e)}function l(e){pr(i,r,a,o,l,"throw",e)}o(void 0)}))}}function dr(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,r.key,r)}}var hr=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),D()(document).on("click",".et-fb-button--toggle-setting",(function(){clearTimeout(t.initRecursionTimer),t.attemptsRun=0,t.init.call(t)}))}var t,n,r,a,i;return t=e,(n=[{key:"init",value:(i=mr(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==this.hasPostPrimaryTaxonomySupport){e.next=3;break}return e.next=3,this.cacheTaxonomyData();case 3:if(this.hasPostPrimaryTaxonomySupport){e.next=5;break}return e.abrupt("return");case 5:if(this.attemptsRun++,!(this.attemptsRun>this.maxAttempts)){e.next=8;break}return e.abrupt("return");case 8:this.cacheDom()?(this.renderContainer(),this.renderComponent(),this.bindEvents()):this.initRecursionTimer=setTimeout(this.init.bind(this),this.attemptInterval);case 10:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"cacheTaxonomyData",value:(a=mr(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object(oe.get)(rankMath,"assessor.primaryTaxonomy.name")||"",n=Object(oe.get)(ETBuilderBackendDynamic,"getTaxonomies",{}),this.primaryTaxonomyTerms=n[t]||[],e.next=4,l()({path:"/wp-json/wp/v2/taxonomies"}).then((function(e){r.primaryTaxonomy=Object.keys(n).includes(t)&&e[t]?e[t]:{}}));case 4:this.hasPostPrimaryTaxonomySupport=!D.a.isEmptyObject(this.primaryTaxonomy),this.primaryTaxonomyValue=Object(oe.get)(ETBuilderBackendDynamic,"pageSettingsValues.et_pb_post_settings_".concat(this.primaryTaxonomy.rest_base),"");case 6:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"cacheDom",value:function(){return this.$diviSettingsModal=D()(document).find(".et-fb-modal__page-settings"),!!this.$diviSettingsModal.length&&(this.$diviTermSettingInputs=this.$diviSettingsModal.find(".et-fb-option--".concat(this.primaryTaxonomy.rest_base)),this.$diviTermSettingArea=this.$diviTermSettingInputs.parents(".et-fb-form__group"),this.$diviTermSettingArea.length||(this.$diviTermSettingArea=this.workaroundForFalseDiviTaxonomySelector()),this.$PrimaryTermSelectContainer=D()('<div id="rank-math-primary-term-input" />'),!0)}},{key:"workaroundForFalseDiviTaxonomySelector",value:function(){var e=this.primaryTaxonomy.name.toLowerCase();return this.$diviSettingsModal.find(".et-fb-form__label-text").filter((function(t,n){return D()(n).text().toLowerCase()===e})).parents(".et-fb-form__group")}},{key:"renderContainer",value:function(){this.$diviTermSettingArea.after(this.$PrimaryTermSelectContainer)}},{key:"renderComponent",value:function(e){var t={taxonomySlug:this.primaryTaxonomy.slug,options:this.formatActiveTerms(e)};Object(u.render)(Object(u.createElement)(ur,t),this.$PrimaryTermSelectContainer[0])}},{key:"bindEvents",value:function(){var e=this;Object(p.addFilter)("et.builder.store.setting.update","rank-math",(function(t,n){return"et_pb_post_settings_".concat(e.primaryTaxonomy.rest_base)===n&&e.renderComponent(t),t}))}},{key:"formatActiveTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.primaryTaxonomyValue;return this.primaryTaxonomyTerms.length&&t.trim()?t.split(",").map((function(t){var n=Object(oe.find)(e.primaryTaxonomyTerms,["term_id",parseInt(t)])||{};return{label:n.name,value:n.term_id}})):[]}}])&&dr(t.prototype,n),r&&dr(t,r),e}();hr.initRecursionTimer=void 0,hr.attemptsRun=0,hr.maxAttempts=10,hr.attemptInterval=1e3;var fr=n(6);function gr(e){return(gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var br=["tabId","onClick","children","selected"];function wr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vr(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,r.key,r)}}function kr(e,t){return(kr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Or(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=Er(e);if(t){var a=Er(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _r(this,n)}}function _r(e,t){return!t||"object"!==gr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Er(e){return(Er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jr(){return(jr=Object.assign||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}).apply(this,arguments)}function Tr(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(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)&&(a[n]=e[n])}return a}var Sr=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=Tr(e,br);return wp.element.createElement(m.Button,jr({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},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}}),t&&kr(e,t)}(i,e);var t,n,r,a=Or(i);function i(){var e;yr(this,i),(e=a.apply(this,arguments)).handleClick=function(t){var n=e.props.onSelect,r=void 0===n?oe.noop:n;e.setState({selected:t}),r(t)},e.onNavigate=function(e,t){t.click()},e.toggle=function(){e.setState((function(e){return{isOpen:!e.isOpen}}))};var t=e.props,n=t.tabs,r=t.initialTabName;return e.state={isOpen:!1,selected:r||(n.length>0?n[0].name:null)},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,o=n.instanceId,l=n.orientation,c=void 0===l?"horizontal":l,s=n.tabs,u=Object(oe.find)(s,{name:t}),p=o+"-"+u.name,d=s.slice(4);return wp.element.createElement("div",{className:i},wp.element.createElement(m.NavigableMenu,{role:"tablist",orientation:c,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},s.slice(0,4).map((function(n){return wp.element.createElement(Sr,{className:rr()("components-tab-panel__tabs-item",n.className,wr({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(oe.partial)(e.handleClick,n.name)},n.title)})),!Object(oe.isEmpty)(d)&&wp.element.createElement(m.Button,{onClick:this.toggle,"aria-expanded":this.state.isOpen,className:rr()("components-tab-panel__tabs-item",{active:this.state.isOpen})},wp.element.createElement("i",{className:"rm-icon rm-icon-plus"}),wp.element.createElement("span",null,"More")),this.state.isOpen&&wp.element.createElement("div",{className:"rank-math-extra-menu"},d.map((function(n){return wp.element.createElement(Sr,{className:rr()("components-tab-panel__tabs-item",n.className,wr({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(oe.partial)(e.handleClick,n.name)},n.title)})))),u&&wp.element.createElement("div",{"aria-labelledby":p,role:"tabpanel",id:p+"-view",className:"components-tab-panel__tab-content"},this.props.children(u)))}}])&&vr(t.prototype,n),r&&vr(t,r),i}(u.Component),Cr=Object(fr.withInstanceId)(Ir);function Dr(e,t,n){var r=0;return!1!==Object(oe.get)(n,"pixelWidth",!1)&&(r=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),r)+"%"}function Pr(e,t){return e<=t.min||e>t.max}function xr(e,t){return e<=t.minWidth||e>t.pixelWidth}var Ar=function(e){var t=function(e,t){var n=ce(e).length,r=0,a=!1;if(!1!==Object(oe.get)(t,"pixelWidth",!1)){a=!0;var i=document.createTextNode(e),o=document.createElement("span");o.appendChild(i),o.id="rank-math-width-tester",o.className=t.widthCheckerClass;var l=document.body.appendChild(o);r=document.getElementById("rank-math-width-tester").offsetWidth,l.outerHTML=""}return{left:Dr(n,r,t),isInvalid:Pr(n,t),isInvalidWidth:!!a&&xr(r,t),count:n+" / "+t.max,pixelWidth:a?r+"px / "+t.pixelWidth+"px":""}}(e.source,e),n=t.pixelWidth?" (".concat(t.pixelWidth,")"):"";return wp.element.createElement("span",{className:rr()("length-indicator-wrapper",{invalid:t.isInvalid})},wp.element.createElement("span",{className:"length-count"},t.count,n),wp.element.createElement("span",{className:"length-indicator"},wp.element.createElement("span",{style:{left:t.left}})))},Rr=n(30),Nr=n(31),Mr=n.n(Nr),Fr=function(e){var t=e.tags,n=e.components,r=e.children;return n=n||{},!1===Object(oe.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),Mr()({mixedString:r,components:n})};function Ur(e){return(Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Br(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,r.key,r)}}function Lr(e,t){return(Lr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hr(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=Kr(e);if(t){var a=Kr(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return zr(this,n)}}function zr(e,t){return!t||"object"!==Ur(t)&&"function"!=typeof t?Gr(e):t}function Gr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kr(e){return(Kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $r=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}}),t&&Lr(e,t)}(i,e);var t,n,r,a=Hr(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).state={},t.state.variables=t.getFiltered(),t.state.filtered=t.state.variables,t.state.display="none",t.state.isOpen=!1,t.handleOutsideClick=t.handleOutsideClick.bind(Gr(t)),t}return t=i,(n=[{key:"getFiltered",value:function(){var e=this.props.exclude,t=Object.values(rankMath.variables);return Object(oe.isUndefined)(e)?t:t.filter((function(t){return!e.includes(t.variable)}))}},{key:"render",value:function(){var e=this;return wp.element.createElement(u.Fragment,null,wp.element.createElement("div",{className:"rank-math-variables-dropdown",style:{display:this.state.display},ref:function(t){e.node=t}},wp.element.createElement(m.TextControl,{autoComplete:"off",placeholder:Object(Rr.decodeEntities)(Object(Ve.__)("Search &hellip;","rank-math")),onChange:function(t){e.handleSearch(t)}}),wp.element.createElement("ul",null,this.state.filtered.map((function(t,n){return wp.element.createElement("li",{key:n,"data-var":t.variable,role:"presentation",onClick:function(){e.props.onClick(t)}},wp.element.createElement("strong",null,t.name),wp.element.createElement("span",null,wp.element.createElement(Fr,{tags:"strong"},t.description.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"))))}),this))),wp.element.createElement(m.Button,{icon:"arrow-down-alt2",onClick:function(){e.toggle()}}))}},{key:"toggle",value:function(){this.state.isOpen?document.removeEventListener("click",this.handleOutsideClick,!1):document.addEventListener("click",this.handleOutsideClick,!1),this.setState({display:this.state.isOpen?"none":"block",isOpen:!this.state.isOpen})}},{key:"handleOutsideClick",value:function(e){this.node.contains(e.target)||this.toggle()}},{key:"handleSearch",value:function(e){var t=e.toLowerCase();2>t.length?this.setState({filtered:this.state.variables}):this.setState({filtered:this.state.variables.filter((function(e){return-1!==Object.values(e).join(" ").toLowerCase().indexOf(t)}))})}}])&&Br(t.prototype,n),r&&Br(t,r),i}(u.Component),Vr=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{title:t.getTitle(),serpTitle:t.getSerpTitle()}})),Object(c.withDispatch)((function(e){return{updateTitle:function(t){e("rank-math").updateSerpTitle(t),e("rank-math").updateTitle(t)}}})))((function(e){var t=e.title,n=e.serpTitle,r=e.updateTitle;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-title"},Object(Ve.__)("Title","rank-math")),wp.element.createElement(Ar,{source:n,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(m.TextControl,{id:"rank-math-editor-title",value:t,placeholder:rankMath.assessor.serpData.titleTemplate,help:Object(Ve.__)("This is what will appear in the first line when this post shows up in the search results.","rank-math"),onChange:r}),wp.element.createElement($r,{exclude:["seo_title","seo_description"],onClick:function(e){return r(t+" %"+e.variable+"%")}})))})),Wr=n(15),Yr=Object(fr.compose)(Object(c.withSelect)((function(){var e=rankMathEditor.assessor.dataCollector;return{permalink:e.getSlug(),serpPermalink:e.getPermalink()}})),Object(c.withDispatch)((function(){return{updatePermalink:function(e){rankMathEditor.updatePermalink(I.Helpers.sanitizeText(e))},updatePermalinkSanitize:function(e){rankMathEditor.updatePermalinkSanitize(I.Helpers.sanitizeText(e))}}})))((function(e){var t=e.permalink,n=e.serpPermalink,r=e.updatePermalink,a=e.updatePermalinkSanitize;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-permalink"},Object(Ve.__)("Permalink","rank-math")),wp.element.createElement(Ar,{source:Object(Wr.safeDecodeURIComponent)(n),min:5,max:75}),wp.element.createElement(m.TextControl,{id:"rank-math-editor-permalink",value:rankMath.is_front_page?"/":Object(Wr.safeDecodeURIComponent)(t),onChange:r,help:rankMath.is_front_page?Object(Ve.__)("Editing Homepage permalink is not possible.","rank-math"):Object(Ve.__)("This is the unique URL of this page, displayed below the post title in the search results.","rank-math"),disabled:rankMath.is_front_page?"disabled":"",onBlur:function(e){a(e.target.value)}}))})),qr=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{description:t.getDescription(),serpDescription:t.getSerpDescription()}})),Object(c.withDispatch)((function(e){return{updateDescription:function(t){e("rank-math").updateSerpDescription(t),e("rank-math").updateDescription(t)}}})))((function(e){var t=e.description,n=e.serpDescription,r=e.updateDescription;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-description"},Object(Ve.__)("Description","rank-math")),wp.element.createElement(Ar,{source:n,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(m.TextareaControl,{id:"rank-math-editor-description",value:ce(t),placeholder:n||rankMath.assessor.serpData.descriptionTemplate,help:Object(Ve.__)("This is what will appear as the description when this post shows up in the search results.","rank-math"),onChange:r}),wp.element.createElement($r,{exclude:["seo_title","seo_description"],onClick:function(e){return r(t+" %"+e.variable+"%")}})))})),Qr=Object(fr.compose)(Object(c.withSelect)((function(e){return{type:e("rank-math").getSnippetPreviewType()}})),Object(c.withDispatch)((function(e,t){return{updatePreviewType:function(n){e("rank-math").updateSnippetPreviewType(n===t.type?"":n)}}})))((function(e){var t=e.type,n=e.updatePreviewType,r=rr()("button button-secondary button-small",{active:"desktop"===t}),a=rr()("button button-secondary button-small",{active:"mobile"===t});return wp.element.createElement("div",{className:"rank-math-button-devices alignright"},wp.element.createElement("div",{onClick:function(){return n("desktop")},className:r},wp.element.createElement("i",{className:"rm-icon rm-icon-desktop"})),wp.element.createElement("div",{onClick:function(){return n("mobile")},className:a},wp.element.createElement("i",{className:"rm-icon rm-icon-mobile"})))})),Zr=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"},Jr=Object(c.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Zr(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))})),Xr=function(e,t,n,r){return Object(oe.isUndefined)(t)?t:(t=Object(oe.truncate)(t,{length:n,separator:r||" "}),""===e?t:t.replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"})))},ea=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(m.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},ta=Object(c.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(oe.find)(t,(function(e){return!Object(oe.isEmpty)(e.metadata.isPrimary)}))}}))((function(e){var t=e.schema;if(Object(oe.isEmpty)(t))return null;var n=Object(oe.get)(t,"review.reviewRating",{}),r=n.ratingValue;if(Object(oe.isEmpty)(r))return null;Object(oe.get)(n,"worstRating",1);var a=Object(oe.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},ea(a,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},ea(n,"filled"))}(r,0,a)),wp.element.createElement("span",{className:"serp-rating-label"},Object(Ve.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},r))}));function na(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ra=Object(c.withSelect)((function(e){var t=e("rank-math"),n=t.getRobots();return{title:t.getSerpTitle(),permalink:rankMathEditor.assessor.dataCollector.getPermalink(),description:t.getSerpDescription(),previewType:t.getSnippetPreviewType(),isNoIndex:"noindex"in n,keyword:t.getSelectedKeyword().data.value}}))((function(e){var t,n=e.title,r=e.permalink,a=e.description,i=e.previewType,o=void 0===i?"desktop":i,l=e.isNoIndex,c=e.keyword,s=e.onClick,u=e.showScore,p=void 0===u||u,m=e.showDevices,d=void 0!==m&&m,h=rr()("serp-preview",(na(t={"expanded-preview":""!==o},"".concat(o,"-preview"),""!==o&&d),na(t,"noindex-preview",l),t)),f=rankMathEditor.assessor.getResearch("slugify")(c);return wp.element.createElement("div",{className:h},wp.element.createElement("div",{className:"serp-preview-title","data-title":Object(Ve.__)("Preview","rank-math"),"data-desktop":Object(Ve.__)("Desktop Preview","rank-math"),"data-mobile":Object(Ve.__)("Mobile Preview","rank-math")},p&&wp.element.createElement(Jr,null)," ",d&&wp.element.createElement(Qr,null)),wp.element.createElement("div",{className:"serp-preview-wrapper"},wp.element.createElement("div",{className:"serp-preview-bg"},wp.element.createElement("div",{className:"serp-preview-input"},wp.element.createElement("input",{type:"text",value:c||Object(Ve.__)("Rank Math","rank-math"),disabled:!0}),wp.element.createElement("span",{className:"serp-icon-search"},wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))),wp.element.createElement("span",{className:"serp-icon-mic"})),wp.element.createElement("div",{className:"serp-preview-menus"},wp.element.createElement("ul",null,wp.element.createElement("li",{className:"current"},wp.element.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxwYXRoIGZpbGw9IiMzNEE4NTMiIGQ9Ik0xMCAydjJhNiA2IDAgMCAxIDYgNmgyYTggOCAwIDAgMC04LTh6Ii8+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTEwIDRWMmE4IDggMCAwIDAtOCA4aDJjMC0zLjMgMi43LTYgNi02eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDQiIGQ9Ik00IDEwSDJhOCA4IDAgMCAwIDggOHYtMmMtMy4zIDAtNi0yLjY5LTYtNnoiLz48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMjIgMjAuNTlsLTUuNjktNS42OUE3Ljk2IDcuOTYgMCAwIDAgMTggMTBoLTJhNiA2IDAgMCAxLTYgNnYyYzEuODUgMCAzLjUyLS42NCA0Ljg4LTEuNjhsNS42OSA1LjY5TDIyIDIwLjU5eiIvPjwvc3ZnPgo=",alt:"","data-atf":"1"}),Object(Ve.__)("All","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M14 13l4 5H6l4-4 1.79 1.78L14 13zm-6.01-2.99A2 2 0 0 0 8 6a2 2 0 0 0-.01 4.01zM22 5v14a3 3 0 0 1-3 2.99H5c-1.64 0-3-1.36-3-3V5c0-1.64 1.36-3 3-3h14c1.65 0 3 1.36 3 3zm-2.01 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h7v-.01h7a1 1 0 0 0 1-1V5z"}))," ",Object(Ve.__)("Images","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{clipRule:"evenodd",d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{clipRule:"evenodd",d:"M10 16.5l6-4.5-6-4.5v9zM5 20h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1zm14.5 2H5a3 3 0 0 1-3-3V4.4A2.4 2.4 0 0 1 4.4 2h15.2A2.4 2.4 0 0 1 22 4.4v15.1a2.5 2.5 0 0 1-2.5 2.5z",fillRule:"evenodd"}))," ",Object(Ve.__)("Videos","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M12 11h6v2h-6v-2zm-6 6h12v-2H6v2zm0-4h4V7H6v6zm16-7.22v12.44c0 1.54-1.34 2.78-3 2.78H5c-1.64 0-3-1.25-3-2.78V5.78C2 4.26 3.36 3 5 3h14c1.64 0 3 1.25 3 2.78zM19.99 12V5.78c0-.42-.46-.78-1-.78H5c-.54 0-1 .36-1 .78v12.44c0 .42.46.78 1 .78h14c.54 0 1-.36 1-.78V12zM12 9h6V7h-6v2z"}))," ",Object(Ve.__)("News","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))," ","More")),wp.element.createElement("ul",{className:"menus-right"},wp.element.createElement("li",null,Object(Ve.__)("Settings","rank-math")),wp.element.createElement("li",null,Object(Ve.__)("Tools","rank-math")))),wp.element.createElement("div",{className:"serp-preview-result-stats"},Object(Ve.__)("About 43,700,000 results (0.32 seconds) ","rank-math"))),wp.element.createElement("div",{className:"serp-preview-body",role:"button",tabIndex:0,onClick:function(){s&&s()}},wp.element.createElement("div",{className:"group"},wp.element.createElement("img",{src:rankMath.siteFavIcon,width:"16",height:"16",className:"serp-preview-favicon",alt:""}),wp.element.createElement("div",{className:"serp-url",dangerouslySetInnerHTML:{__html:Xr(f,I.Helpers.sanitizeText(Object(Wr.safeDecodeURIComponent)(r)),75,/-? +/)}})),wp.element.createElement("div",{className:"group"},wp.element.createElement("h5",{className:"serp-title",dangerouslySetInnerHTML:{__html:Xr(c,I.Helpers.sanitizeText(n),60)}})),wp.element.createElement(ta,null),wp.element.createElement("div",{className:"group"},wp.element.createElement("div",{className:"serp-description",dangerouslySetInnerHTML:{__html:Xr(c,I.Helpers.sanitizeText(a),160)}}))),wp.element.createElement("div",{className:"serp-preview-noindex"},wp.element.createElement("h3",null,Object(Ve.__)("Noindex robots meta is enabled","rank-math")),wp.element.createElement("p",null,Object(Ve.__)("This page will not appear in search results. You can disable noindex in the Advanced tab.","rank-math")))))})),aa=Object(c.withSelect)((function(e){return{isNoIndex:"noindex"in e("rank-math").getRobots()}}))((function(){return wp.element.createElement("div",{className:"rank-math-editor-general"},wp.element.createElement(ra,{showScore:!1,showDevices:!0}),wp.element.createElement(Vr,null),wp.element.createElement(Yr,null),wp.element.createElement(qr,null))})),ia=function(e){var t=rr()("rank-math-social-preview","rank-math-social-preview-"+e.network,e.cardType);return wp.element.createElement("div",{className:t},wp.element.createElement("div",{className:"rank-math-social-preview-item"},wp.element.createElement("div",{className:"rank-math-social-preview-meta"},wp.element.createElement("div",{className:"social-profile-image"}),e.children),wp.element.createElement("div",{className:"rank-math-social-preview-item-wrapper"},wp.element.createElement("div",{className:"rank-math-social-preview-image"},wp.element.createElement("img",{className:"rank-math-social-image-thumbnail",src:e.image,alt:""}),e.hasOverlay&&e.imageOverlay&&wp.element.createElement("img",{src:rankMath.overlayImages[e.imageOverlay].url,className:"rank-math-social-preview-image-overlay overlay-position-"+rankMath.overlayImages[e.imageOverlay].position,alt:""})),wp.element.createElement("div",{className:"rank-math-social-preview-caption"},"facebook"===e.network&&wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},e.siteurl),wp.element.createElement("h3",{className:"rank-math-social-preview-title"},e.title?x.swap(e.title):e.serpTitle),wp.element.createElement("p",{className:"rank-math-social-preview-description"},e.description?x.swap(e.description):e.serpDescription),"twitter"===e.network&&wp.element.createElement(u.Fragment,null,wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},wp.element.createElement(m.Dashicon,{icon:"admin-links"}),e.siteurl))))))},oa=n(32),la=function(e){return wp.element.createElement("div",{className:"components-base-control field-group"},wp.element.createElement(oa.MediaUpload,{allowedTypes:["image"],multiple:!1,value:e.imageID,render:function(t){var n=t.open;return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.Button,{onClick:n,className:"button",isPrimary:!0},e.imageID>0?Object(Ve.__)("Replace Image","rank-math"):Object(Ve.__)("Add Image","rank-math")),e.imageID>0&&wp.element.createElement(m.Button,{className:"button",isDestructive:!0,isLink:!0,onClick:e.removeImage},Object(Ve.__)("Remove Image","rank-math")))},onSelect:e.updateImage}),wp.element.createElement("p",{className:"components-base-control__help"},Object(Ve.__)("Upload at least 600x315px image. Recommended size is 1200x630px.","rank-math")),wp.element.createElement("div",{className:"notice notice-warning inline hidden"},wp.element.createElement("p",null,Object(Ve.__)("Image is smaller than the minimum size, please select a different image.","rank-math"))))};function ca(){var e=rankMath.overlayImages,t=[];return Object.keys(e).forEach((function(n){t.push({label:e[n].name,value:n})})),t}function sa(){return(sa=Object.assign||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}).apply(this,arguments)}var ua=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math"),n=function(){if(t.getFacebookImage())return t.getFacebookImage();var e=t.getFeaturedImage();return Object(oe.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{title:t.getFacebookTitle(),description:t.getFacebookDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getFacebookAuthor(),image:n,imageID:t.getFacebookImageID(),hasOverlay:t.getFacebookHasOverlay(),imageOverlay:t.getFacebookImageOverlay()}})),Object(c.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateFacebookImage(""),e("rank-math").updateFacebookImageID(0),e("rank-math").updateFacebookHasOverlay(!1)},updateImage:function(t){e("rank-math").updateFacebookImage(t.url),e("rank-math").updateFacebookImageID(t.id)},updateTitle:function(t){e("rank-math").updateFacebookTitle(t)},updateDescription:function(t){e("rank-math").updateFacebookDescription(t)},updateImageOverlay:function(t){e("rank-math").updateFacebookImageOverlay(t)},toggleOverlay:function(t){e("rank-math").updateFacebookHasOverlay(t)}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(ia,sa({},e,{network:"facebook",siteurl:rankMath.parentDomain}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName),wp.element.createElement("div",{className:"social-time"},wp.element.createElement("span",null,Object(Ve.__)("2 hrs","rank-math")),wp.element.createElement("span",null,wp.element.createElement(m.Dashicon,{icon:"admin-site",size:"12"})))),wp.element.createElement("div",{className:"notice notice-alt notice-info components-base-control"},wp.element.createElement("p",null,Object(Ve.__)("Customize the title, description and images of your post used while sharing on Facebook and Twitter.","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/kb/meta-box-social-tab/?utm_source=Plugin&utm_medium=Gutenberg%20Social%20Tab&utm_campaign=WP",target:"_blank",rel:"noreferrer noopener"},Object(Ve.__)("Read more","rank-math")))),wp.element.createElement(la,e),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.TextControl,{label:Object(Ve.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.TextareaControl,{label:Object(Ve.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.ToggleControl,{label:Object(Ve.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(m.SelectControl,{value:e.imageOverlay,label:Object(Ve.__)("Icon overlay","rank-math"),options:ca(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(Ve.__)("Please be careful with this option. Although this option will help increase CTR on Facebook, it might get you penalised if over-used.","rank-math"))))))})),pa=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{country:t.getTwitterAppCountry(),description:t.getTwitterAppDescription(),iphoneName:t.getTwitterAppIphoneName(),iphoneID:t.getTwitterAppIphoneID(),iphoneUrl:t.getTwitterAppIphoneUrl(),ipadName:t.getTwitterAppIpadName(),ipadID:t.getTwitterAppIpadID(),ipadUrl:t.getTwitterAppIpadUrl(),googleplayName:t.getTwitterAppGoogleplayName(),googleplayID:t.getTwitterAppGoogleplayID(),googleplayUrl:t.getTwitterAppGoogleplayUrl()}})),Object(c.withDispatch)((function(e){return{updateAppIphoneName:function(t){e("rank-math").updateTwitterAppIphoneName(t)},updateAppIphoneID:function(t){e("rank-math").updateTwitterAppIphoneID(t)},updateAppIphoneUrl:function(t){e("rank-math").updateTwitterAppIphoneUrl(t)},updateAppIpadName:function(t){e("rank-math").updateTwitterAppIpadName(t)},updateAppIpadID:function(t){e("rank-math").updateTwitterAppIpadID(t)},updateAppIpadUrl:function(t){e("rank-math").updateTwitterAppIpadUrl(t)},updateAppGoogleplayName:function(t){e("rank-math").updateTwitterAppGoogleplayName(t)},updateAppGoogleplayID:function(t){e("rank-math").updateTwitterAppGoogleplayID(t)},updateAppGoogleplayUrl:function(t){e("rank-math").updateTwitterAppGoogleplayUrl(t)},updateAppDescription:function(t){e("rank-math").updateTwitterAppDescription(t)},updateAppCountry:function(t){e("rank-math").updateTwitterAppCountry(t)}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.description,label:Object(Ve.__)("App Description","rank-math"),help:Object(Ve.__)("You can use this as a more concise description than what you may have on the app store. This field has a maximum of 200 characters. (optional)","rank-math"),onChange:e.updateAppDescription}),function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.iphoneName,label:Object(Ve.__)("iPhone App Name","rank-math"),help:Object(Ve.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIphoneName}),wp.element.createElement(m.TextControl,{value:e.iphoneID,label:Object(Ve.__)("iPhone App ID","rank-math"),help:Object(Ve.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIphoneID}),wp.element.createElement(m.TextControl,{value:e.iphoneUrl,label:Object(Ve.__)("iPhone App URL","rank-math"),help:Object(Ve.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIphoneUrl}))}(e),function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.ipadName,label:Object(Ve.__)("iPad App Name","rank-math"),help:Object(Ve.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIpadName}),wp.element.createElement(m.TextControl,{value:e.ipadID,label:Object(Ve.__)("iPad App ID","rank-math"),help:Object(Ve.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIpadID}),wp.element.createElement(m.TextControl,{value:e.ipadUrl,label:Object(Ve.__)("iPad App URL","rank-math"),help:Object(Ve.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIpadUrl}))}(e),function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.googleplayName,label:Object(Ve.__)("Google Play App Name","rank-math"),help:Object(Ve.__)("The name of your app to show.","rank-math"),onChange:e.updateAppGoogleplayName}),wp.element.createElement(m.TextControl,{value:e.googleplayID,label:Object(Ve.__)("Google Play App ID","rank-math"),help:Object(Ve.__)("Your app ID in the Google Play (.i.e. com.android.app)","rank-math"),onChange:e.updateAppGoogleplayID}),wp.element.createElement(m.TextControl,{value:e.googleplayUrl,label:Object(Ve.__)("Google Play App URL","rank-math"),help:Object(Ve.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppGoogleplayUrl}))}(e),wp.element.createElement(m.TextControl,{value:e.country,label:Object(Ve.__)("App Country","rank-math"),help:Object(Ve.__)("If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.","rank-math"),onChange:e.updateAppCountry}))})),ma=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{url:t.getTwitterPlayerUrl(),size:t.getTwitterPlayerSize(),stream:t.getTwitterPlayerStream(),ctype:t.getTwitterPlayerStreamCtype()}})),Object(c.withDispatch)((function(e){return{updatePlayerUrl:function(t){e("rank-math").updateTwitterPlayerUrl(t)},updatePlayerSize:function(t){e("rank-math").updateTwitterPlayerSize(t)},updatePlayerStreamUrl:function(t){e("rank-math").updateTwitterPlayerStreamUrl(t)},updatePlayerStreamCtype:function(t){e("rank-math").updateTwitterPlayerStreamCtype(t)}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TextControl,{value:e.url,label:Object(Ve.__)("Player URL","rank-math"),help:Object(Ve.__)("HTTPS URL to iFrame player. This must be a HTTPS URL which does not generate active mixed content warnings in a web browser. The audio or video player must not require plugins such as Adobe Flash.","rank-math"),onChange:e.updatePlayerUrl}),wp.element.createElement(m.TextControl,{value:e.size,label:Object(Ve.__)("Player Size","rank-math"),help:Object(Ve.__)("iFrame width and height, specified in pixels in the following format: 600x400.","rank-math"),onChange:e.updatePlayerSize}),wp.element.createElement(m.TextControl,{value:e.stream,label:Object(Ve.__)("Stream URL","rank-math"),help:Object(Ve.__)("Optional URL to raw stream that will be rendered in Twitter’s mobile applications directly. If provided, the stream must be delivered in the MPEG-4 container format (the .mp4 extension). The container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile (BP), Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile (LC).","rank-math"),onChange:e.updatePlayerStreamUrl}),wp.element.createElement(m.TextControl,{value:e.ctype,label:Object(Ve.__)("Stream Content Type","rank-math"),help:Object(Ve.__)("The MIME type/subtype combination that describes the content contained in twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are those defined in RFC 4337 (MIME Type Registration for MP4).","rank-math"),onChange:e.updatePlayerStreamCtype}))}));function da(){return(da=Object.assign||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}).apply(this,arguments)}var ha=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook(),r=function(){if(n&&t.getFacebookImage())return t.getFacebookImage();if(t.getTwitterImage())return t.getTwitterImage();var e=t.getFeaturedImage();return Object(oe.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{useFacebook:n,cardType:t.getTwitterCardType(),title:n?t.getFacebookTitle():t.getTwitterTitle(),description:n?t.getFacebookDescription():t.getTwitterDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getTwitterAuthor(),image:r,imageID:n?t.getFacebookImageID():t.getTwitterImageID(),hasOverlay:n?t.getFacebookHasOverlay():t.getTwitterHasOverlay(),imageOverlay:n?t.getFacebookImageOverlay():t.getTwitterImageOverlay()}})),Object(c.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateTwitterImage(""),e("rank-math").updateTwitterImageID(0),e("rank-math").updateTwitterHasOverlay(!1)},updateImage:function(t){e("rank-math").updateTwitterImage(t.url),e("rank-math").updateTwitterImageID(t.id)},updateTitle:function(t){e("rank-math").updateTwitterTitle(t)},updateDescription:function(t){e("rank-math").updateTwitterDescription(t)},updateImageOverlay:function(t){e("rank-math").updateTwitterImageOverlay(t)},toggleUseFacebook:function(t){e("rank-math").updateTwitterUseFacebook(t)},updateCardType:function(t){e("rank-math").updateTwitterCardType(t)},toggleOverlay:function(t){e("rank-math").updateTwitterHasOverlay(t)}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(ia,da({},e,{network:"twitter",siteurl:rankMath.parentDomain,classes:e.cardType,description:Object(oe.truncate)(e.description?e.description:e.serpDescription,{length:240,separator:" "})}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName,wp.element.createElement("span",{className:"social-username"},"@",e.author),wp.element.createElement("span",{className:"social-time"},Object(Ve.__)("2h","rank-math"))),wp.element.createElement("div",{className:"social-text"},Object(Ve.__)("The card for your website will look little something like this!","rank-math"))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.ToggleControl,{label:Object(Ve.__)("Use Data from Facebook Tab","rank-math"),checked:e.useFacebook,onChange:e.toggleUseFacebook})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.SelectControl,{value:e.cardType,label:Object(Ve.__)("Card Type","rank-math"),options:[{value:"summary_large_image",label:Object(Ve.__)("Summary Card with Large Image","rank-math")},{value:"summary_card",label:Object(Ve.__)("Summary Card","rank-math")},{value:"app",label:Object(Ve.__)("App Card","rank-math")},{value:"player",label:Object(Ve.__)("Player Card","rank-math")}],onChange:e.updateCardType})),"player"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(Ve.sprintf)(Object(Ve.__)("Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. Player Cards must be submitted for approval before they can be used. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/player",target:"blank"},"https://dev.twitter.com/cards/types/player"))),"app"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(Ve.sprintf)(Object(Ve.__)("The App Card is a great way to represent mobile applications on Twitter and to drive installs. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/app",target:"blank"}," https://dev.twitter.com/cards/types/app"))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement(la,e),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.TextControl,{label:Object(Ve.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.TextareaControl,{label:Object(Ve.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(m.ToggleControl,{label:Object(Ve.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(m.SelectControl,{value:e.imageOverlay,label:Object(Ve.__)("Icon overlay","rank-math"),options:ca(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(Ve.__)("Please be careful with this option. Although this option will help increase CTR on Twitter, it might get you penalised if over-used.","rank-math"))))),"player"===e.cardType&&wp.element.createElement(ma,null),"app"===e.cardType&&wp.element.createElement(pa,null))})),fa=function(){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.TabPanel,{className:"rank-math-editor-social",activeClass:"is-active",tabs:[{name:"facebook",title:wp.element.createElement(u.Fragment,null,wp.element.createElement(m.Dashicon,{icon:"facebook-alt"}),Object(Ve.__)("Facebook","rank-math")),view:ua,className:"button-facebook"},{name:"twitter",title:wp.element.createElement(u.Fragment,null,wp.element.createElement(m.Dashicon,{icon:"twitter"}),Object(Ve.__)("Twitter","rank-math")),view:ha,className:"button-twitter"}]},(function(e){return Object(u.createElement)(e.view)})))};function ga(e){return(ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ba(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,r.key,r)}}function wa(e,t){return(wa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ya(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=Oa(e);if(t){var a=Oa(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return va(this,n)}}function va(e,t){return!t||"object"!==ga(t)&&"function"!=typeof t?ka(e):t}function ka(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oa(e){return(Oa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _a=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}}),t&&wa(e,t)}(i,e);var t,n,r,a=ya(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=a.call(this))._handleRef=e._handleRef.bind(ka(e)),e}return t=i,(n=[{key:"componentDidMount",value:function(){var e=D()(this.component),t=e.find(".stars a"),n=e.find(".smiley");t.on("mouseenter",(function(){var e=D()(this).index();t.removeClass("highlighted"),t.slice(0,e+1).addClass("highlighted"),e<2?n.removeClass("normal happy").addClass("angry"):e>3?n.removeClass("normal angry").addClass("happy"):n.removeClass("happy angry").addClass("normal")}))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){for(var e=this,t=[],n=1;n<=5;n++)t.push(wp.element.createElement("a",{key:n,href:"https://s.rankmath.com/wpreview",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"dashicons dashicons-star-filled"})));return wp.element.createElement("div",{className:"ask-review",ref:this._handleRef},wp.element.createElement("h3",null,Object(Ve.__)("Rate Rank Math SEO","rank-math")),wp.element.createElement("p",null,wp.element.createElement(Fr,{tags:"em"},Object(Ve.__)("Hey, we noticed you are using Rank Math SEO plugin for more than 2 weeks –{{em}}that's awesome!{{/em}} Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?","rank-math"))),wp.element.createElement("div",{className:"stars-wrapper"},wp.element.createElement("div",{className:"face"},wp.element.createElement("div",{className:"smiley happy"},wp.element.createElement("div",{className:"eyes"},wp.element.createElement("div",{className:"eye"}),wp.element.createElement("div",{className:"eye"})),wp.element.createElement("div",{className:"mouth"}))),wp.element.createElement("div",{className:"stars"},t)),wp.element.createElement(m.CheckboxControl,{label:wp.element.createElement(u.Fragment,null,wp.element.createElement("span",null,Object(Ve.__)("I already did. Please don't show this message again.","rank-math"))),onChange:function(){return e.alreadyReviewed()}}))}},{key:"alreadyReviewed",value:function(){D.a.ajax({url:rankMath.ajaxurl,data:{action:"rank_math_already_reviewed",security:rankMath.security}}),rankMath.pluginReviewed=!0;var e=D()(this.component);e.animate({opacity:.01},1500,(function(){var t=D()(".rank-math-editor > .components-tab-panel__tabs > button");t.first().click(),t.last().remove(),e.remove()}))}}])&&ba(t.prototype,n),r&&ba(t,r),i}(u.Component),Ea=Object(m.withFilters)("rankMath.analytics.reportButton")((function(){return null})),ja=Object(fr.compose)(Object(c.withSelect)((function(e){return{isOpen:e("rank-math").isSnippetEditorOpen()}})),Object(c.withDispatch)((function(e,t){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!t.isOpen)}}})))((function(e){var t=e.isOpen,n=e.initialTab,r=void 0===n?"":n,a=e.toggleEditor,i=[{name:"general",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings"}),wp.element.createElement("span",null,Object(Ve.__)("General","rank-math"))),view:aa},{name:"social",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social"}),wp.element.createElement("span",null,Object(Ve.__)("Social","rank-math"))),view:fa}];return rankMath.showReviewTab&&!1===rankMath.pluginReviewed&&i.push({name:"review",className:"review-tab",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-heart-filled"})),view:_a}),wp.element.createElement(u.Fragment,null,wp.element.createElement(m.Button,{isPrimary:!0,className:"rank-math-edit-snippet",onClick:a},Object(Ve.__)("Edit Snippet","rank-math")),""===r&&wp.element.createElement(Ea,null),t&&wp.element.createElement(m.Modal,{title:"Preview Snippet Editor",closeButtonLabel:Object(Ve.__)("Close","rank-math"),shouldCloseOnClickOutside:!1,onRequestClose:a,className:"rank-math-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement(m.TabPanel,{className:"rank-math-tabs rank-math-editor",activeClass:"is-active",initialTabName:r,tabs:i},(function(e){return Object(u.createElement)(e.view)}))))})),Ta=function(){return wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(m.BaseControl,{className:"rank-math-social"},wp.element.createElement("span",{className:"components-base-control__label"},Object(Ve.__)("Social Media Preview","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(Ve.__)("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media.","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(Ve.__)("Click on the button below to view and edit the preview.","rank-math")),wp.element.createElement(ja,{buttonLabel:Object(Ve.__)("Preview & Edit Social Media","rank-math"),initialTab:"social"})))},Sa=Object(fr.withInstanceId)((function(e){var t=e.className,n=e.instanceId,r=e.children,a="rank-math-tooltip-"+n,i=rr()("rank-math-tooltip",t);return wp.element.createElement("span",{className:i},wp.element.createElement("input",{id:a,type:"checkbox"}),wp.element.createElement("label",{htmlFor:a,className:"dashicons-before dashicons-editor-help"}),wp.element.createElement("div",{className:"rank-math-tooltip-content"},r))}));function Ia(e){return(Ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ca(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Da(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,r.key,r)}}function Pa(e,t){return(Pa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xa(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=Ra(e);if(t){var a=Ra(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Aa(this,n)}}function Aa(e,t){return!t||"object"!==Ia(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ra(e){return(Ra=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Na=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}}),t&&Pa(e,t)}(i,e);var t,n,r,a=xa(i);function i(){return Ca(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"shouldComponentUpdate",value:function(e){return e.isLoaded!==this.props.isLoaded||e.selectedKeyword.index!==this.props.selectedKeyword.index||e.isRefreshing!==this.props.isRefreshing}},{key:"render",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();return this.results=rankMathEditor.resultManager.getResult(t),this.isPrimary=0===this.props.selectedKeyword.index,Object(oe.isUndefined)(this.results)?null:Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}))}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e);return wp.element.createElement(m.PanelBody,{key:"panel-"+e,title:wp.element.createElement(u.Fragment,null,this.getGroupTitle(e),0===this.errors?wp.element.createElement("span",{className:"rank-math-group-score test-ok"},Object(Ve.__)("All Good","rank-math")):wp.element.createElement("span",{className:"rank-math-group-score test-fail"},this.errors," ",Object(Ve.__)("Errors","rank-math"))),initialOpen:"basic"===e,className:"rank-math-checklist"},wp.element.createElement("ul",null,t))}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,r=this.getGroupItems(e);return Object.keys(r).map((function(e){if(Object(oe.isUndefined)(n[e])||!t.isPrimary&&r[e])return!1;var a=n[e],i=rr()("seo-check-"+e,{"test-ok":a.hasScore(),"test-fail":!a.hasScore()});return a.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(i+=" "+function(e,t){var n=Object(oe.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}(a.getScore(),a.getMaxScore())),!1===a.hasScore()&&(t.errors+=1),wp.element.createElement("li",{key:e,className:i},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:a.getText()}}),a.hasTooltip()?wp.element.createElement(Sa,null,a.getTooltip()):null)}))}},{key:"getGroupItems",value:function(e){return{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return{basic:Object(Ve.__)("Basic SEO","rank-math"),advanced:Object(Ve.__)("Additional","rank-math"),"title-readability":Object(Ve.__)("Title Readability","rank-math"),"content-readability":Object(Ve.__)("Content Readability","rank-math")}}}])&&Da(t.prototype,n),r&&Da(t,r),i}(u.Component),Ma=Object(c.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isRefreshing:t.isRefreshing(),selectedKeyword:t.getSelectedKeyword()}}))(Na),Fa=Object(c.withSelect)((function(e){return{isPro:e("rank-math").isPro()}}))((function(e){return e.isPro?rankMath.isUserRegistered?wp.element.createElement(m.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(Fr,{components:{link:wp.element.createElement("a",{href:"https://rankmath.com/kb/score-100-in-tests/?utm_source=Plugin&utm_medium=Gutenberg%20General%20Tab%20Score%20Notice&utm_campaign=WP",target:"_blank",rel:"noopener noreferrer"})}},Object(Ve.__)("Read here to {{link}}Score 100/100{{/link}} ","rank-math"))):wp.element.createElement(m.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(Fr,{components:{link:wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=help",target:"_blank",rel:"noopener noreferrer"})}},Object(Ve.__)("Activate your account by {{link}}connecting to Rank Math!{{/link}} ","rank-math"))):wp.element.createElement(m.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(Fr,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.futureSeo,target:"_blank",rel:"noopener noreferrer"}),strong:wp.element.createElement("strong",null)}},Object(Ve.__)("Want more? {{link}}{{strong}}Upgrade today to the PRO{{/strong}}{{/link}} version.","rank-math")))})),Ua=n(33),Ba=n.n(Ua);function La(e){return(La="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ha(){return(Ha=Object.assign||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}).apply(this,arguments)}function za(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,r.key,r)}}function Ga(e,t){return(Ga=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ka(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=Wa(e);if(t){var a=Wa(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return $a(this,n)}}function $a(e,t){return!t||"object"!==La(t)&&"function"!=typeof t?Va(e):t}function Va(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wa(e){return(Wa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ya=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}}),t&&Ga(e,t)}(i,e);var t,n,r,a=Ka(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e))._handleRef=t._handleRef.bind(Va(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this.tagify=new Ba.a(this.component,this.props.settings||{}),this.props.settings.callbacks.setup&&setTimeout((function(){e.props.settings.callbacks.setup.call(e.tagify),e.tagify.DOM.input.setAttribute("contenteditable",!0),e.tagify.DOM.input.addEventListener("blur",e.props.settings.callbacks.blur)}),100)}},{key:"shouldComponentUpdate",value:function(e){return this.tagify.settings.whitelist=e.settings.whitelist,e.showDropdown&&this.tagify.dropdown.show.call(this.tagify,e.showDropdown),!1===e.showDropdown&&this.tagify.dropdown.hide.call(this.tagify,!0),!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){var e={ref:this._handleRef,name:this.props.name,autoFocus:this.props.autofocus,className:this.props.className,placeholder:this.props.placeholder};return"textarea"===this.props.mode?wp.element.createElement("textarea",Ha({},e,{defaultValue:this.props.initialValue})):wp.element.createElement("input",Ha({},e,{defaultValue:this.props.initialValue}))}},{key:"toArray",value:function(){return this.tagify.value.map((function(e){return e.value}))}},{key:"toString",value:function(){return this.toArray().join(",")}},{key:"queryTags",value:function(){return this.tagify.DOM.scope.querySelectorAll("tag")}}])&&za(t.prototype,n),r&&za(t,r),i}(u.Component);function qa(e){return(qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qa(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,r.key,r)}}function Za(e,t){return(Za=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ja(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=ti(e);if(t){var a=ti(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Xa(this,n)}}function Xa(e,t){return!t||"object"!==qa(t)&&"function"!=typeof t?ei(e):t}function ei(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ti(e){return(ti=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ni=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}}),t&&Za(e,t)}(i,e);var t,n,r,a=Ja(i);function i(e){var t,n=e.keywords;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this)).state={},t.request=null,t.hasAdded=!1,t.clickCount=0,t.singleClickTimer=null,t.tagifyField=Object(u.createRef)(),t.keywords=n,t.hideDropdown=t.hideDropdown.bind(ei(t)),window.rankMathEditor.focusKeywordField=ei(t),t}return t=i,(n=[{key:"render",value:function(){var e=this,t={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this),blur:this.hideDropdown};rankMath.isUserRegistered&&(t.input=Object(oe.debounce)(this.onInput.bind(this),300));var n={addTagOnBlur:!0,maxTags:rankMath.maxTags,whitelist:this.state.whitelist||[],transformTag:function(t){t.value=e.stripTags(t.value)},templates:{tag:function(t,n){return"<tag title='".concat(e.stripTags(t),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(n.class?n.class:"","'\n ").concat(e.getAttributes_esc(n),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(e.stripTags(t),"</span>\n </div>\n </tag>")}},callbacks:t};return this.setKeywordsClasses(),wp.element.createElement(Ya,{ref:this.tagifyField,mode:"input",settings:n,showDropdown:this.state.showDropdown,initialValue:this.keywords,placeholder:Object(Ve.__)("Example: Rank Math SEO","rank-math")})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.showDropdown!==t.showDropdown||e.isRefreshing!==this.props.isRefreshing||e.keywords!==this.props.keywords}},{key:"getScoreClass",value:function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},{key:"setKeywordsClasses",value:function(){var e=this;if(null!==this.tagifyField.current){var t=this.tagifyField.current,n=t.tagify.value;if(n.length>0){var r=t.queryTags();n.map((function(t,n){var a=rankMathEditor.resultManager.getScore(I.Helpers.removeDiacritics(t.value));r[n].classList.remove("ok-fk","good-fk","bad-fk"),r[n].classList.add(e.getScoreClass(a))}))}}}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"onInput",value:function(e){var t=this;(e=Object(oe.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hideDropdown(),this.hasAdded?this.hasAdded=!1:this.request=D.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var r=D.a.map(n,(function(e){return e}));t.setState({whitelist:r,showDropdown:e})}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,0===e.detail.index&&this.props.updateSelectedKeyword(e.detail,this.tagifyField.current),this.updateKeywords()}},{key:"onRemove",value:function(e){this.hideDropdown(),0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){var t=this;this.clickCount++,1===this.clickCount?this.singleClickTimer=setTimeout((function(){t.clickCount=0,t.props.updateSelectedKeyword(e.detail,t.tagifyField.current)}),400):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0)}},{key:"onEdit",value:function(){this.hasAdded=!0,this.updateKeywords()}},{key:"selectFirstKeyword",value:function(){var e=this.tagifyField.current,t=e.tagify.value,n={tag:"",index:0,data:{value:""}};t.length>0&&(n={tag:e.queryTags()[0],index:0,data:{value:t[0].value}}),this.props.updateSelectedKeyword(n,e)}},{key:"updateKeywords",value:function(){var e=this.tagifyField.current,t=this.stripTags(e.toString());this.props.updateKeywords(t)}},{key:"hideDropdown",value:function(){null!==this.request&&(this.request.abort(),this.request=null),this.setState({whitelist:[],showDropdown:!1})}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,n,r=Object.keys(e),a="";for(n=r.length;n--;)"class"!=(t=r[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=D()("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||""}}])&&Qa(t.prototype,n),r&&Qa(t,r),i}(u.Component),ri=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{keywords:t.getKeywords(),isRefreshing:t.isRefreshing()}})),Object(c.withDispatch)((function(e){return{updateKeywords:function(t){e("rank-math").updateKeywords(t)},updateSelectedKeyword:function(t,n){n.queryTags().forEach((function(e){e.classList.remove("selected")})),""!==t.tag&&t.tag.classList.add("selected"),e("rank-math").updateSelectedKeyword(t)}}})))(ni),ai=Object(fr.compose)(Object(c.withSelect)((function(e){return{isTrendsCtaOpen:e("rank-math").isTrendsCtaOpen()}})),Object(c.withDispatch)((function(e,t){return{toggleTrendsCta:function(){e("rank-math").toggleTrendsCta(!t.isTrendsCtaOpen)}}})))((function(e){var t=e.isTrendsCtaOpen,n=e.toggleTrendsCta;return wp.element.createElement(u.Fragment,null,wp.element.createElement("a",{href:"#",title:Object(Ve.__)("Trends","rank-math"),rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon},onClick:n}),t&&wp.element.createElement(m.Modal,{title:Object(Ve.__)("Google Trends","rank-math"),closeButtonLabel:Object(Ve.__)("Close","rank-math"),shouldCloseOnClickOutside:!0,onRequestClose:n,className:"rank-math-modal rank-math-trends-cta-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"components-panel__body rank-math-trends-cta-wrapper"},wp.element.createElement("img",{src:rankMath.trendsPreviewImage,alt:"",className:"trends-cta blurred"}),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"center"},wp.element.createElement("div",{className:"rank-math-cta-box blue-ticks width-50"},wp.element.createElement("h3",null,Object(Ve.__)("Track Keyword Trends","rank-math")),wp.element.createElement("ul",null,wp.element.createElement("li",null,Object(Ve.__)("Data fetched directly from Google","rank-math")),wp.element.createElement("li",null,Object(Ve.__)("Analyze search trends and compare keywords","rank-math")),wp.element.createElement("li",null,Object(Ve.__)("See data from a particular Country or timeframe","rank-math"))),wp.element.createElement("a",{className:"button button-primary is-green",href:rankMath.trendsUpgradeLink,rel:"noreferrer noopener",target:"_blank"},Object(Ve.__)("Upgrade","rank-math")))))))})),ii=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isPillarContent:t.getPillarContent()}})),Object(c.withDispatch)((function(e,t){return{togglePillarContent:function(t){e("rank-math").updatePillarContent(t)}}})))((function(e){var t=e.isLoaded,n=e.isPillarContent,r=e.togglePillarContent;return t?wp.element.createElement(m.PanelBody,{initialOpen:!0,className:"rank-math-focus-keyword"},wp.element.createElement("h2",{className:"components-panel__body-title"},Object(Ve.__)("Focus Keyword","rank-math"),wp.element.createElement(Sa,null,wp.element.createElement(Fr,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.hundredScoreLink,target:"_blank",rel:"noopener noreferrer"})}},Object(Ve.__)("Insert keywords you want to rank for. Try to {{link}}attain 100/100 points{{/link}} for better chances of ranking.","rank-math")))),!rankMath.isPro&&wp.element.createElement(ai,null),wp.element.createElement(S.Slot,null,(function(e){return e.length>0?e:[]})),wp.element.createElement("div",null,wp.element.createElement(ri,null)),wp.element.createElement(Fa,null),wp.element.createElement(m.CheckboxControl,{className:"pillar-content",label:wp.element.createElement(u.Fragment,null,wp.element.createElement("strong",null,Object(Ve.__)("This post is Pillar Content","rank-math")),wp.element.createElement(Sa,null,Object(Ve.__)("Select one or more Pillar Content posts for each post tag or category to show them in the Link Suggestions meta box.","rank-math"))),checked:n,onChange:r})):null})),oi=Object(c.withDispatch)((function(e){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!0)}}}))((function(e){var t=e.toggleEditor;return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(ra,{onClick:t}),wp.element.createElement(ja,null),wp.element.createElement(b.Slot,null,(function(e){return e.length>0?e:[]}))),wp.element.createElement(ii,null),rankMath.canUser.analysis&&wp.element.createElement(Ma,null))})),li=function(e,t,n){return!1===n?delete e[t]:e[t]=!0,e},ci=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math").getRobots();return{robots:t,isRobotIndex:"index"in t,isRobotNoIndex:"noindex"in t,isRobotNoFollow:"nofollow"in t,isRobotNoArchive:"noarchive"in t,isRobotNoImageIndex:"noimageindex"in t,isRobotNoSnippet:"nosnippet"in t}})),Object(c.withDispatch)((function(e,t){var n=t.robots;return{updateRobots:function(t,r){n=li(n,t,r),"index"===t&&(n=li(n,"noindex",!r)),"noindex"===t&&(n=li(n,"index",!r)),e("rank-math").updateRobots(n)}}})))((function(e){return wp.element.createElement(m.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(Ve.__)("Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list"},wp.element.createElement(m.CheckboxControl,{className:"robot-choice-index",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Index","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Instructs search engines to index and show these pages in the search results","rank-math"))),checked:e.isRobotIndex,onChange:function(t){return e.updateRobots("index",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-noindex",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("No Index","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Prevents pages from being indexed and displayed in search engine result pages","rank-math"))),checked:e.isRobotNoIndex,onChange:function(t){return e.updateRobots("noindex",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-nofollow",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Nofollow","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Prevents search engines from following links on the pages","rank-math"))),checked:e.isRobotNoFollow,onChange:function(t){return e.updateRobots("nofollow",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-noarchive",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("No Archive","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Prevents search engines from showing Cached links for pages","rank-math"))),checked:e.isRobotNoArchive,onChange:function(t){return e.updateRobots("noarchive",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-noimageindex",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("No Image Index","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Lets you specify that you do not want your pages to appear as the referring page for images that appear in image search results","rank-math"))),checked:e.isRobotNoImageIndex,onChange:function(t){return e.updateRobots("noimageindex",t)}}),wp.element.createElement(m.CheckboxControl,{className:"robot-choice-nosnippet",label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("No Snippet","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Prevents a snippet from being shown in the search results","rank-math"))),checked:e.isRobotNoSnippet,onChange:function(t){return e.updateRobots("nosnippet",t)}})))}));function si(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 ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?si(Object(n),!0).forEach((function(t){pi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):si(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mi=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math");return{redirectionID:t.getRedirectionID(),redirectionUrl:t.getRedirectionUrl(),redirectionType:t.getRedirectionType(),hasRedirect:t.hasRedirect()}})),Object(c.withDispatch)((function(e,t){return{toggle:function(){e("rank-math").updateHasRedirect(!t.hasRedirect),e("rank-math").updateRedirectionItem(ui(ui({},t),{},{hasRedirect:!t.hasRedirect}))},updateRedirection:function(n,r){e("rank-math").updateRedirection(n,r),e("rank-math").updateRedirectionItem(ui(ui({},t),{},pi({},n,r)))}}})))((function(e){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.ToggleControl,{className:e.hasRedirect?"is-open":"is-close",label:Object(Ve.__)("Redirect","rank-math"),checked:e.hasRedirect,onChange:function(){return e.toggle()}}),wp.element.createElement(m.SelectControl,{label:Object(Ve.__)("Redirection Type","rank-math"),className:e.hasRedirect?"":"hidden",value:e.redirectionType,onChange:function(t){return e.updateRedirection("redirectionType",t)},options:[{value:"301",label:Object(Ve.__)("301 Permanent Move","rank-math")},{value:"302",label:Object(Ve.__)("302 Temporary Move","rank-math")},{value:"307",label:Object(Ve.__)("307 Temporary Redirect","rank-math")},{value:"410",label:Object(Ve.__)("410 Content Deleted","rank-math")},{value:"451",label:Object(Ve.__)("451 Content Unavailable for Legal Reasons","rank-math")}]}),!1===["410","451"].includes(e.redirectionType)&&wp.element.createElement(m.TextControl,{type:"url",autoComplete:"off",label:Object(Ve.__)("Destination URL","rank-math"),value:e.redirectionUrl,placeholder:"https://rankmath.com/",className:e.hasRedirect?"":"hidden",onChange:function(t){return e.updateRedirection("redirectionUrl",t)}}),wp.element.createElement(m.TextControl,{type:"hidden",value:e.redirectionID,className:"hidden"}))})),di=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math"),n=rankMathEditor.assessor.dataCollector;return{placeholder:t.getCanonicalUrl()?t.getCanonicalUrl():n.getPermalink()?n.getPermalink():"https://rankmath.com/",canonicalUrl:t.getCanonicalUrl()}})),Object(c.withDispatch)((function(e){return{onUrlChange:function(t){e("rank-math").updateCanonicalUrl(t)}}})))((function(e){var t=e.canonicalUrl,n=e.placeholder,r=e.onUrlChange;return wp.element.createElement(m.BaseControl,{className:"rank-math-canonical"},wp.element.createElement("span",{className:"components-base-control__label"},Object(Ve.__)("Canonical URL","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("The canonical URL informs search crawlers which page is the main page if you have double content","rank-math"))),wp.element.createElement(m.TextControl,{type:"url",autoComplete:"off",value:t,placeholder:n,onChange:function(e){return r(e)}}))})),hi=Object(fr.compose)(Object(c.withSelect)((function(e){return{title:e("rank-math").getBreadcrumbTitle()}})),Object(c.withDispatch)((function(e){return{onTitleChange:function(t){e("rank-math").updateBreadcrumbTitle(t)}}})))((function(e){var t=e.title,n=e.onTitleChange;return wp.element.createElement(m.BaseControl,{className:"rank-math-breadcrumb-title"},wp.element.createElement("span",{className:"components-base-control__label"},Object(Ve.__)("Breadcrumb Title","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Breadcrumb Title to use for this post","rank-math"))),wp.element.createElement(m.TextControl,{value:t,onChange:function(e){return n(e)}}))}));function fi(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 gi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fi(Object(n),!0).forEach((function(t){bi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wi={"max-snippet":-1,"max-video-preview":-1,"max-image-preview":"large"},yi=Object(fr.compose)(Object(c.withSelect)((function(e){var t=e("rank-math").getAdvancedRobots(),n=gi({},t);Object(oe.defaults)(n,wi);var r=null,a=null,i=null;return"max-snippet"in t&&(r=n["max-snippet"]),"max-image-preview"in t&&(a=n["max-image-preview"]),"max-video-preview"in t&&(i=n["max-video-preview"]),{meta:t,isSnippet:r,isImage:a,isVideo:i,maxSnippet:r?n["max-snippet"]:-1,maxImage:n["max-image-preview"],maxVideo:i?n["max-video-preview"]:-1}})),Object(c.withDispatch)((function(e,t){var n=gi({},t.meta);return{updateRobots:function(t,r){Object(oe.isBoolean)(r)?!1===r?delete n[t]:n[t]=wi[t]:n[t]=r,e("rank-math").updateAdvancedRobots(n)}}})))((function(e){return wp.element.createElement(m.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(Ve.__)("Advanced Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list advanced-robots"},wp.element.createElement(m.CheckboxControl,{label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Max Snippet","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Specify a maximum text-length, in characters, of a snippet for your page","rank-math"))),checked:e.isSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(m.TextControl,{type:"number",value:e.maxSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(m.CheckboxControl,{label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Max Video Preview","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Specify a maximum duration in seconds of an animated video preview","rank-math"))),checked:e.isVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(m.TextControl,{type:"number",value:e.maxVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(m.CheckboxControl,{label:wp.element.createElement(u.Fragment,null,Object(Ve.__)("Max Image Preview","rank-math"),wp.element.createElement(Sa,null,Object(Ve.__)("Specify a maximum size of image preview to be shown for images on this page","rank-math"))),checked:e.isImage,onChange:function(t){return e.updateRobots("max-image-preview",t)}}),wp.element.createElement(m.SelectControl,{value:e.maxImage,onChange:function(t){return e.updateRobots("max-image-preview",t)},options:[{value:"large",label:Object(Ve.__)("Large","rank-math")},{value:"standard",label:Object(Ve.__)("Standard","rank-math")},{value:"none",label:Object(Ve.__)("None","rank-math")}]})))})),vi=Object(fr.compose)(Object(c.withSelect)((function(e){return{showScore:e("rank-math").getShowScoreFrontend()}})),Object(c.withDispatch)((function(e){return{toggleScore:function(t){e("rank-math").toggleFrontendScore(t)}}})))((function(e){var t=e.showScore,n=e.toggleScore;return wp.element.createElement(m.BaseControl,{className:"rank-math-frontend-score"},wp.element.createElement(m.ToggleControl,{label:Object(Ve.__)("Show SEO Score on Front-end","rank-math"),checked:t,onChange:n}))})),ki=function(){return wp.element.createElement(u.Fragment,null,wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(ci,null)),wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(yi,null)),wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(di,null)),rankMath.assessor.hasBreadcrumb&&wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(hi,null)),rankMath.assessor.hasRedirection&&wp.element.createElement(m.PanelBody,{initialOpen:!0,className:"rank-math-redirect"},wp.element.createElement(mi,null)),rankMath.frontEndScore&&wp.element.createElement(m.PanelBody,{initialOpen:!0},wp.element.createElement(vi,null)),wp.element.createElement(O.Slot,null,(function(e){return e.length>0?e:[]})))},Oi=n(34),_i=n.n(Oi),Ei={init:function(){this.cacheProps(),this.initVars(),this.bindEvents()},cacheProps:function(){this.root=document.documentElement,this.$wpAdminbar=D()("#wpadminbar")},initVars:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},bindEvents:function(){window.addEventListener("resize",_i()(this.onWindowResize.bind(this)))},onWindowResize:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},setWpAdminbarHeight:function(){this.root.style.setProperty("--rankmath-wp-adminbar-height",this.$wpAdminbar.outerHeight()+"px")}};D()((function(){Ei.init()}));var ji=function(e){"social"===e&&Object(c.dispatch)("rank-math").toggleSnippetEditor(!0)},Ti=function(){return wp.element.createElement(Cr,{className:"rank-math-tabs",activeClass:"is-active",tabs:(e=[],rankMath.canUser.general&&e.push({name:"general",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings",title:Object(Ve.__)("General","rank-math")}),wp.element.createElement("span",null,Object(Ve.__)("General","rank-math"))),view:oi,className:"rank-math-general-tab"}),rankMath.canUser.advanced&&e.push({name:"advanced",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-toolbox",title:Object(Ve.__)("Advanced","rank-math")}),wp.element.createElement("span",null,Object(Ve.__)("Advanced","rank-math"))),view:ki,className:"rank-math-advanced-tab"}),rankMath.canUser.social&&e.push({name:"social",title:wp.element.createElement(u.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social",title:Object(Ve.__)("Social","rank-math")}),wp.element.createElement("span",null,Object(Ve.__)("Social","rank-math"))),view:Ta,className:"rank-math-social-tab"}),Object(p.applyFilters)("rank_math_sidebar_tabs",e)),onSelect:ji},(function(e){return wp.element.createElement("div",{className:"rank-math-tab-content-"+e.name},Object(u.createElement)(e.view))}));var e},Si=["className","children"];function Ii(){return(Ii=Object.assign||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}).apply(this,arguments)}function Ci(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(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)&&(a[n]=e[n])}return a}var Di=function(e){var t=e.className,n=e.children,r=Ci(e,Si),a=rr()("rank-math-rm-modal-button",t);return wp.element.createElement("button",Ii({type:"button",className:a},r),n)},Pi=function(){return wp.element.createElement("div",{className:"et-fb-icon et-fb-icon--close",style:{fill:"rgb(255, 255, 255)",width:"28px",minWidth:"28px",height:"28px",margin:"-6px"}},wp.element.createElement("svg",{viewBox:"0 0 28 28",preserveAspectRatio:"xMidYMid meet",shapeRendering:"geometricPrecision"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"M15.59 14l4.08-4.082a1.124 1.124 0 0 0-1.587-1.588L14 12.411 9.918 8.329A1.124 1.124 0 0 0 8.33 9.92L12.411 14l-4.082 4.082a1.124 1.124 0 0 0 1.59 1.589L14 15.589l4.082 4.082a1.124 1.124 0 0 0 1.589-1.59L15.589 14h.001z",fillRule:"evenodd"}))))},xi=function(){var e=rr()("rank-math-rm-modal-header-discard-button");return wp.element.createElement(Di,{className:e,onClick:function(){Object(c.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}},wp.element.createElement(Pi,null))},Ai=function(){var e=rr()("rank-math-rm-modal-header");return wp.element.createElement("header",{className:e},wp.element.createElement("div",{className:"rank-math-rm-modal-header"},wp.element.createElement("div",{className:"rank-math-rm-modal-header-title"},"Rank Math SEO"),wp.element.createElement("ul",{className:"rank-math-rm-modal-header-options"},wp.element.createElement("li",{className:"rank-math-rm-modal-header-option"},wp.element.createElement(xi,null)))))},Ri=function(e){var t=e.children,n=rr()("rank-math-rm-modal-content","rank-math-sidebar-panel");return wp.element.createElement("div",{className:n},t)},Ni=Object(c.withSelect)((function(e){return{rmUiActive:(0,e("rank-math").isDiviRankMathModalActive)()}}))((function(e){var t=e.rmUiActive,n=rr()("rank-math-rm-modal",{"rank-math-rm-modal-is-hidden":!t}),r=rr()("rank-math-rm-modal-inner");return wp.element.createElement("div",{className:n},wp.element.createElement("div",{className:r},wp.element.createElement(Ai,null),wp.element.createElement(Ri,null,wp.element.createElement(Ti,null))))})),Mi=Object(m.withFilters)("rankMath.diviAppModal")(Ni),Fi=function(){return wp.element.createElement(m.SlotFillProvider,null,wp.element.createElement("div",{className:"rank-math-rm-app"},wp.element.createElement(Mi,null)))};function Ui(e){return(Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Li(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,r.key,r)}}function Hi(e,t,n){return(Hi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=$i(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function zi(e,t){return(zi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gi(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=$i(e);if(t){var a=$i(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ki(this,n)}}function Ki(e,t){return!t||"object"!==Ui(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $i(e){return($i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vi=function(){return s.MediaUpload},Wi=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}}),t&&zi(e,t)}(i,e);var t,n,r,a=Gi(i);function i(){return Bi(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"setup",value:function(e){l.a.use(l.a.createNonceMiddleware(rankMath.restNonce)),this.registerSlots=this.registerSlots.bind(this),Object(p.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),Object(p.addFilter)("editor.MediaUpload","rank-math/replace-media-upload",Vi),Hi($i(i.prototype),"setup",this).call(this,e)}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=b,this.RankMathAfterFocusKeyword=S,this.RankMathAdvancedTab=O,this.slots={AfterEditor:b,AfterFocusKeyword:S,AdvancedTab:O}}},{key:"updatePermalink",value:function(e){Object(c.dispatch)("rank-math").updatePermalink(e)}},{key:"updatePermalinkSanitize",value:function(e){e=this.assessor.getResearch("slugify")(e),Object(c.dispatch)("rank-math").updatePermalink(e)}}])&&Li(t.prototype,n),r&&Li(t,r),i}(Yn);window.addEventListener("message",(function(e){"et_builder_api_ready"===e.data.etBuilderEvent&&(window.rankMathEditor=new Wi,window.rankMathGutenberg=window.rankMathEditor,window.rankMathEditor.setup(new tr),sr.init(),new hr,Object(u.render)(Object(u.createElement)(Fi),document.getElementById("rank-math-rm-app-root")),Object(c.dispatch)("rank-math").refreshResults())}))}]);
assets/admin/js/elementor.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=82)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=wp.compose},function(e,t){e.exports=rankMathAnalyzer},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),a=n.n(r);function i(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,r.key,r)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,r;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():a()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&i(t.prototype,n),r&&i(t,r),e}())},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var o=a.apply(null,r);o&&e.push(o)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var l in r)n.call(r,l)&&r[l]&&e.push(l);else e.push(r.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=wp.url},function(e,t){e.exports=wp.blockEditor},function(e,t,n){"use strict";var r=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),r.innerHTML=e,e=r.textContent,r.textContent=""),e}},,function(e,t){e.exports=wp.apiFetch},,function(e,t,n){"use strict";n.d(t,"a",(function(){return wn}));var r={};n.r(r),n.d(r,"updateKeywords",(function(){return p})),n.d(r,"updatePillarContent",(function(){return m})),n.d(r,"toggleFrontendScore",(function(){return d})),n.d(r,"updateAnalysisScore",(function(){return h})),n.d(r,"updateCanonicalUrl",(function(){return f})),n.d(r,"updateAdvancedRobots",(function(){return b})),n.d(r,"updateRobots",(function(){return g})),n.d(r,"updateBreadcrumbTitle",(function(){return w})),n.d(r,"resetDirtyMetadata",(function(){return y})),n.d(r,"updateFacebookTitle",(function(){return v})),n.d(r,"updateFacebookDescription",(function(){return k})),n.d(r,"updateFacebookImage",(function(){return O})),n.d(r,"updateFacebookImageID",(function(){return _})),n.d(r,"updateFacebookHasOverlay",(function(){return j})),n.d(r,"updateFacebookImageOverlay",(function(){return E})),n.d(r,"updateAppData",(function(){return s})),n.d(r,"updateAppUi",(function(){return u})),n.d(r,"updatePostID",(function(){return T})),n.d(r,"updatePermalink",(function(){return S})),n.d(r,"updateTitle",(function(){return I})),n.d(r,"updateDescription",(function(){return C})),n.d(r,"updateFeaturedImage",(function(){return D})),n.d(r,"updatePrimaryTermID",(function(){return P})),n.d(r,"updateRedirection",(function(){return x})),n.d(r,"updateRedirectionItem",(function(){return A})),n.d(r,"resetRedirection",(function(){return N})),n.d(r,"updateHasRedirect",(function(){return R})),n.d(r,"updateSerpTitle",(function(){return U})),n.d(r,"updateSerpDescription",(function(){return F})),n.d(r,"toggleSnippetEditor",(function(){return L})),n.d(r,"updateSnippetPreviewType",(function(){return H})),n.d(r,"toggleTrendsCta",(function(){return z})),n.d(r,"updateTwitterUseFacebook",(function(){return B})),n.d(r,"updateTwitterCardType",(function(){return G})),n.d(r,"updateTwitterTitle",(function(){return K})),n.d(r,"updateTwitterDescription",(function(){return V})),n.d(r,"updateTwitterAuthor",(function(){return W})),n.d(r,"updateTwitterImageID",(function(){return Y})),n.d(r,"updateTwitterImage",(function(){return $})),n.d(r,"updateTwitterHasOverlay",(function(){return q})),n.d(r,"updateTwitterImageOverlay",(function(){return Z})),n.d(r,"updateTwitterPlayerUrl",(function(){return J})),n.d(r,"updateTwitterPlayerSize",(function(){return Q})),n.d(r,"updateTwitterPlayerStreamUrl",(function(){return X})),n.d(r,"updateTwitterPlayerStreamCtype",(function(){return ee})),n.d(r,"updateTwitterAppDescription",(function(){return te})),n.d(r,"updateTwitterAppIphoneID",(function(){return ne})),n.d(r,"updateTwitterAppIphoneName",(function(){return re})),n.d(r,"updateTwitterAppIphoneUrl",(function(){return ae})),n.d(r,"updateTwitterAppIpadID",(function(){return ie})),n.d(r,"updateTwitterAppIpadName",(function(){return oe})),n.d(r,"updateTwitterAppIpadUrl",(function(){return le})),n.d(r,"updateTwitterAppGoogleplayID",(function(){return ce})),n.d(r,"updateTwitterAppGoogleplayName",(function(){return se})),n.d(r,"updateTwitterAppGoogleplayUrl",(function(){return ue})),n.d(r,"updateTwitterAppCountry",(function(){return pe})),n.d(r,"toggleLoaded",(function(){return me})),n.d(r,"updateSelectedKeyword",(function(){return de})),n.d(r,"refreshResults",(function(){return he})),n.d(r,"setVersion",(function(){return fe})),n.d(r,"toggleIsDiviPageSettingsBarActive",(function(){return be})),n.d(r,"toggleIsDiviRankMathModalActive",(function(){return ge})),n.d(r,"toggleSchemaEditor",(function(){return Ee})),n.d(r,"toggleSchemaTemplates",(function(){return Te})),n.d(r,"schemaUpdated",(function(){return Se})),n.d(r,"setEditingSchemaId",(function(){return Ie})),n.d(r,"setEditorTab",(function(){return Ce})),n.d(r,"setTemplateTab",(function(){return De})),n.d(r,"updateEditSchemas",(function(){return Pe})),n.d(r,"updateSchemas",(function(){return xe})),n.d(r,"updateEditSchema",(function(){return Ae})),n.d(r,"saveSchema",(function(){return Ne})),n.d(r,"deleteSchema",(function(){return Re})),n.d(r,"saveTemplate",(function(){return Me}));var a={};n.r(a),n.d(a,"appData",(function(){return Ge})),n.d(a,"appUi",(function(){return $e}));var i={};n.r(i),n.d(i,"getAppData",(function(){return qe})),n.d(i,"getDirtyMetadata",(function(){return Ze})),n.d(i,"getAnalysisScore",(function(){return Je})),n.d(i,"getKeywords",(function(){return Qe})),n.d(i,"getPillarContent",(function(){return Xe})),n.d(i,"getRobots",(function(){return et})),n.d(i,"getAdvancedRobots",(function(){return tt})),n.d(i,"getCanonicalUrl",(function(){return nt})),n.d(i,"getBreadcrumbTitle",(function(){return rt})),n.d(i,"getRichSnippets",(function(){return at})),n.d(i,"getShowScoreFrontend",(function(){return it})),n.d(i,"isLoaded",(function(){return ot})),n.d(i,"getSelectedKeyword",(function(){return lt})),n.d(i,"isRefreshing",(function(){return ct})),n.d(i,"isPro",(function(){return st})),n.d(i,"isDiviPageSettingsBarActive",(function(){return ut})),n.d(i,"isDiviRankMathModalActive",(function(){return pt})),n.d(i,"getFacebookTitle",(function(){return mt})),n.d(i,"getFacebookDescription",(function(){return dt})),n.d(i,"getFacebookAuthor",(function(){return ht})),n.d(i,"getFacebookImageID",(function(){return ft})),n.d(i,"getFacebookImage",(function(){return bt})),n.d(i,"getFacebookHasOverlay",(function(){return gt})),n.d(i,"getFacebookImageOverlay",(function(){return wt})),n.d(i,"getPostID",(function(){return yt})),n.d(i,"getTitle",(function(){return vt})),n.d(i,"getPermalink",(function(){return kt})),n.d(i,"getDescription",(function(){return Ot})),n.d(i,"getFeaturedImage",(function(){return _t})),n.d(i,"getFeaturedImageHtml",(function(){return jt})),n.d(i,"getPrimaryTermID",(function(){return Et})),n.d(i,"getRedirectionID",(function(){return Tt})),n.d(i,"getRedirectionType",(function(){return St})),n.d(i,"getRedirectionUrl",(function(){return It})),n.d(i,"getRedirectionItem",(function(){return Ct})),n.d(i,"hasRedirect",(function(){return Dt})),n.d(i,"getSerpTitle",(function(){return xt})),n.d(i,"getSerpDescription",(function(){return At})),n.d(i,"isSnippetEditorOpen",(function(){return Nt})),n.d(i,"getSnippetPreviewType",(function(){return Rt})),n.d(i,"isTrendsCtaOpen",(function(){return Mt})),n.d(i,"isSchemaEditorOpen",(function(){return Ut})),n.d(i,"isSchemaTemplatesOpen",(function(){return Ft})),n.d(i,"hasSchemaUpdated",(function(){return Lt})),n.d(i,"getSchemas",(function(){return Ht})),n.d(i,"getEditSchemas",(function(){return zt})),n.d(i,"getEditingSchema",(function(){return Bt})),n.d(i,"getPreviewSchema",(function(){return Gt})),n.d(i,"getEditorTab",(function(){return Kt})),n.d(i,"getTemplateTab",(function(){return Vt})),n.d(i,"getTwitterUseFacebook",(function(){return Wt})),n.d(i,"getTwitterCardType",(function(){return Yt})),n.d(i,"getTwitterTitle",(function(){return $t})),n.d(i,"getTwitterDescription",(function(){return qt})),n.d(i,"getTwitterAuthor",(function(){return Zt})),n.d(i,"getTwitterImageID",(function(){return Jt})),n.d(i,"getTwitterImage",(function(){return Qt})),n.d(i,"getTwitterHasOverlay",(function(){return Xt})),n.d(i,"getTwitterImageOverlay",(function(){return en})),n.d(i,"getTwitterAppDescription",(function(){return tn})),n.d(i,"getTwitterAppIphoneID",(function(){return nn})),n.d(i,"getTwitterAppIphoneName",(function(){return rn})),n.d(i,"getTwitterAppIphoneUrl",(function(){return an})),n.d(i,"getTwitterAppIpadID",(function(){return on})),n.d(i,"getTwitterAppIpadName",(function(){return ln})),n.d(i,"getTwitterAppIpadUrl",(function(){return cn})),n.d(i,"getTwitterAppGoogleplayID",(function(){return sn})),n.d(i,"getTwitterAppGoogleplayName",(function(){return un})),n.d(i,"getTwitterAppGoogleplayUrl",(function(){return pn})),n.d(i,"getTwitterAppCountry",(function(){return mn})),n.d(i,"getTwitterPlayerUrl",(function(){return dn})),n.d(i,"getTwitterPlayerSize",(function(){return hn})),n.d(i,"getTwitterPlayerStream",(function(){return fn})),n.d(i,"getTwitterPlayerStreamCtype",(function(){return bn}));var o=n(4),l=n(9),c=n(6);function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(c.applyFilters)("rank_math_sanitize_data",t,e,n),null!==r&&(r=Object(c.applyFilters)("rank_math_sanitize_meta_value",r,e,n)),r=null===r?t:r,Object(c.doAction)("rank_math_data_changed",e,t,n),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:n,metaValue:r}}function u(e,t){return Object(c.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function p(e){return l.a.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),s("keywords",e,"rank_math_focus_keyword")}function m(e){return s("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function d(e){return s("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function h(e){return s("score",e,"rank_math_seo_score")}function f(e){return s("canonicalUrl",e,"rank_math_canonical_url")}function b(e){return s("advancedRobots",e,"rank_math_advanced_robots")}function g(e){return s("robots",e,"rank_math_robots",Object.keys(e))}function w(e){return s("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function y(){return s("dirtyMetadata",{})}function v(e){return s("facebookTitle",e,"rank_math_facebook_title")}function k(e){return s("facebookDescription",e,"rank_math_facebook_description")}function O(e){return s("facebookImage",e,"rank_math_facebook_image")}function _(e){return s("facebookImageID",e,"rank_math_facebook_image_id")}function j(e){return s("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function E(e){return s("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function T(e){return rankMath.objectID=e,s("postID",e)}function S(e){return s("permalink",e,"permalink")}function I(e){return s("title",e,"rank_math_title")}function C(e){return s("description",e,"rank_math_description")}function D(e){return s("featuredImage",e)}function P(e,t){return s("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function x(e,t){return s(e,t)}function A(e){return u("redirectionItem",e)}function N(){return u("redirectionItem",{})}function R(e){return u("hasRedirect",e)}var M=n(25);function U(e){return e=l.a.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),u("serpTitle",e)}function F(e){return e=l.a.swap(Object(M.a)(e)),rankMathEditor.refresh("description"),u("serpDescription",e)}function L(e){return u("isSnippetEditorOpen",e)}function H(e){return u("snippetPreviewType",e)}function z(e){return u("isTrendsCtaOpen",e)}function B(e){return s("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function G(e){return s("twitterCardType",e,"rank_math_twitter_card_type")}function K(e){return s("twitterTitle",e,"rank_math_twitter_title")}function V(e){return s("twitterDescription",e,"rank_math_twitter_description")}function W(e){return s("twitterAuthor",e,"rank_math_twitter_author")}function Y(e){return s("twitterImageID",e,"rank_math_twitter_image_id")}function $(e){return s("twitterImage",e,"rank_math_twitter_image")}function q(e){return s("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function Z(e){return s("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function J(e){return s("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function Q(e){return s("twitterPlayerSize",e,"rank_math_twitter_player_size")}function X(e){return s("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function ee(e){return s("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function te(e){return s("twitterAppDescription",e,"rank_math_twitter_app_description")}function ne(e){return s("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function re(e){return s("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function ae(e){return s("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function ie(e){return s("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function oe(e){return s("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function le(e){return s("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function ce(e){return s("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function se(e){return s("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function ue(e){return s("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function pe(e){return s("twitterAppCountry",e,"rank_math_twitter_app_country")}function me(e){return u("isLoaded",e)}function de(e){return u("selectedKeyword",e)}function he(){return u("refreshResults",Date.now())}function fe(){return u("isPro",!0)}function be(e){return u("isDiviPageSettingsBarActive",e)}function ge(e){return u("isDiviRankMathModalActive",e)}var we=n(1),ye=n(0),ve=n(15),ke=n.n(ve);function Oe(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 _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e){return u("isSchemaEditorOpen",e)}function Te(e){return u("isSchemaTemplatesOpen",e)}function Se(e){return u("schemaUpdated",e)}function Ie(e){return u("editingSchemaId",e)}function Ce(e){return u("editorTab",e)}function De(e){return u("templateTab",e)}function Pe(e){return u("editSchemas",e)}function xe(e){return s("schemas",e)}function Ae(e,t){var n=_e({},Object(o.select)("rank-math").getEditSchemas());return n[e]=t,u("editSchemas",n)}function Ne(e,t){var n=_e({},Object(o.select)("rank-math").getSchemas());return n[e]=t,s("schemas",n)}function Re(e){var t=_e({},Object(o.select)("rank-math").getSchemas());return delete t[e],Object(c.doAction)("rank_math_schema_trash",e),s("schemas",t,"rank_math_delete_"+e,"")}function Me(e,t,n){return ke()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:n}}).then((function(n){t({loading:!1,showNotice:!0,postId:n.id}),setTimeout((function(){t({showNotice:!1}),Object(we.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(ye.__)("Edit Schema","rank-math"),window.history.pushState(null,"",n.link.replace(/&amp;/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function Ue(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 Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){Le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var He=rankMath.assessor.serpData,ze=rankMath.assessor.hasRedirection,Be={postID:null,title:He.title?He.title:He.titleTemplate,description:He.description,keywords:He.focusKeywords,pillarContent:He.pillarContent,featuredImage:"",permalink:!1,primaryTerm:He.primaryTerm,robots:He.robots,advancedRobots:He.advancedRobots,canonicalUrl:He.canonicalUrl,breadcrumbTitle:He.breadcrumbTitle,showScoreFrontend:He.showScoreFrontend,redirectionID:ze?Object(we.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:ze?Object(we.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:ze?Object(we.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:He.facebookTitle,facebookImage:He.facebookImage,facebookImageID:He.facebookImageID,facebookAuthor:He.facebookAuthor,facebookDescription:He.facebookDescription,facebookHasOverlay:He.facebookHasOverlay,facebookImageOverlay:He.facebookImageOverlay,twitterTitle:He.twitterTitle,twitterImage:He.twitterImage,twitterAuthor:He.twitterAuthor,twitterImageID:He.twitterImageID,twitterCardType:He.twitterCardType,twitterUseFacebook:He.twitterUseFacebook,twitterDescription:He.twitterDescription,twitterHasOverlay:He.twitterHasOverlay,twitterImageOverlay:He.twitterImageOverlay,twitterPlayerUrl:He.twitterPlayerUrl,twitterPlayerSize:He.twitterPlayerSize,twitterPlayerStream:He.twitterPlayerStream,twitterPlayerStreamCtype:He.twitterPlayerStreamCtype,twitterAppDescription:He.twitterAppDescription,twitterAppIphoneName:He.twitterAppIphoneName,twitterAppIphoneID:He.twitterAppIphoneID,twitterAppIphoneUrl:He.twitterAppIphoneUrl,twitterAppIpadName:He.twitterAppIpadName,twitterAppIpadID:He.twitterAppIpadID,twitterAppIpadUrl:He.twitterAppIpadUrl,twitterAppGoogleplayName:He.twitterAppGoogleplayName,twitterAppGoogleplayID:He.twitterAppGoogleplayID,twitterAppGoogleplayUrl:He.twitterAppGoogleplayUrl,twitterAppCountry:He.twitterAppCountry,schemas:Object(we.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function Ge(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Be,n=arguments.length>1?arguments[1]:void 0,r=Fe({},t.dirtyMetadata);return!1!==n.metaKey&&(r[n.metaKey]=n.metaValue),"RANK_MATH_APP_DATA"===n.type?"dirtyMetadata"===n.key?Fe(Fe({},t),{},{dirtyMetadata:n.value}):Fe(Fe({},t),{},(Le(e={},n.key,n.value),Le(e,"dirtyMetadata",r),e)):t}function Ke(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 Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){We(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ye={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(we.isEmpty)(Object(we.get)(rankMath.assessor,"redirection.id",""))||!Object(we.isEmpty)(Object(we.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1};function $e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ye,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?Ve(Ve({},e),{},We({},t.key,t.value)):e}function qe(e){return e.appData}function Ze(e){return e.appData.dirtyMetadata}function Je(e){return e.appData.score}function Qe(e){return e.appData.keywords}function Xe(e){return e.appData.pillarContent}function et(e){return e.appData.robots}function tt(e){return e.appData.advancedRobots}function nt(e){return e.appData.canonicalUrl}function rt(e){return e.appData.breadcrumbTitle}function at(e){return"todo"}function it(e){return e.appData.showScoreFrontend}function ot(e){return e.appUi.isLoaded}function lt(e){return e.appUi.selectedKeyword}function ct(e){return e.appUi.refreshResults}function st(e){return e.appUi.isPro}function ut(e){return e.appUi.isDiviPageSettingsBarActive}function pt(e){return e.appUi.isDiviRankMathModalActive}function mt(e){return e.appData.facebookTitle}function dt(e){return e.appData.facebookDescription}function ht(e){return e.appData.facebookAuthor}function ft(e){return e.appData.facebookImageID}function bt(e){return e.appData.facebookImage}function gt(e){return e.appData.facebookHasOverlay}function wt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function yt(e){return e.appData.postID}function vt(e){return e.appData.title}function kt(e){return e.appData.permalink}function Ot(e){return e.appData.description}function _t(e){return e.appData.featuredImage}function jt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function Et(e){return e.appData.primaryTerm}function Tt(e){return e.appData.redirectionID}function St(e){return e.appData.redirectionType}function It(e){return e.appData.redirectionUrl}function Ct(e){return e.appUi.redirectionItem}function Dt(e){return e.appUi.hasRedirect}var Pt=n(13);function xt(e){return Object(Pt.a)(e.appUi.serpTitle)}function At(e){return e.appUi.serpDescription}function Nt(e){return e.appUi.isSnippetEditorOpen}function Rt(e){return e.appUi.snippetPreviewType}function Mt(e){return e.appUi.isTrendsCtaOpen}function Ut(e){return e.appUi.isSchemaEditorOpen}function Ft(e){return e.appUi.isSchemaTemplatesOpen}function Lt(e){return e.appUi.schemaUpdated}function Ht(e){return e.appData.schemas}function zt(e){return e.appUi.editSchemas}function Bt(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function Gt(e){return e.appData.schemas[e.appUi.editingSchemaId]}function Kt(e){return e.appUi.editorTab}function Vt(e){return e.appUi.templateTab}function Wt(e){return e.appData.twitterUseFacebook}function Yt(e){return e.appData.twitterCardType}function $t(e){return e.appData.twitterTitle}function qt(e){return e.appData.twitterDescription}function Zt(e){return e.appData.twitterAuthor}function Jt(e){return e.appData.twitterImageID}function Qt(e){return e.appData.twitterImage}function Xt(e){return e.appData.twitterHasOverlay}function en(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function tn(e){return e.appData.twitterAppDescription}function nn(e){return e.appData.twitterAppIphoneID}function rn(e){return e.appData.twitterAppIphoneName}function an(e){return e.appData.twitterAppIphoneUrl}function on(e){return e.appData.twitterAppIpadID}function ln(e){return e.appData.twitterAppIpadName}function cn(e){return e.appData.twitterAppIpadUrl}function sn(e){return e.appData.twitterAppGoogleplayID}function un(e){return e.appData.twitterAppGoogleplayName}function pn(e){return e.appData.twitterAppGoogleplayUrl}function mn(e){return e.appData.twitterAppCountry}function dn(e){return e.appData.twitterPlayerUrl}function hn(e){return e.appData.twitterPlayerSize}function fn(e){return e.appData.twitterPlayerStream}function bn(e){return e.appData.twitterPlayerStreamCtype}var gn=Object(o.registerStore)("rank-math",{reducer:Object(o.combineReducers)(a),selectors:i,actions:r});function wn(){return gn}},,function(e,t,n){"use strict";var r=n(1);t.a=function(e,t,n,a){return""===e||Object(r.isUndefined)(t)?t:(t=Object(r.truncate)(t,{length:n,separator:a||" "})).replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"}))}},function(e,t,n){"use strict";t.a=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},,function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAfterFocusKeyword"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement("div",{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAfterEditor"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAdvancedTab"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";n(2);var r=n(8),a=n(1),i=n(6),o=n(9),l=n(13),c=function(e,t){return e=(e=r.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(a.truncate)(e,{length:t,separator:" "}):e};t.a=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),n=t.excerpt,s=t.content?function(e){if(Object(a.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(a.filter)(r.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==e.trim()}));if(!t.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var i=Object(a.filter)(t,(function(e){return Object(a.includes)(e.toLowerCase(),n.toLowerCase())}));if(0<i.length)return c(i[0],160)}return c(t[0],160)}(t.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",u=Object(a.isUndefined)(n)||Object(a.isEmpty)(n)?s:n;if(o.a.setVariable("excerpt",u),o.a.setVariable("seo_description",u),""!==(e=Object(l.a)(Object(i.applyFilters)("rankMath/description",e))))return r.Helpers.cleanText(e);if(!Object(a.isUndefined)(n)&&!Object(a.isEmpty)(n))return r.Helpers.cleanText(n);var p=rankMath.assessor.serpData.descriptionTemplate;return Object(a.isUndefined)(p)||""===p?s:r.Helpers.cleanText(p)}},function(e,t,n){var r=n(27),a=n(40),i=n(43),o=Math.max,l=Math.min;e.exports=function(e,t,n){var c,s,u,p,m,d,h=0,f=!1,b=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(t){var n=c,r=s;return c=s=void 0,h=t,p=e.apply(r,n)}function y(e){return h=e,m=setTimeout(k,t),f?w(e):p}function v(e){var n=e-d;return void 0===d||n>=t||n<0||b&&e-h>=u}function k(){var e=a();if(v(e))return O(e);m=setTimeout(k,function(e){var n=t-(e-d);return b?l(n,u-(e-h)):n}(e))}function O(e){return m=void 0,g&&c?w(e):(c=s=void 0,p)}function _(){var e=a(),n=v(e);if(c=arguments,s=this,d=e,n){if(void 0===m)return y(d);if(b)return clearTimeout(m),m=setTimeout(k,t),w(d)}return void 0===m&&(m=setTimeout(k,t)),p}return t=i(t)||0,r(n)&&(f=!!n.leading,u=(b="maxWait"in n)?o(i(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),_.cancel=function(){void 0!==m&&clearTimeout(m),h=0,c=d=s=m=void 0},_.flush=function(){return void 0===m?p:O(a())},_}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(41),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},function(e,t,n){var r=n(28).Symbol;e.exports=r},function(e,t,n){"use strict";var r=n(0),a=n(6);function i(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,r.key,r)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,n,o;return t=e,(n=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(r.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(r.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(r.sprintf)(Object(r.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(r.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(t.prototype,n),o&&i(t,o),e}();t.a=o},function(e,t,n){"use strict";var r=n(1),a=n(13);function i(e,t,n){var a=0;return!1!==Object(r.get)(n,"pixelWidth",!1)&&(a=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),a)+"%"}function o(e,t){return e<=t.min||e>t.max}function l(e,t){return e<=t.minWidth||e>t.pixelWidth}t.a=function(e,t){var n=Object(a.a)(e).length,c=0,s=!1;if(!1!==Object(r.get)(t,"pixelWidth",!1)){s=!0;var u=document.createTextNode(e),p=document.createElement("span");p.appendChild(u),p.id="rank-math-width-tester",p.className=t.widthCheckerClass;var m=document.body.appendChild(p);c=document.getElementById("rank-math-width-tester").offsetWidth,m.outerHTML=""}return{left:i(n,c,t),isInvalid:o(n,t),isInvalidWidth:!!s&&l(c,t),count:n+" / "+t.max,pixelWidth:s?c+"px / "+t.pixelWidth+"px":""}}},function(e,t,n){"use strict";var r=n(0),a=n(7),i=n(5),o=n(3),l=n(4);t.a=Object(a.compose)(Object(l.withSelect)((function(e){return{isTrendsCtaOpen:e("rank-math").isTrendsCtaOpen()}})),Object(l.withDispatch)((function(e,t){return{toggleTrendsCta:function(){e("rank-math").toggleTrendsCta(!t.isTrendsCtaOpen)}}})))((function(e){var t=e.isTrendsCtaOpen,n=e.toggleTrendsCta;return wp.element.createElement(i.Fragment,null,wp.element.createElement("a",{href:"#",title:Object(r.__)("Trends","rank-math"),rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon},onClick:n}),t&&wp.element.createElement(o.Modal,{title:Object(r.__)("Google Trends","rank-math"),closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!0,onRequestClose:n,className:"rank-math-modal rank-math-trends-cta-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"components-panel__body rank-math-trends-cta-wrapper"},wp.element.createElement("img",{src:rankMath.trendsPreviewImage,alt:"",className:"trends-cta blurred"}),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"center"},wp.element.createElement("div",{className:"rank-math-cta-box blue-ticks width-50"},wp.element.createElement("h3",null,Object(r.__)("Track Keyword Trends","rank-math")),wp.element.createElement("ul",null,wp.element.createElement("li",null,Object(r.__)("Data fetched directly from Google","rank-math")),wp.element.createElement("li",null,Object(r.__)("Analyze search trends and compare keywords","rank-math")),wp.element.createElement("li",null,Object(r.__)("See data from a particular Country or timeframe","rank-math"))),wp.element.createElement("a",{className:"button button-primary is-green",href:rankMath.trendsUpgradeLink,rel:"noreferrer noopener",target:"_blank"},Object(r.__)("Upgrade","rank-math")))))))}))},function(e,t){e.exports=Tagify},function(e,t,n){"use strict";var r=n(1);t.a=function(e,t){var n=Object(r.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}},function(e,t){e.exports=wp.htmlEntities},,function(e,t,n){"use strict";var r=n(4),a=n(20);t.a=Object(r.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Object(a.a)(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))}))},function(e,t){e.exports=React},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){var r=n(28);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(42))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(44),a=n(27),i=n(46),o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}},function(e,t,n){var r=n(45),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(47),a=n(50);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(29),a=n(48),i=n(49),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},function(e,t,n){var r=n(29),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var a=o.call(e);return r&&(t?e[l]=n:delete e[l]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=l(n(38)),i=l(n(57)),o=l(n(60));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function s(e,t){var n,o,l,u,p,m,d,h,f=[],b={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],l=m;break}f.push(t[p.value])}else f.push(p.value);return n&&(u=function(e,t){var n,r,a=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,e),d=s(e.slice(l+1,u),t),o=a.default.cloneElement(n,{},d),f.push(o),u<e.length-1&&(h=s(e.slice(u+1),t),f=f.concat(h))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,i.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,a=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,o.default)(t);try{return s(i,n)}catch(e){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},,,function(e,t,n){"use strict";var r=n(0),a=n(4),i=n(6),o=n(5),l=n(10),c=n.n(l),s=n(1),u=n(7),p=n(3);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(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=y(e);if(t){var a=y(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(){return(v=Object.assign||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}).apply(this,arguments)}function k(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(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)&&(a[n]=e[n])}return a}var O=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=k(e,["tabId","onClick","children","selected"]);return wp.element.createElement(p.Button,v({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},_=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}}),t&&b(e,t)}(i,e);var t,n,r,a=g(i);function i(){var e;h(this,i),(e=a.apply(this,arguments)).handleClick=function(t){var n=e.props.onSelect,r=void 0===n?s.noop:n;e.setState({selected:t}),r(t)},e.onNavigate=function(e,t){t.click()},e.toggle=function(){e.setState((function(e){return{isOpen:!e.isOpen}}))};var t=e.props,n=t.tabs,r=t.initialTabName;return e.state={isOpen:!1,selected:r||(n.length>0?n[0].name:null)},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,o=n.instanceId,l=n.orientation,u=void 0===l?"horizontal":l,m=n.tabs,h=Object(s.find)(m,{name:t}),f=o+"-"+h.name,b=m.slice(4);return wp.element.createElement("div",{className:i},wp.element.createElement(p.NavigableMenu,{role:"tablist",orientation:u,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},m.slice(0,4).map((function(n){return wp.element.createElement(O,{className:c()("components-tab-panel__tabs-item",n.className,d({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})),!Object(s.isEmpty)(b)&&wp.element.createElement(p.Button,{onClick:this.toggle,"aria-expanded":this.state.isOpen,className:c()("components-tab-panel__tabs-item",{active:this.state.isOpen})},wp.element.createElement("i",{className:"rm-icon rm-icon-plus"}),wp.element.createElement("span",null,"More")),this.state.isOpen&&wp.element.createElement("div",{className:"rank-math-extra-menu"},b.map((function(n){return wp.element.createElement(O,{className:c()("components-tab-panel__tabs-item",n.className,d({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})))),h&&wp.element.createElement("div",{"aria-labelledby":f,role:"tabpanel",id:f+"-view",className:"components-tab-panel__tab-content"},this.props.children(h)))}}])&&f(t.prototype,n),r&&f(t,r),i}(o.Component),j=Object(u.withInstanceId)(_),E=n(31),T=function(e){var t=Object(E.a)(e.source,e),n=t.pixelWidth?" (".concat(t.pixelWidth,")"):"";return wp.element.createElement("span",{className:c()("length-indicator-wrapper",{invalid:t.isInvalid})},wp.element.createElement("span",{className:"length-count"},t.count,n),wp.element.createElement("span",{className:"length-indicator"},wp.element.createElement("span",{style:{left:t.left}})))},S=n(35),I=n(51),C=n.n(I),D=function(e){var t=e.tags,n=e.components,r=e.children;return n=n||{},!1===Object(s.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),C()({mixedString:r,components:n})};function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(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,r.key,r)}}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(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=U(e);if(t){var a=U(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return R(this,n)}}function R(e,t){return!t||"object"!==P(t)&&"function"!=typeof t?M(e):t}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var F=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}}),t&&A(e,t)}(l,e);var t,n,a,i=N(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this,e)).state={},t.state.variables=t.getFiltered(),t.state.filtered=t.state.variables,t.state.display="none",t.state.isOpen=!1,t.handleOutsideClick=t.handleOutsideClick.bind(M(t)),t}return t=l,(n=[{key:"getFiltered",value:function(){var e=this.props.exclude,t=Object.values(rankMath.variables);return Object(s.isUndefined)(e)?t:t.filter((function(t){return!e.includes(t.variable)}))}},{key:"render",value:function(){var e=this;return wp.element.createElement(o.Fragment,null,wp.element.createElement("div",{className:"rank-math-variables-dropdown",style:{display:this.state.display},ref:function(t){e.node=t}},wp.element.createElement(p.TextControl,{autoComplete:"off",placeholder:Object(S.decodeEntities)(Object(r.__)("Search &hellip;","rank-math")),onChange:function(t){e.handleSearch(t)}}),wp.element.createElement("ul",null,this.state.filtered.map((function(t,n){return wp.element.createElement("li",{key:n,"data-var":t.variable,role:"presentation",onClick:function(){e.props.onClick(t)}},wp.element.createElement("strong",null,t.name),wp.element.createElement("span",null,wp.element.createElement(D,{tags:"strong"},t.description.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"))))}),this))),wp.element.createElement(p.Button,{icon:"arrow-down-alt2",onClick:function(){e.toggle()}}))}},{key:"toggle",value:function(){this.state.isOpen?document.removeEventListener("click",this.handleOutsideClick,!1):document.addEventListener("click",this.handleOutsideClick,!1),this.setState({display:this.state.isOpen?"none":"block",isOpen:!this.state.isOpen})}},{key:"handleOutsideClick",value:function(e){this.node.contains(e.target)||this.toggle()}},{key:"handleSearch",value:function(e){var t=e.toLowerCase();2>t.length?this.setState({filtered:this.state.variables}):this.setState({filtered:this.state.variables.filter((function(e){return-1!==Object.values(e).join(" ").toLowerCase().indexOf(t)}))})}}])&&x(t.prototype,n),a&&x(t,a),l}(o.Component),L=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{title:t.getTitle(),serpTitle:t.getSerpTitle()}})),Object(a.withDispatch)((function(e){return{updateTitle:function(t){e("rank-math").updateSerpTitle(t),e("rank-math").updateTitle(t)}}})))((function(e){var t=e.title,n=e.serpTitle,a=e.updateTitle;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-title"},Object(r.__)("Title","rank-math")),wp.element.createElement(T,{source:n,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextControl,{id:"rank-math-editor-title",value:t,placeholder:rankMath.assessor.serpData.titleTemplate,help:Object(r.__)("This is what will appear in the first line when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(F,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),H=n(8),z=n(11),B=Object(u.compose)(Object(a.withSelect)((function(){var e=rankMathEditor.assessor.dataCollector;return{permalink:e.getSlug(),serpPermalink:e.getPermalink()}})),Object(a.withDispatch)((function(){return{updatePermalink:function(e){rankMathEditor.updatePermalink(H.Helpers.sanitizeText(e))},updatePermalinkSanitize:function(e){rankMathEditor.updatePermalinkSanitize(H.Helpers.sanitizeText(e))}}})))((function(e){var t=e.permalink,n=e.serpPermalink,a=e.updatePermalink,i=e.updatePermalinkSanitize;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-permalink"},Object(r.__)("Permalink","rank-math")),wp.element.createElement(T,{source:Object(z.safeDecodeURIComponent)(n),min:5,max:75}),wp.element.createElement(p.TextControl,{id:"rank-math-editor-permalink",value:rankMath.is_front_page?"/":Object(z.safeDecodeURIComponent)(t),onChange:a,help:rankMath.is_front_page?Object(r.__)("Editing Homepage permalink is not possible.","rank-math"):Object(r.__)("This is the unique URL of this page, displayed below the post title in the search results.","rank-math"),disabled:rankMath.is_front_page?"disabled":"",onBlur:function(e){i(e.target.value)}}))})),G=n(13),K=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{description:t.getDescription(),serpDescription:t.getSerpDescription()}})),Object(a.withDispatch)((function(e){return{updateDescription:function(t){e("rank-math").updateSerpDescription(t),e("rank-math").updateDescription(t)}}})))((function(e){var t=e.description,n=e.serpDescription,a=e.updateDescription;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-description"},Object(r.__)("Description","rank-math")),wp.element.createElement(T,{source:n,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextareaControl,{id:"rank-math-editor-description",value:Object(G.a)(t),placeholder:n||rankMath.assessor.serpData.descriptionTemplate,help:Object(r.__)("This is what will appear as the description when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(F,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),V=Object(u.compose)(Object(a.withSelect)((function(e){return{type:e("rank-math").getSnippetPreviewType()}})),Object(a.withDispatch)((function(e,t){return{updatePreviewType:function(n){e("rank-math").updateSnippetPreviewType(n===t.type?"":n)}}})))((function(e){var t=e.type,n=e.updatePreviewType,r=c()("button button-secondary button-small",{active:"desktop"===t}),a=c()("button button-secondary button-small",{active:"mobile"===t});return wp.element.createElement("div",{className:"rank-math-button-devices alignright"},wp.element.createElement("div",{onClick:function(){return n("desktop")},className:r},wp.element.createElement("i",{className:"rm-icon rm-icon-desktop"})),wp.element.createElement("div",{onClick:function(){return n("mobile")},className:a},wp.element.createElement("i",{className:"rm-icon rm-icon-mobile"})))})),W=n(37),Y=n(19),$=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(p.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},q=Object(a.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(s.find)(t,(function(e){return!Object(s.isEmpty)(e.metadata.isPrimary)}))}}))((function(e){var t=e.schema;if(Object(s.isEmpty)(t))return null;var n=Object(s.get)(t,"review.reviewRating",{}),a=n.ratingValue;if(Object(s.isEmpty)(a))return null;Object(s.get)(n,"worstRating",1);var i=Object(s.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},$(i,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},$(n,"filled"))}(a,0,i)),wp.element.createElement("span",{className:"serp-rating-label"},Object(r.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},a))}));function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J=Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getRobots();return{title:t.getSerpTitle(),permalink:rankMathEditor.assessor.dataCollector.getPermalink(),description:t.getSerpDescription(),previewType:t.getSnippetPreviewType(),isNoIndex:"noindex"in n,keyword:t.getSelectedKeyword().data.value}}))((function(e){var t,n=e.title,a=e.permalink,i=e.description,o=e.previewType,l=void 0===o?"desktop":o,s=e.isNoIndex,u=e.keyword,p=e.onClick,m=e.showScore,d=void 0===m||m,h=e.showDevices,f=void 0!==h&&h,b=c()("serp-preview",(Z(t={"expanded-preview":""!==l},"".concat(l,"-preview"),""!==l&&f),Z(t,"noindex-preview",s),t)),g=rankMathEditor.assessor.getResearch("slugify")(u);return wp.element.createElement("div",{className:b},wp.element.createElement("div",{className:"serp-preview-title","data-title":Object(r.__)("Preview","rank-math"),"data-desktop":Object(r.__)("Desktop Preview","rank-math"),"data-mobile":Object(r.__)("Mobile Preview","rank-math")},d&&wp.element.createElement(W.a,null)," ",f&&wp.element.createElement(V,null)),wp.element.createElement("div",{className:"serp-preview-wrapper"},wp.element.createElement("div",{className:"serp-preview-bg"},wp.element.createElement("div",{className:"serp-preview-input"},wp.element.createElement("input",{type:"text",value:u||Object(r.__)("Rank Math","rank-math"),disabled:!0}),wp.element.createElement("span",{className:"serp-icon-search"},wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))),wp.element.createElement("span",{className:"serp-icon-mic"})),wp.element.createElement("div",{className:"serp-preview-menus"},wp.element.createElement("ul",null,wp.element.createElement("li",{className:"current"},wp.element.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxwYXRoIGZpbGw9IiMzNEE4NTMiIGQ9Ik0xMCAydjJhNiA2IDAgMCAxIDYgNmgyYTggOCAwIDAgMC04LTh6Ii8+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTEwIDRWMmE4IDggMCAwIDAtOCA4aDJjMC0zLjMgMi43LTYgNi02eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDQiIGQ9Ik00IDEwSDJhOCA4IDAgMCAwIDggOHYtMmMtMy4zIDAtNi0yLjY5LTYtNnoiLz48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMjIgMjAuNTlsLTUuNjktNS42OUE3Ljk2IDcuOTYgMCAwIDAgMTggMTBoLTJhNiA2IDAgMCAxLTYgNnYyYzEuODUgMCAzLjUyLS42NCA0Ljg4LTEuNjhsNS42OSA1LjY5TDIyIDIwLjU5eiIvPjwvc3ZnPgo=",alt:"","data-atf":"1"}),Object(r.__)("All","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M14 13l4 5H6l4-4 1.79 1.78L14 13zm-6.01-2.99A2 2 0 0 0 8 6a2 2 0 0 0-.01 4.01zM22 5v14a3 3 0 0 1-3 2.99H5c-1.64 0-3-1.36-3-3V5c0-1.64 1.36-3 3-3h14c1.65 0 3 1.36 3 3zm-2.01 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h7v-.01h7a1 1 0 0 0 1-1V5z"}))," ",Object(r.__)("Images","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{clipRule:"evenodd",d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{clipRule:"evenodd",d:"M10 16.5l6-4.5-6-4.5v9zM5 20h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1zm14.5 2H5a3 3 0 0 1-3-3V4.4A2.4 2.4 0 0 1 4.4 2h15.2A2.4 2.4 0 0 1 22 4.4v15.1a2.5 2.5 0 0 1-2.5 2.5z",fillRule:"evenodd"}))," ",Object(r.__)("Videos","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M12 11h6v2h-6v-2zm-6 6h12v-2H6v2zm0-4h4V7H6v6zm16-7.22v12.44c0 1.54-1.34 2.78-3 2.78H5c-1.64 0-3-1.25-3-2.78V5.78C2 4.26 3.36 3 5 3h14c1.64 0 3 1.25 3 2.78zM19.99 12V5.78c0-.42-.46-.78-1-.78H5c-.54 0-1 .36-1 .78v12.44c0 .42.46.78 1 .78h14c.54 0 1-.36 1-.78V12zM12 9h6V7h-6v2z"}))," ",Object(r.__)("News","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))," ","More")),wp.element.createElement("ul",{className:"menus-right"},wp.element.createElement("li",null,Object(r.__)("Settings","rank-math")),wp.element.createElement("li",null,Object(r.__)("Tools","rank-math")))),wp.element.createElement("div",{className:"serp-preview-result-stats"},Object(r.__)("About 43,700,000 results (0.32 seconds) ","rank-math"))),wp.element.createElement("div",{className:"serp-preview-body",role:"button",tabIndex:0,onClick:function(){p&&p()}},wp.element.createElement("div",{className:"group"},wp.element.createElement("img",{src:rankMath.siteFavIcon,width:"16",height:"16",className:"serp-preview-favicon",alt:""}),wp.element.createElement("div",{className:"serp-url",dangerouslySetInnerHTML:{__html:Object(Y.a)(g,H.Helpers.sanitizeText(Object(z.safeDecodeURIComponent)(a)),75,/-? +/)}})),wp.element.createElement("div",{className:"group"},wp.element.createElement("h5",{className:"serp-title",dangerouslySetInnerHTML:{__html:Object(Y.a)(u,H.Helpers.sanitizeText(n),60)}})),wp.element.createElement(q,null),wp.element.createElement("div",{className:"group"},wp.element.createElement("div",{className:"serp-description",dangerouslySetInnerHTML:{__html:Object(Y.a)(u,H.Helpers.sanitizeText(i),160)}}))),wp.element.createElement("div",{className:"serp-preview-noindex"},wp.element.createElement("h3",null,Object(r.__)("Noindex robots meta is enabled","rank-math")),wp.element.createElement("p",null,Object(r.__)("This page will not appear in search results. You can disable noindex in the Advanced tab.","rank-math")))))})),Q=Object(a.withSelect)((function(e){return{isNoIndex:"noindex"in e("rank-math").getRobots()}}))((function(){return wp.element.createElement("div",{className:"rank-math-editor-general"},wp.element.createElement(J,{showScore:!1,showDevices:!0}),wp.element.createElement(L,null),wp.element.createElement(B,null),wp.element.createElement(K,null))})),X=n(9),ee=function(e){var t=c()("rank-math-social-preview","rank-math-social-preview-"+e.network,e.cardType);return wp.element.createElement("div",{className:t},wp.element.createElement("div",{className:"rank-math-social-preview-item"},wp.element.createElement("div",{className:"rank-math-social-preview-meta"},wp.element.createElement("div",{className:"social-profile-image"}),e.children),wp.element.createElement("div",{className:"rank-math-social-preview-item-wrapper"},wp.element.createElement("div",{className:"rank-math-social-preview-image"},wp.element.createElement("img",{className:"rank-math-social-image-thumbnail",src:e.image,alt:""}),e.hasOverlay&&e.imageOverlay&&wp.element.createElement("img",{src:rankMath.overlayImages[e.imageOverlay].url,className:"rank-math-social-preview-image-overlay overlay-position-"+rankMath.overlayImages[e.imageOverlay].position,alt:""})),wp.element.createElement("div",{className:"rank-math-social-preview-caption"},"facebook"===e.network&&wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},e.siteurl),wp.element.createElement("h3",{className:"rank-math-social-preview-title"},e.title?X.a.swap(e.title):e.serpTitle),wp.element.createElement("p",{className:"rank-math-social-preview-description"},e.description?X.a.swap(e.description):e.serpDescription),"twitter"===e.network&&wp.element.createElement(o.Fragment,null,wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},wp.element.createElement(p.Dashicon,{icon:"admin-links"}),e.siteurl))))))},te=n(12),ne=function(e){return wp.element.createElement("div",{className:"components-base-control field-group"},wp.element.createElement(te.MediaUpload,{allowedTypes:["image"],multiple:!1,value:e.imageID,render:function(t){var n=t.open;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{onClick:n,className:"button",isPrimary:!0},e.imageID>0?Object(r.__)("Replace Image","rank-math"):Object(r.__)("Add Image","rank-math")),e.imageID>0&&wp.element.createElement(p.Button,{className:"button",isDestructive:!0,isLink:!0,onClick:e.removeImage},Object(r.__)("Remove Image","rank-math")))},onSelect:e.updateImage}),wp.element.createElement("p",{className:"components-base-control__help"},Object(r.__)("Upload at least 600x315px image. Recommended size is 1200x630px.","rank-math")),wp.element.createElement("div",{className:"notice notice-warning inline hidden"},wp.element.createElement("p",null,Object(r.__)("Image is smaller than the minimum size, please select a different image.","rank-math"))))};function re(){var e=rankMath.overlayImages,t=[];return Object.keys(e).forEach((function(n){t.push({label:e[n].name,value:n})})),t}function ae(){return(ae=Object.assign||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}).apply(this,arguments)}var ie=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=function(){if(t.getFacebookImage())return t.getFacebookImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{title:t.getFacebookTitle(),description:t.getFacebookDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getFacebookAuthor(),image:n,imageID:t.getFacebookImageID(),hasOverlay:t.getFacebookHasOverlay(),imageOverlay:t.getFacebookImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateFacebookImage(""),e("rank-math").updateFacebookImageID(0),e("rank-math").updateFacebookHasOverlay(!1)},updateImage:function(t){e("rank-math").updateFacebookImage(t.url),e("rank-math").updateFacebookImageID(t.id)},updateTitle:function(t){e("rank-math").updateFacebookTitle(t)},updateDescription:function(t){e("rank-math").updateFacebookDescription(t)},updateImageOverlay:function(t){e("rank-math").updateFacebookImageOverlay(t)},toggleOverlay:function(t){e("rank-math").updateFacebookHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(ee,ae({},e,{network:"facebook",siteurl:rankMath.parentDomain}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName),wp.element.createElement("div",{className:"social-time"},wp.element.createElement("span",null,Object(r.__)("2 hrs","rank-math")),wp.element.createElement("span",null,wp.element.createElement(p.Dashicon,{icon:"admin-site",size:"12"})))),wp.element.createElement("div",{className:"notice notice-alt notice-info components-base-control"},wp.element.createElement("p",null,Object(r.__)("Customize the title, description and images of your post used while sharing on Facebook and Twitter.","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/kb/meta-box-social-tab/?utm_source=Plugin&utm_medium=Gutenberg%20Social%20Tab&utm_campaign=WP",target:"_blank",rel:"noreferrer noopener"},Object(r.__)("Read more","rank-math")))),wp.element.createElement(ne,e),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:re(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Facebook, it might get you penalised if over-used.","rank-math"))))))})),oe=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{country:t.getTwitterAppCountry(),description:t.getTwitterAppDescription(),iphoneName:t.getTwitterAppIphoneName(),iphoneID:t.getTwitterAppIphoneID(),iphoneUrl:t.getTwitterAppIphoneUrl(),ipadName:t.getTwitterAppIpadName(),ipadID:t.getTwitterAppIpadID(),ipadUrl:t.getTwitterAppIpadUrl(),googleplayName:t.getTwitterAppGoogleplayName(),googleplayID:t.getTwitterAppGoogleplayID(),googleplayUrl:t.getTwitterAppGoogleplayUrl()}})),Object(a.withDispatch)((function(e){return{updateAppIphoneName:function(t){e("rank-math").updateTwitterAppIphoneName(t)},updateAppIphoneID:function(t){e("rank-math").updateTwitterAppIphoneID(t)},updateAppIphoneUrl:function(t){e("rank-math").updateTwitterAppIphoneUrl(t)},updateAppIpadName:function(t){e("rank-math").updateTwitterAppIpadName(t)},updateAppIpadID:function(t){e("rank-math").updateTwitterAppIpadID(t)},updateAppIpadUrl:function(t){e("rank-math").updateTwitterAppIpadUrl(t)},updateAppGoogleplayName:function(t){e("rank-math").updateTwitterAppGoogleplayName(t)},updateAppGoogleplayID:function(t){e("rank-math").updateTwitterAppGoogleplayID(t)},updateAppGoogleplayUrl:function(t){e("rank-math").updateTwitterAppGoogleplayUrl(t)},updateAppDescription:function(t){e("rank-math").updateTwitterAppDescription(t)},updateAppCountry:function(t){e("rank-math").updateTwitterAppCountry(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.description,label:Object(r.__)("App Description","rank-math"),help:Object(r.__)("You can use this as a more concise description than what you may have on the app store. This field has a maximum of 200 characters. (optional)","rank-math"),onChange:e.updateAppDescription}),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.iphoneName,label:Object(r.__)("iPhone App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIphoneName}),wp.element.createElement(p.TextControl,{value:e.iphoneID,label:Object(r.__)("iPhone App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIphoneID}),wp.element.createElement(p.TextControl,{value:e.iphoneUrl,label:Object(r.__)("iPhone App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIphoneUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.ipadName,label:Object(r.__)("iPad App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIpadName}),wp.element.createElement(p.TextControl,{value:e.ipadID,label:Object(r.__)("iPad App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIpadID}),wp.element.createElement(p.TextControl,{value:e.ipadUrl,label:Object(r.__)("iPad App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIpadUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.googleplayName,label:Object(r.__)("Google Play App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppGoogleplayName}),wp.element.createElement(p.TextControl,{value:e.googleplayID,label:Object(r.__)("Google Play App ID","rank-math"),help:Object(r.__)("Your app ID in the Google Play (.i.e. com.android.app)","rank-math"),onChange:e.updateAppGoogleplayID}),wp.element.createElement(p.TextControl,{value:e.googleplayUrl,label:Object(r.__)("Google Play App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppGoogleplayUrl}))}(e),wp.element.createElement(p.TextControl,{value:e.country,label:Object(r.__)("App Country","rank-math"),help:Object(r.__)("If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.","rank-math"),onChange:e.updateAppCountry}))})),le=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{url:t.getTwitterPlayerUrl(),size:t.getTwitterPlayerSize(),stream:t.getTwitterPlayerStream(),ctype:t.getTwitterPlayerStreamCtype()}})),Object(a.withDispatch)((function(e){return{updatePlayerUrl:function(t){e("rank-math").updateTwitterPlayerUrl(t)},updatePlayerSize:function(t){e("rank-math").updateTwitterPlayerSize(t)},updatePlayerStreamUrl:function(t){e("rank-math").updateTwitterPlayerStreamUrl(t)},updatePlayerStreamCtype:function(t){e("rank-math").updateTwitterPlayerStreamCtype(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.url,label:Object(r.__)("Player URL","rank-math"),help:Object(r.__)("HTTPS URL to iFrame player. This must be a HTTPS URL which does not generate active mixed content warnings in a web browser. The audio or video player must not require plugins such as Adobe Flash.","rank-math"),onChange:e.updatePlayerUrl}),wp.element.createElement(p.TextControl,{value:e.size,label:Object(r.__)("Player Size","rank-math"),help:Object(r.__)("iFrame width and height, specified in pixels in the following format: 600x400.","rank-math"),onChange:e.updatePlayerSize}),wp.element.createElement(p.TextControl,{value:e.stream,label:Object(r.__)("Stream URL","rank-math"),help:Object(r.__)("Optional URL to raw stream that will be rendered in Twitter’s mobile applications directly. If provided, the stream must be delivered in the MPEG-4 container format (the .mp4 extension). The container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile (BP), Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile (LC).","rank-math"),onChange:e.updatePlayerStreamUrl}),wp.element.createElement(p.TextControl,{value:e.ctype,label:Object(r.__)("Stream Content Type","rank-math"),help:Object(r.__)("The MIME type/subtype combination that describes the content contained in twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are those defined in RFC 4337 (MIME Type Registration for MP4).","rank-math"),onChange:e.updatePlayerStreamCtype}))}));function ce(){return(ce=Object.assign||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}).apply(this,arguments)}var se=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook(),r=function(){if(n&&t.getFacebookImage())return t.getFacebookImage();if(t.getTwitterImage())return t.getTwitterImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{useFacebook:n,cardType:t.getTwitterCardType(),title:n?t.getFacebookTitle():t.getTwitterTitle(),description:n?t.getFacebookDescription():t.getTwitterDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getTwitterAuthor(),image:r,imageID:n?t.getFacebookImageID():t.getTwitterImageID(),hasOverlay:n?t.getFacebookHasOverlay():t.getTwitterHasOverlay(),imageOverlay:n?t.getFacebookImageOverlay():t.getTwitterImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateTwitterImage(""),e("rank-math").updateTwitterImageID(0),e("rank-math").updateTwitterHasOverlay(!1)},updateImage:function(t){e("rank-math").updateTwitterImage(t.url),e("rank-math").updateTwitterImageID(t.id)},updateTitle:function(t){e("rank-math").updateTwitterTitle(t)},updateDescription:function(t){e("rank-math").updateTwitterDescription(t)},updateImageOverlay:function(t){e("rank-math").updateTwitterImageOverlay(t)},toggleUseFacebook:function(t){e("rank-math").updateTwitterUseFacebook(t)},updateCardType:function(t){e("rank-math").updateTwitterCardType(t)},toggleOverlay:function(t){e("rank-math").updateTwitterHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(ee,ce({},e,{network:"twitter",siteurl:rankMath.parentDomain,classes:e.cardType,description:Object(s.truncate)(e.description?e.description:e.serpDescription,{length:240,separator:" "})}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName,wp.element.createElement("span",{className:"social-username"},"@",e.author),wp.element.createElement("span",{className:"social-time"},Object(r.__)("2h","rank-math"))),wp.element.createElement("div",{className:"social-text"},Object(r.__)("The card for your website will look little something like this!","rank-math"))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Use Data from Facebook Tab","rank-math"),checked:e.useFacebook,onChange:e.toggleUseFacebook})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.SelectControl,{value:e.cardType,label:Object(r.__)("Card Type","rank-math"),options:[{value:"summary_large_image",label:Object(r.__)("Summary Card with Large Image","rank-math")},{value:"summary_card",label:Object(r.__)("Summary Card","rank-math")},{value:"app",label:Object(r.__)("App Card","rank-math")},{value:"player",label:Object(r.__)("Player Card","rank-math")}],onChange:e.updateCardType})),"player"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. Player Cards must be submitted for approval before they can be used. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/player",target:"blank"},"https://dev.twitter.com/cards/types/player"))),"app"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("The App Card is a great way to represent mobile applications on Twitter and to drive installs. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/app",target:"blank"}," https://dev.twitter.com/cards/types/app"))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement(ne,e),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:re(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Twitter, it might get you penalised if over-used.","rank-math"))))),"player"===e.cardType&&wp.element.createElement(le,null),"app"===e.cardType&&wp.element.createElement(oe,null))})),ue=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TabPanel,{className:"rank-math-editor-social",activeClass:"is-active",tabs:[{name:"facebook",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"facebook-alt"}),Object(r.__)("Facebook","rank-math")),view:ie,className:"button-facebook"},{name:"twitter",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"twitter"}),Object(r.__)("Twitter","rank-math")),view:se,className:"button-twitter"}]},(function(e){return Object(o.createElement)(e.view)})))},pe=n(2),me=n.n(pe);function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function he(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,r.key,r)}}function fe(e,t){return(fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function be(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=ye(e);if(t){var a=ye(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ge(this,n)}}function ge(e,t){return!t||"object"!==de(t)&&"function"!=typeof t?we(e):t}function we(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ye(e){return(ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ve=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}}),t&&fe(e,t)}(l,e);var t,n,a,i=be(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this))._handleRef=e._handleRef.bind(we(e)),e}return t=l,(n=[{key:"componentDidMount",value:function(){var e=me()(this.component),t=e.find(".stars a"),n=e.find(".smiley");t.on("mouseenter",(function(){var e=me()(this).index();t.removeClass("highlighted"),t.slice(0,e+1).addClass("highlighted"),e<2?n.removeClass("normal happy").addClass("angry"):e>3?n.removeClass("normal angry").addClass("happy"):n.removeClass("happy angry").addClass("normal")}))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){for(var e=this,t=[],n=1;n<=5;n++)t.push(wp.element.createElement("a",{key:n,href:"https://s.rankmath.com/wpreview",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"dashicons dashicons-star-filled"})));return wp.element.createElement("div",{className:"ask-review",ref:this._handleRef},wp.element.createElement("h3",null,Object(r.__)("Rate Rank Math SEO","rank-math")),wp.element.createElement("p",null,wp.element.createElement(D,{tags:"em"},Object(r.__)("Hey, we noticed you are using Rank Math SEO plugin for more than 2 weeks –{{em}}that's awesome!{{/em}} Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?","rank-math"))),wp.element.createElement("div",{className:"stars-wrapper"},wp.element.createElement("div",{className:"face"},wp.element.createElement("div",{className:"smiley happy"},wp.element.createElement("div",{className:"eyes"},wp.element.createElement("div",{className:"eye"}),wp.element.createElement("div",{className:"eye"})),wp.element.createElement("div",{className:"mouth"}))),wp.element.createElement("div",{className:"stars"},t)),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,wp.element.createElement("span",null,Object(r.__)("I already did. Please don't show this message again.","rank-math"))),onChange:function(){return e.alreadyReviewed()}}))}},{key:"alreadyReviewed",value:function(){me.a.ajax({url:rankMath.ajaxurl,data:{action:"rank_math_already_reviewed",security:rankMath.security}}),rankMath.pluginReviewed=!0;var e=me()(this.component);e.animate({opacity:.01},1500,(function(){var t=me()(".rank-math-editor > .components-tab-panel__tabs > button");t.first().click(),t.last().remove(),e.remove()}))}}])&&he(t.prototype,n),a&&he(t,a),l}(o.Component),ke=Object(p.withFilters)("rankMath.analytics.reportButton")((function(){return null})),Oe=Object(u.compose)(Object(a.withSelect)((function(e){return{isOpen:e("rank-math").isSnippetEditorOpen()}})),Object(a.withDispatch)((function(e,t){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!t.isOpen)}}})))((function(e){var t=e.isOpen,n=e.initialTab,a=void 0===n?"":n,i=e.toggleEditor,l=[{name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings"}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:Q},{name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social"}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:ue}];return rankMath.showReviewTab&&!1===rankMath.pluginReviewed&&l.push({name:"review",className:"review-tab",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-heart-filled"})),view:ve}),wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{isPrimary:!0,className:"rank-math-edit-snippet",onClick:i},Object(r.__)("Edit Snippet","rank-math")),""===a&&wp.element.createElement(ke,null),t&&wp.element.createElement(p.Modal,{title:"Preview Snippet Editor",closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!1,onRequestClose:i,className:"rank-math-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement(p.TabPanel,{className:"rank-math-tabs rank-math-editor",activeClass:"is-active",initialTabName:a,tabs:l},(function(e){return Object(o.createElement)(e.view)}))))})),_e=function(){return wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(p.BaseControl,{className:"rank-math-social"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Social Media Preview","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media.","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Click on the button below to view and edit the preview.","rank-math")),wp.element.createElement(Oe,{buttonLabel:Object(r.__)("Preview & Edit Social Media","rank-math"),initialTab:"social"})))},je=Object(u.withInstanceId)((function(e){var t=e.className,n=e.instanceId,r=e.children,a="rank-math-tooltip-"+n,i=c()("rank-math-tooltip",t);return wp.element.createElement("span",{className:i},wp.element.createElement("input",{id:a,type:"checkbox"}),wp.element.createElement("label",{htmlFor:a,className:"dashicons-before dashicons-editor-help"}),wp.element.createElement("div",{className:"rank-math-tooltip-content"},r))})),Ee=n(34);function Te(e){return(Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ie(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,r.key,r)}}function Ce(e,t){return(Ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function De(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=xe(e);if(t){var a=xe(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Pe(this,n)}}function Pe(e,t){return!t||"object"!==Te(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xe(e){return(xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ae=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}}),t&&Ce(e,t)}(l,e);var t,n,a,i=De(l);function l(){return Se(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e){return e.isLoaded!==this.props.isLoaded||e.selectedKeyword.index!==this.props.selectedKeyword.index||e.isRefreshing!==this.props.isRefreshing}},{key:"render",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();return this.results=rankMathEditor.resultManager.getResult(t),this.isPrimary=0===this.props.selectedKeyword.index,Object(s.isUndefined)(this.results)?null:Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}))}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e);return wp.element.createElement(p.PanelBody,{key:"panel-"+e,title:wp.element.createElement(o.Fragment,null,this.getGroupTitle(e),0===this.errors?wp.element.createElement("span",{className:"rank-math-group-score test-ok"},Object(r.__)("All Good","rank-math")):wp.element.createElement("span",{className:"rank-math-group-score test-fail"},this.errors," ",Object(r.__)("Errors","rank-math"))),initialOpen:"basic"===e,className:"rank-math-checklist"},wp.element.createElement("ul",null,t))}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,r=this.getGroupItems(e);return Object.keys(r).map((function(e){if(Object(s.isUndefined)(n[e])||!t.isPrimary&&r[e])return!1;var a=n[e],i=c()("seo-check-"+e,{"test-ok":a.hasScore(),"test-fail":!a.hasScore()});return a.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(i+=" "+Object(Ee.a)(a.getScore(),a.getMaxScore())),!1===a.hasScore()&&(t.errors+=1),wp.element.createElement("li",{key:e,className:i},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:a.getText()}}),a.hasTooltip()?wp.element.createElement(je,null,a.getTooltip()):null)}))}},{key:"getGroupItems",value:function(e){return{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return{basic:Object(r.__)("Basic SEO","rank-math"),advanced:Object(r.__)("Additional","rank-math"),"title-readability":Object(r.__)("Title Readability","rank-math"),"content-readability":Object(r.__)("Content Readability","rank-math")}}}])&&Ie(t.prototype,n),a&&Ie(t,a),l}(o.Component),Ne=Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isRefreshing:t.isRefreshing(),selectedKeyword:t.getSelectedKeyword()}}))(Ae),Re=n(22),Me=Object(a.withSelect)((function(e){return{isPro:e("rank-math").isPro()}}))((function(e){return e.isPro?rankMath.isUserRegistered?wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(D,{components:{link:wp.element.createElement("a",{href:"https://rankmath.com/kb/score-100-in-tests/?utm_source=Plugin&utm_medium=Gutenberg%20General%20Tab%20Score%20Notice&utm_campaign=WP",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Read here to {{link}}Score 100/100{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(D,{components:{link:wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=help",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Activate your account by {{link}}connecting to Rank Math!{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(D,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.futureSeo,target:"_blank",rel:"noopener noreferrer"}),strong:wp.element.createElement("strong",null)}},Object(r.__)("Want more? {{link}}{{strong}}Upgrade today to the PRO{{/strong}}{{/link}} version.","rank-math")))})),Ue=n(33),Fe=n.n(Ue);function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function He(){return(He=Object.assign||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}).apply(this,arguments)}function ze(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,r.key,r)}}function Be(e,t){return(Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ge(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=We(e);if(t){var a=We(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ke(this,n)}}function Ke(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?Ve(e):t}function Ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function We(e){return(We=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ye=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}}),t&&Be(e,t)}(i,e);var t,n,r,a=Ge(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e))._handleRef=t._handleRef.bind(Ve(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this.tagify=new Fe.a(this.component,this.props.settings||{}),this.props.settings.callbacks.setup&&setTimeout((function(){e.props.settings.callbacks.setup.call(e.tagify),e.tagify.DOM.input.setAttribute("contenteditable",!0),e.tagify.DOM.input.addEventListener("blur",e.props.settings.callbacks.blur)}),100)}},{key:"shouldComponentUpdate",value:function(e){return this.tagify.settings.whitelist=e.settings.whitelist,e.showDropdown&&this.tagify.dropdown.show.call(this.tagify,e.showDropdown),!1===e.showDropdown&&this.tagify.dropdown.hide.call(this.tagify,!0),!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){var e={ref:this._handleRef,name:this.props.name,autoFocus:this.props.autofocus,className:this.props.className,placeholder:this.props.placeholder};return"textarea"===this.props.mode?wp.element.createElement("textarea",He({},e,{defaultValue:this.props.initialValue})):wp.element.createElement("input",He({},e,{defaultValue:this.props.initialValue}))}},{key:"toArray",value:function(){return this.tagify.value.map((function(e){return e.value}))}},{key:"toString",value:function(){return this.toArray().join(",")}},{key:"queryTags",value:function(){return this.tagify.DOM.scope.querySelectorAll("tag")}}])&&ze(t.prototype,n),r&&ze(t,r),i}(o.Component);function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qe(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,r.key,r)}}function Ze(e,t){return(Ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Je(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=et(e);if(t){var a=et(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Qe(this,n)}}function Qe(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?Xe(e):t}function Xe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function et(e){return(et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tt=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}}),t&&Ze(e,t)}(l,e);var t,n,a,i=Je(l);function l(e){var t,n=e.keywords;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this)).state={},t.request=null,t.hasAdded=!1,t.clickCount=0,t.singleClickTimer=null,t.tagifyField=Object(o.createRef)(),t.keywords=n,t.hideDropdown=t.hideDropdown.bind(Xe(t)),window.rankMathEditor.focusKeywordField=Xe(t),t}return t=l,(n=[{key:"render",value:function(){var e=this,t={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this),blur:this.hideDropdown};rankMath.isUserRegistered&&(t.input=Object(s.debounce)(this.onInput.bind(this),300));var n={addTagOnBlur:!0,maxTags:rankMath.maxTags,whitelist:this.state.whitelist||[],transformTag:function(t){t.value=e.stripTags(t.value)},templates:{tag:function(t,n){return"<tag title='".concat(e.stripTags(t),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(n.class?n.class:"","'\n ").concat(e.getAttributes_esc(n),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(e.stripTags(t),"</span>\n </div>\n </tag>")}},callbacks:t};return this.setKeywordsClasses(),wp.element.createElement(Ye,{ref:this.tagifyField,mode:"input",settings:n,showDropdown:this.state.showDropdown,initialValue:this.keywords,placeholder:Object(r.__)("Example: Rank Math SEO","rank-math")})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.showDropdown!==t.showDropdown||e.isRefreshing!==this.props.isRefreshing||e.keywords!==this.props.keywords}},{key:"getScoreClass",value:function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},{key:"setKeywordsClasses",value:function(){var e=this;if(null!==this.tagifyField.current){var t=this.tagifyField.current,n=t.tagify.value;if(n.length>0){var r=t.queryTags();n.map((function(t,n){var a=rankMathEditor.resultManager.getScore(H.Helpers.removeDiacritics(t.value));r[n].classList.remove("ok-fk","good-fk","bad-fk"),r[n].classList.add(e.getScoreClass(a))}))}}}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"onInput",value:function(e){var t=this;(e=Object(s.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hideDropdown(),this.hasAdded?this.hasAdded=!1:this.request=me.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var r=me.a.map(n,(function(e){return e}));t.setState({whitelist:r,showDropdown:e})}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,0===e.detail.index&&this.props.updateSelectedKeyword(e.detail,this.tagifyField.current),this.updateKeywords()}},{key:"onRemove",value:function(e){this.hideDropdown(),0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){var t=this;this.clickCount++,1===this.clickCount?this.singleClickTimer=setTimeout((function(){t.clickCount=0,t.props.updateSelectedKeyword(e.detail,t.tagifyField.current)}),400):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0)}},{key:"onEdit",value:function(){this.hasAdded=!0,this.updateKeywords()}},{key:"selectFirstKeyword",value:function(){var e=this.tagifyField.current,t=e.tagify.value,n={tag:"",index:0,data:{value:""}};t.length>0&&(n={tag:e.queryTags()[0],index:0,data:{value:t[0].value}}),this.props.updateSelectedKeyword(n,e)}},{key:"updateKeywords",value:function(){var e=this.tagifyField.current,t=this.stripTags(e.toString());this.props.updateKeywords(t)}},{key:"hideDropdown",value:function(){null!==this.request&&(this.request.abort(),this.request=null),this.setState({whitelist:[],showDropdown:!1})}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,n,r=Object.keys(e),a="";for(n=r.length;n--;)"class"!=(t=r[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=me()("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||""}}])&&qe(t.prototype,n),a&&qe(t,a),l}(o.Component),nt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{keywords:t.getKeywords(),isRefreshing:t.isRefreshing()}})),Object(a.withDispatch)((function(e){return{updateKeywords:function(t){e("rank-math").updateKeywords(t)},updateSelectedKeyword:function(t,n){n.queryTags().forEach((function(e){e.classList.remove("selected")})),""!==t.tag&&t.tag.classList.add("selected"),e("rank-math").updateSelectedKeyword(t)}}})))(tt),rt=n(32),at=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isPillarContent:t.getPillarContent()}})),Object(a.withDispatch)((function(e,t){return{togglePillarContent:function(t){e("rank-math").updatePillarContent(t)}}})))((function(e){var t=e.isLoaded,n=e.isPillarContent,a=e.togglePillarContent;return t?wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-focus-keyword"},wp.element.createElement("h2",{className:"components-panel__body-title"},Object(r.__)("Focus Keyword","rank-math"),wp.element.createElement(je,null,wp.element.createElement(D,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.hundredScoreLink,target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Insert keywords you want to rank for. Try to {{link}}attain 100/100 points{{/link}} for better chances of ranking.","rank-math")))),!rankMath.isPro&&wp.element.createElement(rt.a,null),wp.element.createElement(Re.a.Slot,null,(function(e){return e.length>0?e:[]})),wp.element.createElement("div",null,wp.element.createElement(nt,null)),wp.element.createElement(Me,null),wp.element.createElement(p.CheckboxControl,{className:"pillar-content",label:wp.element.createElement(o.Fragment,null,wp.element.createElement("strong",null,Object(r.__)("This post is Pillar Content","rank-math")),wp.element.createElement(je,null,Object(r.__)("Select one or more Pillar Content posts for each post tag or category to show them in the Link Suggestions meta box.","rank-math"))),checked:n,onChange:a})):null})),it=n(23),ot=Object(a.withDispatch)((function(e){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!0)}}}))((function(e){var t=e.toggleEditor;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(J,{onClick:t}),wp.element.createElement(Oe,null),wp.element.createElement(it.a.Slot,null,(function(e){return e.length>0?e:[]}))),wp.element.createElement(at,null),rankMath.canUser.analysis&&wp.element.createElement(Ne,null))})),lt=function(e,t,n){return!1===n?delete e[t]:e[t]=!0,e},ct=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getRobots();return{robots:t,isRobotIndex:"index"in t,isRobotNoIndex:"noindex"in t,isRobotNoFollow:"nofollow"in t,isRobotNoArchive:"noarchive"in t,isRobotNoImageIndex:"noimageindex"in t,isRobotNoSnippet:"nosnippet"in t}})),Object(a.withDispatch)((function(e,t){var n=t.robots;return{updateRobots:function(t,r){n=lt(n,t,r),"index"===t&&(n=lt(n,"noindex",!r)),"noindex"===t&&(n=lt(n,"index",!r)),e("rank-math").updateRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list"},wp.element.createElement(p.CheckboxControl,{className:"robot-choice-index",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Index","rank-math"),wp.element.createElement(je,null,Object(r.__)("Instructs search engines to index and show these pages in the search results","rank-math"))),checked:e.isRobotIndex,onChange:function(t){return e.updateRobots("index",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Index","rank-math"),wp.element.createElement(je,null,Object(r.__)("Prevents pages from being indexed and displayed in search engine result pages","rank-math"))),checked:e.isRobotNoIndex,onChange:function(t){return e.updateRobots("noindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nofollow",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Nofollow","rank-math"),wp.element.createElement(je,null,Object(r.__)("Prevents search engines from following links on the pages","rank-math"))),checked:e.isRobotNoFollow,onChange:function(t){return e.updateRobots("nofollow",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noarchive",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Archive","rank-math"),wp.element.createElement(je,null,Object(r.__)("Prevents search engines from showing Cached links for pages","rank-math"))),checked:e.isRobotNoArchive,onChange:function(t){return e.updateRobots("noarchive",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noimageindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Image Index","rank-math"),wp.element.createElement(je,null,Object(r.__)("Lets you specify that you do not want your pages to appear as the referring page for images that appear in image search results","rank-math"))),checked:e.isRobotNoImageIndex,onChange:function(t){return e.updateRobots("noimageindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nosnippet",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Snippet","rank-math"),wp.element.createElement(je,null,Object(r.__)("Prevents a snippet from being shown in the search results","rank-math"))),checked:e.isRobotNoSnippet,onChange:function(t){return e.updateRobots("nosnippet",t)}})))}));function st(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 ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach((function(t){pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{redirectionID:t.getRedirectionID(),redirectionUrl:t.getRedirectionUrl(),redirectionType:t.getRedirectionType(),hasRedirect:t.hasRedirect()}})),Object(a.withDispatch)((function(e,t){return{toggle:function(){e("rank-math").updateHasRedirect(!t.hasRedirect),e("rank-math").updateRedirectionItem(ut(ut({},t),{},{hasRedirect:!t.hasRedirect}))},updateRedirection:function(n,r){e("rank-math").updateRedirection(n,r),e("rank-math").updateRedirectionItem(ut(ut({},t),{},pt({},n,r)))}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.ToggleControl,{className:e.hasRedirect?"is-open":"is-close",label:Object(r.__)("Redirect","rank-math"),checked:e.hasRedirect,onChange:function(){return e.toggle()}}),wp.element.createElement(p.SelectControl,{label:Object(r.__)("Redirection Type","rank-math"),className:e.hasRedirect?"":"hidden",value:e.redirectionType,onChange:function(t){return e.updateRedirection("redirectionType",t)},options:[{value:"301",label:Object(r.__)("301 Permanent Move","rank-math")},{value:"302",label:Object(r.__)("302 Temporary Move","rank-math")},{value:"307",label:Object(r.__)("307 Temporary Redirect","rank-math")},{value:"410",label:Object(r.__)("410 Content Deleted","rank-math")},{value:"451",label:Object(r.__)("451 Content Unavailable for Legal Reasons","rank-math")}]}),!1===["410","451"].includes(e.redirectionType)&&wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",label:Object(r.__)("Destination URL","rank-math"),value:e.redirectionUrl,placeholder:"https://rankmath.com/",className:e.hasRedirect?"":"hidden",onChange:function(t){return e.updateRedirection("redirectionUrl",t)}}),wp.element.createElement(p.TextControl,{type:"hidden",value:e.redirectionID,className:"hidden"}))})),dt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=rankMathEditor.assessor.dataCollector;return{placeholder:t.getCanonicalUrl()?t.getCanonicalUrl():n.getPermalink()?n.getPermalink():"https://rankmath.com/",canonicalUrl:t.getCanonicalUrl()}})),Object(a.withDispatch)((function(e){return{onUrlChange:function(t){e("rank-math").updateCanonicalUrl(t)}}})))((function(e){var t=e.canonicalUrl,n=e.placeholder,a=e.onUrlChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-canonical"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Canonical URL","rank-math"),wp.element.createElement(je,null,Object(r.__)("The canonical URL informs search crawlers which page is the main page if you have double content","rank-math"))),wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",value:t,placeholder:n,onChange:function(e){return a(e)}}))})),ht=Object(u.compose)(Object(a.withSelect)((function(e){return{title:e("rank-math").getBreadcrumbTitle()}})),Object(a.withDispatch)((function(e){return{onTitleChange:function(t){e("rank-math").updateBreadcrumbTitle(t)}}})))((function(e){var t=e.title,n=e.onTitleChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-breadcrumb-title"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Breadcrumb Title","rank-math"),wp.element.createElement(je,null,Object(r.__)("Breadcrumb Title to use for this post","rank-math"))),wp.element.createElement(p.TextControl,{value:t,onChange:function(e){return n(e)}}))}));function ft(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 bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wt={"max-snippet":-1,"max-video-preview":-1,"max-image-preview":"large"},yt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getAdvancedRobots(),n=bt({},t);Object(s.defaults)(n,wt);var r=null,a=null,i=null;return"max-snippet"in t&&(r=n["max-snippet"]),"max-image-preview"in t&&(a=n["max-image-preview"]),"max-video-preview"in t&&(i=n["max-video-preview"]),{meta:t,isSnippet:r,isImage:a,isVideo:i,maxSnippet:r?n["max-snippet"]:-1,maxImage:n["max-image-preview"],maxVideo:i?n["max-video-preview"]:-1}})),Object(a.withDispatch)((function(e,t){var n=bt({},t.meta);return{updateRobots:function(t,r){Object(s.isBoolean)(r)?!1===r?delete n[t]:n[t]=wt[t]:n[t]=r,e("rank-math").updateAdvancedRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Advanced Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list advanced-robots"},wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Snippet","rank-math"),wp.element.createElement(je,null,Object(r.__)("Specify a maximum text-length, in characters, of a snippet for your page","rank-math"))),checked:e.isSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Video Preview","rank-math"),wp.element.createElement(je,null,Object(r.__)("Specify a maximum duration in seconds of an animated video preview","rank-math"))),checked:e.isVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Image Preview","rank-math"),wp.element.createElement(je,null,Object(r.__)("Specify a maximum size of image preview to be shown for images on this page","rank-math"))),checked:e.isImage,onChange:function(t){return e.updateRobots("max-image-preview",t)}}),wp.element.createElement(p.SelectControl,{value:e.maxImage,onChange:function(t){return e.updateRobots("max-image-preview",t)},options:[{value:"large",label:Object(r.__)("Large","rank-math")},{value:"standard",label:Object(r.__)("Standard","rank-math")},{value:"none",label:Object(r.__)("None","rank-math")}]})))})),vt=Object(u.compose)(Object(a.withSelect)((function(e){return{showScore:e("rank-math").getShowScoreFrontend()}})),Object(a.withDispatch)((function(e){return{toggleScore:function(t){e("rank-math").toggleFrontendScore(t)}}})))((function(e){var t=e.showScore,n=e.toggleScore;return wp.element.createElement(p.BaseControl,{className:"rank-math-frontend-score"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Show SEO Score on Front-end","rank-math"),checked:t,onChange:n}))})),kt=n(24),Ot=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ct,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(yt,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(dt,null)),rankMath.assessor.hasBreadcrumb&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ht,null)),rankMath.assessor.hasRedirection&&wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-redirect"},wp.element.createElement(mt,null)),rankMath.frontEndScore&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(vt,null)),wp.element.createElement(kt.a.Slot,null,(function(e){return e.length>0?e:[]})))},_t=n(26),jt=n.n(_t),Et={init:function(){this.cacheProps(),this.initVars(),this.bindEvents()},cacheProps:function(){this.root=document.documentElement,this.$wpAdminbar=me()("#wpadminbar")},initVars:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},bindEvents:function(){window.addEventListener("resize",jt()(this.onWindowResize.bind(this)))},onWindowResize:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},setWpAdminbarHeight:function(){this.root.style.setProperty("--rankmath-wp-adminbar-height",this.$wpAdminbar.outerHeight()+"px")}};me()((function(){Et.init()}));var Tt=function(e){"social"===e&&Object(a.dispatch)("rank-math").toggleSnippetEditor(!0)};t.a=function(){return wp.element.createElement(j,{className:"rank-math-tabs",activeClass:"is-active",tabs:(e=[],rankMath.canUser.general&&e.push({name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings",title:Object(r.__)("General","rank-math")}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:ot,className:"rank-math-general-tab"}),rankMath.canUser.advanced&&e.push({name:"advanced",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-toolbox",title:Object(r.__)("Advanced","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Advanced","rank-math"))),view:Ot,className:"rank-math-advanced-tab"}),rankMath.canUser.social&&e.push({name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social",title:Object(r.__)("Social","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:_e,className:"rank-math-social-tab"}),Object(i.applyFilters)("rank_math_sidebar_tabs",e)),onSelect:Tt},(function(e){return wp.element.createElement("div",{className:"rank-math-tab-content-"+e.name},Object(o.createElement)(e.view))}));var e}},function(e,t,n){"use strict";var r=n(8),a=n(6),i=n(17),o=n(1),l=n(0),c=n(4);function s(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,r.key,r)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new r.Analyzer({i18n:l,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(a.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(a.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(a.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var t,n,u;return t=e,(n=[{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===this.getSelectedKeyword().toLowerCase()&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(e,t){return"schemas"===t||Object(o.isObject)(e)||Object(o.isEmpty)(e)?e:r.Helpers.sanitizeAppData(e)}},{key:"getPaper",value:function(e,t){var n=Object(i.a)().getState(),l=this.dataCollector.getData(),c=new r.Paper("",{locale:rankMath.localeFull});return c.setTitle(n.appUi.serpTitle),c.setPermalink(l.slug),c.setDescription(n.appUi.serpDescription),c.setUrl(l.permalink),c.setText(Object(a.applyFilters)("rank_math_content",l.content)),c.setKeyword(e),c.setKeywords(t),Object(o.isUndefined)(l.featuredImage)||(c.setThumbnail(l.featuredImage.source_url),c.setThumbnailAltText(r.Helpers.removeDiacritics(l.featuredImage.alt_text))),c}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(o.debounce)((function(t){var n=Object(i.a)().getState();if(!1!==n.appUi.isLoaded){var o=n.appData.keywords.split(","),l=[];Object(a.doAction)("rank_math_"+t+"_refresh"),o.map((function(t,n){var a=e.getPaper(r.Helpers.removeDiacritics(t),o),i=0===n?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests();l.push(e.analyzer.analyzeSome(i,a).then((function(e){rankMathEditor.resultManager.update(a.getKeyword(),e,0===n),0===n&&Object(c.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(a.getKeyword()))}))),Promise.all(l).then((function(){Object(c.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var e=Object(i.a)().getState().appData.keywords;return r.Helpers.removeDiacritics(e.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var e=Object(i.a)().getState(),t=""!==e.appUi.selectedKeyword.data.value?e.appUi.selectedKeyword.data.value:e.appData.keywords.split(",")[0];return r.Helpers.removeDiacritics(t)}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}}])&&s(t.prototype,n),u&&s(t,u),e}(),p=n(30);function m(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,r.key,r)}}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"setup",value:function(e){Object(i.a)(),this.resultManager=new r.ResultManager,this.assessor=new u(e),new p.a,Object(a.doAction)("rank_math_loaded")}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(e){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(e){throw"Implement the function"}}])&&m(t.prototype,n),o&&m(t,o),e}();t.a=d},,function(e,t,n){"use strict";var r=n(38),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(39),o=n(58),l=n(59),c="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===a)return n(r,e,""===t?"."+s(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=u(i=e[d],m+s(i,d),n,r);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var f,b=h.call(e),g=0;!(f=b.next()).done;)p+=u(i=f.value,m+s(i,g++),n,r)}else if("object"===l){0;var w=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,"")}}return p}var p=/\/+/g;function m(e){return(""+e).replace(p,"$&/")}var d,h,f=b,b=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},g=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function w(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,o,l=e.result,c=e.keyPrefix,s=e.func,u=e.context,p=s.call(u,t,e.count++);Array.isArray(p)?v(p,l,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,o=c+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),l.push(p))}function v(e,t,n,r,a){var i="";null!=n&&(i=m(n)+"/");var o=w.getPooled(t,i,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,o),w.release(o)}w.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},(h=w).instancePool=[],h.getPooled=d||f,h.poolSize||(h.poolSize=10),h.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)v(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(39);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},,,function(e,t){e.exports=wp.mediaUtils},function(e,t){e.exports=Marionette},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(2),a=n.n(r),i=n(4),o=n(63),l=n(6),c=n(55),s=n(1),u=n(15),p=n.n(u),m=n(11),d=n(9);function h(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(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,r.key,r)}}var w=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.savePost=this.savePost.bind(this),this.saveRedirection=this.saveRedirection.bind(this),this.saveSchemas=this.saveSchemas.bind(this),this.subscribeToElementor(),setTimeout(this.elementorPreviewLoaded.bind(this),5e3)}var t,n,r;return t=e,(n=[{key:"elementorPreviewLoaded",value:function(){var e=this;Object(l.addAction)("rank_math_data_changed","rank-math",(function(){e.activateSaveButton()})),Object(l.addAction)("rank_math_update_app_ui","rank-math",(function(t){"hasRedirect"===t&&e.activateSaveButton()}))}},{key:"activateSaveButton",value:function(){var e=Object(s.get)(elementor,"saver.footerSaver",!1);!1===e?elementor.channels.editor.trigger("status:change",!0):e.activateSaveButtons(document,!0)}},{key:"collectGutenbergData",value:function(){return{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return elementor.config.document.id}},{key:"getTitle",value:function(){return elementor.settings.page.model.get("post_title")}},{key:"getContent",value:function(){var e=[];return this.getContentArea().find(".elementor-widget-container").each((function(){e.push(a()(this).html())})),e.join("")}},{key:"getContentArea",value:function(){if(this._contentArea)return this._contentArea;var e=elementor.$preview.contents().find('[data-elementor-type="'+ElementorConfig.document.type+'"]');return e.length<1?a()("<div />"):(this._contentArea=e,e)}},{key:"getExcerpt",value:function(){return elementor.settings.page.model.get("post_excerpt")}},{key:"getPermalink",value:function(){return rankMath.is_front_page?rankMath.homeUrl+"/":this.getSlug()?rankMath.permalinkFormat.replace(/%(postname|pagename)%/,this.getSlug()).trimRight("/"):""}},{key:"getSlug",value:function(){return Object(m.safeDecodeURIComponent)(Object(i.select)("rank-math").getPermalink())}},{key:"getFeaturedImage",value:function(){var e=elementor.settings.page.model.get("post_featured_image");if(!Object(s.isUndefined)(e)&&(e=""===e.id?0:parseInt(e.id),this.isValidMediaId(e))){var t=Object(i.select)("core").getMedia(e);if(!Object(s.isUndefined)(t))return t}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"subscribeToElementor",value:function(){Object(i.dispatch)("rank-math").updatePermalink(rankMath.postName),this.subscriber=Object(s.debounce)(this.refresh,500),Object(i.subscribe)(this.subscriber),elementor.saver.on("before:save",this.savePost),elementor.saver.on("before:save",this.saveRedirection),elementor.saver.on("before:save",this.saveSchemas),elementor.settings.page.model.on("change",this.subscriber)}},{key:"refresh",value:function(){var e=f({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(e),!Object(s.isEqual)(e,this._data)&&e.id&&elementor.channels.editor.trigger("status:change",!0)}},{key:"savePost",value:function(){var e=Object(i.select)("rank-math").getDirtyMetadata();Object(s.isEmpty)(e)||(p()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:e,content:this.getContent()}}).then((function(e){Object(s.isString)(e)&&Object(i.dispatch)("rank-math").updatePermalink(e)})),Object(i.dispatch)("rank-math").resetDirtyMetadata())}},{key:"saveRedirection",value:function(){var e=Object(i.select)("rank-math").getRedirectionItem();Object(s.isEmpty)(e)||(e.objectID=this.getPostID(),e.redirectionSources=this.getPermalink(),p()({method:"POST",path:"rankmath/v1/updateRedirection",data:e}).then((function(e){"delete"===e.action?Object(i.dispatch)("rank-math").updateRedirection("redirectionID",0):"new"===e.action&&Object(i.dispatch)("rank-math").updateRedirection("redirectionID",e.id)})),Object(i.dispatch)("rank-math").resetRedirection())}},{key:"saveSchemas",value:function(){var e=Object(i.select)("rank-math").getSchemas();if(!Object(s.isEmpty)(e)&&Object(i.select)("rank-math").hasSchemaUpdated()){var t=Object(i.select)("rank-math").getEditSchemas();p()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,schemas:e}}).then((function(n){if(!Object(s.isEmpty)(n)){var r=f({},e),a=f({},t);Object(s.map)(n,(function(e,t){r["schema-"+e]=f({},r[t]),a["schema-"+e]=f({},a[t]),delete r[t],delete a[t]})),Object(i.dispatch)("rank-math").schemaUpdated(!1),Object(i.dispatch)("rank-math").updateSchemas(r),Object(i.dispatch)("rank-math").updateEditSchemas(a)}}))}}},{key:"handleEditorChange",value:function(e){var t=this,n={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(s.isInteger)(e.id))return this.initialize?void Object(s.forEach)(n,(function(n,r){t._data[r]!==e[r]&&t[n](t._data[r])})):(this.initialize=!0,Object(s.forEach)(n,(function(e,n){t[e](t._data[n])})),void rankMathEditor.refresh("init"));Object(i.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(e){Object(i.dispatch)("rank-math").updatePostID(e),Object(i.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){d.a.setVariable("title",e),Object(i.dispatch)("rank-math").updateSerpTitle(Object(i.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){d.a.setVariable("excerpt",e),d.a.setVariable("excerpt_only",e),d.a.setVariable("wc_shortdesc",e),d.a.setVariable("seo_description",e),Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(e){Object(i.dispatch)("rank-math").updateFeaturedImage(e),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&g(t.prototype,n),r&&g(t,r),e}(),y=n(64),v=n.n(y),k=n(5),O=n(54),_=v.a.ItemView.extend({template:!1,id:"elementor-panel-rank-math",className:"rank-math-elementor rank-math-sidebar-panel",initialize:function(){a()("#elementor-panel-elements-search-area").hide()},onShow:function(){Object(k.render)(Object(k.createElement)(O.a),document.getElementById("elementor-panel-rank-math"))},onDestroy:function(){a()("#elementor-panel-elements-search-area").show()}}),j=function(e){return e["rank-math"]={region:e.global.region,view:_,options:{}},e};function E(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,r.key,r)}}var T=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onThemeChange=this.onThemeChange.bind(this),elementor.settings.editorPreferences.model.on("change",this.onThemeChange)}var t,n,r;return t=e,(n=[{key:"onThemeChange",value:function(e){var t=Object(s.get)(e,"changed.ui_theme",!1);if(!1!==t){var n=this.getThemeLink();"light"!==t?n.attr("media","auto"===t?"(prefers-color-scheme: dark)":"").appendTo(elementorCommon.elements.$body):n.remove()}}},{key:"getThemeLink",value:function(){return this.link||this.createThemeLink(),this.link}},{key:"createThemeLink",value:function(){var e="rank-math-elementor-dark-css";this.link=a()("#"+e),this.link.length||(this.link=a()("<link>",{id:e,rel:"stylesheet",href:rankMath.elementorDarkMode}))}}])&&E(t.prototype,n),r&&E(t,r),e}(),S=n(23),I=n(24),C=n(22);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(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,r.key,r)}}function A(e,t,n){return(A="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=U(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(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=U(e);if(t){var a=U(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var F=function(){return o.MediaUpload},L=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}}),t&&N(e,t)}(o,e);var t,n,r,a=R(o);function o(){return P(this,o),a.apply(this,arguments)}return t=o,(n=[{key:"setup",value:function(e){this.registerSlots=this.registerSlots.bind(this),Object(l.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),Object(l.addFilter)("editor.MediaUpload","rank-math/replace-media-upload",F),A(U(o.prototype),"setup",this).call(this,e)}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=S.a,this.RankMathAfterFocusKeyword=C.a,this.RankMathAdvancedTab=I.a,this.slots={AfterEditor:S.a,AfterFocusKeyword:C.a,AdvancedTab:I.a}}},{key:"updatePermalink",value:function(e){Object(i.dispatch)("rank-math").updatePermalink(e)}},{key:"updatePermalinkSanitize",value:function(e){e=this.assessor.getResearch("slugify")(e),Object(i.dispatch)("rank-math").updatePermalink(e)}}])&&x(t.prototype,n),r&&x(t,r),o}(c.a);a()((function(){window.rankMathEditor=new L,window.rankMathGutenberg=window.rankMathEditor,new T,elementor.once("preview:loaded",(function(){$e.components.get("panel/elements").addTab("rank-math",{title:"SEO"}),window.rankMathEditor.setup(new w),Object(i.dispatch)("rank-math").refreshResults()}))})),a()(window).on("elementor:init",(function(){elementor.hooks.addFilter("panel/elements/regionViews",j)}))}]);
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=79)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=wp.components},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=wp.compose},function(e,t){e.exports=rankMathAnalyzer},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n.n(r);function i(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,r.key,r)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,r;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():a()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&i(t.prototype,n),r&&i(t,r),e}())},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var o=a.apply(null,r);o&&e.push(o)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var l in r)n.call(r,l)&&r[l]&&e.push(l);else e.push(r.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=wp.url},function(e,t){e.exports=wp.blockEditor},function(e,t,n){"use strict";var r=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),r.innerHTML=e,e=r.textContent,r.textContent=""),e}},,function(e,t){e.exports=wp.apiFetch},,function(e,t,n){"use strict";n.d(t,"a",(function(){return wn}));var r={};n.r(r),n.d(r,"updateKeywords",(function(){return p})),n.d(r,"updatePillarContent",(function(){return m})),n.d(r,"toggleFrontendScore",(function(){return d})),n.d(r,"updateAnalysisScore",(function(){return h})),n.d(r,"updateCanonicalUrl",(function(){return f})),n.d(r,"updateAdvancedRobots",(function(){return b})),n.d(r,"updateRobots",(function(){return g})),n.d(r,"updateBreadcrumbTitle",(function(){return w})),n.d(r,"resetDirtyMetadata",(function(){return y})),n.d(r,"updateFacebookTitle",(function(){return v})),n.d(r,"updateFacebookDescription",(function(){return k})),n.d(r,"updateFacebookImage",(function(){return O})),n.d(r,"updateFacebookImageID",(function(){return _})),n.d(r,"updateFacebookHasOverlay",(function(){return j})),n.d(r,"updateFacebookImageOverlay",(function(){return E})),n.d(r,"updateAppData",(function(){return s})),n.d(r,"updateAppUi",(function(){return u})),n.d(r,"updatePostID",(function(){return T})),n.d(r,"updatePermalink",(function(){return S})),n.d(r,"updateTitle",(function(){return I})),n.d(r,"updateDescription",(function(){return C})),n.d(r,"updateFeaturedImage",(function(){return D})),n.d(r,"updatePrimaryTermID",(function(){return P})),n.d(r,"updateRedirection",(function(){return x})),n.d(r,"updateRedirectionItem",(function(){return A})),n.d(r,"resetRedirection",(function(){return N})),n.d(r,"updateHasRedirect",(function(){return R})),n.d(r,"updateSerpTitle",(function(){return U})),n.d(r,"updateSerpDescription",(function(){return F})),n.d(r,"toggleSnippetEditor",(function(){return L})),n.d(r,"updateSnippetPreviewType",(function(){return H})),n.d(r,"toggleTrendsCta",(function(){return z})),n.d(r,"updateTwitterUseFacebook",(function(){return B})),n.d(r,"updateTwitterCardType",(function(){return G})),n.d(r,"updateTwitterTitle",(function(){return K})),n.d(r,"updateTwitterDescription",(function(){return V})),n.d(r,"updateTwitterAuthor",(function(){return W})),n.d(r,"updateTwitterImageID",(function(){return Y})),n.d(r,"updateTwitterImage",(function(){return $})),n.d(r,"updateTwitterHasOverlay",(function(){return q})),n.d(r,"updateTwitterImageOverlay",(function(){return Z})),n.d(r,"updateTwitterPlayerUrl",(function(){return J})),n.d(r,"updateTwitterPlayerSize",(function(){return Q})),n.d(r,"updateTwitterPlayerStreamUrl",(function(){return X})),n.d(r,"updateTwitterPlayerStreamCtype",(function(){return ee})),n.d(r,"updateTwitterAppDescription",(function(){return te})),n.d(r,"updateTwitterAppIphoneID",(function(){return ne})),n.d(r,"updateTwitterAppIphoneName",(function(){return re})),n.d(r,"updateTwitterAppIphoneUrl",(function(){return ae})),n.d(r,"updateTwitterAppIpadID",(function(){return ie})),n.d(r,"updateTwitterAppIpadName",(function(){return oe})),n.d(r,"updateTwitterAppIpadUrl",(function(){return le})),n.d(r,"updateTwitterAppGoogleplayID",(function(){return ce})),n.d(r,"updateTwitterAppGoogleplayName",(function(){return se})),n.d(r,"updateTwitterAppGoogleplayUrl",(function(){return ue})),n.d(r,"updateTwitterAppCountry",(function(){return pe})),n.d(r,"toggleLoaded",(function(){return me})),n.d(r,"updateSelectedKeyword",(function(){return de})),n.d(r,"refreshResults",(function(){return he})),n.d(r,"setVersion",(function(){return fe})),n.d(r,"toggleIsDiviPageSettingsBarActive",(function(){return be})),n.d(r,"toggleIsDiviRankMathModalActive",(function(){return ge})),n.d(r,"toggleSchemaEditor",(function(){return Ee})),n.d(r,"toggleSchemaTemplates",(function(){return Te})),n.d(r,"schemaUpdated",(function(){return Se})),n.d(r,"setEditingSchemaId",(function(){return Ie})),n.d(r,"setEditorTab",(function(){return Ce})),n.d(r,"setTemplateTab",(function(){return De})),n.d(r,"updateEditSchemas",(function(){return Pe})),n.d(r,"updateSchemas",(function(){return xe})),n.d(r,"updateEditSchema",(function(){return Ae})),n.d(r,"saveSchema",(function(){return Ne})),n.d(r,"deleteSchema",(function(){return Re})),n.d(r,"saveTemplate",(function(){return Me}));var a={};n.r(a),n.d(a,"appData",(function(){return Ge})),n.d(a,"appUi",(function(){return $e}));var i={};n.r(i),n.d(i,"getAppData",(function(){return qe})),n.d(i,"getDirtyMetadata",(function(){return Ze})),n.d(i,"getAnalysisScore",(function(){return Je})),n.d(i,"getKeywords",(function(){return Qe})),n.d(i,"getPillarContent",(function(){return Xe})),n.d(i,"getRobots",(function(){return et})),n.d(i,"getAdvancedRobots",(function(){return tt})),n.d(i,"getCanonicalUrl",(function(){return nt})),n.d(i,"getBreadcrumbTitle",(function(){return rt})),n.d(i,"getRichSnippets",(function(){return at})),n.d(i,"getShowScoreFrontend",(function(){return it})),n.d(i,"isLoaded",(function(){return ot})),n.d(i,"getSelectedKeyword",(function(){return lt})),n.d(i,"isRefreshing",(function(){return ct})),n.d(i,"isPro",(function(){return st})),n.d(i,"isDiviPageSettingsBarActive",(function(){return ut})),n.d(i,"isDiviRankMathModalActive",(function(){return pt})),n.d(i,"getFacebookTitle",(function(){return mt})),n.d(i,"getFacebookDescription",(function(){return dt})),n.d(i,"getFacebookAuthor",(function(){return ht})),n.d(i,"getFacebookImageID",(function(){return ft})),n.d(i,"getFacebookImage",(function(){return bt})),n.d(i,"getFacebookHasOverlay",(function(){return gt})),n.d(i,"getFacebookImageOverlay",(function(){return wt})),n.d(i,"getPostID",(function(){return yt})),n.d(i,"getTitle",(function(){return vt})),n.d(i,"getPermalink",(function(){return kt})),n.d(i,"getDescription",(function(){return Ot})),n.d(i,"getFeaturedImage",(function(){return _t})),n.d(i,"getFeaturedImageHtml",(function(){return jt})),n.d(i,"getPrimaryTermID",(function(){return Et})),n.d(i,"getRedirectionID",(function(){return Tt})),n.d(i,"getRedirectionType",(function(){return St})),n.d(i,"getRedirectionUrl",(function(){return It})),n.d(i,"getRedirectionItem",(function(){return Ct})),n.d(i,"hasRedirect",(function(){return Dt})),n.d(i,"getSerpTitle",(function(){return xt})),n.d(i,"getSerpDescription",(function(){return At})),n.d(i,"isSnippetEditorOpen",(function(){return Nt})),n.d(i,"getSnippetPreviewType",(function(){return Rt})),n.d(i,"isTrendsCtaOpen",(function(){return Mt})),n.d(i,"isSchemaEditorOpen",(function(){return Ut})),n.d(i,"isSchemaTemplatesOpen",(function(){return Ft})),n.d(i,"hasSchemaUpdated",(function(){return Lt})),n.d(i,"getSchemas",(function(){return Ht})),n.d(i,"getEditSchemas",(function(){return zt})),n.d(i,"getEditingSchema",(function(){return Bt})),n.d(i,"getPreviewSchema",(function(){return Gt})),n.d(i,"getEditorTab",(function(){return Kt})),n.d(i,"getTemplateTab",(function(){return Vt})),n.d(i,"getTwitterUseFacebook",(function(){return Wt})),n.d(i,"getTwitterCardType",(function(){return Yt})),n.d(i,"getTwitterTitle",(function(){return $t})),n.d(i,"getTwitterDescription",(function(){return qt})),n.d(i,"getTwitterAuthor",(function(){return Zt})),n.d(i,"getTwitterImageID",(function(){return Jt})),n.d(i,"getTwitterImage",(function(){return Qt})),n.d(i,"getTwitterHasOverlay",(function(){return Xt})),n.d(i,"getTwitterImageOverlay",(function(){return en})),n.d(i,"getTwitterAppDescription",(function(){return tn})),n.d(i,"getTwitterAppIphoneID",(function(){return nn})),n.d(i,"getTwitterAppIphoneName",(function(){return rn})),n.d(i,"getTwitterAppIphoneUrl",(function(){return an})),n.d(i,"getTwitterAppIpadID",(function(){return on})),n.d(i,"getTwitterAppIpadName",(function(){return ln})),n.d(i,"getTwitterAppIpadUrl",(function(){return cn})),n.d(i,"getTwitterAppGoogleplayID",(function(){return sn})),n.d(i,"getTwitterAppGoogleplayName",(function(){return un})),n.d(i,"getTwitterAppGoogleplayUrl",(function(){return pn})),n.d(i,"getTwitterAppCountry",(function(){return mn})),n.d(i,"getTwitterPlayerUrl",(function(){return dn})),n.d(i,"getTwitterPlayerSize",(function(){return hn})),n.d(i,"getTwitterPlayerStream",(function(){return fn})),n.d(i,"getTwitterPlayerStreamCtype",(function(){return bn}));var o=n(4),l=n(9),c=n(6);function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(c.applyFilters)("rank_math_sanitize_data",t,e,n),null!==r&&(r=Object(c.applyFilters)("rank_math_sanitize_meta_value",r,e,n)),r=null===r?t:r,Object(c.doAction)("rank_math_data_changed",e,t,n),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:n,metaValue:r}}function u(e,t){return Object(c.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function p(e){return l.a.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),s("keywords",e,"rank_math_focus_keyword")}function m(e){return s("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function d(e){return s("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function h(e){return s("score",e,"rank_math_seo_score")}function f(e){return s("canonicalUrl",e,"rank_math_canonical_url")}function b(e){return s("advancedRobots",e,"rank_math_advanced_robots")}function g(e){return s("robots",e,"rank_math_robots",Object.keys(e))}function w(e){return s("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function y(){return s("dirtyMetadata",{})}function v(e){return s("facebookTitle",e,"rank_math_facebook_title")}function k(e){return s("facebookDescription",e,"rank_math_facebook_description")}function O(e){return s("facebookImage",e,"rank_math_facebook_image")}function _(e){return s("facebookImageID",e,"rank_math_facebook_image_id")}function j(e){return s("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function E(e){return s("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function T(e){return rankMath.objectID=e,s("postID",e)}function S(e){return s("permalink",e,"permalink")}function I(e){return s("title",e,"rank_math_title")}function C(e){return s("description",e,"rank_math_description")}function D(e){return s("featuredImage",e)}function P(e,t){return s("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function x(e,t){return s(e,t)}function A(e){return u("redirectionItem",e)}function N(){return u("redirectionItem",{})}function R(e){return u("hasRedirect",e)}var M=n(25);function U(e){return e=l.a.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),u("serpTitle",e)}function F(e){return e=l.a.swap(Object(M.a)(e)),rankMathEditor.refresh("description"),u("serpDescription",e)}function L(e){return u("isSnippetEditorOpen",e)}function H(e){return u("snippetPreviewType",e)}function z(e){return u("isTrendsCtaOpen",e)}function B(e){return s("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function G(e){return s("twitterCardType",e,"rank_math_twitter_card_type")}function K(e){return s("twitterTitle",e,"rank_math_twitter_title")}function V(e){return s("twitterDescription",e,"rank_math_twitter_description")}function W(e){return s("twitterAuthor",e,"rank_math_twitter_author")}function Y(e){return s("twitterImageID",e,"rank_math_twitter_image_id")}function $(e){return s("twitterImage",e,"rank_math_twitter_image")}function q(e){return s("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function Z(e){return s("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function J(e){return s("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function Q(e){return s("twitterPlayerSize",e,"rank_math_twitter_player_size")}function X(e){return s("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function ee(e){return s("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function te(e){return s("twitterAppDescription",e,"rank_math_twitter_app_description")}function ne(e){return s("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function re(e){return s("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function ae(e){return s("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function ie(e){return s("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function oe(e){return s("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function le(e){return s("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function ce(e){return s("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function se(e){return s("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function ue(e){return s("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function pe(e){return s("twitterAppCountry",e,"rank_math_twitter_app_country")}function me(e){return u("isLoaded",e)}function de(e){return u("selectedKeyword",e)}function he(){return u("refreshResults",Date.now())}function fe(){return u("isPro",!0)}function be(e){return u("isDiviPageSettingsBarActive",e)}function ge(e){return u("isDiviRankMathModalActive",e)}var we=n(1),ye=n(0),ve=n(15),ke=n.n(ve);function Oe(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 _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e){return u("isSchemaEditorOpen",e)}function Te(e){return u("isSchemaTemplatesOpen",e)}function Se(e){return u("schemaUpdated",e)}function Ie(e){return u("editingSchemaId",e)}function Ce(e){return u("editorTab",e)}function De(e){return u("templateTab",e)}function Pe(e){return u("editSchemas",e)}function xe(e){return s("schemas",e)}function Ae(e,t){var n=_e({},Object(o.select)("rank-math").getEditSchemas());return n[e]=t,u("editSchemas",n)}function Ne(e,t){var n=_e({},Object(o.select)("rank-math").getSchemas());return n[e]=t,s("schemas",n)}function Re(e){var t=_e({},Object(o.select)("rank-math").getSchemas());return delete t[e],Object(c.doAction)("rank_math_schema_trash",e),s("schemas",t,"rank_math_delete_"+e,"")}function Me(e,t,n){return ke()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:n}}).then((function(n){t({loading:!1,showNotice:!0,postId:n.id}),setTimeout((function(){t({showNotice:!1}),Object(we.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(ye.__)("Edit Schema","rank-math"),window.history.pushState(null,"",n.link.replace(/&amp;/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function Ue(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 Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){Le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var He=rankMath.assessor.serpData,ze=rankMath.assessor.hasRedirection,Be={postID:null,title:He.title?He.title:He.titleTemplate,description:He.description,keywords:He.focusKeywords,pillarContent:He.pillarContent,featuredImage:"",permalink:!1,primaryTerm:He.primaryTerm,robots:He.robots,advancedRobots:He.advancedRobots,canonicalUrl:He.canonicalUrl,breadcrumbTitle:He.breadcrumbTitle,showScoreFrontend:He.showScoreFrontend,redirectionID:ze?Object(we.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:ze?Object(we.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:ze?Object(we.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:He.facebookTitle,facebookImage:He.facebookImage,facebookImageID:He.facebookImageID,facebookAuthor:He.facebookAuthor,facebookDescription:He.facebookDescription,facebookHasOverlay:He.facebookHasOverlay,facebookImageOverlay:He.facebookImageOverlay,twitterTitle:He.twitterTitle,twitterImage:He.twitterImage,twitterAuthor:He.twitterAuthor,twitterImageID:He.twitterImageID,twitterCardType:He.twitterCardType,twitterUseFacebook:He.twitterUseFacebook,twitterDescription:He.twitterDescription,twitterHasOverlay:He.twitterHasOverlay,twitterImageOverlay:He.twitterImageOverlay,twitterPlayerUrl:He.twitterPlayerUrl,twitterPlayerSize:He.twitterPlayerSize,twitterPlayerStream:He.twitterPlayerStream,twitterPlayerStreamCtype:He.twitterPlayerStreamCtype,twitterAppDescription:He.twitterAppDescription,twitterAppIphoneName:He.twitterAppIphoneName,twitterAppIphoneID:He.twitterAppIphoneID,twitterAppIphoneUrl:He.twitterAppIphoneUrl,twitterAppIpadName:He.twitterAppIpadName,twitterAppIpadID:He.twitterAppIpadID,twitterAppIpadUrl:He.twitterAppIpadUrl,twitterAppGoogleplayName:He.twitterAppGoogleplayName,twitterAppGoogleplayID:He.twitterAppGoogleplayID,twitterAppGoogleplayUrl:He.twitterAppGoogleplayUrl,twitterAppCountry:He.twitterAppCountry,schemas:Object(we.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function Ge(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Be,n=arguments.length>1?arguments[1]:void 0,r=Fe({},t.dirtyMetadata);return!1!==n.metaKey&&(r[n.metaKey]=n.metaValue),"RANK_MATH_APP_DATA"===n.type?"dirtyMetadata"===n.key?Fe(Fe({},t),{},{dirtyMetadata:n.value}):Fe(Fe({},t),{},(Le(e={},n.key,n.value),Le(e,"dirtyMetadata",r),e)):t}function Ke(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 Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){We(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ye={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(we.isEmpty)(Object(we.get)(rankMath.assessor,"redirection.id",""))||!Object(we.isEmpty)(Object(we.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1};function $e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ye,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?Ve(Ve({},e),{},We({},t.key,t.value)):e}function qe(e){return e.appData}function Ze(e){return e.appData.dirtyMetadata}function Je(e){return e.appData.score}function Qe(e){return e.appData.keywords}function Xe(e){return e.appData.pillarContent}function et(e){return e.appData.robots}function tt(e){return e.appData.advancedRobots}function nt(e){return e.appData.canonicalUrl}function rt(e){return e.appData.breadcrumbTitle}function at(e){return"todo"}function it(e){return e.appData.showScoreFrontend}function ot(e){return e.appUi.isLoaded}function lt(e){return e.appUi.selectedKeyword}function ct(e){return e.appUi.refreshResults}function st(e){return e.appUi.isPro}function ut(e){return e.appUi.isDiviPageSettingsBarActive}function pt(e){return e.appUi.isDiviRankMathModalActive}function mt(e){return e.appData.facebookTitle}function dt(e){return e.appData.facebookDescription}function ht(e){return e.appData.facebookAuthor}function ft(e){return e.appData.facebookImageID}function bt(e){return e.appData.facebookImage}function gt(e){return e.appData.facebookHasOverlay}function wt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function yt(e){return e.appData.postID}function vt(e){return e.appData.title}function kt(e){return e.appData.permalink}function Ot(e){return e.appData.description}function _t(e){return e.appData.featuredImage}function jt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function Et(e){return e.appData.primaryTerm}function Tt(e){return e.appData.redirectionID}function St(e){return e.appData.redirectionType}function It(e){return e.appData.redirectionUrl}function Ct(e){return e.appUi.redirectionItem}function Dt(e){return e.appUi.hasRedirect}var Pt=n(13);function xt(e){return Object(Pt.a)(e.appUi.serpTitle)}function At(e){return e.appUi.serpDescription}function Nt(e){return e.appUi.isSnippetEditorOpen}function Rt(e){return e.appUi.snippetPreviewType}function Mt(e){return e.appUi.isTrendsCtaOpen}function Ut(e){return e.appUi.isSchemaEditorOpen}function Ft(e){return e.appUi.isSchemaTemplatesOpen}function Lt(e){return e.appUi.schemaUpdated}function Ht(e){return e.appData.schemas}function zt(e){return e.appUi.editSchemas}function Bt(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function Gt(e){return e.appData.schemas[e.appUi.editingSchemaId]}function Kt(e){return e.appUi.editorTab}function Vt(e){return e.appUi.templateTab}function Wt(e){return e.appData.twitterUseFacebook}function Yt(e){return e.appData.twitterCardType}function $t(e){return e.appData.twitterTitle}function qt(e){return e.appData.twitterDescription}function Zt(e){return e.appData.twitterAuthor}function Jt(e){return e.appData.twitterImageID}function Qt(e){return e.appData.twitterImage}function Xt(e){return e.appData.twitterHasOverlay}function en(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function tn(e){return e.appData.twitterAppDescription}function nn(e){return e.appData.twitterAppIphoneID}function rn(e){return e.appData.twitterAppIphoneName}function an(e){return e.appData.twitterAppIphoneUrl}function on(e){return e.appData.twitterAppIpadID}function ln(e){return e.appData.twitterAppIpadName}function cn(e){return e.appData.twitterAppIpadUrl}function sn(e){return e.appData.twitterAppGoogleplayID}function un(e){return e.appData.twitterAppGoogleplayName}function pn(e){return e.appData.twitterAppGoogleplayUrl}function mn(e){return e.appData.twitterAppCountry}function dn(e){return e.appData.twitterPlayerUrl}function hn(e){return e.appData.twitterPlayerSize}function fn(e){return e.appData.twitterPlayerStream}function bn(e){return e.appData.twitterPlayerStreamCtype}var gn=Object(o.registerStore)("rank-math",{reducer:Object(o.combineReducers)(a),selectors:i,actions:r});function wn(){return gn}},,function(e,t,n){"use strict";var r=n(1);t.a=function(e,t,n,a){return Object(r.isUndefined)(t)?t:(t=Object(r.truncate)(t,{length:n,separator:a||" "}),""===e?t:t.replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"})))}},function(e,t,n){"use strict";t.a=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},,function(e,t,n){"use strict";var r=n(2),a=Object(r.createSlotFill)("RankMathAfterFocusKeyword"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement("div",{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(2),a=Object(r.createSlotFill)("RankMathAfterEditor"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(2),a=Object(r.createSlotFill)("RankMathAdvancedTab"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";n(3);var r=n(8),a=n(1),i=n(6),o=n(9),l=n(13),c=function(e,t){return e=(e=r.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(a.truncate)(e,{length:t,separator:" "}):e};t.a=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),n=t.excerpt,s=t.content?function(e){if(Object(a.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(a.filter)(r.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==e.trim()}));if(!t.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var i=Object(a.filter)(t,(function(e){return Object(a.includes)(e.toLowerCase(),n.toLowerCase())}));if(0<i.length)return c(i[0],160)}return c(t[0],160)}(t.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",u=Object(a.isUndefined)(n)||Object(a.isEmpty)(n)?s:n;if(o.a.setVariable("excerpt",u),o.a.setVariable("seo_description",u),""!==(e=Object(l.a)(Object(i.applyFilters)("rankMath/description",e))))return r.Helpers.cleanText(e);if(!Object(a.isUndefined)(n)&&!Object(a.isEmpty)(n))return r.Helpers.cleanText(n);var p=rankMath.assessor.serpData.descriptionTemplate;return Object(a.isUndefined)(p)||""===p?s:r.Helpers.cleanText(p)}},function(e,t,n){"use strict";var r=n(0),a=n(6);function i(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,r.key,r)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,n,o;return t=e,(n=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(r.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(r.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(r.sprintf)(Object(r.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(r.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(t.prototype,n),o&&i(t,o),e}();t.a=o},function(e,t,n){"use strict";var r=n(1),a=n(13);function i(e,t,n){var a=0;return!1!==Object(r.get)(n,"pixelWidth",!1)&&(a=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),a)+"%"}function o(e,t){return e<=t.min||e>t.max}function l(e,t){return e<=t.minWidth||e>t.pixelWidth}t.a=function(e,t){var n=Object(a.a)(e).length,c=0,s=!1;if(!1!==Object(r.get)(t,"pixelWidth",!1)){s=!0;var u=document.createTextNode(e),p=document.createElement("span");p.appendChild(u),p.id="rank-math-width-tester",p.className=t.widthCheckerClass;var m=document.body.appendChild(p);c=document.getElementById("rank-math-width-tester").offsetWidth,m.outerHTML=""}return{left:i(n,c,t),isInvalid:o(n,t),isInvalidWidth:!!s&&l(c,t),count:n+" / "+t.max,pixelWidth:s?c+"px / "+t.pixelWidth+"px":""}}},function(e,t,n){"use strict";var r=n(0),a=n(7),i=n(5),o=n(2),l=n(4);t.a=Object(a.compose)(Object(l.withSelect)((function(e){return{isTrendsCtaOpen:e("rank-math").isTrendsCtaOpen()}})),Object(l.withDispatch)((function(e,t){return{toggleTrendsCta:function(){e("rank-math").toggleTrendsCta(!t.isTrendsCtaOpen)}}})))((function(e){var t=e.isTrendsCtaOpen,n=e.toggleTrendsCta;return wp.element.createElement(i.Fragment,null,wp.element.createElement("a",{href:"#",title:Object(r.__)("Trends","rank-math"),rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon},onClick:n}),t&&wp.element.createElement(o.Modal,{title:Object(r.__)("Google Trends","rank-math"),closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!0,onRequestClose:n,className:"rank-math-modal rank-math-trends-cta-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"components-panel__body rank-math-trends-cta-wrapper"},wp.element.createElement("img",{src:rankMath.trendsPreviewImage,alt:"",className:"trends-cta blurred"}),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"center"},wp.element.createElement("div",{className:"rank-math-cta-box blue-ticks width-50"},wp.element.createElement("h3",null,Object(r.__)("Track Keyword Trends","rank-math")),wp.element.createElement("ul",null,wp.element.createElement("li",null,Object(r.__)("Data fetched directly from Google","rank-math")),wp.element.createElement("li",null,Object(r.__)("Analyze search trends and compare keywords","rank-math")),wp.element.createElement("li",null,Object(r.__)("See data from a particular Country or timeframe","rank-math"))),wp.element.createElement("a",{className:"button button-primary is-green",href:rankMath.trendsUpgradeLink,rel:"noreferrer noopener",target:"_blank"},Object(r.__)("Upgrade","rank-math")))))))}))},function(e,t){e.exports=Tagify},function(e,t,n){"use strict";var r=n(1);t.a=function(e,t){var n=Object(r.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}},function(e,t){e.exports=wp.htmlEntities},,function(e,t,n){"use strict";var r=n(4),a=n(20);t.a=Object(r.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Object(a.a)(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))}))},function(e,t){e.exports=React},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(51),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},function(e,t,n){var r=n(37).Symbol;e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=l(n(34)),i=l(n(46)),o=l(n(49));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function s(e,t){var n,o,l,u,p,m,d,h,f=[],b={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],l=m;break}f.push(t[p.value])}else f.push(p.value);return n&&(u=function(e,t){var n,r,a=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,e),d=s(e.slice(l+1,u),t),o=a.default.cloneElement(n,{},d),f.push(o),u<e.length-1&&(h=s(e.slice(u+1),t),f=f.concat(h))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,i.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,a=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,o.default)(t);try{return s(i,n)}catch(e){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t,n){var r=n(36),a=n(50),i=n(53),o=Math.max,l=Math.min;e.exports=function(e,t,n){var c,s,u,p,m,d,h=0,f=!1,b=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(t){var n=c,r=s;return c=s=void 0,h=t,p=e.apply(r,n)}function y(e){return h=e,m=setTimeout(k,t),f?w(e):p}function v(e){var n=e-d;return void 0===d||n>=t||n<0||b&&e-h>=u}function k(){var e=a();if(v(e))return O(e);m=setTimeout(k,function(e){var n=t-(e-d);return b?l(n,u-(e-h)):n}(e))}function O(e){return m=void 0,g&&c?w(e):(c=s=void 0,p)}function _(){var e=a(),n=v(e);if(c=arguments,s=this,d=e,n){if(void 0===m)return y(d);if(b)return clearTimeout(m),m=setTimeout(k,t),w(d)}return void 0===m&&(m=setTimeout(k,t)),p}return t=i(t)||0,r(n)&&(f=!!n.leading,u=(b="maxWait"in n)?o(i(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),_.cancel=function(){void 0!==m&&clearTimeout(m),h=0,c=d=s=m=void 0},_.flush=function(){return void 0===m?p:O(a())},_}},,,function(e,t,n){"use strict";var r=n(0),a=n(4),i=n(6),o=n(5),l=n(10),c=n.n(l),s=n(1),u=n(7),p=n(2);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var d=["tabId","onClick","children","selected"];function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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,r.key,r)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(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 a=v(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(){return(k=Object.assign||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}).apply(this,arguments)}function O(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(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)&&(a[n]=e[n])}return a}var _=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=O(e,d);return wp.element.createElement(p.Button,k({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},j=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}}),t&&g(e,t)}(i,e);var t,n,r,a=w(i);function i(){var e;f(this,i),(e=a.apply(this,arguments)).handleClick=function(t){var n=e.props.onSelect,r=void 0===n?s.noop:n;e.setState({selected:t}),r(t)},e.onNavigate=function(e,t){t.click()},e.toggle=function(){e.setState((function(e){return{isOpen:!e.isOpen}}))};var t=e.props,n=t.tabs,r=t.initialTabName;return e.state={isOpen:!1,selected:r||(n.length>0?n[0].name:null)},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,o=n.instanceId,l=n.orientation,u=void 0===l?"horizontal":l,m=n.tabs,d=Object(s.find)(m,{name:t}),f=o+"-"+d.name,b=m.slice(4);return wp.element.createElement("div",{className:i},wp.element.createElement(p.NavigableMenu,{role:"tablist",orientation:u,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},m.slice(0,4).map((function(n){return wp.element.createElement(_,{className:c()("components-tab-panel__tabs-item",n.className,h({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})),!Object(s.isEmpty)(b)&&wp.element.createElement(p.Button,{onClick:this.toggle,"aria-expanded":this.state.isOpen,className:c()("components-tab-panel__tabs-item",{active:this.state.isOpen})},wp.element.createElement("i",{className:"rm-icon rm-icon-plus"}),wp.element.createElement("span",null,"More")),this.state.isOpen&&wp.element.createElement("div",{className:"rank-math-extra-menu"},b.map((function(n){return wp.element.createElement(_,{className:c()("components-tab-panel__tabs-item",n.className,h({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})))),d&&wp.element.createElement("div",{"aria-labelledby":f,role:"tabpanel",id:f+"-view",className:"components-tab-panel__tab-content"},this.props.children(d)))}}])&&b(t.prototype,n),r&&b(t,r),i}(o.Component),E=Object(u.withInstanceId)(j),T=n(27),S=function(e){var t=Object(T.a)(e.source,e),n=t.pixelWidth?" (".concat(t.pixelWidth,")"):"";return wp.element.createElement("span",{className:c()("length-indicator-wrapper",{invalid:t.isInvalid})},wp.element.createElement("span",{className:"length-count"},t.count,n),wp.element.createElement("span",{className:"length-indicator"},wp.element.createElement("span",{style:{left:t.left}})))},I=n(31),C=n(39),D=n.n(C),P=function(e){var t=e.tags,n=e.components,r=e.children;return n=n||{},!1===Object(s.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),D()({mixedString:r,components:n})};function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(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,r.key,r)}}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(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=F(e);if(t){var a=F(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==x(t)&&"function"!=typeof t?U(e):t}function U(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L=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}}),t&&N(e,t)}(l,e);var t,n,a,i=R(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this,e)).state={},t.state.variables=t.getFiltered(),t.state.filtered=t.state.variables,t.state.display="none",t.state.isOpen=!1,t.handleOutsideClick=t.handleOutsideClick.bind(U(t)),t}return t=l,(n=[{key:"getFiltered",value:function(){var e=this.props.exclude,t=Object.values(rankMath.variables);return Object(s.isUndefined)(e)?t:t.filter((function(t){return!e.includes(t.variable)}))}},{key:"render",value:function(){var e=this;return wp.element.createElement(o.Fragment,null,wp.element.createElement("div",{className:"rank-math-variables-dropdown",style:{display:this.state.display},ref:function(t){e.node=t}},wp.element.createElement(p.TextControl,{autoComplete:"off",placeholder:Object(I.decodeEntities)(Object(r.__)("Search &hellip;","rank-math")),onChange:function(t){e.handleSearch(t)}}),wp.element.createElement("ul",null,this.state.filtered.map((function(t,n){return wp.element.createElement("li",{key:n,"data-var":t.variable,role:"presentation",onClick:function(){e.props.onClick(t)}},wp.element.createElement("strong",null,t.name),wp.element.createElement("span",null,wp.element.createElement(P,{tags:"strong"},t.description.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"))))}),this))),wp.element.createElement(p.Button,{icon:"arrow-down-alt2",onClick:function(){e.toggle()}}))}},{key:"toggle",value:function(){this.state.isOpen?document.removeEventListener("click",this.handleOutsideClick,!1):document.addEventListener("click",this.handleOutsideClick,!1),this.setState({display:this.state.isOpen?"none":"block",isOpen:!this.state.isOpen})}},{key:"handleOutsideClick",value:function(e){this.node.contains(e.target)||this.toggle()}},{key:"handleSearch",value:function(e){var t=e.toLowerCase();2>t.length?this.setState({filtered:this.state.variables}):this.setState({filtered:this.state.variables.filter((function(e){return-1!==Object.values(e).join(" ").toLowerCase().indexOf(t)}))})}}])&&A(t.prototype,n),a&&A(t,a),l}(o.Component),H=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{title:t.getTitle(),serpTitle:t.getSerpTitle()}})),Object(a.withDispatch)((function(e){return{updateTitle:function(t){e("rank-math").updateSerpTitle(t),e("rank-math").updateTitle(t)}}})))((function(e){var t=e.title,n=e.serpTitle,a=e.updateTitle;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-title"},Object(r.__)("Title","rank-math")),wp.element.createElement(S,{source:n,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextControl,{id:"rank-math-editor-title",value:t,placeholder:rankMath.assessor.serpData.titleTemplate,help:Object(r.__)("This is what will appear in the first line when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(L,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),z=n(8),B=n(11),G=Object(u.compose)(Object(a.withSelect)((function(){var e=rankMathEditor.assessor.dataCollector;return{permalink:e.getSlug(),serpPermalink:e.getPermalink()}})),Object(a.withDispatch)((function(){return{updatePermalink:function(e){rankMathEditor.updatePermalink(z.Helpers.sanitizeText(e))},updatePermalinkSanitize:function(e){rankMathEditor.updatePermalinkSanitize(z.Helpers.sanitizeText(e))}}})))((function(e){var t=e.permalink,n=e.serpPermalink,a=e.updatePermalink,i=e.updatePermalinkSanitize;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-permalink"},Object(r.__)("Permalink","rank-math")),wp.element.createElement(S,{source:Object(B.safeDecodeURIComponent)(n),min:5,max:75}),wp.element.createElement(p.TextControl,{id:"rank-math-editor-permalink",value:rankMath.is_front_page?"/":Object(B.safeDecodeURIComponent)(t),onChange:a,help:rankMath.is_front_page?Object(r.__)("Editing Homepage permalink is not possible.","rank-math"):Object(r.__)("This is the unique URL of this page, displayed below the post title in the search results.","rank-math"),disabled:rankMath.is_front_page?"disabled":"",onBlur:function(e){i(e.target.value)}}))})),K=n(13),V=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{description:t.getDescription(),serpDescription:t.getSerpDescription()}})),Object(a.withDispatch)((function(e){return{updateDescription:function(t){e("rank-math").updateSerpDescription(t),e("rank-math").updateDescription(t)}}})))((function(e){var t=e.description,n=e.serpDescription,a=e.updateDescription;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-description"},Object(r.__)("Description","rank-math")),wp.element.createElement(S,{source:n,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextareaControl,{id:"rank-math-editor-description",value:Object(K.a)(t),placeholder:n||rankMath.assessor.serpData.descriptionTemplate,help:Object(r.__)("This is what will appear as the description when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(L,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),W=Object(u.compose)(Object(a.withSelect)((function(e){return{type:e("rank-math").getSnippetPreviewType()}})),Object(a.withDispatch)((function(e,t){return{updatePreviewType:function(n){e("rank-math").updateSnippetPreviewType(n===t.type?"":n)}}})))((function(e){var t=e.type,n=e.updatePreviewType,r=c()("button button-secondary button-small",{active:"desktop"===t}),a=c()("button button-secondary button-small",{active:"mobile"===t});return wp.element.createElement("div",{className:"rank-math-button-devices alignright"},wp.element.createElement("div",{onClick:function(){return n("desktop")},className:r},wp.element.createElement("i",{className:"rm-icon rm-icon-desktop"})),wp.element.createElement("div",{onClick:function(){return n("mobile")},className:a},wp.element.createElement("i",{className:"rm-icon rm-icon-mobile"})))})),Y=n(33),$=n(19),q=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(p.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},Z=Object(a.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(s.find)(t,(function(e){return!Object(s.isEmpty)(e.metadata.isPrimary)}))}}))((function(e){var t=e.schema;if(Object(s.isEmpty)(t))return null;var n=Object(s.get)(t,"review.reviewRating",{}),a=n.ratingValue;if(Object(s.isEmpty)(a))return null;Object(s.get)(n,"worstRating",1);var i=Object(s.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},q(i,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},q(n,"filled"))}(a,0,i)),wp.element.createElement("span",{className:"serp-rating-label"},Object(r.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},a))}));function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q=Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getRobots();return{title:t.getSerpTitle(),permalink:rankMathEditor.assessor.dataCollector.getPermalink(),description:t.getSerpDescription(),previewType:t.getSnippetPreviewType(),isNoIndex:"noindex"in n,keyword:t.getSelectedKeyword().data.value}}))((function(e){var t,n=e.title,a=e.permalink,i=e.description,o=e.previewType,l=void 0===o?"desktop":o,s=e.isNoIndex,u=e.keyword,p=e.onClick,m=e.showScore,d=void 0===m||m,h=e.showDevices,f=void 0!==h&&h,b=c()("serp-preview",(J(t={"expanded-preview":""!==l},"".concat(l,"-preview"),""!==l&&f),J(t,"noindex-preview",s),t)),g=rankMathEditor.assessor.getResearch("slugify")(u);return wp.element.createElement("div",{className:b},wp.element.createElement("div",{className:"serp-preview-title","data-title":Object(r.__)("Preview","rank-math"),"data-desktop":Object(r.__)("Desktop Preview","rank-math"),"data-mobile":Object(r.__)("Mobile Preview","rank-math")},d&&wp.element.createElement(Y.a,null)," ",f&&wp.element.createElement(W,null)),wp.element.createElement("div",{className:"serp-preview-wrapper"},wp.element.createElement("div",{className:"serp-preview-bg"},wp.element.createElement("div",{className:"serp-preview-input"},wp.element.createElement("input",{type:"text",value:u||Object(r.__)("Rank Math","rank-math"),disabled:!0}),wp.element.createElement("span",{className:"serp-icon-search"},wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))),wp.element.createElement("span",{className:"serp-icon-mic"})),wp.element.createElement("div",{className:"serp-preview-menus"},wp.element.createElement("ul",null,wp.element.createElement("li",{className:"current"},wp.element.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxwYXRoIGZpbGw9IiMzNEE4NTMiIGQ9Ik0xMCAydjJhNiA2IDAgMCAxIDYgNmgyYTggOCAwIDAgMC04LTh6Ii8+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTEwIDRWMmE4IDggMCAwIDAtOCA4aDJjMC0zLjMgMi43LTYgNi02eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDQiIGQ9Ik00IDEwSDJhOCA4IDAgMCAwIDggOHYtMmMtMy4zIDAtNi0yLjY5LTYtNnoiLz48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMjIgMjAuNTlsLTUuNjktNS42OUE3Ljk2IDcuOTYgMCAwIDAgMTggMTBoLTJhNiA2IDAgMCAxLTYgNnYyYzEuODUgMCAzLjUyLS42NCA0Ljg4LTEuNjhsNS42OSA1LjY5TDIyIDIwLjU5eiIvPjwvc3ZnPgo=",alt:"","data-atf":"1"}),Object(r.__)("All","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M14 13l4 5H6l4-4 1.79 1.78L14 13zm-6.01-2.99A2 2 0 0 0 8 6a2 2 0 0 0-.01 4.01zM22 5v14a3 3 0 0 1-3 2.99H5c-1.64 0-3-1.36-3-3V5c0-1.64 1.36-3 3-3h14c1.65 0 3 1.36 3 3zm-2.01 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h7v-.01h7a1 1 0 0 0 1-1V5z"}))," ",Object(r.__)("Images","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{clipRule:"evenodd",d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{clipRule:"evenodd",d:"M10 16.5l6-4.5-6-4.5v9zM5 20h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1zm14.5 2H5a3 3 0 0 1-3-3V4.4A2.4 2.4 0 0 1 4.4 2h15.2A2.4 2.4 0 0 1 22 4.4v15.1a2.5 2.5 0 0 1-2.5 2.5z",fillRule:"evenodd"}))," ",Object(r.__)("Videos","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M12 11h6v2h-6v-2zm-6 6h12v-2H6v2zm0-4h4V7H6v6zm16-7.22v12.44c0 1.54-1.34 2.78-3 2.78H5c-1.64 0-3-1.25-3-2.78V5.78C2 4.26 3.36 3 5 3h14c1.64 0 3 1.25 3 2.78zM19.99 12V5.78c0-.42-.46-.78-1-.78H5c-.54 0-1 .36-1 .78v12.44c0 .42.46.78 1 .78h14c.54 0 1-.36 1-.78V12zM12 9h6V7h-6v2z"}))," ",Object(r.__)("News","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))," ","More")),wp.element.createElement("ul",{className:"menus-right"},wp.element.createElement("li",null,Object(r.__)("Settings","rank-math")),wp.element.createElement("li",null,Object(r.__)("Tools","rank-math")))),wp.element.createElement("div",{className:"serp-preview-result-stats"},Object(r.__)("About 43,700,000 results (0.32 seconds) ","rank-math"))),wp.element.createElement("div",{className:"serp-preview-body",role:"button",tabIndex:0,onClick:function(){p&&p()}},wp.element.createElement("div",{className:"group"},wp.element.createElement("img",{src:rankMath.siteFavIcon,width:"16",height:"16",className:"serp-preview-favicon",alt:""}),wp.element.createElement("div",{className:"serp-url",dangerouslySetInnerHTML:{__html:Object($.a)(g,z.Helpers.sanitizeText(Object(B.safeDecodeURIComponent)(a)),75,/-? +/)}})),wp.element.createElement("div",{className:"group"},wp.element.createElement("h5",{className:"serp-title",dangerouslySetInnerHTML:{__html:Object($.a)(u,z.Helpers.sanitizeText(n),60)}})),wp.element.createElement(Z,null),wp.element.createElement("div",{className:"group"},wp.element.createElement("div",{className:"serp-description",dangerouslySetInnerHTML:{__html:Object($.a)(u,z.Helpers.sanitizeText(i),160)}}))),wp.element.createElement("div",{className:"serp-preview-noindex"},wp.element.createElement("h3",null,Object(r.__)("Noindex robots meta is enabled","rank-math")),wp.element.createElement("p",null,Object(r.__)("This page will not appear in search results. You can disable noindex in the Advanced tab.","rank-math")))))})),X=Object(a.withSelect)((function(e){return{isNoIndex:"noindex"in e("rank-math").getRobots()}}))((function(){return wp.element.createElement("div",{className:"rank-math-editor-general"},wp.element.createElement(Q,{showScore:!1,showDevices:!0}),wp.element.createElement(H,null),wp.element.createElement(G,null),wp.element.createElement(V,null))})),ee=n(9),te=function(e){var t=c()("rank-math-social-preview","rank-math-social-preview-"+e.network,e.cardType);return wp.element.createElement("div",{className:t},wp.element.createElement("div",{className:"rank-math-social-preview-item"},wp.element.createElement("div",{className:"rank-math-social-preview-meta"},wp.element.createElement("div",{className:"social-profile-image"}),e.children),wp.element.createElement("div",{className:"rank-math-social-preview-item-wrapper"},wp.element.createElement("div",{className:"rank-math-social-preview-image"},wp.element.createElement("img",{className:"rank-math-social-image-thumbnail",src:e.image,alt:""}),e.hasOverlay&&e.imageOverlay&&wp.element.createElement("img",{src:rankMath.overlayImages[e.imageOverlay].url,className:"rank-math-social-preview-image-overlay overlay-position-"+rankMath.overlayImages[e.imageOverlay].position,alt:""})),wp.element.createElement("div",{className:"rank-math-social-preview-caption"},"facebook"===e.network&&wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},e.siteurl),wp.element.createElement("h3",{className:"rank-math-social-preview-title"},e.title?ee.a.swap(e.title):e.serpTitle),wp.element.createElement("p",{className:"rank-math-social-preview-description"},e.description?ee.a.swap(e.description):e.serpDescription),"twitter"===e.network&&wp.element.createElement(o.Fragment,null,wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},wp.element.createElement(p.Dashicon,{icon:"admin-links"}),e.siteurl))))))},ne=n(12),re=function(e){return wp.element.createElement("div",{className:"components-base-control field-group"},wp.element.createElement(ne.MediaUpload,{allowedTypes:["image"],multiple:!1,value:e.imageID,render:function(t){var n=t.open;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{onClick:n,className:"button",isPrimary:!0},e.imageID>0?Object(r.__)("Replace Image","rank-math"):Object(r.__)("Add Image","rank-math")),e.imageID>0&&wp.element.createElement(p.Button,{className:"button",isDestructive:!0,isLink:!0,onClick:e.removeImage},Object(r.__)("Remove Image","rank-math")))},onSelect:e.updateImage}),wp.element.createElement("p",{className:"components-base-control__help"},Object(r.__)("Upload at least 600x315px image. Recommended size is 1200x630px.","rank-math")),wp.element.createElement("div",{className:"notice notice-warning inline hidden"},wp.element.createElement("p",null,Object(r.__)("Image is smaller than the minimum size, please select a different image.","rank-math"))))};function ae(){var e=rankMath.overlayImages,t=[];return Object.keys(e).forEach((function(n){t.push({label:e[n].name,value:n})})),t}function ie(){return(ie=Object.assign||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}).apply(this,arguments)}var oe=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=function(){if(t.getFacebookImage())return t.getFacebookImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{title:t.getFacebookTitle(),description:t.getFacebookDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getFacebookAuthor(),image:n,imageID:t.getFacebookImageID(),hasOverlay:t.getFacebookHasOverlay(),imageOverlay:t.getFacebookImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateFacebookImage(""),e("rank-math").updateFacebookImageID(0),e("rank-math").updateFacebookHasOverlay(!1)},updateImage:function(t){e("rank-math").updateFacebookImage(t.url),e("rank-math").updateFacebookImageID(t.id)},updateTitle:function(t){e("rank-math").updateFacebookTitle(t)},updateDescription:function(t){e("rank-math").updateFacebookDescription(t)},updateImageOverlay:function(t){e("rank-math").updateFacebookImageOverlay(t)},toggleOverlay:function(t){e("rank-math").updateFacebookHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(te,ie({},e,{network:"facebook",siteurl:rankMath.parentDomain}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName),wp.element.createElement("div",{className:"social-time"},wp.element.createElement("span",null,Object(r.__)("2 hrs","rank-math")),wp.element.createElement("span",null,wp.element.createElement(p.Dashicon,{icon:"admin-site",size:"12"})))),wp.element.createElement("div",{className:"notice notice-alt notice-info components-base-control"},wp.element.createElement("p",null,Object(r.__)("Customize the title, description and images of your post used while sharing on Facebook and Twitter.","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/kb/meta-box-social-tab/?utm_source=Plugin&utm_medium=Gutenberg%20Social%20Tab&utm_campaign=WP",target:"_blank",rel:"noreferrer noopener"},Object(r.__)("Read more","rank-math")))),wp.element.createElement(re,e),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ae(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Facebook, it might get you penalised if over-used.","rank-math"))))))})),le=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{country:t.getTwitterAppCountry(),description:t.getTwitterAppDescription(),iphoneName:t.getTwitterAppIphoneName(),iphoneID:t.getTwitterAppIphoneID(),iphoneUrl:t.getTwitterAppIphoneUrl(),ipadName:t.getTwitterAppIpadName(),ipadID:t.getTwitterAppIpadID(),ipadUrl:t.getTwitterAppIpadUrl(),googleplayName:t.getTwitterAppGoogleplayName(),googleplayID:t.getTwitterAppGoogleplayID(),googleplayUrl:t.getTwitterAppGoogleplayUrl()}})),Object(a.withDispatch)((function(e){return{updateAppIphoneName:function(t){e("rank-math").updateTwitterAppIphoneName(t)},updateAppIphoneID:function(t){e("rank-math").updateTwitterAppIphoneID(t)},updateAppIphoneUrl:function(t){e("rank-math").updateTwitterAppIphoneUrl(t)},updateAppIpadName:function(t){e("rank-math").updateTwitterAppIpadName(t)},updateAppIpadID:function(t){e("rank-math").updateTwitterAppIpadID(t)},updateAppIpadUrl:function(t){e("rank-math").updateTwitterAppIpadUrl(t)},updateAppGoogleplayName:function(t){e("rank-math").updateTwitterAppGoogleplayName(t)},updateAppGoogleplayID:function(t){e("rank-math").updateTwitterAppGoogleplayID(t)},updateAppGoogleplayUrl:function(t){e("rank-math").updateTwitterAppGoogleplayUrl(t)},updateAppDescription:function(t){e("rank-math").updateTwitterAppDescription(t)},updateAppCountry:function(t){e("rank-math").updateTwitterAppCountry(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.description,label:Object(r.__)("App Description","rank-math"),help:Object(r.__)("You can use this as a more concise description than what you may have on the app store. This field has a maximum of 200 characters. (optional)","rank-math"),onChange:e.updateAppDescription}),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.iphoneName,label:Object(r.__)("iPhone App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIphoneName}),wp.element.createElement(p.TextControl,{value:e.iphoneID,label:Object(r.__)("iPhone App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIphoneID}),wp.element.createElement(p.TextControl,{value:e.iphoneUrl,label:Object(r.__)("iPhone App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIphoneUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.ipadName,label:Object(r.__)("iPad App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIpadName}),wp.element.createElement(p.TextControl,{value:e.ipadID,label:Object(r.__)("iPad App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIpadID}),wp.element.createElement(p.TextControl,{value:e.ipadUrl,label:Object(r.__)("iPad App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIpadUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.googleplayName,label:Object(r.__)("Google Play App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppGoogleplayName}),wp.element.createElement(p.TextControl,{value:e.googleplayID,label:Object(r.__)("Google Play App ID","rank-math"),help:Object(r.__)("Your app ID in the Google Play (.i.e. com.android.app)","rank-math"),onChange:e.updateAppGoogleplayID}),wp.element.createElement(p.TextControl,{value:e.googleplayUrl,label:Object(r.__)("Google Play App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppGoogleplayUrl}))}(e),wp.element.createElement(p.TextControl,{value:e.country,label:Object(r.__)("App Country","rank-math"),help:Object(r.__)("If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.","rank-math"),onChange:e.updateAppCountry}))})),ce=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{url:t.getTwitterPlayerUrl(),size:t.getTwitterPlayerSize(),stream:t.getTwitterPlayerStream(),ctype:t.getTwitterPlayerStreamCtype()}})),Object(a.withDispatch)((function(e){return{updatePlayerUrl:function(t){e("rank-math").updateTwitterPlayerUrl(t)},updatePlayerSize:function(t){e("rank-math").updateTwitterPlayerSize(t)},updatePlayerStreamUrl:function(t){e("rank-math").updateTwitterPlayerStreamUrl(t)},updatePlayerStreamCtype:function(t){e("rank-math").updateTwitterPlayerStreamCtype(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.url,label:Object(r.__)("Player URL","rank-math"),help:Object(r.__)("HTTPS URL to iFrame player. This must be a HTTPS URL which does not generate active mixed content warnings in a web browser. The audio or video player must not require plugins such as Adobe Flash.","rank-math"),onChange:e.updatePlayerUrl}),wp.element.createElement(p.TextControl,{value:e.size,label:Object(r.__)("Player Size","rank-math"),help:Object(r.__)("iFrame width and height, specified in pixels in the following format: 600x400.","rank-math"),onChange:e.updatePlayerSize}),wp.element.createElement(p.TextControl,{value:e.stream,label:Object(r.__)("Stream URL","rank-math"),help:Object(r.__)("Optional URL to raw stream that will be rendered in Twitter’s mobile applications directly. If provided, the stream must be delivered in the MPEG-4 container format (the .mp4 extension). The container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile (BP), Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile (LC).","rank-math"),onChange:e.updatePlayerStreamUrl}),wp.element.createElement(p.TextControl,{value:e.ctype,label:Object(r.__)("Stream Content Type","rank-math"),help:Object(r.__)("The MIME type/subtype combination that describes the content contained in twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are those defined in RFC 4337 (MIME Type Registration for MP4).","rank-math"),onChange:e.updatePlayerStreamCtype}))}));function se(){return(se=Object.assign||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}).apply(this,arguments)}var ue=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook(),r=function(){if(n&&t.getFacebookImage())return t.getFacebookImage();if(t.getTwitterImage())return t.getTwitterImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{useFacebook:n,cardType:t.getTwitterCardType(),title:n?t.getFacebookTitle():t.getTwitterTitle(),description:n?t.getFacebookDescription():t.getTwitterDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getTwitterAuthor(),image:r,imageID:n?t.getFacebookImageID():t.getTwitterImageID(),hasOverlay:n?t.getFacebookHasOverlay():t.getTwitterHasOverlay(),imageOverlay:n?t.getFacebookImageOverlay():t.getTwitterImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateTwitterImage(""),e("rank-math").updateTwitterImageID(0),e("rank-math").updateTwitterHasOverlay(!1)},updateImage:function(t){e("rank-math").updateTwitterImage(t.url),e("rank-math").updateTwitterImageID(t.id)},updateTitle:function(t){e("rank-math").updateTwitterTitle(t)},updateDescription:function(t){e("rank-math").updateTwitterDescription(t)},updateImageOverlay:function(t){e("rank-math").updateTwitterImageOverlay(t)},toggleUseFacebook:function(t){e("rank-math").updateTwitterUseFacebook(t)},updateCardType:function(t){e("rank-math").updateTwitterCardType(t)},toggleOverlay:function(t){e("rank-math").updateTwitterHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(te,se({},e,{network:"twitter",siteurl:rankMath.parentDomain,classes:e.cardType,description:Object(s.truncate)(e.description?e.description:e.serpDescription,{length:240,separator:" "})}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName,wp.element.createElement("span",{className:"social-username"},"@",e.author),wp.element.createElement("span",{className:"social-time"},Object(r.__)("2h","rank-math"))),wp.element.createElement("div",{className:"social-text"},Object(r.__)("The card for your website will look little something like this!","rank-math"))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Use Data from Facebook Tab","rank-math"),checked:e.useFacebook,onChange:e.toggleUseFacebook})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.SelectControl,{value:e.cardType,label:Object(r.__)("Card Type","rank-math"),options:[{value:"summary_large_image",label:Object(r.__)("Summary Card with Large Image","rank-math")},{value:"summary_card",label:Object(r.__)("Summary Card","rank-math")},{value:"app",label:Object(r.__)("App Card","rank-math")},{value:"player",label:Object(r.__)("Player Card","rank-math")}],onChange:e.updateCardType})),"player"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. Player Cards must be submitted for approval before they can be used. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/player",target:"blank"},"https://dev.twitter.com/cards/types/player"))),"app"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("The App Card is a great way to represent mobile applications on Twitter and to drive installs. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/app",target:"blank"}," https://dev.twitter.com/cards/types/app"))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement(re,e),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ae(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Twitter, it might get you penalised if over-used.","rank-math"))))),"player"===e.cardType&&wp.element.createElement(ce,null),"app"===e.cardType&&wp.element.createElement(le,null))})),pe=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TabPanel,{className:"rank-math-editor-social",activeClass:"is-active",tabs:[{name:"facebook",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"facebook-alt"}),Object(r.__)("Facebook","rank-math")),view:oe,className:"button-facebook"},{name:"twitter",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"twitter"}),Object(r.__)("Twitter","rank-math")),view:ue,className:"button-twitter"}]},(function(e){return Object(o.createElement)(e.view)})))},me=n(3),de=n.n(me);function he(e){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(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,r.key,r)}}function be(e,t){return(be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ge(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=ve(e);if(t){var a=ve(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return we(this,n)}}function we(e,t){return!t||"object"!==he(t)&&"function"!=typeof t?ye(e):t}function ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ke=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}}),t&&be(e,t)}(l,e);var t,n,a,i=ge(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this))._handleRef=e._handleRef.bind(ye(e)),e}return t=l,(n=[{key:"componentDidMount",value:function(){var e=de()(this.component),t=e.find(".stars a"),n=e.find(".smiley");t.on("mouseenter",(function(){var e=de()(this).index();t.removeClass("highlighted"),t.slice(0,e+1).addClass("highlighted"),e<2?n.removeClass("normal happy").addClass("angry"):e>3?n.removeClass("normal angry").addClass("happy"):n.removeClass("happy angry").addClass("normal")}))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){for(var e=this,t=[],n=1;n<=5;n++)t.push(wp.element.createElement("a",{key:n,href:"https://s.rankmath.com/wpreview",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"dashicons dashicons-star-filled"})));return wp.element.createElement("div",{className:"ask-review",ref:this._handleRef},wp.element.createElement("h3",null,Object(r.__)("Rate Rank Math SEO","rank-math")),wp.element.createElement("p",null,wp.element.createElement(P,{tags:"em"},Object(r.__)("Hey, we noticed you are using Rank Math SEO plugin for more than 2 weeks –{{em}}that's awesome!{{/em}} Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?","rank-math"))),wp.element.createElement("div",{className:"stars-wrapper"},wp.element.createElement("div",{className:"face"},wp.element.createElement("div",{className:"smiley happy"},wp.element.createElement("div",{className:"eyes"},wp.element.createElement("div",{className:"eye"}),wp.element.createElement("div",{className:"eye"})),wp.element.createElement("div",{className:"mouth"}))),wp.element.createElement("div",{className:"stars"},t)),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,wp.element.createElement("span",null,Object(r.__)("I already did. Please don't show this message again.","rank-math"))),onChange:function(){return e.alreadyReviewed()}}))}},{key:"alreadyReviewed",value:function(){de.a.ajax({url:rankMath.ajaxurl,data:{action:"rank_math_already_reviewed",security:rankMath.security}}),rankMath.pluginReviewed=!0;var e=de()(this.component);e.animate({opacity:.01},1500,(function(){var t=de()(".rank-math-editor > .components-tab-panel__tabs > button");t.first().click(),t.last().remove(),e.remove()}))}}])&&fe(t.prototype,n),a&&fe(t,a),l}(o.Component),Oe=Object(p.withFilters)("rankMath.analytics.reportButton")((function(){return null})),_e=Object(u.compose)(Object(a.withSelect)((function(e){return{isOpen:e("rank-math").isSnippetEditorOpen()}})),Object(a.withDispatch)((function(e,t){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!t.isOpen)}}})))((function(e){var t=e.isOpen,n=e.initialTab,a=void 0===n?"":n,i=e.toggleEditor,l=[{name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings"}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:X},{name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social"}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:pe}];return rankMath.showReviewTab&&!1===rankMath.pluginReviewed&&l.push({name:"review",className:"review-tab",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-heart-filled"})),view:ke}),wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{isPrimary:!0,className:"rank-math-edit-snippet",onClick:i},Object(r.__)("Edit Snippet","rank-math")),""===a&&wp.element.createElement(Oe,null),t&&wp.element.createElement(p.Modal,{title:"Preview Snippet Editor",closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!1,onRequestClose:i,className:"rank-math-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement(p.TabPanel,{className:"rank-math-tabs rank-math-editor",activeClass:"is-active",initialTabName:a,tabs:l},(function(e){return Object(o.createElement)(e.view)}))))})),je=function(){return wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(p.BaseControl,{className:"rank-math-social"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Social Media Preview","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media.","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Click on the button below to view and edit the preview.","rank-math")),wp.element.createElement(_e,{buttonLabel:Object(r.__)("Preview & Edit Social Media","rank-math"),initialTab:"social"})))},Ee=Object(u.withInstanceId)((function(e){var t=e.className,n=e.instanceId,r=e.children,a="rank-math-tooltip-"+n,i=c()("rank-math-tooltip",t);return wp.element.createElement("span",{className:i},wp.element.createElement("input",{id:a,type:"checkbox"}),wp.element.createElement("label",{htmlFor:a,className:"dashicons-before dashicons-editor-help"}),wp.element.createElement("div",{className:"rank-math-tooltip-content"},r))})),Te=n(30);function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(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,r.key,r)}}function De(e,t){return(De=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pe(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=Ae(e);if(t){var a=Ae(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return xe(this,n)}}function xe(e,t){return!t||"object"!==Se(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ae(e){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ne=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}}),t&&De(e,t)}(l,e);var t,n,a,i=Pe(l);function l(){return Ie(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e){return e.isLoaded!==this.props.isLoaded||e.selectedKeyword.index!==this.props.selectedKeyword.index||e.isRefreshing!==this.props.isRefreshing}},{key:"render",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();return this.results=rankMathEditor.resultManager.getResult(t),this.isPrimary=0===this.props.selectedKeyword.index,Object(s.isUndefined)(this.results)?null:Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}))}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e);return wp.element.createElement(p.PanelBody,{key:"panel-"+e,title:wp.element.createElement(o.Fragment,null,this.getGroupTitle(e),0===this.errors?wp.element.createElement("span",{className:"rank-math-group-score test-ok"},Object(r.__)("All Good","rank-math")):wp.element.createElement("span",{className:"rank-math-group-score test-fail"},this.errors," ",Object(r.__)("Errors","rank-math"))),initialOpen:"basic"===e,className:"rank-math-checklist"},wp.element.createElement("ul",null,t))}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,r=this.getGroupItems(e);return Object.keys(r).map((function(e){if(Object(s.isUndefined)(n[e])||!t.isPrimary&&r[e])return!1;var a=n[e],i=c()("seo-check-"+e,{"test-ok":a.hasScore(),"test-fail":!a.hasScore()});return a.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(i+=" "+Object(Te.a)(a.getScore(),a.getMaxScore())),!1===a.hasScore()&&(t.errors+=1),wp.element.createElement("li",{key:e,className:i},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:a.getText()}}),a.hasTooltip()?wp.element.createElement(Ee,null,a.getTooltip()):null)}))}},{key:"getGroupItems",value:function(e){return{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return{basic:Object(r.__)("Basic SEO","rank-math"),advanced:Object(r.__)("Additional","rank-math"),"title-readability":Object(r.__)("Title Readability","rank-math"),"content-readability":Object(r.__)("Content Readability","rank-math")}}}])&&Ce(t.prototype,n),a&&Ce(t,a),l}(o.Component),Re=Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isRefreshing:t.isRefreshing(),selectedKeyword:t.getSelectedKeyword()}}))(Ne),Me=n(22),Ue=Object(a.withSelect)((function(e){return{isPro:e("rank-math").isPro()}}))((function(e){return e.isPro?rankMath.isUserRegistered?wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:"https://rankmath.com/kb/score-100-in-tests/?utm_source=Plugin&utm_medium=Gutenberg%20General%20Tab%20Score%20Notice&utm_campaign=WP",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Read here to {{link}}Score 100/100{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=help",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Activate your account by {{link}}connecting to Rank Math!{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.futureSeo,target:"_blank",rel:"noopener noreferrer"}),strong:wp.element.createElement("strong",null)}},Object(r.__)("Want more? {{link}}{{strong}}Upgrade today to the PRO{{/strong}}{{/link}} version.","rank-math")))})),Fe=n(29),Le=n.n(Fe);function He(e){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ze(){return(ze=Object.assign||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}).apply(this,arguments)}function Be(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,r.key,r)}}function Ge(e,t){return(Ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ke(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=Ye(e);if(t){var a=Ye(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ve(this,n)}}function Ve(e,t){return!t||"object"!==He(t)&&"function"!=typeof t?We(e):t}function We(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $e=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}}),t&&Ge(e,t)}(i,e);var t,n,r,a=Ke(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e))._handleRef=t._handleRef.bind(We(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this.tagify=new Le.a(this.component,this.props.settings||{}),this.props.settings.callbacks.setup&&setTimeout((function(){e.props.settings.callbacks.setup.call(e.tagify),e.tagify.DOM.input.setAttribute("contenteditable",!0),e.tagify.DOM.input.addEventListener("blur",e.props.settings.callbacks.blur)}),100)}},{key:"shouldComponentUpdate",value:function(e){return this.tagify.settings.whitelist=e.settings.whitelist,e.showDropdown&&this.tagify.dropdown.show.call(this.tagify,e.showDropdown),!1===e.showDropdown&&this.tagify.dropdown.hide.call(this.tagify,!0),!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){var e={ref:this._handleRef,name:this.props.name,autoFocus:this.props.autofocus,className:this.props.className,placeholder:this.props.placeholder};return"textarea"===this.props.mode?wp.element.createElement("textarea",ze({},e,{defaultValue:this.props.initialValue})):wp.element.createElement("input",ze({},e,{defaultValue:this.props.initialValue}))}},{key:"toArray",value:function(){return this.tagify.value.map((function(e){return e.value}))}},{key:"toString",value:function(){return this.toArray().join(",")}},{key:"queryTags",value:function(){return this.tagify.DOM.scope.querySelectorAll("tag")}}])&&Be(t.prototype,n),r&&Be(t,r),i}(o.Component);function qe(e){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ze(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,r.key,r)}}function Je(e,t){return(Je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qe(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=tt(e);if(t){var a=tt(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Xe(this,n)}}function Xe(e,t){return!t||"object"!==qe(t)&&"function"!=typeof t?et(e):t}function et(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tt(e){return(tt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nt=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}}),t&&Je(e,t)}(l,e);var t,n,a,i=Qe(l);function l(e){var t,n=e.keywords;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this)).state={},t.request=null,t.hasAdded=!1,t.clickCount=0,t.singleClickTimer=null,t.tagifyField=Object(o.createRef)(),t.keywords=n,t.hideDropdown=t.hideDropdown.bind(et(t)),window.rankMathEditor.focusKeywordField=et(t),t}return t=l,(n=[{key:"render",value:function(){var e=this,t={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this),blur:this.hideDropdown};rankMath.isUserRegistered&&(t.input=Object(s.debounce)(this.onInput.bind(this),300));var n={addTagOnBlur:!0,maxTags:rankMath.maxTags,whitelist:this.state.whitelist||[],transformTag:function(t){t.value=e.stripTags(t.value)},templates:{tag:function(t,n){return"<tag title='".concat(e.stripTags(t),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(n.class?n.class:"","'\n ").concat(e.getAttributes_esc(n),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(e.stripTags(t),"</span>\n </div>\n </tag>")}},callbacks:t};return this.setKeywordsClasses(),wp.element.createElement($e,{ref:this.tagifyField,mode:"input",settings:n,showDropdown:this.state.showDropdown,initialValue:this.keywords,placeholder:Object(r.__)("Example: Rank Math SEO","rank-math")})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.showDropdown!==t.showDropdown||e.isRefreshing!==this.props.isRefreshing||e.keywords!==this.props.keywords}},{key:"getScoreClass",value:function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},{key:"setKeywordsClasses",value:function(){var e=this;if(null!==this.tagifyField.current){var t=this.tagifyField.current,n=t.tagify.value;if(n.length>0){var r=t.queryTags();n.map((function(t,n){var a=rankMathEditor.resultManager.getScore(z.Helpers.removeDiacritics(t.value));r[n].classList.remove("ok-fk","good-fk","bad-fk"),r[n].classList.add(e.getScoreClass(a))}))}}}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"onInput",value:function(e){var t=this;(e=Object(s.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hideDropdown(),this.hasAdded?this.hasAdded=!1:this.request=de.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var r=de.a.map(n,(function(e){return e}));t.setState({whitelist:r,showDropdown:e})}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,0===e.detail.index&&this.props.updateSelectedKeyword(e.detail,this.tagifyField.current),this.updateKeywords()}},{key:"onRemove",value:function(e){this.hideDropdown(),0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){var t=this;this.clickCount++,1===this.clickCount?this.singleClickTimer=setTimeout((function(){t.clickCount=0,t.props.updateSelectedKeyword(e.detail,t.tagifyField.current)}),400):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0)}},{key:"onEdit",value:function(){this.hasAdded=!0,this.updateKeywords()}},{key:"selectFirstKeyword",value:function(){var e=this.tagifyField.current,t=e.tagify.value,n={tag:"",index:0,data:{value:""}};t.length>0&&(n={tag:e.queryTags()[0],index:0,data:{value:t[0].value}}),this.props.updateSelectedKeyword(n,e)}},{key:"updateKeywords",value:function(){var e=this.tagifyField.current,t=this.stripTags(e.toString());this.props.updateKeywords(t)}},{key:"hideDropdown",value:function(){null!==this.request&&(this.request.abort(),this.request=null),this.setState({whitelist:[],showDropdown:!1})}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,n,r=Object.keys(e),a="";for(n=r.length;n--;)"class"!=(t=r[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=de()("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||""}}])&&Ze(t.prototype,n),a&&Ze(t,a),l}(o.Component),rt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{keywords:t.getKeywords(),isRefreshing:t.isRefreshing()}})),Object(a.withDispatch)((function(e){return{updateKeywords:function(t){e("rank-math").updateKeywords(t)},updateSelectedKeyword:function(t,n){n.queryTags().forEach((function(e){e.classList.remove("selected")})),""!==t.tag&&t.tag.classList.add("selected"),e("rank-math").updateSelectedKeyword(t)}}})))(nt),at=n(28),it=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isPillarContent:t.getPillarContent()}})),Object(a.withDispatch)((function(e,t){return{togglePillarContent:function(t){e("rank-math").updatePillarContent(t)}}})))((function(e){var t=e.isLoaded,n=e.isPillarContent,a=e.togglePillarContent;return t?wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-focus-keyword"},wp.element.createElement("h2",{className:"components-panel__body-title"},Object(r.__)("Focus Keyword","rank-math"),wp.element.createElement(Ee,null,wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.hundredScoreLink,target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Insert keywords you want to rank for. Try to {{link}}attain 100/100 points{{/link}} for better chances of ranking.","rank-math")))),!rankMath.isPro&&wp.element.createElement(at.a,null),wp.element.createElement(Me.a.Slot,null,(function(e){return e.length>0?e:[]})),wp.element.createElement("div",null,wp.element.createElement(rt,null)),wp.element.createElement(Ue,null),wp.element.createElement(p.CheckboxControl,{className:"pillar-content",label:wp.element.createElement(o.Fragment,null,wp.element.createElement("strong",null,Object(r.__)("This post is Pillar Content","rank-math")),wp.element.createElement(Ee,null,Object(r.__)("Select one or more Pillar Content posts for each post tag or category to show them in the Link Suggestions meta box.","rank-math"))),checked:n,onChange:a})):null})),ot=n(23),lt=Object(a.withDispatch)((function(e){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!0)}}}))((function(e){var t=e.toggleEditor;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(Q,{onClick:t}),wp.element.createElement(_e,null),wp.element.createElement(ot.a.Slot,null,(function(e){return e.length>0?e:[]}))),wp.element.createElement(it,null),rankMath.canUser.analysis&&wp.element.createElement(Re,null))})),ct=function(e,t,n){return!1===n?delete e[t]:e[t]=!0,e},st=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getRobots();return{robots:t,isRobotIndex:"index"in t,isRobotNoIndex:"noindex"in t,isRobotNoFollow:"nofollow"in t,isRobotNoArchive:"noarchive"in t,isRobotNoImageIndex:"noimageindex"in t,isRobotNoSnippet:"nosnippet"in t}})),Object(a.withDispatch)((function(e,t){var n=t.robots;return{updateRobots:function(t,r){n=ct(n,t,r),"index"===t&&(n=ct(n,"noindex",!r)),"noindex"===t&&(n=ct(n,"index",!r)),e("rank-math").updateRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list"},wp.element.createElement(p.CheckboxControl,{className:"robot-choice-index",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Index","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Instructs search engines to index and show these pages in the search results","rank-math"))),checked:e.isRobotIndex,onChange:function(t){return e.updateRobots("index",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Index","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents pages from being indexed and displayed in search engine result pages","rank-math"))),checked:e.isRobotNoIndex,onChange:function(t){return e.updateRobots("noindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nofollow",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Nofollow","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents search engines from following links on the pages","rank-math"))),checked:e.isRobotNoFollow,onChange:function(t){return e.updateRobots("nofollow",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noarchive",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Archive","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents search engines from showing Cached links for pages","rank-math"))),checked:e.isRobotNoArchive,onChange:function(t){return e.updateRobots("noarchive",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noimageindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Image Index","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Lets you specify that you do not want your pages to appear as the referring page for images that appear in image search results","rank-math"))),checked:e.isRobotNoImageIndex,onChange:function(t){return e.updateRobots("noimageindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nosnippet",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Snippet","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Prevents a snippet from being shown in the search results","rank-math"))),checked:e.isRobotNoSnippet,onChange:function(t){return e.updateRobots("nosnippet",t)}})))}));function ut(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 pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{redirectionID:t.getRedirectionID(),redirectionUrl:t.getRedirectionUrl(),redirectionType:t.getRedirectionType(),hasRedirect:t.hasRedirect()}})),Object(a.withDispatch)((function(e,t){return{toggle:function(){e("rank-math").updateHasRedirect(!t.hasRedirect),e("rank-math").updateRedirectionItem(pt(pt({},t),{},{hasRedirect:!t.hasRedirect}))},updateRedirection:function(n,r){e("rank-math").updateRedirection(n,r),e("rank-math").updateRedirectionItem(pt(pt({},t),{},mt({},n,r)))}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.ToggleControl,{className:e.hasRedirect?"is-open":"is-close",label:Object(r.__)("Redirect","rank-math"),checked:e.hasRedirect,onChange:function(){return e.toggle()}}),wp.element.createElement(p.SelectControl,{label:Object(r.__)("Redirection Type","rank-math"),className:e.hasRedirect?"":"hidden",value:e.redirectionType,onChange:function(t){return e.updateRedirection("redirectionType",t)},options:[{value:"301",label:Object(r.__)("301 Permanent Move","rank-math")},{value:"302",label:Object(r.__)("302 Temporary Move","rank-math")},{value:"307",label:Object(r.__)("307 Temporary Redirect","rank-math")},{value:"410",label:Object(r.__)("410 Content Deleted","rank-math")},{value:"451",label:Object(r.__)("451 Content Unavailable for Legal Reasons","rank-math")}]}),!1===["410","451"].includes(e.redirectionType)&&wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",label:Object(r.__)("Destination URL","rank-math"),value:e.redirectionUrl,placeholder:"https://rankmath.com/",className:e.hasRedirect?"":"hidden",onChange:function(t){return e.updateRedirection("redirectionUrl",t)}}),wp.element.createElement(p.TextControl,{type:"hidden",value:e.redirectionID,className:"hidden"}))})),ht=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=rankMathEditor.assessor.dataCollector;return{placeholder:t.getCanonicalUrl()?t.getCanonicalUrl():n.getPermalink()?n.getPermalink():"https://rankmath.com/",canonicalUrl:t.getCanonicalUrl()}})),Object(a.withDispatch)((function(e){return{onUrlChange:function(t){e("rank-math").updateCanonicalUrl(t)}}})))((function(e){var t=e.canonicalUrl,n=e.placeholder,a=e.onUrlChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-canonical"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Canonical URL","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("The canonical URL informs search crawlers which page is the main page if you have double content","rank-math"))),wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",value:t,placeholder:n,onChange:function(e){return a(e)}}))})),ft=Object(u.compose)(Object(a.withSelect)((function(e){return{title:e("rank-math").getBreadcrumbTitle()}})),Object(a.withDispatch)((function(e){return{onTitleChange:function(t){e("rank-math").updateBreadcrumbTitle(t)}}})))((function(e){var t=e.title,n=e.onTitleChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-breadcrumb-title"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Breadcrumb Title","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Breadcrumb Title to use for this post","rank-math"))),wp.element.createElement(p.TextControl,{value:t,onChange:function(e){return n(e)}}))}));function bt(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 gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){wt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt={"max-snippet":-1,"max-video-preview":-1,"max-image-preview":"large"},vt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getAdvancedRobots(),n=gt({},t);Object(s.defaults)(n,yt);var r=null,a=null,i=null;return"max-snippet"in t&&(r=n["max-snippet"]),"max-image-preview"in t&&(a=n["max-image-preview"]),"max-video-preview"in t&&(i=n["max-video-preview"]),{meta:t,isSnippet:r,isImage:a,isVideo:i,maxSnippet:r?n["max-snippet"]:-1,maxImage:n["max-image-preview"],maxVideo:i?n["max-video-preview"]:-1}})),Object(a.withDispatch)((function(e,t){var n=gt({},t.meta);return{updateRobots:function(t,r){Object(s.isBoolean)(r)?!1===r?delete n[t]:n[t]=yt[t]:n[t]=r,e("rank-math").updateAdvancedRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Advanced Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list advanced-robots"},wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Snippet","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Specify a maximum text-length, in characters, of a snippet for your page","rank-math"))),checked:e.isSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Video Preview","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Specify a maximum duration in seconds of an animated video preview","rank-math"))),checked:e.isVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Image Preview","rank-math"),wp.element.createElement(Ee,null,Object(r.__)("Specify a maximum size of image preview to be shown for images on this page","rank-math"))),checked:e.isImage,onChange:function(t){return e.updateRobots("max-image-preview",t)}}),wp.element.createElement(p.SelectControl,{value:e.maxImage,onChange:function(t){return e.updateRobots("max-image-preview",t)},options:[{value:"large",label:Object(r.__)("Large","rank-math")},{value:"standard",label:Object(r.__)("Standard","rank-math")},{value:"none",label:Object(r.__)("None","rank-math")}]})))})),kt=Object(u.compose)(Object(a.withSelect)((function(e){return{showScore:e("rank-math").getShowScoreFrontend()}})),Object(a.withDispatch)((function(e){return{toggleScore:function(t){e("rank-math").toggleFrontendScore(t)}}})))((function(e){var t=e.showScore,n=e.toggleScore;return wp.element.createElement(p.BaseControl,{className:"rank-math-frontend-score"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Show SEO Score on Front-end","rank-math"),checked:t,onChange:n}))})),Ot=n(24),_t=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(st,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(vt,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ht,null)),rankMath.assessor.hasBreadcrumb&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ft,null)),rankMath.assessor.hasRedirection&&wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-redirect"},wp.element.createElement(dt,null)),rankMath.frontEndScore&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(kt,null)),wp.element.createElement(Ot.a.Slot,null,(function(e){return e.length>0?e:[]})))},jt=n(40),Et=n.n(jt),Tt={init:function(){this.cacheProps(),this.initVars(),this.bindEvents()},cacheProps:function(){this.root=document.documentElement,this.$wpAdminbar=de()("#wpadminbar")},initVars:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},bindEvents:function(){window.addEventListener("resize",Et()(this.onWindowResize.bind(this)))},onWindowResize:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},setWpAdminbarHeight:function(){this.root.style.setProperty("--rankmath-wp-adminbar-height",this.$wpAdminbar.outerHeight()+"px")}};de()((function(){Tt.init()}));var St=function(e){"social"===e&&Object(a.dispatch)("rank-math").toggleSnippetEditor(!0)};t.a=function(){return wp.element.createElement(E,{className:"rank-math-tabs",activeClass:"is-active",tabs:(e=[],rankMath.canUser.general&&e.push({name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings",title:Object(r.__)("General","rank-math")}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:lt,className:"rank-math-general-tab"}),rankMath.canUser.advanced&&e.push({name:"advanced",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-toolbox",title:Object(r.__)("Advanced","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Advanced","rank-math"))),view:_t,className:"rank-math-advanced-tab"}),rankMath.canUser.social&&e.push({name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social",title:Object(r.__)("Social","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:je,className:"rank-math-social-tab"}),Object(i.applyFilters)("rank_math_sidebar_tabs",e)),onSelect:St},(function(e){return wp.element.createElement("div",{className:"rank-math-tab-content-"+e.name},Object(o.createElement)(e.view))}));var e}},function(e,t,n){"use strict";var r=n(8),a=n(6),i=n(17),o=n(1),l=n(0),c=n(4);function s(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,r.key,r)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new r.Analyzer({i18n:l,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(a.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(a.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(a.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var t,n,u;return t=e,(n=[{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===this.getSelectedKeyword().toLowerCase()&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(e,t){return"schemas"===t||Object(o.isObject)(e)||Object(o.isEmpty)(e)?e:r.Helpers.sanitizeAppData(e)}},{key:"getPaper",value:function(e,t){var n=Object(i.a)().getState(),l=this.dataCollector.getData(),c=new r.Paper("",{locale:rankMath.localeFull});return c.setTitle(n.appUi.serpTitle),c.setPermalink(l.slug),c.setDescription(n.appUi.serpDescription),c.setUrl(l.permalink),c.setText(Object(a.applyFilters)("rank_math_content",l.content)),c.setKeyword(e),c.setKeywords(t),Object(o.isUndefined)(l.featuredImage)||(c.setThumbnail(l.featuredImage.source_url),c.setThumbnailAltText(r.Helpers.removeDiacritics(l.featuredImage.alt_text))),c}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(o.debounce)((function(t){var n=Object(i.a)().getState();if(!1!==n.appUi.isLoaded){var o=n.appData.keywords.split(","),l=[];Object(a.doAction)("rank_math_"+t+"_refresh"),o.map((function(t,n){var a=e.getPaper(r.Helpers.removeDiacritics(t),o),i=0===n?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests();l.push(e.analyzer.analyzeSome(i,a).then((function(e){rankMathEditor.resultManager.update(a.getKeyword(),e,0===n),0===n&&Object(c.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(a.getKeyword()))}))),Promise.all(l).then((function(){Object(c.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var e=Object(i.a)().getState().appData.keywords;return r.Helpers.removeDiacritics(e.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var e=Object(i.a)().getState(),t=""!==e.appUi.selectedKeyword.data.value?e.appUi.selectedKeyword.data.value:e.appData.keywords.split(",")[0];return r.Helpers.removeDiacritics(t)}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}}])&&s(t.prototype,n),u&&s(t,u),e}(),p=n(26);function m(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,r.key,r)}}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"setup",value:function(e){Object(i.a)(),this.resultManager=new r.ResultManager,this.assessor=new u(e),new p.a,Object(a.doAction)("rank_math_loaded")}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(e){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(e){throw"Implement the function"}}])&&m(t.prototype,n),o&&m(t,o),e}();t.a=d},,function(e,t,n){"use strict";var r=n(34),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(35),o=n(47),l=n(48),c="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===a)return n(r,e,""===t?"."+s(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=u(i=e[d],m+s(i,d),n,r);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var f,b=h.call(e),g=0;!(f=b.next()).done;)p+=u(i=f.value,m+s(i,g++),n,r)}else if("object"===l){0;var w=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,"")}}return p}var p=/\/+/g;function m(e){return(""+e).replace(p,"$&/")}var d,h,f=b,b=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},g=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function w(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,o,l=e.result,c=e.keyPrefix,s=e.func,u=e.context,p=s.call(u,t,e.count++);Array.isArray(p)?v(p,l,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,o=c+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),l.push(p))}function v(e,t,n,r,a){var i="";null!=n&&(i=m(n)+"/");var o=w.getPooled(t,i,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,o),w.release(o)}w.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},(h=w).instancePool=[],h.getPooled=d||f,h.poolSize||(h.poolSize=10),h.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)v(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(35);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,n){var r=n(37);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(52))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(54),a=n(36),i=n(56),o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}},function(e,t,n){var r=n(55),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(57),a=n(60);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(38),a=n(58),i=n(59),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},function(e,t,n){var r=n(38),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var a=o.call(e);return r&&(t?e[l]=n:delete e[l]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},,,function(e,t){e.exports=wp.mediaUtils},function(e,t){e.exports=Marionette},,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(3),a=n.n(r),i=n(4),o=n(63),l=n(6),c=n(44),s=n(1),u=n(15),p=n.n(u),m=n(11),d=n(9);function h(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(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,r.key,r)}}var w=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.savePost=this.savePost.bind(this),this.saveRedirection=this.saveRedirection.bind(this),this.saveSchemas=this.saveSchemas.bind(this),this.subscribeToElementor(),setTimeout(this.elementorPreviewLoaded.bind(this),5e3)}var t,n,r;return t=e,(n=[{key:"elementorPreviewLoaded",value:function(){var e=this;Object(l.addAction)("rank_math_data_changed","rank-math",(function(){e.activateSaveButton()})),Object(l.addAction)("rank_math_update_app_ui","rank-math",(function(t){"hasRedirect"===t&&e.activateSaveButton()}))}},{key:"activateSaveButton",value:function(){var e=Object(s.get)(elementor,"saver.footerSaver",!1);!1===e?elementor.channels.editor.trigger("status:change",!0):e.activateSaveButtons(document,!0)}},{key:"collectGutenbergData",value:function(){return{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return elementor.config.document.id}},{key:"getTitle",value:function(){return elementor.settings.page.model.get("post_title")}},{key:"getContent",value:function(){var e=[];return this.getContentArea().find(".elementor-widget-container").each((function(){e.push(a()(this).html())})),e.join("")}},{key:"getContentArea",value:function(){if(this._contentArea)return this._contentArea;var e=elementor.$preview.contents().find('[data-elementor-type="'+ElementorConfig.document.type+'"]');return e.length<1?a()("<div />"):(this._contentArea=e,e)}},{key:"getExcerpt",value:function(){return elementor.settings.page.model.get("post_excerpt")}},{key:"getPermalink",value:function(){return rankMath.is_front_page?rankMath.homeUrl+"/":this.getSlug()?rankMath.permalinkFormat.replace(/%(postname|pagename)%/,this.getSlug()).trimRight("/"):""}},{key:"getSlug",value:function(){return Object(m.safeDecodeURIComponent)(Object(i.select)("rank-math").getPermalink())}},{key:"getFeaturedImage",value:function(){var e=elementor.settings.page.model.get("post_featured_image");if(!Object(s.isUndefined)(e)&&(e=""===e.id?0:parseInt(e.id),this.isValidMediaId(e))){var t=Object(i.select)("core").getMedia(e);if(!Object(s.isUndefined)(t))return t}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"subscribeToElementor",value:function(){Object(i.dispatch)("rank-math").updatePermalink(rankMath.postName),this.subscriber=Object(s.debounce)(this.refresh,500),Object(i.subscribe)(this.subscriber),elementor.saver.on("before:save",this.savePost),elementor.saver.on("before:save",this.saveRedirection),elementor.saver.on("before:save",this.saveSchemas),elementor.settings.page.model.on("change",this.subscriber)}},{key:"refresh",value:function(){var e=f({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(e),!Object(s.isEqual)(e,this._data)&&e.id&&elementor.channels.editor.trigger("status:change",!0)}},{key:"savePost",value:function(){var e=Object(i.select)("rank-math").getDirtyMetadata();Object(s.isEmpty)(e)||(p()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:e,content:this.getContent()}}).then((function(e){Object(s.isString)(e)&&Object(i.dispatch)("rank-math").updatePermalink(e)})),Object(i.dispatch)("rank-math").resetDirtyMetadata())}},{key:"saveRedirection",value:function(){var e=Object(i.select)("rank-math").getRedirectionItem();Object(s.isEmpty)(e)||(e.objectID=this.getPostID(),e.redirectionSources=this.getPermalink(),p()({method:"POST",path:"rankmath/v1/updateRedirection",data:e}).then((function(e){"delete"===e.action?Object(i.dispatch)("rank-math").updateRedirection("redirectionID",0):"new"===e.action&&Object(i.dispatch)("rank-math").updateRedirection("redirectionID",e.id)})),Object(i.dispatch)("rank-math").resetRedirection())}},{key:"saveSchemas",value:function(){var e=Object(i.select)("rank-math").getSchemas();if(!Object(s.isEmpty)(e)&&Object(i.select)("rank-math").hasSchemaUpdated()){var t=Object(i.select)("rank-math").getEditSchemas();p()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,schemas:e}}).then((function(n){if(!Object(s.isEmpty)(n)){var r=f({},e),a=f({},t);Object(s.map)(n,(function(e,t){r["schema-"+e]=f({},r[t]),a["schema-"+e]=f({},a[t]),delete r[t],delete a[t]})),Object(i.dispatch)("rank-math").schemaUpdated(!1),Object(i.dispatch)("rank-math").updateSchemas(r),Object(i.dispatch)("rank-math").updateEditSchemas(a)}}))}}},{key:"handleEditorChange",value:function(e){var t=this,n={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(s.isInteger)(e.id))return this.initialize?void Object(s.forEach)(n,(function(n,r){t._data[r]!==e[r]&&t[n](t._data[r])})):(this.initialize=!0,Object(s.forEach)(n,(function(e,n){t[e](t._data[n])})),void rankMathEditor.refresh("init"));Object(i.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(e){Object(i.dispatch)("rank-math").updatePostID(e),Object(i.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){d.a.setVariable("title",e),Object(i.dispatch)("rank-math").updateSerpTitle(Object(i.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){d.a.setVariable("excerpt",e),d.a.setVariable("excerpt_only",e),d.a.setVariable("wc_shortdesc",e),d.a.setVariable("seo_description",e),Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(e){Object(i.dispatch)("rank-math").updateFeaturedImage(e),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&g(t.prototype,n),r&&g(t,r),e}(),y=n(64),v=n.n(y),k=n(5),O=n(43),_=v.a.ItemView.extend({template:!1,id:"elementor-panel-rank-math",className:"rank-math-elementor rank-math-sidebar-panel",initialize:function(){a()("#elementor-panel-elements-search-area").hide()},onShow:function(){Object(k.render)(Object(k.createElement)(O.a),document.getElementById("elementor-panel-rank-math"))},onDestroy:function(){a()("#elementor-panel-elements-search-area").show()}}),j=function(e){return e["rank-math"]={region:e.global.region,view:_,options:{}},e};function E(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,r.key,r)}}var T=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onThemeChange=this.onThemeChange.bind(this),elementor.settings.editorPreferences.model.on("change",this.onThemeChange)}var t,n,r;return t=e,(n=[{key:"onThemeChange",value:function(e){var t=Object(s.get)(e,"changed.ui_theme",!1);if(!1!==t){var n=this.getThemeLink();"light"!==t?n.attr("media","auto"===t?"(prefers-color-scheme: dark)":"").appendTo(elementorCommon.elements.$body):n.remove()}}},{key:"getThemeLink",value:function(){return this.link||this.createThemeLink(),this.link}},{key:"createThemeLink",value:function(){var e="rank-math-elementor-dark-css";this.link=a()("#"+e),this.link.length||(this.link=a()("<link>",{id:e,rel:"stylesheet",href:rankMath.elementorDarkMode}))}}])&&E(t.prototype,n),r&&E(t,r),e}(),S=n(23),I=n(24),C=n(22);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(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,r.key,r)}}function A(e,t,n){return(A="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=U(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(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=U(e);if(t){var a=U(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var F=function(){return o.MediaUpload},L=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}}),t&&N(e,t)}(o,e);var t,n,r,a=R(o);function o(){return P(this,o),a.apply(this,arguments)}return t=o,(n=[{key:"setup",value:function(e){this.registerSlots=this.registerSlots.bind(this),Object(l.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),Object(l.addFilter)("editor.MediaUpload","rank-math/replace-media-upload",F),A(U(o.prototype),"setup",this).call(this,e)}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=S.a,this.RankMathAfterFocusKeyword=C.a,this.RankMathAdvancedTab=I.a,this.slots={AfterEditor:S.a,AfterFocusKeyword:C.a,AdvancedTab:I.a}}},{key:"updatePermalink",value:function(e){Object(i.dispatch)("rank-math").updatePermalink(e)}},{key:"updatePermalinkSanitize",value:function(e){e=this.assessor.getResearch("slugify")(e),Object(i.dispatch)("rank-math").updatePermalink(e)}}])&&x(t.prototype,n),r&&x(t,r),o}(c.a);a()((function(){window.rankMathEditor=new L,window.rankMathGutenberg=window.rankMathEditor,new T,elementor.once("preview:loaded",(function(){$e.components.get("panel/elements").addTab("rank-math",{title:"SEO"}),window.rankMathEditor.setup(new w),Object(i.dispatch)("rank-math").refreshResults()}))})),a()(window).on("elementor:init",(function(){elementor.hooks.addFilter("panel/elements/regionViews",j)}))}]);
assets/admin/js/glue-custom-fields.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=66)}({1:function(e,t){e.exports=lodash},2:function(e,t){e.exports=jQuery},6:function(e,t){e.exports=wp.hooks},66:function(e,t,n){"use strict";n.r(t);var r=n(2),i=n.n(r),o=n(1),a=n(6);function u(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,r.key,r)}}new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fields=[],Object(a.addAction)("rank_math_loaded","rank-math",this.init.bind(this))}var t,n,r;return t=e,(n=[{key:"init",value:function(){this.getFields(),this.events()}},{key:"getFields",value:function(){var e=this;i()("#the-list > tr:visible").each((function(t,n){var r=i()("#"+n.id+"-key").val();-1!==i.a.inArray(r,rankMath.analyzeFields)&&e.fields.push("#"+n.id+"-value")}))}},{key:"events",value:function(){Object(a.addFilter)("rank_math_content","rank-math",this.getContent.bind(this)),i()(this.fields).each((function(e,t){i()(t).on("keyup change",Object(o.debounce)((function(){rankMathEditor.refresh("content")}),500))}))}},{key:"getContent",value:function(e){return i()(this.fields).each((function(t,n){e+=i()(n).val()})),e}}])&&u(t.prototype,n),r&&u(t,r),e}())}});
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=66)}({1:function(e,t){e.exports=lodash},3:function(e,t){e.exports=jQuery},6:function(e,t){e.exports=wp.hooks},66:function(e,t,n){"use strict";n.r(t);var r=n(3),i=n.n(r),o=n(1),a=n(6);function u(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,r.key,r)}}new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fields=[],Object(a.addAction)("rank_math_loaded","rank-math",this.init.bind(this))}var t,n,r;return t=e,(n=[{key:"init",value:function(){this.getFields(),this.events()}},{key:"getFields",value:function(){var e=this;i()("#the-list > tr:visible").each((function(t,n){var r=i()("#"+n.id+"-key").val();-1!==i.a.inArray(r,rankMath.analyzeFields)&&e.fields.push("#"+n.id+"-value")}))}},{key:"events",value:function(){Object(a.addFilter)("rank_math_content","rank-math",this.getContent.bind(this)),i()(this.fields).each((function(e,t){i()(t).on("keyup change",Object(o.debounce)((function(){rankMathEditor.refresh("content")}),500))}))}},{key:"getContent",value:function(e){return i()(this.fields).each((function(t,n){e+=i()(n).val()})),e}}])&&u(t.prototype,n),r&&u(t,r),e}())}});
assets/admin/js/gutenberg-formats.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=80)}({0:function(e,t){e.exports=wp.i18n},1:function(e,t){e.exports=lodash},10:function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&e.push(c);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},11:function(e,t){e.exports=wp.url},12:function(e,t){e.exports=wp.blockEditor},16:function(e,t){e.exports=wp.richText},3:function(e,t){e.exports=wp.components},35:function(e,t){e.exports=wp.htmlEntities},5:function(e,t){e.exports=wp.element},80:function(e,t,r){"use strict";r.r(t);var n=r(16),o=r(0),i=r(11),a=r(35),c=r(1),l=r(5);function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=r(10),f=r.n(p);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var y=function(e){return Object(l.createElement)("path",e)},d=function(e){var t=e.className,r=e.isPressed,n=O(O({},s(e,["className","isPressed"])),{},{className:f()(t,{"is-pressed":r})||void 0,role:"img","aria-hidden":!0,focusable:!1});return Object(l.createElement)("svg",n)},m=Object(l.createElement)(d,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(y,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"})),j=Object(l.createElement)(d,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(y,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),h=r(12),v=r(3);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){k(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function k(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==r)return;var n=[],o=!0,i=!1,a=void 0;try{for(r=r.call(e),_s;!(o=(_s=r.next()).done)&&(n.push(_s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}(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 S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var x=Object(v.withSpokenMessages)((function(e){var t=e.isActive,r=e.activeAttributes,a=e.addingLink,u=e.value,s=e.onChange,p=e.speak,f=e.stopAddingLink,b=e.contentRef,O=P(Object(l.useState)(),2),y=O[0],d=O[1],m=w({url:r.url,type:r.type,id:r.id,opensInNewTab:"_blank"===r.target,noFollow:!Object(c.isUndefined)(r.rel)&&-1!==r.rel.indexOf("nofollow"),sponsored:!Object(c.isUndefined)(r.rel)&&-1!==r.rel.indexOf("sponsored")},y),j=Object(l.useRef)(!!a&&"firstElement"),g=[{id:"opensInNewTab",title:Object(o.__)("Open in new tab.","rank-math")},{id:"noFollow",title:Object(o.__)("Set to nofollow.","rank-math")},{id:"sponsored",title:Object(o.__)("Set to sponsored.","rank-math")}],k=Object(n.useAnchorRef)({ref:b,value:u,settings:I});return wp.element.createElement(v.Popover,{anchorRef:k,focusOnMount:j.current,onClose:f,position:"bottom center"},wp.element.createElement(h.__experimentalLinkControl,{value:m,onChange:function(e){e=w(w({},y),e);var r=m.url===e.url&&(m.opensInNewTab!==e.opensInNewTab||m.noFollow!==e.noFollow||m.sponsored!==e.sponsored),a=r&&Object(c.isUndefined)(e.url);if(d(a?e:void 0),!a){var l=Object(i.prependHTTP)(e.url),b=function(e){var t=e.url,r=e.opensInNewWindow,n=e.noFollow,i=e.sponsored,a=e.text,l=e.type,u=e.id,s={type:"rankmath/link",attributes:{url:t}},p=[];if(r){if(s.attributes.target="_blank",!Object(c.isUndefined)(a)){var f=Object(o.sprintf)(Object(o.__)("%s (opens in a new tab)","rank-math"),a);s.attributes["aria-label"]=f}p.push("noreferrer noopener")}return l&&(s.attributes.type=l),u&&(s.attributes.id=u),n&&p.push("nofollow"),i&&p.push("sponsored"),p.length>0&&(s.attributes.rel=p.join(" ")),s}({url:l,type:e.type,id:Object(c.isUndefined)(e.id)||Object(c.isNull)(e.id)?void 0:String(e.id),opensInNewWindow:e.opensInNewTab,noFollow:e.noFollow,sponsored:e.sponsored});if(Object(n.isCollapsed)(u)&&!t){var O=e.title||l,j=Object(n.applyFormat)(Object(n.create)({text:O}),b,0,O.length);s(Object(n.insert)(u,j))}else{var h=Object(n.applyFormat)(u,b);h.start=h.end,h.activeFormats=[],s(h)}r||f(),!function(e){if(!e)return!1;var t=e.trim();if(!t)return!1;if(/^\S+:/.test(t)){var r=Object(i.getProtocol)(t);if(!Object(i.isValidProtocol)(r))return!1;if(Object(c.startsWith)(r,"http")&&!/^https?:\/\/[^\/\s]/i.test(t))return!1;var n=Object(i.getAuthority)(t);if(!Object(i.isValidAuthority)(n))return!1;var o=Object(i.getPath)(t);if(o&&!Object(i.isValidPath)(o))return!1;var a=Object(i.getQueryString)(t);if(a&&!Object(i.isValidQueryString)(a))return!1;var l=Object(i.getFragment)(t);if(l&&!Object(i.isValidFragment)(l))return!1}return!(Object(c.startsWith)(t,"#")&&!Object(i.isValidFragment)(t))}(l)?p(Object(o.__)("Warning: the link has been inserted but may have errors. Please test it.","rank-math"),"assertive"):p(t?Object(o.__)("Link edited.","rank-math"):Object(o.__)("Link inserted.","rank-math"),"assertive")}},forceIsEditingLink:a,settings:g}))}));function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==r)return;var n=[],o=!0,i=!1,a=void 0;try{for(r=r.call(e),_s;!(o=(_s=r.next()).done)&&(n.push(_s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(e,t)}(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 T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var F="rankmath/link";var C=function(e){var t=e.isActive,r=e.activeAttributes,a=e.value,u=e.onChange,s=e.onFocus,p=e.contentRef,f=A(Object(l.useState)(!1),2),b=f[0],O=f[1];function y(){var e=Object(n.getTextContent)(Object(n.slice)(a));e&&Object(i.isURL)(e)?u(Object(n.applyFormat)(a,{type:F,attributes:{url:e}})):e&&Object(i.isEmail)(e)?u(Object(n.applyFormat)(a,{type:F,attributes:{url:"mailto:".concat(e)}})):O(!0)}function d(){var e=a;Object(c.map)(["core/link","rankmath/link"],(function(t){e=Object(n.removeFormat)(e,t)})),u(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e))}return wp.element.createElement(React.Fragment,null,wp.element.createElement(h.RichTextShortcut,{type:"primary",character:"k",onUse:y}),wp.element.createElement(h.RichTextShortcut,{type:"primaryShift",character:"k",onUse:d}),t&&wp.element.createElement(h.RichTextToolbarButton,{name:"link",icon:m,title:Object(o.__)("Unlink","rank-math"),onClick:d,isActive:t,shortcutType:"primaryShift",shortcutCharacter:"k"}),!t&&wp.element.createElement(h.RichTextToolbarButton,{name:"link",icon:j,title:Object(o.__)("Link","rank-math"),onClick:y,isActive:t,shortcutType:"primary",shortcutCharacter:"k"}),(b||t)&&wp.element.createElement(x,{addingLink:b,stopAddingLink:function(){O(!1),s()},isActive:t,activeAttributes:r,value:a,onChange:u,contentRef:p}))},I={name:"rankmath/link",title:Object(o.__)("Link","rank-math"),tagName:"a",className:null,attributes:{url:"href",type:"data-type",id:"data-id",target:"target",rel:"rel"},__unstablePasteRule:function(e,t){var r=t.html,o=t.plainText;if(Object(n.isCollapsed)(e))return e;var c=(r||o).replace(/<[^>]+>/g,"").trim();return Object(i.isURL)(c)?(window.console.log("Created link:\n\n",c),Object(n.applyFormat)(e,{type:"rankmath/link",attributes:{url:Object(a.decodeEntities)(c)}})):e},edit:C};function R(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}wp.domReady((function(){[I].forEach((function(e){var t=e.name,r=R(e,["name"]);t&&(Object(n.unregisterFormatType)("core/link"),Object(n.registerFormatType)(t,r))}))}))}});
1
+ !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=77)}({0:function(e,t){e.exports=wp.i18n},1:function(e,t){e.exports=lodash},10:function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&e.push(c);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},11:function(e,t){e.exports=wp.url},12:function(e,t){e.exports=wp.blockEditor},16:function(e,t){e.exports=wp.richText},2:function(e,t){e.exports=wp.components},31:function(e,t){e.exports=wp.htmlEntities},5:function(e,t){e.exports=wp.element},77:function(e,t,r){"use strict";r.r(t);var n=r(16),o=r(0),i=r(11),a=r(31),c=r(1),l=r(5);function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=r(10),f=r.n(p);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var y=function(e){return Object(l.createElement)("path",e)},d=function(e){var t=e.className,r=e.isPressed,n=O(O({},s(e,["className","isPressed"])),{},{className:f()(t,{"is-pressed":r})||void 0,role:"img","aria-hidden":!0,focusable:!1});return Object(l.createElement)("svg",n)},m=Object(l.createElement)(d,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(y,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"})),j=Object(l.createElement)(d,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(y,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),h=r(12),v=r(2);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){k(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function k(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}(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 S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var x=Object(v.withSpokenMessages)((function(e){var t=e.isActive,r=e.activeAttributes,a=e.addingLink,u=e.value,s=e.onChange,p=e.speak,f=e.stopAddingLink,b=e.contentRef,O=P(Object(l.useState)(),2),y=O[0],d=O[1],m=w({url:r.url,type:r.type,id:r.id,opensInNewTab:"_blank"===r.target,noFollow:!Object(c.isUndefined)(r.rel)&&-1!==r.rel.indexOf("nofollow"),sponsored:!Object(c.isUndefined)(r.rel)&&-1!==r.rel.indexOf("sponsored")},y),j=Object(l.useRef)(!!a&&"firstElement"),g=[{id:"opensInNewTab",title:Object(o.__)("Open in new tab.","rank-math")},{id:"noFollow",title:Object(o.__)("Set to nofollow.","rank-math")},{id:"sponsored",title:Object(o.__)("Set to sponsored.","rank-math")}],k=Object(n.useAnchorRef)({ref:b,value:u,settings:I});return wp.element.createElement(v.Popover,{anchorRef:k,focusOnMount:j.current,onClose:f,position:"bottom center"},wp.element.createElement(h.__experimentalLinkControl,{value:m,onChange:function(e){e=w(w({},y),e);var r=m.url===e.url&&(m.opensInNewTab!==e.opensInNewTab||m.noFollow!==e.noFollow||m.sponsored!==e.sponsored),a=r&&Object(c.isUndefined)(e.url);if(d(a?e:void 0),!a){var l=Object(i.prependHTTP)(e.url),b=function(e){var t=e.url,r=e.opensInNewWindow,n=e.noFollow,i=e.sponsored,a=e.text,l=e.type,u=e.id,s={type:"rankmath/link",attributes:{url:t}},p=[];if(r){if(s.attributes.target="_blank",!Object(c.isUndefined)(a)){var f=Object(o.sprintf)(Object(o.__)("%s (opens in a new tab)","rank-math"),a);s.attributes["aria-label"]=f}p.push("noreferrer noopener")}return l&&(s.attributes.type=l),u&&(s.attributes.id=u),n&&p.push("nofollow"),i&&p.push("sponsored"),p.length>0&&(s.attributes.rel=p.join(" ")),s}({url:l,type:e.type,id:Object(c.isUndefined)(e.id)||Object(c.isNull)(e.id)?void 0:String(e.id),opensInNewWindow:e.opensInNewTab,noFollow:e.noFollow,sponsored:e.sponsored});if(Object(n.isCollapsed)(u)&&!t){var O=e.title||l,j=Object(n.applyFormat)(Object(n.create)({text:O}),b,0,O.length);s(Object(n.insert)(u,j))}else{var h=Object(n.applyFormat)(u,b);h.start=h.end,h.activeFormats=[],s(h)}r||f(),!function(e){if(!e)return!1;var t=e.trim();if(!t)return!1;if(/^\S+:/.test(t)){var r=Object(i.getProtocol)(t);if(!Object(i.isValidProtocol)(r))return!1;if(Object(c.startsWith)(r,"http")&&!/^https?:\/\/[^\/\s]/i.test(t))return!1;var n=Object(i.getAuthority)(t);if(!Object(i.isValidAuthority)(n))return!1;var o=Object(i.getPath)(t);if(o&&!Object(i.isValidPath)(o))return!1;var a=Object(i.getQueryString)(t);if(a&&!Object(i.isValidQueryString)(a))return!1;var l=Object(i.getFragment)(t);if(l&&!Object(i.isValidFragment)(l))return!1}return!(Object(c.startsWith)(t,"#")&&!Object(i.isValidFragment)(t))}(l)?p(Object(o.__)("Warning: the link has been inserted but may have errors. Please test it.","rank-math"),"assertive"):p(t?Object(o.__)("Link edited.","rank-math"):Object(o.__)("Link inserted.","rank-math"),"assertive")}},forceIsEditingLink:a,settings:g}))}));function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(e,t)}(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 T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var F="rankmath/link";var C=function(e){var t=e.isActive,r=e.activeAttributes,a=e.value,u=e.onChange,s=e.onFocus,p=e.contentRef,f=A(Object(l.useState)(!1),2),b=f[0],O=f[1];function y(){var e=Object(n.getTextContent)(Object(n.slice)(a));e&&Object(i.isURL)(e)?u(Object(n.applyFormat)(a,{type:F,attributes:{url:e}})):e&&Object(i.isEmail)(e)?u(Object(n.applyFormat)(a,{type:F,attributes:{url:"mailto:".concat(e)}})):O(!0)}function d(){var e=a;Object(c.map)(["core/link","rankmath/link"],(function(t){e=Object(n.removeFormat)(e,t)})),u(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e))}return wp.element.createElement(React.Fragment,null,wp.element.createElement(h.RichTextShortcut,{type:"primary",character:"k",onUse:y}),wp.element.createElement(h.RichTextShortcut,{type:"primaryShift",character:"k",onUse:d}),t&&wp.element.createElement(h.RichTextToolbarButton,{name:"link",icon:m,title:Object(o.__)("Unlink","rank-math"),onClick:d,isActive:t,shortcutType:"primaryShift",shortcutCharacter:"k"}),!t&&wp.element.createElement(h.RichTextToolbarButton,{name:"link",icon:j,title:Object(o.__)("Link","rank-math"),onClick:y,isActive:t,shortcutType:"primary",shortcutCharacter:"k"}),(b||t)&&wp.element.createElement(x,{addingLink:b,stopAddingLink:function(){O(!1),s()},isActive:t,activeAttributes:r,value:a,onChange:u,contentRef:p}))},I={name:"rankmath/link",title:Object(o.__)("Link","rank-math"),tagName:"a",className:null,attributes:{url:"href",type:"data-type",id:"data-id",target:"target",rel:"rel"},__unstablePasteRule:function(e,t){var r=t.html,o=t.plainText;if(Object(n.isCollapsed)(e))return e;var c=(r||o).replace(/<[^>]+>/g,"").trim();return Object(i.isURL)(c)?(window.console.log("Created link:\n\n",c),Object(n.applyFormat)(e,{type:"rankmath/link",attributes:{url:Object(a.decodeEntities)(c)}})):e},edit:C},R=["name"];function H(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}wp.domReady((function(){[I].forEach((function(e){var t=e.name,r=H(e,R);t&&(Object(n.unregisterFormatType)("core/link"),Object(n.registerFormatType)(t,r))}))}))}});
assets/admin/js/gutenberg-primary-term.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=83)}({0:function(e,t){e.exports=wp.i18n},1:function(e,t){e.exports=lodash},11:function(e,t){e.exports=wp.url},15:function(e,t){e.exports=wp.apiFetch},2:function(e,t){e.exports=jQuery},3:function(e,t){e.exports=wp.components},4:function(e,t){e.exports=wp.data},5:function(e,t){e.exports=wp.element},52:function(e,t,n){"use strict";var r=n(1),o=n(0),i=n(15),a=n.n(i),c=n(11),s=n(5),u=n(4),l=n(3);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(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 h(this,n)}}function h(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=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}}),t&&y(e,t)}(f,e);var t,n,i,s=d(f);function f(){var e;return p(this,f),(e=s.apply(this,arguments)).onChange=e.onChange.bind(b(e)),e.state={loading:!0,availableTerms:[],selectedTerms:[]},e}return t=f,(n=[{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(r.invoke)(this.fetchRequest,["abort"])}},{key:"componentDidUpdate",value:function(e,t){if(e.selectedTermIds.length<this.props.selectedTermIds.length){var n=Object(r.difference)(this.props.selectedTermIds,e.selectedTermIds)[0];if(!this.termIsAvailable(n))return void this.fetchTerms()}e.selectedTermIds!==this.props.selectedTermIds&&this.updateSelectedTerms(this.state.availableTerms,this.props.selectedTermIds),t.selectedTerms!==this.state.selectedTerms&&this.handleSelectedTermsChange()}},{key:"termIsAvailable",value:function(e){return!!this.state.availableTerms.find((function(t){return t.id===e}))}},{key:"updateSelectedTerms",value:function(e,t){this.setState({selectedTerms:this.filterSelectedTerms(e,t)})}},{key:"handleSelectedTermsChange",value:function(){var e=this.state.selectedTerms,t=this.props.primaryTermID;e.find((function(e){return e.id===t}))||this.onChange(e.length?e[0].id:"")}},{key:"fetchTerms",value:function(){var e=this,t=this.props.taxonomy;t&&(this.fetchRequest=a()({path:Object(c.addQueryArgs)("/wp/v2/".concat(t.rest_base),{per_page:-1,orderby:"count",order:"desc",_fields:"id,name"})}),this.fetchRequest.then((function(t){e.fetchRequest=null,e.setState({loading:!1,availableTerms:t,selectedTerms:e.filterSelectedTerms(t,e.props.selectedTermIds)})}),(function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({loading:!1}))})))}},{key:"filterSelectedTerms",value:function(e,t){return e.filter((function(e){return t.includes(e.id)}))}},{key:"onChange",value:function(e){Object(u.dispatch)("rank-math").updatePrimaryTermID(e,this.props.taxonomy.slug)}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.selectedTermIds!==e.selectedTermIds||this.props.primaryTermID!==e.primaryTermID||this.state.selectedTerms!==t.selectedTerms}},{key:"render",value:function(){return this.state.selectedTerms.length<2?null:this.state.loading?[wp.element.createElement(l.Spinner,{key:"spinner"}),wp.element.createElement("p",{key:"spinner-text"},"Loading")]:wp.element.createElement(l.SelectControl,{label:Object(o.__)("Select Primary Term","rank-math"),value:this.props.primaryTermID,options:this.state.selectedTerms.map((function(e){return{value:e.id,label:Object(r.unescape)(e.name)}})),onChange:this.onChange})}}])&&m(t.prototype,n),i&&m(t,i),f}(s.Component);t.a=T},6:function(e,t){e.exports=wp.hooks},83:function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(6),a=n(5),c=n(3),s=n(4);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(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=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=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}}),t&&p(e,t)}(a,e);var t,n,r,i=m(a);function a(){return l(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"handleSelectedTermsChange",value:function(){var e=this.state.selectedTerms,t=parseInt(this.props.primaryTermID);e.find((function(e){return e.id===t}))||this.onChange(e.length?e[0].id:"")}},{key:"onChange",value:function(e){e=parseInt(e),rankMath.assessor.serpData.primaryTerm=e,o()("#rank_math_primary_"+this.props.taxonomy.slug).val(e),Object(s.dispatch)("core/editor").editPost({meta:{refreshMe:"refreshUI"}})}}])&&f(t.prototype,n),r&&f(t,r),a}(n(52).a),b=Object(s.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getEditedPostAttribute,i=r("meta"),a=e("core").getTaxonomy(n);return{taxonomy:a,meta:i,selectedTermIds:a?r(a.rest_base):[],primaryTermID:o()("#rank_math_primary_"+a.slug).val()}}))(h),v=function(e){var t=e.TermComponent;return function(e){return!1!==rankMath.assessor.primaryTaxonomy&&e.slug===rankMath.assessor.primaryTaxonomy.name}(e)?wp.element.createElement(a.Fragment,null,wp.element.createElement(t,e),wp.element.createElement(c.PanelRow,{className:"rank-math-primary-term-picker"},wp.element.createElement(b,e))):wp.element.createElement(t,e)};function T(){return(T=Object.assign||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}).apply(this,arguments)}var g=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Object(i.addFilter)("editor.PostTaxonomyType","rank-math",(function(e){return function(t){return wp.element.createElement(v,T({TermComponent:e},t))}}))};o()(document).ready((function(){window.rankMathEditor=new g}))}});
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=80)}({0:function(e,t){e.exports=wp.i18n},1:function(e,t){e.exports=lodash},11:function(e,t){e.exports=wp.url},15:function(e,t){e.exports=wp.apiFetch},2:function(e,t){e.exports=wp.components},3:function(e,t){e.exports=jQuery},4:function(e,t){e.exports=wp.data},41:function(e,t,n){"use strict";var r=n(1),o=n(0),i=n(15),a=n.n(i),c=n(11),s=n(5),u=n(4),l=n(2);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(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 h(this,n)}}function h(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=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}}),t&&y(e,t)}(f,e);var t,n,i,s=d(f);function f(){var e;return p(this,f),(e=s.apply(this,arguments)).onChange=e.onChange.bind(b(e)),e.state={loading:!0,availableTerms:[],selectedTerms:[]},e}return t=f,(n=[{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(r.invoke)(this.fetchRequest,["abort"])}},{key:"componentDidUpdate",value:function(e,t){if(e.selectedTermIds.length<this.props.selectedTermIds.length){var n=Object(r.difference)(this.props.selectedTermIds,e.selectedTermIds)[0];if(!this.termIsAvailable(n))return void this.fetchTerms()}e.selectedTermIds!==this.props.selectedTermIds&&this.updateSelectedTerms(this.state.availableTerms,this.props.selectedTermIds),t.selectedTerms!==this.state.selectedTerms&&this.handleSelectedTermsChange()}},{key:"termIsAvailable",value:function(e){return!!this.state.availableTerms.find((function(t){return t.id===e}))}},{key:"updateSelectedTerms",value:function(e,t){this.setState({selectedTerms:this.filterSelectedTerms(e,t)})}},{key:"handleSelectedTermsChange",value:function(){var e=this.state.selectedTerms,t=this.props.primaryTermID;e.find((function(e){return e.id===t}))||this.onChange(e.length?e[0].id:"")}},{key:"fetchTerms",value:function(){var e=this,t=this.props.taxonomy;t&&(this.fetchRequest=a()({path:Object(c.addQueryArgs)("/wp/v2/".concat(t.rest_base),{per_page:-1,orderby:"count",order:"desc",_fields:"id,name"})}),this.fetchRequest.then((function(t){e.fetchRequest=null,e.setState({loading:!1,availableTerms:t,selectedTerms:e.filterSelectedTerms(t,e.props.selectedTermIds)})}),(function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({loading:!1}))})))}},{key:"filterSelectedTerms",value:function(e,t){return e.filter((function(e){return t.includes(e.id)}))}},{key:"onChange",value:function(e){Object(u.dispatch)("rank-math").updatePrimaryTermID(e,this.props.taxonomy.slug)}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.selectedTermIds!==e.selectedTermIds||this.props.primaryTermID!==e.primaryTermID||this.state.selectedTerms!==t.selectedTerms}},{key:"render",value:function(){return this.state.selectedTerms.length<2?null:this.state.loading?[wp.element.createElement(l.Spinner,{key:"spinner"}),wp.element.createElement("p",{key:"spinner-text"},"Loading")]:wp.element.createElement(l.SelectControl,{label:Object(o.__)("Select Primary Term","rank-math"),value:this.props.primaryTermID,options:this.state.selectedTerms.map((function(e){return{value:e.id,label:Object(r.unescape)(e.name)}})),onChange:this.onChange})}}])&&m(t.prototype,n),i&&m(t,i),f}(s.Component);t.a=T},5:function(e,t){e.exports=wp.element},6:function(e,t){e.exports=wp.hooks},80:function(e,t,n){"use strict";n.r(t);var r=n(3),o=n.n(r),i=n(6),a=n(5),c=n(2),s=n(4);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(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=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=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}}),t&&p(e,t)}(a,e);var t,n,r,i=m(a);function a(){return l(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"handleSelectedTermsChange",value:function(){var e=this.state.selectedTerms,t=parseInt(this.props.primaryTermID);e.find((function(e){return e.id===t}))||this.onChange(e.length?e[0].id:"")}},{key:"onChange",value:function(e){e=parseInt(e),rankMath.assessor.serpData.primaryTerm=e,o()("#rank_math_primary_"+this.props.taxonomy.slug).val(e),Object(s.dispatch)("core/editor").editPost({meta:{refreshMe:"refreshUI"}})}}])&&f(t.prototype,n),r&&f(t,r),a}(n(41).a),b=Object(s.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getEditedPostAttribute,i=r("meta"),a=e("core").getTaxonomy(n);return{taxonomy:a,meta:i,selectedTermIds:a?r(a.rest_base):[],primaryTermID:o()("#rank_math_primary_"+a.slug).val()}}))(h),v=function(e){var t=e.TermComponent;return function(e){return!1!==rankMath.assessor.primaryTaxonomy&&e.slug===rankMath.assessor.primaryTaxonomy.name}(e)?wp.element.createElement(a.Fragment,null,wp.element.createElement(t,e),wp.element.createElement(c.PanelRow,{className:"rank-math-primary-term-picker"},wp.element.createElement(b,e))):wp.element.createElement(t,e)};function T(){return(T=Object.assign||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}).apply(this,arguments)}var g=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Object(i.addFilter)("editor.PostTaxonomyType","rank-math",(function(e){return function(t){return wp.element.createElement(v,T({TermComponent:e},t))}}))};o()(document).ready((function(){window.rankMathEditor=new g}))}});
assets/admin/js/gutenberg.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=81)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=wp.compose},function(e,t){e.exports=rankMathAnalyzer},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),a=n.n(r);function i(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,r.key,r)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,r;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():a()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&i(t.prototype,n),r&&i(t,r),e}())},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var o=a.apply(null,r);o&&e.push(o)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var l in r)n.call(r,l)&&r[l]&&e.push(l);else e.push(r.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=wp.url},function(e,t){e.exports=wp.blockEditor},function(e,t,n){"use strict";var r=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),r.innerHTML=e,e=r.textContent,r.textContent=""),e}},,function(e,t){e.exports=wp.apiFetch},,function(e,t,n){"use strict";n.d(t,"a",(function(){return wn}));var r={};n.r(r),n.d(r,"updateKeywords",(function(){return p})),n.d(r,"updatePillarContent",(function(){return m})),n.d(r,"toggleFrontendScore",(function(){return d})),n.d(r,"updateAnalysisScore",(function(){return h})),n.d(r,"updateCanonicalUrl",(function(){return f})),n.d(r,"updateAdvancedRobots",(function(){return b})),n.d(r,"updateRobots",(function(){return g})),n.d(r,"updateBreadcrumbTitle",(function(){return w})),n.d(r,"resetDirtyMetadata",(function(){return y})),n.d(r,"updateFacebookTitle",(function(){return v})),n.d(r,"updateFacebookDescription",(function(){return k})),n.d(r,"updateFacebookImage",(function(){return O})),n.d(r,"updateFacebookImageID",(function(){return _})),n.d(r,"updateFacebookHasOverlay",(function(){return j})),n.d(r,"updateFacebookImageOverlay",(function(){return E})),n.d(r,"updateAppData",(function(){return s})),n.d(r,"updateAppUi",(function(){return u})),n.d(r,"updatePostID",(function(){return T})),n.d(r,"updatePermalink",(function(){return S})),n.d(r,"updateTitle",(function(){return I})),n.d(r,"updateDescription",(function(){return P})),n.d(r,"updateFeaturedImage",(function(){return C})),n.d(r,"updatePrimaryTermID",(function(){return D})),n.d(r,"updateRedirection",(function(){return x})),n.d(r,"updateRedirectionItem",(function(){return N})),n.d(r,"resetRedirection",(function(){return A})),n.d(r,"updateHasRedirect",(function(){return R})),n.d(r,"updateSerpTitle",(function(){return U})),n.d(r,"updateSerpDescription",(function(){return F})),n.d(r,"toggleSnippetEditor",(function(){return H})),n.d(r,"updateSnippetPreviewType",(function(){return L})),n.d(r,"toggleTrendsCta",(function(){return z})),n.d(r,"updateTwitterUseFacebook",(function(){return B})),n.d(r,"updateTwitterCardType",(function(){return G})),n.d(r,"updateTwitterTitle",(function(){return K})),n.d(r,"updateTwitterDescription",(function(){return V})),n.d(r,"updateTwitterAuthor",(function(){return W})),n.d(r,"updateTwitterImageID",(function(){return Y})),n.d(r,"updateTwitterImage",(function(){return q})),n.d(r,"updateTwitterHasOverlay",(function(){return $})),n.d(r,"updateTwitterImageOverlay",(function(){return Z})),n.d(r,"updateTwitterPlayerUrl",(function(){return J})),n.d(r,"updateTwitterPlayerSize",(function(){return Q})),n.d(r,"updateTwitterPlayerStreamUrl",(function(){return X})),n.d(r,"updateTwitterPlayerStreamCtype",(function(){return ee})),n.d(r,"updateTwitterAppDescription",(function(){return te})),n.d(r,"updateTwitterAppIphoneID",(function(){return ne})),n.d(r,"updateTwitterAppIphoneName",(function(){return re})),n.d(r,"updateTwitterAppIphoneUrl",(function(){return ae})),n.d(r,"updateTwitterAppIpadID",(function(){return ie})),n.d(r,"updateTwitterAppIpadName",(function(){return oe})),n.d(r,"updateTwitterAppIpadUrl",(function(){return le})),n.d(r,"updateTwitterAppGoogleplayID",(function(){return ce})),n.d(r,"updateTwitterAppGoogleplayName",(function(){return se})),n.d(r,"updateTwitterAppGoogleplayUrl",(function(){return ue})),n.d(r,"updateTwitterAppCountry",(function(){return pe})),n.d(r,"toggleLoaded",(function(){return me})),n.d(r,"updateSelectedKeyword",(function(){return de})),n.d(r,"refreshResults",(function(){return he})),n.d(r,"setVersion",(function(){return fe})),n.d(r,"toggleIsDiviPageSettingsBarActive",(function(){return be})),n.d(r,"toggleIsDiviRankMathModalActive",(function(){return ge})),n.d(r,"toggleSchemaEditor",(function(){return Ee})),n.d(r,"toggleSchemaTemplates",(function(){return Te})),n.d(r,"schemaUpdated",(function(){return Se})),n.d(r,"setEditingSchemaId",(function(){return Ie})),n.d(r,"setEditorTab",(function(){return Pe})),n.d(r,"setTemplateTab",(function(){return Ce})),n.d(r,"updateEditSchemas",(function(){return De})),n.d(r,"updateSchemas",(function(){return xe})),n.d(r,"updateEditSchema",(function(){return Ne})),n.d(r,"saveSchema",(function(){return Ae})),n.d(r,"deleteSchema",(function(){return Re})),n.d(r,"saveTemplate",(function(){return Me}));var a={};n.r(a),n.d(a,"appData",(function(){return Ge})),n.d(a,"appUi",(function(){return qe}));var i={};n.r(i),n.d(i,"getAppData",(function(){return $e})),n.d(i,"getDirtyMetadata",(function(){return Ze})),n.d(i,"getAnalysisScore",(function(){return Je})),n.d(i,"getKeywords",(function(){return Qe})),n.d(i,"getPillarContent",(function(){return Xe})),n.d(i,"getRobots",(function(){return et})),n.d(i,"getAdvancedRobots",(function(){return tt})),n.d(i,"getCanonicalUrl",(function(){return nt})),n.d(i,"getBreadcrumbTitle",(function(){return rt})),n.d(i,"getRichSnippets",(function(){return at})),n.d(i,"getShowScoreFrontend",(function(){return it})),n.d(i,"isLoaded",(function(){return ot})),n.d(i,"getSelectedKeyword",(function(){return lt})),n.d(i,"isRefreshing",(function(){return ct})),n.d(i,"isPro",(function(){return st})),n.d(i,"isDiviPageSettingsBarActive",(function(){return ut})),n.d(i,"isDiviRankMathModalActive",(function(){return pt})),n.d(i,"getFacebookTitle",(function(){return mt})),n.d(i,"getFacebookDescription",(function(){return dt})),n.d(i,"getFacebookAuthor",(function(){return ht})),n.d(i,"getFacebookImageID",(function(){return ft})),n.d(i,"getFacebookImage",(function(){return bt})),n.d(i,"getFacebookHasOverlay",(function(){return gt})),n.d(i,"getFacebookImageOverlay",(function(){return wt})),n.d(i,"getPostID",(function(){return yt})),n.d(i,"getTitle",(function(){return vt})),n.d(i,"getPermalink",(function(){return kt})),n.d(i,"getDescription",(function(){return Ot})),n.d(i,"getFeaturedImage",(function(){return _t})),n.d(i,"getFeaturedImageHtml",(function(){return jt})),n.d(i,"getPrimaryTermID",(function(){return Et})),n.d(i,"getRedirectionID",(function(){return Tt})),n.d(i,"getRedirectionType",(function(){return St})),n.d(i,"getRedirectionUrl",(function(){return It})),n.d(i,"getRedirectionItem",(function(){return Pt})),n.d(i,"hasRedirect",(function(){return Ct})),n.d(i,"getSerpTitle",(function(){return xt})),n.d(i,"getSerpDescription",(function(){return Nt})),n.d(i,"isSnippetEditorOpen",(function(){return At})),n.d(i,"getSnippetPreviewType",(function(){return Rt})),n.d(i,"isTrendsCtaOpen",(function(){return Mt})),n.d(i,"isSchemaEditorOpen",(function(){return Ut})),n.d(i,"isSchemaTemplatesOpen",(function(){return Ft})),n.d(i,"hasSchemaUpdated",(function(){return Ht})),n.d(i,"getSchemas",(function(){return Lt})),n.d(i,"getEditSchemas",(function(){return zt})),n.d(i,"getEditingSchema",(function(){return Bt})),n.d(i,"getPreviewSchema",(function(){return Gt})),n.d(i,"getEditorTab",(function(){return Kt})),n.d(i,"getTemplateTab",(function(){return Vt})),n.d(i,"getTwitterUseFacebook",(function(){return Wt})),n.d(i,"getTwitterCardType",(function(){return Yt})),n.d(i,"getTwitterTitle",(function(){return qt})),n.d(i,"getTwitterDescription",(function(){return $t})),n.d(i,"getTwitterAuthor",(function(){return Zt})),n.d(i,"getTwitterImageID",(function(){return Jt})),n.d(i,"getTwitterImage",(function(){return Qt})),n.d(i,"getTwitterHasOverlay",(function(){return Xt})),n.d(i,"getTwitterImageOverlay",(function(){return en})),n.d(i,"getTwitterAppDescription",(function(){return tn})),n.d(i,"getTwitterAppIphoneID",(function(){return nn})),n.d(i,"getTwitterAppIphoneName",(function(){return rn})),n.d(i,"getTwitterAppIphoneUrl",(function(){return an})),n.d(i,"getTwitterAppIpadID",(function(){return on})),n.d(i,"getTwitterAppIpadName",(function(){return ln})),n.d(i,"getTwitterAppIpadUrl",(function(){return cn})),n.d(i,"getTwitterAppGoogleplayID",(function(){return sn})),n.d(i,"getTwitterAppGoogleplayName",(function(){return un})),n.d(i,"getTwitterAppGoogleplayUrl",(function(){return pn})),n.d(i,"getTwitterAppCountry",(function(){return mn})),n.d(i,"getTwitterPlayerUrl",(function(){return dn})),n.d(i,"getTwitterPlayerSize",(function(){return hn})),n.d(i,"getTwitterPlayerStream",(function(){return fn})),n.d(i,"getTwitterPlayerStreamCtype",(function(){return bn}));var o=n(4),l=n(9),c=n(6);function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(c.applyFilters)("rank_math_sanitize_data",t,e,n),null!==r&&(r=Object(c.applyFilters)("rank_math_sanitize_meta_value",r,e,n)),r=null===r?t:r,Object(c.doAction)("rank_math_data_changed",e,t,n),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:n,metaValue:r}}function u(e,t){return Object(c.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function p(e){return l.a.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),s("keywords",e,"rank_math_focus_keyword")}function m(e){return s("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function d(e){return s("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function h(e){return s("score",e,"rank_math_seo_score")}function f(e){return s("canonicalUrl",e,"rank_math_canonical_url")}function b(e){return s("advancedRobots",e,"rank_math_advanced_robots")}function g(e){return s("robots",e,"rank_math_robots",Object.keys(e))}function w(e){return s("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function y(){return s("dirtyMetadata",{})}function v(e){return s("facebookTitle",e,"rank_math_facebook_title")}function k(e){return s("facebookDescription",e,"rank_math_facebook_description")}function O(e){return s("facebookImage",e,"rank_math_facebook_image")}function _(e){return s("facebookImageID",e,"rank_math_facebook_image_id")}function j(e){return s("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function E(e){return s("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function T(e){return rankMath.objectID=e,s("postID",e)}function S(e){return s("permalink",e,"permalink")}function I(e){return s("title",e,"rank_math_title")}function P(e){return s("description",e,"rank_math_description")}function C(e){return s("featuredImage",e)}function D(e,t){return s("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function x(e,t){return s(e,t)}function N(e){return u("redirectionItem",e)}function A(){return u("redirectionItem",{})}function R(e){return u("hasRedirect",e)}var M=n(25);function U(e){return e=l.a.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),u("serpTitle",e)}function F(e){return e=l.a.swap(Object(M.a)(e)),rankMathEditor.refresh("description"),u("serpDescription",e)}function H(e){return u("isSnippetEditorOpen",e)}function L(e){return u("snippetPreviewType",e)}function z(e){return u("isTrendsCtaOpen",e)}function B(e){return s("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function G(e){return s("twitterCardType",e,"rank_math_twitter_card_type")}function K(e){return s("twitterTitle",e,"rank_math_twitter_title")}function V(e){return s("twitterDescription",e,"rank_math_twitter_description")}function W(e){return s("twitterAuthor",e,"rank_math_twitter_author")}function Y(e){return s("twitterImageID",e,"rank_math_twitter_image_id")}function q(e){return s("twitterImage",e,"rank_math_twitter_image")}function $(e){return s("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function Z(e){return s("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function J(e){return s("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function Q(e){return s("twitterPlayerSize",e,"rank_math_twitter_player_size")}function X(e){return s("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function ee(e){return s("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function te(e){return s("twitterAppDescription",e,"rank_math_twitter_app_description")}function ne(e){return s("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function re(e){return s("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function ae(e){return s("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function ie(e){return s("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function oe(e){return s("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function le(e){return s("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function ce(e){return s("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function se(e){return s("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function ue(e){return s("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function pe(e){return s("twitterAppCountry",e,"rank_math_twitter_app_country")}function me(e){return u("isLoaded",e)}function de(e){return u("selectedKeyword",e)}function he(){return u("refreshResults",Date.now())}function fe(){return u("isPro",!0)}function be(e){return u("isDiviPageSettingsBarActive",e)}function ge(e){return u("isDiviRankMathModalActive",e)}var we=n(1),ye=n(0),ve=n(15),ke=n.n(ve);function Oe(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 _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e){return u("isSchemaEditorOpen",e)}function Te(e){return u("isSchemaTemplatesOpen",e)}function Se(e){return u("schemaUpdated",e)}function Ie(e){return u("editingSchemaId",e)}function Pe(e){return u("editorTab",e)}function Ce(e){return u("templateTab",e)}function De(e){return u("editSchemas",e)}function xe(e){return s("schemas",e)}function Ne(e,t){var n=_e({},Object(o.select)("rank-math").getEditSchemas());return n[e]=t,u("editSchemas",n)}function Ae(e,t){var n=_e({},Object(o.select)("rank-math").getSchemas());return n[e]=t,s("schemas",n)}function Re(e){var t=_e({},Object(o.select)("rank-math").getSchemas());return delete t[e],Object(c.doAction)("rank_math_schema_trash",e),s("schemas",t,"rank_math_delete_"+e,"")}function Me(e,t,n){return ke()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:n}}).then((function(n){t({loading:!1,showNotice:!0,postId:n.id}),setTimeout((function(){t({showNotice:!1}),Object(we.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(ye.__)("Edit Schema","rank-math"),window.history.pushState(null,"",n.link.replace(/&amp;/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function Ue(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 Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){He(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le=rankMath.assessor.serpData,ze=rankMath.assessor.hasRedirection,Be={postID:null,title:Le.title?Le.title:Le.titleTemplate,description:Le.description,keywords:Le.focusKeywords,pillarContent:Le.pillarContent,featuredImage:"",permalink:!1,primaryTerm:Le.primaryTerm,robots:Le.robots,advancedRobots:Le.advancedRobots,canonicalUrl:Le.canonicalUrl,breadcrumbTitle:Le.breadcrumbTitle,showScoreFrontend:Le.showScoreFrontend,redirectionID:ze?Object(we.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:ze?Object(we.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:ze?Object(we.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:Le.facebookTitle,facebookImage:Le.facebookImage,facebookImageID:Le.facebookImageID,facebookAuthor:Le.facebookAuthor,facebookDescription:Le.facebookDescription,facebookHasOverlay:Le.facebookHasOverlay,facebookImageOverlay:Le.facebookImageOverlay,twitterTitle:Le.twitterTitle,twitterImage:Le.twitterImage,twitterAuthor:Le.twitterAuthor,twitterImageID:Le.twitterImageID,twitterCardType:Le.twitterCardType,twitterUseFacebook:Le.twitterUseFacebook,twitterDescription:Le.twitterDescription,twitterHasOverlay:Le.twitterHasOverlay,twitterImageOverlay:Le.twitterImageOverlay,twitterPlayerUrl:Le.twitterPlayerUrl,twitterPlayerSize:Le.twitterPlayerSize,twitterPlayerStream:Le.twitterPlayerStream,twitterPlayerStreamCtype:Le.twitterPlayerStreamCtype,twitterAppDescription:Le.twitterAppDescription,twitterAppIphoneName:Le.twitterAppIphoneName,twitterAppIphoneID:Le.twitterAppIphoneID,twitterAppIphoneUrl:Le.twitterAppIphoneUrl,twitterAppIpadName:Le.twitterAppIpadName,twitterAppIpadID:Le.twitterAppIpadID,twitterAppIpadUrl:Le.twitterAppIpadUrl,twitterAppGoogleplayName:Le.twitterAppGoogleplayName,twitterAppGoogleplayID:Le.twitterAppGoogleplayID,twitterAppGoogleplayUrl:Le.twitterAppGoogleplayUrl,twitterAppCountry:Le.twitterAppCountry,schemas:Object(we.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function Ge(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Be,n=arguments.length>1?arguments[1]:void 0,r=Fe({},t.dirtyMetadata);return!1!==n.metaKey&&(r[n.metaKey]=n.metaValue),"RANK_MATH_APP_DATA"===n.type?"dirtyMetadata"===n.key?Fe(Fe({},t),{},{dirtyMetadata:n.value}):Fe(Fe({},t),{},(He(e={},n.key,n.value),He(e,"dirtyMetadata",r),e)):t}function Ke(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 Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){We(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ye={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(we.isEmpty)(Object(we.get)(rankMath.assessor,"redirection.id",""))||!Object(we.isEmpty)(Object(we.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1};function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ye,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?Ve(Ve({},e),{},We({},t.key,t.value)):e}function $e(e){return e.appData}function Ze(e){return e.appData.dirtyMetadata}function Je(e){return e.appData.score}function Qe(e){return e.appData.keywords}function Xe(e){return e.appData.pillarContent}function et(e){return e.appData.robots}function tt(e){return e.appData.advancedRobots}function nt(e){return e.appData.canonicalUrl}function rt(e){return e.appData.breadcrumbTitle}function at(e){return"todo"}function it(e){return e.appData.showScoreFrontend}function ot(e){return e.appUi.isLoaded}function lt(e){return e.appUi.selectedKeyword}function ct(e){return e.appUi.refreshResults}function st(e){return e.appUi.isPro}function ut(e){return e.appUi.isDiviPageSettingsBarActive}function pt(e){return e.appUi.isDiviRankMathModalActive}function mt(e){return e.appData.facebookTitle}function dt(e){return e.appData.facebookDescription}function ht(e){return e.appData.facebookAuthor}function ft(e){return e.appData.facebookImageID}function bt(e){return e.appData.facebookImage}function gt(e){return e.appData.facebookHasOverlay}function wt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function yt(e){return e.appData.postID}function vt(e){return e.appData.title}function kt(e){return e.appData.permalink}function Ot(e){return e.appData.description}function _t(e){return e.appData.featuredImage}function jt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function Et(e){return e.appData.primaryTerm}function Tt(e){return e.appData.redirectionID}function St(e){return e.appData.redirectionType}function It(e){return e.appData.redirectionUrl}function Pt(e){return e.appUi.redirectionItem}function Ct(e){return e.appUi.hasRedirect}var Dt=n(13);function xt(e){return Object(Dt.a)(e.appUi.serpTitle)}function Nt(e){return e.appUi.serpDescription}function At(e){return e.appUi.isSnippetEditorOpen}function Rt(e){return e.appUi.snippetPreviewType}function Mt(e){return e.appUi.isTrendsCtaOpen}function Ut(e){return e.appUi.isSchemaEditorOpen}function Ft(e){return e.appUi.isSchemaTemplatesOpen}function Ht(e){return e.appUi.schemaUpdated}function Lt(e){return e.appData.schemas}function zt(e){return e.appUi.editSchemas}function Bt(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function Gt(e){return e.appData.schemas[e.appUi.editingSchemaId]}function Kt(e){return e.appUi.editorTab}function Vt(e){return e.appUi.templateTab}function Wt(e){return e.appData.twitterUseFacebook}function Yt(e){return e.appData.twitterCardType}function qt(e){return e.appData.twitterTitle}function $t(e){return e.appData.twitterDescription}function Zt(e){return e.appData.twitterAuthor}function Jt(e){return e.appData.twitterImageID}function Qt(e){return e.appData.twitterImage}function Xt(e){return e.appData.twitterHasOverlay}function en(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function tn(e){return e.appData.twitterAppDescription}function nn(e){return e.appData.twitterAppIphoneID}function rn(e){return e.appData.twitterAppIphoneName}function an(e){return e.appData.twitterAppIphoneUrl}function on(e){return e.appData.twitterAppIpadID}function ln(e){return e.appData.twitterAppIpadName}function cn(e){return e.appData.twitterAppIpadUrl}function sn(e){return e.appData.twitterAppGoogleplayID}function un(e){return e.appData.twitterAppGoogleplayName}function pn(e){return e.appData.twitterAppGoogleplayUrl}function mn(e){return e.appData.twitterAppCountry}function dn(e){return e.appData.twitterPlayerUrl}function hn(e){return e.appData.twitterPlayerSize}function fn(e){return e.appData.twitterPlayerStream}function bn(e){return e.appData.twitterPlayerStreamCtype}var gn=Object(o.registerStore)("rank-math",{reducer:Object(o.combineReducers)(a),selectors:i,actions:r});function wn(){return gn}},,function(e,t,n){"use strict";var r=n(1);t.a=function(e,t,n,a){return""===e||Object(r.isUndefined)(t)?t:(t=Object(r.truncate)(t,{length:n,separator:a||" "})).replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"}))}},function(e,t,n){"use strict";t.a=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},,function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAfterFocusKeyword"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement("div",{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAfterEditor"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAdvancedTab"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";n(2);var r=n(8),a=n(1),i=n(6),o=n(9),l=n(13),c=function(e,t){return e=(e=r.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(a.truncate)(e,{length:t,separator:" "}):e};t.a=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),n=t.excerpt,s=t.content?function(e){if(Object(a.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(a.filter)(r.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==e.trim()}));if(!t.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var i=Object(a.filter)(t,(function(e){return Object(a.includes)(e.toLowerCase(),n.toLowerCase())}));if(0<i.length)return c(i[0],160)}return c(t[0],160)}(t.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",u=Object(a.isUndefined)(n)||Object(a.isEmpty)(n)?s:n;if(o.a.setVariable("excerpt",u),o.a.setVariable("seo_description",u),""!==(e=Object(l.a)(Object(i.applyFilters)("rankMath/description",e))))return r.Helpers.cleanText(e);if(!Object(a.isUndefined)(n)&&!Object(a.isEmpty)(n))return r.Helpers.cleanText(n);var p=rankMath.assessor.serpData.descriptionTemplate;return Object(a.isUndefined)(p)||""===p?s:r.Helpers.cleanText(p)}},function(e,t,n){var r=n(27),a=n(40),i=n(43),o=Math.max,l=Math.min;e.exports=function(e,t,n){var c,s,u,p,m,d,h=0,f=!1,b=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(t){var n=c,r=s;return c=s=void 0,h=t,p=e.apply(r,n)}function y(e){return h=e,m=setTimeout(k,t),f?w(e):p}function v(e){var n=e-d;return void 0===d||n>=t||n<0||b&&e-h>=u}function k(){var e=a();if(v(e))return O(e);m=setTimeout(k,function(e){var n=t-(e-d);return b?l(n,u-(e-h)):n}(e))}function O(e){return m=void 0,g&&c?w(e):(c=s=void 0,p)}function _(){var e=a(),n=v(e);if(c=arguments,s=this,d=e,n){if(void 0===m)return y(d);if(b)return clearTimeout(m),m=setTimeout(k,t),w(d)}return void 0===m&&(m=setTimeout(k,t)),p}return t=i(t)||0,r(n)&&(f=!!n.leading,u=(b="maxWait"in n)?o(i(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),_.cancel=function(){void 0!==m&&clearTimeout(m),h=0,c=d=s=m=void 0},_.flush=function(){return void 0===m?p:O(a())},_}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(41),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},function(e,t,n){var r=n(28).Symbol;e.exports=r},function(e,t,n){"use strict";var r=n(0),a=n(6);function i(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,r.key,r)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,n,o;return t=e,(n=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(r.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(r.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(r.sprintf)(Object(r.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(r.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(t.prototype,n),o&&i(t,o),e}();t.a=o},function(e,t,n){"use strict";var r=n(1),a=n(13);function i(e,t,n){var a=0;return!1!==Object(r.get)(n,"pixelWidth",!1)&&(a=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),a)+"%"}function o(e,t){return e<=t.min||e>t.max}function l(e,t){return e<=t.minWidth||e>t.pixelWidth}t.a=function(e,t){var n=Object(a.a)(e).length,c=0,s=!1;if(!1!==Object(r.get)(t,"pixelWidth",!1)){s=!0;var u=document.createTextNode(e),p=document.createElement("span");p.appendChild(u),p.id="rank-math-width-tester",p.className=t.widthCheckerClass;var m=document.body.appendChild(p);c=document.getElementById("rank-math-width-tester").offsetWidth,m.outerHTML=""}return{left:i(n,c,t),isInvalid:o(n,t),isInvalidWidth:!!s&&l(c,t),count:n+" / "+t.max,pixelWidth:s?c+"px / "+t.pixelWidth+"px":""}}},function(e,t,n){"use strict";var r=n(0),a=n(7),i=n(5),o=n(3),l=n(4);t.a=Object(a.compose)(Object(l.withSelect)((function(e){return{isTrendsCtaOpen:e("rank-math").isTrendsCtaOpen()}})),Object(l.withDispatch)((function(e,t){return{toggleTrendsCta:function(){e("rank-math").toggleTrendsCta(!t.isTrendsCtaOpen)}}})))((function(e){var t=e.isTrendsCtaOpen,n=e.toggleTrendsCta;return wp.element.createElement(i.Fragment,null,wp.element.createElement("a",{href:"#",title:Object(r.__)("Trends","rank-math"),rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon},onClick:n}),t&&wp.element.createElement(o.Modal,{title:Object(r.__)("Google Trends","rank-math"),closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!0,onRequestClose:n,className:"rank-math-modal rank-math-trends-cta-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"components-panel__body rank-math-trends-cta-wrapper"},wp.element.createElement("img",{src:rankMath.trendsPreviewImage,alt:"",className:"trends-cta blurred"}),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"center"},wp.element.createElement("div",{className:"rank-math-cta-box blue-ticks width-50"},wp.element.createElement("h3",null,Object(r.__)("Track Keyword Trends","rank-math")),wp.element.createElement("ul",null,wp.element.createElement("li",null,Object(r.__)("Data fetched directly from Google","rank-math")),wp.element.createElement("li",null,Object(r.__)("Analyze search trends and compare keywords","rank-math")),wp.element.createElement("li",null,Object(r.__)("See data from a particular Country or timeframe","rank-math"))),wp.element.createElement("a",{className:"button button-primary is-green",href:rankMath.trendsUpgradeLink,rel:"noreferrer noopener",target:"_blank"},Object(r.__)("Upgrade","rank-math")))))))}))},function(e,t){e.exports=Tagify},function(e,t,n){"use strict";var r=n(1);t.a=function(e,t){var n=Object(r.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}},function(e,t){e.exports=wp.htmlEntities},function(e,t,n){"use strict";var r=n(1);t.a=function(){return!(Object(r.isNil)(window.wp)||Object(r.isNil)(wp.data)||Object(r.isNil)(wp.data.select("core/editor"))||!Object(r.isFunction)(wp.data.select("core/editor").getEditedPostAttribute))}},function(e,t,n){"use strict";var r=n(4),a=n(20);t.a=Object(r.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Object(a.a)(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))}))},function(e,t){e.exports=React},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){var r=n(28);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(42))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(44),a=n(27),i=n(46),o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}},function(e,t,n){var r=n(45),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(47),a=n(50);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(29),a=n(48),i=n(49),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},function(e,t,n){var r=n(29),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var a=o.call(e);return r&&(t?e[l]=n:delete e[l]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=l(n(38)),i=l(n(57)),o=l(n(60));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function s(e,t){var n,o,l,u,p,m,d,h,f=[],b={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],l=m;break}f.push(t[p.value])}else f.push(p.value);return n&&(u=function(e,t){var n,r,a=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,e),d=s(e.slice(l+1,u),t),o=a.default.cloneElement(n,{},d),f.push(o),u<e.length-1&&(h=s(e.slice(u+1),t),f=f.concat(h))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,i.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,a=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,o.default)(t);try{return s(i,n)}catch(e){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t,n){"use strict";var r=n(1),a=n(0),i=n(15),o=n.n(i),l=n(11),c=n(5),s=n(4),u=n(3);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(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=w(e);if(t){var a=w(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=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}}),t&&h(e,t)}(p,e);var t,n,i,c=f(p);function p(){var e;return m(this,p),(e=c.apply(this,arguments)).onChange=e.onChange.bind(g(e)),e.state={loading:!0,availableTerms:[],selectedTerms:[]},e}return t=p,(n=[{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(r.invoke)(this.fetchRequest,["abort"])}},{key:"componentDidUpdate",value:function(e,t){if(e.selectedTermIds.length<this.props.selectedTermIds.length){var n=Object(r.difference)(this.props.selectedTermIds,e.selectedTermIds)[0];if(!this.termIsAvailable(n))return void this.fetchTerms()}e.selectedTermIds!==this.props.selectedTermIds&&this.updateSelectedTerms(this.state.availableTerms,this.props.selectedTermIds),t.selectedTerms!==this.state.selectedTerms&&this.handleSelectedTermsChange()}},{key:"termIsAvailable",value:function(e){return!!this.state.availableTerms.find((function(t){return t.id===e}))}},{key:"updateSelectedTerms",value:function(e,t){this.setState({selectedTerms:this.filterSelectedTerms(e,t)})}},{key:"handleSelectedTermsChange",value:function(){var e=this.state.selectedTerms,t=this.props.primaryTermID;e.find((function(e){return e.id===t}))||this.onChange(e.length?e[0].id:"")}},{key:"fetchTerms",value:function(){var e=this,t=this.props.taxonomy;t&&(this.fetchRequest=o()({path:Object(l.addQueryArgs)("/wp/v2/".concat(t.rest_base),{per_page:-1,orderby:"count",order:"desc",_fields:"id,name"})}),this.fetchRequest.then((function(t){e.fetchRequest=null,e.setState({loading:!1,availableTerms:t,selectedTerms:e.filterSelectedTerms(t,e.props.selectedTermIds)})}),(function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({loading:!1}))})))}},{key:"filterSelectedTerms",value:function(e,t){return e.filter((function(e){return t.includes(e.id)}))}},{key:"onChange",value:function(e){Object(s.dispatch)("rank-math").updatePrimaryTermID(e,this.props.taxonomy.slug)}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.selectedTermIds!==e.selectedTermIds||this.props.primaryTermID!==e.primaryTermID||this.state.selectedTerms!==t.selectedTerms}},{key:"render",value:function(){return this.state.selectedTerms.length<2?null:this.state.loading?[wp.element.createElement(u.Spinner,{key:"spinner"}),wp.element.createElement("p",{key:"spinner-text"},"Loading")]:wp.element.createElement(u.SelectControl,{label:Object(a.__)("Select Primary Term","rank-math"),value:this.props.primaryTermID,options:this.state.selectedTerms.map((function(e){return{value:e.id,label:Object(r.unescape)(e.name)}})),onChange:this.onChange})}}])&&d(t.prototype,n),i&&d(t,i),p}(c.Component);t.a=y},,function(e,t,n){"use strict";var r=n(0),a=n(4),i=n(6),o=n(5),l=n(10),c=n.n(l),s=n(1),u=n(7),p=n(3);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(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=y(e);if(t){var a=y(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(){return(v=Object.assign||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}).apply(this,arguments)}function k(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(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)&&(a[n]=e[n])}return a}var O=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=k(e,["tabId","onClick","children","selected"]);return wp.element.createElement(p.Button,v({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},_=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}}),t&&b(e,t)}(i,e);var t,n,r,a=g(i);function i(){var e;h(this,i),(e=a.apply(this,arguments)).handleClick=function(t){var n=e.props.onSelect,r=void 0===n?s.noop:n;e.setState({selected:t}),r(t)},e.onNavigate=function(e,t){t.click()},e.toggle=function(){e.setState((function(e){return{isOpen:!e.isOpen}}))};var t=e.props,n=t.tabs,r=t.initialTabName;return e.state={isOpen:!1,selected:r||(n.length>0?n[0].name:null)},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,o=n.instanceId,l=n.orientation,u=void 0===l?"horizontal":l,m=n.tabs,h=Object(s.find)(m,{name:t}),f=o+"-"+h.name,b=m.slice(4);return wp.element.createElement("div",{className:i},wp.element.createElement(p.NavigableMenu,{role:"tablist",orientation:u,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},m.slice(0,4).map((function(n){return wp.element.createElement(O,{className:c()("components-tab-panel__tabs-item",n.className,d({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})),!Object(s.isEmpty)(b)&&wp.element.createElement(p.Button,{onClick:this.toggle,"aria-expanded":this.state.isOpen,className:c()("components-tab-panel__tabs-item",{active:this.state.isOpen})},wp.element.createElement("i",{className:"rm-icon rm-icon-plus"}),wp.element.createElement("span",null,"More")),this.state.isOpen&&wp.element.createElement("div",{className:"rank-math-extra-menu"},b.map((function(n){return wp.element.createElement(O,{className:c()("components-tab-panel__tabs-item",n.className,d({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})))),h&&wp.element.createElement("div",{"aria-labelledby":f,role:"tabpanel",id:f+"-view",className:"components-tab-panel__tab-content"},this.props.children(h)))}}])&&f(t.prototype,n),r&&f(t,r),i}(o.Component),j=Object(u.withInstanceId)(_),E=n(31),T=function(e){var t=Object(E.a)(e.source,e),n=t.pixelWidth?" (".concat(t.pixelWidth,")"):"";return wp.element.createElement("span",{className:c()("length-indicator-wrapper",{invalid:t.isInvalid})},wp.element.createElement("span",{className:"length-count"},t.count,n),wp.element.createElement("span",{className:"length-indicator"},wp.element.createElement("span",{style:{left:t.left}})))},S=n(35),I=n(51),P=n.n(I),C=function(e){var t=e.tags,n=e.components,r=e.children;return n=n||{},!1===Object(s.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),P()({mixedString:r,components:n})};function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(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,r.key,r)}}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(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=U(e);if(t){var a=U(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return R(this,n)}}function R(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?M(e):t}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var F=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}}),t&&N(e,t)}(l,e);var t,n,a,i=A(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this,e)).state={},t.state.variables=t.getFiltered(),t.state.filtered=t.state.variables,t.state.display="none",t.state.isOpen=!1,t.handleOutsideClick=t.handleOutsideClick.bind(M(t)),t}return t=l,(n=[{key:"getFiltered",value:function(){var e=this.props.exclude,t=Object.values(rankMath.variables);return Object(s.isUndefined)(e)?t:t.filter((function(t){return!e.includes(t.variable)}))}},{key:"render",value:function(){var e=this;return wp.element.createElement(o.Fragment,null,wp.element.createElement("div",{className:"rank-math-variables-dropdown",style:{display:this.state.display},ref:function(t){e.node=t}},wp.element.createElement(p.TextControl,{autoComplete:"off",placeholder:Object(S.decodeEntities)(Object(r.__)("Search &hellip;","rank-math")),onChange:function(t){e.handleSearch(t)}}),wp.element.createElement("ul",null,this.state.filtered.map((function(t,n){return wp.element.createElement("li",{key:n,"data-var":t.variable,role:"presentation",onClick:function(){e.props.onClick(t)}},wp.element.createElement("strong",null,t.name),wp.element.createElement("span",null,wp.element.createElement(C,{tags:"strong"},t.description.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"))))}),this))),wp.element.createElement(p.Button,{icon:"arrow-down-alt2",onClick:function(){e.toggle()}}))}},{key:"toggle",value:function(){this.state.isOpen?document.removeEventListener("click",this.handleOutsideClick,!1):document.addEventListener("click",this.handleOutsideClick,!1),this.setState({display:this.state.isOpen?"none":"block",isOpen:!this.state.isOpen})}},{key:"handleOutsideClick",value:function(e){this.node.contains(e.target)||this.toggle()}},{key:"handleSearch",value:function(e){var t=e.toLowerCase();2>t.length?this.setState({filtered:this.state.variables}):this.setState({filtered:this.state.variables.filter((function(e){return-1!==Object.values(e).join(" ").toLowerCase().indexOf(t)}))})}}])&&x(t.prototype,n),a&&x(t,a),l}(o.Component),H=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{title:t.getTitle(),serpTitle:t.getSerpTitle()}})),Object(a.withDispatch)((function(e){return{updateTitle:function(t){e("rank-math").updateSerpTitle(t),e("rank-math").updateTitle(t)}}})))((function(e){var t=e.title,n=e.serpTitle,a=e.updateTitle;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-title"},Object(r.__)("Title","rank-math")),wp.element.createElement(T,{source:n,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextControl,{id:"rank-math-editor-title",value:t,placeholder:rankMath.assessor.serpData.titleTemplate,help:Object(r.__)("This is what will appear in the first line when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(F,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),L=n(8),z=n(11),B=Object(u.compose)(Object(a.withSelect)((function(){var e=rankMathEditor.assessor.dataCollector;return{permalink:e.getSlug(),serpPermalink:e.getPermalink()}})),Object(a.withDispatch)((function(){return{updatePermalink:function(e){rankMathEditor.updatePermalink(L.Helpers.sanitizeText(e))},updatePermalinkSanitize:function(e){rankMathEditor.updatePermalinkSanitize(L.Helpers.sanitizeText(e))}}})))((function(e){var t=e.permalink,n=e.serpPermalink,a=e.updatePermalink,i=e.updatePermalinkSanitize;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-permalink"},Object(r.__)("Permalink","rank-math")),wp.element.createElement(T,{source:Object(z.safeDecodeURIComponent)(n),min:5,max:75}),wp.element.createElement(p.TextControl,{id:"rank-math-editor-permalink",value:rankMath.is_front_page?"/":Object(z.safeDecodeURIComponent)(t),onChange:a,help:rankMath.is_front_page?Object(r.__)("Editing Homepage permalink is not possible.","rank-math"):Object(r.__)("This is the unique URL of this page, displayed below the post title in the search results.","rank-math"),disabled:rankMath.is_front_page?"disabled":"",onBlur:function(e){i(e.target.value)}}))})),G=n(13),K=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{description:t.getDescription(),serpDescription:t.getSerpDescription()}})),Object(a.withDispatch)((function(e){return{updateDescription:function(t){e("rank-math").updateSerpDescription(t),e("rank-math").updateDescription(t)}}})))((function(e){var t=e.description,n=e.serpDescription,a=e.updateDescription;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-description"},Object(r.__)("Description","rank-math")),wp.element.createElement(T,{source:n,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextareaControl,{id:"rank-math-editor-description",value:Object(G.a)(t),placeholder:n||rankMath.assessor.serpData.descriptionTemplate,help:Object(r.__)("This is what will appear as the description when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(F,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),V=Object(u.compose)(Object(a.withSelect)((function(e){return{type:e("rank-math").getSnippetPreviewType()}})),Object(a.withDispatch)((function(e,t){return{updatePreviewType:function(n){e("rank-math").updateSnippetPreviewType(n===t.type?"":n)}}})))((function(e){var t=e.type,n=e.updatePreviewType,r=c()("button button-secondary button-small",{active:"desktop"===t}),a=c()("button button-secondary button-small",{active:"mobile"===t});return wp.element.createElement("div",{className:"rank-math-button-devices alignright"},wp.element.createElement("div",{onClick:function(){return n("desktop")},className:r},wp.element.createElement("i",{className:"rm-icon rm-icon-desktop"})),wp.element.createElement("div",{onClick:function(){return n("mobile")},className:a},wp.element.createElement("i",{className:"rm-icon rm-icon-mobile"})))})),W=n(37),Y=n(19),q=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(p.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},$=Object(a.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(s.find)(t,(function(e){return!Object(s.isEmpty)(e.metadata.isPrimary)}))}}))((function(e){var t=e.schema;if(Object(s.isEmpty)(t))return null;var n=Object(s.get)(t,"review.reviewRating",{}),a=n.ratingValue;if(Object(s.isEmpty)(a))return null;Object(s.get)(n,"worstRating",1);var i=Object(s.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},q(i,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},q(n,"filled"))}(a,0,i)),wp.element.createElement("span",{className:"serp-rating-label"},Object(r.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},a))}));function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J=Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getRobots();return{title:t.getSerpTitle(),permalink:rankMathEditor.assessor.dataCollector.getPermalink(),description:t.getSerpDescription(),previewType:t.getSnippetPreviewType(),isNoIndex:"noindex"in n,keyword:t.getSelectedKeyword().data.value}}))((function(e){var t,n=e.title,a=e.permalink,i=e.description,o=e.previewType,l=void 0===o?"desktop":o,s=e.isNoIndex,u=e.keyword,p=e.onClick,m=e.showScore,d=void 0===m||m,h=e.showDevices,f=void 0!==h&&h,b=c()("serp-preview",(Z(t={"expanded-preview":""!==l},"".concat(l,"-preview"),""!==l&&f),Z(t,"noindex-preview",s),t)),g=rankMathEditor.assessor.getResearch("slugify")(u);return wp.element.createElement("div",{className:b},wp.element.createElement("div",{className:"serp-preview-title","data-title":Object(r.__)("Preview","rank-math"),"data-desktop":Object(r.__)("Desktop Preview","rank-math"),"data-mobile":Object(r.__)("Mobile Preview","rank-math")},d&&wp.element.createElement(W.a,null)," ",f&&wp.element.createElement(V,null)),wp.element.createElement("div",{className:"serp-preview-wrapper"},wp.element.createElement("div",{className:"serp-preview-bg"},wp.element.createElement("div",{className:"serp-preview-input"},wp.element.createElement("input",{type:"text",value:u||Object(r.__)("Rank Math","rank-math"),disabled:!0}),wp.element.createElement("span",{className:"serp-icon-search"},wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))),wp.element.createElement("span",{className:"serp-icon-mic"})),wp.element.createElement("div",{className:"serp-preview-menus"},wp.element.createElement("ul",null,wp.element.createElement("li",{className:"current"},wp.element.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxwYXRoIGZpbGw9IiMzNEE4NTMiIGQ9Ik0xMCAydjJhNiA2IDAgMCAxIDYgNmgyYTggOCAwIDAgMC04LTh6Ii8+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTEwIDRWMmE4IDggMCAwIDAtOCA4aDJjMC0zLjMgMi43LTYgNi02eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDQiIGQ9Ik00IDEwSDJhOCA4IDAgMCAwIDggOHYtMmMtMy4zIDAtNi0yLjY5LTYtNnoiLz48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMjIgMjAuNTlsLTUuNjktNS42OUE3Ljk2IDcuOTYgMCAwIDAgMTggMTBoLTJhNiA2IDAgMCAxLTYgNnYyYzEuODUgMCAzLjUyLS42NCA0Ljg4LTEuNjhsNS42OSA1LjY5TDIyIDIwLjU5eiIvPjwvc3ZnPgo=",alt:"","data-atf":"1"}),Object(r.__)("All","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M14 13l4 5H6l4-4 1.79 1.78L14 13zm-6.01-2.99A2 2 0 0 0 8 6a2 2 0 0 0-.01 4.01zM22 5v14a3 3 0 0 1-3 2.99H5c-1.64 0-3-1.36-3-3V5c0-1.64 1.36-3 3-3h14c1.65 0 3 1.36 3 3zm-2.01 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h7v-.01h7a1 1 0 0 0 1-1V5z"}))," ",Object(r.__)("Images","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{clipRule:"evenodd",d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{clipRule:"evenodd",d:"M10 16.5l6-4.5-6-4.5v9zM5 20h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1zm14.5 2H5a3 3 0 0 1-3-3V4.4A2.4 2.4 0 0 1 4.4 2h15.2A2.4 2.4 0 0 1 22 4.4v15.1a2.5 2.5 0 0 1-2.5 2.5z",fillRule:"evenodd"}))," ",Object(r.__)("Videos","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M12 11h6v2h-6v-2zm-6 6h12v-2H6v2zm0-4h4V7H6v6zm16-7.22v12.44c0 1.54-1.34 2.78-3 2.78H5c-1.64 0-3-1.25-3-2.78V5.78C2 4.26 3.36 3 5 3h14c1.64 0 3 1.25 3 2.78zM19.99 12V5.78c0-.42-.46-.78-1-.78H5c-.54 0-1 .36-1 .78v12.44c0 .42.46.78 1 .78h14c.54 0 1-.36 1-.78V12zM12 9h6V7h-6v2z"}))," ",Object(r.__)("News","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))," ","More")),wp.element.createElement("ul",{className:"menus-right"},wp.element.createElement("li",null,Object(r.__)("Settings","rank-math")),wp.element.createElement("li",null,Object(r.__)("Tools","rank-math")))),wp.element.createElement("div",{className:"serp-preview-result-stats"},Object(r.__)("About 43,700,000 results (0.32 seconds) ","rank-math"))),wp.element.createElement("div",{className:"serp-preview-body",role:"button",tabIndex:0,onClick:function(){p&&p()}},wp.element.createElement("div",{className:"group"},wp.element.createElement("img",{src:rankMath.siteFavIcon,width:"16",height:"16",className:"serp-preview-favicon",alt:""}),wp.element.createElement("div",{className:"serp-url",dangerouslySetInnerHTML:{__html:Object(Y.a)(g,L.Helpers.sanitizeText(Object(z.safeDecodeURIComponent)(a)),75,/-? +/)}})),wp.element.createElement("div",{className:"group"},wp.element.createElement("h5",{className:"serp-title",dangerouslySetInnerHTML:{__html:Object(Y.a)(u,L.Helpers.sanitizeText(n),60)}})),wp.element.createElement($,null),wp.element.createElement("div",{className:"group"},wp.element.createElement("div",{className:"serp-description",dangerouslySetInnerHTML:{__html:Object(Y.a)(u,L.Helpers.sanitizeText(i),160)}}))),wp.element.createElement("div",{className:"serp-preview-noindex"},wp.element.createElement("h3",null,Object(r.__)("Noindex robots meta is enabled","rank-math")),wp.element.createElement("p",null,Object(r.__)("This page will not appear in search results. You can disable noindex in the Advanced tab.","rank-math")))))})),Q=Object(a.withSelect)((function(e){return{isNoIndex:"noindex"in e("rank-math").getRobots()}}))((function(){return wp.element.createElement("div",{className:"rank-math-editor-general"},wp.element.createElement(J,{showScore:!1,showDevices:!0}),wp.element.createElement(H,null),wp.element.createElement(B,null),wp.element.createElement(K,null))})),X=n(9),ee=function(e){var t=c()("rank-math-social-preview","rank-math-social-preview-"+e.network,e.cardType);return wp.element.createElement("div",{className:t},wp.element.createElement("div",{className:"rank-math-social-preview-item"},wp.element.createElement("div",{className:"rank-math-social-preview-meta"},wp.element.createElement("div",{className:"social-profile-image"}),e.children),wp.element.createElement("div",{className:"rank-math-social-preview-item-wrapper"},wp.element.createElement("div",{className:"rank-math-social-preview-image"},wp.element.createElement("img",{className:"rank-math-social-image-thumbnail",src:e.image,alt:""}),e.hasOverlay&&e.imageOverlay&&wp.element.createElement("img",{src:rankMath.overlayImages[e.imageOverlay].url,className:"rank-math-social-preview-image-overlay overlay-position-"+rankMath.overlayImages[e.imageOverlay].position,alt:""})),wp.element.createElement("div",{className:"rank-math-social-preview-caption"},"facebook"===e.network&&wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},e.siteurl),wp.element.createElement("h3",{className:"rank-math-social-preview-title"},e.title?X.a.swap(e.title):e.serpTitle),wp.element.createElement("p",{className:"rank-math-social-preview-description"},e.description?X.a.swap(e.description):e.serpDescription),"twitter"===e.network&&wp.element.createElement(o.Fragment,null,wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},wp.element.createElement(p.Dashicon,{icon:"admin-links"}),e.siteurl))))))},te=n(12),ne=function(e){return wp.element.createElement("div",{className:"components-base-control field-group"},wp.element.createElement(te.MediaUpload,{allowedTypes:["image"],multiple:!1,value:e.imageID,render:function(t){var n=t.open;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{onClick:n,className:"button",isPrimary:!0},e.imageID>0?Object(r.__)("Replace Image","rank-math"):Object(r.__)("Add Image","rank-math")),e.imageID>0&&wp.element.createElement(p.Button,{className:"button",isDestructive:!0,isLink:!0,onClick:e.removeImage},Object(r.__)("Remove Image","rank-math")))},onSelect:e.updateImage}),wp.element.createElement("p",{className:"components-base-control__help"},Object(r.__)("Upload at least 600x315px image. Recommended size is 1200x630px.","rank-math")),wp.element.createElement("div",{className:"notice notice-warning inline hidden"},wp.element.createElement("p",null,Object(r.__)("Image is smaller than the minimum size, please select a different image.","rank-math"))))};function re(){var e=rankMath.overlayImages,t=[];return Object.keys(e).forEach((function(n){t.push({label:e[n].name,value:n})})),t}function ae(){return(ae=Object.assign||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}).apply(this,arguments)}var ie=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=function(){if(t.getFacebookImage())return t.getFacebookImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{title:t.getFacebookTitle(),description:t.getFacebookDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getFacebookAuthor(),image:n,imageID:t.getFacebookImageID(),hasOverlay:t.getFacebookHasOverlay(),imageOverlay:t.getFacebookImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateFacebookImage(""),e("rank-math").updateFacebookImageID(0),e("rank-math").updateFacebookHasOverlay(!1)},updateImage:function(t){e("rank-math").updateFacebookImage(t.url),e("rank-math").updateFacebookImageID(t.id)},updateTitle:function(t){e("rank-math").updateFacebookTitle(t)},updateDescription:function(t){e("rank-math").updateFacebookDescription(t)},updateImageOverlay:function(t){e("rank-math").updateFacebookImageOverlay(t)},toggleOverlay:function(t){e("rank-math").updateFacebookHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(ee,ae({},e,{network:"facebook",siteurl:rankMath.parentDomain}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName),wp.element.createElement("div",{className:"social-time"},wp.element.createElement("span",null,Object(r.__)("2 hrs","rank-math")),wp.element.createElement("span",null,wp.element.createElement(p.Dashicon,{icon:"admin-site",size:"12"})))),wp.element.createElement("div",{className:"notice notice-alt notice-info components-base-control"},wp.element.createElement("p",null,Object(r.__)("Customize the title, description and images of your post used while sharing on Facebook and Twitter.","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/kb/meta-box-social-tab/?utm_source=Plugin&utm_medium=Gutenberg%20Social%20Tab&utm_campaign=WP",target:"_blank",rel:"noreferrer noopener"},Object(r.__)("Read more","rank-math")))),wp.element.createElement(ne,e),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:re(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Facebook, it might get you penalised if over-used.","rank-math"))))))})),oe=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{country:t.getTwitterAppCountry(),description:t.getTwitterAppDescription(),iphoneName:t.getTwitterAppIphoneName(),iphoneID:t.getTwitterAppIphoneID(),iphoneUrl:t.getTwitterAppIphoneUrl(),ipadName:t.getTwitterAppIpadName(),ipadID:t.getTwitterAppIpadID(),ipadUrl:t.getTwitterAppIpadUrl(),googleplayName:t.getTwitterAppGoogleplayName(),googleplayID:t.getTwitterAppGoogleplayID(),googleplayUrl:t.getTwitterAppGoogleplayUrl()}})),Object(a.withDispatch)((function(e){return{updateAppIphoneName:function(t){e("rank-math").updateTwitterAppIphoneName(t)},updateAppIphoneID:function(t){e("rank-math").updateTwitterAppIphoneID(t)},updateAppIphoneUrl:function(t){e("rank-math").updateTwitterAppIphoneUrl(t)},updateAppIpadName:function(t){e("rank-math").updateTwitterAppIpadName(t)},updateAppIpadID:function(t){e("rank-math").updateTwitterAppIpadID(t)},updateAppIpadUrl:function(t){e("rank-math").updateTwitterAppIpadUrl(t)},updateAppGoogleplayName:function(t){e("rank-math").updateTwitterAppGoogleplayName(t)},updateAppGoogleplayID:function(t){e("rank-math").updateTwitterAppGoogleplayID(t)},updateAppGoogleplayUrl:function(t){e("rank-math").updateTwitterAppGoogleplayUrl(t)},updateAppDescription:function(t){e("rank-math").updateTwitterAppDescription(t)},updateAppCountry:function(t){e("rank-math").updateTwitterAppCountry(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.description,label:Object(r.__)("App Description","rank-math"),help:Object(r.__)("You can use this as a more concise description than what you may have on the app store. This field has a maximum of 200 characters. (optional)","rank-math"),onChange:e.updateAppDescription}),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.iphoneName,label:Object(r.__)("iPhone App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIphoneName}),wp.element.createElement(p.TextControl,{value:e.iphoneID,label:Object(r.__)("iPhone App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIphoneID}),wp.element.createElement(p.TextControl,{value:e.iphoneUrl,label:Object(r.__)("iPhone App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIphoneUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.ipadName,label:Object(r.__)("iPad App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIpadName}),wp.element.createElement(p.TextControl,{value:e.ipadID,label:Object(r.__)("iPad App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIpadID}),wp.element.createElement(p.TextControl,{value:e.ipadUrl,label:Object(r.__)("iPad App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIpadUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.googleplayName,label:Object(r.__)("Google Play App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppGoogleplayName}),wp.element.createElement(p.TextControl,{value:e.googleplayID,label:Object(r.__)("Google Play App ID","rank-math"),help:Object(r.__)("Your app ID in the Google Play (.i.e. com.android.app)","rank-math"),onChange:e.updateAppGoogleplayID}),wp.element.createElement(p.TextControl,{value:e.googleplayUrl,label:Object(r.__)("Google Play App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppGoogleplayUrl}))}(e),wp.element.createElement(p.TextControl,{value:e.country,label:Object(r.__)("App Country","rank-math"),help:Object(r.__)("If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.","rank-math"),onChange:e.updateAppCountry}))})),le=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{url:t.getTwitterPlayerUrl(),size:t.getTwitterPlayerSize(),stream:t.getTwitterPlayerStream(),ctype:t.getTwitterPlayerStreamCtype()}})),Object(a.withDispatch)((function(e){return{updatePlayerUrl:function(t){e("rank-math").updateTwitterPlayerUrl(t)},updatePlayerSize:function(t){e("rank-math").updateTwitterPlayerSize(t)},updatePlayerStreamUrl:function(t){e("rank-math").updateTwitterPlayerStreamUrl(t)},updatePlayerStreamCtype:function(t){e("rank-math").updateTwitterPlayerStreamCtype(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.url,label:Object(r.__)("Player URL","rank-math"),help:Object(r.__)("HTTPS URL to iFrame player. This must be a HTTPS URL which does not generate active mixed content warnings in a web browser. The audio or video player must not require plugins such as Adobe Flash.","rank-math"),onChange:e.updatePlayerUrl}),wp.element.createElement(p.TextControl,{value:e.size,label:Object(r.__)("Player Size","rank-math"),help:Object(r.__)("iFrame width and height, specified in pixels in the following format: 600x400.","rank-math"),onChange:e.updatePlayerSize}),wp.element.createElement(p.TextControl,{value:e.stream,label:Object(r.__)("Stream URL","rank-math"),help:Object(r.__)("Optional URL to raw stream that will be rendered in Twitter’s mobile applications directly. If provided, the stream must be delivered in the MPEG-4 container format (the .mp4 extension). The container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile (BP), Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile (LC).","rank-math"),onChange:e.updatePlayerStreamUrl}),wp.element.createElement(p.TextControl,{value:e.ctype,label:Object(r.__)("Stream Content Type","rank-math"),help:Object(r.__)("The MIME type/subtype combination that describes the content contained in twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are those defined in RFC 4337 (MIME Type Registration for MP4).","rank-math"),onChange:e.updatePlayerStreamCtype}))}));function ce(){return(ce=Object.assign||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}).apply(this,arguments)}var se=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook(),r=function(){if(n&&t.getFacebookImage())return t.getFacebookImage();if(t.getTwitterImage())return t.getTwitterImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{useFacebook:n,cardType:t.getTwitterCardType(),title:n?t.getFacebookTitle():t.getTwitterTitle(),description:n?t.getFacebookDescription():t.getTwitterDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getTwitterAuthor(),image:r,imageID:n?t.getFacebookImageID():t.getTwitterImageID(),hasOverlay:n?t.getFacebookHasOverlay():t.getTwitterHasOverlay(),imageOverlay:n?t.getFacebookImageOverlay():t.getTwitterImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateTwitterImage(""),e("rank-math").updateTwitterImageID(0),e("rank-math").updateTwitterHasOverlay(!1)},updateImage:function(t){e("rank-math").updateTwitterImage(t.url),e("rank-math").updateTwitterImageID(t.id)},updateTitle:function(t){e("rank-math").updateTwitterTitle(t)},updateDescription:function(t){e("rank-math").updateTwitterDescription(t)},updateImageOverlay:function(t){e("rank-math").updateTwitterImageOverlay(t)},toggleUseFacebook:function(t){e("rank-math").updateTwitterUseFacebook(t)},updateCardType:function(t){e("rank-math").updateTwitterCardType(t)},toggleOverlay:function(t){e("rank-math").updateTwitterHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(ee,ce({},e,{network:"twitter",siteurl:rankMath.parentDomain,classes:e.cardType,description:Object(s.truncate)(e.description?e.description:e.serpDescription,{length:240,separator:" "})}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName,wp.element.createElement("span",{className:"social-username"},"@",e.author),wp.element.createElement("span",{className:"social-time"},Object(r.__)("2h","rank-math"))),wp.element.createElement("div",{className:"social-text"},Object(r.__)("The card for your website will look little something like this!","rank-math"))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Use Data from Facebook Tab","rank-math"),checked:e.useFacebook,onChange:e.toggleUseFacebook})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.SelectControl,{value:e.cardType,label:Object(r.__)("Card Type","rank-math"),options:[{value:"summary_large_image",label:Object(r.__)("Summary Card with Large Image","rank-math")},{value:"summary_card",label:Object(r.__)("Summary Card","rank-math")},{value:"app",label:Object(r.__)("App Card","rank-math")},{value:"player",label:Object(r.__)("Player Card","rank-math")}],onChange:e.updateCardType})),"player"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. Player Cards must be submitted for approval before they can be used. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/player",target:"blank"},"https://dev.twitter.com/cards/types/player"))),"app"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("The App Card is a great way to represent mobile applications on Twitter and to drive installs. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/app",target:"blank"}," https://dev.twitter.com/cards/types/app"))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement(ne,e),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:re(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Twitter, it might get you penalised if over-used.","rank-math"))))),"player"===e.cardType&&wp.element.createElement(le,null),"app"===e.cardType&&wp.element.createElement(oe,null))})),ue=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TabPanel,{className:"rank-math-editor-social",activeClass:"is-active",tabs:[{name:"facebook",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"facebook-alt"}),Object(r.__)("Facebook","rank-math")),view:ie,className:"button-facebook"},{name:"twitter",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"twitter"}),Object(r.__)("Twitter","rank-math")),view:se,className:"button-twitter"}]},(function(e){return Object(o.createElement)(e.view)})))},pe=n(2),me=n.n(pe);function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function he(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,r.key,r)}}function fe(e,t){return(fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function be(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=ye(e);if(t){var a=ye(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ge(this,n)}}function ge(e,t){return!t||"object"!==de(t)&&"function"!=typeof t?we(e):t}function we(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ye(e){return(ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ve=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}}),t&&fe(e,t)}(l,e);var t,n,a,i=be(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this))._handleRef=e._handleRef.bind(we(e)),e}return t=l,(n=[{key:"componentDidMount",value:function(){var e=me()(this.component),t=e.find(".stars a"),n=e.find(".smiley");t.on("mouseenter",(function(){var e=me()(this).index();t.removeClass("highlighted"),t.slice(0,e+1).addClass("highlighted"),e<2?n.removeClass("normal happy").addClass("angry"):e>3?n.removeClass("normal angry").addClass("happy"):n.removeClass("happy angry").addClass("normal")}))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){for(var e=this,t=[],n=1;n<=5;n++)t.push(wp.element.createElement("a",{key:n,href:"https://s.rankmath.com/wpreview",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"dashicons dashicons-star-filled"})));return wp.element.createElement("div",{className:"ask-review",ref:this._handleRef},wp.element.createElement("h3",null,Object(r.__)("Rate Rank Math SEO","rank-math")),wp.element.createElement("p",null,wp.element.createElement(C,{tags:"em"},Object(r.__)("Hey, we noticed you are using Rank Math SEO plugin for more than 2 weeks –{{em}}that's awesome!{{/em}} Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?","rank-math"))),wp.element.createElement("div",{className:"stars-wrapper"},wp.element.createElement("div",{className:"face"},wp.element.createElement("div",{className:"smiley happy"},wp.element.createElement("div",{className:"eyes"},wp.element.createElement("div",{className:"eye"}),wp.element.createElement("div",{className:"eye"})),wp.element.createElement("div",{className:"mouth"}))),wp.element.createElement("div",{className:"stars"},t)),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,wp.element.createElement("span",null,Object(r.__)("I already did. Please don't show this message again.","rank-math"))),onChange:function(){return e.alreadyReviewed()}}))}},{key:"alreadyReviewed",value:function(){me.a.ajax({url:rankMath.ajaxurl,data:{action:"rank_math_already_reviewed",security:rankMath.security}}),rankMath.pluginReviewed=!0;var e=me()(this.component);e.animate({opacity:.01},1500,(function(){var t=me()(".rank-math-editor > .components-tab-panel__tabs > button");t.first().click(),t.last().remove(),e.remove()}))}}])&&he(t.prototype,n),a&&he(t,a),l}(o.Component),ke=Object(p.withFilters)("rankMath.analytics.reportButton")((function(){return null})),Oe=Object(u.compose)(Object(a.withSelect)((function(e){return{isOpen:e("rank-math").isSnippetEditorOpen()}})),Object(a.withDispatch)((function(e,t){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!t.isOpen)}}})))((function(e){var t=e.isOpen,n=e.initialTab,a=void 0===n?"":n,i=e.toggleEditor,l=[{name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings"}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:Q},{name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social"}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:ue}];return rankMath.showReviewTab&&!1===rankMath.pluginReviewed&&l.push({name:"review",className:"review-tab",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-heart-filled"})),view:ve}),wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{isPrimary:!0,className:"rank-math-edit-snippet",onClick:i},Object(r.__)("Edit Snippet","rank-math")),""===a&&wp.element.createElement(ke,null),t&&wp.element.createElement(p.Modal,{title:"Preview Snippet Editor",closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!1,onRequestClose:i,className:"rank-math-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement(p.TabPanel,{className:"rank-math-tabs rank-math-editor",activeClass:"is-active",initialTabName:a,tabs:l},(function(e){return Object(o.createElement)(e.view)}))))})),_e=function(){return wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(p.BaseControl,{className:"rank-math-social"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Social Media Preview","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media.","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Click on the button below to view and edit the preview.","rank-math")),wp.element.createElement(Oe,{buttonLabel:Object(r.__)("Preview & Edit Social Media","rank-math"),initialTab:"social"})))},je=Object(u.withInstanceId)((function(e){var t=e.className,n=e.instanceId,r=e.children,a="rank-math-tooltip-"+n,i=c()("rank-math-tooltip",t);return wp.element.createElement("span",{className:i},wp.element.createElement("input",{id:a,type:"checkbox"}),wp.element.createElement("label",{htmlFor:a,className:"dashicons-before dashicons-editor-help"}),wp.element.createElement("div",{className:"rank-math-tooltip-content"},r))})),Ee=n(34);function Te(e){return(Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ie(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,r.key,r)}}function Pe(e,t){return(Pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ce(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=xe(e);if(t){var a=xe(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return De(this,n)}}function De(e,t){return!t||"object"!==Te(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xe(e){return(xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ne=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}}),t&&Pe(e,t)}(l,e);var t,n,a,i=Ce(l);function l(){return Se(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e){return e.isLoaded!==this.props.isLoaded||e.selectedKeyword.index!==this.props.selectedKeyword.index||e.isRefreshing!==this.props.isRefreshing}},{key:"render",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();return this.results=rankMathEditor.resultManager.getResult(t),this.isPrimary=0===this.props.selectedKeyword.index,Object(s.isUndefined)(this.results)?null:Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}))}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e);return wp.element.createElement(p.PanelBody,{key:"panel-"+e,title:wp.element.createElement(o.Fragment,null,this.getGroupTitle(e),0===this.errors?wp.element.createElement("span",{className:"rank-math-group-score test-ok"},Object(r.__)("All Good","rank-math")):wp.element.createElement("span",{className:"rank-math-group-score test-fail"},this.errors," ",Object(r.__)("Errors","rank-math"))),initialOpen:"basic"===e,className:"rank-math-checklist"},wp.element.createElement("ul",null,t))}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,r=this.getGroupItems(e);return Object.keys(r).map((function(e){if(Object(s.isUndefined)(n[e])||!t.isPrimary&&r[e])return!1;var a=n[e],i=c()("seo-check-"+e,{"test-ok":a.hasScore(),"test-fail":!a.hasScore()});return a.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(i+=" "+Object(Ee.a)(a.getScore(),a.getMaxScore())),!1===a.hasScore()&&(t.errors+=1),wp.element.createElement("li",{key:e,className:i},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:a.getText()}}),a.hasTooltip()?wp.element.createElement(je,null,a.getTooltip()):null)}))}},{key:"getGroupItems",value:function(e){return{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return{basic:Object(r.__)("Basic SEO","rank-math"),advanced:Object(r.__)("Additional","rank-math"),"title-readability":Object(r.__)("Title Readability","rank-math"),"content-readability":Object(r.__)("Content Readability","rank-math")}}}])&&Ie(t.prototype,n),a&&Ie(t,a),l}(o.Component),Ae=Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isRefreshing:t.isRefreshing(),selectedKeyword:t.getSelectedKeyword()}}))(Ne),Re=n(22),Me=Object(a.withSelect)((function(e){return{isPro:e("rank-math").isPro()}}))((function(e){return e.isPro?rankMath.isUserRegistered?wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(C,{components:{link:wp.element.createElement("a",{href:"https://rankmath.com/kb/score-100-in-tests/?utm_source=Plugin&utm_medium=Gutenberg%20General%20Tab%20Score%20Notice&utm_campaign=WP",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Read here to {{link}}Score 100/100{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(C,{components:{link:wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=help",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Activate your account by {{link}}connecting to Rank Math!{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(C,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.futureSeo,target:"_blank",rel:"noopener noreferrer"}),strong:wp.element.createElement("strong",null)}},Object(r.__)("Want more? {{link}}{{strong}}Upgrade today to the PRO{{/strong}}{{/link}} version.","rank-math")))})),Ue=n(33),Fe=n.n(Ue);function He(e){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Le(){return(Le=Object.assign||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}).apply(this,arguments)}function ze(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,r.key,r)}}function Be(e,t){return(Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ge(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=We(e);if(t){var a=We(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ke(this,n)}}function Ke(e,t){return!t||"object"!==He(t)&&"function"!=typeof t?Ve(e):t}function Ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function We(e){return(We=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ye=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}}),t&&Be(e,t)}(i,e);var t,n,r,a=Ge(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e))._handleRef=t._handleRef.bind(Ve(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this.tagify=new Fe.a(this.component,this.props.settings||{}),this.props.settings.callbacks.setup&&setTimeout((function(){e.props.settings.callbacks.setup.call(e.tagify),e.tagify.DOM.input.setAttribute("contenteditable",!0),e.tagify.DOM.input.addEventListener("blur",e.props.settings.callbacks.blur)}),100)}},{key:"shouldComponentUpdate",value:function(e){return this.tagify.settings.whitelist=e.settings.whitelist,e.showDropdown&&this.tagify.dropdown.show.call(this.tagify,e.showDropdown),!1===e.showDropdown&&this.tagify.dropdown.hide.call(this.tagify,!0),!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){var e={ref:this._handleRef,name:this.props.name,autoFocus:this.props.autofocus,className:this.props.className,placeholder:this.props.placeholder};return"textarea"===this.props.mode?wp.element.createElement("textarea",Le({},e,{defaultValue:this.props.initialValue})):wp.element.createElement("input",Le({},e,{defaultValue:this.props.initialValue}))}},{key:"toArray",value:function(){return this.tagify.value.map((function(e){return e.value}))}},{key:"toString",value:function(){return this.toArray().join(",")}},{key:"queryTags",value:function(){return this.tagify.DOM.scope.querySelectorAll("tag")}}])&&ze(t.prototype,n),r&&ze(t,r),i}(o.Component);function qe(e){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $e(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,r.key,r)}}function Ze(e,t){return(Ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Je(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=et(e);if(t){var a=et(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Qe(this,n)}}function Qe(e,t){return!t||"object"!==qe(t)&&"function"!=typeof t?Xe(e):t}function Xe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function et(e){return(et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tt=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}}),t&&Ze(e,t)}(l,e);var t,n,a,i=Je(l);function l(e){var t,n=e.keywords;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this)).state={},t.request=null,t.hasAdded=!1,t.clickCount=0,t.singleClickTimer=null,t.tagifyField=Object(o.createRef)(),t.keywords=n,t.hideDropdown=t.hideDropdown.bind(Xe(t)),window.rankMathEditor.focusKeywordField=Xe(t),t}return t=l,(n=[{key:"render",value:function(){var e=this,t={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this),blur:this.hideDropdown};rankMath.isUserRegistered&&(t.input=Object(s.debounce)(this.onInput.bind(this),300));var n={addTagOnBlur:!0,maxTags:rankMath.maxTags,whitelist:this.state.whitelist||[],transformTag:function(t){t.value=e.stripTags(t.value)},templates:{tag:function(t,n){return"<tag title='".concat(e.stripTags(t),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(n.class?n.class:"","'\n ").concat(e.getAttributes_esc(n),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(e.stripTags(t),"</span>\n </div>\n </tag>")}},callbacks:t};return this.setKeywordsClasses(),wp.element.createElement(Ye,{ref:this.tagifyField,mode:"input",settings:n,showDropdown:this.state.showDropdown,initialValue:this.keywords,placeholder:Object(r.__)("Example: Rank Math SEO","rank-math")})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.showDropdown!==t.showDropdown||e.isRefreshing!==this.props.isRefreshing||e.keywords!==this.props.keywords}},{key:"getScoreClass",value:function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},{key:"setKeywordsClasses",value:function(){var e=this;if(null!==this.tagifyField.current){var t=this.tagifyField.current,n=t.tagify.value;if(n.length>0){var r=t.queryTags();n.map((function(t,n){var a=rankMathEditor.resultManager.getScore(L.Helpers.removeDiacritics(t.value));r[n].classList.remove("ok-fk","good-fk","bad-fk"),r[n].classList.add(e.getScoreClass(a))}))}}}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"onInput",value:function(e){var t=this;(e=Object(s.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hideDropdown(),this.hasAdded?this.hasAdded=!1:this.request=me.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var r=me.a.map(n,(function(e){return e}));t.setState({whitelist:r,showDropdown:e})}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,0===e.detail.index&&this.props.updateSelectedKeyword(e.detail,this.tagifyField.current),this.updateKeywords()}},{key:"onRemove",value:function(e){this.hideDropdown(),0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){var t=this;this.clickCount++,1===this.clickCount?this.singleClickTimer=setTimeout((function(){t.clickCount=0,t.props.updateSelectedKeyword(e.detail,t.tagifyField.current)}),400):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0)}},{key:"onEdit",value:function(){this.hasAdded=!0,this.updateKeywords()}},{key:"selectFirstKeyword",value:function(){var e=this.tagifyField.current,t=e.tagify.value,n={tag:"",index:0,data:{value:""}};t.length>0&&(n={tag:e.queryTags()[0],index:0,data:{value:t[0].value}}),this.props.updateSelectedKeyword(n,e)}},{key:"updateKeywords",value:function(){var e=this.tagifyField.current,t=this.stripTags(e.toString());this.props.updateKeywords(t)}},{key:"hideDropdown",value:function(){null!==this.request&&(this.request.abort(),this.request=null),this.setState({whitelist:[],showDropdown:!1})}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,n,r=Object.keys(e),a="";for(n=r.length;n--;)"class"!=(t=r[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=me()("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||""}}])&&$e(t.prototype,n),a&&$e(t,a),l}(o.Component),nt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{keywords:t.getKeywords(),isRefreshing:t.isRefreshing()}})),Object(a.withDispatch)((function(e){return{updateKeywords:function(t){e("rank-math").updateKeywords(t)},updateSelectedKeyword:function(t,n){n.queryTags().forEach((function(e){e.classList.remove("selected")})),""!==t.tag&&t.tag.classList.add("selected"),e("rank-math").updateSelectedKeyword(t)}}})))(tt),rt=n(32),at=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isPillarContent:t.getPillarContent()}})),Object(a.withDispatch)((function(e,t){return{togglePillarContent:function(t){e("rank-math").updatePillarContent(t)}}})))((function(e){var t=e.isLoaded,n=e.isPillarContent,a=e.togglePillarContent;return t?wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-focus-keyword"},wp.element.createElement("h2",{className:"components-panel__body-title"},Object(r.__)("Focus Keyword","rank-math"),wp.element.createElement(je,null,wp.element.createElement(C,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.hundredScoreLink,target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Insert keywords you want to rank for. Try to {{link}}attain 100/100 points{{/link}} for better chances of ranking.","rank-math")))),!rankMath.isPro&&wp.element.createElement(rt.a,null),wp.element.createElement(Re.a.Slot,null,(function(e){return e.length>0?e:[]})),wp.element.createElement("div",null,wp.element.createElement(nt,null)),wp.element.createElement(Me,null),wp.element.createElement(p.CheckboxControl,{className:"pillar-content",label:wp.element.createElement(o.Fragment,null,wp.element.createElement("strong",null,Object(r.__)("This post is Pillar Content","rank-math")),wp.element.createElement(je,null,Object(r.__)("Select one or more Pillar Content posts for each post tag or category to show them in the Link Suggestions meta box.","rank-math"))),checked:n,onChange:a})):null})),it=n(23),ot=Object(a.withDispatch)((function(e){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!0)}}}))((function(e){var t=e.toggleEditor;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(J,{onClick:t}),wp.element.createElement(Oe,null),wp.element.createElement(it.a.Slot,null,(function(e){return e.length>0?e:[]}))),wp.element.createElement(at,null),rankMath.canUser.analysis&&wp.element.createElement(Ae,null))})),lt=function(e,t,n){return!1===n?delete e[t]:e[t]=!0,e},ct=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getRobots();return{robots:t,isRobotIndex:"index"in t,isRobotNoIndex:"noindex"in t,isRobotNoFollow:"nofollow"in t,isRobotNoArchive:"noarchive"in t,isRobotNoImageIndex:"noimageindex"in t,isRobotNoSnippet:"nosnippet"in t}})),Object(a.withDispatch)((function(e,t){var n=t.robots;return{updateRobots:function(t,r){n=lt(n,t,r),"index"===t&&(n=lt(n,"noindex",!r)),"noindex"===t&&(n=lt(n,"index",!r)),e("rank-math").updateRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list"},wp.element.createElement(p.CheckboxControl,{className:"robot-choice-index",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Index","rank-math"),wp.element.createElement(je,null,Object(r.__)("Instructs search engines to index and show these pages in the search results","rank-math"))),checked:e.isRobotIndex,onChange:function(t){return e.updateRobots("index",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Index","rank-math"),wp.element.createElement(je,null,Object(r.__)("Prevents pages from being indexed and displayed in search engine result pages","rank-math"))),checked:e.isRobotNoIndex,onChange:function(t){return e.updateRobots("noindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nofollow",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Nofollow","rank-math"),wp.element.createElement(je,null,Object(r.__)("Prevents search engines from following links on the pages","rank-math"))),checked:e.isRobotNoFollow,onChange:function(t){return e.updateRobots("nofollow",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noarchive",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Archive","rank-math"),wp.element.createElement(je,null,Object(r.__)("Prevents search engines from showing Cached links for pages","rank-math"))),checked:e.isRobotNoArchive,onChange:function(t){return e.updateRobots("noarchive",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noimageindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Image Index","rank-math"),wp.element.createElement(je,null,Object(r.__)("Lets you specify that you do not want your pages to appear as the referring page for images that appear in image search results","rank-math"))),checked:e.isRobotNoImageIndex,onChange:function(t){return e.updateRobots("noimageindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nosnippet",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Snippet","rank-math"),wp.element.createElement(je,null,Object(r.__)("Prevents a snippet from being shown in the search results","rank-math"))),checked:e.isRobotNoSnippet,onChange:function(t){return e.updateRobots("nosnippet",t)}})))}));function st(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 ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach((function(t){pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{redirectionID:t.getRedirectionID(),redirectionUrl:t.getRedirectionUrl(),redirectionType:t.getRedirectionType(),hasRedirect:t.hasRedirect()}})),Object(a.withDispatch)((function(e,t){return{toggle:function(){e("rank-math").updateHasRedirect(!t.hasRedirect),e("rank-math").updateRedirectionItem(ut(ut({},t),{},{hasRedirect:!t.hasRedirect}))},updateRedirection:function(n,r){e("rank-math").updateRedirection(n,r),e("rank-math").updateRedirectionItem(ut(ut({},t),{},pt({},n,r)))}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.ToggleControl,{className:e.hasRedirect?"is-open":"is-close",label:Object(r.__)("Redirect","rank-math"),checked:e.hasRedirect,onChange:function(){return e.toggle()}}),wp.element.createElement(p.SelectControl,{label:Object(r.__)("Redirection Type","rank-math"),className:e.hasRedirect?"":"hidden",value:e.redirectionType,onChange:function(t){return e.updateRedirection("redirectionType",t)},options:[{value:"301",label:Object(r.__)("301 Permanent Move","rank-math")},{value:"302",label:Object(r.__)("302 Temporary Move","rank-math")},{value:"307",label:Object(r.__)("307 Temporary Redirect","rank-math")},{value:"410",label:Object(r.__)("410 Content Deleted","rank-math")},{value:"451",label:Object(r.__)("451 Content Unavailable for Legal Reasons","rank-math")}]}),!1===["410","451"].includes(e.redirectionType)&&wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",label:Object(r.__)("Destination URL","rank-math"),value:e.redirectionUrl,placeholder:"https://rankmath.com/",className:e.hasRedirect?"":"hidden",onChange:function(t){return e.updateRedirection("redirectionUrl",t)}}),wp.element.createElement(p.TextControl,{type:"hidden",value:e.redirectionID,className:"hidden"}))})),dt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=rankMathEditor.assessor.dataCollector;return{placeholder:t.getCanonicalUrl()?t.getCanonicalUrl():n.getPermalink()?n.getPermalink():"https://rankmath.com/",canonicalUrl:t.getCanonicalUrl()}})),Object(a.withDispatch)((function(e){return{onUrlChange:function(t){e("rank-math").updateCanonicalUrl(t)}}})))((function(e){var t=e.canonicalUrl,n=e.placeholder,a=e.onUrlChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-canonical"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Canonical URL","rank-math"),wp.element.createElement(je,null,Object(r.__)("The canonical URL informs search crawlers which page is the main page if you have double content","rank-math"))),wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",value:t,placeholder:n,onChange:function(e){return a(e)}}))})),ht=Object(u.compose)(Object(a.withSelect)((function(e){return{title:e("rank-math").getBreadcrumbTitle()}})),Object(a.withDispatch)((function(e){return{onTitleChange:function(t){e("rank-math").updateBreadcrumbTitle(t)}}})))((function(e){var t=e.title,n=e.onTitleChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-breadcrumb-title"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Breadcrumb Title","rank-math"),wp.element.createElement(je,null,Object(r.__)("Breadcrumb Title to use for this post","rank-math"))),wp.element.createElement(p.TextControl,{value:t,onChange:function(e){return n(e)}}))}));function ft(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 bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wt={"max-snippet":-1,"max-video-preview":-1,"max-image-preview":"large"},yt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getAdvancedRobots(),n=bt({},t);Object(s.defaults)(n,wt);var r=null,a=null,i=null;return"max-snippet"in t&&(r=n["max-snippet"]),"max-image-preview"in t&&(a=n["max-image-preview"]),"max-video-preview"in t&&(i=n["max-video-preview"]),{meta:t,isSnippet:r,isImage:a,isVideo:i,maxSnippet:r?n["max-snippet"]:-1,maxImage:n["max-image-preview"],maxVideo:i?n["max-video-preview"]:-1}})),Object(a.withDispatch)((function(e,t){var n=bt({},t.meta);return{updateRobots:function(t,r){Object(s.isBoolean)(r)?!1===r?delete n[t]:n[t]=wt[t]:n[t]=r,e("rank-math").updateAdvancedRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Advanced Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list advanced-robots"},wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Snippet","rank-math"),wp.element.createElement(je,null,Object(r.__)("Specify a maximum text-length, in characters, of a snippet for your page","rank-math"))),checked:e.isSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Video Preview","rank-math"),wp.element.createElement(je,null,Object(r.__)("Specify a maximum duration in seconds of an animated video preview","rank-math"))),checked:e.isVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Image Preview","rank-math"),wp.element.createElement(je,null,Object(r.__)("Specify a maximum size of image preview to be shown for images on this page","rank-math"))),checked:e.isImage,onChange:function(t){return e.updateRobots("max-image-preview",t)}}),wp.element.createElement(p.SelectControl,{value:e.maxImage,onChange:function(t){return e.updateRobots("max-image-preview",t)},options:[{value:"large",label:Object(r.__)("Large","rank-math")},{value:"standard",label:Object(r.__)("Standard","rank-math")},{value:"none",label:Object(r.__)("None","rank-math")}]})))})),vt=Object(u.compose)(Object(a.withSelect)((function(e){return{showScore:e("rank-math").getShowScoreFrontend()}})),Object(a.withDispatch)((function(e){return{toggleScore:function(t){e("rank-math").toggleFrontendScore(t)}}})))((function(e){var t=e.showScore,n=e.toggleScore;return wp.element.createElement(p.BaseControl,{className:"rank-math-frontend-score"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Show SEO Score on Front-end","rank-math"),checked:t,onChange:n}))})),kt=n(24),Ot=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ct,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(yt,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(dt,null)),rankMath.assessor.hasBreadcrumb&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ht,null)),rankMath.assessor.hasRedirection&&wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-redirect"},wp.element.createElement(mt,null)),rankMath.frontEndScore&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(vt,null)),wp.element.createElement(kt.a.Slot,null,(function(e){return e.length>0?e:[]})))},_t=n(26),jt=n.n(_t),Et={init:function(){this.cacheProps(),this.initVars(),this.bindEvents()},cacheProps:function(){this.root=document.documentElement,this.$wpAdminbar=me()("#wpadminbar")},initVars:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},bindEvents:function(){window.addEventListener("resize",jt()(this.onWindowResize.bind(this)))},onWindowResize:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},setWpAdminbarHeight:function(){this.root.style.setProperty("--rankmath-wp-adminbar-height",this.$wpAdminbar.outerHeight()+"px")}};me()((function(){Et.init()}));var Tt=function(e){"social"===e&&Object(a.dispatch)("rank-math").toggleSnippetEditor(!0)};t.a=function(){return wp.element.createElement(j,{className:"rank-math-tabs",activeClass:"is-active",tabs:(e=[],rankMath.canUser.general&&e.push({name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings",title:Object(r.__)("General","rank-math")}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:ot,className:"rank-math-general-tab"}),rankMath.canUser.advanced&&e.push({name:"advanced",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-toolbox",title:Object(r.__)("Advanced","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Advanced","rank-math"))),view:Ot,className:"rank-math-advanced-tab"}),rankMath.canUser.social&&e.push({name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social",title:Object(r.__)("Social","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:_e,className:"rank-math-social-tab"}),Object(i.applyFilters)("rank_math_sidebar_tabs",e)),onSelect:Tt},(function(e){return wp.element.createElement("div",{className:"rank-math-tab-content-"+e.name},Object(o.createElement)(e.view))}));var e}},function(e,t,n){"use strict";var r=n(8),a=n(6),i=n(17),o=n(1),l=n(0),c=n(4);function s(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,r.key,r)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new r.Analyzer({i18n:l,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(a.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(a.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(a.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var t,n,u;return t=e,(n=[{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===this.getSelectedKeyword().toLowerCase()&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(e,t){return"schemas"===t||Object(o.isObject)(e)||Object(o.isEmpty)(e)?e:r.Helpers.sanitizeAppData(e)}},{key:"getPaper",value:function(e,t){var n=Object(i.a)().getState(),l=this.dataCollector.getData(),c=new r.Paper("",{locale:rankMath.localeFull});return c.setTitle(n.appUi.serpTitle),c.setPermalink(l.slug),c.setDescription(n.appUi.serpDescription),c.setUrl(l.permalink),c.setText(Object(a.applyFilters)("rank_math_content",l.content)),c.setKeyword(e),c.setKeywords(t),Object(o.isUndefined)(l.featuredImage)||(c.setThumbnail(l.featuredImage.source_url),c.setThumbnailAltText(r.Helpers.removeDiacritics(l.featuredImage.alt_text))),c}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(o.debounce)((function(t){var n=Object(i.a)().getState();if(!1!==n.appUi.isLoaded){var o=n.appData.keywords.split(","),l=[];Object(a.doAction)("rank_math_"+t+"_refresh"),o.map((function(t,n){var a=e.getPaper(r.Helpers.removeDiacritics(t),o),i=0===n?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests();l.push(e.analyzer.analyzeSome(i,a).then((function(e){rankMathEditor.resultManager.update(a.getKeyword(),e,0===n),0===n&&Object(c.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(a.getKeyword()))}))),Promise.all(l).then((function(){Object(c.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var e=Object(i.a)().getState().appData.keywords;return r.Helpers.removeDiacritics(e.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var e=Object(i.a)().getState(),t=""!==e.appUi.selectedKeyword.data.value?e.appUi.selectedKeyword.data.value:e.appData.keywords.split(",")[0];return r.Helpers.removeDiacritics(t)}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}}])&&s(t.prototype,n),u&&s(t,u),e}(),p=n(30);function m(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,r.key,r)}}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"setup",value:function(e){Object(i.a)(),this.resultManager=new r.ResultManager,this.assessor=new u(e),new p.a,Object(a.doAction)("rank_math_loaded")}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(e){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(e){throw"Implement the function"}}])&&m(t.prototype,n),o&&m(t,o),e}();t.a=d},function(e,t){e.exports=wp.editPost},function(e,t,n){"use strict";var r=n(38),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(39),o=n(58),l=n(59),c="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===a)return n(r,e,""===t?"."+s(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=u(i=e[d],m+s(i,d),n,r);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var f,b=h.call(e),g=0;!(f=b.next()).done;)p+=u(i=f.value,m+s(i,g++),n,r)}else if("object"===l){0;var w=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,"")}}return p}var p=/\/+/g;function m(e){return(""+e).replace(p,"$&/")}var d,h,f=b,b=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},g=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function w(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,o,l=e.result,c=e.keyPrefix,s=e.func,u=e.context,p=s.call(u,t,e.count++);Array.isArray(p)?v(p,l,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,o=c+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),l.push(p))}function v(e,t,n,r,a){var i="";null!=n&&(i=m(n)+"/");var o=w.getPooled(t,i,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,o),w.release(o)}w.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},(h=w).instancePool=[],h.getPooled=d||f,h.poolSize||(h.poolSize=10),h.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)v(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(39);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t){e.exports=wp.plugins},function(e,t,n){var r=n(38);function a(e){return r.createElement("svg",e,r.createElement("g",{fill:"#fff"},[r.createElement("path",{d:"m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z",key:0}),r.createElement("path",{d:"m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z",key:1})]))}a.defaultProps={viewBox:"0 0 462.03 462.03",width:"20",className:"rank-math-icon"},e.exports=a,a.default=a},,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(2),a=n.n(r),i=n(0),o=n(4),l=n(5),c=n(61),s=n(6),u=n(56),p=n(54),m=n(55),d=n(1),h=n(15),f=n.n(h),b=n(11),g=n(9),w=n(36);function y(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(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,r.key,r)}}var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this.isSavingRedirection=!1,this.isSavingSchemas=!1,this.oldSlug=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.isSavingPost=this.isSavingPost.bind(this),this.getPostAttribute=this.getPostAttribute.bind(this),this.subscribeToGutenberg()}var t,n,r;return t=e,(n=[{key:"collectGutenbergData",value:function(){if(Object(w.a)())return this._coreEditorSelect||(this._coreEditorSelect=Object(o.select)("core/editor")),!1===this.oldSlug&&""!==this.getSlug()&&(this.oldSlug=this.getSlug()),{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getPostAttribute("content"),title:this.getPostAttribute("title"),excerpt:this.getPostAttribute("excerpt"),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return this._coreEditorSelect.getCurrentPostId()}},{key:"getPermalink",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),Object(b.safeDecodeURIComponent)(this._coreEditorSelect.getPermalink())}},{key:"getSlug",value:function(){var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),Object(b.safeDecodeURIComponent)(this.getPostAttribute("slug")||e)}},{key:"getFeaturedImage",value:function(){var e=this.getPostAttribute("featured_media");if(this.isValidMediaId(e)){var t=Object(o.select)("core").getMedia(e);if(!Object(d.isUndefined)(t))return t}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"getPostAttribute",value:function(e){return Object(w.a)()?(this._coreEditorSelect||(this._coreEditorSelect=Object(o.select)("core/editor")),this._coreEditorSelect.getEditedPostAttribute(e)):""}},{key:"subscribeToGutenberg",value:function(){this.subscriber=Object(d.debounce)(this.refresh,500),Object(o.subscribe)(this.subscriber),Object(o.subscribe)(this.isSavingPost)}},{key:"refresh",value:function(){var e=v({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(e)}},{key:"isSavingPost",value:function(){var e=Object(o.select)("core/editor");if(!e.isAutosavingPost()&&e.isSavingPost()){var t=Object(o.select)("rank-math").getDirtyMetadata();Object(d.isEmpty)(t)||(f()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:t,content:this.getPostAttribute("content")}}),Object(o.dispatch)("rank-math").resetDirtyMetadata()),"publish"===this.getPostAttribute("status")&&(this.saveRedirection(),this.autoCreateRedirectionNotice()),this.saveSchemas()}}},{key:"saveSchemas",value:function(){var e=this;if(!this.isSavingSchemas){var t=Object(o.select)("rank-math").getSchemas();if(!Object(d.isEmpty)(t)&&Object(o.select)("rank-math").hasSchemaUpdated()){this.isSavingSchemas=!0;var n=Object(o.select)("rank-math").getEditSchemas();f()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:this.getPostID(),objectType:rankMath.objectType,schemas:t}}).then((function(r){if(!Object(d.isEmpty)(r)){var a=v({},t),i=v({},n);Object(d.map)(r,(function(e,t){a["schema-"+e]=v({},a[t]),i["schema-"+e]=v({},i[t]),delete a[t],delete i[t]})),Object(o.dispatch)("rank-math").updateSchemas(a),Object(o.dispatch)("rank-math").updateEditSchemas(i)}setTimeout((function(){Object(o.dispatch)("rank-math").schemaUpdated(!1),Object(s.doAction)("rank_math_schema_changed"),e.isSavingSchemas=!1}),2e3)}))}}}},{key:"saveRedirection",value:function(){var e=this;if(!this.isSavingRedirection){var t=Object(o.select)("rank-math").getRedirectionItem();if(!Object(d.isEmpty)(t)){this.isSavingRedirection=!0,t.objectID=this.getPostID(),t.redirectionSources=this.getPermalink();var n=Object(o.dispatch)("rank-math"),r=Object(o.dispatch)("core/notices");n.resetRedirection(),f()({method:"POST",path:"rankmath/v1/updateRedirection",data:t}).then((function(t){"delete"===t.action?(r.createInfoNotice(t.message,{id:"redirectionNotice"}),n.updateRedirection("redirectionID",0)):"update"===t.action?r.createInfoNotice(t.message,{id:"redirectionNotice"}):"new"===t.action&&(n.updateRedirection("redirectionID",t.id),r.createSuccessNotice(t.message,{id:"redirectionNotice"})),setTimeout((function(){e.isSavingRedirection=!1,r.removeNotice("redirectionNotice")}),2e3)}))}}}},{key:"autoCreateRedirectionNotice",value:function(){if(rankMath.assessor.hasRedirection&&Object(d.get)(rankMath,["assessor","autoCreateRedirection"],!1)&&!Object(o.select)("core/editor").isEditedPostNew()&&!1!==this.oldSlug){var e=this.getSlug();if(this.oldSlug!==e){var t=Object(o.dispatch)("core/notices");this.oldSlug=e,t.createSuccessNotice(Object(i.__)("Auto redirection created.","rank-math"),{id:"redirectionAutoCreationNotice"}),setTimeout((function(){t.removeNotice("redirectionAutoCreationNotice")}),2e3)}}}},{key:"handleEditorChange",value:function(e){var t=this,n={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(d.isInteger)(e.id))return this.initialize?void Object(d.forEach)(n,(function(n,r){t._data[r]!==e[r]&&t[n](t._data[r])})):(this.initialize=!0,Object(d.forEach)(n,(function(e,n){t[e](t._data[n])})),void rankMathEditor.refresh("init"));Object(o.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(e){Object(o.dispatch)("rank-math").updatePostID(e),Object(o.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){""!==this.getSlug()&&!1===this.oldSlug&&(this.oldSlug=this.getSlug()),rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){g.a.setVariable("title",e),g.a.setVariable("term",e),g.a.setVariable("author",e),Object(o.dispatch)("rank-math").updateSerpTitle(Object(o.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){g.a.setVariable("excerpt",e),g.a.setVariable("excerpt_only",e),g.a.setVariable("wc_shortdesc",e),g.a.setVariable("seo_description",e),Object(o.dispatch)("rank-math").updateSerpDescription(Object(o.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(e){Object(o.dispatch)("rank-math").updateFeaturedImage(e),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(o.dispatch)("rank-math").updateSerpDescription(Object(o.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&O(t.prototype,n),r&&O(t,r),e}(),j=n(10),E=n.n(j),T=n(62),S=n.n(T),I=n(37),P=n(20);function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=Object(o.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),score:t.getAnalysisScore()}}))((function(e){var t,n=e.isLoaded,r=e.score,a=E()("rank-math-toolbar-score",(C(t={},Object(P.a)(r),!0),C(t,"loading",!n),t));return wp.element.createElement("div",{className:a},wp.element.createElement(I.a,null),wp.element.createElement(S.a,null))})),x=n(3),N=Object(o.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook()?t.getFacebookTitle():t.getTwitterTitle();return Object(d.isEmpty)(n)&&(n=t.getSerpTitle()),{title:n,permalink:e("core/editor").getPermalink()}}))((function(e){var t=e.title,n=e.permalink,r=encodeURI(n),a=encodeURI(t);return wp.element.createElement(l.Fragment,null,wp.element.createElement("p",null,Object(i.__)("Notify your readers by sharing!","rank-math")),wp.element.createElement("div",{className:"rank-math-social-share-buttons"},wp.element.createElement("div",{className:"rank-math-share-button rm-facebook"},wp.element.createElement("a",{href:"https://www.facebook.com/sharer/sharer.php?u="+r,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(x.Dashicon,{icon:"facebook-alt"}))),wp.element.createElement("div",{className:"rank-math-share-button rm-twitter"},wp.element.createElement("a",{href:"https://twitter.com/share?url="+r+"&text="+a,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(x.Dashicon,{icon:"twitter"}))),wp.element.createElement("div",{className:"rank-math-share-button rm-email"},wp.element.createElement("a",{href:"mailto:?subject="+a+"&body="+r,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(x.Dashicon,{icon:"email"})))))}));function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(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=H(e);if(t){var a=H(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return F(this,n)}}function F(e,t){return!t||"object"!==A(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L=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}}),t&&M(e,t)}(n,e);var t=U(n);function n(){return R(this,n),t.apply(this,arguments)}return n}(n(52).a),z=Object(o.withSelect)((function(e,t){var n=t.slug,r=e("core").getTaxonomy(n),a=e("core/editor").getEditedPostAttribute;return{taxonomy:r,selectedTermIds:r?a(r.rest_base):[],primaryTermID:e("rank-math").getPrimaryTermID()}}))(L),B=function(e){var t=e.TermComponent;return function(e){return!1!==rankMath.assessor.primaryTaxonomy&&e.slug===rankMath.assessor.primaryTaxonomy.name}(e)?wp.element.createElement(l.Fragment,null,wp.element.createElement(t,e),wp.element.createElement(x.PanelRow,{className:"rank-math-primary-term-picker"},wp.element.createElement(z,e))):wp.element.createElement(t,e)},G=n(23),K=n(24),V=n(22);function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(){return(Y=Object.assign||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}).apply(this,arguments)}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $(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,r.key,r)}}function Z(e,t,n){return(Z="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ee(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Q(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=ee(e);if(t){var a=ee(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return X(this,n)}}function X(e,t){return!t||"object"!==W(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var te=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}}),t&&J(e,t)}(m,e);var t,n,r,a=Q(m);function m(){return q(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"setup",value:function(e){this.registerSlots=this.registerSlots.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),Z(ee(m.prototype),"setup",this).call(this,e),this.registerSidebar(),this.registerPostPublish(),this.registerPrimaryTermSelector()}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=G.a,this.RankMathAfterFocusKeyword=V.a,this.RankMathAdvancedTab=K.a,this.slots={AfterEditor:G.a,AfterFocusKeyword:V.a,AdvancedTab:K.a}}},{key:"registerSidebar",value:function(){Object(c.registerPlugin)("rank-math",{icon:wp.element.createElement(D,null),render:function(){return wp.element.createElement(l.Fragment,null,wp.element.createElement(u.PluginSidebarMoreMenuItem,{target:"seo-by-rank-math-sidebar",icon:wp.element.createElement(D,null)},i.__("Rank Math","rank-math")),wp.element.createElement(u.PluginSidebar,{name:"seo-by-rank-math-sidebar",title:i.__("Rank Math","rank-math"),className:"rank-math-sidebar-panel"},wp.element.createElement(p.a,null)))}})}},{key:"registerPostPublish",value:function(){Object(c.registerPlugin)("rank-math-post-publish",{render:function(){return wp.element.createElement(u.PluginPostPublishPanel,{initialOpen:!0,title:i.__("Rank Math","rank-math"),className:"rank-math-post-publish",icon:wp.element.createElement(l.Fragment,null)},wp.element.createElement(N,null))}})}},{key:"registerPrimaryTermSelector",value:function(){Object(s.addFilter)("editor.PostTaxonomyType","rank-math",(function(e){return function(t){return wp.element.createElement(B,Y({TermComponent:e},t))}}))}},{key:"updatePermalink",value:function(e){Object(o.dispatch)("core/editor").editPost({slug:e})}},{key:"updatePermalinkSanitize",value:function(e){e=this.assessor.getResearch("slugify")(e),Object(o.dispatch)("core/editor").editPost({slug:e})}}])