Sid Gifari File Manager
🏠 Root
/
home
/
caldereriajp
/
public_html
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
dist
/
Lite
/
assets
/
js
/
Editing: links.96235554.js
import{a6 as lr,z as ur,S as es,q as $n,a7 as cr,W as Kt,a8 as ss,a9 as In,A as _n,l as Pn,aa as An,ab as Un,ac as Mn,m as Rn,ad as Ln,k as Fn}from"./vue.runtime.esm-bundler.a49acf4f.js";import{l as Vn,_ as Yt,j as Mt}from"./default-i18n.cc9dbff0.js";import{H as zn,o as qn,d as Hn,t as jn,b as Zn,c as Wn,r as Gn,U as ms,j as Jn,I as Bn,y as Kn,J as Yn,B as Qn,C as dr,a as gs,f as Xn,g as ti,K as ei,F as si,h as ys,i as hr,L as ri,N as ni,z as ii,O as oi}from"./isArrayLikeObject.3ade28da.js";var ai=!1;/*! * pinia v2.1.4 * (c) 2023 Eduardo San Martin Morote * @license MIT */let fr;const Oe=e=>fr=e,pr=Symbol();function ze(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Gt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Gt||(Gt={}));function li(){const e=lr(!0),t=e.run(()=>ur({}));let s=[],r=[];const n=es({install(i){Oe(n),n._a=i,i.provide(pr,n),i.config.globalProperties.$pinia=n,r.forEach(o=>s.push(o)),r=[]},use(i){return!this._a&&!ai?r.push(i):s.push(i),this},_p:s,_a:null,_e:e,_s:new Map,state:t});return n}const mr=()=>{};function ws(e,t,s,r=mr){e.push(t);const n=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!s&&Un()&&Mn(n),n}function Ct(e,...t){e.slice().forEach(s=>{s(...t)})}const ui=e=>e();function qe(e,t){e instanceof Map&&t instanceof Map&&t.forEach((s,r)=>e.set(r,s)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const s in t){if(!t.hasOwnProperty(s))continue;const r=t[s],n=e[s];ze(n)&&ze(r)&&e.hasOwnProperty(s)&&!Kt(r)&&!ss(r)?e[s]=qe(n,r):e[s]=r}return e}const ci=Symbol();function di(e){return!ze(e)||!e.hasOwnProperty(ci)}const{assign:mt}=Object;function hi(e){return!!(Kt(e)&&e.effect)}function fi(e,t,s,r){const{state:n,actions:i,getters:o}=t,a=s.state.value[e];let l;function u(){a||(s.state.value[e]=n?n():{});const g=Ln(s.state.value[e]);return mt(g,i,Object.keys(o||{}).reduce((k,T)=>(k[T]=es(Fn(()=>{Oe(s);const w=s._s.get(e);return o[T].call(w,w)})),k),{}))}return l=gr(e,u,t,s,r,!0),l}function gr(e,t,s={},r,n,i){let o;const a=mt({actions:{}},s),l={deep:!0};let u,g,k=[],T=[],w;const D=r.state.value[e];!i&&!D&&(r.state.value[e]={}),ur({});let H;function L(x){let b;u=g=!1,typeof x=="function"?(x(r.state.value[e]),b={type:Gt.patchFunction,storeId:e,events:w}):(qe(r.state.value[e],x),b={type:Gt.patchObject,payload:x,storeId:e,events:w});const Z=H=Symbol();Rn().then(()=>{H===Z&&(u=!0)}),g=!0,Ct(k,b,r.state.value[e])}const N=i?function(){const{state:b}=s,Z=b?b():{};this.$patch(B=>{mt(B,Z)})}:mr;function dt(){o.stop(),k=[],T=[],r._s.delete(e)}function Y(x,b){return function(){Oe(r);const Z=Array.from(arguments),B=[],st=[];function c(y){B.push(y)}function h(y){st.push(y)}Ct(T,{args:Z,name:x,store:j,after:c,onError:h});let f;try{f=b.apply(this&&this.$id===e?this:j,Z)}catch(y){throw Ct(st,y),y}return f instanceof Promise?f.then(y=>(Ct(B,y),y)).catch(y=>(Ct(st,y),Promise.reject(y))):(Ct(B,f),f)}}const at={_p:r,$id:e,$onAction:ws.bind(null,T),$patch:L,$reset:N,$subscribe(x,b={}){const Z=ws(k,x,b.detached,()=>B()),B=o.run(()=>_n(()=>r.state.value[e],st=>{(b.flush==="sync"?g:u)&&x({storeId:e,type:Gt.direct,events:w},st)},mt({},l,b)));return Z},$dispose:dt},j=Pn(at);r._s.set(e,j);const St=r._a&&r._a.runWithContext||ui,G=r._e.run(()=>(o=lr(),St(()=>o.run(t))));for(const x in G){const b=G[x];if(Kt(b)&&!hi(b)||ss(b))i||(D&&di(b)&&(Kt(b)?b.value=D[x]:qe(b,D[x])),r.state.value[e][x]=b);else if(typeof b=="function"){const Z=Y(x,b);G[x]=Z,a.actions[x]=b}}return mt(j,G),mt(cr(j),G),Object.defineProperty(j,"$state",{get:()=>r.state.value[e],set:x=>{L(b=>{mt(b,x)})}}),r._p.forEach(x=>{mt(j,o.run(()=>x({store:j,app:r._a,pinia:r,options:a})))}),D&&i&&s.hydrate&&s.hydrate(j.$state,D),u=!0,g=!0,j}function U(e,t,s){let r,n;const i=typeof t=="function";typeof e=="string"?(r=e,n=i?s:t):(n=e,r=e.id);function o(a,l){const u=An();return a=a||(u?$n(pr,null):null),a&&Oe(a),a=fr,a._s.has(r)||(i?gr(r,t,n,a):fi(r,n,a)),a._s.get(r)}return o.$id=r,o}function Sl(e){{e=cr(e);const t={};for(const s in e){const r=e[s];(Kt(r)||ss(r))&&(t[s]=In(e,s))}return t}}const He=U("AddonsStore",{state:()=>({addons:[]}),actions:{updateAddon(e){const t=this.addons.findIndex(s=>s.sku===e.sku);t!==-1&&(this.addons[t]=e)}}});var je={exports:{}},yr={exports:{}};(function(e){e.exports=t;function t(r){if(r)return s(r)}function s(r){for(var n in t.prototype)r[n]=t.prototype[n];return r}t.prototype.on=t.prototype.addEventListener=function(r,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(n),this},t.prototype.once=function(r,n){function i(){this.off(r,i),n.apply(this,arguments)}return i.fn=n,this.on(r,i),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(r,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+r];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var o,a=0;a<i.length;a++)if(o=i[a],o===n||o.fn===n){i.splice(a,1);break}return i.length===0&&delete this._callbacks["$"+r],this},t.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),i=this._callbacks["$"+r],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(i){i=i.slice(0);for(var o=0,a=i.length;o<a;++o)i[o].apply(this,n)}return this},t.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]},t.prototype.hasListeners=function(r){return!!this.listeners(r).length}})(yr);var pi=yr.exports,mi=Qt;Qt.default=Qt;Qt.stable=br;Qt.stableStringify=br;var fe="[...]",wr="[Circular]",vt=[],Ot=[];function Sr(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Qt(e,t,s,r){typeof r>"u"&&(r=Sr()),Ze(e,"",0,[],void 0,0,r);var n;try{Ot.length===0?n=JSON.stringify(e,t,s):n=JSON.stringify(e,kr(t),s)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;vt.length!==0;){var i=vt.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return n}function _t(e,t,s,r){var n=Object.getOwnPropertyDescriptor(r,s);n.get!==void 0?n.configurable?(Object.defineProperty(r,s,{value:e}),vt.push([r,s,t,n])):Ot.push([t,s,e]):(r[s]=e,vt.push([r,s,t]))}function Ze(e,t,s,r,n,i,o){i+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<r.length;a++)if(r[a]===e){_t(wr,e,t,n);return}if(typeof o.depthLimit<"u"&&i>o.depthLimit){_t(fe,e,t,n);return}if(typeof o.edgesLimit<"u"&&s+1>o.edgesLimit){_t(fe,e,t,n);return}if(r.push(e),Array.isArray(e))for(a=0;a<e.length;a++)Ze(e[a],a,a,r,e,i,o);else{var l=Object.keys(e);for(a=0;a<l.length;a++){var u=l[a];Ze(e[u],u,a,r,e,i,o)}}r.pop()}}function gi(e,t){return e<t?-1:e>t?1:0}function br(e,t,s,r){typeof r>"u"&&(r=Sr());var n=We(e,"",0,[],void 0,0,r)||e,i;try{Ot.length===0?i=JSON.stringify(n,t,s):i=JSON.stringify(n,kr(t),s)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;vt.length!==0;){var o=vt.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return i}function We(e,t,s,r,n,i,o){i+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<r.length;a++)if(r[a]===e){_t(wr,e,t,n);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof o.depthLimit<"u"&&i>o.depthLimit){_t(fe,e,t,n);return}if(typeof o.edgesLimit<"u"&&s+1>o.edgesLimit){_t(fe,e,t,n);return}if(r.push(e),Array.isArray(e))for(a=0;a<e.length;a++)We(e[a],a,a,r,e,i,o);else{var l={},u=Object.keys(e).sort(gi);for(a=0;a<u.length;a++){var g=u[a];We(e[g],g,a,r,e,i,o),l[g]=e[g]}if(typeof n<"u")vt.push([n,t,e]),n[t]=l;else return l}r.pop()}}function kr(e){return e=typeof e<"u"?e:function(t,s){return s},function(t,s){if(Ot.length>0)for(var r=0;r<Ot.length;r++){var n=Ot[r];if(n[1]===t&&n[0]===s){s=n[2],Ot.splice(r,1);break}}return e.call(this,t,s)}}var Te={};(function(e){function t(n,i){var o=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!o){if(Array.isArray(n)||(o=s(n))||i&&n&&typeof n.length=="number"){o&&(n=o);var a=0,l=function(){};return{s:l,n:function(){return a>=n.length?{done:!0}:{done:!1,value:n[a++]}},e:function(w){throw w},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,g=!1,k;return{s:function(){o=o.call(n)},n:function(){var w=o.next();return u=w.done,w},e:function(w){g=!0,k=w},f:function(){try{!u&&o.return!=null&&o.return()}finally{if(g)throw k}}}}function s(n,i){if(n){if(typeof n=="string")return r(n,i);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return r(n,i)}}function r(n,i){(i==null||i>n.length)&&(i=n.length);for(var o=0,a=new Array(i);o<i;o++)a[o]=n[o];return a}e.type=n=>n.split(/ *; */).shift(),e.params=n=>{const i={};var o=t(n.split(/ *; */)),a;try{for(o.s();!(a=o.n()).done;){const u=a.value.split(/ *= */),g=u.shift(),k=u.shift();g&&k&&(i[g]=k)}}catch(l){o.e(l)}finally{o.f()}return i},e.parseLinks=n=>{const i={};var o=t(n.split(/ *, */)),a;try{for(o.s();!(a=o.n()).done;){const u=a.value.split(/ *; */),g=u[0].slice(1,-1),k=u[1].split(/ *= */)[1].slice(1,-1);i[k]=g}}catch(l){o.e(l)}finally{o.f()}return i},e.cleanHeader=(n,i)=>(delete n["content-type"],delete n["content-length"],delete n["transfer-encoding"],delete n.host,i&&(delete n.authorization,delete n.cookie),n),e.isObject=n=>n!==null&&typeof n=="object",e.hasOwn=Object.hasOwn||function(n,i){if(n==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(n),i)},e.mixin=(n,i)=>{for(const o in i)e.hasOwn(i,o)&&(n[o]=i[o])}})(Te);const $e=zn,Or=Te,pe=Or.isObject,Xt=Or.hasOwn;var yi=I;function I(){}I.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this};I.prototype.parse=function(e){return this._parser=e,this};I.prototype.responseType=function(e){return this._responseType=e,this};I.prototype.serialize=function(e){return this._serializer=e,this};I.prototype.timeout=function(e){if(!e||typeof e!="object")return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(const t in e)if(Xt(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this};I.prototype.retry=function(e,t){return(arguments.length===0||e===!0)&&(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};const wi=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),Si=new Set([408,413,429,500,502,503,504,521,522,524]);I.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{const s=this._retryCallback(e,t);if(s===!0)return!0;if(s===!1)return!1}catch(s){console.error(s)}return!!(t&&t.status&&Si.has(t.status)||e&&(e.code&&wi.has(e.code)||e.timeout&&e.code==="ECONNABORTED"||e.crossDomain))};I.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()};I.prototype.then=function(e,t){if(!this._fullfilledPromise){const s=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((r,n)=>{s.on("abort",()=>{if(this._maxRetries&&this._maxRetries>this._retries)return;if(this.timedout&&this.timedoutError){n(this.timedoutError);return}const i=new Error("Aborted");i.code="ABORTED",i.status=this.status,i.method=this.method,i.url=this.url,n(i)}),s.end((i,o)=>{i?n(i):r(o)})})}return this._fullfilledPromise.then(e,t)};I.prototype.catch=function(e){return this.then(void 0,e)};I.prototype.use=function(e){return e(this),this};I.prototype.ok=function(e){if(typeof e!="function")throw new Error("Callback required");return this._okCallback=e,this};I.prototype._isResponseOK=function(e){return e?this._okCallback?this._okCallback(e):e.status>=200&&e.status<300:!1};I.prototype.get=function(e){return this._header[e.toLowerCase()]};I.prototype.getHeader=I.prototype.get;I.prototype.set=function(e,t){if(pe(e)){for(const s in e)Xt(e,s)&&this.set(s,e[s]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this};I.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this};I.prototype.field=function(e,t,s){if(e==null)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(pe(e)){for(const r in e)Xt(e,r)&&this.field(r,e[r]);return this}if(Array.isArray(t)){for(const r in t)Xt(t,r)&&this.field(e,t[r]);return this}if(t==null)throw new Error(".field(name, val) val can not be empty");return typeof t=="boolean"&&(t=String(t)),s?this._getFormData().append(e,t,s):this._getFormData().append(e,t),this};I.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if($e.gte(process.version,"v13.0.0")&&$e.lt(process.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");$e.gte(process.version,"v14.0.0")&&(this.req.destroyed=!0),this.req.abort()}return this.clearTimeout(),this.emit("abort"),this};I.prototype._auth=function(e,t,s,r){switch(s.type){case"basic":this.set("Authorization",`Basic ${r(`${e}:${t}`)}`);break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization",`Bearer ${e}`);break}return this};I.prototype.withCredentials=function(e){return e===void 0&&(e=!0),this._withCredentials=e,this};I.prototype.redirects=function(e){return this._maxRedirects=e,this};I.prototype.maxResponseSize=function(e){if(typeof e!="number")throw new TypeError("Invalid argument");return this._maxResponseSize=e,this};I.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}};I.prototype.send=function(e){const t=pe(e);let s=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&pe(this._data))for(const r in e)Xt(e,r)&&(this._data[r]=e[r]);else typeof e=="string"?(s||this.type("form"),s=this._header["content-type"],s&&(s=s.toLowerCase().trim()),s==="application/x-www-form-urlencoded"?this._data=this._data?`${this._data}&${e}`:e:this._data=(this._data||"")+e):this._data=e;return!t||this._isHost(e)?this:(s||this.type("json"),this)};I.prototype.sortQuery=function(e){return this._sort=typeof e>"u"?!0:e,this};I.prototype._finalizeQueryString=function(){const e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){const t=this.url.indexOf("?");if(t>=0){const s=this.url.slice(t+1).split("&");typeof this._sort=="function"?s.sort(this._sort):s.sort(),this.url=this.url.slice(0,t)+"?"+s.join("&")}}};I.prototype._appendQueryString=()=>{console.warn("Unsupported")};I.prototype._timeoutError=function(e,t,s){if(this._aborted)return;const r=new Error(`${e+t}ms exceeded`);r.timeout=t,r.code="ECONNABORTED",r.errno=s,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)};I.prototype._setTimeouts=function(){const e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(()=>{e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(()=>{e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))};const Ie=Te;var bi=ve;function ve(){}ve.prototype.get=function(e){return this.header[e.toLowerCase()]};ve.prototype._setHeaderProperties=function(e){const t=e["content-type"]||"";this.type=Ie.type(t);const s=Ie.params(t);for(const r in s)Object.prototype.hasOwnProperty.call(s,r)&&(this[r]=s[r]);this.links={};try{e.link&&(this.links=Ie.parseLinks(e.link))}catch{}};ve.prototype._setStatusProperties=function(e){const t=Math.trunc(e/100);this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=t===1,this.ok=t===2,this.redirect=t===3,this.clientError=t===4,this.serverError=t===5,this.error=t===4||t===5?this.toError():!1,this.created=e===201,this.accepted=e===202,this.noContent=e===204,this.badRequest=e===400,this.unauthorized=e===401,this.notAcceptable=e===406,this.forbidden=e===403,this.notFound=e===404,this.unprocessableEntity=e===422};function ki(e,t){var s=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!s){if(Array.isArray(e)||(s=Oi(e))||t&&e&&typeof e.length=="number"){s&&(e=s);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){s=s.call(e)},n:function(){var u=s.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&s.return!=null&&s.return()}finally{if(o)throw a}}}}function Oi(e,t){if(e){if(typeof e=="string")return Ss(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);if(s==="Object"&&e.constructor&&(s=e.constructor.name),s==="Map"||s==="Set")return Array.from(e);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Ss(e,t)}}function Ss(e,t){(t==null||t>e.length)&&(t=e.length);for(var s=0,r=new Array(t);s<t;s++)r[s]=e[s];return r}function rs(){this._defaults=[]}for(var _e=0,bs=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];_e<bs.length;_e++){const e=bs[_e];rs.prototype[e]=function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return this._defaults.push({fn:e,args:s}),this}}rs.prototype._setDefaults=function(e){var t=ki(this._defaults),s;try{for(t.s();!(s=t.n()).done;){const r=s.value;e[r.fn](...r.args)}}catch(r){t.e(r)}finally{t.f()}};var Ti=rs;(function(e,t){function s(c,h){var f=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!f){if(Array.isArray(c)||(f=r(c))||h&&c&&typeof c.length=="number"){f&&(c=f);var y=0,O=function(){};return{s:O,n:function(){return y>=c.length?{done:!0}:{done:!1,value:c[y++]}},e:function(Dt){throw Dt},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var v=!0,Q=!1,xt;return{s:function(){f=f.call(c)},n:function(){var Dt=f.next();return v=Dt.done,Dt},e:function(Dt){Q=!0,xt=Dt},f:function(){try{!v&&f.return!=null&&f.return()}finally{if(Q)throw xt}}}}function r(c,h){if(c){if(typeof c=="string")return n(c,h);var f=Object.prototype.toString.call(c).slice(8,-1);if(f==="Object"&&c.constructor&&(f=c.constructor.name),f==="Map"||f==="Set")return Array.from(c);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return n(c,h)}}function n(c,h){(h==null||h>c.length)&&(h=c.length);for(var f=0,y=new Array(h);f<h;f++)y[f]=c[f];return y}let i;typeof window<"u"?i=window:typeof self>"u"?(console.warn("Using browser-only version of superagent in non-browser environment"),i=void 0):i=self;const o=pi,a=mi,l=qn,u=yi,g=Te,k=g.isObject,T=g.mixin,w=g.hasOwn,D=bi,H=Ti;function L(){}e.exports=function(c,h){return typeof h=="function"?new t.Request("GET",c).end(h):arguments.length===1?new t.Request("GET",c):new t.Request(c,h)},t=e.exports;const N=t;t.Request=b,N.getXHR=()=>{if(i.XMLHttpRequest)return new i.XMLHttpRequest;throw new Error("Browser-only version of superagent could not find XHR")};const dt="".trim?c=>c.trim():c=>c.replace(/(^\s*|\s*$)/g,"");function Y(c){if(!k(c))return c;const h=[];for(const f in c)w(c,f)&&at(h,f,c[f]);return h.join("&")}function at(c,h,f){if(f!==void 0){if(f===null){c.push(encodeURI(h));return}if(Array.isArray(f)){var y=s(f),O;try{for(y.s();!(O=y.n()).done;){const v=O.value;at(c,h,v)}}catch(v){y.e(v)}finally{y.f()}}else if(k(f))for(const v in f)w(f,v)&&at(c,`${h}[${v}]`,f[v]);else c.push(encodeURI(h)+"="+encodeURIComponent(f))}}N.serializeObject=Y;function j(c){const h={},f=c.split("&");let y,O;for(let v=0,Q=f.length;v<Q;++v)y=f[v],O=y.indexOf("="),O===-1?h[decodeURIComponent(y)]="":h[decodeURIComponent(y.slice(0,O))]=decodeURIComponent(y.slice(O+1));return h}N.parseString=j,N.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},N.serialize={"application/x-www-form-urlencoded":l.stringify,"application/json":a},N.parse={"application/x-www-form-urlencoded":j,"application/json":JSON.parse};function St(c){const h=c.split(/\r?\n/),f={};let y,O,v,Q;for(let xt=0,ht=h.length;xt<ht;++xt)O=h[xt],y=O.indexOf(":"),y!==-1&&(v=O.slice(0,y).toLowerCase(),Q=dt(O.slice(y+1)),f[v]=Q);return f}function G(c){return/[/+]json($|[^-\w])/i.test(c)}function x(c){this.req=c,this.xhr=this.req.xhr,this.text=this.req.method!=="HEAD"&&(this.xhr.responseType===""||this.xhr.responseType==="text")||typeof this.xhr.responseType>"u"?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;let h=this.xhr.status;h===1223&&(h=204),this._setStatusProperties(h),this.headers=St(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),this.text===null&&c._responseType?this.body=this.xhr.response:this.body=this.req.method==="HEAD"?null:this._parseBody(this.text?this.text:this.xhr.response)}T(x.prototype,D.prototype),x.prototype._parseBody=function(c){let h=N.parse[this.type];return this.req._parser?this.req._parser(this,c):(!h&&G(this.type)&&(h=N.parse["application/json"]),h&&c&&(c.length>0||c instanceof Object)?h(c):null)},x.prototype.toError=function(){const c=this.req,h=c.method,f=c.url,y=`cannot ${h} ${f} (${this.status})`,O=new Error(y);return O.status=this.status,O.method=h,O.url=f,O},N.Response=x;function b(c,h){const f=this;this._query=this._query||[],this.method=c,this.url=h,this.header={},this._header={},this.on("end",()=>{let y=null,O=null;try{O=new x(f)}catch(Q){return y=new Error("Parser is unable to parse the response"),y.parse=!0,y.original=Q,f.xhr?(y.rawResponse=typeof f.xhr.responseType>"u"?f.xhr.responseText:f.xhr.response,y.status=f.xhr.status?f.xhr.status:null,y.statusCode=y.status):(y.rawResponse=null,y.status=null),f.callback(y)}f.emit("response",O);let v;try{f._isResponseOK(O)||(v=new Error(O.statusText||O.text||"Unsuccessful HTTP response"))}catch(Q){v=Q}v?(v.original=y,v.response=O,v.status=v.status||O.status,f.callback(v,O)):f.callback(null,O)})}o(b.prototype),T(b.prototype,u.prototype),b.prototype.type=function(c){return this.set("Content-Type",N.types[c]||c),this},b.prototype.accept=function(c){return this.set("Accept",N.types[c]||c),this},b.prototype.auth=function(c,h,f){arguments.length===1&&(h=""),typeof h=="object"&&h!==null&&(f=h,h=""),f||(f={type:typeof btoa=="function"?"basic":"auto"});const y=f.encoder?f.encoder:O=>{if(typeof btoa=="function")return btoa(O);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(c,h,f,y)},b.prototype.query=function(c){return typeof c!="string"&&(c=Y(c)),c&&this._query.push(c),this},b.prototype.attach=function(c,h,f){if(h){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(c,h,f||h.name)}return this},b.prototype._getFormData=function(){return this._formData||(this._formData=new i.FormData),this._formData},b.prototype.callback=function(c,h){if(this._shouldRetry(c,h))return this._retry();const f=this._callback;this.clearTimeout(),c&&(this._maxRetries&&(c.retries=this._retries-1),this.emit("error",c)),f(c,h)},b.prototype.crossDomainError=function(){const c=new Error(`Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.`);c.crossDomain=!0,c.status=this.status,c.method=this.method,c.url=this.url,this.callback(c)},b.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},b.prototype.ca=b.prototype.agent,b.prototype.buffer=b.prototype.ca,b.prototype.write=()=>{throw new Error("Streaming is not supported in browser version of superagent")},b.prototype.pipe=b.prototype.write,b.prototype._isHost=function(c){return c&&typeof c=="object"&&!Array.isArray(c)&&Object.prototype.toString.call(c)!=="[object Object]"},b.prototype.end=function(c){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=c||L,this._finalizeQueryString(),this._end()},b.prototype._setUploadTimeout=function(){const c=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(()=>{c._timeoutError("Upload timeout of ",c._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},b.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));const c=this;this.xhr=N.getXHR();const h=this.xhr;let f=this._formData||this._data;this._setTimeouts(),h.addEventListener("readystatechange",()=>{const O=h.readyState;if(O>=2&&c._responseTimeoutTimer&&clearTimeout(c._responseTimeoutTimer),O!==4)return;let v;try{v=h.status}catch{v=0}if(!v)return c.timedout||c._aborted?void 0:c.crossDomainError();c.emit("end")});const y=(O,v)=>{v.total>0&&(v.percent=v.loaded/v.total*100,v.percent===100&&clearTimeout(c._uploadTimeoutTimer)),v.direction=O,c.emit("progress",v)};if(this.hasListeners("progress"))try{h.addEventListener("progress",y.bind(null,"download")),h.upload&&h.upload.addEventListener("progress",y.bind(null,"upload"))}catch{}h.upload&&this._setUploadTimeout();try{this.username&&this.password?h.open(this.method,this.url,!0,this.username,this.password):h.open(this.method,this.url,!0)}catch(O){return this.callback(O)}if(this._withCredentials&&(h.withCredentials=!0),!this._formData&&this.method!=="GET"&&this.method!=="HEAD"&&typeof f!="string"&&!this._isHost(f)){const O=this._header["content-type"];let v=this._serializer||N.serialize[O?O.split(";")[0]:""];!v&&G(O)&&(v=N.serialize["application/json"]),v&&(f=v(f))}for(const O in this.header)this.header[O]!==null&&w(this.header,O)&&h.setRequestHeader(O,this.header[O]);this._responseType&&(h.responseType=this._responseType),this.emit("request",this),h.send(typeof f>"u"?null:f)},N.agent=()=>new H;for(var Z=0,B=["GET","POST","OPTIONS","PATCH","PUT","DELETE"];Z<B.length;Z++){const c=B[Z];H.prototype[c.toLowerCase()]=function(h,f){const y=new N.Request(c,h);return this._setDefaults(y),f&&y.end(f),y}}H.prototype.del=H.prototype.delete,N.get=(c,h,f)=>{const y=N("GET",c);return typeof h=="function"&&(f=h,h=null),h&&y.query(h),f&&y.end(f),y},N.head=(c,h,f)=>{const y=N("HEAD",c);return typeof h=="function"&&(f=h,h=null),h&&y.query(h),f&&y.end(f),y},N.options=(c,h,f)=>{const y=N("OPTIONS",c);return typeof h=="function"&&(f=h,h=null),h&&y.send(h),f&&y.end(f),y};function st(c,h,f){const y=N("DELETE",c);return typeof h=="function"&&(f=h,h=null),h&&y.send(h),f&&y.end(f),y}N.del=st,N.delete=st,N.patch=(c,h,f)=>{const y=N("PATCH",c);return typeof h=="function"&&(f=h,h=null),h&&y.send(h),f&&y.end(f),y},N.post=(c,h,f)=>{const y=N("POST",c);return typeof h=="function"&&(f=h,h=null),h&&y.send(h),f&&y.end(f),y},N.put=(c,h,f)=>{const y=N("PUT",c);return typeof h=="function"&&(f=h,h=null),h&&y.send(h),f&&y.end(f),y}})(je,je.exports);var vi=je.exports;const Ei=Vn(vi);var ir;const p=Ei.agent().set("X-WP-Nonce",(ir=window==null?void 0:window.aioseo)==null?void 0:ir.nonce).use(e=>{e.on("response",t=>{(t.status===401||t.status===403)&&console.error(t)})}),ks="all-in-one-seo-pack",bl=U("AnalyzerStore",{state:()=>({analyzer:null,analyzing:!1,analyzeError:null}),getters:{getSiteAnalysisResults:()=>{let e={};try{const t=A();e=JSON.parse(t.internalOptions.internal.siteAnalysis.results)}catch{e={}}return e},getCompetitorSiteAnalysisResults:()=>A().internalOptions.internal.siteAnalysis.competitors||{},getHeadlineAnalysisResults:()=>A().internalOptions.internal.headlineAnalysis.headlines||{},allItemsCount:e=>t=>e.recommendedCount(t)+e.criticalCount(t)+e.goodCount(t),recommendedCount:e=>t=>{let s=0;return t=t||e.getSiteAnalysisResults||{},Object.keys(t).forEach(r=>{const n=t[r];Object.keys(n).forEach(i=>{n[i].status==="warning"&&s++})}),s},criticalCount:e=>t=>{let s=0;return t=t||e.getSiteAnalysisResults||{},Object.keys(t).forEach(r=>{const n=t[r];Object.keys(n).forEach(i=>{n[i].status==="error"&&s++})}),s},goodCount:e=>t=>{let s=0;return t=t||e.getSiteAnalysisResults||{},Object.keys(t).forEach(r=>{const n=t[r];Object.keys(n).forEach(i=>{n[i].status==="passed"&&s++})}),s}},actions:{runSiteAnalyzer(e={}){return this.analyzer="competitor-site",p.post(m.restUrl("analyze")).send({url:e.url,refresh:e.refresh}).then(t=>{const s=A();if(e.url)return s.updateOption("internalOptions",{groups:["internal","siteAnalysis"],key:"competitors",value:t.body}),this.analyzing=!1,t;s.updateOption("internalOptions",{groups:["internal","siteAnalysis"],key:"score",value:t.body.score}),s.updateOption("internalOptions",{groups:["internal","siteAnalysis"],key:"results",value:JSON.stringify(t.body.results)}),this.analyzing=!1}).catch(t=>{var r;this.analyzing=!1;let s=Yt("We couldn't connect to the site, please try again later.",ks);(r=t.response.body.response)!=null&&r.error&&(s=t.response.body.response.error),this.analyzeError=s})},runHeadlineAnalyzer(e={}){return this.analyzer="headline",p.post(m.restUrl("analyze-headline")).send({headline:e.headline,shouldStoreHeadline:e.shouldStoreHeadline}).then(t=>{A().updateOption("internalOptions",{groups:["internal","headlineAnalysis"],key:"headlines",value:t.body}),this.analyzing=!1}).catch(t=>{var r;this.analyzing=!1;let s=Yt("We couldn't analyze your title, please try again later.",ks);(r=t.response.body)!=null&&r.message&&(s=t.response.body.message),this.analyzeError=s})},deleteCompetitorSite(e){return p.post(m.restUrl("analyze/delete-site")).send({url:e}).then(t=>{A().updateOption("internalOptions",{groups:["internal","siteAnalysis"],key:"competitors",value:t.body}),this.analyzing=!1})},deleteHeadline(e){return p.post(m.restUrl("analyze-headline/delete")).send({headline:e}).then(t=>{A().updateOption("internalOptions",{groups:["internal","siteAnalysis"],key:"headlines",value:t.body}),this.analyzing=!1})}}}),Ni=U("BackupsStore",{state:()=>({backups:[],networkBackups:{}}),actions:{createBackup(e){return p.post(m.restUrl("backup")).send(e).then(t=>{if(e.siteId){this.networkBackups[e.siteId]=t.body.backups;return}this.backups=t.body.backups})},restoreBackup(e){return p.post(m.restUrl("backup/restore")).send(e).then(t=>{if(t.body.license&&!e.siteId){const r=Ee();r.license=t.body.license,r.clearLicenseNotices()}const s=A();if(s.options=t.body.options,s.internalOptions=t.body.internalOptions,e.siteId){this.networkBackups[e.siteId]=t.body.backups;return}this.backups=t.body.backups})},deleteBackup(e){return p.delete(m.restUrl("backup")).send(e).then(t=>{if(e.siteId){this.networkBackups[e.siteId]=t.body.backups;return}this.backups=t.body.backups})}}}),kl=U("ConnectStore",{state:()=>({}),getters:{isConnected:()=>{var s;const e=Ee(),t=A();return"Lite".toLowerCase()!=="pro"&&((s=t.internalOptions.internal.siteAnalysis)==null?void 0:s.connectToken)||e.license.isActive}},actions:{getConnectUrl({key:e,wizard:t}){return p.post(m.restUrl("connect-url")).send({licenseKey:e.trim(),wizard:t})},processConnect(e){const t=Hi();return p.post(m.restUrl("connect-pro")).send({downloadUrl:e.file,token:e.token,wizard:e.wizard?JSON.stringify(t.wizard.$state):null})},saveConnectToken(e){return A().updateOption("internalOptions",{groups:["internal","siteAnalysis"],key:"connectToken",value:e}),p.post(m.restUrl("connect")).send({token:e})}}}),Et=U("DirtyOptionsStore",{state:()=>({disabled:[],options:{},dynamicOptions:{},networkOptions:{},redirectOptions:{},indexNowOptions:{}}),getters:{isDirty:e=>{const t=ns(),s=A(),r=os(),n=[[e.options,s.options],[e.networkOptions,s.networkOptions],[e.dynamicOptions,s.dynamicOptions]];return e.disabled.includes("redirects")||n.push([e.redirectOptions,r.options]),e.disabled.includes("indexNow")||n.push([e.indexNowOptions,t.options]),!n.every(([i,o])=>Os(i)===Os(o))}},actions:{updateOriginalOptions(e,t){this[e]=JSON.parse(JSON.stringify(t))},disableDirtyCheck(e){this.disabled.push(e)}}}),Os=e=>e?JSON.stringify(JSON.parse(JSON.stringify(e)),xi):{},xi=(e,t)=>(e==="licenseKey"&&(t=""),e==="rules"&&Array.isArray(t)&&t.forEach((s,r)=>{const n=JSON.parse(s);n.userAgent===null&&n.rule==="allow"&&n.directoryPath===null&&t.splice(r,1)}),e==="separator"&&(t=Hn(t)),t===null?"":t),Di=U("HelpPanelStore",{state:()=>({categories:{},docs:{}})}),ns=U("IndexNowStore",{state:()=>({options:{indexNow:{apiKey:null}}}),actions:{generateApiKey(){return p.get(m.restUrl("index-now/generate-api-key")).then(e=>(this.options.indexNow.apiKey=e.body.key,Et().updateOriginalOptions("indexNowOptions",this.options),e.body.key))},getApiKey(){return p.get(m.restUrl("index-now/api-key")).then(e=>(this.options.indexNow.apiKey=e.body.key,Et().updateOriginalOptions("indexNowOptions",this.options),e.body.key))}}}),Ee=U("LicenseStore",{state:()=>({license:{expires:0,isActive:!1,isDisabled:!1,isExpired:!1,isInvalid:!1,features:{}}}),getters:{isUnlicensed:e=>"Lite".toLowerCase()!=="pro"||!e.license.isActive,licenseKey:()=>{const e=V(),t=A();return e.aioseo.data.isNetworkAdmin?t.networkOptions.general.licenseKey:t.options.general.licenseKey}},actions:{activate(e){const t=Pt(),s=V();return p.post(m.restUrl("activate")).send({licenseKey:e.trim(),network:s.aioseo.data.isNetworkAdmin}).then(r=>{const n=A(),i=s.aioseo.data.isNetworkAdmin?"networkOptions":"options";return n.updateOption(i,{groups:["general"],key:"licenseKey",value:e}),t.updateNotifications(r.body.notifications),r.body.licenseData&&(Object.keys(r.body.licenseData).forEach(o=>{const a=s.aioseo.data.isNetworkAdmin?"internalNetworkOptions":"internalOptions";n.updateOption(a,{groups:["internal","license"],key:o,value:r.body.licenseData[o]})}),this.license=r.body.license,this.clearLicenseNotices()),r})},multisite(e){const t=Pt(),s=V();return p.post(m.restUrl("multisite")).send({network:s.aioseo.data.isNetworkAdmin,sites:e}).then(r=>{s.aioseo.data={...s.aioseo.data,network:{...s.aioseo.data.network,activeSites:r.body.activeSites}};const n=is();n.networkData.activeSites=r.body.activeSites,t.updateNotifications(r.body.notifications)})},deactivate(){const e=Pt(),t=V();return p.post(m.restUrl("deactivate")).send({network:t.aioseo.data.isNetworkAdmin}).then(s=>{const r=A(),n=t.aioseo.data.isNetworkAdmin?"networkOptions":"options";return r.updateOption(n,{groups:["general"],key:"licenseKey",value:null}),e.updateNotifications(s.body.notifications),s.body.licenseData&&(Object.keys(s.body.licenseData).forEach(i=>{const o=t.aioseo.data.isNetworkAdmin?"internalNetworkOptions":"internalOptions";r.updateOption(o,{groups:["internal","license"],key:i,value:s.body.licenseData[i]})}),this.license=s.body.license,t.aioseo.isUnlicensed=!0),s})},clearLicenseNotices(){const e=document.querySelector(".aioseo-submenu-highlight.red");e&&e.remove();const t=document.querySelector("#wp-admin-bar-aioseo-pro-license");t&&t.remove()}}}),Tr=U("LinkAssistantStore",{state:()=>({options:{main:{affiliatePrefix:"",wordsToIgnore:"",skipSentences:3,postTypes:{all:!0,included:null},postStatuses:{all:!0,included:null},excludePosts:[]}},internalOptions:{internal:{minimumLinkScanDate:null,minimumSuggestionScanDate:null,dismissedAlerts:{suggestions:!1}}},overview:{totals:{crawledPosts:0,externalLinks:0,internalLinks:0,affiliateLinks:0,orphanedPosts:0},linkingOpportunities:[],mostLinkedDomains:[]},domainsReport:{rows:[],totals:{page:1,pages:1,total:1},innerPagination:{}},linksReport:{rows:[],totals:{page:1,pages:1,total:1},prioritizedPosts:[],counts:[{inboundInternal:0,outboundInternal:0,affiliate:0,external:0,suggestionsInbound:0,suggestionsOutbound:0}]},postReport:{inboundInternal:{rows:[],totals:{page:1,pages:1,total:0}},outboundInternal:{rows:[],totals:{page:1,pages:1,total:0}},affiliate:{rows:[],totals:{page:1,pages:1,total:0}},external:{rows:[],totals:{page:1,pages:1,total:0}},suggestionsInbound:{rows:[],totals:{page:1,pages:1,total:0}},suggestionsOutbound:{rows:[],totals:{page:1,pages:1,total:0}}},suggestionsScan:{percent:0,showProcessingPopup:!1},skipNextPostSettingsUpdate:!1}),actions:{linkDelete({postId:e,linkId:t,linksReport:s,postReport:r}){const n=s?"links-report-inner":r?"post-report":"post-settings";return p.post(m.restUrl(`link-assistant/${n}/links/delete`)).send({postId:e,linkId:t}).then(i=>{if(!s&&!r){if(i.body){const o=P(),a=o.currentPost;a.linkAssistant.links=i.body.links,o.updateState(a)}return}this.getOverviewData(),!r&&s&&this.setLinksReportCounts()})},linksBulk({postId:e,action:t,linkType:s,linkIds:r,linksReport:n,postReport:i}){const o=n?"links-report-inner":i?"post-report":"post-settings";return p.post(m.restUrl(`link-assistant/${o}/links/bulk`)).send({postId:e,action:t,linkType:s,linkIds:r}).then(a=>{if(!n&&!i){if(a.body){const l=P(),u=l.currentPost;u.linkAssistant.links=a.body.links,l.updateState(u)}return}this.getOverviewData(),!i&&n&&this.setLinksReportCounts()})},linksRefresh({postId:e,linksReport:t,postReport:s}){const r=t?"links-report-inner":s?"post-report":"post-settings";return p.post(m.restUrl(`link-assistant/${r}/refresh`)).send({postId:e}).then(()=>{this.linksReport.prioritizedPosts.push(e),t&&this.setLinksReportCounts(),this.pollSuggestionsScan()}).catch(n=>{console.error("Couldn't prioritize the post for the next scan.",n)})},suggestionDismiss({postIndex:e,postId:t,suggestionId:s,linksReport:r,postReport:n}){const i=P(),a=r?"links-report-inner":n?"post-report":"post-settings";return p.post(m.restUrl(`link-assistant/${a}/suggestions/dismiss`)).send({postId:t||i.currentPost.id,suggestionId:s}).then(l=>{if(!r&&!n){if(l.body){const u=i.currentPost;u.linkAssistant.links=l.body.links,i.updateState(u)}return}n||r&&(e&&(this.linksReport.rows[e].links=l.body.links),this.getOverviewData(),this.setLinksReportCounts())})},suggestionsBulk({postId:e,action:t,suggestionType:s,suggestionRows:r,linksReport:n,postReport:i}){const o=n?"links-report-inner":i?"post-report":"post-settings";return p.post(m.restUrl(`link-assistant/${o}/suggestions/bulk`)).send({postId:e,action:t,suggestionType:s,suggestionRows:r}).then(a=>{if(!n&&!i){if(a.body){const l=P(),u=l.currentPost;u.linkAssistant.links=a.body.links,l.updateState(u)}return}this.getOverviewData(),!i&&n&&this.setLinksReportCounts()})},fetchLinksReport({orderBy:e,orderDir:t,limit:s,offset:r,searchTerm:n,filter:i,additionalFilters:o}){return p.post(m.restUrl(`link-assistant/links-report/${i}`)).send({orderBy:e,orderDir:t,limit:s,offset:r,searchTerm:n,additionalFilters:o}).then(a=>{this.linksReport=a.body.linksReport,this.getOverviewData(),this.setLinksReportCounts()})},fetchLinksReportInner({filter:e,additionalFilters:t}){return p.post(m.restUrl(`link-assistant/links-report-inner/${e}`)).send({additionalFilters:t}).then(s=>{t.postIndex&&(this.linksReport.rows[t.postIndex].links=s.body.links),this.getOverviewData()})},fetchDomainsReport({orderBy:e,orderDir:t,limit:s,offset:r,searchTerm:n,filter:i,additionalFilters:o}){return p.post(m.restUrl(`link-assistant/domains-report/${i}`)).send({orderBy:e,orderDir:t,limit:s,offset:r,searchTerm:n,additionalFilters:o}).then(a=>{this.domainsReport=a.body.domainsReport,this.getOverviewData()})},fetchDomainsReportInner({orderBy:e,orderDir:t,offset:s,searchTerm:r,filter:n,additionalFilters:i}){return p.post(m.restUrl(`link-assistant/domains-report-inner/${n}`)).send({orderBy:e,orderDir:t,offset:s,searchTerm:r,additionalFilters:i}).then(o=>{this.domainsReport.rows[i.domainIndex][i.domain]=o.body.posts,this.getOverviewData()})},fetchPostReport({orderBy:e,orderDir:t,limit:s,offset:r,searchTerm:n,filter:i,additionalFilters:o={}}){return p.post(m.restUrl(`link-assistant/post-report/${i}`)).send({orderBy:e,orderDir:t,limit:s,offset:r,searchTerm:n,additionalFilters:o}).then(a=>(o.type&&(this.postReport[o.type]=a.body.links),a))},linksReportDeleteAll({postId:e}){return p.delete(m.restUrl(`link-assistant/links-report/post/${e}`))},domainsReportBulk({action:e,rowIndexes:t}){const s=[];return Array.isArray(t)?t.forEach(r=>{s.push(Object.keys(this.domainsReport.rows[r])[0])}):s.push(Object.keys(this.domainsReport.rows[t])[0]),p.post(m.restUrl(`link-assistant/domains-report/bulk/${e}`)).send({hostnames:s}).then(()=>{this.getOverviewData()})},domainsReportInnerBulk({offset:e,searchTerm:t,action:s,domainIndex:r,linkIndexes:n}){const i=[];if(Array.isArray(n))n.forEach(o=>{const a=Object.keys(this.domainsReport.rows[r])[0];this.domainsReport.rows[r][a][o].links.forEach(u=>{i.push(u)})});else{const o=Object.keys(this.domainsReport.rows[r])[0];this.domainsReport.rows[r][o][n].links.forEach(l=>{i.push(l)})}return p.post(i.restUrl(`link-assistant/domains-report-inner/bulk/${s}`)).send({searchTerm:t,links:i,offset:e}).then(()=>{this.getOverviewData()})},domainsReportInnerLinkUpdate({domain:e,link:t}){return p.put(m.restUrl("link-assistant/domains-report-inner/link")).send({hostname:e,link:t}).then(()=>{this.getOverviewData()})},domainsReportInnerLinkDelete({searchTerm:e,rows:t,postIndex:s,linkIndex:r,offset:n}){const i=t[s].links[r];return p.delete(m.restUrl("link-assistant/domains-report-inner/link")).send({searchTerm:e,offset:n,link:i}).then(()=>{this.getOverviewData()})},postSettingsUpdate({postContent:e,skipNextRun:t}){if(this.skipNextPostSettingsUpdate){this.skipNextPostSettingsUpdate=!1;return}const s=P();return window.aioseoBus.$emit("updatingLinks",!0),p.post(m.restUrl("link-assistant/post-settings/update")).send({postId:s.currentPost.id,postContent:e}).then(r=>{if(r.body){const n=s.currentPost;n.linkAssistant.links=r.body.links,s.updateState(n)}t&&(this.skipNextPostSettingsUpdate=!0)}).catch(r=>{console.error("Couldn't get updated Link Assistant data:",r)}).finally(()=>{window.aioseoBus.$emit("updatingLinks",!1)})},getMenuData(){return p.get(m.restUrl("link-assistant/data/menu")).then(e=>{e.body.data&&this.resetState(e.body.data)})},getOverviewData(){return p.get(m.restUrl("link-assistant/data/overview")).then(e=>{e.body.data&&(this.overview=e.body.data)})},getPostData(){const e=P(),t=e.currentPost.id;return p.get(m.restUrl(`link-assistant/data/post/${t}`)).then(s=>{if(s.body.data){const r=e.currentPost;r.linkAssistant=s.body.data.currentPost.linkAssistant,e.updateState(r),this.resetState(s.body.data)}})},triggerScan(){return p.get(m.restUrl("link-assistant/data/trigger-scan")).then(e=>{e.body.data&&this.resetState(e.body.data)})},pollSuggestionsScan(){return p.get(m.restUrl("link-assistant/data/suggestions-scan-percent")).then(e=>{e.body&&"percent"in e.body&&(this.suggestionsScan.percent!==e.body.percent&&this.getOverviewData(),this.suggestionsScan.percent=e.body.percent,e.body.percent!==100&&setTimeout(()=>{this.pollSuggestionsScan()},1e4))})},setLinksReportCounts(){const e=[];this.linksReport.rows.forEach((t,s)=>{e[s]={inboundInternal:t.links.inboundInternal.totals.total,outboundInternal:t.links.outboundInternal.totals.total,affiliate:t.links.affiliate.totals.total,external:t.links.external.totals.total,suggestionsInbound:t.links.suggestionsInbound.totals.total,suggestionsOutbound:t.links.suggestionsOutbound.totals.total}}),this.linksReport.counts=e},resetState(e){e.options&&(this.options=e.options),e.internalOptions&&(this.internalOptions=e.internalOptions),e.overview&&(this.overview=e.overview),e.domainsReport&&(this.domainsReport=e.domainsReport),e.linksReport&&(this.linksReport=e.linksReport)},toggleProcessingPopup(){this.suggestionsScan.showProcessingPopup=!this.suggestionsScan.showProcessingPopup},setDomainsReportInnerPaginatedPage({domain:e,page:t}){const s=this.domainsReport.innerPagination||{};s[e]=t,this.domainsReport.innerPagination=s},resetPostReportState(){this.postReport={inboundInternal:{rows:[],totals:{page:1,pages:1,total:0}},outboundInternal:{rows:[],totals:{page:1,pages:1,total:0}},affiliate:{rows:[],totals:{page:1,pages:1,total:0}},external:{rows:[],totals:{page:1,pages:1,total:0}},suggestionsInbound:{rows:[],totals:{page:1,pages:1,total:0}},suggestionsOutbound:{rows:[],totals:{page:1,pages:1,total:0}}}}}}),is=U("NetworkStore",{state:()=>({networkData:{},networkRobots:{siteId:"network",rules:[]}}),getters:{getNetworkRobots:()=>{const e=A();return e.networkOptions.tools?e.networkOptions.tools.robots:[]}},actions:{fetchNetworkSites({orderBy:e,orderDir:t,limit:s,offset:r,searchTerm:n,filter:i}){return p.post(m.restUrl(`network-sites/${i}`)).send({orderBy:e,orderDir:t,limit:s,offset:r,searchTerm:n}).then(o=>{const a=V();a.aioseo.data={...a.aioseo.data,network:{...a.aioseo.data.network,sites:o.body.sites}},this.networkData.sites=o.body.sites})},fetchSiteRobots(e){return p.get(m.restUrl(`network-robots/${e}`)).then(t=>{this.networkRobots.rules=t.body.rules,this.networkRobots.siteId=e})}}}),Ci=e=>{const t=document.querySelector(".aioseo-menu-notification-counter");if(t)if(e.active.length)t.innerText=e.active.length;else{t.remove();const s=document.querySelector("#wp-admin-bar-aioseo-notifications");s&&s.remove();const r=document.querySelector("#toplevel_page_aioseo .wp-first-item"),n=document.querySelector("#toplevel_page_aioseo .wp-first-item .aioseo-menu-notification-indicator");r!=null&&r.contains(n)&&r.remove()}},Pt=U("NotificationsStore",{state:()=>({active:[],new:[],dismissed:[],force:!1,showNotifications:!1}),getters:{activeNotifications:e=>e.active,activeNotificationsCount:e=>e.active.length,dismissedNotifications:e=>e.dismissed,dismissedNotificationsCount:e=>e.dismissed.length},actions:{toggleNotifications(){this.showNotifications=!this.showNotifications},dismissNotifications(e){return e.reverse().forEach(s=>{const r=this.active.findIndex(n=>n.slug===s);r!==-1&&this.active.splice(r,1)}),p.post(m.restUrl("notifications/dismiss")).send(e).then(s=>{if(!s.body.success)throw new Error(s.body.message);this.updateNotifications(s.body.notifications)})},updateNotifications(e){e.new.length&&window.aioseoNotifications&&(window.aioseoNotifications.newNotifications=e.new.length),this.active=e.active,this.new=e.new,this.dismissed=e.dismissed,Ci(e)},processButtonAction(e){const t=V();return p.post(m.restUrl(`${e}`)).send({network:t.aioseo.data.isNetworkAdmin}).then(s=>{if(this.updateNotifications(s.body.notifications),!s.body.success)throw new Error(s.body.message)})}}}),A=U("OptionsStore",{state:()=>({dynamicOptions:{},internalNetworkOptions:{},internalOptions:{},networkOptions:{},options:{},htaccessError:null}),actions:{saveChanges(){const e=Et(),t=ns(),s=Tr(),r=Pt(),n=os(),i=V(),o={options:this.options,dynamicOptions:this.dynamicOptions,network:i.aioseo.data.isNetworkAdmin,networkOptions:this.networkOptions};switch(i.aioseo.page){case"redirects":{o.redirectOptions=n.options;break}case"link-assistant":{o.linkAssistantOptions=s.options;break}case"settings":{o.indexNowOptions=t.options;break}}return p.post(m.restUrl("options")).send(o).then(a=>(r.updateNotifications(a.body.notifications),e.updateOriginalOptions("options",this.options),e.updateOriginalOptions("dynamicOptions",this.dynamicOptions),n!=null&&n.options&&e.updateOriginalOptions("redirectOptions",n.options),t.options.indexNow.apiKey&&e.updateOriginalOptions("indexNowOptions",t.options),a.body.redirection&&(a.body.redirection==="reload"?window.location.reload():window.location.href=a.body.redirection),a))},saveHtaccess(){const e=V();return p.post(m.restUrl("htaccess")).send({htaccess:e.aioseo.data.htaccess}).then(()=>{}).catch(t=>{this.htaccessError=t.response.body.message})},saveNetworkRobots(){const e=Et(),t=is(),s=V(),r={enabled:t.networkRobots.siteId==="network"?this.networkOptions.tools.robots.enable:this.options.tools.robots.enable,network:s.aioseo.data.isNetworkAdmin,rules:t.networkRobots.rules};return p.post(m.restUrl(`network-robots/${t.networkRobots.siteId}`)).send(r).then(()=>{e.updateOriginalOptions("options",this.options)})},getObjects(e){return p.post(m.restUrl("objects")).send(e).then(t=>{if(!t.body.success)throw new Error(t.body.message);return t})},updateOption(e,{groups:t,key:s,value:r}){let n=this[e];t.forEach(i=>{n=n[i]}),n[s]=r}}}),$i=U("PluginsStore",{state:()=>({plugins:{}}),actions:{installPlugins(e){const t=V();return p.post(m.restUrl("plugins/install")).send({network:t.aioseo.data.isNetworkAdmin,plugins:e}).then(s=>{if(!s.body.success)throw new Error(s.body.message);const r=He();return Object.keys(s.body.completed).forEach(n=>{const i=s.body.completed[n],o=r.addons.find(a=>n===a.sku);o&&(o.basename=i,r.updateAddon(o))}),s})},upgradePlugins(e){const t=V();return p.post(m.restUrl("plugins/upgrade")).send({network:t.aioseo.data.isNetworkAdmin,plugins:e}).then(s=>{if(!s.body.success)throw new Error(s.body.message);const r=He();return Object.keys(s.body.completed).forEach(n=>{const i=s.body.completed[n].basename,o=r.find(a=>n===a.sku);o&&(o.basename=i,r.updateAddon(o))}),s})},deactivatePlugins(e){const t=V();return p.post(m.restUrl("plugins/deactivate")).send({network:t.aioseo.data.isNetworkAdmin,plugins:e}).then(s=>s)}}});let Pe=null;const Ts=e=>{const t=["modalOpen","seo_score","page_analysis"],s=JSON.parse(JSON.stringify(e));return t.forEach(r=>{delete s[r]}),JSON.stringify(s)},P=U("PostEditorStore",{state:()=>({isDirty:!1,currentPost:{},openAiError:null}),actions:{toggleLinkAssistantModal(){this.currentPost.linkAssistant.modalOpen=!this.currentPost.linkAssistant.modalOpen},toggleRedirectsModal(){this.currentPost.redirects.modalOpen=!this.currentPost.redirects.modalOpen},updateTitle(e){this.currentPost.title=e,window.aioseoBus.$emit("updateTitleKey")},updateDescription(e){this.currentPost.description=e,window.aioseoBus.$emit("updateDescriptionKey")},openModal(e){this.currentPost.modalOpen=e},changeGeneralPreview(e){this.currentPost.generalMobilePrev=e},changeSocialPreview(e){this.currentPost.socialMobilePreview=e},saveCurrentPost(e){return this.currentPost=e,p.post(m.restUrl("post")).send(e).then(()=>{}).catch(t=>{console.error(`Unable to update the post data: ${t}`)})},updateState(e){this.currentPost=e},savePostState(){if(!this.currentPost||!Object.keys(this.currentPost).length)return;Pe===null&&(Pe=Ts(this.currentPost)),Pe!==Ts(this.currentPost)&&window.aioseoBus.$emit("postSettingsUpdated");const e=document.querySelector("#aioseo-post-settings");if(e&&(e.value=JSON.stringify(this.currentPost)),this.currentPost.context==="term"){const t=document.querySelector("#aioseo-term-settings");t&&(t.value=JSON.stringify(this.currentPost))}},disablePrimaryTermEducation(){return this.currentPost.options.primaryTerm.productEducationDismissed=!0,p.post(m.restUrl(`post/${this.currentPost.id}/disable-primary-term-education`))},disableLinkAssistantEducation(){return this.currentPost.options.linkFormat.linkAssistantDismissed=!0,p.post(m.restUrl(`post/${this.currentPost.id}/disable-link-format-education`))},incrementInternalLinkCount(){const e=this.currentPost.options.linkFormat.internalLinkCount||0;return this.currentPost.options.linkFormat.internalLinkCount=e+1,p.post(m.restUrl(`post/${this.currentPost.id}/update-internal-link-count`)).send({count:e})},generateTitlesDescriptions(e){return p.post(m.restUrl("ai/generate/")).send(e).then(t=>{if(!t.body.suggestions){t.body.error&&(this.openAiError=t.body.error);return}this.openAiError=null,this.currentPost.open_ai[e.type].suggestions=t.body.suggestions,this.currentPost.open_ai[e.type].usage=t.body.usage})},saveOpenAiApiKey(e){return p.post(m.restUrl("ai/save-api-key")).send({apiKey:e})},getUserImage({userId:e}){return p.get(m.restUrl(`user/${e}/image`)).then(t=>t.statusCode===200?t.body.url:"")},getFirstAttachedImage({postId:e}){return p.get(m.restUrl(`post/${e}/first-attached-image`)).then(t=>t.statusCode===200?t.body.url:"")},getMediaData({mediaId:e}){return p.get(m.restUrl(`media/${e}`,"wp/v2")).then(t=>t.statusCode===200?t.body:{})}}}),os=U("RedirectsStore",{state:()=>({options:{},importers:[],redirects:[],rows:[],logs:[],logs404:[],filters:[],selectedFilters:{},manualUrls:[],sort:{logs:"last_accessed",logs404:"last_accessed"},sortDir:{logs:"desc",logs404:"desc"},totals:{main:{total:0,pages:0,page:1},total404:{total:0,pages:0,page:1},logs:{total:0,pages:0,page:1}},server:{redirectTest:{testing:!1,failed:!1}},lateRefresh:{redirects:!1,logs:!1,logs404:!1}}),actions:{bulk({action:e,rowIds:t}){if(t=t.filter(n=>{const i=this.rows.find(o=>o.id===parseInt(n));return!(e==="enable"&&i.enabled||e==="disable"&&!i.enabled||e==="reset-hits"&&!i.hits)}),!t.length)return Promise.resolve();const s=e==="delete"?"delete":"post",r=e==="delete"?"":`${e}/`;return p[s](m.restUrl(`redirects/bulk/${r}`)).send({rowIds:t})},fetchRedirects({orderBy:e,orderDir:t,limit:s,offset:r,searchTerm:n,filter:i,additionalFilters:o}){var l,u;const a=P();return((l=a.currentPost)==null?void 0:l.context)==="post"||((u=a.currentPost)==null?void 0:u.context)==="term"?this.getPostRedirects():p.post(m.restUrl(`redirects/${i}`)).send({orderBy:e,orderDir:t,limit:s,offset:r,searchTerm:n,additionalFilters:o}).then(g=>{this.filters=g.body.filters,this.rows=g.body.rows,this.totals.main=g.body.totals})},fetchLogs({slug:e,orderBy:t,orderDir:s,limit:r,offset:n,searchTerm:i,filter:o}){return p.post(m.restUrl(`redirects/${e}/${o}`)).send({orderBy:t,orderDir:s,limit:r,offset:n,searchTerm:i}).then(a=>{this[e==="404"?"logs404":"logs"]=a.body.rows,this.totals[e==="404"?"total404":"logs"].logs=a.body.totals})},create(e){return(e==null?void 0:e.group)==="404"&&this.setLateRefresh(!0,"redirects"),p.post(m.restUrl("redirects")).send(e)},update({id:e,payload:t}){return p.post(m.restUrl(`redirects/${e}/`)).send(t).then(s=>{var r;if((r=s.body.redirect)!=null&&r.id){const n=this.rows.findIndex(i=>i.id===s.body.redirect.id);n!==-1&&(this.rows[n]=s.body.redirect)}})},delete(e){return p.delete(m.restUrl(`redirects/${e}`))},test({id:e,payload:t}){return p.post(m.restUrl(`redirects/${e}/test/`)).send(t)},deleteLog({slug:e,urls:t}){return p.delete(m.restUrl(`redirects/logs/${e}`)).send({urls:t})},exportServerRedirects(e){return p.get(m.restUrl(`redirects/export/${e}/`))},exportRedirects({groups:e,type:t}){return p.post(m.restUrl(`redirects/export/${t}/`)).send({groups:e})},exportLogs(e){return p.get(m.restUrl(`redirects/export-logs/${e}/`))},uploadFile({file:e,filename:t}){return p.post(m.restUrl("redirects/import")).attach("file",e,t).then(s=>{this.filters=s.body.filters,this.rows=s.body.rows,this.totals.main=s.body.totals})},importPlugins(e){return p.post(m.restUrl("redirects/import-plugins")).send({plugins:e}).then(()=>this.setLateRefresh({value:!0,type:"redirects"}))},getPosts(e){return p.post(m.restUrl("redirects/posts")).send(e).then(t=>{if(!t.body.success)throw new Error(t.body.message);return t})},getRedirectOptions(){return p.get(m.restUrl("redirects/options")).then(e=>{e.body.options&&(this.options=e.body.options,this.importers=e.body.importers,Et().updateOriginalOptions("redirectOptions",this.options))})},testServerRedirects(){const e=Pt();if(!this.server.redirectTest.testing)return this.server.redirectTest.testing=!0,p.get(m.restUrl("redirects/server/test")).then(t=>{this.server.redirectTest.testing=!1,this.server.redirectTest.failed=!t.body.success,e.updateNotifications(t.body.notifications)}).catch(()=>{this.server.redirectTest.testing=!1,this.server.redirectTest.failed=!0})},getPostRedirects(){const e=P();return p.get(m.restUrl("redirects/"+e.currentPost.context+"/"+e.currentPost.id)).then(t=>{this.rows=t.body.rows,e.currentPost.permalinkPath=t.body.permalinkPath,e.currentPost.postStatus=t.body.postStatus}).catch(()=>{})},setLateRefresh({value:e=!0,type:t="all"}){t=t==="all"?["redirects","logs","logs404"]:[t];for(const s in t)this.lateRefresh[t[s]]=e},resetPageNumbers(){const{main:e,total404:t,logs:s}=this.totals;e.page=1,t.page=1,s.page=1;const r={main:e,total404:t,logs:s};this.totals=r}}}),V=U("RootStore",{state:()=>({pong:!0,loaded:!1,loading:!1,aioseo:{}}),actions:{ping(){p.get(m.restUrl("ping")).catch(()=>{this.pong=!1})}}});var or,ar;!((or=window.wp)!=null&&or.blockEditor)&&((ar=window.wp)!=null&&ar.blocks)&&window.wp.oldEditor&&(window.wp.blockEditor=window.wp.editor);const Ii=()=>document.body.classList.contains("block-editor-page")&&window.wp.data&&Ui(),Ol=()=>!!document.querySelector("#wp-content-wrap.tmce-active, #wp-content-wrap.html-active"),Tl=()=>document.querySelector("#post input#title")&&!document.querySelector("#wp-content-wrap"),_i=()=>document.body.classList.contains("elementor-editor-active")&&window.elementor,Pi=()=>document.body.classList.contains("et_pb_pagebuilder_layout")&&window.ET_Builder,Ai=()=>document.body.classList.contains("seedprod-builder")&&window.seedprod_data,vl=()=>{const e=P();return V().aioseo.data.isWooCommerceActive&&e.currentPost&&e.currentPost.postType==="product"},El=()=>_i()||Pi()||Ai(),Ui=()=>{const e=window.wp;return typeof e<"u"&&typeof e.blocks<"u"&&typeof e.blockEditor<"u"};U("SchemaStore",{state:()=>({custom:{graphName:"",schema:""},defaultGraphParent:"",graph:null,graphCardsKey:0,isDirty:!1,isEditingCustomGraph:!1,isEditingCustomTemplate:!1,isEditingDefaultGraph:!1,isEditingGraph:!1,isEditingTemplate:!1,modalOpenMetabox:!1,modalOpenSidebar:!1,output:"",outputKey:0,tabs:{generator:"schema-templates",templates:"schema-catalog"},templateName:""}),actions:{getCustomObject(){return{id:"#aioseo-custom-"+new Date().getTime().toString(36),custom:!0,graphName:this.custom.graphName,schema:this.custom.schema}},resetSessionState(){this.custom={graphName:"",schema:""},this.defaultGraphParent="",this.graph=null,this.templateName="",this.isEditingCustomGraph=!1,this.isEditingCustomTemplate=!1,this.isEditingDefaultGraph=!1,this.isEditingGraph=!1,this.isEditingTemplate=!1,this.isDirty=!1},addCustomAsGraph(){const e=P();e.currentPost.schema.customGraphs.push(this.getCustomObject()),e.currentPost.schema.customGraphs=e.currentPost.schema.customGraphs.sort((t,s)=>t.graphName<s.graphName?-1:1),this.resetSessionState(),this.graphCardsKey=this.graphCardsKey+1,this.modalOpenMetabox=!1,this.modalOpenSidebar=!1,this.updateSchemaOutput()},addCustomAsTemplate(){const e=P(),t=JSON.parse(JSON.stringify(this.getCustomObject()));e.internalOptions.internal.schema.templates.push(this.getCustomObject()),this.resetSessionState(),this.setTabTemplates("your-templates"),p.post(m.restUrl("schema/templates")).send({template:t}).then(s=>{s.body.success&&s.body.templates&&this.parseAndUpdateTemplates(s.body.templates)})},addCustomTemplateAsGraph(){const e=P();e.currentPost.schema.customGraphs.push(this.graph),e.currentPost.schema.customGraphs=e.currentPost.schema.customGraphs.sort((t,s)=>t.graphName<s.graphName?-1:1),this.resetSessionState(),this.graphCardsKey=this.graphCardsKey+1,this.modalOpenMetabox=!1,this.modalOpenSidebar=!1,this.updateSchemaOutput()},addDefaultGraph(){const e=P();e.currentPost.schema.default.isEnabled=!0,this.resetSessionState(),this.graphCardsKey=this.graphCardsKey+1,this.modalOpenMetabox=!1,this.modalOpenSidebar=!1,this.updateSchemaOutput()},addGraph(){const e=P();e.currentPost.schema.graphs.push(this.graph),e.currentPost.schema.graphs=e.currentPost.schema.graphs.sort((t,s)=>t.graphName<s.graphName?-1:1),this.resetSessionState(),this.graphCardsKey=this.graphCardsKey+1,this.modalOpenMetabox=!1,this.modalOpenSidebar=!1,this.updateSchemaOutput()},addGraphAsTemplate(){this.graph.label=this.graph.graphName+" - "+this.templateName;const e=JSON.parse(JSON.stringify(this.graph));A().internalOptions.internal.schema.templates.push(this.graph),this.resetSessionState(),this.setTabTemplates("your-templates"),p.post(m.restUrl("schema/templates")).send({template:e}).then(s=>{s.body.success&&s.body.templates&&this.parseAndUpdateTemplates(s.body.templates)})},addTemplateAsGraph(e){const t=A();e===void 0&&(e=t.internalOptions.internal.schema.templates.findIndex(n=>n.id===this.graph.id));const s=JSON.parse(JSON.stringify(t.internalOptions.internal.schema.templates[e]));s.id=s.id+new Date().getTime().toString(18);const r=P();s.custom?(r.currentPost.schema.customGraphs.push(s),r.currentPost.schema.customGraphs=r.currentPost.schema.customGraphs.sort((n,i)=>n.graphName<i.graphName?-1:1)):(r.currentPost.schema.graphs.push(s),r.currentPost.schema.graphs=r.currentPost.schema.graphs.sort((n,i)=>n.graphName<i.graphName?-1:1)),this.resetSessionState(),this.graphCardsKey=this.graphCardsKey+1,this.modalOpenMetabox=!1,this.modalOpenSidebar=!1,this.updateSchemaOutput()},deleteCustomGraph(e){const t=P();e===void 0&&(e=t.currentPost.schema.customGraphs.findIndex(s=>s.id===this.graph.id)),t.currentPost.schema.customGraphs.splice(e,1),this.resetSessionState(),this.graphCardsKey=this.graphCardsKey+1,this.modalOpenMetabox=!1,this.modalOpenSidebar=!1,this.updateSchemaOutput()},deleteDefaultGraph(){const e=P();e.currentPost.schema.default.isEnabled=!1,this.resetSessionState(),this.graphCardsKey=this.graphCardsKey+1,this.modalOpenMetabox=!1,this.modalOpenSidebar=!1,this.updateSchemaOutput()},deleteGraph(e){const t=P();e===void 0&&(e=t.currentPost.schema.graphs.findIndex(s=>s.id===this.graph.id)),t.currentPost.schema.graphs.splice(e,1),this.resetSessionState(),this.graphCardsKey=this.graphCardsKey+1,this.modalOpenMetabox=!1,this.modalOpenSidebar=!1,this.updateSchemaOutput()},deleteTemplate(e){const t=this.graph.id,s=A();e===void 0&&(e=s.internalOptions.internal.schema.templates.findIndex(r=>r.id===t)),s.internalOptions.internal.schema.templates.splice(e,1),this.resetSessionState(),this.setTabTemplates("your-templates"),p.delete(m.restUrl("schema/templates")).send({templateId:t}).then(r=>{r.body.success&&r.body.templates&&this.parseAndUpdateTemplates(r.body.templates)})},editCustomGraph({customGraphIndex:e,isSidebar:t}){const s=P(),r=JSON.parse(JSON.stringify(s.currentPost.schema.customGraphs[e]));this.graph=r,this.isEditingCustomGraph=!0,this.tabs.generator="custom-schema",t?this.modalOpenSidebar=!0:this.modalOpenMetabox=!0},editDefaultGraph({isSidebar:e,parentGraphName:t}){this.defaultGraphParent=t;const s=P();s.currentPost.schema.default.data[t]&&(this.graph=s.currentPost.schema.default.data[t]),this.isEditingDefaultGraph=!0,this.tabs.generator="schema-templates",e?this.modalOpenSidebar=!0:this.modalOpenMetabox=!0},editGraph({graphIndex:e,isSidebar:t}){const s=P(),r=JSON.parse(JSON.stringify(s.currentPost.schema.graphs[e]));this.graph=r,this.isEditingGraph=!0,this.tabs.generator="schema-templates",t?this.modalOpenSidebar=!0:this.modalOpenMetabox=!0},editTemplate(e){const t=A(),s=JSON.parse(JSON.stringify(t.internalOptions.internal.schema.templates[e]));if(this.graph=s,s.custom)this.templateName=this.graphName,this.isEditingCustomTemplate=!0,this.tabs.generator="custom-schema";else{const r=new RegExp(`^${this.graph.graphName} -`,"i"),n=this.graph.label.replace(r,"");this.templateName=n,this.isEditingTemplate=!0}},updateCustomGraph(){const e=P(),t=e.currentPost.schema.customGraphs.findIndex(s=>s.id===this.graph.id);t!==-1&&(e.currentPost.schema.customGraphs[t]=this.graph,e.currentPost.schema.customGraphs=e.currentPost.schema.customGraphs.sort((s,r)=>s.graphName<r.graphName?-1:1),this.resetSessionState(),this.graphCardsKey=this.graphCardsKey+1,this.modalOpenMetabox=!1,this.modalOpenSidebar=!1,this.updateSchemaOutput())},updateDefaultGraph(){const e=P();e.currentPost.schema.default.data[this.defaultGraphParent]=this.graph,this.resetSessionState(),this.graphCardsKey=this.graphCardsKey+1,this.modalOpenMetabox=!1,this.modalOpenSidebar=!1,this.updateSchemaOutput()},updateGraph(){const e=P(),t=e.currentPost.schema.graphs.findIndex(s=>s.id===this.graph.id);t!==-1&&(e.currentPost.schema.graphs[t]=this.graph,e.currentPost.schema.graphs=e.currentPost.schema.graphs.sort((s,r)=>s.graphName<r.graphName?-1:1),this.resetSessionState(),this.graphCardsKey=this.graphCardsKey+1,this.modalOpenMetabox=!1,this.modalOpenSidebar=!1,this.updateSchemaOutput())},updateSchemaOutput(){const e=P();let t=e.currentPost.id;Ii()&&(t=window.wp.data.select("core/editor").getCurrentPostId()),p.post(m.restUrl("schema/validator/output")).send({postId:t,graphs:e.currentPost.schema.graphs,customGraphs:e.currentPost.schema.customGraphs,defaultGraph:e.currentPost.schema.defaultGraph}).then(s=>{if(s.body.success&&s.body.output){let r=null;try{r=JSON.parse(s.body.output)}catch{return}if(s.body.output=JSON.stringify(r,null," ").trim(),s.body.output===this.output)return;this.output=s.body.output,this.outputKey=this.outputKey+1}})},updateTemplate(){this.graph.label=this.graph.graphName+" - "+this.templateName;const e=JSON.parse(JSON.stringify(this.graph)),t=A(),s=t.internalOptions.internal.schema.templates.findIndex(r=>r.id===this.graph.id);s!==-1&&(t.internalOptions.internal.schema.templates[s]=this.graph,this.resetSessionState(),this.setTabTemplates("your-templates"),p.put(m.restUrl("schema/templates")).send({template:e}).then(r=>{r.body.success&&r.body.templates&&this.parseAndUpdateTemplates(r.body.templates)}))},parseAndUpdateTemplates(e){e=e.map(s=>(typeof s!="string"||(s=JSON.parse(s)),s)),e=e.sort((s,r)=>{const n=s.custom?0:1;return s.graphName<r.graphName?-1:n});const t=A();t.internalOptions.internal.schema.templates=e},setModalOpen({isOpen:e,initialTab:t,isSidebar:s}){e||(this.resetSessionState(),this.setTabTemplates("schema-catalog")),s?this.modalOpenSidebar=e:this.modalOpenMetabox=e,t&&(this.tabs.generator=t)},setTabTemplates(e){this.tabs.generator="schema-templates",this.tabs.templates=e}}});const vr=()=>V().aioseo.user.locale.replace("_","-")||"en-US",vs={d:e=>gt(e.getDate()),D:e=>Es(e).substr(0,3),j:e=>e.getDate(),l:e=>Es(e),N:e=>e.getDay()||7,S:e=>Ri(e.getDate()),w:e=>e.getDay(),z:e=>{const t=e.getFullYear(),s=e.getMonth(),r=e.getDate();return Math.floor((Date.UTC(t,s,r)-Date.UTC(t,0,1))/864e5)},W:e=>xs(e)[1],F:e=>Ns(e),m:e=>gt(e.getMonth()+1),M:e=>Ns(e).substr(0,3),n:e=>e.getMonth()+1,t:e=>new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),L:e=>new Date(e.getFullYear(),1,29).getDate()===29?1:0,o:e=>xs(e)[0],Y:e=>{let t=e.getFullYear();return 0>t&&(t="-"+("000"+Math.abs(t)).slice(-4)),t},y:e=>{let t=e.getFullYear();return 0<=t?("0"+t).slice(-2):(t=Math.abs(t),-+("0"+t).slice(-2))},a:e=>12>e.getHours()?"am":"pm",A:e=>12>e.getHours()?"AM":"PM",B:e=>((+e+36e5)%864e5/86400).toFixed(0),g:e=>e.getHours()%12||12,G:e=>e.getHours(),h:e=>gt(e.getHours()%12||12),H:e=>gt(e.getHours()),i:e=>gt(e.getMinutes()),s:e=>gt(e.getSeconds()),u:()=>"000000",v:e=>Fi(e.getMilliseconds()),e:()=>0,I:e=>e.getTimezoneOffset()===Mi(e)[0]?0:1,O:e=>Ds(-e.getTimezoneOffset(),!1),P:e=>Ds(-e.getTimezoneOffset(),!0),T:e=>e.toLocaleString("en",{year:"numeric",timeZoneName:"long"}).replace(/[^A-Z]/g,""),Z:e=>e.getTimezoneOffset()*-60,c:e=>me(e,"Y-m-d\\TH:i:sP"),r:e=>me(e,"D, d M Y H:i:s O"),U:e=>e.getTime()/1e3|0},Es=e=>e.toLocaleString(vr(),{weekday:"long"}),Ns=e=>e.toLocaleString(vr(),{month:"long"}),Mi=e=>{const t=e.getFullYear(),s=[0,2,5,9].map(r=>new Date(t,r).getTimezoneOffset());return[Math.max(...s),Math.min(...s)]},Ri=e=>{e=e%100;const t=["th","st","nd","rd"];return(10>e||13<e)&&t[e%10]||"th"},xs=e=>{const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()));t.setUTCDate(t.getUTCDate()+4-(t.getUTCDay()||7));const s=new Date(Date.UTC(t.getUTCFullYear(),0,1)),r=Math.ceil(((t-s)/864e5+1)/7);return[t.getUTCFullYear(),r]},Li=e=>Object.prototype.toString.call(e)==="[object Date]",Ds=(e,t)=>{const s=0>e?"-":"+";e=Math.abs(e);const r=gt(e/60|0),n=gt(e%60);return s+r+(t?":":"")+n},gt=e=>(10>e?"0":"")+e,Fi=e=>(10>e?"00":100>e?"0":"")+e,me=(e,t)=>{if(!(!Li(e)||typeof t!="string"))return t.split("").reduce((s,r,n,i)=>(r==="\\"?s+=i.splice(n+1,1):r in vs?s+=vs[r](e):s+=r,s),"")},Vi=U("SearchStatisticsStore",{state:()=>({isConnected:!1,hasInitialized:!1,latestAvailableDate:null,unverifiedSite:!1,authedSite:null,range:{start:null,end:null,compareStart:null,compareEnd:null},rolling:null,loading:{seoStatistics:!1,keywords:!1,contentRankings:!1,postDetailSeoStatistics:!1,postDetailKeywords:!1},data:{seoStatistics:{statistics:{clicks:0,impressions:0,ctr:0,position:0,keywords:0,difference:{clicks:0,impressions:0,ctr:0,position:0}},intervals:[],pages:{topPages:{rows:[]},topWinning:{rows:[]},topLosing:{rows:[]},paginated:{rows:[],totals:{page:0,pages:0,total:0}}},timelineMarkers:{}},keywords:{distribution:[],distributionIntervals:[],topWinning:[],topLosing:[],topKeywords:[],paginated:{rows:[],totals:{page:0,pages:0,total:0}}},contentRankings:{paginated:{rows:[],totals:{page:0,pages:0,total:0}}},postDetail:{postId:0,seoStatistics:{intervals:[],statistics:{clicks:0,impressions:0,ctr:0,position:0,keywords:0,difference:{clicks:0,impressions:0,ctr:0,position:0}},timelineMarkers:{}},keywords:{paginated:{rows:[],totals:{page:0,pages:0,total:0}}}}}}),actions:{getAuthUrl(){return p.get(m.restUrl("search-statistics/url/auth")).then(e=>e.body.url)},getReauthUrl(){return p.get(m.restUrl("search-statistics/url/reauth")).then(e=>e.body.url)},deleteAuth({force:e}){return p.delete(m.restUrl("search-statistics/auth")).send({force:e}).then(t=>(t.body.success===!0&&(this.isConnected=!1),t.body))},setDateRange(e){const t={start:me(e.dateRange[0],"Y-m-d"),end:me(e.dateRange[1],"Y-m-d")};this.range=t,this.rolling=e.rolling,this.updateSeoStatistics({filter:"all",searchTerm:""}),this.updateKeywords({filter:"all",searchTerm:""}),this.updateContentRankings({searchTerm:""})},loadInitialData(){var e,t,s,r,n,i,o,a;this.hasInitialized||(this.hasInitialized=!0,(t=(e=this.data.seoStatistics)==null?void 0:e.statistics)!=null&&t.impressions||this.updateSeoStatistics({filter:"all",searchTerm:""}),(n=(r=(s=this.data.keywords)==null?void 0:s.paginated)==null?void 0:r.rows)!=null&&n.length||this.updateKeywords({filter:"all",searchTerm:""}),(a=(o=(i=this.data.contentRankings)==null?void 0:i.paginated)==null?void 0:o.totals)!=null&&a.total||this.updateContentRankings({searchTerm:""}))},updateSeoStatistics(e){return this.loading.seoStatistics=!0,p.get(m.restUrl("search-statistics/stats/seo-statistics")).query({startDate:this.range.start,endDate:this.range.end,rolling:this.rolling,...e}).then(t=>{t.body.success&&(this.range=t.body.range,this.data.seoStatistics=t.body.data)}).finally(()=>{this.loading.seoStatistics=!1})},updateKeywords(e){return this.loading.keywords=!0,p.get(m.restUrl("search-statistics/stats/keywords")).query({startDate:this.range.start,endDate:this.range.end,rolling:this.rolling,...e}).then(t=>{t.body.success&&(this.range=t.body.range,this.data.keywords=t.body.data)}).finally(()=>{this.loading.keywords=!1})},updateContentRankings(e){return this.loading.contentRankings=!0,p.get(m.restUrl("search-statistics/stats/content-rankings")).query({endDate:this.latestAvailableDate,...e}).then(t=>{t.body.success&&(this.data.contentRankings=t.body.data)}).finally(()=>{this.loading.contentRankings=!1})},getPagesByKeywords(e){return p.post(m.restUrl("search-statistics/stats/keywords/posts")).send({startDate:this.range.start,endDate:this.range.end,keywords:e}).then(t=>t.body.data)},getPostDetail(e){return p.get(m.restUrl("search-statistics/post-detail")).query({startDate:this.range.start,endDate:this.range.end,postId:e}).then(t=>t)},getPostDetailFocusKeywordTrend({focusKeyword:e}){return p.get(m.restUrl("search-statistics/post-detail/focus-keyword")).query({startDate:this.range.start,endDate:this.range.end,postId:this.data.postDetail.postId,focusKeyword:e}).then(t=>t)},updatePostDetailSeoStatistics(e){return this.loading.postDetailSeoStatistics=!0,p.get(m.restUrl("search-statistics/post-detail/seo-statistics")).query({startDate:this.range.start,endDate:this.range.end,rolling:this.rolling,postId:this.data.postDetail.postId,...e}).then(t=>{t.body.success&&(this.data.postDetail.seoStatistics=t.body.data)}).finally(()=>{this.loading.postDetailSeoStatistics=!1})},updatePostDetailKeywords(e){return this.loading.postDetailKeywords=!0,p.get(m.restUrl("search-statistics/post-detail/keywords")).query({startDate:this.range.start,endDate:this.range.end,rolling:this.rolling,postId:this.data.postDetail.postId,...e}).then(t=>{t.body.success&&(this.data.postDetail.keywords=t.body.data)}).finally(()=>{this.loading.postDetailKeywords=!1})},getPageSpeed(e){return p.get(m.restUrl("search-statistics/pagespeed")).query(e).then(t=>t)},updateSeoRevision(e){const t=this.data.postDetail.seoStatistics.timelineMarkers;Object.keys(t).forEach(s=>{t[s].forEach((r,n)=>{r.type==="aioseoRevision"&&(t[s][n].revisions=t[s][n].revisions.map(i=>i.id===e[0].id?e[0]:i))})}),this.data.postDetail.seoStatistics.timelineMarkers=t},deleteSeoRevision(e){const t=this.data.postDetail.seoStatistics.timelineMarkers;Object.keys(t).forEach(s=>{t[s].forEach((r,n)=>{r.type==="aioseoRevision"&&(t[s][n].revisions=t[s][n].revisions.filter(i=>i.id!==e.id))})}),this.data.postDetail.seoStatistics.timelineMarkers=t}}}),zi=U("SeoRevisionsStore",{state:()=>({items:[],currentUser:{avatar:null,display_name:null},itemFrom:{},itemTo:{},noteMaxLength:0,itemsLimit:0,itemsTotalCount:0,seoRevisionsDiff:{},seoRevisionsDiffCache:{}}),actions:{delete(e){return p.delete(m.restUrl(`seo-revisions/${e}`)).then(t=>(this.itemsTotalCount=t.body.itemsTotalCount,t))},fetch(e={},t=!1){const s=P();return p.get(m.restUrl("seo-revisions/"+s.currentPost.context+"/"+s.currentPost.id)).query(e).then(r=>{if(this.itemsTotalCount=r.body.itemsTotalCount,t)for(const n of r.body.items)this.items.push(n);else this.items=r.body.items;return r})},update({id:e,payload:t}){return p.post(m.restUrl(`seo-revisions/${e}/`)).send(t).then(s=>s)},restore({id:e}){return p.post(m.restUrl(`seo-revisions/restore/${e}/`)).then(t=>t)},fetchDiff(e){const t=e.fromId+"-"+e.toId;return new Promise(s=>{this.seoRevisionsDiffCache[t]?(this.seoRevisionsDiff=this.seoRevisionsDiffCache[t],s({})):p.get(m.restUrl("seo-revisions/diff")).query(e).then(r=>{this.seoRevisionsDiff=r.body.diff,this.seoRevisionsDiffCache={key:t,value:r.body.diff},s(r)})})}}}),qi=U("SettingsStore",{state:()=>({settings:{},metaBoxTabs:{mainSidebar:{},main:"general",modal:"general",social:"facebook",socialModal:"facebook",linkAssistant:"inbound-internal"},modals:{aiGenerator:!1},userProfile:{}}),actions:{closeCard(e){this.settings.toggledCards[e]=!1},changeTabSettings({setting:e,value:t}){this.metaBoxTabs[e]=t},setModalState({modalName:e,value:t}){this.modals[e]=t},toggleCard({slug:e,shouldSave:t}){this.settings.toggledCards[e]=!this.settings.toggledCards[e],t&&p.post(m.restUrl("settings/toggle-card")).send({card:e}).then(()=>{})},toggleRadio({slug:e,value:t}){this.settings.toggledRadio[e]=t,p.post(m.restUrl("settings/toggle-radio")).send({radio:e,value:t}).then(()=>{})},dismissAlert(e){this.settings.dismissedAlerts[e]=!0,p.post(m.restUrl("settings/dismiss-alert")).send({alert:e}).then(()=>{})},changeItemsPerPage({slug:e,value:t}){return this.settings.tablePagination[e]=t,p.post(m.restUrl("settings/items-per-page")).send({table:e,value:t}).then(()=>{})},changeTab({slug:e,value:t}){this.settings.internalTabs[e]=t},hideUpgradeBar(){return this.settings.showUpgradeBar=!1,p.post(m.restUrl("settings/hide-upgrade-bar")).send({}).then(()=>{})},hideSetupWizard(){return this.settings.showSetupWizard=!1,p.post(m.restUrl("settings/hide-setup-wizard")).send({}).then(()=>{})}}}),Hi=U("SetupWizardStore",{state:()=>({currentStage:"welcome",stages:["import","category","additional-information","features","search-appearance","smart-recommendations","license-key"],importers:[],category:{category:"blog",categoryOther:null,siteTitle:"",metaDescription:""},additionalInformation:{siteRepresents:"organization",person:null,organizationName:null,organizationLogo:null,personName:null,personLogo:null,phone:null,contactType:null,contactTypeManual:null,socialShareImage:null,social:{profiles:{sameUsername:{enable:!0,username:null,included:["facebookPageUrl","twitterUrl","pinterestUrl","instagramUrl","youtubeUrl","linkedinUrl"]},urls:{facebookPageUrl:null,twitterUrl:null,instagramUrl:null,pinterestUrl:null,youtubeUrl:null,linkedinUrl:null,tumblrUrl:null,yelpPageUrl:null,soundCloudUrl:null,wikipediaUrl:null,myspaceUrl:null,googlePlacesUrl:null}}}},features:[],searchAppearance:{underConstruction:!1,postTypes:{postTypes:{all:!0,included:["post","page","attachment","product"]}},multipleAuthors:!0,redirectAttachmentPages:!0},smartRecommendations:{accountInfo:null,usageTracking:!0},licenseKey:null}),getters:{shouldShowImportStep:()=>V().aioseo.importers.filter(t=>t.canImport).length,getNextLink:e=>{const t={name:e.stages[0]},s=e.stages.findIndex(r=>r===e.currentStage);return s===-1||(t.name=e.stages[s+1]?e.stages[s+1]:"success"),t},getPrevLink:e=>{const t={name:e.stages[0]},s=e.stages.findIndex(r=>r===e.currentStage);return s===-1||(t.name=e.stages[s-1]?e.stages[s-1]:"welcome"),t},getCurrentStageCount:e=>{const t=e.stages.findIndex(s=>s===e.currentStage);return t===-1?e.currentStage==="success"?e.getTotalStageCount:0:t+1},getTotalStageCount:e=>e.stages.length},actions:{saveWizard(e){const t=V();return p.post(m.restUrl("wizard")).send({section:e,wizard:{...this.$state},network:t.aioseo.data.isNetworkAdmin}).then(s=>{if(s.body.options){const r=Et(),n=A();n.options=s.body.options,r.updateOriginalOptions("options",s.body.options)}})},loadState(e){Object.keys(e).forEach(t=>{this[t]=e[t]})}}}),ji=U("TagsStore",{state:()=>({tags:[],context:{},liveTags:{post_title:"",post_content:"",post_excerpt:"",taxonomy_title:"",taxonomy_description:"",custom_field:[],permalink:"",attachment_caption:"",attachment_description:"",alt_tag:"",categories:"",woocommerce_brand:"",woocommerce_sku:"",woocommerce_price:""},permalinkSlug:null}),actions:{getTags(){return p.get(m.restUrl("tags")).then(e=>{this.tags=e.body.tags})},updateTaxonomyTitle(e){this.liveTags.taxonomy_title=e},updateTaxonomyDescription(e){this.liveTags.taxonomy_description=e},updatePermalink(e){this.liveTags.permalink=e},updatePostTitle(e){this.liveTags.post_title=e},updatePostContent(e){this.liveTags.post_content=e},updatePostExcerpt(e){this.liveTags.post_excerpt=e},updateAttachmentCaption(e){this.liveTags.attachment_caption=e},updateAttachmentDescription(e){this.liveTags.attachment_description=e},updateAltTag(e){this.liveTags.alt_tag=e},updateCategories(e){this.liveTags.categories=e},updateWooCommerceBrand(e){this.liveTags.woocommerce_brand=e},updateWooCommerceSku(e){this.liveTags.woocommerce_sku=e},updateWooCommercePrice(e){this.liveTags.woocommerce_price=e},updatePermalinkSlug(e){this.permalinkSlug=e}}}),Nl=U("ToolsStore",{actions:{clearLog(e){return p.post(m.restUrl("clear-log")).send({log:e}).then(t=>{const s=V();s.aioseo.data.logSizes[e]=t.body.logSize})},emailDebugInfo(e){return p.post(m.restUrl("email-debug-info")).send({email:e})},doTask({action:e,data:t,siteId:s}){const r=V();return p.post(m.restUrl("settings/do-task")).send({action:e,data:t,siteId:s,network:r.aioseo.data.isNetworkAdmin}).then(n=>{if(!(n!=null&&n.statusCode)||n.statusCode===400)return Promise.reject(new Error(`Task ${e} could not be completed.`))})},uploadFile({file:e,filename:t,siteId:s}){return p.post(m.restUrl(`settings/import/${s||""}`)).attach("file",e,t).then(r=>{if(r.body.license&&!s){const i=Ee();i.license=r.body.license,i.clearLicenseNotices()}const n=A();n.options=r.body.options})},exportSettings(e){return p.post(m.restUrl("settings/export")).send(e)},resetSettings({payload:e,siteId:t}){return p.post(m.restUrl("reset-settings")).send({settings:e,siteId:t})},importPlugins(e){return p.post(m.restUrl("settings/import-plugins")).send(e)}}}),xl=U("TableOfContentsStore",{state:()=>({blockClientId:null,headings:[],listStyle:"ul",reOrdered:!1}),actions:{setHeadings(e){this.headings=e}}});class Nt extends Error{}class Zi extends Nt{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class Wi extends Nt{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class Gi extends Nt{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Zt extends Nt{}class Er extends Nt{constructor(t){super(`Invalid unit ${t}`)}}class tt extends Nt{}class ft extends Nt{constructor(){super("Zone is an abstract class")}}const S="numeric",ot="short",K="long",ge={year:S,month:S,day:S},Nr={year:S,month:ot,day:S},Ji={year:S,month:ot,day:S,weekday:ot},xr={year:S,month:K,day:S},Dr={year:S,month:K,day:S,weekday:K},Cr={hour:S,minute:S},$r={hour:S,minute:S,second:S},Ir={hour:S,minute:S,second:S,timeZoneName:ot},_r={hour:S,minute:S,second:S,timeZoneName:K},Pr={hour:S,minute:S,hourCycle:"h23"},Ar={hour:S,minute:S,second:S,hourCycle:"h23"},Ur={hour:S,minute:S,second:S,hourCycle:"h23",timeZoneName:ot},Mr={hour:S,minute:S,second:S,hourCycle:"h23",timeZoneName:K},Rr={year:S,month:S,day:S,hour:S,minute:S},Lr={year:S,month:S,day:S,hour:S,minute:S,second:S},Fr={year:S,month:ot,day:S,hour:S,minute:S},Vr={year:S,month:ot,day:S,hour:S,minute:S,second:S},Bi={year:S,month:ot,day:S,weekday:ot,hour:S,minute:S},zr={year:S,month:K,day:S,hour:S,minute:S,timeZoneName:ot},qr={year:S,month:K,day:S,hour:S,minute:S,second:S,timeZoneName:ot},Hr={year:S,month:K,day:S,weekday:K,hour:S,minute:S,timeZoneName:K},jr={year:S,month:K,day:S,weekday:K,hour:S,minute:S,second:S,timeZoneName:K};class te{get type(){throw new ft}get name(){throw new ft}get ianaName(){return this.name}get isUniversal(){throw new ft}offsetName(t,s){throw new ft}formatOffset(t,s){throw new ft}offset(t){throw new ft}equals(t){throw new ft}get isValid(){throw new ft}}let Ae=null;class Ne extends te{static get instance(){return Ae===null&&(Ae=new Ne),Ae}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:s,locale:r}){return Wr(t,s,r)}formatOffset(t,s){return Bt(this.offset(t),s)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let ce={};function Ki(e){return ce[e]||(ce[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),ce[e]}const Yi={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Qi(e,t){const s=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(s),[,n,i,o,a,l,u,g]=r;return[o,n,i,a,l,u,g]}function Xi(e,t){const s=e.formatToParts(t),r=[];for(let n=0;n<s.length;n++){const{type:i,value:o}=s[n],a=Yi[i];i==="era"?r[a]=o:C(a)||(r[a]=parseInt(o,10))}return r}let ne={};class ut extends te{static create(t){return ne[t]||(ne[t]=new ut(t)),ne[t]}static resetCache(){ne={},ce={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=ut.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:s,locale:r}){return Wr(t,s,r,this.name)}formatOffset(t,s){return Bt(this.offset(t),s)}offset(t){const s=new Date(t);if(isNaN(s))return NaN;const r=Ki(this.name);let[n,i,o,a,l,u,g]=r.formatToParts?Xi(r,s):Qi(r,s);a==="BC"&&(n=-Math.abs(n)+1);const T=us({year:n,month:i,day:o,hour:l===24?0:l,minute:u,second:g,millisecond:0});let w=+s;const D=w%1e3;return w-=D>=0?D:1e3+D,(T-w)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let Cs={};function to(e,t={}){const s=JSON.stringify([e,t]);let r=Cs[s];return r||(r=new Intl.ListFormat(e,t),Cs[s]=r),r}let Ge={};function Je(e,t={}){const s=JSON.stringify([e,t]);let r=Ge[s];return r||(r=new Intl.DateTimeFormat(e,t),Ge[s]=r),r}let Be={};function eo(e,t={}){const s=JSON.stringify([e,t]);let r=Be[s];return r||(r=new Intl.NumberFormat(e,t),Be[s]=r),r}let Ke={};function so(e,t={}){const{base:s,...r}=t,n=JSON.stringify([e,r]);let i=Ke[n];return i||(i=new Intl.RelativeTimeFormat(e,t),Ke[n]=i),i}let Wt=null;function ro(){return Wt||(Wt=new Intl.DateTimeFormat().resolvedOptions().locale,Wt)}function no(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const s=e.indexOf("-u-");if(s===-1)return[e];{let r,n;try{r=Je(e).resolvedOptions(),n=e}catch{const l=e.substring(0,s);r=Je(l).resolvedOptions(),n=l}const{numberingSystem:i,calendar:o}=r;return[n,i,o]}}function io(e,t,s){return(s||t)&&(e.includes("-u-")||(e+="-u"),s&&(e+=`-ca-${s}`),t&&(e+=`-nu-${t}`)),e}function oo(e){const t=[];for(let s=1;s<=12;s++){const r=E.utc(2016,s,1);t.push(e(r))}return t}function ao(e){const t=[];for(let s=1;s<=7;s++){const r=E.utc(2016,11,13+s);t.push(e(r))}return t}function ie(e,t,s,r,n){const i=e.listingMode(s);return i==="error"?null:i==="en"?r(t):n(t)}function lo(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class uo{constructor(t,s,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:n,floor:i,...o}=r;if(!s||Object.keys(o).length>0){const a={useGrouping:!1,...r};r.padTo>0&&(a.minimumIntegerDigits=r.padTo),this.inf=eo(t,a)}}format(t){if(this.inf){const s=this.floor?Math.floor(t):t;return this.inf.format(s)}else{const s=this.floor?Math.floor(t):ls(t,3);return q(s,this.padTo)}}}class co{constructor(t,s,r){this.opts=r,this.originalZone=void 0;let n;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const o=-1*(t.offset/60),a=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;t.offset!==0&&ut.create(a).valid?(n=a,this.dt=t):(n="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,n=t.zone.name):(n="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const i={...this.opts};i.timeZone=i.timeZone||n,this.dtf=Je(s,i)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(s=>{if(s.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...s,value:r}}else return s}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class ho{constructor(t,s,r){this.opts={style:"long",...r},!s&&Zr()&&(this.rtf=so(t,r))}format(t,s){return this.rtf?this.rtf.format(t,s):Co(s,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,s){return this.rtf?this.rtf.formatToParts(t,s):[]}}class M{static fromOpts(t){return M.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,s,r,n=!1){const i=t||z.defaultLocale,o=i||(n?"en-US":ro()),a=s||z.defaultNumberingSystem,l=r||z.defaultOutputCalendar;return new M(o,a,l,i)}static resetCache(){Wt=null,Ge={},Be={},Ke={}}static fromObject({locale:t,numberingSystem:s,outputCalendar:r}={}){return M.create(t,s,r)}constructor(t,s,r,n){const[i,o,a]=no(t);this.locale=i,this.numberingSystem=s||o||null,this.outputCalendar=r||a||null,this.intl=io(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=lo(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),s=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&s?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:M.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,s=!1,r=!0){return ie(this,t,r,Br,()=>{const n=s?{month:t,day:"numeric"}:{month:t},i=s?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=oo(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,s=!1,r=!0){return ie(this,t,r,Qr,()=>{const n=s?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=s?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=ao(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(t=!0){return ie(this,void 0,t,()=>Xr,()=>{if(!this.meridiemCache){const s={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[E.utc(2016,11,13,9),E.utc(2016,11,13,19)].map(r=>this.extract(r,s,"dayperiod"))}return this.meridiemCache})}eras(t,s=!0){return ie(this,t,s,tn,()=>{const r={era:t};return this.eraCache[t]||(this.eraCache[t]=[E.utc(-40,1,1),E.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,s,r){const n=this.dtFormatter(t,s),i=n.formatToParts(),o=i.find(a=>a.type.toLowerCase()===r);return o?o.value:null}numberFormatter(t={}){return new uo(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,s={}){return new co(t,this.intl,s)}relFormatter(t={}){return new ho(this.intl,this.isEnglish(),t)}listFormatter(t={}){return to(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let Ue=null;class J extends te{static get utcInstance(){return Ue===null&&(Ue=new J(0)),Ue}static instance(t){return t===0?J.utcInstance:new J(t)}static parseSpecifier(t){if(t){const s=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(s)return new J(De(s[1],s[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Bt(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Bt(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,s){return Bt(this.fixed,s)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class fo extends te{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function wt(e,t){if(C(e)||e===null)return t;if(e instanceof te)return e;if(po(e)){const s=e.toLowerCase();return s==="default"?t:s==="local"||s==="system"?Ne.instance:s==="utc"||s==="gmt"?J.utcInstance:J.parseSpecifier(s)||ut.create(e)}else return Tt(e)?J.instance(e):typeof e=="object"&&e.offset&&typeof e.offset=="number"?e:new fo(e)}let $s=()=>Date.now(),Is="system",_s=null,Ps=null,As=null,Us=60,Ms;class z{static get now(){return $s}static set now(t){$s=t}static set defaultZone(t){Is=t}static get defaultZone(){return wt(Is,Ne.instance)}static get defaultLocale(){return _s}static set defaultLocale(t){_s=t}static get defaultNumberingSystem(){return Ps}static set defaultNumberingSystem(t){Ps=t}static get defaultOutputCalendar(){return As}static set defaultOutputCalendar(t){As=t}static get twoDigitCutoffYear(){return Us}static set twoDigitCutoffYear(t){Us=t%100}static get throwOnInvalid(){return Ms}static set throwOnInvalid(t){Ms=t}static resetCaches(){M.resetCache(),ut.resetCache()}}function C(e){return typeof e>"u"}function Tt(e){return typeof e=="number"}function xe(e){return typeof e=="number"&&e%1===0}function po(e){return typeof e=="string"}function mo(e){return Object.prototype.toString.call(e)==="[object Date]"}function Zr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function go(e){return Array.isArray(e)?e:[e]}function Rs(e,t,s){if(e.length!==0)return e.reduce((r,n)=>{const i=[t(n),n];return r&&s(r[0],i[0])===r[0]?r:i},null)[1]}function yo(e,t){return t.reduce((s,r)=>(s[r]=e[r],s),{})}function Rt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function lt(e,t,s){return xe(e)&&e>=t&&e<=s}function wo(e,t){return e-t*Math.floor(e/t)}function q(e,t=2){const s=e<0;let r;return s?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function yt(e){if(!(C(e)||e===null||e===""))return parseInt(e,10)}function bt(e){if(!(C(e)||e===null||e===""))return parseFloat(e)}function as(e){if(!(C(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function ls(e,t,s=!1){const r=10**t;return(s?Math.trunc:Math.round)(e*r)/r}function ee(e){return e%4===0&&(e%100!==0||e%400===0)}function Jt(e){return ee(e)?366:365}function ye(e,t){const s=wo(t-1,12)+1,r=e+(t-s)/12;return s===2?ee(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][s-1]}function us(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function we(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,s=e-1,r=(s+Math.floor(s/4)-Math.floor(s/100)+Math.floor(s/400))%7;return t===4||r===3?53:52}function Ye(e){return e>99?e:e>z.twoDigitCutoffYear?1900+e:2e3+e}function Wr(e,t,s,r=null){const n=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const o={timeZoneName:t,...i},a=new Intl.DateTimeFormat(s,o).formatToParts(n).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function De(e,t){let s=parseInt(e,10);Number.isNaN(s)&&(s=0);const r=parseInt(t,10)||0,n=s<0||Object.is(s,-0)?-r:r;return s*60+n}function Gr(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new tt(`Invalid unit value ${e}`);return t}function Se(e,t){const s={};for(const r in e)if(Rt(e,r)){const n=e[r];if(n==null)continue;s[t(r)]=Gr(n)}return s}function Bt(e,t){const s=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),n=e>=0?"+":"-";switch(t){case"short":return`${n}${q(s,2)}:${q(r,2)}`;case"narrow":return`${n}${s}${r>0?`:${r}`:""}`;case"techie":return`${n}${q(s,2)}${q(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Ce(e){return yo(e,["hour","minute","second","millisecond"])}const So=["January","February","March","April","May","June","July","August","September","October","November","December"],Jr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],bo=["J","F","M","A","M","J","J","A","S","O","N","D"];function Br(e){switch(e){case"narrow":return[...bo];case"short":return[...Jr];case"long":return[...So];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Kr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Yr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ko=["M","T","W","T","F","S","S"];function Qr(e){switch(e){case"narrow":return[...ko];case"short":return[...Yr];case"long":return[...Kr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Xr=["AM","PM"],Oo=["Before Christ","Anno Domini"],To=["BC","AD"],vo=["B","A"];function tn(e){switch(e){case"narrow":return[...vo];case"short":return[...To];case"long":return[...Oo];default:return null}}function Eo(e){return Xr[e.hour<12?0:1]}function No(e,t){return Qr(t)[e.weekday-1]}function xo(e,t){return Br(t)[e.month-1]}function Do(e,t){return tn(t)[e.year<0?0:1]}function Co(e,t,s="always",r=!1){const n={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(e)===-1;if(s==="auto"&&i){const k=e==="days";switch(t){case 1:return k?"tomorrow":`next ${n[e][0]}`;case-1:return k?"yesterday":`last ${n[e][0]}`;case 0:return k?"today":`this ${n[e][0]}`}}const o=Object.is(t,-0)||t<0,a=Math.abs(t),l=a===1,u=n[e],g=r?l?u[1]:u[2]||u[1]:l?n[e][0]:e;return o?`${a} ${g} ago`:`in ${a} ${g}`}function Ls(e,t){let s="";for(const r of e)r.literal?s+=r.val:s+=t(r.val);return s}const $o={D:ge,DD:Nr,DDD:xr,DDDD:Dr,t:Cr,tt:$r,ttt:Ir,tttt:_r,T:Pr,TT:Ar,TTT:Ur,TTTT:Mr,f:Rr,ff:Fr,fff:zr,ffff:Hr,F:Lr,FF:Vr,FFF:qr,FFFF:jr};class W{static create(t,s={}){return new W(t,s)}static parseFormat(t){let s=null,r="",n=!1;const i=[];for(let o=0;o<t.length;o++){const a=t.charAt(o);a==="'"?(r.length>0&&i.push({literal:n||/^\s+$/.test(r),val:r}),s=null,r="",n=!n):n||a===s?r+=a:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=a,s=a)}return r.length>0&&i.push({literal:n||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(t){return $o[t]}constructor(t,s){this.opts=s,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,s){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...s}).format()}formatDateTime(t,s={}){return this.loc.dtFormatter(t,{...this.opts,...s}).format()}formatDateTimeParts(t,s={}){return this.loc.dtFormatter(t,{...this.opts,...s}).formatToParts()}formatInterval(t,s={}){return this.loc.dtFormatter(t.start,{...this.opts,...s}).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,s={}){return this.loc.dtFormatter(t,{...this.opts,...s}).resolvedOptions()}num(t,s=0){if(this.opts.forceSimple)return q(t,s);const r={...this.opts};return s>0&&(r.padTo=s),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,s){const r=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(w,D)=>this.loc.extract(t,w,D),o=w=>t.isOffsetFixed&&t.offset===0&&w.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,w.format):"",a=()=>r?Eo(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(w,D)=>r?xo(t,w):i(D?{month:w}:{month:w,day:"numeric"},"month"),u=(w,D)=>r?No(t,w):i(D?{weekday:w}:{weekday:w,month:"long",day:"numeric"},"weekday"),g=w=>{const D=W.macroTokenToFormatOpts(w);return D?this.formatWithSystemDefault(t,D):w},k=w=>r?Do(t,w):i({era:w},"era"),T=w=>{switch(w){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return n?i({day:"numeric"},"day"):this.num(t.day);case"dd":return n?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return n?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return n?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return n?i({month:"numeric"},"month"):this.num(t.month);case"MM":return n?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return n?i({year:"numeric"},"year"):this.num(t.year);case"yy":return n?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return n?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return n?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return k("short");case"GG":return k("long");case"GGGGG":return k("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return g(w)}};return Ls(W.parseFormat(s),T)}formatDurationFromString(t,s){const r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},n=l=>u=>{const g=r(u);return g?this.num(l.get(g),u.length):u},i=W.parseFormat(s),o=i.reduce((l,{literal:u,val:g})=>u?l:l.concat(g),[]),a=t.shiftTo(...o.map(r).filter(l=>l));return Ls(i,n(a))}}class it{constructor(t,s){this.reason=t,this.explanation=s}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const en=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Lt(...e){const t=e.reduce((s,r)=>s+r.source,"");return RegExp(`^${t}$`)}function Ft(...e){return t=>e.reduce(([s,r,n],i)=>{const[o,a,l]=i(t,n);return[{...s,...o},a||r,l]},[{},null,1]).slice(0,2)}function Vt(e,...t){if(e==null)return[null,null];for(const[s,r]of t){const n=s.exec(e);if(n)return r(n)}return[null,null]}function sn(...e){return(t,s)=>{const r={};let n;for(n=0;n<e.length;n++)r[e[n]]=yt(t[s+n]);return[r,null,s+n]}}const rn=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Io=`(?:${rn.source}?(?:\\[(${en.source})\\])?)?`,cs=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,nn=RegExp(`${cs.source}${Io}`),ds=RegExp(`(?:T${nn.source})?`),_o=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Po=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ao=/(\d{4})-?(\d{3})/,Uo=sn("weekYear","weekNumber","weekDay"),Mo=sn("year","ordinal"),Ro=/(\d{4})-(\d\d)-(\d\d)/,on=RegExp(`${cs.source} ?(?:${rn.source}|(${en.source}))?`),Lo=RegExp(`(?: ${on.source})?`);function At(e,t,s){const r=e[t];return C(r)?s:yt(r)}function Fo(e,t){return[{year:At(e,t),month:At(e,t+1,1),day:At(e,t+2,1)},null,t+3]}function zt(e,t){return[{hours:At(e,t,0),minutes:At(e,t+1,0),seconds:At(e,t+2,0),milliseconds:as(e[t+3])},null,t+4]}function se(e,t){const s=!e[t]&&!e[t+1],r=De(e[t+1],e[t+2]),n=s?null:J.instance(r);return[{},n,t+3]}function re(e,t){const s=e[t]?ut.create(e[t]):null;return[{},s,t+1]}const Vo=RegExp(`^T?${cs.source}$`),zo=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function qo(e){const[t,s,r,n,i,o,a,l,u]=e,g=t[0]==="-",k=l&&l[0]==="-",T=(w,D=!1)=>w!==void 0&&(D||w&&g)?-w:w;return[{years:T(bt(s)),months:T(bt(r)),weeks:T(bt(n)),days:T(bt(i)),hours:T(bt(o)),minutes:T(bt(a)),seconds:T(bt(l),l==="-0"),milliseconds:T(as(u),k)}]}const Ho={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function hs(e,t,s,r,n,i,o){const a={year:t.length===2?Ye(yt(t)):yt(t),month:Jr.indexOf(s)+1,day:yt(r),hour:yt(n),minute:yt(i)};return o&&(a.second=yt(o)),e&&(a.weekday=e.length>3?Kr.indexOf(e)+1:Yr.indexOf(e)+1),a}const jo=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Zo(e){const[,t,s,r,n,i,o,a,l,u,g,k]=e,T=hs(t,n,r,s,i,o,a);let w;return l?w=Ho[l]:u?w=0:w=De(g,k),[T,new J(w)]}function Wo(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Go=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Jo=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Bo=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Fs(e){const[,t,s,r,n,i,o,a]=e;return[hs(t,n,r,s,i,o,a),J.utcInstance]}function Ko(e){const[,t,s,r,n,i,o,a]=e;return[hs(t,a,s,r,n,i,o),J.utcInstance]}const Yo=Lt(_o,ds),Qo=Lt(Po,ds),Xo=Lt(Ao,ds),ta=Lt(nn),an=Ft(Fo,zt,se,re),ea=Ft(Uo,zt,se,re),sa=Ft(Mo,zt,se,re),ra=Ft(zt,se,re);function na(e){return Vt(e,[Yo,an],[Qo,ea],[Xo,sa],[ta,ra])}function ia(e){return Vt(Wo(e),[jo,Zo])}function oa(e){return Vt(e,[Go,Fs],[Jo,Fs],[Bo,Ko])}function aa(e){return Vt(e,[zo,qo])}const la=Ft(zt);function ua(e){return Vt(e,[Vo,la])}const ca=Lt(Ro,Lo),da=Lt(on),ha=Ft(zt,se,re);function fa(e){return Vt(e,[ca,an],[da,ha])}const pa="Invalid Duration",ln={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},ma={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...ln},X=146097/400,$t=146097/4800,ga={years:{quarters:4,months:12,weeks:X/7,days:X,hours:X*24,minutes:X*24*60,seconds:X*24*60*60,milliseconds:X*24*60*60*1e3},quarters:{months:3,weeks:X/28,days:X/4,hours:X*24/4,minutes:X*24*60/4,seconds:X*24*60*60/4,milliseconds:X*24*60*60*1e3/4},months:{weeks:$t/7,days:$t,hours:$t*24,minutes:$t*24*60,seconds:$t*24*60*60,milliseconds:$t*24*60*60*1e3},...ln},kt=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ya=kt.slice(0).reverse();function pt(e,t,s=!1){const r={values:s?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new $(r)}function wa(e){return e<0?Math.floor(e):Math.ceil(e)}function un(e,t,s,r,n){const i=e[n][s],o=t[s]/i,a=Math.sign(o)===Math.sign(r[n]),l=!a&&r[n]!==0&&Math.abs(o)<=1?wa(o):Math.trunc(o);r[n]+=l,t[s]-=l*i}function Sa(e,t){ya.reduce((s,r)=>C(t[r])?s:(s&&un(e,t,s,t,r),r),null)}function ba(e){const t={};for(const[s,r]of Object.entries(e))r!==0&&(t[s]=r);return t}class ${constructor(t){const s=t.conversionAccuracy==="longterm"||!1;let r=s?ga:ma;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||M.create(),this.conversionAccuracy=s?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,s){return $.fromObject({milliseconds:t},s)}static fromObject(t,s={}){if(t==null||typeof t!="object")throw new tt(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new $({values:Se(t,$.normalizeUnit),loc:M.fromObject(s),conversionAccuracy:s.conversionAccuracy,matrix:s.matrix})}static fromDurationLike(t){if(Tt(t))return $.fromMillis(t);if($.isDuration(t))return t;if(typeof t=="object")return $.fromObject(t);throw new tt(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,s){const[r]=aa(t);return r?$.fromObject(r,s):$.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,s){const[r]=ua(t);return r?$.fromObject(r,s):$.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,s=null){if(!t)throw new tt("need to specify a reason the Duration is invalid");const r=t instanceof it?t:new it(t,s);if(z.throwOnInvalid)throw new Gi(r);return new $({invalid:r})}static normalizeUnit(t){const s={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!s)throw new Er(t);return s}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,s={}){const r={...s,floor:s.round!==!1&&s.floor!==!1};return this.isValid?W.create(this.loc,r).formatDurationFromString(this,t):pa}toHuman(t={}){const s=kt.map(r=>{const n=this.values[r];return C(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(n)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(s)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=ls(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const s=this.toMillis();if(s<0||s>=864e5)return null;t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t};const r=this.shiftTo("hours","minutes","seconds","milliseconds");let n=t.format==="basic"?"hhmm":"hh:mm";(!t.suppressSeconds||r.seconds!==0||r.milliseconds!==0)&&(n+=t.format==="basic"?"ss":":ss",(!t.suppressMilliseconds||r.milliseconds!==0)&&(n+=".SSS"));let i=r.toFormat(n);return t.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const s=$.fromDurationLike(t),r={};for(const n of kt)(Rt(s.values,n)||Rt(this.values,n))&&(r[n]=s.get(n)+this.get(n));return pt(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const s=$.fromDurationLike(t);return this.plus(s.negate())}mapUnits(t){if(!this.isValid)return this;const s={};for(const r of Object.keys(this.values))s[r]=Gr(t(this.values[r],r));return pt(this,{values:s},!0)}get(t){return this[$.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const s={...this.values,...Se(t,$.normalizeUnit)};return pt(this,{values:s})}reconfigure({locale:t,numberingSystem:s,conversionAccuracy:r,matrix:n}={}){const o={loc:this.loc.clone({locale:t,numberingSystem:s}),matrix:n,conversionAccuracy:r};return pt(this,o)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Sa(this.matrix,t),pt(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=ba(this.normalize().shiftToAll().toObject());return pt(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(o=>$.normalizeUnit(o));const s={},r={},n=this.toObject();let i;for(const o of kt)if(t.indexOf(o)>=0){i=o;let a=0;for(const u in r)a+=this.matrix[u][o]*r[u],r[u]=0;Tt(n[o])&&(a+=n[o]);const l=Math.trunc(a);s[o]=l,r[o]=(a*1e3-l*1e3)/1e3;for(const u in n)kt.indexOf(u)>kt.indexOf(o)&&un(this.matrix,n,u,s,o)}else Tt(n[o])&&(r[o]=n[o]);for(const o in r)r[o]!==0&&(s[i]+=o===i?r[o]:r[o]/this.matrix[i][o]);return pt(this,{values:s},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const s of Object.keys(this.values))t[s]=this.values[s]===0?0:-this.values[s];return pt(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function s(r,n){return r===void 0||r===0?n===void 0||n===0:r===n}for(const r of kt)if(!s(this.values[r],t.values[r]))return!1;return!0}}const It="Invalid Interval";function ka(e,t){return!e||!e.isValid?F.invalid("missing or invalid start"):!t||!t.isValid?F.invalid("missing or invalid end"):t<e?F.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class F{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,s=null){if(!t)throw new tt("need to specify a reason the Interval is invalid");const r=t instanceof it?t:new it(t,s);if(z.throwOnInvalid)throw new Wi(r);return new F({invalid:r})}static fromDateTimes(t,s){const r=jt(t),n=jt(s),i=ka(r,n);return i??new F({start:r,end:n})}static after(t,s){const r=$.fromDurationLike(s),n=jt(t);return F.fromDateTimes(n,n.plus(r))}static before(t,s){const r=$.fromDurationLike(s),n=jt(t);return F.fromDateTimes(n.minus(r),n)}static fromISO(t,s){const[r,n]=(t||"").split("/",2);if(r&&n){let i,o;try{i=E.fromISO(r,s),o=i.isValid}catch{o=!1}let a,l;try{a=E.fromISO(n,s),l=a.isValid}catch{l=!1}if(o&&l)return F.fromDateTimes(i,a);if(o){const u=$.fromISO(n,s);if(u.isValid)return F.after(i,u)}else if(l){const u=$.fromISO(r,s);if(u.isValid)return F.before(a,u)}}return F.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const s=this.start.startOf(t),r=this.end.startOf(t);return Math.floor(r.diff(s,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:s}={}){return this.isValid?F.fromDateTimes(t||this.s,s||this.e):this}splitAt(...t){if(!this.isValid)return[];const s=t.map(jt).filter(o=>this.contains(o)).sort(),r=[];let{s:n}=this,i=0;for(;n<this.e;){const o=s[i]||this.e,a=+o>+this.e?this.e:o;r.push(F.fromDateTimes(n,a)),n=a,i+=1}return r}splitBy(t){const s=$.fromDurationLike(t);if(!this.isValid||!s.isValid||s.as("milliseconds")===0)return[];let{s:r}=this,n=1,i;const o=[];for(;r<this.e;){const a=this.start.plus(s.mapUnits(l=>l*n));i=+a>+this.e?this.e:a,o.push(F.fromDateTimes(r,i)),r=i,n+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const s=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return s>=r?null:F.fromDateTimes(s,r)}union(t){if(!this.isValid)return this;const s=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return F.fromDateTimes(s,r)}static merge(t){const[s,r]=t.sort((n,i)=>n.s-i.s).reduce(([n,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[n,i.union(o)]:[n.concat([i]),o]:[n,o],[[],null]);return r&&s.push(r),s}static xor(t){let s=null,r=0;const n=[],i=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...i),a=o.sort((l,u)=>l.time-u.time);for(const l of a)r+=l.type==="s"?1:-1,r===1?s=l.time:(s&&+s!=+l.time&&n.push(F.fromDateTimes(s,l.time)),s=null);return F.merge(n)}difference(...t){return F.xor([this].concat(t)).map(s=>this.intersection(s)).filter(s=>s&&!s.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:It}toLocaleString(t=ge,s={}){return this.isValid?W.create(this.s.loc.clone(s),t).formatInterval(this):It}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:It}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:It}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:It}toFormat(t,{separator:s=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${s}${this.e.toFormat(t)}`:It}toDuration(t,s){return this.isValid?this.e.diff(this.s,t,s):$.invalid(this.invalidReason)}mapEndpoints(t){return F.fromDateTimes(t(this.s),t(this.e))}}class oe{static hasDST(t=z.defaultZone){const s=E.now().setZone(t).set({month:12});return!t.isUniversal&&s.offset!==s.set({month:6}).offset}static isValidIANAZone(t){return ut.isValidZone(t)}static normalizeZone(t){return wt(t,z.defaultZone)}static months(t="long",{locale:s=null,numberingSystem:r=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||M.create(s,r,i)).months(t)}static monthsFormat(t="long",{locale:s=null,numberingSystem:r=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||M.create(s,r,i)).months(t,!0)}static weekdays(t="long",{locale:s=null,numberingSystem:r=null,locObj:n=null}={}){return(n||M.create(s,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:s=null,numberingSystem:r=null,locObj:n=null}={}){return(n||M.create(s,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return M.create(t).meridiems()}static eras(t="short",{locale:s=null}={}){return M.create(s,null,"gregory").eras(t)}static features(){return{relative:Zr()}}}function Vs(e,t){const s=n=>n.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=s(t)-s(e);return Math.floor($.fromMillis(r).as("days"))}function Oa(e,t,s){const r=[["years",(l,u)=>u.year-l.year],["quarters",(l,u)=>u.quarter-l.quarter+(u.year-l.year)*4],["months",(l,u)=>u.month-l.month+(u.year-l.year)*12],["weeks",(l,u)=>{const g=Vs(l,u);return(g-g%7)/7}],["days",Vs]],n={},i=e;let o,a;for(const[l,u]of r)s.indexOf(l)>=0&&(o=l,n[l]=u(e,t),a=i.plus(n),a>t?(n[l]--,e=i.plus(n)):e=a);return[e,n,a,o]}function Ta(e,t,s,r){let[n,i,o,a]=Oa(e,t,s);const l=t-n,u=s.filter(k=>["hours","minutes","seconds","milliseconds"].indexOf(k)>=0);u.length===0&&(o<t&&(o=n.plus({[a]:1})),o!==n&&(i[a]=(i[a]||0)+l/(o-n)));const g=$.fromObject(i,r);return u.length>0?$.fromMillis(l,r).shiftTo(...u).plus(g):g}const fs={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},zs={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},va=fs.hanidec.replace(/[\[|\]]/g,"").split("");function Ea(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let s=0;s<e.length;s++){const r=e.charCodeAt(s);if(e[s].search(fs.hanidec)!==-1)t+=va.indexOf(e[s]);else for(const n in zs){const[i,o]=zs[n];r>=i&&r<=o&&(t+=r-i)}}return parseInt(t,10)}else return t}function rt({numberingSystem:e},t=""){return new RegExp(`${fs[e||"latn"]}${t}`)}const Na="missing Intl.DateTimeFormat.formatToParts support";function _(e,t=s=>s){return{regex:e,deser:([s])=>t(Ea(s))}}const xa=String.fromCharCode(160),cn=`[ ${xa}]`,dn=new RegExp(cn,"g");function Da(e){return e.replace(/\./g,"\\.?").replace(dn,cn)}function qs(e){return e.replace(/\./g,"").replace(dn," ").toLowerCase()}function nt(e,t){return e===null?null:{regex:RegExp(e.map(Da).join("|")),deser:([s])=>e.findIndex(r=>qs(s)===qs(r))+t}}function Hs(e,t){return{regex:e,deser:([,s,r])=>De(s,r),groups:t}}function ae(e){return{regex:e,deser:([t])=>t}}function Ca(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function $a(e,t){const s=rt(t),r=rt(t,"{2}"),n=rt(t,"{3}"),i=rt(t,"{4}"),o=rt(t,"{6}"),a=rt(t,"{1,2}"),l=rt(t,"{1,3}"),u=rt(t,"{1,6}"),g=rt(t,"{1,9}"),k=rt(t,"{2,4}"),T=rt(t,"{4,6}"),w=L=>({regex:RegExp(Ca(L.val)),deser:([N])=>N,literal:!0}),H=(L=>{if(e.literal)return w(L);switch(L.val){case"G":return nt(t.eras("short",!1),0);case"GG":return nt(t.eras("long",!1),0);case"y":return _(u);case"yy":return _(k,Ye);case"yyyy":return _(i);case"yyyyy":return _(T);case"yyyyyy":return _(o);case"M":return _(a);case"MM":return _(r);case"MMM":return nt(t.months("short",!0,!1),1);case"MMMM":return nt(t.months("long",!0,!1),1);case"L":return _(a);case"LL":return _(r);case"LLL":return nt(t.months("short",!1,!1),1);case"LLLL":return nt(t.months("long",!1,!1),1);case"d":return _(a);case"dd":return _(r);case"o":return _(l);case"ooo":return _(n);case"HH":return _(r);case"H":return _(a);case"hh":return _(r);case"h":return _(a);case"mm":return _(r);case"m":return _(a);case"q":return _(a);case"qq":return _(r);case"s":return _(a);case"ss":return _(r);case"S":return _(l);case"SSS":return _(n);case"u":return ae(g);case"uu":return ae(a);case"uuu":return _(s);case"a":return nt(t.meridiems(),0);case"kkkk":return _(i);case"kk":return _(k,Ye);case"W":return _(a);case"WW":return _(r);case"E":case"c":return _(s);case"EEE":return nt(t.weekdays("short",!1,!1),1);case"EEEE":return nt(t.weekdays("long",!1,!1),1);case"ccc":return nt(t.weekdays("short",!0,!1),1);case"cccc":return nt(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Hs(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return Hs(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return ae(/[a-z_+-/]{1,256}?/i);case" ":return ae(/[^\S\n\r]/);default:return w(L)}})(e)||{invalidReason:Na};return H.token=e,H}const Ia={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function _a(e,t){const{type:s,value:r}=e;if(s==="literal"){const o=/^\s+$/.test(r);return{literal:!o,val:o?" ":r}}const n=t[s];let i=Ia[s];if(typeof i=="object"&&(i=i[n]),i)return{literal:!1,val:i}}function Pa(e){return[`^${e.map(s=>s.regex).reduce((s,r)=>`${s}(${r.source})`,"")}$`,e]}function Aa(e,t,s){const r=e.match(t);if(r){const n={};let i=1;for(const o in s)if(Rt(s,o)){const a=s[o],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(n[a.token.val[0]]=a.deser(r.slice(i,i+l))),i+=l}return[r,n]}else return[r,{}]}function Ua(e){const t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let s=null,r;return C(e.z)||(s=ut.create(e.z)),C(e.Z)||(s||(s=new J(e.Z)),r=e.Z),C(e.q)||(e.M=(e.q-1)*3+1),C(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),C(e.u)||(e.S=as(e.u)),[Object.keys(e).reduce((i,o)=>{const a=t(o);return a&&(i[a]=e[o]),i},{}),s,r]}let Me=null;function Ma(){return Me||(Me=E.fromMillis(1555555555555)),Me}function Ra(e,t){if(e.literal)return e;const s=W.macroTokenToFormatOpts(e.val),r=pn(s,t);return r==null||r.includes(void 0)?e:r}function hn(e,t){return Array.prototype.concat(...e.map(s=>Ra(s,t)))}function fn(e,t,s){const r=hn(W.parseFormat(s),e),n=r.map(o=>$a(o,e)),i=n.find(o=>o.invalidReason);if(i)return{input:t,tokens:r,invalidReason:i.invalidReason};{const[o,a]=Pa(n),l=RegExp(o,"i"),[u,g]=Aa(t,l,a),[k,T,w]=g?Ua(g):[null,null,void 0];if(Rt(g,"a")&&Rt(g,"H"))throw new Zt("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:l,rawMatches:u,matches:g,result:k,zone:T,specificOffset:w}}}function La(e,t,s){const{result:r,zone:n,specificOffset:i,invalidReason:o}=fn(e,t,s);return[r,n,i,o]}function pn(e,t){return e?W.create(t,e).formatDateTimeParts(Ma()).map(n=>_a(n,e)):null}const mn=[0,31,59,90,120,151,181,212,243,273,304,334],gn=[0,31,60,91,121,152,182,213,244,274,305,335];function et(e,t){return new it("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function yn(e,t,s){const r=new Date(Date.UTC(e,t-1,s));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const n=r.getUTCDay();return n===0?7:n}function wn(e,t,s){return s+(ee(e)?gn:mn)[t-1]}function Sn(e,t){const s=ee(e)?gn:mn,r=s.findIndex(i=>i<t),n=t-s[r];return{month:r+1,day:n}}function Qe(e){const{year:t,month:s,day:r}=e,n=wn(t,s,r),i=yn(t,s,r);let o=Math.floor((n-i+10)/7),a;return o<1?(a=t-1,o=we(a)):o>we(t)?(a=t+1,o=1):a=t,{weekYear:a,weekNumber:o,weekday:i,...Ce(e)}}function js(e){const{weekYear:t,weekNumber:s,weekday:r}=e,n=yn(t,1,4),i=Jt(t);let o=s*7+r-n-3,a;o<1?(a=t-1,o+=Jt(a)):o>i?(a=t+1,o-=Jt(t)):a=t;const{month:l,day:u}=Sn(a,o);return{year:a,month:l,day:u,...Ce(e)}}function Re(e){const{year:t,month:s,day:r}=e,n=wn(t,s,r);return{year:t,ordinal:n,...Ce(e)}}function Zs(e){const{year:t,ordinal:s}=e,{month:r,day:n}=Sn(t,s);return{year:t,month:r,day:n,...Ce(e)}}function Fa(e){const t=xe(e.weekYear),s=lt(e.weekNumber,1,we(e.weekYear)),r=lt(e.weekday,1,7);return t?s?r?!1:et("weekday",e.weekday):et("week",e.week):et("weekYear",e.weekYear)}function Va(e){const t=xe(e.year),s=lt(e.ordinal,1,Jt(e.year));return t?s?!1:et("ordinal",e.ordinal):et("year",e.year)}function bn(e){const t=xe(e.year),s=lt(e.month,1,12),r=lt(e.day,1,ye(e.year,e.month));return t?s?r?!1:et("day",e.day):et("month",e.month):et("year",e.year)}function kn(e){const{hour:t,minute:s,second:r,millisecond:n}=e,i=lt(t,0,23)||t===24&&s===0&&r===0&&n===0,o=lt(s,0,59),a=lt(r,0,59),l=lt(n,0,999);return i?o?a?l?!1:et("millisecond",n):et("second",r):et("minute",s):et("hour",t)}const Le="Invalid DateTime",Ws=864e13;function le(e){return new it("unsupported zone",`the zone "${e.name}" is not supported`)}function Fe(e){return e.weekData===null&&(e.weekData=Qe(e.c)),e.weekData}function qt(e,t){const s={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new E({...s,...t,old:s})}function On(e,t,s){let r=e-t*60*1e3;const n=s.offset(r);if(t===n)return[r,t];r-=(n-t)*60*1e3;const i=s.offset(r);return n===i?[r,n]:[e-Math.min(n,i)*60*1e3,Math.max(n,i)]}function Gs(e,t){e+=t*60*1e3;const s=new Date(e);return{year:s.getUTCFullYear(),month:s.getUTCMonth()+1,day:s.getUTCDate(),hour:s.getUTCHours(),minute:s.getUTCMinutes(),second:s.getUTCSeconds(),millisecond:s.getUTCMilliseconds()}}function de(e,t,s){return On(us(e),t,s)}function Js(e,t){const s=e.o,r=e.c.year+Math.trunc(t.years),n=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i={...e.c,year:r,month:n,day:Math.min(e.c.day,ye(r,n))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},o=$.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=us(i);let[l,u]=On(a,s,e.zone);return o!==0&&(l+=o,u=e.zone.offset(l)),{ts:l,o:u}}function Ht(e,t,s,r,n,i){const{setZone:o,zone:a}=s;if(e&&Object.keys(e).length!==0||t){const l=t||a,u=E.fromObject(e,{...s,zone:l,specificOffset:i});return o?u:u.setZone(a)}else return E.invalid(new it("unparsable",`the input "${n}" can't be parsed as ${r}`))}function ue(e,t,s=!0){return e.isValid?W.create(M.create("en-US"),{allowZ:s,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Ve(e,t){const s=e.c.year>9999||e.c.year<0;let r="";return s&&e.c.year>=0&&(r+="+"),r+=q(e.c.year,s?6:4),t?(r+="-",r+=q(e.c.month),r+="-",r+=q(e.c.day)):(r+=q(e.c.month),r+=q(e.c.day)),r}function Bs(e,t,s,r,n,i){let o=q(e.c.hour);return t?(o+=":",o+=q(e.c.minute),(e.c.second!==0||!s)&&(o+=":")):o+=q(e.c.minute),(e.c.second!==0||!s)&&(o+=q(e.c.second),(e.c.millisecond!==0||!r)&&(o+=".",o+=q(e.c.millisecond,3))),n&&(e.isOffsetFixed&&e.offset===0&&!i?o+="Z":e.o<0?(o+="-",o+=q(Math.trunc(-e.o/60)),o+=":",o+=q(Math.trunc(-e.o%60))):(o+="+",o+=q(Math.trunc(e.o/60)),o+=":",o+=q(Math.trunc(e.o%60)))),i&&(o+="["+e.zone.ianaName+"]"),o}const Tn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},za={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},qa={ordinal:1,hour:0,minute:0,second:0,millisecond:0},vn=["year","month","day","hour","minute","second","millisecond"],Ha=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ja=["year","ordinal","hour","minute","second","millisecond"];function Ks(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Er(e);return t}function Ys(e,t){const s=wt(t.zone,z.defaultZone),r=M.fromObject(t),n=z.now();let i,o;if(C(e.year))i=n;else{for(const u of vn)C(e[u])&&(e[u]=Tn[u]);const a=bn(e)||kn(e);if(a)return E.invalid(a);const l=s.offset(n);[i,o]=de(e,l,s)}return new E({ts:i,zone:s,loc:r,o})}function Qs(e,t,s){const r=C(s.round)?!0:s.round,n=(o,a)=>(o=ls(o,r||s.calendary?0:2,!0),t.loc.clone(s).relFormatter(s).format(o,a)),i=o=>s.calendary?t.hasSame(e,o)?0:t.startOf(o).diff(e.startOf(o),o).get(o):t.diff(e,o).get(o);if(s.unit)return n(i(s.unit),s.unit);for(const o of s.units){const a=i(o);if(Math.abs(a)>=1)return n(a,o)}return n(e>t?-0:0,s.units[s.units.length-1])}function Xs(e){let t={},s;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],s=Array.from(e).slice(0,e.length-1)):s=Array.from(e),[t,s]}class E{constructor(t){const s=t.zone||z.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new it("invalid input"):null)||(s.isValid?null:le(s));this.ts=C(t.ts)?z.now():t.ts;let n=null,i=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(s))[n,i]=[t.old.c,t.old.o];else{const a=s.offset(this.ts);n=Gs(this.ts,a),r=Number.isNaN(n.year)?new it("invalid input"):null,n=r?null:n,i=r?null:a}this._zone=s,this.loc=t.loc||M.create(),this.invalid=r,this.weekData=null,this.c=n,this.o=i,this.isLuxonDateTime=!0}static now(){return new E({})}static local(){const[t,s]=Xs(arguments),[r,n,i,o,a,l,u]=s;return Ys({year:r,month:n,day:i,hour:o,minute:a,second:l,millisecond:u},t)}static utc(){const[t,s]=Xs(arguments),[r,n,i,o,a,l,u]=s;return t.zone=J.utcInstance,Ys({year:r,month:n,day:i,hour:o,minute:a,second:l,millisecond:u},t)}static fromJSDate(t,s={}){const r=mo(t)?t.valueOf():NaN;if(Number.isNaN(r))return E.invalid("invalid input");const n=wt(s.zone,z.defaultZone);return n.isValid?new E({ts:r,zone:n,loc:M.fromObject(s)}):E.invalid(le(n))}static fromMillis(t,s={}){if(Tt(t))return t<-Ws||t>Ws?E.invalid("Timestamp out of range"):new E({ts:t,zone:wt(s.zone,z.defaultZone),loc:M.fromObject(s)});throw new tt(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,s={}){if(Tt(t))return new E({ts:t*1e3,zone:wt(s.zone,z.defaultZone),loc:M.fromObject(s)});throw new tt("fromSeconds requires a numerical input")}static fromObject(t,s={}){t=t||{};const r=wt(s.zone,z.defaultZone);if(!r.isValid)return E.invalid(le(r));const n=z.now(),i=C(s.specificOffset)?r.offset(n):s.specificOffset,o=Se(t,Ks),a=!C(o.ordinal),l=!C(o.year),u=!C(o.month)||!C(o.day),g=l||u,k=o.weekYear||o.weekNumber,T=M.fromObject(s);if((g||a)&&k)throw new Zt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new Zt("Can't mix ordinal dates with month/day");const w=k||o.weekday&&!g;let D,H,L=Gs(n,i);w?(D=Ha,H=za,L=Qe(L)):a?(D=ja,H=qa,L=Re(L)):(D=vn,H=Tn);let N=!1;for(const x of D){const b=o[x];C(b)?N?o[x]=H[x]:o[x]=L[x]:N=!0}const dt=w?Fa(o):a?Va(o):bn(o),Y=dt||kn(o);if(Y)return E.invalid(Y);const at=w?js(o):a?Zs(o):o,[j,St]=de(at,i,r),G=new E({ts:j,zone:r,o:St,loc:T});return o.weekday&&g&&t.weekday!==G.weekday?E.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${G.toISO()}`):G}static fromISO(t,s={}){const[r,n]=na(t);return Ht(r,n,s,"ISO 8601",t)}static fromRFC2822(t,s={}){const[r,n]=ia(t);return Ht(r,n,s,"RFC 2822",t)}static fromHTTP(t,s={}){const[r,n]=oa(t);return Ht(r,n,s,"HTTP",s)}static fromFormat(t,s,r={}){if(C(t)||C(s))throw new tt("fromFormat requires an input string and a format");const{locale:n=null,numberingSystem:i=null}=r,o=M.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0}),[a,l,u,g]=La(o,t,s);return g?E.invalid(g):Ht(a,l,r,`format ${s}`,t,u)}static fromString(t,s,r={}){return E.fromFormat(t,s,r)}static fromSQL(t,s={}){const[r,n]=fa(t);return Ht(r,n,s,"SQL",t)}static invalid(t,s=null){if(!t)throw new tt("need to specify a reason the DateTime is invalid");const r=t instanceof it?t:new it(t,s);if(z.throwOnInvalid)throw new Zi(r);return new E({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,s={}){const r=pn(t,M.fromObject(s));return r?r.map(n=>n?n.val:null).join(""):null}static expandFormat(t,s={}){return hn(W.parseFormat(t),M.fromObject(s)).map(n=>n.val).join("")}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Fe(this).weekYear:NaN}get weekNumber(){return this.isValid?Fe(this).weekNumber:NaN}get weekday(){return this.isValid?Fe(this).weekday:NaN}get ordinal(){return this.isValid?Re(this.c).ordinal:NaN}get monthShort(){return this.isValid?oe.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?oe.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?oe.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?oe.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return ee(this.year)}get daysInMonth(){return ye(this.year,this.month)}get daysInYear(){return this.isValid?Jt(this.year):NaN}get weeksInWeekYear(){return this.isValid?we(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:s,numberingSystem:r,calendar:n}=W.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:s,numberingSystem:r,outputCalendar:n}}toUTC(t=0,s={}){return this.setZone(J.instance(t),s)}toLocal(){return this.setZone(z.defaultZone)}setZone(t,{keepLocalTime:s=!1,keepCalendarTime:r=!1}={}){if(t=wt(t,z.defaultZone),t.equals(this.zone))return this;if(t.isValid){let n=this.ts;if(s||r){const i=t.offset(this.ts),o=this.toObject();[n]=de(o,i,t)}return qt(this,{ts:n,zone:t})}else return E.invalid(le(t))}reconfigure({locale:t,numberingSystem:s,outputCalendar:r}={}){const n=this.loc.clone({locale:t,numberingSystem:s,outputCalendar:r});return qt(this,{loc:n})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const s=Se(t,Ks),r=!C(s.weekYear)||!C(s.weekNumber)||!C(s.weekday),n=!C(s.ordinal),i=!C(s.year),o=!C(s.month)||!C(s.day),a=i||o,l=s.weekYear||s.weekNumber;if((a||n)&&l)throw new Zt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&n)throw new Zt("Can't mix ordinal dates with month/day");let u;r?u=js({...Qe(this.c),...s}):C(s.ordinal)?(u={...this.toObject(),...s},C(s.day)&&(u.day=Math.min(ye(u.year,u.month),u.day))):u=Zs({...Re(this.c),...s});const[g,k]=de(u,this.o,this.zone);return qt(this,{ts:g,o:k})}plus(t){if(!this.isValid)return this;const s=$.fromDurationLike(t);return qt(this,Js(this,s))}minus(t){if(!this.isValid)return this;const s=$.fromDurationLike(t).negate();return qt(this,Js(this,s))}startOf(t){if(!this.isValid)return this;const s={},r=$.normalizeUnit(t);switch(r){case"years":s.month=1;case"quarters":case"months":s.day=1;case"weeks":case"days":s.hour=0;case"hours":s.minute=0;case"minutes":s.second=0;case"seconds":s.millisecond=0;break}if(r==="weeks"&&(s.weekday=1),r==="quarters"){const n=Math.ceil(this.month/3);s.month=(n-1)*3+1}return this.set(s)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,s={}){return this.isValid?W.create(this.loc.redefaultToEN(s)).formatDateTimeFromString(this,t):Le}toLocaleString(t=ge,s={}){return this.isValid?W.create(this.loc.clone(s),t).formatDateTime(this):Le}toLocaleParts(t={}){return this.isValid?W.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:s=!1,suppressMilliseconds:r=!1,includeOffset:n=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const o=t==="extended";let a=Ve(this,o);return a+="T",a+=Bs(this,o,s,r,n,i),a}toISODate({format:t="extended"}={}){return this.isValid?Ve(this,t==="extended"):null}toISOWeekDate(){return ue(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:s=!1,includeOffset:r=!0,includePrefix:n=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(n?"T":"")+Bs(this,o==="extended",s,t,r,i):null}toRFC2822(){return ue(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ue(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Ve(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:s=!1,includeOffsetSpace:r=!0}={}){let n="HH:mm:ss.SSS";return(s||t)&&(r&&(n+=" "),s?n+="z":t&&(n+="ZZ")),ue(this,n,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Le}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const s={...this.c};return t.includeConfig&&(s.outputCalendar=this.outputCalendar,s.numberingSystem=this.loc.numberingSystem,s.locale=this.loc.locale),s}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,s="milliseconds",r={}){if(!this.isValid||!t.isValid)return $.invalid("created by diffing an invalid DateTime");const n={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=go(s).map($.normalizeUnit),o=t.valueOf()>this.valueOf(),a=o?this:t,l=o?t:this,u=Ta(a,l,i,n);return o?u.negate():u}diffNow(t="milliseconds",s={}){return this.diff(E.now(),t,s)}until(t){return this.isValid?F.fromDateTimes(this,t):this}hasSame(t,s){if(!this.isValid)return!1;const r=t.valueOf(),n=this.setZone(t.zone,{keepLocalTime:!0});return n.startOf(s)<=r&&r<=n.endOf(s)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const s=t.base||E.fromObject({},{zone:this.zone}),r=t.padding?this<s?-t.padding:t.padding:0;let n=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(n=t.unit,i=void 0),Qs(s,this.plus(r),{...t,numeric:"always",units:n,unit:i})}toRelativeCalendar(t={}){return this.isValid?Qs(t.base||E.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(E.isDateTime))throw new tt("min requires all arguments be DateTimes");return Rs(t,s=>s.valueOf(),Math.min)}static max(...t){if(!t.every(E.isDateTime))throw new tt("max requires all arguments be DateTimes");return Rs(t,s=>s.valueOf(),Math.max)}static fromFormatExplain(t,s,r={}){const{locale:n=null,numberingSystem:i=null}=r,o=M.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return fn(o,t,s)}static fromStringExplain(t,s,r={}){return E.fromFormatExplain(t,s,r)}static get DATE_SHORT(){return ge}static get DATE_MED(){return Nr}static get DATE_MED_WITH_WEEKDAY(){return Ji}static get DATE_FULL(){return xr}static get DATE_HUGE(){return Dr}static get TIME_SIMPLE(){return Cr}static get TIME_WITH_SECONDS(){return $r}static get TIME_WITH_SHORT_OFFSET(){return Ir}static get TIME_WITH_LONG_OFFSET(){return _r}static get TIME_24_SIMPLE(){return Pr}static get TIME_24_WITH_SECONDS(){return Ar}static get TIME_24_WITH_SHORT_OFFSET(){return Ur}static get TIME_24_WITH_LONG_OFFSET(){return Mr}static get DATETIME_SHORT(){return Rr}static get DATETIME_SHORT_WITH_SECONDS(){return Lr}static get DATETIME_MED(){return Fr}static get DATETIME_MED_WITH_SECONDS(){return Vr}static get DATETIME_MED_WITH_WEEKDAY(){return Bi}static get DATETIME_FULL(){return zr}static get DATETIME_FULL_WITH_SECONDS(){return qr}static get DATETIME_HUGE(){return Hr}static get DATETIME_HUGE_WITH_SECONDS(){return jr}}function jt(e){if(E.isDateTime(e))return e;if(e&&e.valueOf&&Tt(e.valueOf()))return E.fromJSDate(e);if(e&&typeof e=="object")return E.fromObject(e);throw new tt(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const tr="all-in-one-seo-pack",Dl=U("SemrushStore",{state:()=>({results:[],error:null}),getters:{expired:()=>{const e=A();if(!e.internalOptions.integrations.semrush.expires)return!0;const t=E.now(),s=E.fromMillis(parseInt(e.internalOptions.integrations.semrush.expires*1e3,10));return t>=s},hasValidTokens:e=>{const t=A();return!e.expired&&!!t.internalOptions.integrations.semrush.accessToken&&!!t.internalOptions.integrations.semrush.refreshToken}},actions:{getKeyphrases(e){this.error=null;const t=P();return p.post(m.restUrl("integration/semrush/keyphrases")).send({keyphrase:t.currentPost.keyphrases.focus.keyphrase,database:e}).then(s=>{if(s.body.keyphrases.status===403){this.error=s.body.keyphrases.error;return}this.results=s.body.keyphrases.data.rows}).catch(s=>{var r,n;if(!((n=(r=s==null?void 0:s.response)==null?void 0:r.body)!=null&&n.message)){this.error=Yt("An unknown error occurred, please try again later.",tr);return}this.error=s.response.body.message})},authenticate(e){return this.error=null,p.post(m.restUrl("integration/semrush/authenticate")).send({code:e}).then(t=>{const s=A();s.updateOption("internalOptions",{groups:["integrations"],key:"semrush",value:t.body.semrush},{root:!0}),s.internalOptions.integrations.semrush=t.body.semrush}).catch(t=>{var s,r;if(!((r=(s=t==null?void 0:t.response)==null?void 0:s.body)!=null&&r.message)){this.error=Yt("An unknown error occurred, please try again later.",tr);return}this.error=t.response.body.message})},refresh(){return p.post(m.restUrl("integration/semrush/refresh")).then(e=>{const t=A();t.updateOption("internalOptions",{groups:["integrations"],key:"semrush",value:e.body.semrush},{root:!0}),t.internalOptions.integrations.semrush=e.body.semrush})}}}),Za=U("WpCodeStore",{state:()=>({snippets:[],pluginInstalled:!1,pluginActive:!1,pluginNeedsUpdate:!1,ctaUrl:""}),getters:{getSnippets:e=>e.snippets},actions:{loadSnippets(){return p.post(m.restUrl("integration/wpcode/snippets")).send().then(e=>{e.body.snippets&&(this.snippets=e.body.snippets),this.pluginInstalled=e.body.pluginInstalled,this.pluginActive=e.body.pluginActive,this.pluginNeedsUpdate=e.body.pluginNeedsUpdate})}}});var Wa=jn(Object.getPrototypeOf,Object);const En=Wa;var Ga="[object Object]",Ja=Function.prototype,Ba=Object.prototype,Nn=Ja.toString,Ka=Ba.hasOwnProperty,Ya=Nn.call(Object);function Qa(e){if(!Zn(e)||Wn(e)!=Ga)return!1;var t=En(e);if(t===null)return!0;var s=Ka.call(t,"constructor")&&t.constructor;return typeof s=="function"&&s instanceof s&&Nn.call(s)==Ya}var xn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,er=xn&&typeof module=="object"&&module&&!module.nodeType&&module,Xa=er&&er.exports===xn,sr=Xa?Gn.Buffer:void 0,rr=sr?sr.allocUnsafe:void 0;function tl(e,t){if(t)return e.slice();var s=e.length,r=rr?rr(s):new e.constructor(s);return e.copy(r),r}function el(e){var t=new e.constructor(e.byteLength);return new ms(t).set(new ms(e)),t}function sl(e,t){var s=t?el(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function rl(e){return typeof e.constructor=="function"&&!Jn(e)?Bn(En(e)):{}}function Xe(e,t,s){(s!==void 0&&!Kn(e[t],s)||s===void 0&&!(t in e))&&Yn(e,t,s)}function ts(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function nl(e){return Qn(e,dr(e))}function il(e,t,s,r,n,i,o){var a=ts(e,s),l=ts(t,s),u=o.get(l);if(u){Xe(e,s,u);return}var g=i?i(a,l,s+"",e,t,o):void 0,k=g===void 0;if(k){var T=gs(l),w=!T&&Xn(l),D=!T&&!w&&ti(l);g=l,T||w||D?gs(a)?g=a:ei(a)?g=si(a):w?(k=!1,g=tl(l,!0)):D?(k=!1,g=sl(l,!0)):g=[]:Qa(l)||ys(l)?(g=a,ys(a)?g=nl(a):(!hr(a)||ri(a))&&(g=rl(l))):k=!1}k&&(o.set(l,g),n(g,l,r,i,o),o.delete(l)),Xe(e,s,g)}function Dn(e,t,s,r,n){e!==t&&ni(t,function(i,o){if(n||(n=new ii),hr(i))il(e,t,o,s,Dn,r,n);else{var a=r?r(ts(e,o),i,o+"",e,t,n):void 0;a===void 0&&(a=i),Xe(e,o,a)}},dr)}var ol=oi(function(e,t,s){Dn(e,t,s)});const R=ol,Ut=li();let nr=!1;const Cl=(e,t=null)=>{var G,x,b,Z,B,st,c;al(e,t);const s=V();if(s.loaded)return Ut;const r=JSON.parse(JSON.stringify(window.aioseo||{})),n=He(),i=Ni(),o=Et(),a=Di(),l=ns(),u=Ee(),g=Tr(),k=is(),T=Pt(),w=A(),D=$i(),H=P(),L=os(),N=Vi(),dt=zi(),Y=qi(),at=ji(),j=Za(),St={sites:(x=(G=r.data)==null?void 0:G.network)==null?void 0:x.sites,activeSites:(Z=(b=r.data)==null?void 0:b.network)==null?void 0:Z.activeSites};return w.dynamicOptions=R({...w.dynamicOptions},{...r.dynamicOptions||{}}),w.internalOptions=R({...w.internalOptions},{...r.internalOptions||{}}),w.options=R({...w.options},{...r.options||{}}),w.internalNetworkOptions=R({...w.internalNetworkOptions},{...r.internalNetworkOptions||{}}),w.networkOptions=R({...w.networkOptions},{...r.networkOptions||{}}),n.addons=R([...n.addons],[...r.addons||[]]),i.backups=R([...i.backups],[...r.backups||[]]),i.networkBackups=R({...i.networkBackups},{...((st=(B=r.data)==null?void 0:B.network)==null?void 0:st.backups)||{}}),a.$state=R({...a.$state},{...r.helpPanel||{}}),l.$state=R({...l.$state},{...r.indexNow||{}}),u.license=R({...u.license},{...r.license||{}}),g.$state=R({...g.$state},{...r.linkAssistant||{}}),k.networkData=R({...k.networkData},{...St}),T.$state=R({...T.$state},{...r.notifications||{}}),D.plugins=R({...D.plugins},{...r.plugins||{}}),H.currentPost=R({...H.currentPost},{...r.currentPost||{}}),L.$state=R({...L.$state},{...r.redirects||{}}),N.$state=R({...N.$state},{...r.searchStatistics||{}}),dt.$state=R({...dt.$state},{...r.seoRevisions||{}}),Y.settings=R({...Y.settings},{...r.settings||{}}),Y.userProfile=R({...Y.userProfile},{...r.userProfile||{}}),at.$state=R({...at.$state},{...r.tags||{}}),(c=r.integrations)!=null&&c.wpcode&&(j.$state=R({...j.$state},{...r.integrations.wpcode||{}})),delete r.addons,delete r.backups,delete r.currentPost,delete r.dynamicOptions,delete r.helpPanel,delete r.indexNow,delete r.internalNetworkOptions,delete r.internalOptions,delete r.license,delete r.linkAssistant,delete r.networkOptions,delete r.notifications,delete r.options,delete r.plugins,delete r.redirects,delete r.searchStatistics,delete r.seoRevisions,delete r.settings,delete r.tags,delete r.userProfile,r.publicPath="/",r.translations={},s.aioseo=R({...s.aioseo},{...r||{}}),o.updateOriginalOptions("options",w.options),o.updateOriginalOptions("dynamicOptions",w.dynamicOptions),o.updateOriginalOptions("networkOptions",w.networkOptions),L!=null&&L.options&&o.updateOriginalOptions("redirectOptions",L.options),o.updateOriginalOptions("indexNowOptions",l.options),l.options.indexNow.apiKey||o.disableDirtyCheck("indexNowOptions"),s.loaded=!0,nr||(nr=!0,window.addEventListener("beforeunload",h=>{if(!o.isDirty)return;const f=Yt("Are you sure you want to leave? you have unsaved changes!","all-in-one-seo-pack");return(h||window.event).returnValue=f,f})),Ut},al=(e,t=null)=>(t&&Ut.use(({store:s})=>{s.$router=es(t)}),e.use(Ut),Ut),d="https://aioseo.com/",be={home:`${d}docs/`,ultimateGuide:`${d}ultimate-wordpress-seo-guide/`,quickStartGuide:`${d}docs/quick-start-guide/`,googleSearchConsole:`${d}docs/how-to-verify-your-site-with-google-search-console/`,bingWebmasterVerification:`${d}docs/how-to-verify-your-site-with-bing-webmaster-tools/`,yandexWebmasterVerification:`${d}docs/how-to-verify-your-site-with-yandex-webmaster-tools/`,baiduWebmasterVerification:`${d}docs/baidu-webmaster-tools-verification/`,pinterestSiteVerification:`${d}docs/how-to-verify-your-site-with-pinterest/`,indexNow:`${d}docs/integrating-with-indexnow-to-instantly-re-index-your-content/`,microsoftClarityDocumentation:`${d}docs/how-to-verify-your-site-with-microsoft-clarity/`,googleAnalytics:`${d}docs/how-to-connect-your-site-with-google-analytics/`,advancedGoogleAnalytics:`${d}docs/advanced-settings-for-google-analytics/`,trackingDomain:`${d}docs/advanced-settings-for-google-analytics/#tracking-domain`,trackMultipleDomains:`${d}docs/advanced-settings-for-google-analytics/#track-multiple-domains`,additionalDomains:`${d}docs/advanced-settings-for-google-analytics/#track-multiple-domains`,anonymizeIps:`${d}docs/advanced-settings-for-google-analytics/#anonymize-ip-addresses`,displayAdvertiserTracking:`${d}docs/advanced-settings-for-google-analytics/#display-advertiser-tracking`,excludeUsers:`${d}docs/advanced-settings-for-google-analytics/#exclude-users-from-tracking`,trackOutboundLinks:`${d}docs/advanced-settings-for-google-analytics/#track-outbound-links`,enhancedLinkAttribution:`${d}docs/advanced-settings-for-google-analytics/#enhanced-link-attribution`,enhancedEcommerce:`${d}docs/advanced-settings-for-google-analytics/#enhanced-ecommerce`,trackOutboundForms:`${d}docs/advanced-settings-for-google-analytics/#track-outbound-forms`,trackEvents:`${d}docs/advanced-settings-for-google-analytics/#track-events`,trackUrlChanges:`${d}docs/advanced-settings-for-google-analytics/#track-url-changes`,trackVisibility:`${d}docs/advanced-settings-for-google-analytics/#track-page-visibility`,trackMediaQueries:`${d}docs/advanced-settings-for-google-analytics/#track-media-queries`,trackImpressions:`${d}docs/advanced-settings-for-google-analytics/#track-elements-visibility`,trackScrollbar:`${d}docs/advanced-settings-for-google-analytics/#track-page-scrolling`,trackSocial:`${d}docs/advanced-settings-for-google-analytics/#track-facebook-and-twitter`,trackCleanUrl:`${d}docs/advanced-settings-for-google-analytics/#ensure-url-consistency`,gtmContainerId:`${d}docs/how-to-connect-your-site-with-google-tag-manager/`,rssContent:`${d}docs/how-to-protect-your-content-with-rss-content-settings/`,twitter:`${d}docs/beginners-guide-to-social-networks-settings-for-twitter/`,facebook:`${d}docs/beginners-guide-to-social-networks-settings-for-facebook/`,xmlSitemaps:`${d}docs/how-to-create-an-xml-sitemap/`,blankSitemap:`${d}docs/how-to-fix-a-404-error-when-viewing-your-sitemap/`,sitemapIndexes:`${d}docs/using-sitemap-indexes-and-pagination/`,maxLinks:`${d}docs/using-sitemap-indexes-and-pagination/`,maxLinksRss:`${d}docs/how-to-create-an-rss-sitemap/#configuring-the-rss-sitemap`,selectPostTypes:`${d}docs/choosing-which-content-to-include-in-your-xml-sitemap/`,selectPostTypesColumns:`${d}docs/hiding-the-aioseo-column-on-all-posts-screens/`,selectPostTypesNews:`${d}docs/how-to-create-a-google-news-sitemap/#configuring-the-news-sitemap`,selectPostTypesVideo:`${d}docs/how-to-create-a-video-sitemap/#configuring-the-video-sitemap`,selectPostTypesRss:`${d}docs/how-to-create-an-rss-sitemap/#configuring-the-rss-sitemap`,selectTaxonomies:`${d}docs/choosing-which-content-to-include-in-your-xml-sitemap/`,selectTaxonomiesColumns:`${d}docs/hiding-the-aioseo-column-on-taxonomy-screens/`,selectTaxonomiesVideo:`${d}docs/how-to-create-a-video-sitemap/#configuring-the-video-sitemap`,includeArchivePages:`${d}docs/including-date-and-author-archives-in-your-xml-sitemap/`,excludeImages:`${d}docs/excluding-images-from-the-xml-sitemap/`,dynamicallyGenerate:`${d}docs/what-is-a-dynamically-generated-sitemap-and-why-is-it-better-to-use/`,dynamicallyGenerateVideo:`${d}docs/what-is-a-dynamically-generated-sitemap-and-why-is-it-better-to-use/`,videoSitemaps:`${d}docs/how-to-create-a-video-sitemap/`,includeCustomFields:`${d}docs/including-videos-in-custom-fields-in-your-video-sitemap/`,newsSitemaps:`${d}docs/how-to-create-a-google-news-sitemap/`,rssSitemaps:`${d}docs/how-to-create-an-rss-sitemap/`,facebookAdminId:`${d}docs/adding-your-facebook-admin-id/`,facebookAppId:`${d}docs/adding-your-facebook-app-id/`,facebookAuthorUrl:`${d}docs/setting-the-content-author-for-facebook/`,usageTracking:`${d}docs/usage-tracking/`,schemaSettings:`${d}docs/schema-settings/`,imageSeo:`${d}docs/image-seo-module/`,localSeo:`${d}introducing-local-seo/`,robotsEditor:`${d}docs/using-the-robots-txt-tool-in-all-in-one-seo/`,robotsRewrite:`${d}docs/nginx-rewrite-rules-for-robots-txt/`,useKeyphrasesTooltip:`${d}docs/using-the-focus-keyphrase-to-analyze-your-content/`,showSitelinks:`${d}docs/how-do-i-get-google-to-show-sitelinks-for-my-site/`,whenToUseNoindex:`${d}docs/when-to-use-noindex-or-the-robots-txt/`,installAioseoPro:`${d}docs/installing-all-in-one-seo-pro/`,importProcessSeoData:`${d}docs/importing-and-exporting-aioseo-settings-and-meta-data/`,whatAreMediaAttachments:`${d}docs/what-are-media-attachments-and-should-i-submit-them-to-search-engines/`,minimumRequirements:`${d}docs/what-are-the-minimum-requirements-for-all-in-one-seo-pack/`,apiCodeExamples:`${d}docs/how-do-i-use-your-api-code-examples/`,troubleshootIssues:`${d}docs/how-to-troubleshoot-issues-with-all-in-one-seo-pack/`,staticHomePage:`${d}docs/setting-the-seo-for-your-home-page/#setting-the-seo-when-your-homepage-displays-a-static-page`,staticHomePageFacebook:`${d}docs/setting-facebook-social-meta-for-your-homepage/#setting-the-facebook-social-meta-when-your-homepage-displays-a-static-page`,staticHomePageTwitter:`${d}docs/setting-twitter-social-meta-for-your-homepage/#setting-the-twitter-social-meta-when-your-homepage-displays-a-static-page`,restApi:`${d}docs/aioseo-uses-rest-api/`,configuringSchema:`${d}docs/configuring-the-schema-settings-in-all-in-one-seo/`,unfilteredHtml:`${d}docs/unfiltered-html-capability/`,customFields:`${d}docs/including-custom-fields-in-the-seo-page-analysis/`,productIdentifiers:`${d}docs/unique-product-identifiers/`,redirectManagerRegex:`${d}docs/redirect-manager-regex/`,redirectGdpr:`${d}docs/redirect-gdpr-privacy-information/`,redirectCustomRulesUserAgent:`${d}docs/redirection-manager-custom-rules/#user-agent`,redirectCanonicalHttps:`${d}docs/full-site-redirect/#canonical-settings`,redirectUnknownWebserver:`${d}docs/redirect-manager-unknown-web-server/`,redirectServerConfigReload:`${d}docs/redirect-manager-configuration-reload/`,localSeoShortcodeBusinessInfo:`${d}docs/shortcode-aioseo_local_business_info/`,localSeoShortcodeOpeningHours:`${d}docs/shortcode-aioseo_local_opening_hours/`,localSeoShortcodeLocations:`${d}docs/shortcode-aioseo_local_locations/`,localSeoShortcodeMap:`${d}docs/shortcode-aioseo_local_map/`,localSeoFunctionBusinessInfo:`${d}docs/function-aioseo_local_business_info/`,localSeoFunctionOpeningHours:`${d}docs/function-aioseo_local_opening_hours/`,localSeoFunctionLocations:`${d}docs/function-aioseo_local_locations/`,localSeoFunctionMap:`${d}docs/function-aioseo_local_map/`,localSeoSearchQueryConflict:`${d}docs/enhanced-search-query-conflict/`,localSeoMapSetup:`${d}docs/setting-up-google-maps/`,localSeoMapEmbedApi:`${d}docs/using-places-on-your-maps/`,breadcrumbsDisplay:`${d}docs/displaying-breadcrumbs-on-your-site/`,breadcrumbsShortcode:`${d}docs/shortcode-aioseo_breadcrumbs/`,breadcrumbsFunction:`${d}docs/function-aioseo_breadcrumbs/`,seoAnalyzer:`${d}docs/using-the-seo-analysis-tool/`,seoAnalyzerIssues:`${d}docs/seo-analysis-unable-to-connect-to-your-site/`,htmlSitemap:`${d}docs/html-sitemap/`,htmlSitemapShortcode:`${d}docs/shortcode-html-sitemap/`,htmlSitemapFunction:`${d}docs/function-html-sitemap/`,htmlSitemapCompactArchives:`${d}docs/html-sitemap#compact-archives/`,linkAssistant:`${d}docs/link-assistant`,linkAssistantPostTypes:`${d}docs/link-assistant-settings/#post-types`,linkAssistantPostStatuses:`${d}docs/link-assistant-settings/#post-statuses`,updateWordPress:`${d}docs/update-wordpress/`,runningShortcodes:`${d}docs/running-shortcodes/`,crawlCleanup:`${d}docs/crawl-cleanup-best-practices`,schema:`${d}docs/a-guide-to-schema-org-markup-for-rich-snippets/`,schemaJsonLd:`${d}docs/a-guide-to-schema-org-markup-for-rich-snippets/#schema-markup-in-all-in-one-seo`,smartTags:`${d}docs/using-the-smart-tags-in-titles-and-descriptions/`,openAi:`${d}docs/using-openai-to-generate-seo-titles-and-meta-descriptions/`,wpcode:`${d}docs/wpcode-snippet-library/`,primaryTerm:`${d}docs/setting-the-primary-term-for-breadcrumbs/`},ke={home:d,liteUpgrade:`${d}lite-upgrade/`,pricing:`${d}pricing/`,semrushPricing:`${d}semrush-pricing/`},ll=(e,t=null,s)=>{if(e==="feature-manager-upgrade"&&t!=="no-license-key"){const r=t==="aioseo-local-business"?"&features[]=local-seo":"&features[]="+t.replace("aioseo-","");return ct(e,t,ke[s])+r}return ct(e,t,ke[s])},ul=e=>ct("documentation",e,be[e]),cl=(e,t,s,r=!1)=>{const n=r?Mt('<a href="%1$s" class="no-underline" target="_blank"> →</a>',ct(e,s,ke[s])):"";return Mt('<a href="%1$s" target="_blank">%2$s</a>%3$s',ct(e,s,ke[s]),t,n)},dl=(e,t,s=!1,r=!0)=>{const n=r?'target="_blank"':"_self",i=s?Mt(`<a href="%1$s" class="no-underline" target="${n}"> →</a>`,t):"";return Mt(`<a href="%1$s" target="${n}">%2$s</a>%3$s`,t,e,i)},hl=(e,t,s=!1)=>{const r=s?Mt('<a href="%1$s" class="no-underline" target="_blank"> →</a>',ct("documentation",t,be[t])):"";return Mt('<a href="%1$s" target="_blank">%2$s</a>%3$s',ct("documentation",t,be[t]),e,r)},fl=(e,t,s,r=`${d}pricing/`)=>ct(t,s,r)+"&features[]="+e,ct=(e,t=null,s=`${d}pricing/`)=>{let r=!1;`${d}pricing/`===s&&"Lite".toLowerCase()!=="pro"&&(r=V().aioseo.urls.upgradeUrl!==d,s=`${d}lite-upgrade/`);const n=s.split("#"),i=[{key:"utm_source",value:"WordPress"},{key:"utm_campaign",value:"Lite".toLowerCase()==="pro"?"proplugin":"liteplugin"},{key:"utm_medium",value:e}];t&&i.push({key:"utm_content",value:t}),/^https?:\/\//i.test(n[0])||(n[0]=d+n[0]);const a=n[0].split("?");return n[0]=a[0]+(a[1]?"?"+a[1]+"&":"?"),n[0]+=i.map(l=>`${l.key}=${l.value}`).join("&"),s=n[0],n[1]&&(s=s+"#"+n[1]),r&&(s=V().aioseo.urls.upgradeUrl.replace("https%3A%2F%2Faioseo.com%2F",pl(s))),s},pl=e=>{const t={};t["'"]="%27",t["("]="%28",t[")"]="%29",t["*"]="%2A",t["~"]="%7E",t["!"]="%21",e=encodeURIComponent(e),e=e.replace("%20"," ");for(const s in t)e=e.replace(s,t[s]);return e.replace(/(%([a-z0-9]{2}))/g,function(s,r,n){return"%"+n.toUpperCase()})},Cn=e=>e&&e.replace(/^\//,""),ps=e=>e&&e.replace(/\/$/,""),he=e=>ps(e)+"/",ml=(e,t="aioseo/v1")=>{const s=V();return e=s.aioseo.data.hasUrlTrailingSlash?he(e):ps(e),he(s.aioseo.urls.restUrl)+he(t)+Cn(e)},m={docLinks:be,getDocLink:hl,getDocUrl:ul,getPlainLink:dl,getPricingUrl:fl,getUpsellLink:cl,getUpsellUrl:ll,restUrl:ml,trailingSlashIt:he,unForwardSlashIt:Cn,unTrailingSlashIt:ps,utmUrl:ct};export{bl as A,Tr as B,m as C,E as D,Sl as E,al as F,Di as G,me as H,Ni as I,Ai as J,ns as K,En as L,el as M,sl as N,tl as O,rl as P,Ei as Q,xl as R,Ui as S,Dl as T,El as U,He as a,zi as b,A as c,ji as d,Ee as e,qi as f,Hi as g,Pt as h,is as i,p as j,P as k,Cl as l,os as m,R as n,kl as o,Nl as p,$i as q,Za as r,Ii as s,Ol as t,V as u,Tl as v,_i as w,Pi as x,vl as y,Vi as z};
Save
Cancel