WPR FM
uid=9814(b13i2mwmyrdbxio) php=8.4.28
info
cwd /data/sites/web/b13i2mwmyrdbxio/www |
naik
Buka
-
482.css
30111
x
D
admin/
D
editor/
-
metaboxe.asset.php
172
x
-
metaboxe.css
58404
x
-
metaboxe.js
48153
x
-
metaboxe.js.LICENSE.txt
808
x
Upload
Simpan
/*! For license information please see metaboxe.js.LICENSE.txt */ (()=>{"use strict";var e,t,n={4124:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(9196),s=n.n(r);class o extends s().Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error("[error]",e),console.error("[errorInfo]",t)}render(){return this.state.hasError?this.props.fallback??null:this.props.children}}const a=o},6745:(e,t,n)=>{n.d(t,{C8:()=>w,Hv:()=>a,JU:()=>y,Ju:()=>_,LG:()=>c,SE:()=>b,UO:()=>u,VB:()=>E,Y6:()=>i,YO:()=>f,hr:()=>m,k1:()=>l,mD:()=>p,mG:()=>v,o:()=>g,qN:()=>o,zd:()=>d,zn:()=>h});var r=n(6545),s=n(2196);const o="TITLE_DESCRIPTION_META",a="CONTENT_ANALYSIS",i="SCHEMAS",c="TITLE_SETTINGS",u="ADVANCED",l="SOCIAL",d="REDIRECTION",p="OVERVIEW",f="GOOGLE_NEWS",m="VIDEO_SITEMAP",b="INTERNAL_LINKING",E="INSPECT_URL",y="INDEXING_HISTORY",v="SCHEMA_MANUAL",h="SCHEMA_AUTOMATIC",S="GLOBAL",g=e=>{const t=(0,r.U2)(e,"type_role",null);return!(0,r.kK)(t)&&!0===(0,r.U2)(SEOPRESS_DATA,["ROLES_BLOCKED_FOR_USER",t],!1)},w=()=>[{key:o,title:(0,s.i)({key:"constants.tabs.title_description_meta"}),canView:()=>!0,type_role:S,default_sub_tab:c},{key:a,title:(0,s.i)({key:"constants.tabs.content_analysis"}),canView:()=>!0,type_role:"CONTENT_ANALYSIS",default_sub_tab:p},{key:i,title:(0,s.i)({key:"constants.tabs.schemas"}),canView:()=>(0,r.U2)(SEOPRESS_DATA,["TABS","SCHEMAS"],!1),type_role:S,default_sub_tab:v}],_=()=>[{parent:o,key:c,canView:()=>!0,title:(0,s.i)({key:"constants.sub_tabs.title_settings"})},{parent:o,key:l,canView:()=>!0,title:(0,s.i)({key:"constants.sub_tabs.social"})},{parent:o,key:u,canView:()=>!0,title:(0,s.i)({key:"constants.sub_tabs.advanced"})},{parent:o,key:d,canView:()=>!0,title:(0,s.i)({key:"constants.sub_tabs.redirection"})},{parent:o,key:f,canView:()=>(0,r.U2)(SEOPRESS_DATA,["SUB_TABS",f],!1),title:(0,s.i)({key:"constants.sub_tabs.google_news"})},{parent:o,key:m,canView:()=>(0,r.U2)(SEOPRESS_DATA,["SUB_TABS",m],!1),title:(0,s.i)({key:"constants.sub_tabs.video_sitemap"})},{parent:a,key:p,canView:()=>!0,title:(0,s.i)({key:"constants.sub_tabs.overview"})},{parent:a,key:E,canView:()=>(0,r.U2)(SEOPRESS_DATA,["SUB_TABS",E],!1),title:(0,s.i)({key:"constants.sub_tabs.inspect_url"})},{parent:a,key:b,canView:()=>(0,r.U2)(SEOPRESS_DATA,["SUB_TABS",b],!1),title:(0,s.i)({key:"constants.sub_tabs.internal_linking"})},{parent:a,key:y,canView:()=>(0,r.U2)(SEOPRESS_DATA,["SUB_TABS",y],!1),title:(0,s.i)({key:"constants.sub_tabs.indexing_history"})},{parent:i,key:v,canView:()=>!0,title:(0,s.i)({key:"constants.sub_tabs.schema_manual"})},{parent:i,key:h,canView:()=>(0,r.U2)(SEOPRESS_DATA,["SUB_TABS",h],!1),title:(0,s.i)({key:"constants.sub_tabs.schema_automatic"})}]},2727:(e,t,n)=>{n.d(t,{$K:()=>i,$d:()=>c,Jo:()=>m,LD:()=>d,M9:()=>u,RC:()=>b,cn:()=>f,uc:()=>p,xD:()=>l});var r=n(6545),s=n(9196),o=n.n(s),a=n(6745);const i=(0,s.createContext)({values:{openBar:!1,tab:a.qN,dataPagePreview:null}}),c=()=>{const{values:e}=(0,s.useContext)(i);return e.dataPagePreview},u=()=>{const{values:e}=(0,s.useContext)(i);return e.openBar},l=()=>{const{values:e}=(0,s.useContext)(i);return e.tab},d=()=>{const{values:e}=(0,s.useContext)(i);return e.subTab},p=()=>{const{values:e}=(0,s.useContext)(i);return e.isGutenberg},f=()=>{const{values:e}=(0,s.useContext)(i);return e.isAdmin},m=()=>{const{values:e}=(0,s.useContext)(i);return e.isEmbedded},b=({children:e,data:t={}})=>{const[n]=(0,s.useState)((0,r.U2)(t,"isEmbedded",!1)),[c,u]=(0,s.useState)(n),[l,d]=(0,s.useState)((0,r.U2)(t,"isGutenberg",!1)),[p]=(0,s.useState)((0,r.U2)(t,"isAdmin",!1)),[f,m]=(0,s.useState)((()=>{for(const e of(0,a.C8)())if(e.canView()&&!(0,a.o)(e))return e.key;return null})()),[b,E]=(0,s.useState)(null),[y,v]=(0,s.useState)((0,r.U2)(SEOPRESS_DATA,["INITIAL_DATA","redirectionEnabled"],!1)),h=(0,r.sE)((0,a.C8)(),{key:f}),S=h&&!(0,r.kK)(h.default_sub_tab)?h.default_sub_tab:null,[g,w]=(0,s.useState)(S);(0,s.useEffect)((()=>{const e=(0,r.sE)((0,a.Ju)(),{key:g});e&&(0,r.U2)(e,"parent",!1)&&m(e.parent)}),[g]);const _=(0,s.useCallback)((e=>{const t=(0,r.sE)((0,a.C8)(),{key:e});t&&((0,r.kK)(t.default_sub_tab)?w(null):w(t.default_sub_tab),m(e))}),[]),A=(0,s.useCallback)((e=>{(0,r.sE)((0,a.Ju)(),{key:e})&&w(e)}),[]),O=(0,s.useMemo)((()=>({values:{openBar:c,dataPagePreview:b,tab:f,subTab:g,isGutenberg:l,isAdmin:p,isEmbedded:n,redirectionEnabled:y},actions:{setOpenBar:u,setDataPagePreview:E,setTab:_,setSubTab:A,setRedirectionEnabled:v}})),[c,b,f,g,l,p,n,y,_,A]);return o().createElement(i.Provider,{value:O},e)}},4221:(e,t,n)=>{n.d(t,{l:()=>i,u:()=>a});var r=n(6545),s=n(9196),o=n.n(s);const a=(0,s.createContext)({values:{show:!1,message:"",status:"success"},actions:{}}),i=({values:e,children:t})=>{const[n,i]=(0,s.useState)((0,r.U2)(e,"show",!1)),[c,u]=(0,s.useState)((0,r.U2)(e,"messages","")),[l,d]=(0,s.useState)("success");return(0,s.useEffect)((()=>{(0,r.xb)(c)||(i(!0),setTimeout((()=>{u(""),i(!1)}),4e3))}),[c]),o().createElement(a.Provider,{value:{values:{show:n,message:c,status:l},actions:{setMessage:(e,t="success")=>{d(t),u(e)}}}},t)}},8245:(e,t,n)=>{n.d(t,{G5:()=>u,JU:()=>c,Z4:()=>a,gR:()=>i});var r=n(6545),s=n(9196),o=n.n(s);const a=(0,s.createContext)({values:{title:"",description:"",post_thumbnail:"",post_date:""}}),i=()=>{const{values:e}=(0,s.useContext)(a);return(0,r.U2)(e,"title","")},c=()=>{const{values:e}=(0,s.useContext)(a);return(0,r.U2)(e,"description","")},u=({children:e})=>{const[t,n]=(0,s.useState)(""),[r,i]=(0,s.useState)(""),[c,u]=(0,s.useState)(""),[l,d]=(0,s.useState)(""),p=(0,s.useMemo)((()=>({values:{title:t,description:r,post_thumbnail:c,post_date:l},actions:{setTitle:n,setDescription:i,setPostThumbnail:u,setPostDate:d}})),[t,r,c,l]);return o().createElement(a.Provider,{value:p},e)}},6232:(e,t,n)=>{n.d(t,{Bs:()=>d,m6:()=>l});var r=n(3),s=n(6545),o=n(5705),a=n(328);const i={ok:!1},c=new Map,u=()=>{const e=Date.now();c.forEach(((t,n)=>{t.expiresAt<=e&&c.delete(n)}))},l=e=>{u();const t=[];if(e.forEach((e=>{const n=(0,a.wT)(e);!n||c.has(e)||t.length>=20||t.push({url:e,route:n})})),!t.length)return;const n=(0,a.ir)(t.map((e=>e.route)));if(!n)return;const l=(async()=>{const e=await fetch(n,{signal:(0,r.q)(),headers:{"X-WP-Nonce":(0,s.U2)(SEOPRESS_DATA,"NONCE",null)}});if(!e.ok)return null;const t=await(0,o.M)(e,n);return Array.isArray(t)?t:null})(),d=Date.now()+3e4;t.forEach((({url:e,route:t},n)=>{c.set(e,{expiresAt:d,promise:l.then((e=>{if(null===e)return i;const r=((e,t,n)=>{const r=e[n];return r&&r.route===t?r:e.find((e=>e&&e.route===t))})(e,t,n);return r&&(void 0===(s=r.status)||s>=200&&s<300)?{ok:!0,data:r.body}:i;var s}),(()=>i))})}))},d=e=>{u();const t=c.get(e);return t?(c.delete(e),t.promise):null}},2441:(e,t,n)=>{n.d(t,{N8:()=>m,S4:()=>E});var r=n(6545);const s="__seopressRenderedHtml",o=()=>"undefined"==typeof window?{}:(window[s]||(window[s]={}),window[s]),a=["just a moment","challenge-platform","cf-browser-verification","__cf_chl","checking your browser","attention required! | cloudflare","ddos protection by","sucuri website firewall","incapsula incident","private access token","tiger protect"],i=e=>{if(!e)return!0;const t=e.slice(0,8e3).toLowerCase();return a.some((e=>-1!==t.indexOf(e)))},c=e=>{try{return/\/wp-login\.php(?:\/|$)/i.test(new URL(e).pathname)}catch(e){return!1}},u=e=>{if("string"!=typeof e||"undefined"==typeof window)return null;try{const t=new URL(e);return!/^https?:$/.test(t.protocol)||t.username||t.password?null:window.location.origin+t.pathname+t.search+t.hash}catch(e){return null}},l=(e,t=0)=>({html:e,status:t}),d=async(e,t)=>{const n=u(e);if(!n||c(n))return l(null);try{const e=await fetch(n,{credentials:t,redirect:"follow",headers:{Accept:"text/html,application/xhtml+xml,application/xml;q=0.9"}});if(c(e.url))return l(null);if(!e.ok)return l(null,e.status);const r=(e.headers.get("content-type")||"").toLowerCase();if(r&&-1===r.indexOf("html"))return l(null,e.status);const s=await e.text();return i(s)||(e=>{if(!e)return!1;const t=(new DOMParser).parseFromString(e,"text/html");return t.body?.classList.contains("login")||!1})(s)?l(null,e.status):l(s,e.status)}catch(e){return l(null)}},p=async(e,t)=>{const n=u(e);if(!n||c(n))return 0;try{const e=await fetch(n,{method:"HEAD",credentials:t,redirect:"follow"});return c(e.url)||"number"!=typeof e.status?0:e.status}catch(e){return 0}},f=()=>{o().entry=null},m=e=>{if("undefined"==typeof window||!window.wp||!window.wp.data)return()=>{};const t=window.wp.data;if("function"!=typeof t.subscribe)return()=>{};let n=!1;return t.subscribe((()=>{const r=t.select("core/editor");if(!r||"function"!=typeof r.isSavingPost)return;const s=r.isSavingPost()&&!r.isAutosavingPost();n&&!s&&("function"!=typeof r.didPostSaveRequestSucceed||r.didPostSaveRequestSucceed())&&e(),n=s}))},b="__seopressRenderedHtmlSaveWatch",E=({bust:e=!1}={})=>{"undefined"==typeof window||window[b]||(window[b]=!0,m(f));const t=(0,r.U2)(SEOPRESS_DATA,"POST_ID",0),n=Date.now(),s=o(),a=s.entry;if(!e&&a&&a.id===t&&n-a.ts<3e5)return a.promise;const E=(async()=>{const e=u((0,r.U2)(SEOPRESS_DATA,"POST_URL",null)),t=u((0,r.U2)(SEOPRESS_DATA,"POST_PREVIEW_URL",null)),n="publish"===(0,r.U2)(SEOPRESS_DATA,"POST_STATUS",null)&&!!e;let s=l(null);if(n&&(s=await d(e,"omit")),null===s.html){const r=n?e:t;if(r){const[e,t]=await Promise.all([(o=r,new Promise((e=>{const t=u(o);if(!t||c(t)||"undefined"==typeof document||!document.body)return void e(null);const n=document.createElement("iframe");let r=!1,s=null;const a=t=>{r||(r=!0,s&&(window.clearTimeout(s),s=null),n.parentNode&&n.parentNode.removeChild(n),e(t))};n.setAttribute("aria-hidden","true"),n.setAttribute("tabindex","-1"),n.setAttribute("sandbox","allow-same-origin"),n.style.cssText="position:absolute;left:-9999px;top:-9999px;width:0;height:0;border:0;visibility:hidden;",n.addEventListener("load",(()=>{try{const e=n.contentDocument;if(e&&(c(e.URL)||e.body?.classList.contains("login")||e.body?.classList.contains("error404")))return void a(null);const t=e&&e.documentElement?e.documentElement.outerHTML:null;a(i(t)?null:t)}catch(e){a(null)}})),n.addEventListener("error",(()=>a(null))),s=window.setTimeout((()=>a(null)),2e4),n.src=t,document.body.appendChild(n)}))),p(r,"include")]);s=null===e?l(null,t||s.status):l(e,t)}}var o;if(null===s.html&&t){const e=await d(t,"include");s=null===e.html?l(null,e.status||s.status):e}return s})();return s.entry={id:t,promise:E,ts:n},E}},3:(e,t,n)=>{n.d(t,{q:()=>r});const r=e=>{const t="undefined"!=typeof AbortSignal&&"function"==typeof AbortSignal.any,n="undefined"!=typeof AbortSignal&&"function"==typeof AbortSignal.timeout;if(t&&n){const t=[AbortSignal.timeout(15e3)];return e&&t.push(e),AbortSignal.any(t)}const r=new AbortController,s=setTimeout((()=>r.abort(new DOMException("Timeout","TimeoutError"))),15e3);return e&&(e.aborted?(clearTimeout(s),r.abort(e.reason)):e.addEventListener("abort",(()=>{clearTimeout(s),r.abort(e.reason)}),{once:!0})),r.signal}},538:(e,t,n)=>{n.d(t,{_:()=>d,l:()=>l});var r=n(6545),s=n(328),o=n(3),a=n(6232),i=n(5705);const c=async e=>{const t=(0,a.Bs)(e);if(!t)return null;const n=await t;return n.ok?n:null},u=(e,t)=>{if(!e.ok)throw new Error(`SEOPress: ${e.url||t} answered with ${e.status}. Route: ${t}`)},l=async(e,t)=>{try{const n=await c(e);if(n)return t&&t.aborted?void 0:n.data;const a=await(0,s.Wz)(e,{signal:(0,o.q)(t),headers:{"X-WP-Nonce":(0,r.U2)(SEOPRESS_DATA,"NONCE",null)}});return u(a,e),await(0,i.M)(a,e)}catch(e){if("AbortError"===e?.name)return;throw e}},d=()=>async function(...e){const t=(0,r.Ps)(e),n=await c(t);if(n)return n.data;const a=await(0,s.Wz)(t,{signal:(0,o.q)(),headers:{"X-WP-Nonce":(0,r.U2)(SEOPRESS_DATA,"NONCE",null)}});return u(a,t),(0,i.M)(a,t)}},2497:(e,t,n)=>{n.d(t,{y:()=>s});var r=n(6545);const s=()=>{try{const e=new URLSearchParams(window.location.search);return e.has("post")?e.get("post"):(0,r.e$)(SEOPRESS_DATA,"POST_ID")?(0,r.U2)(SEOPRESS_DATA,"POST_ID"):null}catch(e){return null}}},2196:(e,t,n)=>{n.d(t,{i:()=>s});var r=n(6545);const s=({key:e})=>(0,r.U2)(SEOPRESS_I18N,e,"")},5705:(e,t,n)=>{n.d(t,{M:()=>r});const r=async(e,t)=>{const n=await e.text();if(""===n.trim())return null;try{return JSON.parse(n)}catch(r){const s=e.url||t;throw new Error(`SEOPress: ${s} answered with ${e.status} and a body that is not JSON. Something is intercepting the request, most likely a caching, security or optimization plugin, or a server-level firewall. Route: ${t}. First bytes received: ${n.slice(0,120)}`)}}},328:(e,t,n)=>{n.d(t,{Wz:()=>i,ir:()=>a,wT:()=>s});var r=n(6545);const s=e=>{const t=(0,r.U2)(SEOPRESS_DATA,"REST_URL","");return t&&"string"==typeof e&&0===e.indexOf(t)?"/"+e.slice(t.length):null},o=()=>{const e=(0,r.U2)(SEOPRESS_DATA,"ADMIN_AJAX_URL",null);if(!e)return null;const t=-1===e.indexOf("?")?"?":"&";return`${e}${t}action=seopress_metabox_proxy&_ajax_nonce=${encodeURIComponent((0,r.U2)(SEOPRESS_DATA,"AJAX_PROXY_NONCE",""))}`},a=e=>{const t=o();return t&&e.length?t+e.map((e=>`&routes%5B%5D=${encodeURIComponent(e)}`)).join(""):null},i=(e,t={})=>fetch((e=>{const t=s(e),n=o();return t&&n?`${n}&route=${encodeURIComponent(t)}`:null})(e)||e,t)},6545:(e,t,n)=>{function r(e,t,n){if(null==e)return n;const r=Array.isArray(t)?t:String(t).replace(/\[(\w+)\]/g,".$1").split(".").filter(Boolean);let s=e;for(const e of r){if(null==s)return n;s=s[e]}return void 0===s?n:s}function s(e){return null==e}function o(e){return null==e||(Array.isArray(e)||"string"==typeof e?0===e.length:e instanceof Map||e instanceof Set?0===e.size:"object"==typeof e&&0===Object.keys(e).length)}function a(e,t){return null!=e&&Object.prototype.hasOwnProperty.call(e,t)}function i(e){if("function"==typeof e)return e;if(e&&"object"==typeof e){const t=Object.entries(e);return e=>null!=e&&t.every((([t,n])=>e[t]===n))}return()=>!1}function c(e,t){if(!e)return;const n=i(t);if(Array.isArray(e))return e.find(n);for(const t of Object.keys(e))if(n(e[t],t,e))return e[t]}function u(e,t){if(!e)return[];const n=i(t);return Array.isArray(e)?e.filter(n):Object.keys(e).filter((t=>n(e[t],t,e))).map((t=>e[t]))}function l(e,t){const n="function"==typeof t?t:e=>e?.[t],r={};for(const t of e||[])r[n(t)]=t;return r}function d(e,t){const n={};for(const r of Object.keys(e||{}))n[r]=t(e[r],r,e);return n}function p(e,t){const n="function"==typeof t?t:e=>e?.[t],r={};for(const t of e||[]){const e=n(t);r[e]=(r[e]||0)+1}return r}function f(e,t){const n="function"==typeof t?t:e=>e?.[t],r={};for(const t of e||[]){const e=n(t);(r[e]=r[e]||[]).push(t)}return r}function m(e,t=0){let n=null;const r=function(...r){n&&clearTimeout(n),n=setTimeout((()=>{n=null,e.apply(this,r)}),t)};return r.cancel=()=>{n&&(clearTimeout(n),n=null)},r}function b(e,t){const n=new Map,r=function(...r){const s=t?t.apply(this,r):r[0];if(n.has(s))return n.get(s);const o=e.apply(this,r);return n.set(s,o),o};return r.cache=n,r}function E(e,{length:t=30,omission:n="..."}={}){const r=String(e??"");return r.length<=t?r:r.slice(0,Math.max(0,t-n.length))+n}function y(e){return null!=e&&e.length?e[0]:void 0}function v(e){return Array.isArray(e)?e:[]}n.d(t,{$G:()=>E,Ds:()=>m,HP:()=>b,Ps:()=>y,Q8:()=>d,U2:()=>r,VF:()=>p,VS:()=>l,e$:()=>a,hX:()=>u,kK:()=>s,qo:()=>v,sE:()=>c,vM:()=>f,xb:()=>o})},5201:(e,t,n)=>{n.d(t,{N:()=>s,Z:()=>o});var r=n(9026);const s=({postId:e})=>`${SEOPRESS_DATA.REST_URL}seopress/v1/posts/${e}/google-news-settings`,o=({postId:e})=>(0,r.V)(s({postId:e}),{suspense:!0})},1919:(e,t,n)=>{n.d(t,{Z:()=>c,W:()=>i});var r=n(9196);const s=e=>"_seopress_robots_primary_cat"===e?.key||"select"===e?.type&&!!e?.taxonomy,o=(e,t)=>e.taxonomy||(t?"product_cat":"category");var a=n(9026);const i=({postId:e})=>`${SEOPRESS_DATA.REST_URL}seopress/v1/posts/${e}/meta-robot-settings`,c=({postId:e})=>{const t=(0,a.V)(i({postId:e}),{suspense:!0}),n=function(e,t){const[n,a]=(0,r.useState)(null);return(0,r.useEffect)((()=>{a(null);const n=(Array.isArray(e)?e:[]).filter(s);if(!n.length)return;const r=(e,t)=>a((n=>{const r=n||{};return JSON.stringify(r[e])===JSON.stringify(t)?n:{...r,[e]:t}}));if(window.SEOPRESS_DATA?.IS_GUTENBERG&&window.wp?.data){const e=()=>{const e=window.wp.data.select("core/editor"),s=window.wp.data.select("core");if(!e||!s||String(e.getCurrentPostId())!==String(t))return;const a="product"===e.getCurrentPostType();n.forEach((t=>{const n=o(t,a),i=s.getTaxonomy(n);if(!i)return;const c=e.getEditedPostAttribute(i.rest_base);if(!Array.isArray(c))return;if(!c.length)return void r(t.key,[]);const u=s.getEntityRecords("taxonomy",n,{include:c,per_page:-1,context:"view"})||t.options||[];r(t.key,u.filter((e=>c.some((t=>String(t)===String(e.id??e.term_id))))).map((e=>({term_id:e.id??e.term_id,name:e.name}))))}))};return e(),window.wp.data.subscribe(e)}const i=!!document.getElementById("product_catdiv"),c=[];return n.forEach((e=>{const t=o(e,i),n=document.getElementById((e=>"category"===e?"categorydiv":`${e}div`)(t));if(!n)return;const s=`input[type="checkbox"][name="${(e=>"category"===e?"post_category[]":`tax_input[${e}][]`)(t)}"]`,a=t=>{const o=t?.target?.matches(s)?t.target:null,a=new Map;n.querySelectorAll(s).forEach((e=>{(o&&o.value===e.value?o.checked:e.checked)&&Number(e.value)>0&&a.set(e.value,{term_id:e.value,name:e.closest("label")?.textContent.trim()||e.value})})),r(e.key,[...a.values()])};a(),n.addEventListener("change",a);const u=new MutationObserver((()=>a()));u.observe(n,{childList:!0,subtree:!0}),c.push((()=>{n.removeEventListener("change",a),u.disconnect()}))})),()=>c.forEach((e=>e()))}),[t,e]),(0,r.useMemo)((()=>e&&null!==n?e.map((e=>{if(!s(e)||!n[e.key])return e;const t=(e.excluded||[]).map(String);return{...e,options:[...(e.options||[]).filter((e=>"none"===e.term_id)),...n[e.key].filter((e=>!t.includes(String(e.term_id))))]}})):e),[e,n])}(t.data,e);return{...t,data:n}}},2693:(e,t,n)=>{n.d(t,{Z:()=>o,m:()=>s}),n(8100);var r=n(9026);const s=({postId:e})=>`${SEOPRESS_DATA.REST_URL}seopress/v1/posts/${e}/redirection-settings`,o=({postId:e})=>(0,r.V)(s({postId:e}),{suspense:!0})},8502:(e,t,n)=>{n.d(t,{D:()=>s,Z:()=>o});var r=n(9026);const s=({postId:e})=>`${SEOPRESS_DATA.REST_URL}seopress/v1/posts/${e}/significant-keywords`,o=({postId:e})=>(0,r.V)(s({postId:e}),{suspense:!0})},4814:(e,t,n)=>{n.d(t,{Z:()=>o,h:()=>s}),n(8100);var r=n(9026);const s=({postId:e})=>`${SEOPRESS_DATA.REST_URL}seopress/v1/posts/${e}/social-settings`,o=({postId:e})=>(0,r.V)(s({postId:e}),{suspense:!0})},2508:(e,t,n)=>{n.d(t,{I:()=>s,Z:()=>o});var r=n(9026);const s=({postId:e})=>`${SEOPRESS_DATA.REST_URL}seopress/v1/posts/${e}/title-description-metas`,o=({postId:e})=>(0,r.V)(s({postId:e}),{suspense:!0})},8223:(e,t,n)=>{n.d(t,{Z:()=>o,s:()=>s});var r=n(9026);const s=({postId:e})=>`${SEOPRESS_DATA.REST_URL}seopress/v1/posts/${e}/video-sitemap`,o=({postId:e})=>(0,r.V)(s({postId:e}),{suspense:!0})},6462:(e,t,n)=>{n.d(t,{E:()=>s,Z:()=>o});var r=n(9026);const s=()=>`${SEOPRESS_DATA.REST_URL}seopress/v1/options/woocommerce-settings`,o=()=>(0,r.V)(s(),{suspense:!0,fallbackData:{}})},9296:(e,t,n)=>{n.d(t,{Q:()=>s,Z:()=>o});var r=n(9026);const s=({postId:e})=>`${SEOPRESS_DATA.REST_URL}seopress/v1/posts/${e}/indexing-history`,o=({postId:e})=>(0,r.V)(s({postId:e}),{suspense:!0})},978:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(9196);const s=function(e,t){const[n,s]=(0,r.useState)((()=>{try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.log(e),t}}));return[n,t=>{try{const r=t instanceof Function?t(n):t;s(r),window.localStorage.setItem(e,JSON.stringify(r))}catch(e){console.log(e)}}]}},9026:(e,t,n)=>{n.d(t,{V:()=>a});var r=n(9196),s=n(8100),o=n(538);function a(e,t){const n=(0,r.useRef)();return{...(0,s.ZP)(e,((...e)=>(n.current=new AbortController,(0,o.l)(...e,n.current.signal))),t),abort:()=>n.current?.abort()}}},6743:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>s});var r=n(9026);const s=({postId:e})=>`${SEOPRESS_DATA.REST_URL}seopress/v1/posts/${e}/schemas-automatic`,o=({postId:e})=>(0,r.V)(s({postId:e}),{suspense:!0})},9850:(e,t,n)=>{n.d(t,{Z:()=>o,b:()=>s});var r=n(9026);const s=({postId:e})=>`${SEOPRESS_DATA.REST_URL}seopress/v1/posts/${e}/schemas-manual`,o=({postId:e})=>(0,r.V)(s({postId:e}),{suspense:!0})},7371:(e,t,n)=>{n.d(t,{Z:()=>o,o:()=>s});var r=n(8100);n(9026);const s=({postId:e})=>`${SEOPRESS_DATA.REST_URL}seopress/v1/posts/${e}/target-keywords`,o=({postId:e})=>(0,r.ZP)(s({postId:e}),{suspense:!0})},745:(e,t,n)=>{var r=n(1850);t.s=r.createRoot,r.hydrateRoot},9196:e=>{e.exports=window.React},1850:e=>{e.exports=window.ReactDOM},6989:e=>{e.exports=window.wp.apiFetch},5609:e=>{e.exports=window.wp.components},9307:e=>{e.exports=window.wp.element},5736:e=>{e.exports=window.wp.i18n},6483:e=>{e.exports=window.wp.url},8100:(e,t,n)=>{n.d(t,{J$:()=>H,ZP:()=>Z});var r=n(9196);function s(e,t,n,r){return new(n||(n=Promise))((function(s,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function i(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,i)}c((r=r.apply(e,t||[])).next())}))}function o(e,t){var n,r,s,o,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return o={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function i(o){return function(i){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(s=2&o[0]?r.return:o[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;switch(r=0,s&&(o=[2&o[0],s.value]),o[0]){case 0:case 1:s=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((s=(s=a.trys).length>0&&s[s.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!s||o[1]>s[0]&&o[1]<s[3])){a.label=o[1];break}if(6===o[0]&&a.label<s[1]){a.label=s[1],s=o;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(o);break}s[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=s=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,i])}}}var a,i=function(){},c=i(),u=Object,l=function(e){return e===c},d=function(e){return"function"==typeof e},p=function(e,t){return u.assign({},e,t)},f="undefined",m=function(){return typeof window!=f},b=new WeakMap,E=0,y=function(e){var t,n,r=typeof e,s=e&&e.constructor,o=s==Date;if(u(e)!==e||o||s==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=b.get(e))return t;if(t=++E+"~",b.set(e,t),s==Array){for(t="@",n=0;n<e.length;n++)t+=y(e[n])+",";b.set(e,t)}if(s==u){t="#";for(var a=u.keys(e).sort();!l(n=a.pop());)l(e[n])||(t+=n+":"+y(e[n])+",");b.set(e,t)}}return t},v=!0,h=m(),S=typeof document!=f,g=h&&window.addEventListener?window.addEventListener.bind(window):i,w=S?document.addEventListener.bind(document):i,_=h&&window.removeEventListener?window.removeEventListener.bind(window):i,A=S?document.removeEventListener.bind(document):i,O={isOnline:function(){return v},isVisible:function(){var e=S&&document.visibilityState;return l(e)||"hidden"!==e}},R={initFocus:function(e){return w("visibilitychange",e),g("focus",e),function(){A("visibilitychange",e),_("focus",e)}},initReconnect:function(e){var t=function(){v=!0,e()},n=function(){v=!1};return g("online",t),g("offline",n),function(){_("online",t),_("offline",n)}}},T=!m()||"Deno"in window,k=T?r.useEffect:r.useLayoutEffect,I="undefined"!=typeof navigator&&navigator.connection,P=!T&&I&&(["slow-2g","2g"].includes(I.effectiveType)||I.saveData),D=function(e){if(d(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?y(e):"",t,e?"$swr$"+e:""]},x=new WeakMap,$=function(e,t,n,r,s,o,a){void 0===a&&(a=!0);var i=x.get(e),c=i[0],u=i[1],l=i[3],d=c[t],p=u[t];if(a&&p)for(var f=0;f<p.length;++f)p[f](n,r,s);return o&&(delete l[t],d&&d[0])?d[0](2).then((function(){return e.get(t)})):e.get(t)},N=0,L=function(){return++N},C=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(void 0,void 0,void 0,(function(){var t,n,r,s,a,i,u,f,m,b,E,y,v,h,S,g,w,_,A,O,R;return o(this,(function(o){switch(o.label){case 0:if(t=e[0],n=e[1],r=e[2],s=e[3],i=!!l((a="boolean"==typeof s?{revalidate:s}:s||{}).populateCache)||a.populateCache,u=!1!==a.revalidate,f=!1!==a.rollbackOnError,m=a.optimisticData,b=D(n),E=b[0],y=b[2],!E)return[2];if(v=x.get(t),h=v[2],e.length<3)return[2,$(t,E,t.get(E),c,c,u,!0)];if(S=r,w=L(),h[E]=[w,0],_=!l(m),A=t.get(E),_&&(O=d(m)?m(A):m,t.set(E,O),$(t,E,O)),d(S))try{S=S(t.get(E))}catch(e){g=e}return S&&d(S.then)?[4,S.catch((function(e){g=e}))]:[3,2];case 1:if(S=o.sent(),w!==h[E][0]){if(g)throw g;return[2,S]}g&&_&&f&&(i=!0,S=A,t.set(E,A)),o.label=2;case 2:return i&&(g||(d(i)&&(S=i(S,A)),t.set(E,S)),t.set(y,p(t.get(y),{error:g}))),h[E][1]=L(),[4,$(t,E,S,g,c,u,!!i)];case 3:if(R=o.sent(),g)throw g;return[2,i?R:S]}}))}))},U=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},V=function(e,t){if(!x.has(e)){var n=p(R,t),r={},s=C.bind(c,e),o=i;if(x.set(e,[r,{},{},{},s]),!T){var a=n.initFocus(setTimeout.bind(c,U.bind(c,r,0))),u=n.initReconnect(setTimeout.bind(c,U.bind(c,r,1)));o=function(){a&&a(),u&&u(),x.delete(e)}}return[e,s,o]}return[e,x.get(e)[4]]},B=V(new Map),M=B[0],z=B[1],j=p({onLoadingSlow:i,onSuccess:i,onError:i,onErrorRetry:function(e,t,n,r,s){var o=n.errorRetryCount,a=s.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!l(o)&&a>o||setTimeout(r,i,s)},onDiscarded:i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:P?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:P?5e3:3e3,compare:function(e,t){return y(e)==y(t)},isPaused:function(){return!1},cache:M,mutate:z,fallback:{}},O),q=function(e,t){var n=p(e,t);if(t){var r=e.use,s=e.fallback,o=t.use,a=t.fallback;r&&o&&(n.use=r.concat(o)),s&&a&&(n.fallback=p(s,a))}return n},G=(0,r.createContext)({}),J=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},F={dedupe:!0},H=u.defineProperty((function(e){var t=e.value,n=q((0,r.useContext)(G),t),s=t&&t.provider,o=(0,r.useState)((function(){return s?V(s(n.cache||M),t):c}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),k((function(){return o?o[2]:c}),[]),(0,r.createElement)(G.Provider,p(e,{value:n}))}),"default",{value:j}),Z=(a=function(e,t,n){var a=n.cache,i=n.compare,u=n.fallbackData,b=n.suspense,E=n.revalidateOnMount,y=n.refreshInterval,v=n.refreshWhenHidden,h=n.refreshWhenOffline,S=x.get(a),g=S[0],w=S[1],_=S[2],A=S[3],O=D(e),R=O[0],I=O[1],P=O[2],N=(0,r.useRef)(!1),U=(0,r.useRef)(!1),V=(0,r.useRef)(R),B=(0,r.useRef)(t),M=(0,r.useRef)(n),z=function(){return M.current},j=function(){return z().isVisible()&&z().isOnline()},q=function(e){return a.set(P,p(a.get(P),e))},G=a.get(R),H=l(u)?n.fallback[R]:u,Z=l(G)?H:G,W=a.get(P)||{},K=W.error,Y=!N.current,X=function(){return Y&&!l(E)?E:!z().isPaused()&&(b?!l(Z)&&n.revalidateIfStale:l(Z)||n.revalidateIfStale)},Q=!(!R||!t)&&(!!W.isValidating||Y&&X()),ee=function(e,t){var n=(0,r.useState)({})[1],s=(0,r.useRef)(e),o=(0,r.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,r.useCallback)((function(e){var r=!1,a=s.current;for(var i in e){var c=i;a[c]!==e[c]&&(a[c]=e[c],o.current[c]&&(r=!0))}r&&!t.current&&n({})}),[]);return k((function(){s.current=e})),[s,o.current,a]}({data:Z,error:K,isValidating:Q},U),te=ee[0],ne=ee[1],re=ee[2],se=(0,r.useCallback)((function(e){return s(void 0,void 0,void 0,(function(){var t,r,s,u,p,f,m,b,E,y,v,h,S;return o(this,(function(o){switch(o.label){case 0:if(t=B.current,!R||!t||U.current||z().isPaused())return[2,!1];u=!0,p=e||{},f=!A[R]||!p.dedupe,m=function(){return!U.current&&R===V.current&&N.current},b=function(){var e=A[R];e&&e[1]===s&&delete A[R]},E={isValidating:!1},y=function(){q({isValidating:!1}),m()&&re(E)},q({isValidating:!0}),re({isValidating:!0}),o.label=1;case 1:return o.trys.push([1,3,,4]),f&&($(a,R,te.current.data,te.current.error,!0),n.loadingTimeout&&!a.get(R)&&setTimeout((function(){u&&m()&&z().onLoadingSlow(R,n)}),n.loadingTimeout),A[R]=[t.apply(void 0,I),L()]),S=A[R],r=S[0],s=S[1],[4,r];case 2:return r=o.sent(),f&&setTimeout(b,n.dedupingInterval),A[R]&&A[R][1]===s?(q({error:c}),E.error=c,v=_[R],!l(v)&&(s<=v[0]||s<=v[1]||0===v[1])?(y(),f&&m()&&z().onDiscarded(R),[2,!1]):(i(te.current.data,r)?E.data=te.current.data:E.data=r,i(a.get(R),r)||a.set(R,r),f&&m()&&z().onSuccess(r,R,n),[3,4])):(f&&m()&&z().onDiscarded(R),[2,!1]);case 3:return h=o.sent(),b(),z().isPaused()||(q({error:h}),E.error=h,f&&m()&&(z().onError(h,R,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||d(n.shouldRetryOnError)&&n.shouldRetryOnError(h))&&j()&&z().onErrorRetry(h,R,n,se,{retryCount:(p.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return u=!1,y(),m()&&f&&$(a,R,E.data,E.error,!1),[2,!0]}}))}))}),[R]),oe=(0,r.useCallback)(C.bind(c,a,(function(){return V.current})),[]);if(k((function(){B.current=t,M.current=n})),k((function(){if(R){var e=R!==V.current,t=se.bind(c,F),n=0,r=J(R,w,(function(e,t,n){re(p({error:t,isValidating:n},i(te.current.data,e)?c:{data:e}))})),s=J(R,g,(function(e){if(0==e){var r=Date.now();z().revalidateOnFocus&&r>n&&j()&&(n=r+z().focusThrottleInterval,t())}else if(1==e)z().revalidateOnReconnect&&j()&&t();else if(2==e)return se()}));return U.current=!1,V.current=R,N.current=!0,e&&re({data:Z,error:K,isValidating:Q}),X()&&(l(Z)||T?t():(o=t,m()&&typeof window.requestAnimationFrame!=f?window.requestAnimationFrame(o):setTimeout(o,1))),function(){U.current=!0,r(),s()}}var o}),[R,se]),k((function(){var e;function t(){var t=d(y)?y(Z):y;t&&-1!==e&&(e=setTimeout(n,t))}function n(){te.current.error||!v&&!z().isVisible()||!h&&!z().isOnline()?t():se(F).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[y,v,h,se]),(0,r.useDebugValue)(Z),b&&l(Z)&&R)throw B.current=t,M.current=n,U.current=!1,l(K)?se(F):K;return{mutate:oe,get data(){return ne.data=!0,Z},get error(){return ne.error=!0,K},get isValidating(){return ne.isValidating=!0,Q}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=p(j,(0,r.useContext)(G)),s=function(e){return d(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]}(e),o=s[0],i=s[1],c=s[2],u=q(n,c),l=a,f=u.use;if(f)for(var m=f.length;m-- >0;)l=f[m](l);return l(o,i||u.fetcher,u)})}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,s),o.exports}s.m=n,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"admin/settings/"+({45:"tab-content-analysis",223:"tab-indexing-history",240:"tab-google-news",265:"tab-social",460:"vendor-fuse",600:"tab-schemas-manual",608:"tab-title-description",702:"tab-schemas-automatic",720:"tab-video-sitemap",728:"tab-inspect-url",747:"tab-redirection",759:"tab-advanced",968:"tab-internal-linking"}[e]||e)+"."+{45:"c22dcdd72bf7b58af8fd",186:"1818c087ad419ec6e196",223:"da10c09eec2d6472d5ae",240:"da4e17036284b18149e2",265:"3e8539501886262877dc",460:"3e9c2f81420fd48280d4",600:"d10dc4472017985dc03f",608:"58eda89e74312618d0c3",702:"4a223e3dde922433d878",720:"208fb1990b2b2b40c5da",728:"de510472cc67a6da5145",747:"6765cbc13083aefce0be",759:"554da57d90be722f971f",968:"086f8e6c734e14b4244c"}[e]+".js",s.miniCssF=e=>{},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="wp-seopress:",s.l=(n,r,o,a)=>{if(e[n])e[n].push(r);else{var i,c;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+o){i=d;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",t+o),i.src=n),e[n]=[r];var p=(t,r)=>{i.onerror=i.onload=null,clearTimeout(f);var s=e[n];if(delete e[n],i.parentNode&&i.parentNode.removeChild(i),s&&s.forEach((e=>e(r))),t)return t(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.p="/public/",(()=>{var e={514:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,s)=>r=e[t]=[n,s]));n.push(r[2]=o);var a=s.p+s.u(t),i=new Error;s.l(a,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,r[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,a=n[0],i=n[1],c=n[2],u=0;if(a.some((t=>0!==e[t]))){for(r in i)s.o(i,r)&&(s.m[r]=i[r]);c&&c(s)}for(t&&t(n);u<a.length;u++)o=a[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunkwp_seopress=self.webpackChunkwp_seopress||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{var e=s(9196),t=s.n(e),n=s(745),r=s(8100),o=s(538),a=s(2508);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}const c=({className:e="",children:n,...r})=>t().createElement("div",i({className:`sp-beacon-grab ${e}`.trim()},r),n),u=({className:e="",isDragging:n,x:r,y:s,style:o,children:a,...c})=>{const u={};null!=r&&(u.left=`${r}%`),null!=s&&(u.top=`${s}%`);const l=["sp-beacon",n?"is-dragging":"",e].filter(Boolean).join(" ");return t().createElement("div",i({className:l,style:{...u,...o}},c),a)};var l=s(2727),d=s(6545),p=s(978);function f(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}const m=(e,t)=>Number(100*t/e).toFixed(2),b=()=>{const{actions:n}=(0,e.useContext)(l.$K),[r,s]=(0,p.Z)("seopress_beacon_position",{x:2,y:90}),[o,a]=(0,e.useState)({isDragging:!1}),i=e=>{e.preventDefault(),o.isDragging||n.setOpenBar((e=>!e))},{height:b,width:E}=function(){const[t,n]=(0,e.useState)(f());return(0,e.useEffect)((()=>{function e(){n(f())}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),t}(),y=E-80,v=b-80;let h={x:r.x,y:r.y};const S=(0,e.useCallback)((e=>{const t=e||window.event,{clientX:n,clientY:r}=t;if(o.isDragging){const e=document.querySelector("#seopress-beacon-universal-metabox");n<=y&&n>=20&&(e.style.left=`${m(E,n)}%`,h={...h,x:n}),r<=v&&r>=70&&(e.style.top=`${m(b,r)}%`,h={...h,y:r})}}),[o.isDragging]),g=(0,e.useCallback)((()=>{o.isDragging&&(a((e=>({...e,isDragging:!1}))),s({x:m(E,h.x),y:m(b,h.y)}))}),[o.isDragging]),w=(0,e.useCallback)((()=>{a((e=>({...e,isDragging:!0})))}),[]);return(0,e.useEffect)((()=>(window.addEventListener("mousemove",S),window.addEventListener("mouseup",g),()=>(window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",g),!1))),[S,g]),t().createElement(t().Fragment,null,t().createElement("div",{style:{display:o.isDragging?"block":"none",position:"fixed",width:"100%",height:"100%",top:0,left:0,backgroundColor:"rgba(255,255,255,0.001)",zIndex:1e5}}),t().createElement(u,{id:"seopress-beacon-universal-metabox",onKeyUp:e=>{13===e.keyCode&&i(e)},isDragging:o.isDragging,x:r.x,y:r.y,role:"button",tabIndex:"0"},t().createElement("div",{className:"seopress-beacon-el",onClick:o.isDragging?null:i},t().createElement("img",{src:(0,d.U2)(SEOPRESS_DATA,"BEACON_SVG",("/img/beacon.svg",`${SEOPRESS_DATA.SEOPRESS_URL_ASSETS}/img/beacon.svg`)),alt:""})),t().createElement(c,{className:"dashicons dashicons-move",onMouseDown:w})))};var E=s(4221);const y=({children:e,status:n="success"})=>{const r="error"===n?"dashicons-warning":"dashicons-yes";return t().createElement("div",{className:"sp-snackbar"},t().createElement("div",{className:`sp-components-snackbar sp-components-snackbar--${n}`},t().createElement("div",{className:"sp-components-snackbar__content"},t().createElement("span",{className:`dashicons ${r}`}),e)))},v=()=>{const{values:n}=(0,e.useContext)(E.u);return n.show?t().createElement(y,{status:n.status},n.message):null};var h=s(2497),S=s(2196),g=s(2441),w=s(328);var _=s(5609);const A=({children:e})=>{const n=(0,l.Jo)(),[r,s]=(0,p.Z)("seopress_height_module_metabox",560);return n?t().createElement("div",{className:"sp-seo-metabox sp-seo-metabox--embedded"},e):t().createElement(_.ResizableBox,{defaultSize:{width:"70%",height:r},onResizeStop:(e,t,n,o)=>{s(r+o.height)},enable:{top:!0,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},handleClasses:{top:"resizable"},handleStyles:{top:{top:"-5px",left:"0",width:"100%",height:"10px",cursor:"row-resize"}},showHandle:!1,style:{position:"fixed"},className:"sp-seo-metabox"},e)};var O=s(5736);function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R.apply(this,arguments)}const T=({className:e="",children:n,...r})=>t().createElement("div",R({className:`sp-seobar-head ${e}`.trim()},r),n);function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(this,arguments)}const I=({className:e="",children:n,...r})=>t().createElement("h1",k({className:`sp-seobar-title ${e}`.trim()},r),n),P=({children:e,...n})=>t().createElement(I,n,e),D=t().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},t().createElement("path",{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),x=()=>{const{actions:n}=(0,e.useContext)(l.$K),r=(0,l.Jo)();return t().createElement(T,null,t().createElement(P,{style:{flex:1}},(0,S.i)({key:"seo_bar.title"})),!r&&t().createElement(_.Button,{variant:"tertiary",icon:D,label:(0,O.__)("Close","wp-seopress"),showTooltip:!0,onClick:()=>n.setOpenBar(!1)}))};var $=s(6745),N=s(6232),L=s(9296),C=s(5201),U=s(1919),V=s(2693),B=s(6743),M=s(9850),z=s(8502),j=s(4814),q=s(7371),G=s(8223),J=s(6462);const F={[`${$.qN}|${$.LG}`]:({postId:e})=>[(0,a.I)({postId:e}),(0,J.E)()],[`${$.qN}|${$.k1}`]:({postId:e})=>[(0,j.h)({postId:e})],[`${$.qN}|${$.UO}`]:({postId:e})=>[(0,U.W)({postId:e})],[`${$.qN}|${$.zd}`]:({postId:e})=>[(0,V.m)({postId:e})],[`${$.qN}|${$.YO}`]:({postId:e})=>[(0,C.N)({postId:e})],[`${$.qN}|${$.hr}`]:({postId:e})=>[(0,G.s)({postId:e})],[`${$.Hv}|${$.mD}`]:({postId:e})=>[(0,q.o)({postId:e}),(0,U.W)({postId:e}),(0,a.I)({postId:e})],[`${$.Hv}|${$.SE}`]:({postId:e})=>[(0,z.D)({postId:e})],[`${$.Hv}|${$.JU}`]:({postId:e})=>[(0,L.Q)({postId:e})],[`${$.Y6}|${$.mG}`]:({postId:e})=>[(0,M.b)({postId:e})],[`${$.Y6}|${$.zn}`]:({postId:e})=>[(0,B.a)({postId:e})]};var H=s(8245),Z=s(4124);function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(this,arguments)}const K=(0,e.lazy)((()=>Promise.all([s.e(460),s.e(608)]).then(s.bind(s,2531)))),Y=(0,e.lazy)((()=>s.e(265).then(s.bind(s,5953)))),X=(0,e.lazy)((()=>s.e(759).then(s.bind(s,6881)))),Q=(0,e.lazy)((()=>s.e(45).then(s.bind(s,8225)))),ee=(0,e.lazy)((()=>s.e(747).then(s.bind(s,7575)))),te=(0,e.lazy)((()=>s.e(240).then(s.bind(s,3804)))),ne=(0,e.lazy)((()=>s.e(720).then(s.bind(s,4353)))),re=(0,e.lazy)((()=>s.e(728).then(s.bind(s,119)))),se=(0,e.lazy)((()=>s.e(223).then(s.bind(s,2711)))),oe=(0,e.lazy)((()=>s.e(968).then(s.bind(s,7793)))),ae=(0,e.lazy)((()=>Promise.all([s.e(186),s.e(600)]).then(s.bind(s,1428)))),ie=(0,e.lazy)((()=>Promise.all([s.e(186),s.e(702)]).then(s.bind(s,2378)))),ce=({className:e="",children:n,...r})=>t().createElement("div",W({className:`sp-main ${e}`.trim()},r),n),ue=()=>t().createElement("p",{className:"anim-loading-layout"},t().createElement("span",{className:"dashicons dashicons-cloud"})," ",(0,S.i)({key:"generic.loading_data"})),le=(e,t)=>{if(e===$.qN)switch(t){case $.k1:case $.UO:case $.zd:case $.YO:case $.hr:return`${e}|${t}`;default:return`${e}|${$.LG}`}if(e===$.Hv)switch(t){case $.VB:case $.SE:case $.JU:return`${e}|${t}`;default:return`${e}|${$.mD}`}return e===$.Y6?t===$.zn?`${e}|${$.zn}`:`${e}|${$.mG}`:null},de=le($.Hv,$.mD),pe=({mainBarRef:n})=>{const r=(0,l.xD)(),s=(0,l.LD)(),o=(0,d.sE)((0,$.C8)(),{key:r}),a=!o||!o.canView()||(0,$.o)(o),i=le(r,s),c=(0,e.useRef)(new Set),u=(0,e.useRef)({});i&&(c.current.add(i),(()=>{const e=(0,d.sE)((0,$.C8)(),{key:$.Hv});return!!e&&e.canView()&&!(0,$.o)(e)})()&&c.current.add(de));const p=Array.from(c.current),f=(0,e.useRef)(new Set);if((0,e.useEffect)((()=>{if(!i||a)return;const e=p.filter((e=>!f.current.has(e)));e.length&&(e.forEach((e=>f.current.add(e))),(0,N.m6)(e.flatMap((e=>((e,t)=>{const n=F[e];return n&&t?n({postId:t}).filter(Boolean):[]})(e,(0,h.y)())))))}),[i,a]),(0,e.useLayoutEffect)((()=>{if(!n||!i)return;const e=u.current[i];e&&(n.current=e)})),a){const e=(0,$.C8)().some((e=>e.canView()&&!(0,$.o)(e))),n=(0,d.U2)(SEOPRESS_DATA,"ADMIN_URL_SECURITY",""),r=""!==n;return t().createElement(ce,null,t().createElement("div",{className:"seopress-metabox-no-access"},t().createElement("span",{className:"dashicons dashicons-lock","aria-hidden":"true"}),t().createElement("h3",null,(0,S.i)({key:e?"layouts.main.no_access_section_title":"layouts.main.no_access_title"})),!e&&t().createElement("p",null,(0,S.i)({key:"layouts.main.no_access_description"})),r?t().createElement(t().Fragment,null,t().createElement("p",null,(0,S.i)({key:e?"layouts.main.no_access_section_where":"layouts.main.no_access_where"})),t().createElement("a",{className:"button button-secondary",href:n},(0,S.i)({key:"layouts.main.no_access_cta"}))):t().createElement("p",{className:"seopress-metabox-no-access__hint"},(0,S.i)({key:"layouts.main.no_access_ask_admin"}))))}return i?t().createElement(ce,null,p.map((n=>{const r=n===i;return t().createElement("div",{key:n,hidden:!r,tabIndex:-1,ref:e=>{e&&(u.current[n]=e)}},t().createElement(Z.Z,{fallback:r?t().createElement("p",{className:"description-alt"},(0,S.i)({key:"generic.tab_load_error"})):null},t().createElement(e.Suspense,{fallback:r?t().createElement(ue,null):null},(e=>{const[n,r]=e.split("|");if(n===$.qN)switch(r){case $.k1:return t().createElement(Y,null);case $.UO:return t().createElement(X,null);case $.zd:return t().createElement(ee,null);case $.YO:return t().createElement(te,null);case $.hr:return t().createElement(ne,null);case $.LG:default:return t().createElement(H.G5,null,t().createElement(K,null))}if(n===$.Hv)switch(r){case $.VB:return t().createElement(re,null);case $.SE:return t().createElement(oe,null);case $.JU:return t().createElement(se,null);case $.mD:default:return t().createElement(Q,null)}if(n===$.Y6)switch(r){case $.zn:return t().createElement(ie,null);case $.mG:default:return t().createElement(ae,null)}return null})(n))))}))):t().createElement(ce,null,t().createElement(ue,null))},fe=t().createElement("svg",{className:"sp-tabs__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},t().createElement("path",{d:"M10.6 6L9.4 7L14 12L9.4 17L10.6 18L16 12L10.6 6Z"})),me=({mainBarRef:n})=>{const{actions:r,values:s}=(0,e.useContext)(l.$K),o=(0,l.uc)(),a=e=>{" "===e.key&&n.current&&n.current.focus()},i="sp-tabs"+("1"==o?" is-gutenberg":"");return t().createElement("div",{className:i},(0,$.C8)().map((e=>{const n=(0,d.hX)((0,$.Ju)(),{parent:e.key});return!e.canView()||(0,$.o)(e)?null:t().createElement(t().Fragment,{key:e.key},t().createElement("button",{type:"button",className:"sp-tabs__tab"+(e.key===s.tab?" is-active":""),onClick:()=>r.setTab(e.key),onFocus:()=>r.setTab(e.key),onKeyUp:a},e.title),n&&n.map((e=>{if(!e.canView())return null;const n=e.key===s.subTab;return t().createElement("button",{key:`sub_${e.key}`,type:"button","aria-current":n?"true":void 0,className:"sp-tabs__subtab"+(n?" is-active":""),onClick:()=>r.setSubTab(e.key),onFocus:()=>r.setSubTab(e.key),onKeyUp:a},t().createElement("span",{className:"sp-tabs__label"},e.title),e.key===$.zd&&s.redirectionEnabled&&t().createElement("span",{className:"sp-tabs__badge","aria-hidden":"true"}),fe)})))})))},be=()=>{const{data:t}=(({postId:t})=>{const n=(0,r.ZP)((({postId:e})=>`${SEOPRESS_DATA.REST_URL}seopress/v1/posts/${e}/page-preview`)({postId:t}),(async()=>{const{html:e,status:n}=await(0,g.S4)();return(await(0,w.Wz)(`${SEOPRESS_DATA.REST_URL}seopress/v1/posts/${t}/page-preview/analyze`,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":(0,d.U2)(SEOPRESS_DATA,"NONCE",null)},body:JSON.stringify({html:e||"",status:n||0})})).json()})),{mutate:s}=n;return(0,e.useEffect)((()=>(0,g.N8)((()=>s()))),[s]),n})({postId:(0,h.y)()}),{actions:n}=(0,e.useContext)(l.$K);return(0,e.useEffect)((()=>{n.setDataPagePreview(t)}),[t]),null},Ee=()=>{const n=(0,e.useRef)(),r=(0,l.Jo)(),s=r?"auto":"100%",o=r?480:void 0;return t().createElement(A,null,!r&&t().createElement(x,null),t().createElement("div",{className:"flex",style:{height:s,minHeight:o}},t().createElement(me,{mainBarRef:n}),t().createElement(be,null),t().createElement(e.Suspense,{fallback:t().createElement("p",{className:"anim-loading-layout",style:{paddingLeft:20}},t().createElement("span",{className:"dashicons dashicons-cloud"})," ",(0,S.i)({key:"generic.loading_data"}))},t().createElement(pe,{mainBarRef:n})),t().createElement(v,null)))},ye=()=>{const n=(0,l.M9)(),r=(0,l.cn)(),s=(0,l.Jo)(),{actions:o}=(0,e.useContext)(l.$K);if((0,e.useEffect)((()=>{if(s)return;const e=()=>o.setOpenBar((e=>!e));return window.addEventListener("seopress:toggle-metabox",e),()=>{window.removeEventListener("seopress:toggle-metabox",e)}}),[o,s]),(0,e.useEffect)((()=>{s||window.dispatchEvent(new CustomEvent("seopress:metabox-state",{detail:{open:n}}))}),[n,s]),s)return t().createElement(t().Fragment,null,t().createElement(Ee,null),t().createElement(v,null));const a=!r;return t().createElement(t().Fragment,null,!n&&a&&t().createElement(b,null),n&&t().createElement(t().Fragment,null,t().createElement(Ee,null),t().createElement(v,null)))},ve="--seopress-avia-sidebar-right";"undefined"!=typeof SEOPRESS_DATA&&SEOPRESS_DATA.SEOPRESS_URL_PUBLIC&&(s.p=SEOPRESS_DATA.SEOPRESS_URL_PUBLIC+"/");const he="seopress-js-module-seo-metabox";function Se(){const e={},t=SEOPRESS_DATA&&SEOPRESS_DATA.POST_ID,n=SEOPRESS_DATA&&SEOPRESS_DATA.INITIAL_DATA;return t&&n?(n.titleDescription&&(e[(0,a.I)({postId:t})]=n.titleDescription),e):e}function ge(e,{isEmbedded:s}){if(!e)return;const a=(0,n.s)(e),i=t().createElement(r.J$,{value:{fetcher:(0,o._)(),revalidateOnFocus:!1,revalidateOnReconnect:!1,fallback:Se()}},t().createElement(l.RC,{data:{isGutenberg:SEOPRESS_DATA.IS_GUTENBERG,isAdmin:SEOPRESS_DATA.IS_ADMIN,isEmbedded:s}},t().createElement(E.l,null,t().createElement(ye,null))));a.render(i)}document.addEventListener("DOMContentLoaded",(async()=>{const e=document.querySelector("#seopress-js-module-seo-metabox-embed");e?ge(e,{isEmbedded:!0}):(document.body.insertAdjacentHTML("beforeend",`<div id="${he}" class="wp-exclude-emoji"></div>`),ge(document.querySelector(`#${he}`),{isEmbedded:!1}),function(e=document,t=window){if(!e.body||!e.body.classList.contains("enfold-active")||!t.ResizeObserver)return()=>{};const n=e.documentElement;let r=null,s=null,o=null;const a=()=>{const e=r?Math.round(r.getBoundingClientRect().right):0;e>0?n.style.setProperty(ve,`${e}px`):n.style.removeProperty(ve)},i=()=>{if(r=e.querySelector(".avia-fixed-controls.avia-alb-panel-side"),!r)return!1;s=new t.ResizeObserver(a),s.observe(r);const n=e.getElementById("adminmenuwrap");return n&&s.observe(n),a(),!0};!i()&&t.MutationObserver&&(o=new t.MutationObserver((()=>{i()&&(o.disconnect(),o=null)})),o.observe(e.body,{childList:!0,subtree:!0}))}())}))})()})();
Exec