File "elementor.js"
Full path: /home/webcknlt/admissiontell.com/wp-content/plugins/seo-by-rank-math/includes/3rdparty/elementor/assets/js/elementor.js
File
size: 61.71 B (61.71 KB bytes)
MIME-type: text/plain
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
!function(){"use strict";var t={n:function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,{a:r}),r},d:function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{deleteSchema:function(){return ce},lockModifiedDate:function(){return D},refreshResults:function(){return Kt},resetDirtyMetadata:function(){return T},resetRedirection:function(){return z},resetStore:function(){return P},saveSchema:function(){return ue},saveTemplate:function(){return le},schemaUpdated:function(){return te},setEditingSchemaId:function(){return ee},setEditorTab:function(){return re},setTemplateTab:function(){return ne},setVersion:function(){return zt},toggleFrontendScore:function(){return v},toggleIsDiviPageSettingsBarActive:function(){return Gt},toggleIsDiviRankMathModalActive:function(){return Ht},toggleLoaded:function(){return Lt},toggleSchemaEditor:function(){return Xt},toggleSchemaTemplates:function(){return Zt},toggleSnippetEditor:function(){return pt},updateAIScore:function(){return se},updateAdvancedRobots:function(){return k},updateAnalysisScore:function(){return b},updateAppData:function(){return h},updateAppUi:function(){return m},updateBreadcrumbTitle:function(){return S},updateCanonicalUrl:function(){return w},updateDescription:function(){return x},updateEditSchema:function(){return oe},updateEditSchemas:function(){return ae},updateFacebookDescription:function(){return O},updateFacebookHasOverlay:function(){return j},updateFacebookImage:function(){return E},updateFacebookImageID:function(){return A},updateFacebookImageOverlay:function(){return M},updateFacebookTitle:function(){return I},updateFeaturedImage:function(){return L},updateHasRedirect:function(){return G},updateHighlightedParagraphs:function(){return Bt},updateKeywords:function(){return y},updatePermalink:function(){return C},updatePillarContent:function(){return g},updatePostID:function(){return U},updatePrimaryTermID:function(){return F},updateRedirection:function(){return N},updateRedirectionItem:function(){return K},updateRobots:function(){return _},updateSchemas:function(){return ie},updateSelectedKeyword:function(){return Ft},updateSerpDescription:function(){return st},updateSerpSlug:function(){return lt},updateSerpTitle:function(){return ct},updateSnippetPreviewType:function(){return ft},updateSocialTab:function(){return Nt},updateTitle:function(){return R},updateTwitterAppCountry:function(){return xt},updateTwitterAppDescription:function(){return Pt},updateTwitterAppGoogleplayID:function(){return Ut},updateTwitterAppGoogleplayName:function(){return Ct},updateTwitterAppGoogleplayUrl:function(){return Rt},updateTwitterAppIpadID:function(){return At},updateTwitterAppIpadName:function(){return jt},updateTwitterAppIpadUrl:function(){return Mt},updateTwitterAppIphoneID:function(){return It},updateTwitterAppIphoneName:function(){return Ot},updateTwitterAppIphoneUrl:function(){return Et},updateTwitterAuthor:function(){return gt},updateTwitterCardType:function(){return ht},updateTwitterDescription:function(){return yt},updateTwitterHasOverlay:function(){return wt},updateTwitterImage:function(){return bt},updateTwitterImageID:function(){return vt},updateTwitterImageOverlay:function(){return kt},updateTwitterPlayerSize:function(){return St},updateTwitterPlayerStreamCtype:function(){return Tt},updateTwitterPlayerStreamUrl:function(){return Dt},updateTwitterPlayerUrl:function(){return _t},updateTwitterTitle:function(){return mt},updateTwitterUseFacebook:function(){return dt}});var r={};t.r(r),t.d(r,{appData:function(){return ye},appUi:function(){return _e}});var n={};t.r(n),t.d(n,{getAdvancedRobots:function(){return Ee},getAnalysisScore:function(){return Te},getAppData:function(){return Se},getBreadcrumbTitle:function(){return je},getCanonicalUrl:function(){return Ae},getDescription:function(){return tr},getDirtyMetadata:function(){return De},getEditSchemas:function(){return br},getEditingSchema:function(){return wr},getEditorTab:function(){return _r},getFacebookAuthor:function(){return Ve},getFacebookDescription:function(){return Be},getFacebookHasOverlay:function(){return Ye},getFacebookImage:function(){return We},getFacebookImageID:function(){return qe},getFacebookImageOverlay:function(){return Qe},getFacebookTitle:function(){return He},getFeaturedImage:function(){return er},getFeaturedImageHtml:function(){return rr},getHighlightedParagraphs:function(){return Ge},getKeywords:function(){return Pe},getPermalink:function(){return Ze},getPillarContent:function(){return Ie},getPostID:function(){return Je},getPreviewSchema:function(){return kr},getPrimaryTermID:function(){return nr},getRedirectionID:function(){return ar},getRedirectionItem:function(){return ur},getRedirectionType:function(){return ir},getRedirectionUrl:function(){return or},getRichSnippets:function(){return Me},getRobots:function(){return Oe},getSchemas:function(){return vr},getSelectedKeyword:function(){return xe},getSerpDescription:function(){return fr},getSerpSlug:function(){return pr},getSerpTitle:function(){return sr},getShowScoreFrontend:function(){return Ue},getSnippetPreviewType:function(){return hr},getSocialTab:function(){return Le},getTemplateTab:function(){return Sr},getTitle:function(){return Xe},getTwitterAppCountry:function(){return Hr},getTwitterAppDescription:function(){return Ur},getTwitterAppGoogleplayID:function(){return Kr},getTwitterAppGoogleplayName:function(){return zr},getTwitterAppGoogleplayUrl:function(){return Gr},getTwitterAppIpadID:function(){return Lr},getTwitterAppIpadName:function(){return Fr},getTwitterAppIpadUrl:function(){return Nr},getTwitterAppIphoneID:function(){return Cr},getTwitterAppIphoneName:function(){return Rr},getTwitterAppIphoneUrl:function(){return xr},getTwitterAuthor:function(){return Or},getTwitterCardType:function(){return Tr},getTwitterDescription:function(){return Ir},getTwitterHasOverlay:function(){return jr},getTwitterImage:function(){return Ar},getTwitterImageID:function(){return Er},getTwitterImageOverlay:function(){return Mr},getTwitterPlayerSize:function(){return Vr},getTwitterPlayerStream:function(){return $r},getTwitterPlayerStreamCtype:function(){return qr},getTwitterPlayerUrl:function(){return Br},getTwitterTitle:function(){return Pr},getTwitterUseFacebook:function(){return Dr},hasRedirect:function(){return cr},hasSchemaUpdated:function(){return gr},isDiviPageSettingsBarActive:function(){return Ke},isDiviRankMathModalActive:function(){return ze},isLoaded:function(){return Re},isModifiedDateLocked:function(){return Ce},isPro:function(){return Ne},isRefreshing:function(){return Fe},isSchemaEditorOpen:function(){return mr},isSchemaTemplatesOpen:function(){return yr},isSnippetEditorOpen:function(){return dr}});var a=jQuery,i=t.n(a),o=wp.data,u=wp.mediaUtils,c=wp.hooks,l=rankMathAnalyzer;function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function f(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===s(e)?e:String(e)}var d=new(function(){function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=null,(r=f(r="map"))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n}var e,r,n;return e=t,(r=[{key:"swap",value:function(t,e){var r=this;if(!(t=t||""))return"";var n=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return t.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(n,(function(t){return r.replace(e,t)})).trim()}},{key:"replace",value:function(t,e){var r=e.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(r)?"undefined"!=typeof tinymce&&void 0!==tinymce.editors.rank_math_description_editor?tinymce.editors.rank_math_description_editor.getContent():i()("#description").val():r.includes("customfield(")?(r=r.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[r]:"":(t=t||this.getMap(),(r="seo_description"===(r="seo_title"===(r=r.includes("(")?r.split("(")[0]:r)?"title":r)?"excerpt":r)in t?t[r]:"")}},{key:"getMap",value:function(){var t=this;return null!==this.map||(this.map={},i().each(rankMath.variables,(function(e,r){e=e.toLowerCase().replace(/%+/g,"").split("(")[0],t.map[e]=r.example}))),this.map}},{key:"setVariable",value:function(t,e){null!==this.map?this.map[t]=e:void 0!==rankMath.variables[t]&&(rankMath.variables[t].example=e)}}])&&p(e.prototype,r),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}());function h(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e=(0,c.applyFilters)("rank_math_sanitize_data",e,t,r),null!==n&&(n=(0,c.applyFilters)("rank_math_sanitize_meta_value",n,t,r)),n=null===n?e:n,(0,c.doAction)("rank_math_data_changed",t,e,r),{type:"RANK_MATH_APP_DATA",key:t,value:e,metaKey:r,metaValue:n}}function m(t,e){return(0,c.doAction)("rank_math_update_app_ui",t,e),{type:"RANK_MATH_APP_UI",key:t,value:e}}function y(t){return d.setVariable("focuskw",t.split(",")[0]),rankMathEditor.refresh("keyword"),h("keywords",t,"rank_math_focus_keyword")}function g(t){return h("pillarContent",t,"rank_math_pillar_content",!0===t?"on":"off")}function v(t){return h("showScoreFrontend",t,"rank_math_dont_show_seo_score",!0===t?"off":"on")}function b(t){return h("score",t,"rank_math_seo_score")}function w(t){return h("canonicalUrl",t,"rank_math_canonical_url")}function k(t){return h("advancedRobots",t,"rank_math_advanced_robots")}function _(t){return h("robots",t,"rank_math_robots",Object.keys(t))}function S(t){return h("breadcrumbTitle",t,"rank_math_breadcrumb_title")}function D(t){return h("lockModifiedDate",t,"rank_math_lock_modified_date")}function T(){return h("dirtyMetadata",{})}function P(t){return{type:"RESET_STORE",value:t}}function I(t){return h("facebookTitle",t,"rank_math_facebook_title")}function O(t){return h("facebookDescription",t,"rank_math_facebook_description")}function E(t){return h("facebookImage",t,"rank_math_facebook_image")}function A(t){return h("facebookImageID",t,"rank_math_facebook_image_id")}function j(t){return h("facebookHasOverlay",t,"rank_math_facebook_enable_image_overlay",!0===t?"on":"off")}function M(t){return h("facebookImageOverlay",t,"rank_math_facebook_image_overlay")}function U(t){return rankMath.objectID=t,h("postID",t)}function C(t){return h("permalink",t,"permalink")}function R(t){return h("title",t,"rank_math_title")}function x(t){return h("description",t,"rank_math_description")}function L(t){return h("featuredImage",t)}function F(t,e){return h("primaryTerm",parseInt(t),"rank_math_primary_"+e)}function N(t,e){return h(t,e)}function K(t){return m("redirectionItem",t)}function z(){return m("redirectionItem",{})}function G(t){return m("hasRedirect",t)}var H=lodash,B=function(t){return t.replace(/<\/?[a-z][^>]*?>/gi,"\n")},V=function(t){return t.replace(/<style[^>]*>([\S\s]*?)<\/style>/gim,"")},$=function(t){return t.replace(/ | /gi," ").replace(/\s{2,}/g," ").replace(/\s\./g,".").replace(/^\s+|\s+$/g,"")},q=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,e)},W=function(t){return t.replace(/[‘’‛`]/g,"'").replace(/[“”〝〞〟‟„]/g,'"')},Y=function(t){return t.replace(/<!--[\s\S]*?-->/g,"")},Q=function(t){return t.replace(/&\S+?;/g,"")};function J(t){return(0,H.isUndefined)(t)||!t?"":(0,H.flow)([V,q,B,Y,Q,$,W])(t)}var X=wp.autop,Z="[^<>&/\\[\\]\0- =]+?",tt=new RegExp("\\["+Z+"( [^\\]]+?)?\\]","g"),et=new RegExp("\\[/"+Z+"\\]","g"),rt=function(t){return t.replace(tt,"").replace(et,"")},nt=function(t,e){var r=function(t,e){for(var r,n=/<p(?:[^>]+)?>(.*?)<\/p>/gi,a=[];null!==(r=n.exec(t));)a.push(r);return(0,H.map)(a,(function(t){return e?J(t[1]):t[1]}))}(t=(0,H.flow)([rt,Y,X.autop])(t),e=e||!1);return 0<r.length?r:[e?J(t):t]},at=document.createElement("div");function it(t){return t&&"string"==typeof t&&(t=t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),at.innerHTML=t,t=at.textContent,at.textContent=""),t}var ot=function(t,e){return t=(t=J(t)).replace(/\r?\n|\r/g," "),e?(0,H.truncate)(t,{length:e,separator:" "}):t},ut=function(t){if((0,H.isEmpty)(t))return"";t=q(t),t=V(t),t=(0,H.unescape)(t).replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var e=(0,H.filter)(nt(t,!0),(function(t){return""!==t.trim()}));if(!e.length)return"";var r=rankMathEditor.getPrimaryKeyword();if(""!==r){var n=(0,H.filter)(e,(function(t){return(0,H.includes)(t.toLowerCase(),r.toLowerCase())}));if(0<n.length)return ot(n[0],160)}return ot(e[0],160)};function ct(t){return t=d.swap(""!==t?t:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),m("serpTitle",it(t))}function lt(t){return t=""!==t?t:rankMathEditor.assessor.dataCollector.getSlug(),rankMathEditor.refresh("permalink"),m("serpSlug",t)}function st(t){return t=d.swap(function(t){var e=rankMathEditor.assessor.dataCollector.getData(),r=e.excerpt,n=ut(e.content),a=(0,H.isUndefined)(r)||(0,H.isEmpty)(r)?n:(0,H.unescape)(r);if(d.setVariable("excerpt",a),d.setVariable("seo_description",a),""!==(t=it((0,c.applyFilters)("rankMath/description",t))))return J(t);if(!(0,H.isUndefined)(r)&&!(0,H.isEmpty)(r))return J(r);var i=(0,H.unescape)(rankMath.assessor.serpData.descriptionTemplate);return(0,H.isUndefined)(i)||""===i?n:J(i)}(t)),rankMathEditor.refresh("description"),m("serpDescription",t)}function pt(t){return m("isSnippetEditorOpen",t)}function ft(t){return m("snippetPreviewType",t)}function dt(t){return h("twitterUseFacebook",t,"rank_math_twitter_use_facebook",!0===t?"on":"off")}function ht(t){return h("twitterCardType",t,"rank_math_twitter_card_type")}function mt(t){return h("twitterTitle",t,"rank_math_twitter_title")}function yt(t){return h("twitterDescription",t,"rank_math_twitter_description")}function gt(t){return h("twitterAuthor",t,"rank_math_twitter_author")}function vt(t){return h("twitterImageID",t,"rank_math_twitter_image_id")}function bt(t){return h("twitterImage",t,"rank_math_twitter_image")}function wt(t){return h("twitterHasOverlay",t,"rank_math_twitter_enable_image_overlay",!0===t?"on":"off")}function kt(t){return h("twitterImageOverlay",t,"rank_math_twitter_image_overlay")}function _t(t){return h("twitterPlayerUrl",t,"rank_math_twitter_player_url")}function St(t){return h("twitterPlayerSize",t,"rank_math_twitter_player_size")}function Dt(t){return h("twitterPlayerStream",t,"rank_math_twitter_player_stream")}function Tt(t){return h("twitterPlayerStreamCtype",t,"rank_math_twitter_player_stream_ctype")}function Pt(t){return h("twitterAppDescription",t,"rank_math_twitter_app_description")}function It(t){return h("twitterAppIphoneID",t,"rank_math_twitter_app_iphone_id")}function Ot(t){return h("twitterAppIphoneName",t,"rank_math_twitter_app_iphone_name")}function Et(t){return h("twitterAppIphoneUrl",t,"rank_math_twitter_app_iphone_url")}function At(t){return h("twitterAppIpadID",t,"rank_math_twitter_app_ipad_id")}function jt(t){return h("twitterAppIpadName",t,"rank_math_twitter_app_ipad_name")}function Mt(t){return h("twitterAppIpadUrl",t,"rank_math_twitter_app_ipad_url")}function Ut(t){return h("twitterAppGoogleplayID",t,"rank_math_twitter_app_googleplay_id")}function Ct(t){return h("twitterAppGoogleplayName",t,"rank_math_twitter_app_googleplay_name")}function Rt(t){return h("twitterAppGoogleplayUrl",t,"rank_math_twitter_app_googleplay_url")}function xt(t){return h("twitterAppCountry",t,"rank_math_twitter_app_country")}function Lt(t){return m("isLoaded",t)}function Ft(t){return m("selectedKeyword",t)}function Nt(t){return m("socialTab",t)}function Kt(){return m("refreshResults",Date.now())}function zt(){return m("isPro",!0)}function Gt(t){return m("isDiviPageSettingsBarActive",t)}function Ht(t){return m("isDiviRankMathModalActive",t)}function Bt(t){return m("highlightedParagraphs",t)}var Vt=wp.i18n,$t=wp.apiFetch,qt=t.n($t);function Wt(t){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wt(t)}function Yt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yt(Object(r),!0).forEach((function(e){Jt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Wt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Wt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Wt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xt(t){return m("isSchemaEditorOpen",t)}function Zt(t){return m("isSchemaTemplatesOpen",t)}function te(t){return m("schemaUpdated",t)}function ee(t){return m("editingSchemaId",t)}function re(t){return m("editorTab",t)}function ne(t){return m("templateTab",t)}function ae(t){return m("editSchemas",t)}function ie(t){return h("schemas",t)}function oe(t,e){var r=Qt({},(0,o.select)("rank-math").getEditSchemas());return r[t]=e,m("editSchemas",r)}function ue(t,e){var r=Qt({},(0,o.select)("rank-math").getSchemas());return r[t]=e,h("schemas",r)}function ce(t){var e=Qt({},(0,o.select)("rank-math").getSchemas());return delete e[t],(0,c.doAction)("rank_math_schema_trash",t),h("schemas",e,"rank_math_delete_"+t,"")}function le(t,e,r){return qt()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:t,postId:r}}).then((function(r){e({loading:!1,showNotice:!0,postId:r.id}),setTimeout((function(){e({showNotice:!1}),(0,H.get)(rankMath,"isTemplateScreen",!1)&&(document.title=(0,Vt.__)("Edit Schema","rank-math"),window.history.pushState(null,"",r.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:t,title:t.metadata.title,type:t["@type"]})})),e({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function se(t){return h("contentAIScore",t,"rank_math_contentai_score",t)}function pe(t){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pe(t)}function fe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function de(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fe(Object(r),!0).forEach((function(e){he(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function he(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==pe(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===pe(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var me=function(t){var e=t.assessor.serpData,r=t.assessor.hasRedirection;return{postID:null,title:e.title?e.title:e.titleTemplate,description:e.description,keywords:e.focusKeywords?e.focusKeywords:"",pillarContent:e.pillarContent,featuredImage:"",permalink:!1,primaryTerm:e.primaryTerm,robots:e.robots,advancedRobots:e.advancedRobots,canonicalUrl:e.canonicalUrl,breadcrumbTitle:e.breadcrumbTitle,showScoreFrontend:e.showScoreFrontend,lockModifiedDate:e.lockModifiedDate,redirectionID:r?(0,H.get)(t.assessor,"redirection.id",""):"",redirectionType:r?(0,H.get)(t.assessor,"redirection.header_code",""):"",redirectionUrl:r?(0,H.get)(t.assessor,"redirection.url_to",""):"",facebookTitle:e.facebookTitle,facebookImage:e.facebookImage,facebookImageID:e.facebookImageID,facebookAuthor:e.facebookAuthor,facebookDescription:e.facebookDescription,facebookHasOverlay:e.facebookHasOverlay,facebookImageOverlay:e.facebookImageOverlay,twitterTitle:e.twitterTitle,twitterImage:e.twitterImage,twitterAuthor:e.twitterAuthor,twitterImageID:e.twitterImageID,twitterCardType:e.twitterCardType,twitterUseFacebook:e.twitterUseFacebook,twitterDescription:e.twitterDescription,twitterHasOverlay:e.twitterHasOverlay,twitterImageOverlay:e.twitterImageOverlay,twitterPlayerUrl:e.twitterPlayerUrl,twitterPlayerSize:e.twitterPlayerSize,twitterPlayerStream:e.twitterPlayerStream,twitterPlayerStreamCtype:e.twitterPlayerStreamCtype,twitterAppDescription:e.twitterAppDescription,twitterAppIphoneName:e.twitterAppIphoneName,twitterAppIphoneID:e.twitterAppIphoneID,twitterAppIphoneUrl:e.twitterAppIphoneUrl,twitterAppIpadName:e.twitterAppIpadName,twitterAppIpadID:e.twitterAppIpadID,twitterAppIpadUrl:e.twitterAppIpadUrl,twitterAppGoogleplayName:e.twitterAppGoogleplayName,twitterAppGoogleplayID:e.twitterAppGoogleplayID,twitterAppGoogleplayUrl:e.twitterAppGoogleplayUrl,twitterAppCountry:e.twitterAppCountry,schemas:(0,H.get)(t,"schemas",{}),score:0,dirtyMetadata:{}}};function ye(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:me(rankMath),e=arguments.length>1?arguments[1]:void 0,r=de({},t.dirtyMetadata);return!1!==e.metaKey&&(r[e.metaKey]=e.metaValue),"RESET_STORE"===e.type?de({},me(e.value)):"RANK_MATH_APP_DATA"===e.type?"dirtyMetadata"===e.key?de(de({},t),{},{dirtyMetadata:e.value}):de(de({},t),{},he(he({},e.key,e.value),"dirtyMetadata",r)):t}function ge(t){return ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ge(t)}function ve(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function be(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ve(Object(r),!0).forEach((function(e){we(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ve(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function we(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==ge(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ge(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ke={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&!(0,H.isEmpty)((0,H.get)(rankMath.assessor,"redirection.id",""))&&!(0,H.isEmpty)((0,H.get)(rankMath.assessor,"redirection.url_to","")),serpTitle:"",serpSlug:"",serpDescription:(0,H.get)(rankMath.assessor,"serpData.description",""),isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},socialTab:"facebook",highlightedParagraphs:[],editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1};function _e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ke,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===e.type?be(be({},t),{},we({},e.key,e.value)):t}function Se(t){return t.appData}function De(t){return t.appData.dirtyMetadata}function Te(t){return t.appData.score}function Pe(t){return t.appData.keywords}function Ie(t){return t.appData.pillarContent}function Oe(t){return t.appData.robots}function Ee(t){return t.appData.advancedRobots}function Ae(t){return t.appData.canonicalUrl}function je(t){return t.appData.breadcrumbTitle}function Me(t){return"todo"}function Ue(t){return t.appData.showScoreFrontend}function Ce(t){return t.appData.lockModifiedDate}function Re(t){return t.appUi.isLoaded}function xe(t){return t.appUi.selectedKeyword}function Le(t){return t.appUi.socialTab}function Fe(t){return t.appUi.refreshResults}function Ne(t){return t.appUi.isPro}function Ke(t){return t.appUi.isDiviPageSettingsBarActive}function ze(t){return t.appUi.isDiviRankMathModalActive}function Ge(t){return t.appUi.highlightedParagraphs}function He(t){return t.appData.facebookTitle}function Be(t){return t.appData.facebookDescription}function Ve(t){return t.appData.facebookAuthor}function qe(t){return t.appData.facebookImageID}function We(t){return t.appData.facebookImage}function Ye(t){return t.appData.facebookHasOverlay}function Qe(t){return""!==t.appData.facebookImageOverlay?t.appData.facebookImageOverlay:"play"}function Je(t){return t.appData.postID}function Xe(t){return t.appData.title}function Ze(t){return t.appData.permalink}function tr(t){return t.appData.description}function er(t){return t.appData.featuredImage}function rr(t){var e=t.appData.featuredImage;return'<img src="'.concat(e.source_url,'" alt="').concat(e.alt_text,'" >')}function nr(t){return t.appData.primaryTerm}function ar(t){return String(t.appData.redirectionID)}function ir(t){return t.appData.redirectionType}function or(t){return t.appData.redirectionUrl}function ur(t){return t.appUi.redirectionItem}function cr(t){return t.appUi.hasRedirect}var lr=wp.url;function sr(t){return it(t.appUi.serpTitle)}function pr(t){return(0,lr.safeDecodeURIComponent)(t.appUi.serpSlug)}function fr(t){return t.appUi.serpDescription}function dr(t){return t.appUi.isSnippetEditorOpen}function hr(t){return t.appUi.snippetPreviewType}function mr(t){return t.appUi.isSchemaEditorOpen}function yr(t){return t.appUi.isSchemaTemplatesOpen}function gr(t){return t.appUi.schemaUpdated}function vr(t){return t.appData.schemas}function br(t){return t.appUi.editSchemas}function wr(t){return{id:t.appUi.editingSchemaId,data:t.appUi.editSchemas[t.appUi.editingSchemaId]}}function kr(t){return t.appData.schemas[t.appUi.editingSchemaId]}function _r(t){return t.appUi.editorTab}function Sr(t){return t.appUi.templateTab}function Dr(t){return t.appData.twitterUseFacebook}function Tr(t){return t.appData.twitterCardType}function Pr(t){return t.appData.twitterTitle}function Ir(t){return t.appData.twitterDescription}function Or(t){return t.appData.twitterAuthor}function Er(t){return t.appData.twitterImageID}function Ar(t){return t.appData.twitterImage}function jr(t){return t.appData.twitterHasOverlay}function Mr(t){return""!==t.appData.twitterImageOverlay?t.appData.twitterImageOverlay:"play"}function Ur(t){return t.appData.twitterAppDescription}function Cr(t){return t.appData.twitterAppIphoneID}function Rr(t){return t.appData.twitterAppIphoneName}function xr(t){return t.appData.twitterAppIphoneUrl}function Lr(t){return t.appData.twitterAppIpadID}function Fr(t){return t.appData.twitterAppIpadName}function Nr(t){return t.appData.twitterAppIpadUrl}function Kr(t){return t.appData.twitterAppGoogleplayID}function zr(t){return t.appData.twitterAppGoogleplayName}function Gr(t){return t.appData.twitterAppGoogleplayUrl}function Hr(t){return t.appData.twitterAppCountry}function Br(t){return t.appData.twitterPlayerUrl}function Vr(t){return t.appData.twitterPlayerSize}function $r(t){return t.appData.twitterPlayerStream}function qr(t){return t.appData.twitterPlayerStreamCtype}var Wr=(0,o.registerStore)("rank-math",{reducer:(0,o.combineReducers)(r),selectors:n,actions:e});function Yr(){return Wr}var Qr={};(0,H.isUndefined)(rankMath.assessor)||(0,H.forEach)(rankMath.assessor.diacritics,(function(t,e){return Qr[e]=new RegExp(t,"g")}));var Jr=function(t){if((0,H.isUndefined)(t))return t;for(var e in Qr)t=t.replace(Qr[e],e);return t},Xr={"&":"&",""":'"',"'":"'"},Zr=/&(?:amp|quot|#(0+)?39);/g,tn=RegExp(Zr.source);var en=function(t){return t&&tn.test(t)?t.replace(Zr,(function(t){return Xr[t]||"'"})):t||""};function rn(t){return rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rn(t)}function nn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(a=n.key,i=void 0,i=function(t,e){if("object"!==rn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==rn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===rn(i)?i:String(i)),n)}var a,i}var an=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.analyzer=new l.Analyzer({i18n:Vt,analyses:rankMath.assessor.researchesTests}),this.dataCollector=e,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),(0,c.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),(0,c.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),(0,c.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var e,r,n;return e=t,r=[{key:"updateKeywordResult",value:function(t,e){rankMathEditor.resultManager.update(t,{keywordNotUsed:e}),t===this.getSelectedKeyword().toLowerCase()&&(0,o.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(t,e){return"schemas"===e||(0,H.isObject)(t)||(0,H.isEmpty)(t)?t:(r=t,(0,H.isUndefined)(r)?"":(0,H.flow)([V,q,B,Y])(r));var r}},{key:"getPaper",value:function(t,e){var r=Yr().getState(),n=this.dataCollector.getData(),a=new l.Paper("",{locale:rankMath.localeFull});a.setTitle(r.appUi.serpTitle),a.setPermalink(n.slug),a.setDescription(r.appUi.serpDescription),a.setUrl(n.permalink),a.setText(en((0,c.applyFilters)("rank_math_content",n.content))),a.setKeyword(t),a.setKeywords(e),a.setSchema(r.appData.schemas),(0,H.isUndefined)(n.featuredImage)||(a.setThumbnail(n.featuredImage.source_url),a.setThumbnailAltText(Jr(n.featuredImage.alt_text)));var i=(0,o.select)("rank-math-content-ai");if(!(0,H.isEmpty)(i)){var u=i.getData(),s=i.getScore();a.setContentAI(s||!(0,H.isEmpty)(u.keyword))}return a}},{key:"registerRefresh",value:function(){var t=this;this.refresh=(0,H.debounce)((function(e){var r=Yr().getState();if(!1!==r.appUi.isLoaded){var n=r.appData.keywords.split(","),a=[];(0,c.doAction)("rank_math_"+e+"_refresh"),n.map((function(e,r){var i=t.getPaper(Jr(e),n),u=0===r?rankMath.assessor.researchesTests:t.filterTests(t.getSecondaryKeywordTests());a.push(t.analyzer.analyzeSome(u,i).then((function(t){rankMathEditor.resultManager.update(i.getKeyword(),t,0===r),0===r&&(0,o.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(i.getKeyword()))}))),Promise.all(a).then((function(){(0,o.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 t=Yr().getState().appData.keywords;return t?Jr(t.split(",")[0]):""}},{key:"getSelectedKeyword",value:function(){var t=Yr().getState(),e=""!==t.appUi.selectedKeyword.data.value?t.appUi.selectedKeyword.data.value:t.appData.keywords.split(",")[0];return Jr(e)}},{key:"getResearch",value:function(t){return this.analyzer.researcher.getResearch(t)}},{key:"filterTests",value:function(t){return(0,H.intersection)(t,rankMath.assessor.researchesTests)}}],r&&nn(e.prototype,r),n&&nn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),on=an,un=function(){return!(0,H.isNull)(document.getElementById("site-editor"))&&(0,H.endsWith)(wp.data.select("core/edit-site").getEditedPostId(),"//home")};function cn(t){return cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(t)}function ln(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(a=n.key,i=void 0,i=function(t,e){if("object"!==cn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==cn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===cn(i)?i:String(i)),n)}var a,i}var sn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(rankMath.is_front_page||un())&&((0,c.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),(0,c.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var e,r,n;return e=t,(r=[{key:"contentLength",value:function(t){return{hasScore:t.hasScore,failed:(0,Vt.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:(0,Vt.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:(0,Vt.sprintf)((0,Vt.__)("Content should be %1$s long.","rank-math"),'<a href="https://rankmath.com/kb/score-100-in-tests/?utm_source=Plugin&utm_campaign=WP#overall-content-length" target="_blank">'+(0,Vt.__)("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}}}}])&&ln(e.prototype,r),n&&ln(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function pn(t){return pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(t)}function fn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(a=n.key,i=void 0,i=function(t,e){if("object"!==pn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==pn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===pn(i)?i:String(i)),n)}var a,i}var dn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,r,n;return e=t,(r=[{key:"setup",value:function(t){Yr(),this.resultManager=new l.ResultManager,this.assessor=new on(t),new sn,(0,c.doAction)("rank_math_loaded")}},{key:"refresh",value:function(t){this.assessor.refresh(t)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(t){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(t){throw"Implement the function"}}])&&fn(e.prototype,r),n&&fn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function hn(t){return hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(t)}function mn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mn(Object(r),!0).forEach((function(e){vn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,bn(n.key),n)}}function vn(t,e,r){return(e=bn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bn(t){var e=function(t,e){if("object"!==hn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==hn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===hn(e)?e:String(e)}var wn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),vn(this,"initialize",!1),this.dataUpdated=!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(),(0,c.addAction)("rank_math_elementor_before_save","rank-math",this.beforeSave),setTimeout(this.elementorPreviewLoaded.bind(this),5e3)}var e,r,n;return e=t,(r=[{key:"elementorPreviewLoaded",value:function(){var t=this;(0,c.addAction)("rank_math_data_changed","rank-math",(function(e){(0,H.includes)(["permalink","dirtyMetadata","score","lockModifiedDate"],e)||t.dataUpdated||t.activateSaveButton()})),(0,c.addAction)("rank_math_update_app_ui","rank-math",(function(e){"hasRedirect"===e&&t.activateSaveButton()}))}},{key:"activateSaveButton",value:function(){window.top.$e.internal("document/save/set-is-modified",{status:!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 t=this,e=[];return this.getContentArea().find('[data-element_type="widget"]').each((function(r,n){var a=i()(n).html();(a=a.trim())&&(a=a.replace(/<div[^>]*class=["'][^"']*elementor\x2Delement\x2Doverlay[^"']*["'][^>]*>[\s\S]*?<\/div>/gi,""),e.push(t.decodeEntities(a)))})),e.join("")}},{key:"decodeEntities",value:function(t){return t?t=t.replace("–","-"):""}},{key:"getContentArea",value:function(){if(this._contentArea)return this._contentArea;var t=elementor.$preview.contents().find('[data-elementor-type="'+ElementorConfig.document.type+'"]');return t.length<1?i()("<div />"):(this._contentArea=t,t)}},{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(0,lr.safeDecodeURIComponent)((0,o.select)("rank-math").getPermalink())}},{key:"getFeaturedImage",value:function(){var t=elementor.settings.page.model.get("post_featured_image");if(!(0,H.isUndefined)(t)&&(t=""===t.id?0:parseInt(t.id),this.isValidMediaId(t))){var e=(0,o.select)("core").getMedia(t);if(!(0,H.isUndefined)(e))return e}}},{key:"isValidMediaId",value:function(t){return"number"==typeof t&&0<t}},{key:"subscribeToElementor",value:function(){(0,o.dispatch)("rank-math").updatePermalink(rankMath.postName),this.subscriber=(0,H.debounce)(this.refresh,500),(0,o.subscribe)(this.subscriber),elementor.settings.page.model.on("change",this.subscriber)}},{key:"beforeSave",value:function(){window.rankMathDataCollector.savePost(),window.rankMathDataCollector.saveRedirection(),window.rankMathDataCollector.saveSchemas()}},{key:"refresh",value:function(){var t=yn({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(t),!(0,H.isEqual)(t,this._data)&&t.id&&elementor.channels.editor.trigger("status:change",!0)}},{key:"savePost",value:function(){var t=this,e=(0,o.select)("rank-math").getDirtyMetadata();(0,H.isEmpty)(e)||(qt()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:e,content:this.getContent()}}).then((function(e){t.dataUpdated=!0,(0,H.isString)(e.slug)&&(0,o.dispatch)("rank-math").updatePermalink(e.slug),(0,c.doAction)("rank_math_metadata_updated",e),t.dataUpdated=!1})),(0,o.dispatch)("rank-math").resetDirtyMetadata())}},{key:"saveRedirection",value:function(){var t=(0,o.select)("rank-math").getRedirectionItem();(0,H.isEmpty)(t)||(t.objectID=this.getPostID(),t.redirectionSources=this.getPermalink(),qt()({method:"POST",path:"rankmath/v1/updateRedirection",data:t}).then((function(t){"delete"===t.action?(0,o.dispatch)("rank-math").updateRedirection("redirectionID",0):"new"===t.action&&(0,o.dispatch)("rank-math").updateRedirection("redirectionID",t.id)})),(0,o.dispatch)("rank-math").resetRedirection())}},{key:"saveSchemas",value:function(){var t=this,e=(0,o.select)("rank-math").getSchemas();if(!(0,H.isEmpty)(e)&&(0,o.select)("rank-math").hasSchemaUpdated()){var r=(0,o.select)("rank-math").getEditSchemas();qt()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,schemas:e}}).then((function(n){if(t.dataUpdated=!0,(0,H.isEmpty)(n))(0,o.dispatch)("rank-math").updateSchemas(e);else{var a=yn({},e),i=yn({},r);(0,H.map)(n,(function(t,e){a["schema-"+t]=yn({},a[e]),i["schema-"+t]=yn({},i[e]),delete a[e],delete i[e]})),(0,o.dispatch)("rank-math").schemaUpdated(!1),(0,o.dispatch)("rank-math").updateSchemas(a),(0,o.dispatch)("rank-math").updateEditSchemas(i)}t.dataUpdated=!1}))}}},{key:"handleEditorChange",value:function(t){var e=this,r={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if((0,H.isInteger)(t.id))return this.initialize?void(0,H.forEach)(r,(function(r,n){e._data[n]!==t[n]&&e[r](e._data[n])})):(this.initialize=!0,(0,H.forEach)(r,(function(t,r){e[t](e._data[r])})),void rankMathEditor.refresh("init"));(0,o.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(t){(0,o.dispatch)("rank-math").updatePostID(t),(0,o.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(t){d.setVariable("title",t),(0,o.dispatch)("rank-math").updateSerpTitle((0,o.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(t){d.setVariable("excerpt",t),d.setVariable("excerpt_only",t),d.setVariable("wc_shortdesc",t),d.setVariable("seo_description",t),(0,o.dispatch)("rank-math").updateSerpDescription((0,o.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(t){(0,o.dispatch)("rank-math").updateFeaturedImage(t),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){(0,o.dispatch)("rank-math").updateSerpDescription((0,o.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&gn(e.prototype,r),n&&gn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),kn=Marionette,_n=t.n(kn),Sn=wp.element,Dn=_n().ItemView.extend({root:null,template:!1,id:"elementor-panel-rank-math",className:"rank-math-elementor rank-math-sidebar-panel",initialize:function(){i()("#elementor-panel-elements-search-area").hide()},onShow:function(){this.root=(0,Sn.createRoot)(document.getElementById("elementor-panel-rank-math"));var t=(0,Sn.createElement)((0,c.applyFilters)("rank_math_app",{}));this.root.render(t)},onDestroy:function(){this.root.unmount(),i()("#elementor-panel-elements-search-area").show()}}),Tn=function(t){return t["rank-math"]={region:t.global.region,view:Dn,options:{}},t};function Pn(t){return Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pn(t)}function In(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,On(n.key),n)}}function On(t){var e=function(t,e){if("object"!==Pn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Pn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Pn(e)?e:String(e)}var En=function(){function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n={},(r=On(r="links"))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,this.onThemeChange=this.onThemeChange.bind(this),elementor.settings.editorPreferences.model.on("change",this.onThemeChange)}var e,r,n;return e=t,(r=[{key:"onThemeChange",value:function(t){var e=this,r=(0,H.get)(t,"changed.ui_theme",!1);!1!==r&&(0,H.forEach)(rankMath.elementorDarkMode,(function(t,n){var a=e.getLink(n+"-css",t);"light"!==r?a.attr("media","auto"===r?"(prefers-color-scheme: dark)":"").appendTo(elementorCommon.elements.$body):a.remove()}))}},{key:"getLink",value:function(t,e){return this.links[t]||this.createLink(t,e),this.links[t]}},{key:"createLink",value:function(t,e){this.links[t]=i()("#"+t).length?i()("#"+t):null,this.links[t]||(this.links[t]=i()("<link>",{id:t,rel:"stylesheet",href:e}))}}])&&In(e.prototype,r),n&&In(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),An=wp.components;function jn(t){return jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jn(t)}function Mn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(a=n.key,i=void 0,i=function(t,e){if("object"!==jn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==jn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===jn(i)?i:String(i)),n)}var a,i}var Un=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),rankMath.showLockModifiedDate&&(this.addTopBarButton(),i()((function(){return e.init()})))}var e,r,n;return e=t,(r=[{key:"init",value:function(){this.previewLoaded(),this.onDocumentLoaded(),this.onContentChange()}},{key:"addTopBarButton",value:function(){var t=this,e=window.elementorV2;(0,H.isUndefined)(e)||e.editorAppBar.documentOptionsMenu.registerToggleAction({id:"rank-math-lock-modified-date",priority:10,useProps:function(){return{title:(0,Vt.__)("Update (Lock Modified Date)","rank-math"),icon:function(){return wp.element.createElement(An.Dashicon,{icon:"calendar"})},onClick:function(){t.triggerUpdate()}}}})}},{key:"previewLoaded",value:function(){var t=this;elementor.once("preview:loaded",(function(){elementor.getRegion("panel").currentView.footer.currentView.addSubMenuItem("saver-options",{icon:"eicon-date",name:"rank-math-lock-modified-date",title:(0,Vt.__)("Update (Lock Modified Date)","rank-math"),callback:function(e){e.currentTarget.classList.contains("elementor-disabled")||t.triggerUpdate()}})}))}},{key:"onDocumentLoaded",value:function(){var t=this;elementor.on("document:loaded",(function(e){t.activateButton("draft"===e.container.settings.get("post_status")),t.lockModifiedDate(!1)}))}},{key:"onContentChange",value:function(){var t=this;$e.commandsInternal.on("run:after",(function(e,r,n){switch(r){case"document/save/set-is-modified":t.activateButton(n.status);break;case"document/save/save":case"document/save/default":delete elementorCommon.ajax.requestConstants.lock_modified_date,t.lockModifiedDate(!1)}}))}},{key:"triggerUpdate",value:function(){this.lockModifiedDate(!0),elementorCommon.ajax.addRequestConstant("lock_modified_date",!0),$e.run("document/save/default")}},{key:"activateButton",value:function(t){var e=document.getElementById("elementor-panel-footer-sub-menu-item-rank-math-lock-modified-date");e&&(e.classList.remove("elementor-disabled"),t||e.classList.add("elementor-disabled"))}},{key:"lockModifiedDate",value:function(t){wp.data.dispatch("rank-math").lockModifiedDate(t)}}])&&Mn(e.prototype,r),n&&Mn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Cn=(0,An.createSlotFill)("RankMathAfterEditor"),Rn=Cn.Fill,xn=Cn.Slot,Ln=function(t){var e=t.children,r=t.className;return wp.element.createElement(Rn,null,wp.element.createElement(An.PanelRow,{className:r},e))};Ln.Slot=xn;var Fn=Ln,Nn=(0,An.createSlotFill)("RankMathAdvancedTab"),Kn=Nn.Fill,zn=Nn.Slot,Gn=function(t){var e=t.children,r=t.className;return wp.element.createElement(Kn,null,wp.element.createElement(An.PanelRow,{className:r},e))};Gn.Slot=zn;var Hn=Gn,Bn=(0,An.createSlotFill)("RankMathAfterFocusKeyword"),Vn=Bn.Fill,$n=Bn.Slot,qn=function(t){var e=t.children,r=t.className;return wp.element.createElement(Vn,null,wp.element.createElement("div",{className:r},e))};qn.Slot=$n;var Wn=qn;function Yn(t){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(t)}function Qn(){Qn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:P(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function g(){}function v(){}function b(){}var w={};l(w,o,(function(){return this}));var k=Object.getPrototypeOf,_=k&&k(k(j([])));_&&_!==r&&n.call(_,o)&&(w=_);var S=b.prototype=g.prototype=Object.create(w);function D(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(a,i,o,u){var c=p(t[a],t,i);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"==Yn(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,o,u)}),(function(t){r("throw",t,o,u)})):e.resolve(s).then((function(t){l.value=t,o(l)}),(function(t){return r("throw",t,o,u)}))}u(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,a){r(t,n,e,a)}))}return i=i?i.then(a,a):a()}})}function P(e,r,n){var a=f;return function(i,o){if(a===h)throw new Error("Generator is already running");if(a===m){if("throw"===i)throw o;return{value:t,done:!0}}for(n.method=i,n.arg=o;;){var u=n.delegate;if(u){var c=I(u,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var l=p(e,r,n);if("normal"===l.type){if(a=n.done?m:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=m,n.method="throw",n.arg=l.arg)}}}function I(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,I(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=p(a,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function j(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Yn(e)+" is not iterable")}return v.prototype=b,a(S,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:v,configurable:!0}),v.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},D(T.prototype),l(T.prototype,u,(function(){return this})),e.AsyncIterator=T,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var o=new T(s(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},D(S),l(S,c,"Generator"),l(S,o,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=j,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return u.type="throw",u.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;E(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Jn(t,e,r,n,a,i,o){try{var u=t[i](o),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,a)}function Xn(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(t){Jn(i,n,a,o,u,"next",t)}function u(t){Jn(i,n,a,o,u,"throw",t)}o(void 0)}))}}function Zn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ta(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(a=n.key,i=void 0,i=function(t,e){if("object"!==Yn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Yn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Yn(i)?i:String(i)),n)}var a,i}function ea(t,e,r){return e&&ta(t.prototype,e),r&&ta(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ra(){return ra="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=oa(t)););return t}(t,e);if(n){var a=Object.getOwnPropertyDescriptor(n,e);return a.get?a.get.call(arguments.length<3?t:r):a.value}},ra.apply(this,arguments)}function na(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&aa(t,e)}function aa(t,e){return aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},aa(t,e)}function ia(t){var e=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(t){return!1}}();return function(){var r,n=oa(t);if(e){var a=oa(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Yn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function oa(t){return oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},oa(t)}var ua=function(){return u.MediaUpload},ca=function(t){na(r,t);var e=ia(r);function r(){return Zn(this,r),e.apply(this,arguments)}return ea(r,[{key:"setup",value:function(t){this.registerSlots=this.registerSlots.bind(this),(0,c.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),(0,c.addFilter)("editor.MediaUpload","rank-math/replace-media-upload",ua),ra(oa(r.prototype),"setup",this).call(this,t)}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=Fn,this.RankMathAfterFocusKeyword=Wn,this.RankMathAdvancedTab=Hn,this.slots={AfterEditor:Fn,AfterFocusKeyword:Wn,AdvancedTab:Hn}}},{key:"updatePermalink",value:function(t){(0,o.dispatch)("rank-math").updatePermalink(t)}},{key:"updatePermalinkSanitize",value:function(t){t=this.assessor.getResearch("slugify")(t),(0,o.dispatch)("rank-math").updatePermalink(t)}}]),r}(dn);new Un,i()((function(){window.rankMathEditor=new ca,window.rankMathGutenberg=window.rankMathEditor,new En,elementor.once("preview:loaded",(function(){$e.components.get("panel/elements").addTab("rank-math",{title:"SEO"}),window.rankMathDataCollector=new wn,window.rankMathEditor.setup(window.rankMathDataCollector),(0,o.dispatch)("rank-math").refreshResults()}));var t=null;elementor.on("preview:loaded",Xn(Qn().mark((function e(){var r,n,a,i;return Qn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=elementor.config.document,(n=r.id)&&r.type){e.next=4;break}return e.abrupt("return");case 4:if(t&&n!==t){e.next=7;break}return t=n,e.abrupt("return");case 7:return t=n,e.next=10,qt()({path:"/wp/v2/".concat(r.type.replace("wp-","")+"s","/").concat(t,"?_fields=slug")});case 10:a=e.sent,i=a.slug,(0,o.dispatch)("rank-math").updatePermalink(i),(0,o.dispatch)("rank-math").refreshResults();case 14:case"end":return e.stop()}}),e)}))))})),i()(window).on("elementor:init",(function(){elementor.hooks.addFilter("panel/elements/regionViews",Tn);var t=function(t){na(r,$e.modules.hookUI.Before);var e=ia(r);function r(){return Zn(this,r),e.apply(this,arguments)}return ea(r,[{key:"getCommand",value:function(){return"document/save/save"}},{key:"getId",value:function(){return"custom-updater-before-save"}},{key:"getConditions",value:function(){return!0}},{key:"apply",value:function(t,e){(0,c.doAction)("rank_math_elementor_before_save",t,e)}}]),r}();$e.hooks.registerUIBefore(new t)}))}();