From 2dabc5eb3c0aea2fff7b056615a82304958ae17b Mon Sep 17 00:00:00 2001 From: Pierre GIRAUD Date: Mon, 23 Feb 2026 11:53:12 +0100 Subject: [PATCH] Add built assets Were mising in 63320e1. --- app/static/dist/.vite/manifest.json | 12 +- app/static/dist/assets/index-caxD0f6R.js | 5885 ----------------- app/static/dist/assets/plan-CqliKu1A.js | 1 - .../dist/assets/themeSwitcher-D0Vjumho.js | 1 - 4 files changed, 6 insertions(+), 5893 deletions(-) delete mode 100644 app/static/dist/assets/index-caxD0f6R.js delete mode 100644 app/static/dist/assets/plan-CqliKu1A.js delete mode 100644 app/static/dist/assets/themeSwitcher-D0Vjumho.js diff --git a/app/static/dist/.vite/manifest.json b/app/static/dist/.vite/manifest.json index 0a4f2da..78fe8e2 100644 --- a/app/static/dist/.vite/manifest.json +++ b/app/static/dist/.vite/manifest.json @@ -10,8 +10,8 @@ "_vue-CPYrH9CX.js" ] }, - "_themeSwitcher-D0Vjumho.js": { - "file": "assets/themeSwitcher-D0Vjumho.js", + "_themeSwitcher-_c_S-p0R.js": { + "file": "assets/themeSwitcher-_c_S-p0R.js", "name": "themeSwitcher", "imports": [ "_vue-CPYrH9CX.js", @@ -35,7 +35,7 @@ ] }, "app/static/js/index.js": { - "file": "assets/index-caxD0f6R.js", + "file": "assets/index-DGEMV-uq.js", "name": "index", "src": "app/static/js/index.js", "isEntry": true, @@ -43,11 +43,11 @@ "app/static/js/common.js", "_vue-CPYrH9CX.js", "_lodash-CMEUj9tG.js", - "_themeSwitcher-D0Vjumho.js" + "_themeSwitcher-_c_S-p0R.js" ] }, "app/static/js/plan.js": { - "file": "assets/plan-CqliKu1A.js", + "file": "assets/plan-CuiFG0j2.js", "name": "plan", "src": "app/static/js/plan.js", "isEntry": true, @@ -55,7 +55,7 @@ "app/static/js/common.js", "_vue-CPYrH9CX.js", "_pev2-DehNO_aX.js", - "_themeSwitcher-D0Vjumho.js" + "_themeSwitcher-_c_S-p0R.js" ], "css": [ "assets/plan-6aR89bOQ.css" diff --git a/app/static/dist/assets/index-caxD0f6R.js b/app/static/dist/assets/index-caxD0f6R.js deleted file mode 100644 index c557101..0000000 --- a/app/static/dist/assets/index-caxD0f6R.js +++ /dev/null @@ -1,5885 +0,0 @@ -var Qr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);import{l as ei,f as ti,a as ai,b as si,M as as,F as ri}from"./about-4AxB30-u.js";import{d as ii,I as oi,C as ni,b as li,a as ee,w as Rt,H as ci,o as di}from"./vue-CPYrH9CX.js";import{r as ui,g as pi}from"./lodash-CMEUj9tG.js";import{_ as mi}from"./themeSwitcher-D0Vjumho.js";var W0=Qr((rp,Nt)=>{function Cs(e,t){return function(){return e.apply(t,arguments)}}const{toString:hi}=Object.prototype,{getPrototypeOf:ya}=Object,{iterator:Mt,toStringTag:vs}=Symbol,Ft=(e=>t=>{const a=hi.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),ne=e=>(e=e.toLowerCase(),t=>Ft(t)===e),Ut=e=>t=>typeof t===e,{isArray:Je}=Array,ze=Ut("undefined");function lt(e){return e!==null&&!ze(e)&&e.constructor!==null&&!ze(e.constructor)&&G(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ws=ne("ArrayBuffer");function fi(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ws(e.buffer),t}const _i=Ut("string"),G=Ut("function"),Ps=Ut("number"),ct=e=>e!==null&&typeof e=="object",Si=e=>e===!0||e===!1,wt=e=>{if(Ft(e)!=="object")return!1;const t=ya(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(vs in e)&&!(Mt in e)},ki=e=>{if(!ct(e)||lt(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Ti=ne("Date"),Bi=ne("File"),Ei=ne("Blob"),Ri=ne("FileList"),wi=e=>ct(e)&&G(e.pipe),gi=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||G(e.append)&&((t=Ft(e))==="formdata"||t==="object"&&G(e.toString)&&e.toString()==="[object FormData]"))},Ai=ne("URLSearchParams"),[Li,yi,bi,Ni]=["ReadableStream","Request","Response","Headers"].map(ne),Oi=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dt(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),Je(e))for(s=0,r=e.length;s0;)if(r=a[s],t===r.toLowerCase())return r;return null}const xe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Hs=e=>!ze(e)&&e!==xe;function fa(){const{caseless:e,skipUndefined:t}=Hs(this)&&this||{},a={},s=(r,i)=>{const o=e&&Ds(a,i)||i;wt(a[o])&&wt(r)?a[o]=fa(a[o],r):wt(r)?a[o]=fa({},r):Je(r)?a[o]=r.slice():(!t||!ze(r))&&(a[o]=r)};for(let r=0,i=arguments.length;r(dt(t,(r,i)=>{a&&G(r)?e[i]=Cs(r,a):e[i]=r},{allOwnKeys:s}),e),Ci=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vi=(e,t,a,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},Wi=(e,t,a,s)=>{let r,i,o;const n={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],(!s||s(o,e,t))&&!n[o]&&(t[o]=e[o],n[o]=!0);e=a!==!1&&ya(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},Pi=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const s=e.indexOf(t,a);return s!==-1&&s===a},Di=e=>{if(!e)return null;if(Je(e))return e;let t=e.length;if(!Ps(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},Hi=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ya(Uint8Array)),Ii=(e,t)=>{const s=(e&&e[Mt]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},Mi=(e,t)=>{let a;const s=[];for(;(a=e.exec(t))!==null;)s.push(a);return s},Fi=ne("HTMLFormElement"),Ui=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,s,r){return s.toUpperCase()+r}),ss=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),qi=ne("RegExp"),Is=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),s={};dt(a,(r,i)=>{let o;(o=t(r,i,e))!==!1&&(s[i]=o||r)}),Object.defineProperties(e,s)},Yi=e=>{Is(e,(t,a)=>{if(G(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const s=e[a];if(G(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},zi=(e,t)=>{const a={},s=r=>{r.forEach(i=>{a[i]=!0})};return Je(e)?s(e):s(String(e).split(t)),a},Ji=()=>{},ji=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Vi(e){return!!(e&&G(e.append)&&e[vs]==="FormData"&&e[Mt])}const Gi=e=>{const t=new Array(10),a=(s,r)=>{if(ct(s)){if(t.indexOf(s)>=0)return;if(lt(s))return s;if(!("toJSON"in s)){t[r]=s;const i=Je(s)?[]:{};return dt(s,(o,n)=>{const u=a(o,r+1);!ze(u)&&(i[n]=u)}),t[r]=void 0,i}}return s};return a(e,0)},$i=ne("AsyncFunction"),Ki=e=>e&&(ct(e)||G(e))&&G(e.then)&&G(e.catch),Ms=((e,t)=>e?setImmediate:t?((a,s)=>(xe.addEventListener("message",({source:r,data:i})=>{r===xe&&i===a&&s.length&&s.shift()()},!1),r=>{s.push(r),xe.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",G(xe.postMessage)),Zi=typeof queueMicrotask<"u"?queueMicrotask.bind(xe):typeof process<"u"&&process.nextTick||Ms,Xi=e=>e!=null&&G(e[Mt]),c={isArray:Je,isArrayBuffer:Ws,isBuffer:lt,isFormData:gi,isArrayBufferView:fi,isString:_i,isNumber:Ps,isBoolean:Si,isObject:ct,isPlainObject:wt,isEmptyObject:ki,isReadableStream:Li,isRequest:yi,isResponse:bi,isHeaders:Ni,isUndefined:ze,isDate:Ti,isFile:Bi,isBlob:Ei,isRegExp:qi,isFunction:G,isStream:wi,isURLSearchParams:Ai,isTypedArray:Hi,isFileList:Ri,forEach:dt,merge:fa,extend:xi,trim:Oi,stripBOM:Ci,inherits:vi,toFlatObject:Wi,kindOf:Ft,kindOfTest:ne,endsWith:Pi,toArray:Di,forEachEntry:Ii,matchAll:Mi,isHTMLForm:Fi,hasOwnProperty:ss,hasOwnProp:ss,reduceDescriptors:Is,freezeMethods:Yi,toObjectSet:zi,toCamelCase:Ui,noop:Ji,toFiniteNumber:ji,findKey:Ds,global:xe,isContextDefined:Hs,isSpecCompliantForm:Vi,toJSONObject:Gi,isAsyncFn:$i,isThenable:Ki,setImmediate:Ms,asap:Zi,isIterable:Xi};function E(e,t,a,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),a&&(this.config=a),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}c.inherits(E,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.status}}});const Fs=E.prototype,Us={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Us[e]={value:e}});Object.defineProperties(E,Us);Object.defineProperty(Fs,"isAxiosError",{value:!0});E.from=(e,t,a,s,r,i)=>{const o=Object.create(Fs);c.toFlatObject(e,o,function(d){return d!==Error.prototype},l=>l!=="isAxiosError");const n=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return E.call(o,n,u,a,s,r),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const Qi=null;function _a(e){return c.isPlainObject(e)||c.isArray(e)}function qs(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function rs(e,t,a){return e?e.concat(t).map(function(r,i){return r=qs(r),!a&&i?"["+r+"]":r}).join(a?".":""):t}function eo(e){return c.isArray(e)&&!e.some(_a)}const to=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function qt(e,t,a){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,a=c.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,_){return!c.isUndefined(_[T])});const s=a.metaTokens,r=a.visitor||d,i=a.dots,o=a.indexes,u=(a.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(r))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(c.isDate(p))return p.toISOString();if(c.isBoolean(p))return p.toString();if(!u&&c.isBlob(p))throw new E("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(p)||c.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,T,_){let W=p;if(p&&!_&&typeof p=="object"){if(c.endsWith(T,"{}"))T=s?T:T.slice(0,-2),p=JSON.stringify(p);else if(c.isArray(p)&&eo(p)||(c.isFileList(p)||c.endsWith(T,"[]"))&&(W=c.toArray(p)))return T=qs(T),W.forEach(function(C,F){!(c.isUndefined(C)||C===null)&&t.append(o===!0?rs([T],F,i):o===null?T:T+"[]",l(C))}),!1}return _a(p)?!0:(t.append(rs(_,T,i),l(p)),!1)}const h=[],R=Object.assign(to,{defaultVisitor:d,convertValue:l,isVisitable:_a});function N(p,T){if(!c.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+T.join("."));h.push(p),c.forEach(p,function(W,U){(!(c.isUndefined(W)||W===null)&&r.call(t,W,c.isString(U)?U.trim():U,T,R))===!0&&N(W,T?T.concat(U):[U])}),h.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return N(e),t}function is(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function ba(e,t){this._pairs=[],e&&qt(e,this,t)}const Ys=ba.prototype;Ys.append=function(t,a){this._pairs.push([t,a])};Ys.toString=function(t){const a=t?function(s){return t.call(this,s,is)}:is;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function ao(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function zs(e,t,a){if(!t)return e;const s=a&&a.encode||ao;c.isFunction(a)&&(a={serialize:a});const r=a&&a.serialize;let i;if(r?i=r(t,a):i=c.isURLSearchParams(t)?t.toString():new ba(t,a).toString(s),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class os{constructor(){this.handlers=[]}use(t,a,s){return this.handlers.push({fulfilled:t,rejected:a,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Js={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},so=typeof URLSearchParams<"u"?URLSearchParams:ba,ro=typeof FormData<"u"?FormData:null,io=typeof Blob<"u"?Blob:null,oo={isBrowser:!0,classes:{URLSearchParams:so,FormData:ro,Blob:io},protocols:["http","https","file","blob","url","data"]},Na=typeof window<"u"&&typeof document<"u",Sa=typeof navigator=="object"&&navigator||void 0,no=Na&&(!Sa||["ReactNative","NativeScript","NS"].indexOf(Sa.product)<0),lo=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",co=Na&&window.location.href||"http://localhost",uo=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Na,hasStandardBrowserEnv:no,hasStandardBrowserWebWorkerEnv:lo,navigator:Sa,origin:co},Symbol.toStringTag,{value:"Module"})),Y={...uo,...oo};function po(e,t){return qt(e,new Y.classes.URLSearchParams,{visitor:function(a,s,r,i){return Y.isNode&&c.isBuffer(a)?(this.append(s,a.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function mo(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ho(e){const t={},a=Object.keys(e);let s;const r=a.length;let i;for(s=0;s=a.length;return o=!o&&c.isArray(r)?r.length:o,u?(c.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!n):((!r[o]||!c.isObject(r[o]))&&(r[o]=[]),t(a,s,r[o],i)&&c.isArray(r[o])&&(r[o]=ho(r[o])),!n)}if(c.isFormData(e)&&c.isFunction(e.entries)){const a={};return c.forEachEntry(e,(s,r)=>{t(mo(s),r,a,0)}),a}return null}function fo(e,t,a){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(a||JSON.stringify)(e)}const ut={transitional:Js,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const s=a.getContentType()||"",r=s.indexOf("application/json")>-1,i=c.isObject(t);if(i&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return r?JSON.stringify(js(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let n;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return po(t,this.formSerializer).toString();if((n=c.isFileList(t))||s.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return qt(n?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||r?(a.setContentType("application/json",!1),fo(t)):t}],transformResponse:[function(t){const a=this.transitional||ut.transitional,s=a&&a.forcedJSONParsing,r=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(s&&!this.responseType||r)){const o=!(a&&a.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(n){if(o)throw n.name==="SyntaxError"?E.from(n,E.ERR_BAD_RESPONSE,this,null,this.response):n}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Y.classes.FormData,Blob:Y.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{ut.headers[e]={}});const _o=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),So=e=>{const t={};let a,s,r;return e&&e.split(` -`).forEach(function(o){r=o.indexOf(":"),a=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!a||t[a]&&_o[a])&&(a==="set-cookie"?t[a]?t[a].push(s):t[a]=[s]:t[a]=t[a]?t[a]+", "+s:s)}),t},ns=Symbol("internals");function Ke(e){return e&&String(e).trim().toLowerCase()}function gt(e){return e===!1||e==null?e:c.isArray(e)?e.map(gt):String(e)}function ko(e){const t=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=a.exec(e);)t[s[1]]=s[2];return t}const To=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ra(e,t,a,s,r){if(c.isFunction(s))return s.call(this,t,a);if(r&&(t=a),!!c.isString(t)){if(c.isString(s))return t.indexOf(s)!==-1;if(c.isRegExp(s))return s.test(t)}}function Bo(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,a,s)=>a.toUpperCase()+s)}function Eo(e,t){const a=c.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+a,{value:function(r,i,o){return this[s].call(this,t,r,i,o)},configurable:!0})})}let $=class{constructor(t){t&&this.set(t)}set(t,a,s){const r=this;function i(n,u,l){const d=Ke(u);if(!d)throw new Error("header name must be a non-empty string");const h=c.findKey(r,d);(!h||r[h]===void 0||l===!0||l===void 0&&r[h]!==!1)&&(r[h||u]=gt(n))}const o=(n,u)=>c.forEach(n,(l,d)=>i(l,d,u));if(c.isPlainObject(t)||t instanceof this.constructor)o(t,a);else if(c.isString(t)&&(t=t.trim())&&!To(t))o(So(t),a);else if(c.isObject(t)&&c.isIterable(t)){let n={},u,l;for(const d of t){if(!c.isArray(d))throw TypeError("Object iterator must return a key-value pair");n[l=d[0]]=(u=n[l])?c.isArray(u)?[...u,d[1]]:[u,d[1]]:d[1]}o(n,a)}else t!=null&&i(a,t,s);return this}get(t,a){if(t=Ke(t),t){const s=c.findKey(this,t);if(s){const r=this[s];if(!a)return r;if(a===!0)return ko(r);if(c.isFunction(a))return a.call(this,r,s);if(c.isRegExp(a))return a.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,a){if(t=Ke(t),t){const s=c.findKey(this,t);return!!(s&&this[s]!==void 0&&(!a||ra(this,this[s],s,a)))}return!1}delete(t,a){const s=this;let r=!1;function i(o){if(o=Ke(o),o){const n=c.findKey(s,o);n&&(!a||ra(s,s[n],n,a))&&(delete s[n],r=!0)}}return c.isArray(t)?t.forEach(i):i(t),r}clear(t){const a=Object.keys(this);let s=a.length,r=!1;for(;s--;){const i=a[s];(!t||ra(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const a=this,s={};return c.forEach(this,(r,i)=>{const o=c.findKey(s,i);if(o){a[o]=gt(r),delete a[i];return}const n=t?Bo(i):String(i).trim();n!==i&&delete a[i],a[n]=gt(r),s[n]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const a=Object.create(null);return c.forEach(this,(s,r)=>{s!=null&&s!==!1&&(a[r]=t&&c.isArray(s)?s.join(", "):s)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,a])=>t+": "+a).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const s=new this(t);return a.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[ns]=this[ns]={accessors:{}}).accessors,r=this.prototype;function i(o){const n=Ke(o);s[n]||(Eo(r,o),s[n]=!0)}return c.isArray(t)?t.forEach(i):i(t),this}};$.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors($.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[a]=s}}});c.freezeMethods($);function ia(e,t){const a=this||ut,s=t||a,r=$.from(s.headers);let i=s.data;return c.forEach(e,function(n){i=n.call(a,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Vs(e){return!!(e&&e.__CANCEL__)}function je(e,t,a){E.call(this,e??"canceled",E.ERR_CANCELED,t,a),this.name="CanceledError"}c.inherits(je,E,{__CANCEL__:!0});function Gs(e,t,a){const s=a.config.validateStatus;!a.status||!s||s(a.status)?e(a):t(new E("Request failed with status code "+a.status,[E.ERR_BAD_REQUEST,E.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function Ro(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function wo(e,t){e=e||10;const a=new Array(e),s=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),d=s[i];o||(o=l),a[r]=u,s[r]=l;let h=i,R=0;for(;h!==r;)R+=a[h++],h=h%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),l-o{a=d,r=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const d=Date.now(),h=d-a;h>=s?o(l,d):(r=l,i||(i=setTimeout(()=>{i=null,o(r)},s-h)))},()=>r&&o(r)]}const Ot=(e,t,a=3)=>{let s=0;const r=wo(50,250);return go(i=>{const o=i.loaded,n=i.lengthComputable?i.total:void 0,u=o-s,l=r(u),d=o<=n;s=o;const h={loaded:o,total:n,progress:n?o/n:void 0,bytes:u,rate:l||void 0,estimated:l&&n&&d?(n-o)/l:void 0,event:i,lengthComputable:n!=null,[t?"download":"upload"]:!0};e(h)},a)},ls=(e,t)=>{const a=e!=null;return[s=>t[0]({lengthComputable:a,total:e,loaded:s}),t[1]]},cs=e=>(...t)=>c.asap(()=>e(...t)),Ao=Y.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,Y.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(Y.origin),Y.navigator&&/(msie|trident)/i.test(Y.navigator.userAgent)):()=>!0,Lo=Y.hasStandardBrowserEnv?{write(e,t,a,s,r,i){const o=[e+"="+encodeURIComponent(t)];c.isNumber(a)&&o.push("expires="+new Date(a).toGMTString()),c.isString(s)&&o.push("path="+s),c.isString(r)&&o.push("domain="+r),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function yo(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bo(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $s(e,t,a){let s=!yo(t);return e&&(s||a==!1)?bo(e,t):t}const ds=e=>e instanceof $?{...e}:e;function Pe(e,t){t=t||{};const a={};function s(l,d,h,R){return c.isPlainObject(l)&&c.isPlainObject(d)?c.merge.call({caseless:R},l,d):c.isPlainObject(d)?c.merge({},d):c.isArray(d)?d.slice():d}function r(l,d,h,R){if(c.isUndefined(d)){if(!c.isUndefined(l))return s(void 0,l,h,R)}else return s(l,d,h,R)}function i(l,d){if(!c.isUndefined(d))return s(void 0,d)}function o(l,d){if(c.isUndefined(d)){if(!c.isUndefined(l))return s(void 0,l)}else return s(void 0,d)}function n(l,d,h){if(h in t)return s(l,d);if(h in e)return s(void 0,l)}const u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:n,headers:(l,d,h)=>r(ds(l),ds(d),h,!0)};return c.forEach(Object.keys({...e,...t}),function(d){const h=u[d]||r,R=h(e[d],t[d],d);c.isUndefined(R)&&h!==n||(a[d]=R)}),a}const Ks=e=>{const t=Pe({},e);let{data:a,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:n}=t;if(t.headers=o=$.from(o),t.url=zs($s(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),n&&o.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):""))),c.isFormData(a)){if(Y.hasStandardBrowserEnv||Y.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(c.isFunction(a.getHeaders)){const u=a.getHeaders(),l=["content-type","content-length"];Object.entries(u).forEach(([d,h])=>{l.includes(d.toLowerCase())&&o.set(d,h)})}}if(Y.hasStandardBrowserEnv&&(s&&c.isFunction(s)&&(s=s(t)),s||s!==!1&&Ao(t.url))){const u=r&&i&&Lo.read(i);u&&o.set(r,u)}return t},No=typeof XMLHttpRequest<"u",Oo=No&&function(e){return new Promise(function(a,s){const r=Ks(e);let i=r.data;const o=$.from(r.headers).normalize();let{responseType:n,onUploadProgress:u,onDownloadProgress:l}=r,d,h,R,N,p;function T(){N&&N(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let _=new XMLHttpRequest;_.open(r.method.toUpperCase(),r.url,!0),_.timeout=r.timeout;function W(){if(!_)return;const C=$.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),B={data:!n||n==="text"||n==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:C,config:e,request:_};Gs(function(q){a(q),T()},function(q){s(q),T()},B),_=null}"onloadend"in _?_.onloadend=W:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(W)},_.onabort=function(){_&&(s(new E("Request aborted",E.ECONNABORTED,e,_)),_=null)},_.onerror=function(F){const B=F&&F.message?F.message:"Network Error",P=new E(B,E.ERR_NETWORK,e,_);P.event=F||null,s(P),_=null},_.ontimeout=function(){let F=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const B=r.transitional||Js;r.timeoutErrorMessage&&(F=r.timeoutErrorMessage),s(new E(F,B.clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,e,_)),_=null},i===void 0&&o.setContentType(null),"setRequestHeader"in _&&c.forEach(o.toJSON(),function(F,B){_.setRequestHeader(B,F)}),c.isUndefined(r.withCredentials)||(_.withCredentials=!!r.withCredentials),n&&n!=="json"&&(_.responseType=r.responseType),l&&([R,p]=Ot(l,!0),_.addEventListener("progress",R)),u&&_.upload&&([h,N]=Ot(u),_.upload.addEventListener("progress",h),_.upload.addEventListener("loadend",N)),(r.cancelToken||r.signal)&&(d=C=>{_&&(s(!C||C.type?new je(null,e,_):C),_.abort(),_=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const U=Ro(r.url);if(U&&Y.protocols.indexOf(U)===-1){s(new E("Unsupported protocol "+U+":",E.ERR_BAD_REQUEST,e));return}_.send(i||null)})},xo=(e,t)=>{const{length:a}=e=e?e.filter(Boolean):[];if(t||a){let s=new AbortController,r;const i=function(l){if(!r){r=!0,n();const d=l instanceof Error?l:this.reason;s.abort(d instanceof E?d:new je(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,i(new E(`timeout ${t} of ms exceeded`,E.ETIMEDOUT))},t);const n=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:u}=s;return u.unsubscribe=()=>c.asap(n),u}},Co=function*(e,t){let a=e.byteLength;if(a{const r=vo(e,t);let i=0,o,n=u=>{o||(o=!0,s&&s(u))};return new ReadableStream({async pull(u){try{const{done:l,value:d}=await r.next();if(l){n(),u.close();return}let h=d.byteLength;if(a){let R=i+=h;a(R)}u.enqueue(new Uint8Array(d))}catch(l){throw n(l),l}},cancel(u){return n(u),r.return()}},{highWaterMark:2})},ps=64*1024,{isFunction:kt}=c,Po=(({Request:e,Response:t})=>({Request:e,Response:t}))(c.global),{ReadableStream:ms,TextEncoder:hs}=c.global,fs=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Do=e=>{e=c.merge.call({skipUndefined:!0},Po,e);const{fetch:t,Request:a,Response:s}=e,r=t?kt(t):typeof fetch=="function",i=kt(a),o=kt(s);if(!r)return!1;const n=r&&kt(ms),u=r&&(typeof hs=="function"?(p=>T=>p.encode(T))(new hs):async p=>new Uint8Array(await new a(p).arrayBuffer())),l=i&&n&&fs(()=>{let p=!1;const T=new a(Y.origin,{body:new ms,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!T}),d=o&&n&&fs(()=>c.isReadableStream(new s("").body)),h={stream:d&&(p=>p.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!h[p]&&(h[p]=(T,_)=>{let W=T&&T[p];if(W)return W.call(T);throw new E(`Response type '${p}' is not supported`,E.ERR_NOT_SUPPORT,_)})});const R=async p=>{if(p==null)return 0;if(c.isBlob(p))return p.size;if(c.isSpecCompliantForm(p))return(await new a(Y.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(c.isArrayBufferView(p)||c.isArrayBuffer(p))return p.byteLength;if(c.isURLSearchParams(p)&&(p=p+""),c.isString(p))return(await u(p)).byteLength},N=async(p,T)=>{const _=c.toFiniteNumber(p.getContentLength());return _??R(T)};return async p=>{let{url:T,method:_,data:W,signal:U,cancelToken:C,timeout:F,onDownloadProgress:B,onUploadProgress:P,responseType:q,headers:Z,withCredentials:we="same-origin",fetchOptions:Ka}=Ks(p),Za=t||fetch;q=q?(q+"").toLowerCase():"text";let _t=xo([U,C&&C.toAbortSignal()],F),$e=null;const Ne=_t&&_t.unsubscribe&&(()=>{_t.unsubscribe()});let Xa;try{if(P&&l&&_!=="get"&&_!=="head"&&(Xa=await N(Z,W))!==0){let Ae=new a(T,{method:"POST",body:W,duplex:"half"}),He;if(c.isFormData(W)&&(He=Ae.headers.get("content-type"))&&Z.setContentType(He),Ae.body){const[sa,St]=ls(Xa,Ot(cs(P)));W=us(Ae.body,ps,sa,St)}}c.isString(we)||(we=we?"include":"omit");const ce=i&&"credentials"in a.prototype,Qa={...Ka,signal:_t,method:_.toUpperCase(),headers:Z.normalize().toJSON(),body:W,duplex:"half",credentials:ce?we:void 0};$e=i&&new a(T,Qa);let ge=await(i?Za($e,Ka):Za(T,Qa));const es=d&&(q==="stream"||q==="response");if(d&&(B||es&&Ne)){const Ae={};["status","statusText","headers"].forEach(ts=>{Ae[ts]=ge[ts]});const He=c.toFiniteNumber(ge.headers.get("content-length")),[sa,St]=B&&ls(He,Ot(cs(B),!0))||[];ge=new s(us(ge.body,ps,sa,()=>{St&&St(),Ne&&Ne()}),Ae)}q=q||"text";let Xr=await h[c.findKey(h,q)||"text"](ge,p);return!es&&Ne&&Ne(),await new Promise((Ae,He)=>{Gs(Ae,He,{data:Xr,headers:$.from(ge.headers),status:ge.status,statusText:ge.statusText,config:p,request:$e})})}catch(ce){throw Ne&&Ne(),ce&&ce.name==="TypeError"&&/Load failed|fetch/i.test(ce.message)?Object.assign(new E("Network Error",E.ERR_NETWORK,p,$e),{cause:ce.cause||ce}):E.from(ce,ce&&ce.code,p,$e)}}},Ho=new Map,Zs=e=>{let t=e?e.env:{};const{fetch:a,Request:s,Response:r}=t,i=[s,r,a];let o=i.length,n=o,u,l,d=Ho;for(;n--;)u=i[n],l=d.get(u),l===void 0&&d.set(u,l=n?new Map:Do(t)),d=l;return l};Zs();const ka={http:Qi,xhr:Oo,fetch:{get:Zs}};c.forEach(ka,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const _s=e=>`- ${e}`,Io=e=>c.isFunction(e)||e===null||e===!1,Xs={getAdapter:(e,t)=>{e=c.isArray(e)?e:[e];const{length:a}=e;let s,r;const i={};for(let o=0;o`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let n=a?o.length>1?`since : -`+o.map(_s).join(` -`):" "+_s(o[0]):"as no adapter specified";throw new E("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r},adapters:ka};function oa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new je(null,e)}function Ss(e){return oa(e),e.headers=$.from(e.headers),e.data=ia.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xs.getAdapter(e.adapter||ut.adapter,e)(e).then(function(s){return oa(e),s.data=ia.call(e,e.transformResponse,s),s.headers=$.from(s.headers),s},function(s){return Vs(s)||(oa(e),s&&s.response&&(s.response.data=ia.call(e,e.transformResponse,s.response),s.response.headers=$.from(s.response.headers))),Promise.reject(s)})}const Qs="1.12.2",Yt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yt[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const ks={};Yt.transitional=function(t,a,s){function r(i,o){return"[Axios v"+Qs+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,n)=>{if(t===!1)throw new E(r(o," has been removed"+(a?" in "+a:"")),E.ERR_DEPRECATED);return a&&!ks[o]&&(ks[o]=!0,console.warn(r(o," has been deprecated since v"+a+" and will be removed in the near future"))),t?t(i,o,n):!0}};Yt.spelling=function(t){return(a,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Mo(e,t,a){if(typeof e!="object")throw new E("options must be an object",E.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],o=t[i];if(o){const n=e[i],u=n===void 0||o(n,i,e);if(u!==!0)throw new E("option "+i+" must be "+u,E.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new E("Unknown option "+i,E.ERR_BAD_OPTION)}}const At={assertOptions:Mo,validators:Yt},de=At.validators;let ve=class{constructor(t){this.defaults=t||{},this.interceptors={request:new os,response:new os}}async request(t,a){try{return await this._request(t,a)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=` -`+i):s.stack=i}catch{}}throw s}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=Pe(this.defaults,a);const{transitional:s,paramsSerializer:r,headers:i}=a;s!==void 0&&At.assertOptions(s,{silentJSONParsing:de.transitional(de.boolean),forcedJSONParsing:de.transitional(de.boolean),clarifyTimeoutError:de.transitional(de.boolean)},!1),r!=null&&(c.isFunction(r)?a.paramsSerializer={serialize:r}:At.assertOptions(r,{encode:de.function,serialize:de.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),At.assertOptions(a,{baseUrl:de.spelling("baseURL"),withXsrfToken:de.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let o=i&&c.merge(i.common,i[a.method]);i&&c.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),a.headers=$.concat(o,i);const n=[];let u=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(a)===!1||(u=u&&T.synchronous,n.unshift(T.fulfilled,T.rejected))});const l=[];this.interceptors.response.forEach(function(T){l.push(T.fulfilled,T.rejected)});let d,h=0,R;if(!u){const p=[Ss.bind(this),void 0];for(p.unshift(...n),p.push(...l),R=p.length,d=Promise.resolve(a);h{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(n=>{s.subscribe(n),i=n}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,n){s.reason||(s.reason=new je(i,o,n),a(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=s=>{t.abort(s)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new er(function(r){t=r}),cancel:t}}};function Uo(e){return function(a){return e.apply(null,a)}}function qo(e){return c.isObject(e)&&e.isAxiosError===!0}const Ta={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ta).forEach(([e,t])=>{Ta[t]=e});function tr(e){const t=new ve(e),a=Cs(ve.prototype.request,t);return c.extend(a,ve.prototype,t,{allOwnKeys:!0}),c.extend(a,t,null,{allOwnKeys:!0}),a.create=function(r){return tr(Pe(e,r))},a}const D=tr(ut);D.Axios=ve;D.CanceledError=je;D.CancelToken=Fo;D.isCancel=Vs;D.VERSION=Qs;D.toFormData=qt;D.AxiosError=E;D.Cancel=D.CanceledError;D.all=function(t){return Promise.all(t)};D.spread=Uo;D.isAxiosError=qo;D.mergeConfig=Pe;D.AxiosHeaders=$;D.formToJSON=e=>js(c.isHTMLForm(e)?new FormData(e):e);D.getAdapter=Xs.getAdapter;D.HttpStatusCode=Ta;D.default=D;const{Axios:q0,AxiosError:Y0,CanceledError:z0,isCancel:J0,CancelToken:j0,VERSION:V0,all:G0,Cancel:$0,isAxiosError:K0,spread:Z0,toFormData:X0,AxiosHeaders:Q0,HttpStatusCode:ep,formToJSON:tp,getAdapter:ap,mergeConfig:sp}=D;var ar;function f(){return ar.apply(null,arguments)}function Yo(e){ar=e}function ie(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function We(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Oa(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(L(e,t))return!1;return!0}function V(e){return e===void 0}function Be(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function pt(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function sr(e,t){var a=[],s,r=e.length;for(s=0;s>>0,s;for(s=0;s0)for(a=0;a=0;return(i?a?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+s}var Wa=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Tt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,la={},Ue={};function k(e,t,a,s){var r=s;typeof s=="string"&&(r=function(){return this[s]()}),e&&(Ue[e]=r),t&&(Ue[t[0]]=function(){return pe(r.apply(this,arguments),t[1],t[2])}),a&&(Ue[a]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function Go(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function $o(e){var t=e.match(Wa),a,s;for(a=0,s=t.length;a=0&&Tt.test(e);)e=e.replace(Tt,s),Tt.lastIndex=0,a-=1;return e}var Ko={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Zo(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.match(Wa).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var Xo="Invalid date";function Qo(){return this._invalidDate}var en="%d",tn=/\d{1,2}/;function an(e){return this._ordinal.replace("%d",e)}var sn={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function rn(e,t,a,s){var r=this._relativeTime[a];return he(r)?r(e,t,a,s):r.replace(/%d/i,e)}function on(e,t){var a=this._relativeTime[e>0?"future":"past"];return he(a)?a(t):a.replace(/%s/i,t)}var at={};function J(e,t){var a=e.toLowerCase();at[a]=at[a+"s"]=at[t]=e}function se(e){return typeof e=="string"?at[e]||at[e.toLowerCase()]:void 0}function Pa(e){var t={},a,s;for(s in e)L(e,s)&&(a=se(s),a&&(t[a]=e[s]));return t}var nr={};function j(e,t){nr[e]=t}function nn(e){var t=[],a;for(a in e)L(e,a)&&t.push({unit:a,priority:nr[a]});return t.sort(function(s,r){return s.priority-r.priority}),t}function Jt(e){return e%4===0&&e%100!==0||e%400===0}function te(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function g(e){var t=+e,a=0;return t!==0&&isFinite(t)&&(a=te(t)),a}function Ve(e,t){return function(a){return a!=null?(lr(this,e,a),f.updateOffset(this,t),this):xt(this,e)}}function xt(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function lr(e,t,a){e.isValid()&&!isNaN(a)&&(t==="FullYear"&&Jt(e.year())&&e.month()===1&&e.date()===29?(a=g(a),e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),Zt(a,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](a))}function ln(e){return e=se(e),he(this[e])?this[e]():this}function cn(e,t){if(typeof e=="object"){e=Pa(e);var a=nn(e),s,r=a.length;for(s=0;s68?1900:2e3)};var kr=Ve("FullYear",!0);function bn(){return Jt(this.year())}function Nn(e,t,a,s,r,i,o){var n;return e<100&&e>=0?(n=new Date(e+400,t,a,s,r,i,o),isFinite(n.getFullYear())&&n.setFullYear(e)):n=new Date(e,t,a,s,r,i,o),n}function it(e){var t,a;return e<100&&e>=0?(a=Array.prototype.slice.call(arguments),a[0]=e+400,t=new Date(Date.UTC.apply(null,a)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function vt(e,t,a){var s=7+t-a,r=(7+it(e,0,s).getUTCDay()-t)%7;return-r+s-1}function Tr(e,t,a,s,r){var i=(7+a-s)%7,o=vt(e,s,r),n=1+7*(t-1)+i+o,u,l;return n<=0?(u=e-1,l=st(u)+n):n>st(e)?(u=e+1,l=n-st(e)):(u=e,l=n),{year:u,dayOfYear:l}}function ot(e,t,a){var s=vt(e.year(),t,a),r=Math.floor((e.dayOfYear()-s-1)/7)+1,i,o;return r<1?(o=e.year()-1,i=r+Te(o,t,a)):r>Te(e.year(),t,a)?(i=r-Te(e.year(),t,a),o=e.year()+1):(o=e.year(),i=r),{week:i,year:o}}function Te(e,t,a){var s=vt(e,t,a),r=vt(e+1,t,a);return(st(e)-s+r)/7}k("w",["ww",2],"wo","week");k("W",["WW",2],"Wo","isoWeek");J("week","w");J("isoWeek","W");j("week",5);j("isoWeek",5);S("w",x);S("ww",x,Q);S("W",x);S("WW",x,Q);ft(["w","ww","W","WW"],function(e,t,a,s){t[s.substr(0,1)]=g(e)});function On(e){return ot(e,this._week.dow,this._week.doy).week}var xn={dow:0,doy:6};function Cn(){return this._week.dow}function vn(){return this._week.doy}function Wn(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Pn(e){var t=ot(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}k("d",0,"do","day");k("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});k("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});k("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});k("e",0,0,"weekday");k("E",0,0,"isoWeekday");J("day","d");J("weekday","e");J("isoWeekday","E");j("day",11);j("weekday",11);j("isoWeekday",11);S("d",x);S("e",x);S("E",x);S("dd",function(e,t){return t.weekdaysMinRegex(e)});S("ddd",function(e,t){return t.weekdaysShortRegex(e)});S("dddd",function(e,t){return t.weekdaysRegex(e)});ft(["dd","ddd","dddd"],function(e,t,a,s){var r=a._locale.weekdaysParse(e,s,a._strict);r!=null?t.d=r:w(a).invalidWeekday=e});ft(["d","e","E"],function(e,t,a,s){t[s]=g(e)});function Dn(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Hn(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ia(e,t){return e.slice(t,7).concat(e.slice(0,t))}var In="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Br="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Mn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Fn=ht,Un=ht,qn=ht;function Yn(e,t){var a=ie(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Ia(a,this._week.dow):e?a[e.day()]:a}function zn(e){return e===!0?Ia(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Jn(e){return e===!0?Ia(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function jn(e,t,a){var s,r,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)i=me([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(i,"").toLocaleLowerCase();return a?t==="dddd"?(r=H.call(this._weekdaysParse,o),r!==-1?r:null):t==="ddd"?(r=H.call(this._shortWeekdaysParse,o),r!==-1?r:null):(r=H.call(this._minWeekdaysParse,o),r!==-1?r:null):t==="dddd"?(r=H.call(this._weekdaysParse,o),r!==-1||(r=H.call(this._shortWeekdaysParse,o),r!==-1)?r:(r=H.call(this._minWeekdaysParse,o),r!==-1?r:null)):t==="ddd"?(r=H.call(this._shortWeekdaysParse,o),r!==-1||(r=H.call(this._weekdaysParse,o),r!==-1)?r:(r=H.call(this._minWeekdaysParse,o),r!==-1?r:null)):(r=H.call(this._minWeekdaysParse,o),r!==-1||(r=H.call(this._weekdaysParse,o),r!==-1)?r:(r=H.call(this._shortWeekdaysParse,o),r!==-1?r:null))}function Vn(e,t,a){var s,r,i;if(this._weekdaysParseExact)return jn.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(r=me([2e3,1]).day(s),a&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[s]=new RegExp(i.replace(".",""),"i")),a&&t==="dddd"&&this._fullWeekdaysParse[s].test(e))return s;if(a&&t==="ddd"&&this._shortWeekdaysParse[s].test(e))return s;if(a&&t==="dd"&&this._minWeekdaysParse[s].test(e))return s;if(!a&&this._weekdaysParse[s].test(e))return s}}function Gn(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=Dn(e,this.localeData()),this.add(e-t,"d")):t}function $n(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Kn(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Hn(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Zn(e){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Ma.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(L(this,"_weekdaysRegex")||(this._weekdaysRegex=Fn),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xn(e){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Ma.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(L(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Un),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qn(e){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Ma.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(L(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qn),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ma(){function e(d,h){return h.length-d.length}var t=[],a=[],s=[],r=[],i,o,n,u,l;for(i=0;i<7;i++)o=me([2e3,1]).day(i),n=X(this.weekdaysMin(o,"")),u=X(this.weekdaysShort(o,"")),l=X(this.weekdays(o,"")),t.push(n),a.push(u),s.push(l),r.push(n),r.push(u),r.push(l);t.sort(e),a.sort(e),s.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Fa(){return this.hours()%12||12}function el(){return this.hours()||24}k("H",["HH",2],0,"hour");k("h",["hh",2],0,Fa);k("k",["kk",2],0,el);k("hmm",0,0,function(){return""+Fa.apply(this)+pe(this.minutes(),2)});k("hmmss",0,0,function(){return""+Fa.apply(this)+pe(this.minutes(),2)+pe(this.seconds(),2)});k("Hmm",0,0,function(){return""+this.hours()+pe(this.minutes(),2)});k("Hmmss",0,0,function(){return""+this.hours()+pe(this.minutes(),2)+pe(this.seconds(),2)});function Er(e,t){k(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Er("a",!0);Er("A",!1);J("hour","h");j("hour",13);function Rr(e,t){return t._meridiemParse}S("a",Rr);S("A",Rr);S("H",x);S("h",x);S("k",x);S("HH",x,Q);S("hh",x,Q);S("kk",x,Q);S("hmm",ur);S("hmmss",pr);S("Hmm",ur);S("Hmmss",pr);b(["H","HH"],M);b(["k","kk"],function(e,t,a){var s=g(e);t[M]=s===24?0:s});b(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e});b(["h","hh"],function(e,t,a){t[M]=g(e),w(a).bigHour=!0});b("hmm",function(e,t,a){var s=e.length-2;t[M]=g(e.substr(0,s)),t[re]=g(e.substr(s)),w(a).bigHour=!0});b("hmmss",function(e,t,a){var s=e.length-4,r=e.length-2;t[M]=g(e.substr(0,s)),t[re]=g(e.substr(s,2)),t[ke]=g(e.substr(r)),w(a).bigHour=!0});b("Hmm",function(e,t,a){var s=e.length-2;t[M]=g(e.substr(0,s)),t[re]=g(e.substr(s))});b("Hmmss",function(e,t,a){var s=e.length-4,r=e.length-2;t[M]=g(e.substr(0,s)),t[re]=g(e.substr(s,2)),t[ke]=g(e.substr(r))});function tl(e){return(e+"").toLowerCase().charAt(0)==="p"}var al=/[ap]\.?m?\.?/i,sl=Ve("Hours",!0);function rl(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"}var wr={calendar:jo,longDateFormat:Ko,invalidDate:Xo,ordinal:en,dayOfMonthOrdinalParse:tn,relativeTime:sn,months:kn,monthsShort:mr,week:xn,weekdays:In,weekdaysMin:Mn,weekdaysShort:Br,meridiemParse:al},v={},Ze={},nt;function il(e,t){var a,s=Math.min(e.length,t.length);for(a=0;a0;){if(r=Xt(i.slice(0,a).join("-")),r)return r;if(s&&s.length>=a&&il(i,s)>=a-1)break;a--}t++}return nt}function nl(e){return e.match("^[^/\\\\]*$")!=null}function Xt(e){var t=null,a;if(v[e]===void 0&&typeof Nt<"u"&&Nt&&Nt.exports&&nl(e))try{t=nt._abbr,a=require,a("./locale/"+e),be(t)}catch{v[e]=null}return v[e]}function be(e,t){var a;return e&&(V(t)?a=Ee(e):a=Ua(e,t),a?nt=a:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),nt._abbr}function Ua(e,t){if(t!==null){var a,s=wr;if(t.abbr=e,v[e]!=null)ir("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=v[e]._config;else if(t.parentLocale!=null)if(v[t.parentLocale]!=null)s=v[t.parentLocale]._config;else if(a=Xt(t.parentLocale),a!=null)s=a._config;else return Ze[t.parentLocale]||(Ze[t.parentLocale]=[]),Ze[t.parentLocale].push({name:e,config:t}),null;return v[e]=new va(Ea(s,t)),Ze[e]&&Ze[e].forEach(function(r){Ua(r.name,r.config)}),be(e),v[e]}else return delete v[e],null}function ll(e,t){if(t!=null){var a,s,r=wr;v[e]!=null&&v[e].parentLocale!=null?v[e].set(Ea(v[e]._config,t)):(s=Xt(e),s!=null&&(r=s._config),t=Ea(r,t),s==null&&(t.abbr=e),a=new va(t),a.parentLocale=v[e],v[e]=a),be(e)}else v[e]!=null&&(v[e].parentLocale!=null?(v[e]=v[e].parentLocale,e===be()&&be(e)):v[e]!=null&&delete v[e]);return v[e]}function Ee(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return nt;if(!ie(e)){if(t=Xt(e),t)return t;e=[e]}return ol(e)}function cl(){return Ra(v)}function qa(e){var t,a=e._a;return a&&w(e).overflow===-2&&(t=a[Se]<0||a[Se]>11?Se:a[ue]<1||a[ue]>Zt(a[z],a[Se])?ue:a[M]<0||a[M]>24||a[M]===24&&(a[re]!==0||a[ke]!==0||a[Ce]!==0)?M:a[re]<0||a[re]>59?re:a[ke]<0||a[ke]>59?ke:a[Ce]<0||a[Ce]>999?Ce:-1,w(e)._overflowDayOfYear&&(tue)&&(t=ue),w(e)._overflowWeeks&&t===-1&&(t=fn),w(e)._overflowWeekday&&t===-1&&(t=_n),w(e).overflow=t),e}var dl=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ul=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pl=/Z|[+-]\d\d(?::?\d\d)?/,Bt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ca=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ml=/^\/?Date\((-?\d+)/i,hl=/^(?:(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{4}))$/,fl={UT:0,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 gr(e){var t,a,s=e._i,r=dl.exec(s)||ul.exec(s),i,o,n,u,l=Bt.length,d=ca.length;if(r){for(w(e).iso=!0,t=0,a=l;tst(o)||e._dayOfYear===0)&&(w(e)._overflowDayOfYear=!0),a=it(o,0,e._dayOfYear),e._a[Se]=a.getUTCMonth(),e._a[ue]=a.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[M]===24&&e._a[re]===0&&e._a[ke]===0&&e._a[Ce]===0&&(e._nextDay=!0,e._a[M]=0),e._d=(e._useUTC?it:Nn).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[M]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(w(e).weekdayMismatch=!0)}}function wl(e){var t,a,s,r,i,o,n,u,l;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,a=Me(t.GG,e._a[z],ot(O(),1,4).year),s=Me(t.W,1),r=Me(t.E,1),(r<1||r>7)&&(u=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,l=ot(O(),i,o),a=Me(t.gg,e._a[z],l.year),s=Me(t.w,l.week),t.d!=null?(r=t.d,(r<0||r>6)&&(u=!0)):t.e!=null?(r=t.e+i,(t.e<0||t.e>6)&&(u=!0)):r=i),s<1||s>Te(a,i,o)?w(e)._overflowWeeks=!0:u!=null?w(e)._overflowWeekday=!0:(n=Tr(a,s,r,i,o),e._a[z]=n.year,e._dayOfYear=n.dayOfYear)}f.ISO_8601=function(){};f.RFC_2822=function(){};function za(e){if(e._f===f.ISO_8601){gr(e);return}if(e._f===f.RFC_2822){Ar(e);return}e._a=[],w(e).empty=!0;var t=""+e._i,a,s,r,i,o,n=t.length,u=0,l,d;for(r=or(e._f,e._locale).match(Wa)||[],d=r.length,a=0;a0&&w(e).unusedInput.push(o),t=t.slice(t.indexOf(s)+s.length),u+=s.length),Ue[i]?(s?w(e).empty=!1:w(e).unusedTokens.push(i),hn(i,s,e)):e._strict&&!s&&w(e).unusedTokens.push(i);w(e).charsLeftOver=n-u,t.length>0&&w(e).unusedInput.push(t),e._a[M]<=12&&w(e).bigHour===!0&&e._a[M]>0&&(w(e).bigHour=void 0),w(e).parsedDateParts=e._a.slice(0),w(e).meridiem=e._meridiem,e._a[M]=gl(e._locale,e._a[M],e._meridiem),l=w(e).era,l!==null&&(e._a[z]=e._locale.erasConvertYear(l,e._a[z])),Ya(e),qa(e)}function gl(e,t,a){var s;return a==null?t:e.meridiemHour!=null?e.meridiemHour(t,a):(e.isPM!=null&&(s=e.isPM(a),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function Al(e){var t,a,s,r,i,o,n=!1,u=e._f.length;if(u===0){w(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;rthis?this:e:zt()});function br(e,t){var a,s;if(t.length===1&&ie(t[0])&&(t=t[0]),!t.length)return O();for(a=t[0],s=1;sthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function jl(){if(!V(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Ca(e,this),e=Lr(e),e._a?(t=e._isUTC?me(e._a):O(e._a),this._isDSTShifted=this.isValid()&&Hl(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Vl(){return this.isValid()?!this._isUTC:!1}function Gl(){return this.isValid()?this._isUTC:!1}function Or(){return this.isValid()?this._isUTC&&this._offset===0:!1}var $l=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Kl=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function le(e,t){var a=e,s=null,r,i,o;return yt(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:Be(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(s=$l.exec(e))?(r=s[1]==="-"?-1:1,a={y:0,d:g(s[ue])*r,h:g(s[M])*r,m:g(s[re])*r,s:g(s[ke])*r,ms:g(ga(s[Ce]*1e3))*r}):(s=Kl.exec(e))?(r=s[1]==="-"?-1:1,a={y:Oe(s[2],r),M:Oe(s[3],r),w:Oe(s[4],r),d:Oe(s[5],r),h:Oe(s[6],r),m:Oe(s[7],r),s:Oe(s[8],r)}):a==null?a={}:typeof a=="object"&&("from"in a||"to"in a)&&(o=Zl(O(a.from),O(a.to)),a={},a.ms=o.milliseconds,a.M=o.months),i=new Qt(a),yt(e)&&L(e,"_locale")&&(i._locale=e._locale),yt(e)&&L(e,"_isValid")&&(i._isValid=e._isValid),i}le.fn=Qt.prototype;le.invalid=Dl;function Oe(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function Rs(e,t){var a={};return a.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function Zl(e,t){var a;return e.isValid()&&t.isValid()?(t=ja(t,e),e.isBefore(t)?a=Rs(e,t):(a=Rs(t,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function xr(e,t){return function(a,s){var r,i;return s!==null&&!isNaN(+s)&&(ir(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=a,a=s,s=i),r=le(a,s),Cr(this,r,e),this}}function Cr(e,t,a,s){var r=t._milliseconds,i=ga(t._days),o=ga(t._months);e.isValid()&&(s=s??!0,o&&fr(e,xt(e,"Month")+o*a),i&&lr(e,"Date",xt(e,"Date")+i*a),r&&e._d.setTime(e._d.valueOf()+r*a),s&&f.updateOffset(e,i||o))}var Xl=xr(1,"add"),Ql=xr(-1,"subtract");function vr(e){return typeof e=="string"||e instanceof String}function ec(e){return oe(e)||pt(e)||vr(e)||Be(e)||ac(e)||tc(e)||e===null||e===void 0}function tc(e){var t=We(e)&&!Oa(e),a=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,i,o=s.length;for(r=0;ra.valueOf():a.valueOf()9999?Lt(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):he(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Lt(a,"Z")):Lt(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function _c(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",a,s,r,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),a="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(a+s+r+i)}function Sc(e){e||(e=this.isUtc()?f.defaultFormatUtc:f.defaultFormat);var t=Lt(this,e);return this.localeData().postformat(t)}function kc(e,t){return this.isValid()&&(oe(e)&&e.isValid()||O(e).isValid())?le({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Tc(e){return this.from(O(),e)}function Bc(e,t){return this.isValid()&&(oe(e)&&e.isValid()||O(e).isValid())?le({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ec(e){return this.to(O(),e)}function Wr(e){var t;return e===void 0?this._locale._abbr:(t=Ee(e),t!=null&&(this._locale=t),this)}var Pr=ae("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Dr(){return this._locale}var Wt=1e3,qe=60*Wt,Pt=60*qe,Hr=(365*400+97)*24*Pt;function Ye(e,t){return(e%t+t)%t}function Ir(e,t,a){return e<100&&e>=0?new Date(e+400,t,a)-Hr:new Date(e,t,a).valueOf()}function Mr(e,t,a){return e<100&&e>=0?Date.UTC(e+400,t,a)-Hr:Date.UTC(e,t,a)}function Rc(e){var t,a;if(e=se(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?Mr:Ir,e){case"year":t=a(this.year(),0,1);break;case"quarter":t=a(this.year(),this.month()-this.month()%3,1);break;case"month":t=a(this.year(),this.month(),1);break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=a(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ye(t+(this._isUTC?0:this.utcOffset()*qe),Pt);break;case"minute":t=this._d.valueOf(),t-=Ye(t,qe);break;case"second":t=this._d.valueOf(),t-=Ye(t,Wt);break}return this._d.setTime(t),f.updateOffset(this,!0),this}function wc(e){var t,a;if(e=se(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?Mr:Ir,e){case"year":t=a(this.year()+1,0,1)-1;break;case"quarter":t=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=a(this.year(),this.month()+1,1)-1;break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Pt-Ye(t+(this._isUTC?0:this.utcOffset()*qe),Pt)-1;break;case"minute":t=this._d.valueOf(),t+=qe-Ye(t,qe)-1;break;case"second":t=this._d.valueOf(),t+=Wt-Ye(t,Wt)-1;break}return this._d.setTime(t),f.updateOffset(this,!0),this}function gc(){return this._d.valueOf()-(this._offset||0)*6e4}function Ac(){return Math.floor(this.valueOf()/1e3)}function Lc(){return new Date(this.valueOf())}function yc(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function bc(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Nc(){return this.isValid()?this.toISOString():null}function Oc(){return xa(this)}function xc(){return Le({},w(this))}function Cc(){return w(this).overflow}function vc(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}k("N",0,0,"eraAbbr");k("NN",0,0,"eraAbbr");k("NNN",0,0,"eraAbbr");k("NNNN",0,0,"eraName");k("NNNNN",0,0,"eraNarrow");k("y",["y",1],"yo","eraYear");k("y",["yy",2],0,"eraYear");k("y",["yyy",3],0,"eraYear");k("y",["yyyy",4],0,"eraYear");S("N",Va);S("NN",Va);S("NNN",Va);S("NNNN",zc);S("NNNNN",Jc);b(["N","NN","NNN","NNNN","NNNNN"],function(e,t,a,s){var r=a._locale.erasParse(e,s,a._strict);r?w(a).era=r:w(a).invalidEra=e});S("y",Ge);S("yy",Ge);S("yyy",Ge);S("yyyy",Ge);S("yo",jc);b(["y","yy","yyy","yyyy"],z);b(["yo"],function(e,t,a,s){var r;a._locale._eraYearOrdinalRegex&&(r=e.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?t[z]=a._locale.eraYearOrdinalParse(e,r):t[z]=parseInt(e,10)});function Wc(e,t){var a,s,r,i=this._eras||Ee("en")._eras;for(a=0,s=i.length;a=0)return i[s]}function Dc(e,t){var a=e.since<=e.until?1:-1;return t===void 0?f(e.since).year():f(e.since).year()+(t-e.offset)*a}function Hc(){var e,t,a,s=this.localeData().eras();for(e=0,t=s.length;ei&&(t=i),Qc.call(this,e,t,a,s,r))}function Qc(e,t,a,s,r){var i=Tr(e,t,a,s,r),o=it(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}k("Q",0,"Qo","quarter");J("quarter","Q");j("quarter",7);S("Q",cr);b("Q",function(e,t){t[Se]=(g(e)-1)*3});function ed(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}k("D",["DD",2],"Do","date");J("date","D");j("date",9);S("D",x);S("DD",x,Q);S("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});b(["D","DD"],ue);b("Do",function(e,t){t[ue]=g(e.match(x)[0])});var Ur=Ve("Date",!0);k("DDD",["DDDD",3],"DDDo","dayOfYear");J("dayOfYear","DDD");j("dayOfYear",4);S("DDD",Vt);S("DDDD",dr);b(["DDD","DDDD"],function(e,t,a){a._dayOfYear=g(e)});function td(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}k("m",["mm",2],0,"minute");J("minute","m");j("minute",14);S("m",x);S("mm",x,Q);b(["m","mm"],re);var ad=Ve("Minutes",!1);k("s",["ss",2],0,"second");J("second","s");j("second",15);S("s",x);S("ss",x,Q);b(["s","ss"],ke);var sd=Ve("Seconds",!1);k("S",0,0,function(){return~~(this.millisecond()/100)});k(0,["SS",2],0,function(){return~~(this.millisecond()/10)});k(0,["SSS",3],0,"millisecond");k(0,["SSSS",4],0,function(){return this.millisecond()*10});k(0,["SSSSS",5],0,function(){return this.millisecond()*100});k(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});k(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});k(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});k(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});J("millisecond","ms");j("millisecond",16);S("S",Vt,cr);S("SS",Vt,Q);S("SSS",Vt,dr);var ye,qr;for(ye="SSSS";ye.length<=9;ye+="S")S(ye,Ge);function rd(e,t){t[Ce]=g(("0."+e)*1e3)}for(ye="S";ye.length<=9;ye+="S")b(ye,rd);qr=Ve("Milliseconds",!1);k("z",0,0,"zoneAbbr");k("zz",0,0,"zoneName");function id(){return this._isUTC?"UTC":""}function od(){return this._isUTC?"Coordinated Universal Time":""}var m=mt.prototype;m.add=Xl;m.calendar=ic;m.clone=oc;m.diff=mc;m.endOf=wc;m.format=Sc;m.from=kc;m.fromNow=Tc;m.to=Bc;m.toNow=Ec;m.get=ln;m.invalidAt=Cc;m.isAfter=nc;m.isBefore=lc;m.isBetween=cc;m.isSame=dc;m.isSameOrAfter=uc;m.isSameOrBefore=pc;m.isValid=Oc;m.lang=Pr;m.locale=Wr;m.localeData=Dr;m.max=Ol;m.min=Nl;m.parsingFlags=xc;m.set=cn;m.startOf=Rc;m.subtract=Ql;m.toArray=yc;m.toObject=bc;m.toDate=Lc;m.toISOString=fc;m.inspect=_c;typeof Symbol<"u"&&Symbol.for!=null&&(m[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});m.toJSON=Nc;m.toString=hc;m.unix=Ac;m.valueOf=gc;m.creationData=vc;m.eraName=Hc;m.eraNarrow=Ic;m.eraAbbr=Mc;m.eraYear=Fc;m.year=kr;m.isLeapYear=bn;m.weekYear=Vc;m.isoWeekYear=Gc;m.quarter=m.quarters=ed;m.month=_r;m.daysInMonth=An;m.week=m.weeks=Wn;m.isoWeek=m.isoWeeks=Pn;m.weeksInYear=Zc;m.weeksInWeekYear=Xc;m.isoWeeksInYear=$c;m.isoWeeksInISOWeekYear=Kc;m.date=Ur;m.day=m.days=Gn;m.weekday=$n;m.isoWeekday=Kn;m.dayOfYear=td;m.hour=m.hours=sl;m.minute=m.minutes=ad;m.second=m.seconds=sd;m.millisecond=m.milliseconds=qr;m.utcOffset=Ml;m.utc=Ul;m.local=ql;m.parseZone=Yl;m.hasAlignedHourOffset=zl;m.isDST=Jl;m.isLocal=Vl;m.isUtcOffset=Gl;m.isUtc=Or;m.isUTC=Or;m.zoneAbbr=id;m.zoneName=od;m.dates=ae("dates accessor is deprecated. Use date instead.",Ur);m.months=ae("months accessor is deprecated. Use month instead",_r);m.years=ae("years accessor is deprecated. Use year instead",kr);m.zone=ae("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Fl);m.isDSTShifted=ae("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",jl);function nd(e){return O(e*1e3)}function ld(){return O.apply(null,arguments).parseZone()}function Yr(e){return e}var y=va.prototype;y.calendar=Vo;y.longDateFormat=Zo;y.invalidDate=Qo;y.ordinal=an;y.preparse=Yr;y.postformat=Yr;y.relativeTime=rn;y.pastFuture=on;y.set=Jo;y.eras=Wc;y.erasParse=Pc;y.erasConvertYear=Dc;y.erasAbbrRegex=qc;y.erasNameRegex=Uc;y.erasNarrowRegex=Yc;y.months=En;y.monthsShort=Rn;y.monthsParse=gn;y.monthsRegex=yn;y.monthsShortRegex=Ln;y.week=On;y.firstDayOfYear=vn;y.firstDayOfWeek=Cn;y.weekdays=Yn;y.weekdaysMin=Jn;y.weekdaysShort=zn;y.weekdaysParse=Vn;y.weekdaysRegex=Zn;y.weekdaysShortRegex=Xn;y.weekdaysMinRegex=Qn;y.isPM=tl;y.meridiem=rl;function Dt(e,t,a,s){var r=Ee(),i=me().set(s,t);return r[a](i,e)}function zr(e,t,a){if(Be(e)&&(t=e,e=void 0),e=e||"",t!=null)return Dt(e,t,a,"month");var s,r=[];for(s=0;s<12;s++)r[s]=Dt(e,s,a,"month");return r}function $a(e,t,a,s){typeof e=="boolean"?(Be(t)&&(a=t,t=void 0),t=t||""):(t=e,a=t,e=!1,Be(t)&&(a=t,t=void 0),t=t||"");var r=Ee(),i=e?r._week.dow:0,o,n=[];if(a!=null)return Dt(t,(a+i)%7,s,"day");for(o=0;o<7;o++)n[o]=Dt(t,(o+i)%7,s,"day");return n}function cd(e,t){return zr(e,t,"months")}function dd(e,t){return zr(e,t,"monthsShort")}function ud(e,t,a){return $a(e,t,a,"weekdays")}function pd(e,t,a){return $a(e,t,a,"weekdaysShort")}function md(e,t,a){return $a(e,t,a,"weekdaysMin")}be("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,a=g(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+a}});f.lang=ae("moment.lang is deprecated. Use moment.locale instead.",be);f.langData=ae("moment.langData is deprecated. Use moment.localeData instead.",Ee);var fe=Math.abs;function hd(){var e=this._data;return this._milliseconds=fe(this._milliseconds),this._days=fe(this._days),this._months=fe(this._months),e.milliseconds=fe(e.milliseconds),e.seconds=fe(e.seconds),e.minutes=fe(e.minutes),e.hours=fe(e.hours),e.months=fe(e.months),e.years=fe(e.years),this}function Jr(e,t,a,s){var r=le(t,a);return e._milliseconds+=s*r._milliseconds,e._days+=s*r._days,e._months+=s*r._months,e._bubble()}function fd(e,t){return Jr(this,e,t,1)}function _d(e,t){return Jr(this,e,t,-1)}function ws(e){return e<0?Math.floor(e):Math.ceil(e)}function Sd(){var e=this._milliseconds,t=this._days,a=this._months,s=this._data,r,i,o,n,u;return e>=0&&t>=0&&a>=0||e<=0&&t<=0&&a<=0||(e+=ws(La(a)+t)*864e5,t=0,a=0),s.milliseconds=e%1e3,r=te(e/1e3),s.seconds=r%60,i=te(r/60),s.minutes=i%60,o=te(i/60),s.hours=o%24,t+=te(o/24),u=te(jr(t)),a+=u,t-=ws(La(u)),n=te(a/12),a%=12,s.days=t,s.months=a,s.years=n,this}function jr(e){return e*4800/146097}function La(e){return e*146097/4800}function kd(e){if(!this.isValid())return NaN;var t,a,s=this._milliseconds;if(e=se(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,a=this._months+jr(t),e){case"month":return a;case"quarter":return a/3;case"year":return a/12}else switch(t=this._days+Math.round(La(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function Td(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+g(this._months/12)*31536e6:NaN}function Re(e){return function(){return this.as(e)}}var Bd=Re("ms"),Ed=Re("s"),Rd=Re("m"),wd=Re("h"),gd=Re("d"),Ad=Re("w"),Ld=Re("M"),yd=Re("Q"),bd=Re("y");function Nd(){return le(this)}function Od(e){return e=se(e),this.isValid()?this[e+"s"]():NaN}function De(e){return function(){return this.isValid()?this._data[e]:NaN}}var xd=De("milliseconds"),Cd=De("seconds"),vd=De("minutes"),Wd=De("hours"),Pd=De("days"),Dd=De("months"),Hd=De("years");function Id(){return te(this.days()/7)}var _e=Math.round,Fe={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Md(e,t,a,s,r){return r.relativeTime(t||1,!!a,e,s)}function Fd(e,t,a,s){var r=le(e).abs(),i=_e(r.as("s")),o=_e(r.as("m")),n=_e(r.as("h")),u=_e(r.as("d")),l=_e(r.as("M")),d=_e(r.as("w")),h=_e(r.as("y")),R=i<=a.ss&&["s",i]||i0,R[4]=s,Md.apply(null,R)}function Ud(e){return e===void 0?_e:typeof e=="function"?(_e=e,!0):!1}function qd(e,t){return Fe[e]===void 0?!1:t===void 0?Fe[e]:(Fe[e]=t,e==="s"&&(Fe.ss=t-1),!0)}function Yd(e,t){if(!this.isValid())return this.localeData().invalidDate();var a=!1,s=Fe,r,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(a=e),typeof t=="object"&&(s=Object.assign({},Fe,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),r=this.localeData(),i=Fd(this,!a,s,r),a&&(i=r.pastFuture(+this,i)),r.postformat(i)}var da=Math.abs;function Ie(e){return(e>0)-(e<0)||+e}function ta(){if(!this.isValid())return this.localeData().invalidDate();var e=da(this._milliseconds)/1e3,t=da(this._days),a=da(this._months),s,r,i,o,n=this.asSeconds(),u,l,d,h;return n?(s=te(e/60),r=te(s/60),e%=60,s%=60,i=te(a/12),a%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=n<0?"-":"",l=Ie(this._months)!==Ie(n)?"-":"",d=Ie(this._days)!==Ie(n)?"-":"",h=Ie(this._milliseconds)!==Ie(n)?"-":"",u+"P"+(i?l+i+"Y":"")+(a?l+a+"M":"")+(t?d+t+"D":"")+(r||s||e?"T":"")+(r?h+r+"H":"")+(s?h+s+"M":"")+(e?h+o+"S":"")):"P0D"}var A=Qt.prototype;A.isValid=Pl;A.abs=hd;A.add=fd;A.subtract=_d;A.as=kd;A.asMilliseconds=Bd;A.asSeconds=Ed;A.asMinutes=Rd;A.asHours=wd;A.asDays=gd;A.asWeeks=Ad;A.asMonths=Ld;A.asQuarters=yd;A.asYears=bd;A.valueOf=Td;A._bubble=Sd;A.clone=Nd;A.get=Od;A.milliseconds=xd;A.seconds=Cd;A.minutes=vd;A.hours=Wd;A.days=Pd;A.weeks=Id;A.months=Dd;A.years=Hd;A.humanize=Yd;A.toISOString=ta;A.toString=ta;A.toJSON=ta;A.locale=Wr;A.localeData=Dr;A.toIsoString=ae("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ta);A.lang=Pr;k("X",0,0,"unix");k("x",0,0,"valueOf");S("x",$t);S("X",un);b("X",function(e,t,a){a._d=new Date(parseFloat(e)*1e3)});b("x",function(e,t,a){a._d=new Date(g(e))});f.version="2.29.4";Yo(O);f.fn=m;f.min=xl;f.max=Cl;f.now=vl;f.utc=me;f.unix=nd;f.months=cd;f.isDate=pt;f.locale=be;f.invalid=zt;f.duration=le;f.isMoment=oe;f.weekdays=ud;f.parseZone=ld;f.localeData=Ee;f.isDuration=yt;f.monthsShort=dd;f.weekdaysMin=md;f.defineLocale=Ua;f.updateLocale=ll;f.locales=cl;f.weekdaysShort=pd;f.normalizeUnits=se;f.relativeTimeRounding=Ud;f.relativeTimeThreshold=qd;f.calendarFormat=rc;f.prototype=m;f.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function zd(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function K(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function I(e){K(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function Ht(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function rt(e,t){K(2,arguments);var a=I(e),s=I(t),r=a.getTime()-s.getTime();return r<0?-1:r>0?1:r}var Vr=6e4,Gr=36e5;function Jd(e,t){K(2,arguments);var a=I(e),s=I(t),r=a.getFullYear()-s.getFullYear(),i=a.getMonth()-s.getMonth();return r*12+i}function jd(e,t){return K(2,arguments),I(e).getTime()-I(t).getTime()}var gs={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},Vd="trunc";function Gd(e){return e?gs[e]:gs[Vd]}function $d(e){K(1,arguments);var t=I(e);return t.setHours(23,59,59,999),t}function Kd(e){K(1,arguments);var t=I(e),a=t.getMonth();return t.setFullYear(t.getFullYear(),a+1,0),t.setHours(23,59,59,999),t}function Zd(e){K(1,arguments);var t=I(e);return $d(t).getTime()===Kd(t).getTime()}function Xd(e,t){K(2,arguments);var a=I(e),s=I(t),r=rt(a,s),i=Math.abs(Jd(a,s)),o;if(i<1)o=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-r*i);var n=rt(a,s)===-r;Zd(I(e))&&i===1&&rt(e,s)===1&&(n=!1),o=r*(i-Number(n))}return o===0?0:o}function Qd(e,t,a){K(2,arguments);var s=jd(e,t)/1e3;return Gd(void 0)(s)}var eu={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},tu=function(e,t,a){var s,r=eu[e];return typeof r=="string"?s=r:t===1?s=r.one:s=r.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+s:s+" ago":s},au=tu;function ua(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=t.width?String(t.width):e.defaultWidth,s=e.formats[a]||e.formats[e.defaultWidth];return s}}var su={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ru={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},iu={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ou={date:ua({formats:su,defaultWidth:"full"}),time:ua({formats:ru,defaultWidth:"full"}),dateTime:ua({formats:iu,defaultWidth:"full"})},nu=ou,lu={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},cu=function(e,t,a,s){return lu[e]},du=cu;function Qe(e){return function(t,a){var s=a||{},r=s.context?String(s.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,n=s.width?String(s.width):o;i=e.formattingValues[n]||e.formattingValues[o]}else{var u=e.defaultWidth,l=s.width?String(s.width):e.defaultWidth;i=e.values[l]||e.values[u]}var d=e.argumentCallback?e.argumentCallback(t):t;return i[d]}}var uu={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},pu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mu={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},hu={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},fu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Su=function(e,t){var a=Number(e),s=a%100;if(s>20||s<10)switch(s%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},ku={ordinalNumber:Su,era:Qe({values:uu,defaultWidth:"wide"}),quarter:Qe({values:pu,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Qe({values:mu,defaultWidth:"wide"}),day:Qe({values:hu,defaultWidth:"wide"}),dayPeriod:Qe({values:fu,defaultWidth:"wide",formattingValues:_u,defaultFormattingWidth:"wide"})},Tu=ku;function et(e){return function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=a.width,r=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var o=i[0],n=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(n)?Eu(n,function(h){return h.test(o)}):Bu(n,function(h){return h.test(o)}),l;l=e.valueCallback?e.valueCallback(u):u,l=a.valueCallback?a.valueCallback(l):l;var d=t.slice(o.length);return{value:l,rest:d}}}function Bu(e,t){for(var a in e)if(e.hasOwnProperty(a)&&t(e[a]))return a}function Eu(e,t){for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},s=t.match(e.matchPattern);if(!s)return null;var r=s[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=a.valueCallback?a.valueCallback(o):o;var n=t.slice(r.length);return{value:o,rest:n}}}var wu=/^(\d+)(th|st|nd|rd)?/i,gu=/\d+/i,Au={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Lu={any:[/^b/i,/^(a|c)/i]},yu={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},bu={any:[/1/i,/2/i,/3/i,/4/i]},Nu={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ou={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},xu={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Cu={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},vu={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Wu={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Pu={ordinalNumber:Ru({matchPattern:wu,parsePattern:gu,valueCallback:function(e){return parseInt(e,10)}}),era:et({matchPatterns:Au,defaultMatchWidth:"wide",parsePatterns:Lu,defaultParseWidth:"any"}),quarter:et({matchPatterns:yu,defaultMatchWidth:"wide",parsePatterns:bu,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:et({matchPatterns:Nu,defaultMatchWidth:"wide",parsePatterns:Ou,defaultParseWidth:"any"}),day:et({matchPatterns:xu,defaultMatchWidth:"wide",parsePatterns:Cu,defaultParseWidth:"any"}),dayPeriod:et({matchPatterns:vu,defaultMatchWidth:"any",parsePatterns:Wu,defaultParseWidth:"any"})},Du=Pu,Hu={code:"en-US",formatDistance:au,formatLong:nu,formatRelative:du,localize:Tu,match:Du,options:{weekStartsOn:0,firstWeekContainsDate:1}},$r=Hu;function Iu(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");t=t||{};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}function Kr(e){return Iu({},e)}var As=1440,Mu=2520,pa=43200,Fu=86400;function Uu(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};K(2,arguments);var s=a.locale||$r;if(!s.formatDistance)throw new RangeError("locale must contain formatDistance property");var r=rt(e,t);if(isNaN(r))throw new RangeError("Invalid time value");var i=Kr(a);i.addSuffix=!!a.addSuffix,i.comparison=r;var o,n;r>0?(o=I(t),n=I(e)):(o=I(e),n=I(t));var u=Qd(n,o),l=(Ht(n)-Ht(o))/1e3,d=Math.round((u-l)/60),h;if(d<2)return a.includeSeconds?u<5?s.formatDistance("lessThanXSeconds",5,i):u<10?s.formatDistance("lessThanXSeconds",10,i):u<20?s.formatDistance("lessThanXSeconds",20,i):u<40?s.formatDistance("halfAMinute",null,i):u<60?s.formatDistance("lessThanXMinutes",1,i):s.formatDistance("xMinutes",1,i):d===0?s.formatDistance("lessThanXMinutes",1,i):s.formatDistance("xMinutes",d,i);if(d<45)return s.formatDistance("xMinutes",d,i);if(d<90)return s.formatDistance("aboutXHours",1,i);if(d2&&arguments[2]!==void 0?arguments[2]:{};K(2,arguments);var s=a.locale||$r;if(!s.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var r=rt(e,t);if(isNaN(r))throw new RangeError("Invalid time value");var i=Kr(a);i.addSuffix=!!a.addSuffix,i.comparison=r;var o,n;r>0?(o=I(t),n=I(e)):(o=I(e),n=I(t));var u=a.roundingMethod==null?"round":String(a.roundingMethod),l;if(u==="floor")l=Math.floor;else if(u==="ceil")l=Math.ceil;else if(u==="round")l=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var d=n.getTime()-o.getTime(),h=d/Ls,R=Ht(n)-Ht(o),N=(d-R)/Ls,p;if(a.unit==null?h<1?p="second":h<60?p="minute":h2)return t;if(/:/.test(a[0])?s=a[0]:(t.date=a[0],s=a[1],Et.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Et.timeZoneDelimiter)[0],s=e.substr(t.date.length,e.length))),s){var r=Et.timezone.exec(s);r?(t.time=s.replace(r[1],""),t.timezone=r[1]):t.time=s}return t}function Ku(e,t){var a=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),s=e.match(a);if(!s)return{year:NaN,restDateString:""};var r=s[1]?parseInt(s[1]):null,i=s[2]?parseInt(s[2]):null;return{year:i===null?r:i*100,restDateString:e.slice((s[1]||s[2]).length)}}function Zu(e,t){if(t===null)return new Date(NaN);var a=e.match(ju);if(!a)return new Date(NaN);var s=!!a[4],r=tt(a[1]),i=tt(a[2])-1,o=tt(a[3]),n=tt(a[4]),u=tt(a[5])-1;if(s)return r0(t,n,u)?e0(t,n,u):new Date(NaN);var l=new Date(0);return!a0(t,i,o)||!s0(t,r)?new Date(NaN):(l.setUTCFullYear(t,i,Math.max(r,o)),l)}function tt(e){return e?parseInt(e):1}function Xu(e){var t=e.match(Vu);if(!t)return NaN;var a=ma(t[1]),s=ma(t[2]),r=ma(t[3]);return i0(a,s,r)?a*Gr+s*Vr+r*1e3:NaN}function ma(e){return e&&parseFloat(e.replace(",","."))||0}function Qu(e){if(e==="Z")return 0;var t=e.match(Gu);if(!t)return 0;var a=t[1]==="+"?-1:1,s=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return o0(s,r)?a*(s*Gr+r*Vr):NaN}function e0(e,t,a){var s=new Date(0);s.setUTCFullYear(e,0,4);var r=s.getUTCDay()||7,i=(t-1)*7+a+1-r;return s.setUTCDate(s.getUTCDate()+i),s}var t0=[31,null,31,30,31,30,31,31,30,31,30,31];function Zr(e){return e%400===0||e%4===0&&e%100!==0}function a0(e,t,a){return t>=0&&t<=11&&a>=1&&a<=(t0[t]||(Zr(e)?29:28))}function s0(e,t){return t>=1&&t<=(Zr(e)?366:365)}function r0(e,t,a){return t>=1&&t<=53&&a>=0&&a<=6}function i0(e,t,a){return e===24?t===0&&a===0:a>=0&&a<60&&t>=0&&t<60&&e>=0&&e<25}function o0(e,t){return t>=0&&t<=59}var n0=(e,t={},a)=>{var s,r;return typeof e=="string"&&(e=Ju(e)),t.useStrict?zu(e,{addSuffix:(s=t.addSuffix)!=null?s:!0,locale:a,unit:t.unit,roundingMethod:t.roundingMethod}):Yu(e,{includeSeconds:t.includeSeconds,addSuffix:(r=t.addSuffix)!=null?r:!0,locale:a})};const l0=(e={})=>{const t=e.name||"Timeago";return ii({name:t,props:{datetime:{type:[String,Number,Date],required:!0},title:{type:[String,Boolean],required:!1,default:null},autoUpdate:{type:[Number,Boolean],required:!1,default:null},converter:{type:Function,required:!1,default:null},converterOptions:{type:Object,required:!1,default:null},locale:{type:Object,required:!1,default:null}},setup(a){const s=ee();ni(()=>{n()}),li(()=>{u()});const r=l=>(a.converter||n0)(l||a.datetime,a.converterOptions||e.converterOptions,a.locale||e.locale),i=ee(r()),o=l=>{i.value=r(l)},n=()=>{if(a.autoUpdate){const l=a.autoUpdate===!0?60:a.autoUpdate;s.value=setInterval(()=>{o(a.datetime)},l*1e3)}},u=()=>{s.value&&(clearInterval(s.value),s.value=void 0)};return Rt(()=>a.autoUpdate,l=>{u(),l&&n()}),Rt(()=>[a.datetime,a.converter],()=>{o()}),Rt(()=>a.converterOptions,()=>{o()},{deep:!0}),{timeago:i,updateTimer:s}},render(){return oi("timeago",{attrs:{datetime:new Date(this.datetime).toISOString(),title:typeof this.title=="string"?this.title:this.title===!1?null:this.timeago}},[this.timeago])}})};var c0=(e,t)=>{if(e.config.globalProperties.$timeago)return;Number(e.version.split(".")[0])<3&&console.warn("[vue-timeago3] This plugin requires at least Vue version 3.0");const s=l0(t);e.component(s.name,s)},d0=ui();const Ns=pi(d0);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function a(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=a(r);fetch(r.href,i)}})();const u0=`Nested Loop Left Join (cost=11.95..28.52 rows=5 width=157) (actual time=0.010..0.010 rows=0 loops=1) - Output: rel_users_exams.user_username, rel_users_exams.exam_id, rel_users_exams.started_at, rel_users_exams.finished_at, exam_1.id, exam_1.title, exam_1.date_from, exam_1.date_to, exam_1.created, exam_1.created_by_, exam_1.duration, exam_1.success_threshold, exam_1.published - Inner Unique: true - Join Filter: (exam_1.id = rel_users_exams.exam_id) - Buffers: shared hit=1 - -> Bitmap Heap Scan on public.rel_users_exams (cost=11.80..20.27 rows=5 width=52) (actual time=0.009..0.009 rows=0 loops=1) - Output: rel_users_exams.user_username, rel_users_exams.exam_id, rel_users_exams.started_at, rel_users_exams.finished_at - Recheck Cond: (1 = rel_users_exams.exam_id) - Buffers: shared hit=1 - -> Bitmap Index Scan on rel_users_exams_pkey (cost=0.00..11.80 rows=5 width=0) (actual time=0.005..0.005 rows=0 loops=1) - Index Cond: (1 = rel_users_exams.exam_id) - Buffers: shared hit=1 - -> Materialize (cost=0.15..8.17 rows=1 width=105) (never executed) - Output: exam_1.id, exam_1.title, exam_1.date_from, exam_1.date_to, exam_1.created, exam_1.created_by_, exam_1.duration, exam_1.success_threshold, exam_1.published - -> Index Scan using exam_pkey on public.exam exam_1 (cost=0.15..8.17 rows=1 width=105) (never executed) - Output: exam_1.id, exam_1.title, exam_1.date_from, exam_1.date_to, exam_1.created, exam_1.created_by_, exam_1.duration, exam_1.success_threshold, exam_1.published - Index Cond: (exam_1.id = 1) -Planning Time: 1.110 ms -Execution Time: 0.170 ms -`,Os=`/* A join between two tables */ -SELECT rel_users_exams.user_username AS rel_users_exams_user_username, - rel_users_exams.exam_id AS rel_users_exams_exam_id, - rel_users_exams.started_at AS rel_users_exams_started_at, - rel_users_exams.finished_at AS rel_users_exams_finished_at, - exam_1.id AS exam_1_id, - exam_1.title AS exam_1_title, - exam_1.date_from AS exam_1_date_from, - exam_1.date_to AS exam_1_date_to, - exam_1.created AS exam_1_created, - exam_1.created_by_ AS exam_1_created_by_, - exam_1.duration AS exam_1_duration, - exam_1.success_threshold AS exam_1_success_threshold, - exam_1.published AS exam_1_published -FROM rel_users_exams LEFT OUTER -JOIN exam AS exam_1 - ON exam_1.id = rel_users_exams.exam_id -WHERE 1 = rel_users_exams.exam_id; -`,p0=`[ - { - "Plan": { - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Join Type": "Left", - "Startup Cost": 11.95, - "Total Cost": 28.52, - "Plan Rows": 5, - "Plan Width": 157, - "Actual Startup Time": 0.007, - "Actual Total Time": 0.007, - "Actual Rows": 0, - "Actual Loops": 1, - "Output": ["rel_users_exams.user_username", "rel_users_exams.exam_id", "rel_users_exams.started_at", "rel_users_exams.finished_at", "exam_1.id", "exam_1.title", "exam_1.date_from", "exam_1.date_to", "exam_1.created", "exam_1.created_by_", "exam_1.duration", "exam_1.success_threshold", "exam_1.published"], - "Inner Unique": true, - "Join Filter": "(exam_1.id = rel_users_exams.exam_id)", - "Rows Removed by Join Filter": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Bitmap Heap Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "rel_users_exams", - "Schema": "public", - "Alias": "rel_users_exams", - "Startup Cost": 11.80, - "Total Cost": 20.27, - "Plan Rows": 5, - "Plan Width": 52, - "Actual Startup Time": 0.006, - "Actual Total Time": 0.006, - "Actual Rows": 0, - "Actual Loops": 1, - "Output": ["rel_users_exams.user_username", "rel_users_exams.exam_id", "rel_users_exams.started_at", "rel_users_exams.finished_at"], - "Recheck Cond": "(1 = rel_users_exams.exam_id)", - "Rows Removed by Index Recheck": 0, - "Exact Heap Blocks": 0, - "Lossy Heap Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Bitmap Index Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Index Name": "rel_users_exams_pkey", - "Startup Cost": 0.00, - "Total Cost": 11.80, - "Plan Rows": 5, - "Plan Width": 0, - "Actual Startup Time": 0.003, - "Actual Total Time": 0.004, - "Actual Rows": 0, - "Actual Loops": 1, - "Index Cond": "(1 = rel_users_exams.exam_id)", - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - }, - { - "Node Type": "Materialize", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Startup Cost": 0.15, - "Total Cost": 8.17, - "Plan Rows": 1, - "Plan Width": 105, - "Actual Startup Time": 0.000, - "Actual Total Time": 0.000, - "Actual Rows": 0, - "Actual Loops": 0, - "Output": ["exam_1.id", "exam_1.title", "exam_1.date_from", "exam_1.date_to", "exam_1.created", "exam_1.created_by_", "exam_1.duration", "exam_1.success_threshold", "exam_1.published"], - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Index Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Scan Direction": "Forward", - "Index Name": "exam_pkey", - "Relation Name": "exam", - "Schema": "public", - "Alias": "exam_1", - "Startup Cost": 0.15, - "Total Cost": 8.17, - "Plan Rows": 1, - "Plan Width": 105, - "Actual Startup Time": 0.000, - "Actual Total Time": 0.000, - "Actual Rows": 0, - "Actual Loops": 0, - "Output": ["exam_1.id", "exam_1.title", "exam_1.date_from", "exam_1.date_to", "exam_1.created", "exam_1.created_by_", "exam_1.duration", "exam_1.success_threshold", "exam_1.published"], - "Index Cond": "(exam_1.id = 1)", - "Rows Removed by Index Recheck": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - } - ] - }, - "Planning Time": 0.905, - "Triggers": [ - ], - "Execution Time": 0.134 - } -]`,m0=`[ - { - "Plan": { - "Node Type": "Sort", - "Parallel Aware": false, - "Startup Cost": 624.86, - "Total Cost": 625.88, - "Plan Rows": 410, - "Plan Width": 726, - "Actual Startup Time": 6.039, - "Actual Total Time": 6.088, - "Actual Rows": 339, - "Actual Loops": 1, - "Output": ["rel_users_exams.user_username", "rel_users_exams.exam_id", "rel_users_exams.started_at", "rel_users_exams.finished_at", "answer_1.id", "answer_1.text", "answer_1.correct", "answer_1.fraction", "answer_1.question_id", "question_1.id", "question_1.title", "question_1.text", "question_1.file", "question_1.type", "question_1.source", "question_1.exam_id", "exam_1.id", "exam_1.title", "exam_1.date_from", "exam_1.date_to", "exam_1.created", "exam_1.created_by_", "exam_1.duration", "exam_1.success_threshold", "exam_1.published"], - "Sort Key": ["question_1.id"], - "Sort Method": "quicksort", - "Sort Space Used": 409, - "Sort Space Type": "Memory", - "Shared Hit Blocks": 363, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Nested Loop", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Left", - "Startup Cost": 228.60, - "Total Cost": 607.06, - "Plan Rows": 410, - "Plan Width": 726, - "Actual Startup Time": 1.074, - "Actual Total Time": 5.576, - "Actual Rows": 339, - "Actual Loops": 1, - "Output": ["rel_users_exams.user_username", "rel_users_exams.exam_id", "rel_users_exams.started_at", "rel_users_exams.finished_at", "answer_1.id", "answer_1.text", "answer_1.correct", "answer_1.fraction", "answer_1.question_id", "question_1.id", "question_1.title", "question_1.text", "question_1.file", "question_1.type", "question_1.source", "question_1.exam_id", "exam_1.id", "exam_1.title", "exam_1.date_from", "exam_1.date_to", "exam_1.created", "exam_1.created_by_", "exam_1.duration", "exam_1.success_threshold", "exam_1.published"], - "Join Filter": "(exam_1.id = question_1.exam_id)", - "Rows Removed by Join Filter": 0, - "Shared Hit Blocks": 360, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Nested Loop", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Left", - "Startup Cost": 0.00, - "Total Cost": 2.94, - "Plan Rows": 1, - "Plan Width": 99, - "Actual Startup Time": 0.025, - "Actual Total Time": 0.033, - "Actual Rows": 1, - "Actual Loops": 1, - "Output": ["rel_users_exams.user_username", "rel_users_exams.exam_id", "rel_users_exams.started_at", "rel_users_exams.finished_at", "exam_1.id", "exam_1.title", "exam_1.date_from", "exam_1.date_to", "exam_1.created", "exam_1.created_by_", "exam_1.duration", "exam_1.success_threshold", "exam_1.published"], - "Join Filter": "(exam_1.id = rel_users_exams.exam_id)", - "Rows Removed by Join Filter": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "rel_users_exams", - "Schema": "public", - "Alias": "rel_users_exams", - "Startup Cost": 0.00, - "Total Cost": 1.73, - "Plan Rows": 1, - "Plan Width": 27, - "Actual Startup Time": 0.016, - "Actual Total Time": 0.021, - "Actual Rows": 1, - "Actual Loops": 1, - "Output": ["rel_users_exams.user_username", "rel_users_exams.exam_id", "rel_users_exams.started_at", "rel_users_exams.finished_at"], - "Filter": "((rel_users_exams.exam_id = 1) AND ((rel_users_exams.user_username)::text = 'nicolas1'::text))", - "Rows Removed by Filter": 56, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - }, - { - "Node Type": "Seq Scan", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Relation Name": "exam", - "Schema": "public", - "Alias": "exam_1", - "Startup Cost": 0.00, - "Total Cost": 1.19, - "Plan Rows": 1, - "Plan Width": 72, - "Actual Startup Time": 0.006, - "Actual Total Time": 0.009, - "Actual Rows": 1, - "Actual Loops": 1, - "Output": ["exam_1.id", "exam_1.title", "exam_1.date_from", "exam_1.date_to", "exam_1.created", "exam_1.created_by_", "exam_1.duration", "exam_1.success_threshold", "exam_1.published"], - "Filter": "(exam_1.id = 1)", - "Rows Removed by Filter": 35, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - }, - { - "Node Type": "Hash Join", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Join Type": "Right", - "Startup Cost": 228.60, - "Total Cost": 599.00, - "Plan Rows": 410, - "Plan Width": 627, - "Actual Startup Time": 1.047, - "Actual Total Time": 5.420, - "Actual Rows": 339, - "Actual Loops": 1, - "Output": ["question_1.id", "question_1.title", "question_1.text", "question_1.file", "question_1.type", "question_1.source", "question_1.exam_id", "answer_1.id", "answer_1.text", "answer_1.correct", "answer_1.fraction", "answer_1.question_id"], - "Hash Cond": "(answer_1.question_id = question_1.id)", - "Shared Hit Blocks": 358, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "answer", - "Schema": "public", - "Alias": "answer_1", - "Startup Cost": 0.00, - "Total Cost": 311.13, - "Plan Rows": 14713, - "Plan Width": 55, - "Actual Startup Time": 0.007, - "Actual Total Time": 1.962, - "Actual Rows": 14726, - "Actual Loops": 1, - "Output": ["answer_1.id", "answer_1.text", "answer_1.correct", "answer_1.fraction", "answer_1.question_id"], - "Shared Hit Blocks": 164, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Startup Cost": 227.66, - "Total Cost": 227.66, - "Plan Rows": 75, - "Plan Width": 572, - "Actual Startup Time": 1.025, - "Actual Total Time": 1.025, - "Actual Rows": 63, - "Actual Loops": 1, - "Output": ["question_1.id", "question_1.title", "question_1.text", "question_1.file", "question_1.type", "question_1.source", "question_1.exam_id"], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 46, - "Shared Hit Blocks": 194, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "question", - "Schema": "public", - "Alias": "question_1", - "Startup Cost": 0.00, - "Total Cost": 227.66, - "Plan Rows": 75, - "Plan Width": 572, - "Actual Startup Time": 0.004, - "Actual Total Time": 0.984, - "Actual Rows": 63, - "Actual Loops": 1, - "Output": ["question_1.id", "question_1.title", "question_1.text", "question_1.file", "question_1.type", "question_1.source", "question_1.exam_id"], - "Filter": "(question_1.exam_id = 1)", - "Rows Removed by Filter": 2637, - "Shared Hit Blocks": 194, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - } - ] - } - ] - } - ] - }, - "Planning Time": 1.206, - "Triggers": [ - ], - "Execution Time": 6.248 - } -] -`,h0=`/* Joins between four tables */ -SELECT rel_users_exams.user_username AS rel_users_exams_user_username, - rel_users_exams.exam_id AS rel_users_exams_exam_id, - rel_users_exams.started_at AS rel_users_exams_started_at, - rel_users_exams.finished_at AS rel_users_exams_finished_at, - answer_1.id AS answer_1_id, - answer_1.text AS answer_1_text, - answer_1.correct AS answer_1_correct, - answer_1.fraction AS answer_1_fraction, - answer_1.question_id AS answer_1_question_id, - question_1.id AS question_1_id, - question_1.title AS question_1_title, - question_1.text AS question_1_text, - question_1.file AS question_1_file, - question_1.type AS question_1_type, - question_1.source AS question_1_source, - question_1.exam_id AS question_1_exam_id, - exam_1.id AS exam_1_id, - exam_1.title AS exam_1_title, - exam_1.date_from AS exam_1_date_from, - exam_1.date_to AS exam_1_date_to, - exam_1.created AS exam_1_created, - exam_1.created_by_ AS exam_1_created_by_, - exam_1.duration AS exam_1_duration, - exam_1.success_threshold AS exam_1_success_threshold, - exam_1.published AS exam_1_published -FROM rel_users_exams LEFT OUTER -JOIN exam AS exam_1 - ON exam_1.id = rel_users_exams.exam_id LEFT OUTER -JOIN question AS question_1 - ON exam_1.id = question_1.exam_id LEFT OUTER -JOIN answer AS answer_1 - ON question_1.id = answer_1.question_id -WHERE rel_users_exams.user_username = %(param_1)s - AND rel_users_exams.exam_id = %(param_2)s -ORDER BY question_1.id; -`,f0=`[ - { - "Plan": { - "Node Type": "Sort", - "Startup Cost": 1460.74, - "Total Cost": 1470.87, - "Plan Rows": 4050, - "Plan Width": 183, - "Actual Startup Time": 13.766, - "Actual Total Time": 13.793, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["sv.variant_id", "sv.sku", "sp.slug", "sp.name", "vc.color", "pr.min_price", "pcc.available_colors", "sv.product_id"], - "Sort Key": ["sv.product_id"], - "Sort Method": "quicksort", - "Sort Space Used": 101, - "Sort Space Type": "Memory", - "Shared Hit Blocks": 2695, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "InitPlan", - "Subplan Name": "CTE catalog_variants", - "Relation Name": "spree_variants", - "Schema": "public", - "Alias": "spree_variants", - "Startup Cost": 0.00, - "Total Cost": 80.47, - "Plan Rows": 352, - "Plan Width": 19, - "Actual Startup Time": 0.022, - "Actual Total Time": 0.740, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["spree_variants.id", "spree_variants.product_id", "spree_variants.sku"], - "Filter": "((spree_variants.deleted_at IS NULL) AND spree_variants.show_in_catalog)", - "Rows Removed by Filter": 3595, - "Shared Hit Blocks": 41, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - }, - { - "Node Type": "Aggregate", - "Strategy": "Sorted", - "Parent Relationship": "InitPlan", - "Subplan Name": "CTE product_color_classifications", - "Startup Cost": 288.86, - "Total Cost": 292.38, - "Plan Rows": 176, - "Plan Width": 12, - "Actual Startup Time": 2.799, - "Actual Total Time": 3.980, - "Actual Rows": 311, - "Actual Loops": 1, - "Output": ["sv_1.product_id", "array_agg(DISTINCT sov.presentation)"], - "Group Key": ["sv_1.product_id"], - "Shared Hit Blocks": 1295, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Sort", - "Parent Relationship": "Outer", - "Startup Cost": 288.86, - "Total Cost": 289.30, - "Plan Rows": 176, - "Plan Width": 12, - "Actual Startup Time": 2.676, - "Actual Total Time": 2.705, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["sv_1.product_id", "sov.presentation"], - "Sort Key": ["sv_1.product_id"], - "Sort Method": "quicksort", - "Sort Space Used": 41, - "Sort Space Type": "Memory", - "Shared Hit Blocks": 1287, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Join Type": "Inner", - "Startup Cost": 20.28, - "Total Cost": 282.30, - "Plan Rows": 176, - "Plan Width": 12, - "Actual Startup Time": 0.312, - "Actual Total Time": 2.450, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["sv_1.product_id", "sov.presentation"], - "Hash Cond": "(sov_sv.option_value_id = sov.id)", - "Shared Hit Blocks": 1287, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Nested Loop", - "Parent Relationship": "Outer", - "Join Type": "Inner", - "Startup Cost": 12.71, - "Total Cost": 270.98, - "Plan Rows": 528, - "Plan Width": 8, - "Actual Startup Time": 0.229, - "Actual Total Time": 2.086, - "Actual Rows": 1056, - "Actual Loops": 1, - "Output": ["sv_1.product_id", "sov_sv.option_value_id"], - "Shared Hit Blocks": 1284, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Join Type": "Inner", - "Startup Cost": 12.42, - "Total Cost": 24.30, - "Plan Rows": 176, - "Plan Width": 12, - "Actual Startup Time": 0.221, - "Actual Total Time": 0.468, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["sv_1.product_id", "sv_1.variant_id", "catalog_variants.variant_id"], - "Hash Cond": "(sv_1.variant_id = catalog_variants.variant_id)", - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "CTE Scan", - "Parent Relationship": "Outer", - "CTE Name": "catalog_variants", - "Alias": "sv_1", - "Startup Cost": 0.00, - "Total Cost": 7.04, - "Plan Rows": 352, - "Plan Width": 8, - "Actual Startup Time": 0.000, - "Actual Total Time": 0.086, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["sv_1.variant_id", "sv_1.product_id", "sv_1.sku"], - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Startup Cost": 9.92, - "Total Cost": 9.92, - "Plan Rows": 200, - "Plan Width": 4, - "Actual Startup Time": 0.212, - "Actual Total Time": 0.212, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["catalog_variants.variant_id"], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 21, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Aggregate", - "Strategy": "Hashed", - "Parent Relationship": "Outer", - "Startup Cost": 7.92, - "Total Cost": 9.92, - "Plan Rows": 200, - "Plan Width": 4, - "Actual Startup Time": 0.112, - "Actual Total Time": 0.158, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["catalog_variants.variant_id"], - "Group Key": ["catalog_variants.variant_id"], - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "CTE Scan", - "Parent Relationship": "Outer", - "CTE Name": "catalog_variants", - "Alias": "catalog_variants", - "Startup Cost": 0.00, - "Total Cost": 7.04, - "Plan Rows": 352, - "Plan Width": 4, - "Actual Startup Time": 0.001, - "Actual Total Time": 0.029, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["catalog_variants.variant_id", "catalog_variants.product_id", "catalog_variants.sku"], - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - } - ] - } - ] - } - ] - }, - { - "Node Type": "Index Scan", - "Parent Relationship": "Inner", - "Scan Direction": "Forward", - "Index Name": "index_spree_option_values_variants_on_variant_id", - "Relation Name": "spree_option_values_variants", - "Schema": "public", - "Alias": "sov_sv", - "Startup Cost": 0.29, - "Total Cost": 1.37, - "Plan Rows": 3, - "Plan Width": 8, - "Actual Startup Time": 0.002, - "Actual Total Time": 0.003, - "Actual Rows": 3, - "Actual Loops": 352, - "Output": ["sov_sv.variant_id", "sov_sv.option_value_id", "sov_sv.id"], - "Index Cond": "(sov_sv.variant_id = sv_1.variant_id)", - "Rows Removed by Index Recheck": 0, - "Shared Hit Blocks": 1284, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - } - ] - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Startup Cost": 6.69, - "Total Cost": 6.69, - "Plan Rows": 71, - "Plan Width": 12, - "Actual Startup Time": 0.064, - "Actual Total Time": 0.064, - "Actual Rows": 11, - "Actual Loops": 1, - "Output": ["sov.presentation", "sov.id"], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 9, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Join Type": "Inner", - "Startup Cost": 1.05, - "Total Cost": 6.69, - "Plan Rows": 71, - "Plan Width": 12, - "Actual Startup Time": 0.020, - "Actual Total Time": 0.062, - "Actual Rows": 11, - "Actual Loops": 1, - "Output": ["sov.presentation", "sov.id"], - "Hash Cond": "(sov.option_type_id = sot.id)", - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Relation Name": "spree_option_values", - "Schema": "public", - "Alias": "sov", - "Startup Cost": 0.00, - "Total Cost": 4.13, - "Plan Rows": 213, - "Plan Width": 16, - "Actual Startup Time": 0.003, - "Actual Total Time": 0.017, - "Actual Rows": 213, - "Actual Loops": 1, - "Output": ["sov.id", "sov.position", "sov.name", "sov.presentation", "sov.option_type_id", "sov.created_at", "sov.updated_at"], - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Startup Cost": 1.04, - "Total Cost": 1.04, - "Plan Rows": 1, - "Plan Width": 4, - "Actual Startup Time": 0.007, - "Actual Total Time": 0.007, - "Actual Rows": 1, - "Actual Loops": 1, - "Output": ["sot.id"], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 9, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Relation Name": "spree_option_types", - "Schema": "public", - "Alias": "sot", - "Startup Cost": 0.00, - "Total Cost": 1.04, - "Plan Rows": 1, - "Plan Width": 4, - "Actual Startup Time": 0.003, - "Actual Total Time": 0.003, - "Actual Rows": 1, - "Actual Loops": 1, - "Output": ["sot.id"], - "Filter": "((sot.name)::text = 'color_classification'::text)", - "Rows Removed by Filter": 2, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "Node Type": "Hash Join", - "Parent Relationship": "InitPlan", - "Subplan Name": "CTE variant_colors", - "Join Type": "Inner", - "Startup Cost": 20.28, - "Total Cost": 282.30, - "Plan Rows": 176, - "Plan Width": 12, - "Actual Startup Time": 0.357, - "Actual Total Time": 1.844, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["sv_2.variant_id", "sov_1.presentation"], - "Hash Cond": "(sov_sv_1.option_value_id = sov_1.id)", - "Shared Hit Blocks": 1287, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Nested Loop", - "Parent Relationship": "Outer", - "Join Type": "Inner", - "Startup Cost": 12.71, - "Total Cost": 270.98, - "Plan Rows": 528, - "Plan Width": 8, - "Actual Startup Time": 0.233, - "Actual Total Time": 1.555, - "Actual Rows": 1056, - "Actual Loops": 1, - "Output": ["sv_2.variant_id", "sov_sv_1.option_value_id"], - "Shared Hit Blocks": 1284, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Join Type": "Inner", - "Startup Cost": 12.42, - "Total Cost": 24.30, - "Plan Rows": 176, - "Plan Width": 8, - "Actual Startup Time": 0.214, - "Actual Total Time": 0.350, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["sv_2.variant_id", "catalog_variants_1.variant_id"], - "Hash Cond": "(sv_2.variant_id = catalog_variants_1.variant_id)", - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "CTE Scan", - "Parent Relationship": "Outer", - "CTE Name": "catalog_variants", - "Alias": "sv_2", - "Startup Cost": 0.00, - "Total Cost": 7.04, - "Plan Rows": 352, - "Plan Width": 4, - "Actual Startup Time": 0.000, - "Actual Total Time": 0.046, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["sv_2.variant_id", "sv_2.product_id", "sv_2.sku"], - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Startup Cost": 9.92, - "Total Cost": 9.92, - "Plan Rows": 200, - "Plan Width": 4, - "Actual Startup Time": 0.204, - "Actual Total Time": 0.204, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["catalog_variants_1.variant_id"], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 21, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Aggregate", - "Strategy": "Hashed", - "Parent Relationship": "Outer", - "Startup Cost": 7.92, - "Total Cost": 9.92, - "Plan Rows": 200, - "Plan Width": 4, - "Actual Startup Time": 0.115, - "Actual Total Time": 0.150, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["catalog_variants_1.variant_id"], - "Group Key": ["catalog_variants_1.variant_id"], - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "CTE Scan", - "Parent Relationship": "Outer", - "CTE Name": "catalog_variants", - "Alias": "catalog_variants_1", - "Startup Cost": 0.00, - "Total Cost": 7.04, - "Plan Rows": 352, - "Plan Width": 4, - "Actual Startup Time": 0.001, - "Actual Total Time": 0.027, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["catalog_variants_1.variant_id", "catalog_variants_1.product_id", "catalog_variants_1.sku"], - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - } - ] - } - ] - } - ] - }, - { - "Node Type": "Index Scan", - "Parent Relationship": "Inner", - "Scan Direction": "Forward", - "Index Name": "index_spree_option_values_variants_on_variant_id", - "Relation Name": "spree_option_values_variants", - "Schema": "public", - "Alias": "sov_sv_1", - "Startup Cost": 0.29, - "Total Cost": 1.37, - "Plan Rows": 3, - "Plan Width": 8, - "Actual Startup Time": 0.002, - "Actual Total Time": 0.003, - "Actual Rows": 3, - "Actual Loops": 352, - "Output": ["sov_sv_1.variant_id", "sov_sv_1.option_value_id", "sov_sv_1.id"], - "Index Cond": "(sov_sv_1.variant_id = sv_2.variant_id)", - "Rows Removed by Index Recheck": 0, - "Shared Hit Blocks": 1284, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - } - ] - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Startup Cost": 6.69, - "Total Cost": 6.69, - "Plan Rows": 71, - "Plan Width": 12, - "Actual Startup Time": 0.109, - "Actual Total Time": 0.109, - "Actual Rows": 88, - "Actual Loops": 1, - "Output": ["sov_1.presentation", "sov_1.id"], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 13, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Join Type": "Inner", - "Startup Cost": 1.05, - "Total Cost": 6.69, - "Plan Rows": 71, - "Plan Width": 12, - "Actual Startup Time": 0.034, - "Actual Total Time": 0.090, - "Actual Rows": 88, - "Actual Loops": 1, - "Output": ["sov_1.presentation", "sov_1.id"], - "Hash Cond": "(sov_1.option_type_id = sot_1.id)", - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Relation Name": "spree_option_values", - "Schema": "public", - "Alias": "sov_1", - "Startup Cost": 0.00, - "Total Cost": 4.13, - "Plan Rows": 213, - "Plan Width": 16, - "Actual Startup Time": 0.007, - "Actual Total Time": 0.028, - "Actual Rows": 213, - "Actual Loops": 1, - "Output": ["sov_1.id", "sov_1.position", "sov_1.name", "sov_1.presentation", "sov_1.option_type_id", "sov_1.created_at", "sov_1.updated_at"], - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Startup Cost": 1.04, - "Total Cost": 1.04, - "Plan Rows": 1, - "Plan Width": 4, - "Actual Startup Time": 0.018, - "Actual Total Time": 0.018, - "Actual Rows": 1, - "Actual Loops": 1, - "Output": ["sot_1.id"], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 9, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Relation Name": "spree_option_types", - "Schema": "public", - "Alias": "sot_1", - "Startup Cost": 0.00, - "Total Cost": 1.04, - "Plan Rows": 1, - "Plan Width": 4, - "Actual Startup Time": 0.014, - "Actual Total Time": 0.015, - "Actual Rows": 1, - "Actual Loops": 1, - "Output": ["sot_1.id"], - "Filter": "((sot_1.name)::text = 'color'::text)", - "Rows Removed by Filter": 2, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - } - ] - } - ] - } - ] - } - ] - }, - { - "Node Type": "Aggregate", - "Strategy": "Hashed", - "Parent Relationship": "InitPlan", - "Subplan Name": "CTE variants_min_prices", - "Startup Cost": 225.63, - "Total Cost": 271.84, - "Plan Rows": 4621, - "Plan Width": 7, - "Actual Startup Time": 5.936, - "Actual Total Time": 6.037, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["spree_prices.variant_id", "COALESCE(min(spree_prices.amount), '0'::numeric)"], - "Group Key": ["spree_prices.variant_id"], - "Shared Hit Blocks": 102, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Join Type": "Inner", - "Startup Cost": 12.42, - "Total Cost": 202.53, - "Plan Rows": 4621, - "Plan Width": 7, - "Actual Startup Time": 2.415, - "Actual Total Time": 5.785, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["spree_prices.variant_id", "spree_prices.amount"], - "Hash Cond": "(spree_prices.variant_id = catalog_variants_2.variant_id)", - "Shared Hit Blocks": 102, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Relation Name": "spree_prices", - "Schema": "public", - "Alias": "spree_prices", - "Startup Cost": 0.00, - "Total Cost": 153.42, - "Plan Rows": 9242, - "Plan Width": 7, - "Actual Startup Time": 0.023, - "Actual Total Time": 2.548, - "Actual Rows": 9242, - "Actual Loops": 1, - "Output": ["spree_prices.id", "spree_prices.variant_id", "spree_prices.amount", "spree_prices.currency", "spree_prices.deleted_at", "spree_prices.is_default"], - "Shared Hit Blocks": 61, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Startup Cost": 9.92, - "Total Cost": 9.92, - "Plan Rows": 200, - "Plan Width": 4, - "Actual Startup Time": 1.229, - "Actual Total Time": 1.229, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["catalog_variants_2.variant_id"], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 21, - "Shared Hit Blocks": 41, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Aggregate", - "Strategy": "Hashed", - "Parent Relationship": "Outer", - "Startup Cost": 7.92, - "Total Cost": 9.92, - "Plan Rows": 200, - "Plan Width": 4, - "Actual Startup Time": 1.075, - "Actual Total Time": 1.140, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["catalog_variants_2.variant_id"], - "Group Key": ["catalog_variants_2.variant_id"], - "Shared Hit Blocks": 41, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "CTE Scan", - "Parent Relationship": "Outer", - "CTE Name": "catalog_variants", - "Alias": "catalog_variants_2", - "Startup Cost": 0.00, - "Total Cost": 7.04, - "Plan Rows": 352, - "Plan Width": 4, - "Actual Startup Time": 0.024, - "Actual Total Time": 0.915, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["catalog_variants_2.variant_id", "catalog_variants_2.product_id", "catalog_variants_2.sku"], - "Shared Hit Blocks": 41, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - } - ] - } - ] - } - ] - } - ] - }, - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Join Type": "Inner", - "Startup Cost": 42.71, - "Total Cost": 291.08, - "Plan Rows": 4050, - "Plan Width": 183, - "Actual Startup Time": 13.149, - "Actual Total Time": 13.526, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["sv.variant_id", "sv.sku", "sp.slug", "sp.name", "vc.color", "pr.min_price", "pcc.available_colors", "sv.product_id"], - "Hash Cond": "(pr.variant_id = sv.variant_id)", - "Shared Hit Blocks": 2692, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "CTE Scan", - "Parent Relationship": "Outer", - "CTE Name": "variants_min_prices", - "Alias": "pr", - "Startup Cost": 0.00, - "Total Cost": 92.42, - "Plan Rows": 4621, - "Plan Width": 36, - "Actual Startup Time": 5.939, - "Actual Total Time": 6.157, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["pr.variant_id", "pr.min_price"], - "Shared Hit Blocks": 102, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Startup Cost": 40.52, - "Total Cost": 40.52, - "Plan Rows": 175, - "Plan Width": 155, - "Actual Startup Time": 7.189, - "Actual Total Time": 7.189, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["sv.variant_id", "sv.sku", "sv.product_id", "sp.slug", "sp.name", "vc.color", "vc.variant_id", "pcc.available_colors"], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 63, - "Shared Hit Blocks": 2590, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Join Type": "Inner", - "Startup Cost": 27.68, - "Total Cost": 40.52, - "Plan Rows": 175, - "Plan Width": 155, - "Actual Startup Time": 6.664, - "Actual Total Time": 7.024, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["sv.variant_id", "sv.sku", "sv.product_id", "sp.slug", "sp.name", "vc.color", "vc.variant_id", "pcc.available_colors"], - "Hash Cond": "(sv.variant_id = vc.variant_id)", - "Shared Hit Blocks": 2590, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Join Type": "Inner", - "Startup Cost": 21.96, - "Total Cost": 32.31, - "Plan Rows": 199, - "Plan Width": 119, - "Actual Startup Time": 4.636, - "Actual Total Time": 4.846, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["sv.variant_id", "sv.sku", "sv.product_id", "sp.slug", "sp.name", "pcc.available_colors"], - "Hash Cond": "(sv.product_id = sp.id)", - "Shared Hit Blocks": 1303, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "CTE Scan", - "Parent Relationship": "Outer", - "CTE Name": "catalog_variants", - "Alias": "sv", - "Startup Cost": 0.00, - "Total Cost": 7.04, - "Plan Rows": 352, - "Plan Width": 40, - "Actual Startup Time": 0.001, - "Actual Total Time": 0.059, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["sv.variant_id", "sv.product_id", "sv.sku"], - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Startup Cost": 19.76, - "Total Cost": 19.76, - "Plan Rows": 176, - "Plan Width": 87, - "Actual Startup Time": 4.622, - "Actual Total Time": 4.622, - "Actual Rows": 311, - "Actual Loops": 1, - "Output": ["sp.slug", "sp.name", "sp.id", "pcc.available_colors", "pcc.product_id"], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 47, - "Shared Hit Blocks": 1303, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Join Type": "Inner", - "Startup Cost": 5.72, - "Total Cost": 19.76, - "Plan Rows": 176, - "Plan Width": 87, - "Actual Startup Time": 4.258, - "Actual Total Time": 4.510, - "Actual Rows": 311, - "Actual Loops": 1, - "Output": ["sp.slug", "sp.name", "sp.id", "pcc.available_colors", "pcc.product_id"], - "Hash Cond": "(sp.id = pcc.product_id)", - "Shared Hit Blocks": 1303, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Relation Name": "spree_products", - "Schema": "public", - "Alias": "sp", - "Startup Cost": 0.00, - "Total Cost": 11.11, - "Plan Rows": 311, - "Plan Width": 51, - "Actual Startup Time": 0.016, - "Actual Total Time": 0.115, - "Actual Rows": 311, - "Actual Loops": 1, - "Output": ["sp.id", "sp.name", "sp.description", "sp.available_on", "sp.deleted_at", "sp.slug", "sp.meta_description", "sp.meta_keywords", "sp.tax_category_id", "sp.shipping_category_id", "sp.created_at", "sp.updated_at", "sp.promotionable", "sp.meta_title", "sp.fashion_xl_id"], - "Filter": "(sp.deleted_at IS NULL)", - "Rows Removed by Filter": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Startup Cost": 3.52, - "Total Cost": 3.52, - "Plan Rows": 176, - "Plan Width": 36, - "Actual Startup Time": 4.228, - "Actual Total Time": 4.228, - "Actual Rows": 311, - "Actual Loops": 1, - "Output": ["pcc.available_colors", "pcc.product_id"], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 31, - "Shared Hit Blocks": 1295, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "CTE Scan", - "Parent Relationship": "Outer", - "CTE Name": "product_color_classifications", - "Alias": "pcc", - "Startup Cost": 0.00, - "Total Cost": 3.52, - "Plan Rows": 176, - "Plan Width": 36, - "Actual Startup Time": 2.801, - "Actual Total Time": 4.136, - "Actual Rows": 311, - "Actual Loops": 1, - "Output": ["pcc.available_colors", "pcc.product_id"], - "Shared Hit Blocks": 1295, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - } - ] - } - ] - } - ] - } - ] - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Startup Cost": 3.52, - "Total Cost": 3.52, - "Plan Rows": 176, - "Plan Width": 36, - "Actual Startup Time": 2.018, - "Actual Total Time": 2.018, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["vc.color", "vc.variant_id"], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 26, - "Shared Hit Blocks": 1287, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "CTE Scan", - "Parent Relationship": "Outer", - "CTE Name": "variant_colors", - "Alias": "vc", - "Startup Cost": 0.00, - "Total Cost": 3.52, - "Plan Rows": 176, - "Plan Width": 36, - "Actual Startup Time": 0.358, - "Actual Total Time": 1.945, - "Actual Rows": 352, - "Actual Loops": 1, - "Output": ["vc.color", "vc.variant_id"], - "Shared Hit Blocks": 1287, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - } - ] - } - ] - } - ] - } - ] - } - ] - }, - "Planning Time": 4.462, - "Triggers": [ - ], - "Execution Time": 14.391 - } -] -`,_0=` -[ - { - "Plan": { - "Node Type": "Limit", - "Startup Cost": 17024.84, - "Total Cost": 17024.87, - "Plan Rows": 10, - "Plan Width": 133, - "Actual Startup Time": 725.773, - "Actual Total Time": 725.775, - "Actual Rows": 10, - "Actual Loops": 1, - "Output": ["c.state", "cat.categoryname", "(sum(o.netamount))", "(sum(o.totalamount))"], - "Shared Hit Blocks": 23, - "Shared Read Blocks": 1392, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Sort", - "Parent Relationship": "Outer", - "Startup Cost": 17024.84, - "Total Cost": 17026.88, - "Plan Rows": 816, - "Plan Width": 133, - "Actual Startup Time": 725.771, - "Actual Total Time": 725.772, - "Actual Rows": 11, - "Actual Loops": 1, - "Output": ["c.state", "cat.categoryname", "(sum(o.netamount))", "(sum(o.totalamount))"], - "Sort Key": ["c.state", "(sum(o.totalamount))"], - "Sort Method": "top-N heapsort", - "Sort Space Used": 25, - "Sort Space Type": "Memory", - "Shared Hit Blocks": 23, - "Shared Read Blocks": 1392, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Aggregate", - "Strategy": "Hashed", - "Parent Relationship": "Outer", - "Startup Cost": 16994.41, - "Total Cost": 17006.65, - "Plan Rows": 816, - "Plan Width": 133, - "Actual Startup Time": 723.877, - "Actual Total Time": 724.417, - "Actual Rows": 832, - "Actual Loops": 1, - "Output": ["c.state", "cat.categoryname", "sum(o.netamount)", "sum(o.totalamount)"], - "Group Key": ["c.state", "cat.categoryname"], - "Shared Hit Blocks": 13, - "Shared Read Blocks": 1392, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Join Type": "Inner", - "Startup Cost": 4966.48, - "Total Cost": 13742.65, - "Plan Rows": 325176, - "Plan Width": 133, - "Actual Startup Time": 118.314, - "Actual Total Time": 354.285, - "Actual Rows": 383270, - "Actual Loops": 1, - "Output": ["c.state", "o.netamount", "o.totalamount", "cat.categoryname"], - "Hash Cond": "(o.orderid = ch.orderid)", - "Shared Hit Blocks": 13, - "Shared Read Blocks": 1392, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Join Type": "Inner", - "Startup Cost": 834.86, - "Total Cost": 4539.11, - "Plan Rows": 60350, - "Plan Width": 138, - "Actual Startup Time": 22.651, - "Actual Total Time": 133.484, - "Actual Rows": 60350, - "Actual Loops": 1, - "Output": ["o.netamount", "o.totalamount", "o.orderid", "ol.orderid", "cat.categoryname"], - "Hash Cond": "(ol.orderid = o.orderid)", - "Shared Hit Blocks": 9, - "Shared Read Blocks": 581, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Join Type": "Inner", - "Startup Cost": 464.86, - "Total Cost": 2962.11, - "Plan Rows": 60350, - "Plan Width": 122, - "Actual Startup Time": 12.467, - "Actual Total Time": 85.647, - "Actual Rows": 60350, - "Actual Loops": 1, - "Output": ["ol.orderid", "cat.categoryname"], - "Hash Cond": "(ol.prod_id = p.prod_id)", - "Shared Hit Blocks": 4, - "Shared Read Blocks": 483, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Relation Name": "orderlines", - "Schema": "public", - "Alias": "ol", - "Startup Cost": 0.00, - "Total Cost": 988.50, - "Plan Rows": 60350, - "Plan Width": 8, - "Actual Startup Time": 0.005, - "Actual Total Time": 14.054, - "Actual Rows": 60350, - "Actual Loops": 1, - "Output": ["ol.orderlineid", "ol.orderid", "ol.prod_id", "ol.quantity", "ol.orderdate"], - "Shared Hit Blocks": 2, - "Shared Read Blocks": 383, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Startup Cost": 339.86, - "Total Cost": 339.86, - "Plan Rows": 10000, - "Plan Width": 122, - "Actual Startup Time": 12.446, - "Actual Total Time": 12.446, - "Actual Rows": 10000, - "Actual Loops": 1, - "Output": ["p.prod_id", "cat.categoryname"], - "Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 425, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 100, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Join Type": "Inner", - "Startup Cost": 1.36, - "Total Cost": 339.86, - "Plan Rows": 10000, - "Plan Width": 122, - "Actual Startup Time": 0.283, - "Actual Total Time": 9.015, - "Actual Rows": 10000, - "Actual Loops": 1, - "Output": ["p.prod_id", "cat.categoryname"], - "Hash Cond": "(p.category = cat.category)", - "Shared Hit Blocks": 2, - "Shared Read Blocks": 100, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Relation Name": "products", - "Schema": "public", - "Alias": "p", - "Startup Cost": 0.00, - "Total Cost": 201.00, - "Plan Rows": 10000, - "Plan Width": 8, - "Actual Startup Time": 0.003, - "Actual Total Time": 4.330, - "Actual Rows": 10000, - "Actual Loops": 1, - "Output": ["p.prod_id", "p.category", "p.title", "p.actor", "p.price", "p.special", "p.common_prod_id"], - "Shared Hit Blocks": 2, - "Shared Read Blocks": 99, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Startup Cost": 1.16, - "Total Cost": 1.16, - "Plan Rows": 16, - "Plan Width": 122, - "Actual Startup Time": 0.265, - "Actual Total Time": 0.265, - "Actual Rows": 16, - "Actual Loops": 1, - "Output": ["cat.categoryname", "cat.category"], - "Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 1, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Relation Name": "categories", - "Schema": "public", - "Alias": "cat", - "Startup Cost": 0.00, - "Total Cost": 1.16, - "Plan Rows": 16, - "Plan Width": 122, - "Actual Startup Time": 0.250, - "Actual Total Time": 0.252, - "Actual Rows": 16, - "Actual Loops": 1, - "Output": ["cat.categoryname", "cat.category"], - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - } - ] - } - ] - } - ] - } - ] - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Startup Cost": 220.00, - "Total Cost": 220.00, - "Plan Rows": 12000, - "Plan Width": 16, - "Actual Startup Time": 10.159, - "Actual Total Time": 10.159, - "Actual Rows": 12000, - "Actual Loops": 1, - "Output": ["o.netamount", "o.totalamount", "o.orderid"], - "Hash Buckets": 2048, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 609, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 98, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Relation Name": "orders", - "Schema": "public", - "Alias": "o", - "Startup Cost": 0.00, - "Total Cost": 220.00, - "Plan Rows": 12000, - "Plan Width": 16, - "Actual Startup Time": 0.008, - "Actual Total Time": 5.548, - "Actual Rows": 12000, - "Actual Loops": 1, - "Output": ["o.netamount", "o.totalamount", "o.orderid"], - "Shared Hit Blocks": 2, - "Shared Read Blocks": 98, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - } - ] - } - ] - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Startup Cost": 3377.25, - "Total Cost": 3377.25, - "Plan Rows": 60350, - "Plan Width": 7, - "Actual Startup Time": 95.610, - "Actual Total Time": 95.610, - "Actual Rows": 60350, - "Actual Loops": 1, - "Output": ["c.state", "ch.orderid"], - "Hash Buckets": 8192, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 2239, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 811, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Join Type": "Inner", - "Startup Cost": 938.00, - "Total Cost": 3377.25, - "Plan Rows": 60350, - "Plan Width": 7, - "Actual Startup Time": 24.115, - "Actual Total Time": 74.639, - "Actual Rows": 60350, - "Actual Loops": 1, - "Output": ["c.state", "ch.orderid"], - "Hash Cond": "(ch.customerid = c.customerid)", - "Shared Hit Blocks": 4, - "Shared Read Blocks": 811, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Relation Name": "cust_hist", - "Schema": "public", - "Alias": "ch", - "Startup Cost": 0.00, - "Total Cost": 930.50, - "Plan Rows": 60350, - "Plan Width": 8, - "Actual Startup Time": 0.294, - "Actual Total Time": 11.812, - "Actual Rows": 60350, - "Actual Loops": 1, - "Output": ["ch.customerid", "ch.orderid", "ch.prod_id"], - "Shared Hit Blocks": 2, - "Shared Read Blocks": 325, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Startup Cost": 688.00, - "Total Cost": 688.00, - "Plan Rows": 20000, - "Plan Width": 7, - "Actual Startup Time": 23.786, - "Actual Total Time": 23.786, - "Actual Rows": 20000, - "Actual Loops": 1, - "Output": ["c.state", "c.customerid"], - "Hash Buckets": 2048, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 743, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 486, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Relation Name": "customers", - "Schema": "public", - "Alias": "c", - "Startup Cost": 0.00, - "Total Cost": 688.00, - "Plan Rows": 20000, - "Plan Width": 7, - "Actual Startup Time": 0.005, - "Actual Total Time": 16.771, - "Actual Rows": 20000, - "Actual Loops": 1, - "Output": ["c.state", "c.customerid"], - "Shared Hit Blocks": 2, - "Shared Read Blocks": 486, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "I/O Read Time": 0.000, - "I/O Write Time": 0.000 - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - }, - "Planning Time": 26.171, - "Triggers": [ - ], - "Execution Time": 726.800 - } -] -`,S0=`/* An aggregate with four joins */ -SELECT c.state, - cat.categoryname, - sum(o.netamount), - sum(o.totalamount) -FROM customers c - INNER JOIN cust_hist ch ON c.customerid = ch.customerid - INNER JOIN orders o ON ch.orderid = o.orderid - INNER JOIN orderlines ol ON ol.orderid = o.orderid - INNER JOIN products p ON ol.prod_id = p.prod_id - INNER JOIN categories cat ON p.category = cat.category -GROUP BY c.state, cat.categoryname -ORDER BY c.state, sum(o.totalamount) DESC LIMIT 10 OFFSET 1; -`,k0=`"Limit (cost=1.27..3878.21 rows=5 width=172) (actual time=0.245..2.544 rows=5 loops=1)" -" -> Nested Loop (cost=1.27..48075.41 rows=62 width=172) (actual time=0.244..2.539 rows=5 loops=1)" -" -> Nested Loop (cost=0.84..2420.02 rows=65 width=85) (actual time=0.137..0.151 rows=5 loops=1)" -" -> Nested Loop (cost=0.42..2356.20 rows=5 width=85) (actual time=0.118..0.119 rows=1 loops=1)" -" -> Seq Scan on top_challenge_list (cost=0.00..30.26 rows=58 width=57) (actual time=0.036..0.043 rows=4 loops=1)" -" Filter: (is_active AND ((template_challenge)::text = 'top_turnover'::text))" -" Rows Removed by Filter: 26" -" -> Index Scan using ref_people_xperf1 on ref_people (cost=0.42..40.09 rows=1 width=28) (actual time=0.017..0.017 rows=0 loops=4)" -" Index Cond: (id_int = top_challenge_list.id_int_manager)" -" Filter: (is_active AND (id_statut <> 2) AND (COALESCE(id_qualification, 1) >= 1) AND (id_type = 5))" -" Rows Removed by Filter: 4" -" -> Index Scan using ref_genealogy_xperf5 on ref_genealogy (cost=0.42..12.56 rows=20 width=8) (actual time=0.017..0.026 rows=5 loops=1)" -" Index Cond: (id_int = ref_people.id_int)" -" Filter: is_active" -" -> Index Scan using ref_people_xperf1 on ref_people filleuls (cost=0.42..0.82 rows=1 width=47) (actual time=0.012..0.030 rows=1 loops=5)" -" Index Cond: (id_int = ref_genealogy.id_int_level)" -" Filter: (is_active AND (id_type = ANY ('{5,14}'::integer[])))" -" Rows Removed by Filter: 7" -" SubPlan 1" -" -> Aggregate (cost=361.46..361.47 rows=1 width=8) (actual time=0.233..0.233 rows=1 loops=5)" -" -> Index Scan using ref_transaction_xperf4 on ref_transaction (cost=0.42..361.46 rows=1 width=8) (actual time=0.155..0.229 rows=0 loops=5)" -" Index Cond: (id_int_agent_out = filleuls.id_int)" -" Filter: (is_active AND (date_acte IS NOT NULL) AND (date_acte >= top_challenge_list.date_deb_challenge) AND (date_acte <= top_challenge_list.date_fin_challenge) AND (id_type_transaction = 1))" -" Rows Removed by Filter: 100" -" SubPlan 2" -" -> Aggregate (cost=373.99..374.00 rows=1 width=8) (actual time=0.177..0.178 rows=1 loops=5)" -" -> Index Scan using ref_transaction_xperf3 on ref_transaction ref_transaction_1 (cost=0.42..373.99 rows=1 width=8) (actual time=0.117..0.174 rows=0 loops=5)" -" Index Cond: (id_int_agent_in = filleuls.id_int)" -" Filter: (is_active AND (date_acte IS NOT NULL) AND (date_acte >= top_challenge_list.date_deb_challenge) AND (date_acte <= top_challenge_list.date_fin_challenge) AND (id_type_transaction = 1))" -" Rows Removed by Filter: 102" -"Planning Time: 2.916 ms" -"Execution Time: 2.900 ms"`,T0=String.raw` - QUERY PLAN -═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ - Merge on public.t1 (cost=1824058.07..1336099696.57 rows=0 width=0) (actual time=16254.981..16254.984 rows=0 loops=1) - Tuples: deleted=2499999 - Buffers: shared hit=5002762 read=51294 dirtied=13514 written=8006, local hit=7541658 read=25779 dirtied=46608 written=67441, temp read=98262 written=150446 - WAL: records=2500630 fpi=8047 bytes=200763653 - CTE t2bb - -> Update on pg_temp.t2 (cost=0.00..54898.62 rows=2912462 width=14) (actual time=244.180..2939.572 rows=2499999 loops=1) - Output: t2.i, t2.x, t2.filler - Buffers: local hit=7541658 read=25779 dirtied=46608 written=67441 - -> Seq Scan on pg_temp.t2 (cost=0.00..54898.62 rows=2912462 width=14) (actual time=226.341..690.083 rows=2499999 loops=1) - Output: NULL::double precision, t2.ctid - Buffers: local read=25774 dirtied=25774 written=25771 - CTE t2b - -> Sort (cost=650151.19..657432.35 rows=2912462 width=52) (actual time=5387.848..5800.321 rows=2499999 loops=1) - Output: t2bb.i, t2bb.x, t2bb.filler, (random()) - Sort Key: (random()) - Sort Method: external merge Disk: 141936kB - Buffers: shared hit=3, local hit=7541658 read=25779 dirtied=46608 written=67441, temp read=35480 written=49892 - -> CTE Scan on t2bb (cost=0.00..65530.39 rows=2912462 width=52) (actual time=244.188..3856.231 rows=2499999 loops=1) - Output: t2bb.i, t2bb.x, t2bb.filler, random() - Buffers: local hit=7541658 read=25779 dirtied=46608 written=67441, temp written=14343 - -> Merge Left Join (cost=1111727.10..1335387365.61 rows=88949720377 width=42) (actual time=10989.361..12903.243 rows=2499999 loops=1) - Output: t1.ctid, t2b.i, t2b.filler - Merge Cond: (t2b.i = t1.i) - Buffers: shared hit=15647 read=38411 dirtied=631, local hit=7541658 read=25779 dirtied=46608 written=67441, temp read=98262 written=150446 - WAL: records=631 fpi=631 bytes=5182403 - -> Sort (cost=530235.49..537516.64 rows=2912462 width=36) (actual time=7556.652..7928.837 rows=2499999 loops=1) - Output: t2b.i, t2b.filler - Sort Key: t2b.i - Sort Method: external merge Disk: 115072kB - Buffers: shared hit=3, local hit=7541658 read=25779 dirtied=46608 written=67441, temp read=64238 written=96414 - -> CTE Scan on t2b (cost=0.00..58249.24 rows=2912462 width=36) (actual time=5387.869..6356.641 rows=2499999 loops=1) - Output: t2b.i, t2b.filler - Buffers: shared hit=3, local hit=7541658 read=25779 dirtied=46608 written=67441, temp read=35480 written=67592 - -> Materialize (cost=1012385.82..1042926.89 rows=6108215 width=10) (actual time=3432.664..4124.070 rows=2500000 loops=1) - Output: t1.ctid, t1.i - Buffers: shared hit=15644 read=38411 dirtied=631, temp read=34024 written=54032 - WAL: records=631 fpi=631 bytes=5182403 - -> Sort (cost=1012385.82..1027656.36 rows=6108215 width=10) (actual time=3432.659..3773.369 rows=2500000 loops=1) - Output: t1.ctid, t1.i - Sort Key: t1.i - Sort Method: external merge Disk: 215352kB - Buffers: shared hit=15644 read=38411 dirtied=631, temp read=34024 written=54032 - WAL: records=631 fpi=631 bytes=5182403 - -> Seq Scan on public.t1 (cost=0.00..115137.15 rows=6108215 width=10) (actual time=0.031..1073.371 rows=10000000 loops=1) - Output: t1.ctid, t1.i - Buffers: shared hit=15644 read=38411 dirtied=631 - WAL: records=631 fpi=631 bytes=5182403 - Planning: - Buffers: shared hit=21 read=7 - Planning Time: 0.237 ms - JIT: - Functions: 20 - Options: Inlining true, Optimization true, Expressions true, Deforming true - Timing: Generation 0.948 ms, Inlining 76.071 ms, Optimization 97.998 ms, Emission 70.028 ms, Total 245.045 ms - Execution Time: 16365.829 ms -(55 lignes) -`,B0=String.raw` --- create a plan with all written/buffers/shared/local/temp at once - -\timing off - -\set NB 10000000 -\set MINIMUM :NB/4 - - -SET synchronous_commit TO off; - -\set ON_ERROR_STOP 1 - -\set ECHO queries - -DROP TABLE IF EXISTS t1, t2 ; - -CREATE TABLE t1 (i int GENERATED BY DEFAULT AS IDENTITY, x float DEFAULT random(), filler text DEFAULT NULL) ; - -CREATE TEMP TABLE t2 (LIKE t1); -VACUUM (ANALYZE,VERBOSE) t1,t2; - -\d+ t1 -\d+ t2 - -INSERT INTO t1 SELECT FROM generate_series (1,:NB) i ; - -INSERT INTO t2 SELECT i,x,md5(i::text) FROM t1 WHERE i < :MINIMUM ; - -\dt+ t? - -SET work_mem TO '4MB' ; - -\echo "Update T1 from a modified version of T2" - -EXPLAIN (ANALYZE,BUFFERS,VERBOSE,SETTINGS,WAL) -WITH t2bb AS ( UPDATE t2 SET x=null RETURNING * ), -t2b AS ( SELECT * FROM t2bb ORDER BY random()) -MERGE INTO t1 -USING t2b -ON (t1.i=t2b.i) -WHEN NOT MATCHED AND t2b.i >= :MINIMUM THEN - INSERT VALUES (t2b.i, null, t2b.filler) -WHEN MATCHED AND t2b.i < :MINIMUM THEN - DELETE -WHEN MATCHED THEN - UPDATE SET filler=t2b.filler, x=null ; -`,E0=`Append (actual time=102.409..302.675 rows=3 loops=1) - CTE init - -> Append (actual time=102.397..302.649 rows=2 loops=1) - -> Function Scan on pg_sleep pg_sleep_for (actual time=102.396..102.398 rows=1 loops=1) - -> Function Scan on pg_sleep pg_sleep_for_1 (actual time=200.243..200.245 rows=1 loops=1) - -> Limit (actual time=102.407..102.409 rows=1 loops=1) - -> CTE Scan on init init_1 (actual time=102.402..102.402 rows=1 loops=1) - -> CTE Scan on init (actual time=0.001..200.256 rows=2 loops=1) -Planning Time: 47.003 ms -Execution Time: 303.905 ms -`,R0=`WITH init AS ( - SELECT * FROM pg_sleep_for('100ms') - UNION ALL - SELECT * FROM pg_sleep_for('200ms') -) -(SELECT * FROM init LIMIT 1) -UNION ALL -(SELECT * FROM init); -`,w0=String.raw`{ - "Plan": { - "Node Type": "Hash Join", - "Parallel Aware": false, - "Join Type": "Left", - "Startup Cost": 394.93, - "Total Cost": 417.11, - "Plan Rows": 12, - "Plan Width": 316, - "Actual Startup Time": 226.103, - "Actual Total Time": 232.217, - "Actual Rows": 62, - "Actual Loops": 1, - "Output": [ - "c.relname", - "(pg_total_relation_size((c.oid)::regclass))", - "(pg_indexes_size((c.oid)::regclass))", - "(COALESCE(pg_total_relation_size((c.reltoastrelid)::regclass), '0'::bigint))", - "(((pg_total_relation_size((c.oid)::regclass)) - (pg_indexes_size((c.oid)::regclass))) - (COALESCE(pg_total_relation_size((c.reltoastrelid)::regclass), '0'::bigint)))", - "COALESCE((count(*)), '0'::bigint)", - "pg_size_pretty((pg_total_relation_size((c.oid)::regclass)))", - "pg_size_pretty((pg_indexes_size((c.oid)::regclass)))", - "pg_size_pretty((COALESCE(pg_total_relation_size((c.reltoastrelid)::regclass), '0'::bigint)))", - "pg_size_pretty((((pg_total_relation_size((c.oid)::regclass)) - (pg_indexes_size((c.oid)::regclass))) - (COALESCE(pg_total_relation_size((c.reltoastrelid)::regclass), '0'::bigint))))", - "CASE WHEN ((((s.heappages + s.toastpages))::double precision - (ceil((s.reltuples / ((((s.bs - (s.page_hdr)::numeric) * (s.fillfactor)::numeric))::double precision / (((((((4 + s.tpl_hdr_size))::double precision + s.tpl_data_size) + ((2 * s.ma))::double precision) - (CASE WHEN ((s.tpl_hdr_size % (s.ma)::bigint) = 0) THEN (s.ma)::bigint ELSE (s.tpl_hdr_size % (s.ma)::bigint) END)::double precision) - (CASE WHEN (((ceil(s.tpl_data_size))::integer % s.ma) = 0) THEN s.ma ELSE ((ceil(s.tpl_data_size))::integer % s.ma) END)::double precision) * '100'::double precision)))) + ceil((s.toasttuples / '4'::double precision)))) > '0'::double precision) THEN ((((s.heappages + s.toastpages))::double precision - (ceil((s.reltuples / ((((s.bs - (s.page_hdr)::numeric) * (s.fillfactor)::numeric))::double precision / (((((((4 + s.tpl_hdr_size))::double precision + s.tpl_data_size) + ((2 * s.ma))::double precision) - (CASE WHEN ((s.tpl_hdr_size % (s.ma)::bigint) = 0) THEN (s.ma)::bigint ELSE (s.tpl_hdr_size % (s.ma)::bigint) END)::double precision) - (CASE WHEN (((ceil(s.tpl_data_size))::integer % s.ma) = 0) THEN s.ma ELSE ((ceil(s.tpl_data_size))::integer % s.ma) END)::double precision) * '100'::double precision)))) + ceil((s.toasttuples / '4'::double precision)))) * (s.bs)::double precision) ELSE '0'::double precision END", - "pg_size_pretty((CASE WHEN ((((s.heappages + s.toastpages))::double precision - (ceil((s.reltuples / ((((s.bs - (s.page_hdr)::numeric) * (s.fillfactor)::numeric))::double precision / (((((((4 + s.tpl_hdr_size))::double precision + s.tpl_data_size) + ((2 * s.ma))::double precision) - (CASE WHEN ((s.tpl_hdr_size % (s.ma)::bigint) = 0) THEN (s.ma)::bigint ELSE (s.tpl_hdr_size % (s.ma)::bigint) END)::double precision) - (CASE WHEN (((ceil(s.tpl_data_size))::integer % s.ma) = 0) THEN s.ma ELSE ((ceil(s.tpl_data_size))::integer % s.ma) END)::double precision) * '100'::double precision)))) + ceil((s.toasttuples / '4'::double precision)))) > '0'::double precision) THEN ((((s.heappages + s.toastpages))::double precision - (ceil((s.reltuples / ((((s.bs - (s.page_hdr)::numeric) * (s.fillfactor)::numeric))::double precision / (((((((4 + s.tpl_hdr_size))::double precision + s.tpl_data_size) + ((2 * s.ma))::double precision) - (CASE WHEN ((s.tpl_hdr_size % (s.ma)::bigint) = 0) THEN (s.ma)::bigint ELSE (s.tpl_hdr_size % (s.ma)::bigint) END)::double precision) - (CASE WHEN (((ceil(s.tpl_data_size))::integer % s.ma) = 0) THEN s.ma ELSE ((ceil(s.tpl_data_size))::integer % s.ma) END)::double precision) * '100'::double precision)))) + ceil((s.toasttuples / '4'::double precision)))) * (s.bs)::double precision) ELSE '0'::double precision END)::bigint)", - "(sum((CASE WHEN ((q.relpages)::double precision > COALESCE(('1'::double precision + ceil((q.reltuples / floor((((((((current_setting('block_size'::text))::numeric) - ((16))::numeric) - ((24))::numeric) * (q.fillfactor)::numeric))::double precision / ('100'::double precision * (('4'::numeric + ((((((((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) + (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) - CASE WHEN (((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE ((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END))::double precision + (sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision)))) + ((CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END))::double precision) - (CASE WHEN ((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))) = '0'::double precision) THEN 0 WHEN ((((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE (((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END)::double precision))::numeric))::double precision)))))), '0'::double precision)) THEN ((((current_setting('block_size'::text))::numeric))::double precision * ((q.relpages)::double precision - COALESCE(('1'::double precision + ceil((q.reltuples / floor((((((((current_setting('block_size'::text))::numeric) - ((16))::numeric) - ((24))::numeric) * (q.fillfactor)::numeric))::double precision / ('100'::double precision * (('4'::numeric + ((((((((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) + (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) - CASE WHEN (((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE ((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END))::double precision + (sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision)))) + ((CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END))::double precision) - (CASE WHEN ((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))) = '0'::double precision) THEN 0 WHEN ((((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE (((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END)::double precision))::numeric))::double precision)))))), '0'::double precision))) ELSE '0'::double precision END)))", - "pg_size_pretty(((sum((CASE WHEN ((q.relpages)::double precision > COALESCE(('1'::double precision + ceil((q.reltuples / floor((((((((current_setting('block_size'::text))::numeric) - ((16))::numeric) - ((24))::numeric) * (q.fillfactor)::numeric))::double precision / ('100'::double precision * (('4'::numeric + ((((((((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) + (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) - CASE WHEN (((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE ((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END))::double precision + (sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision)))) + ((CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END))::double precision) - (CASE WHEN ((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))) = '0'::double precision) THEN 0 WHEN ((((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE (((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END)::double precision))::numeric))::double precision)))))), '0'::double precision)) THEN ((((current_setting('block_size'::text))::numeric))::double precision * ((q.relpages)::double precision - COALESCE(('1'::double precision + ceil((q.reltuples / floor((((((((current_setting('block_size'::text))::numeric) - ((16))::numeric) - ((24))::numeric) * (q.fillfactor)::numeric))::double precision / ('100'::double precision * (('4'::numeric + ((((((((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) + (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) - CASE WHEN (((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE ((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END))::double precision + (sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision)))) + ((CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END))::double precision) - (CASE WHEN ((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))) = '0'::double precision) THEN 0 WHEN ((((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE (((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END)::double precision))::numeric))::double precision)))))), '0'::double precision))) ELSE '0'::double precision END))))::bigint)", - "c.reltuples" - ], - "Inner Unique": true, - "Hash Cond": "((n.nspname = q.nspname) AND (c.relname = q.tblname))", - "Shared Hit Blocks": 218101, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 211.58, - "Total Cost": 228.59, - "Plan Rows": 12, - "Plan Width": 240, - "Actual Startup Time": 35.727, - "Actual Total Time": 41.452, - "Actual Rows": 62, - "Actual Loops": 1, - "Output": [ - "c.relname", - "(pg_total_relation_size((c.oid)::regclass))", - "(pg_indexes_size((c.oid)::regclass))", - "(COALESCE(pg_total_relation_size((c.reltoastrelid)::regclass), '0'::bigint))", - "c.reltuples", - "n.nspname", - "(count(*))", - "s.heappages", - "s.toastpages", - "s.reltuples", - "s.bs", - "s.page_hdr", - "s.fillfactor", - "s.tpl_hdr_size", - "s.tpl_data_size", - "s.ma", - "s.toasttuples" - ], - "Inner Unique": false, - "Hash Cond": "(c.relname = s.tblname)", - "Shared Hit Blocks": 2449, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Left", - "Startup Cost": 42.71, - "Total Cost": 59.55, - "Plan Rows": 12, - "Plan Width": 164, - "Actual Startup Time": 0.697, - "Actual Total Time": 6.325, - "Actual Rows": 62, - "Actual Loops": 1, - "Output": [ - "c.relname", - "(pg_total_relation_size((c.oid)::regclass))", - "(pg_indexes_size((c.oid)::regclass))", - "(COALESCE(pg_total_relation_size((c.reltoastrelid)::regclass), '0'::bigint))", - "c.reltuples", - "n.nspname", - "(count(*))" - ], - "Inner Unique": true, - "Hash Cond": "(c.relname = c_1.relname)", - "Shared Hit Blocks": 694, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 1.09, - "Total Cost": 17.77, - "Plan Rows": 12, - "Plan Width": 160, - "Actual Startup Time": 0.151, - "Actual Total Time": 5.685, - "Actual Rows": 62, - "Actual Loops": 1, - "Output": [ - "NULL::oid", - "n.nspname", - "c.relname", - "c.reltuples", - "pg_total_relation_size((c.oid)::regclass)", - "pg_indexes_size((c.oid)::regclass)", - "COALESCE(pg_total_relation_size((c.reltoastrelid)::regclass), '0'::bigint)" - ], - "Inner Unique": true, - "Hash Cond": "(c.relnamespace = n.oid)", - "Shared Hit Blocks": 663, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "pg_class", - "Schema": "pg_catalog", - "Alias": "c", - "Startup Cost": 0.0, - "Total Cost": 16.27, - "Plan Rows": 69, - "Plan Width": 80, - "Actual Startup Time": 0.014, - "Actual Total Time": 0.135, - "Actual Rows": 71, - "Actual Loops": 1, - "Output": [ - "c.relname", - "c.reltuples", - "c.oid", - "c.reltoastrelid", - "c.relnamespace" - ], - "Filter": "(c.relkind = 'r'::\"char\")", - "Rows Removed by Filter": 277, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Startup Cost": 1.07, - "Total Cost": 1.07, - "Plan Rows": 1, - "Plan Width": 68, - "Actual Startup Time": 0.014, - "Actual Total Time": 0.014, - "Actual Rows": 1, - "Actual Loops": 1, - "Output": ["n.nspname", "n.oid"], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 9, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "pg_namespace", - "Schema": "pg_catalog", - "Alias": "n", - "Startup Cost": 0.0, - "Total Cost": 1.07, - "Plan Rows": 1, - "Plan Width": 68, - "Actual Startup Time": 0.006, - "Actual Total Time": 0.007, - "Actual Rows": 1, - "Actual Loops": 1, - "Output": ["n.nspname", "n.oid"], - "Filter": "(n.nspname = 'pg_catalog'::name)", - "Rows Removed by Filter": 6, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - } - ] - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Startup Cost": 41.44, - "Total Cost": 41.44, - "Plan Rows": 14, - "Plan Width": 72, - "Actual Startup Time": 0.529, - "Actual Total Time": 0.529, - "Actual Rows": 62, - "Actual Loops": 1, - "Output": ["(count(*))", "c_1.relname"], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 15, - "Shared Hit Blocks": 31, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Aggregate", - "Strategy": "Sorted", - "Partial Mode": "Simple", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Startup Cost": 41.06, - "Total Cost": 41.3, - "Plan Rows": 14, - "Plan Width": 72, - "Actual Startup Time": 0.474, - "Actual Total Time": 0.504, - "Actual Rows": 62, - "Actual Loops": 1, - "Output": ["count(*)", "c_1.relname"], - "Group Key": ["c_1.relname"], - "Shared Hit Blocks": 31, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Sort", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Startup Cost": 41.06, - "Total Cost": 41.09, - "Plan Rows": 14, - "Plan Width": 64, - "Actual Startup Time": 0.463, - "Actual Total Time": 0.469, - "Actual Rows": 116, - "Actual Loops": 1, - "Output": ["c_1.relname"], - "Sort Key": ["c_1.relname"], - "Sort Method": "quicksort", - "Sort Space Used": 41, - "Sort Space Type": "Memory", - "Shared Hit Blocks": 31, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 23.87, - "Total Cost": 40.79, - "Plan Rows": 14, - "Plan Width": 64, - "Actual Startup Time": 0.266, - "Actual Total Time": 0.366, - "Actual Rows": 116, - "Actual Loops": 1, - "Output": ["c_1.relname"], - "Inner Unique": false, - "Hash Cond": "(i.oid = x.indexrelid)", - "Shared Hit Blocks": 28, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "pg_class", - "Schema": "pg_catalog", - "Alias": "i", - "Startup Cost": 0.0, - "Total Cost": 16.27, - "Plan Rows": 135, - "Plan Width": 8, - "Actual Startup Time": 0.009, - "Actual Total Time": 0.09, - "Actual Rows": 137, - "Actual Loops": 1, - "Output": ["i.oid", "i.reltablespace"], - "Filter": "(i.relkind = 'i'::\"char\")", - "Rows Removed by Filter": 211, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Startup Cost": 23.42, - "Total Cost": 23.42, - "Plan Rows": 36, - "Plan Width": 68, - "Actual Startup Time": 0.237, - "Actual Total Time": 0.237, - "Actual Rows": 116, - "Actual Loops": 1, - "Output": ["x.indexrelid", "c_1.relname"], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 20, - "Shared Hit Blocks": 16, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 17.14, - "Total Cost": 23.42, - "Plan Rows": 36, - "Plan Width": 68, - "Actual Startup Time": 0.145, - "Actual Total Time": 0.21, - "Actual Rows": 116, - "Actual Loops": 1, - "Output": ["x.indexrelid", "c_1.relname"], - "Inner Unique": true, - "Hash Cond": "(x.indrelid = c_1.oid)", - "Shared Hit Blocks": 16, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "pg_index", - "Schema": "pg_catalog", - "Alias": "x", - "Startup Cost": 0.0, - "Total Cost": 5.8, - "Plan Rows": 180, - "Plan Width": 8, - "Actual Startup Time": 0.005, - "Actual Total Time": 0.018, - "Actual Rows": 137, - "Actual Loops": 1, - "Output": [ - "x.indexrelid", - "x.indrelid", - "x.indnatts", - "x.indnkeyatts", - "x.indisunique", - "x.indisprimary", - "x.indisexclusion", - "x.indimmediate", - "x.indisclustered", - "x.indisvalid", - "x.indcheckxmin", - "x.indisready", - "x.indislive", - "x.indisreplident", - "x.indkey", - "x.indcollation", - "x.indclass", - "x.indoption", - "x.indexprs", - "x.indpred" - ], - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Startup Cost": 16.27, - "Total Cost": 16.27, - "Plan Rows": 69, - "Plan Width": 72, - "Actual Startup Time": 0.124, - "Actual Total Time": 0.124, - "Actual Rows": 71, - "Actual Loops": 1, - "Output": [ - "c_1.relname", - "c_1.oid", - "c_1.relnamespace" - ], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 16, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "pg_class", - "Schema": "pg_catalog", - "Alias": "c_1", - "Startup Cost": 0.0, - "Total Cost": 16.27, - "Plan Rows": 69, - "Plan Width": 72, - "Actual Startup Time": 0.005, - "Actual Total Time": 0.11, - "Actual Rows": 71, - "Actual Loops": 1, - "Output": [ - "c_1.relname", - "c_1.oid", - "c_1.relnamespace" - ], - "Filter": "(c_1.relkind = ANY ('{r,m}'::\"char\"[]))", - "Rows Removed by Filter": 277, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Startup Cost": 168.03, - "Total Cost": 168.03, - "Plan Rows": 68, - "Plan Width": 204, - "Actual Startup Time": 34.99, - "Actual Total Time": 34.99, - "Actual Rows": 62, - "Actual Loops": 1, - "Output": [ - "s.heappages", - "s.toastpages", - "s.reltuples", - "s.bs", - "s.page_hdr", - "s.fillfactor", - "s.tpl_hdr_size", - "s.tpl_data_size", - "s.ma", - "s.toasttuples", - "s.schemaname", - "s.tblname" - ], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 22, - "Shared Hit Blocks": 1755, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Subquery Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Alias": "s", - "Startup Cost": 160.72, - "Total Cost": 168.03, - "Plan Rows": 68, - "Plan Width": 204, - "Actual Startup Time": 34.381, - "Actual Total Time": 34.907, - "Actual Rows": 62, - "Actual Loops": 1, - "Output": [ - "s.heappages", - "s.toastpages", - "s.reltuples", - "s.bs", - "s.page_hdr", - "s.fillfactor", - "s.tpl_hdr_size", - "s.tpl_data_size", - "s.ma", - "s.toasttuples", - "s.schemaname", - "s.tblname" - ], - "Shared Hit Blocks": 1755, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Aggregate", - "Strategy": "Sorted", - "Partial Mode": "Simple", - "Parent Relationship": "Subquery", - "Parallel Aware": false, - "Startup Cost": 160.72, - "Total Cost": 167.35, - "Plan Rows": 68, - "Plan Width": 210, - "Actual Startup Time": 34.375, - "Actual Total Time": 34.86, - "Actual Rows": 62, - "Actual Loops": 1, - "Output": [ - "tbl.oid", - "ns.nspname", - "tbl.relname", - "tbl.reltuples", - "tbl.relpages", - "(COALESCE(toast.relpages, 0))", - "(COALESCE(toast.reltuples, '0'::real))", - "(COALESCE(((\"substring\"(array_to_string(tbl.reloptions, ' '::text), 'fillfactor=([0-9]+)'::text))::smallint)::integer, 100))", - "((current_setting('block_size'::text))::numeric)", - "(CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)", - "24", - "((23 + CASE WHEN (max(COALESCE(s_1.null_frac, '0'::real)) > '0'::double precision) THEN ((7 + count(*)) / 8) ELSE '0'::bigint END) + CASE WHEN tbl.relhasoids THEN 4 ELSE 0 END)", - "sum((('1'::double precision - COALESCE(s_1.null_frac, '0'::real)) * (COALESCE(s_1.avg_width, 1024))::double precision))", - "NULL::boolean", - "tbl.relhasoids" - ], - "Group Key": [ - "ns.nspname", - "tbl.relname", - "tbl.oid", - "tbl.reltuples", - "tbl.relpages", - "(COALESCE(toast.relpages, 0))", - "(COALESCE(toast.reltuples, '0'::real))", - "(COALESCE(((\"substring\"(array_to_string(tbl.reloptions, ' '::text), 'fillfactor=([0-9]+)'::text))::smallint)::integer, 100))", - "((current_setting('block_size'::text))::numeric)", - "(CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)", - "tbl.relhasoids" - ], - "Shared Hit Blocks": 1755, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Sort", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Startup Cost": 160.72, - "Total Cost": 160.89, - "Plan Rows": 68, - "Plan Width": 197, - "Actual Startup Time": 34.295, - "Actual Total Time": 34.371, - "Actual Rows": 522, - "Actual Loops": 1, - "Output": [ - "tbl.oid", - "ns.nspname", - "tbl.relname", - "tbl.reltuples", - "tbl.relpages", - "(COALESCE(toast.relpages, 0))", - "(COALESCE(toast.reltuples, '0'::real))", - "(COALESCE(((\"substring\"(array_to_string(tbl.reloptions, ' '::text), 'fillfactor=([0-9]+)'::text))::smallint)::integer, 100))", - "((current_setting('block_size'::text))::numeric)", - "(CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)", - "tbl.relhasoids", - "s_1.null_frac", - "s_1.avg_width" - ], - "Sort Key": [ - "tbl.relname", - "tbl.oid", - "tbl.reltuples", - "tbl.relpages", - "(COALESCE(toast.relpages, 0))", - "(COALESCE(toast.reltuples, '0'::real))", - "(COALESCE(((\"substring\"(array_to_string(tbl.reloptions, ' '::text), 'fillfactor=([0-9]+)'::text))::smallint)::integer, 100))", - "tbl.relhasoids" - ], - "Sort Method": "quicksort", - "Sort Space Used": 163, - "Sort Space Type": "Memory", - "Shared Hit Blocks": 1755, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Nested Loop", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Left", - "Startup Cost": 21.53, - "Total Cost": 158.65, - "Plan Rows": 68, - "Plan Width": 197, - "Actual Startup Time": 4.752, - "Actual Total Time": 33.21, - "Actual Rows": 522, - "Actual Loops": 1, - "Output": [ - "tbl.oid", - "ns.nspname", - "tbl.relname", - "tbl.reltuples", - "tbl.relpages", - "COALESCE(toast.relpages, 0)", - "COALESCE(toast.reltuples, '0'::real)", - "COALESCE(((\"substring\"(array_to_string(tbl.reloptions, ' '::text), 'fillfactor=([0-9]+)'::text))::smallint)::integer, 100)", - "(current_setting('block_size'::text))::numeric", - "CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END", - "tbl.relhasoids", - "s_1.null_frac", - "s_1.avg_width" - ], - "Inner Unique": false, - "Join Filter": "((s_1.schemaname = ns.nspname) AND (s_1.tablename = tbl.relname) AND (s_1.attname = att.attname))", - "Rows Removed by Join Filter": 190165, - "Shared Hit Blocks": 1741, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Nested Loop", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 1.64, - "Total Cost": 76.04, - "Plan Rows": 68, - "Plan Width": 262, - "Actual Startup Time": 0.083, - "Actual Total Time": 1.493, - "Actual Rows": 522, - "Actual Loops": 1, - "Output": [ - "att.attname", - "tbl.oid", - "tbl.relname", - "tbl.reltuples", - "tbl.relpages", - "tbl.reloptions", - "tbl.relhasoids", - "ns.nspname", - "toast.relpages", - "toast.reltuples" - ], - "Inner Unique": false, - "Shared Hit Blocks": 351, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Nested Loop", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Left", - "Startup Cost": 1.36, - "Total Cost": 32.29, - "Plan Rows": 12, - "Plan Width": 198, - "Actual Startup Time": 0.033, - "Actual Total Time": 0.576, - "Actual Rows": 62, - "Actual Loops": 1, - "Output": [ - "tbl.oid", - "tbl.relname", - "tbl.reltuples", - "tbl.relpages", - "tbl.reloptions", - "tbl.relhasoids", - "ns.nspname", - "toast.relpages", - "toast.reltuples" - ], - "Inner Unique": true, - "Shared Hit Blocks": 149, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 1.09, - "Total Cost": 17.68, - "Plan Rows": 12, - "Plan Width": 194, - "Actual Startup Time": 0.023, - "Actual Total Time": 0.32, - "Actual Rows": 62, - "Actual Loops": 1, - "Output": [ - "tbl.oid", - "tbl.relname", - "tbl.reltuples", - "tbl.relpages", - "tbl.reloptions", - "tbl.relhasoids", - "tbl.reltoastrelid", - "ns.nspname" - ], - "Inner Unique": true, - "Hash Cond": "(tbl.relnamespace = ns.oid)", - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "pg_class", - "Schema": "pg_catalog", - "Alias": "tbl", - "Startup Cost": 0.0, - "Total Cost": 16.27, - "Plan Rows": 69, - "Plan Width": 134, - "Actual Startup Time": 0.005, - "Actual Total Time": 0.235, - "Actual Rows": 71, - "Actual Loops": 1, - "Output": [ - "tbl.oid", - "tbl.relname", - "tbl.reltuples", - "tbl.relpages", - "tbl.reloptions", - "tbl.relhasoids", - "tbl.relnamespace", - "tbl.reltoastrelid" - ], - "Filter": "(tbl.relkind = 'r'::\"char\")", - "Rows Removed by Filter": 277, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Startup Cost": 1.07, - "Total Cost": 1.07, - "Plan Rows": 1, - "Plan Width": 68, - "Actual Startup Time": 0.007, - "Actual Total Time": 0.007, - "Actual Rows": 1, - "Actual Loops": 1, - "Output": ["ns.nspname", "ns.oid"], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 9, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "pg_namespace", - "Schema": "pg_catalog", - "Alias": "ns", - "Startup Cost": 0.0, - "Total Cost": 1.07, - "Plan Rows": 1, - "Plan Width": 68, - "Actual Startup Time": 0.003, - "Actual Total Time": 0.003, - "Actual Rows": 1, - "Actual Loops": 1, - "Output": [ - "ns.nspname", - "ns.oid" - ], - "Filter": "(ns.nspname = 'pg_catalog'::name)", - "Rows Removed by Filter": 6, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - } - ] - }, - { - "Node Type": "Index Scan", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Scan Direction": "Forward", - "Index Name": "pg_class_oid_index", - "Relation Name": "pg_class", - "Schema": "pg_catalog", - "Alias": "toast", - "Startup Cost": 0.27, - "Total Cost": 1.22, - "Plan Rows": 1, - "Plan Width": 12, - "Actual Startup Time": 0.003, - "Actual Total Time": 0.003, - "Actual Rows": 0, - "Actual Loops": 62, - "Output": [ - "toast.relpages", - "toast.reltuples", - "toast.oid" - ], - "Index Cond": "(tbl.reltoastrelid = toast.oid)", - "Rows Removed by Index Recheck": 0, - "Shared Hit Blocks": 136, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - }, - { - "Node Type": "Index Scan", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Scan Direction": "Forward", - "Index Name": "pg_attribute_relid_attnum_index", - "Relation Name": "pg_attribute", - "Schema": "pg_catalog", - "Alias": "att", - "Startup Cost": 0.28, - "Total Cost": 3.59, - "Plan Rows": 6, - "Plan Width": 68, - "Actual Startup Time": 0.006, - "Actual Total Time": 0.013, - "Actual Rows": 8, - "Actual Loops": 62, - "Output": [ - "att.attrelid", - "att.attname", - "att.atttypid", - "att.attstattarget", - "att.attlen", - "att.attnum", - "att.attndims", - "att.attcacheoff", - "att.atttypmod", - "att.attbyval", - "att.attstorage", - "att.attalign", - "att.attnotnull", - "att.atthasdef", - "att.atthasmissing", - "att.attidentity", - "att.attisdropped", - "att.attislocal", - "att.attinhcount", - "att.attcollation", - "att.attacl", - "att.attoptions", - "att.attfdwoptions", - "att.attmissingval" - ], - "Index Cond": "((att.attrelid = tbl.oid) AND (att.attnum > 0))", - "Rows Removed by Index Recheck": 0, - "Filter": "(NOT att.attisdropped)", - "Rows Removed by Filter": 0, - "Shared Hit Blocks": 202, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - }, - { - "Node Type": "Materialize", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Startup Cost": 19.89, - "Total Cost": 79.21, - "Plan Rows": 1, - "Plan Width": 200, - "Actual Startup Time": 0.001, - "Actual Total Time": 0.021, - "Actual Rows": 365, - "Actual Loops": 522, - "Output": [ - "s_1.null_frac", - "s_1.avg_width", - "s_1.schemaname", - "s_1.tablename", - "s_1.attname" - ], - "Shared Hit Blocks": 1390, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Subquery Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Alias": "s_1", - "Startup Cost": 19.89, - "Total Cost": 79.2, - "Plan Rows": 1, - "Plan Width": 200, - "Actual Startup Time": 0.464, - "Actual Total Time": 4.067, - "Actual Rows": 365, - "Actual Loops": 1, - "Output": [ - "s_1.null_frac", - "s_1.avg_width", - "s_1.schemaname", - "s_1.tablename", - "s_1.attname" - ], - "Shared Hit Blocks": 1390, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Nested Loop", - "Parent Relationship": "Subquery", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 19.89, - "Total Cost": 79.19, - "Plan Rows": 1, - "Plan Width": 401, - "Actual Startup Time": 0.459, - "Actual Total Time": 4.022, - "Actual Rows": 365, - "Actual Loops": 1, - "Output": [ - "n_1.nspname", - "c_2.relname", - "a.attname", - "NULL::boolean", - "s_2.stanullfrac", - "s_2.stawidth", - "NULL::real", - "NULL::anyarray", - "NULL::real[]", - "NULL::anyarray", - "NULL::real", - "NULL::anyarray", - "NULL::real[]", - "NULL::real[]" - ], - "Inner Unique": true, - "Join Filter": "(s_2.staattnum = a.attnum)", - "Rows Removed by Join Filter": 5375, - "Shared Hit Blocks": 1390, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 19.61, - "Total Cost": 40.66, - "Plan Rows": 33, - "Plan Width": 146, - "Actual Startup Time": 0.365, - "Actual Total Time": 0.749, - "Actual Rows": 365, - "Actual Loops": 1, - "Output": [ - "s_2.stanullfrac", - "s_2.stawidth", - "s_2.starelid", - "s_2.staattnum", - "c_2.relname", - "c_2.oid", - "n_1.nspname" - ], - "Inner Unique": false, - "Hash Cond": "(s_2.starelid = c_2.oid)", - "Shared Hit Blocks": 29, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "pg_statistic", - "Schema": "pg_catalog", - "Alias": "s_2", - "Startup Cost": 0.0, - "Total Cost": 19.98, - "Plan Rows": 199, - "Plan Width": 14, - "Actual Startup Time": 0.011, - "Actual Total Time": 0.294, - "Actual Rows": 398, - "Actual Loops": 1, - "Output": [ - "s_2.starelid", - "s_2.staattnum", - "s_2.stainherit", - "s_2.stanullfrac", - "s_2.stawidth", - "s_2.stadistinct", - "s_2.stakind1", - "s_2.stakind2", - "s_2.stakind3", - "s_2.stakind4", - "s_2.stakind5", - "s_2.staop1", - "s_2.staop2", - "s_2.staop3", - "s_2.staop4", - "s_2.staop5", - "s_2.stanumbers1", - "s_2.stanumbers2", - "s_2.stanumbers3", - "s_2.stanumbers4", - "s_2.stanumbers5", - "s_2.stavalues1", - "s_2.stavalues2", - "s_2.stavalues3", - "s_2.stavalues4", - "s_2.stavalues5" - ], - "Filter": "(NOT s_2.stainherit)", - "Rows Removed by Filter": 0, - "Shared Hit Blocks": 16, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Startup Cost": 18.89, - "Total Cost": 18.89, - "Plan Rows": 57, - "Plan Width": 132, - "Actual Startup Time": 0.313, - "Actual Total Time": 0.313, - "Actual Rows": 237, - "Actual Loops": 1, - "Output": [ - "c_2.relname", - "c_2.oid", - "n_1.nspname" - ], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 46, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 1.09, - "Total Cost": 18.89, - "Plan Rows": 57, - "Plan Width": 132, - "Actual Startup Time": 0.074, - "Actual Total Time": 0.216, - "Actual Rows": 237, - "Actual Loops": 1, - "Output": [ - "c_2.relname", - "c_2.oid", - "n_1.nspname" - ], - "Inner Unique": true, - "Hash Cond": "(c_2.relnamespace = n_1.oid)", - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "pg_class", - "Schema": "pg_catalog", - "Alias": "c_2", - "Startup Cost": 0.0, - "Total Cost": 16.27, - "Plan Rows": 342, - "Plan Width": 72, - "Actual Startup Time": 0.006, - "Actual Total Time": 0.106, - "Actual Rows": 348, - "Actual Loops": 1, - "Output": [ - "c_2.relname", - "c_2.oid", - "c_2.relnamespace" - ], - "Filter": "((NOT c_2.relrowsecurity) OR (NOT row_security_active(c_2.oid)))", - "Rows Removed by Filter": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Startup Cost": 1.07, - "Total Cost": 1.07, - "Plan Rows": 1, - "Plan Width": 68, - "Actual Startup Time": 0.018, - "Actual Total Time": 0.018, - "Actual Rows": 1, - "Actual Loops": 1, - "Output": [ - "n_1.nspname", - "n_1.oid" - ], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 9, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "pg_namespace", - "Schema": "pg_catalog", - "Alias": "n_1", - "Startup Cost": 0.0, - "Total Cost": 1.07, - "Plan Rows": 1, - "Plan Width": 68, - "Actual Startup Time": 0.007, - "Actual Total Time": 0.008, - "Actual Rows": 1, - "Actual Loops": 1, - "Output": [ - "n_1.nspname", - "n_1.oid" - ], - "Filter": "(n_1.nspname = 'pg_catalog'::name)", - "Rows Removed by Filter": 6, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - } - ] - } - ] - } - ] - }, - { - "Node Type": "Index Scan", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Scan Direction": "Forward", - "Index Name": "pg_attribute_relid_attnum_index", - "Relation Name": "pg_attribute", - "Schema": "pg_catalog", - "Alias": "a", - "Startup Cost": 0.28, - "Total Cost": 1.13, - "Plan Rows": 3, - "Plan Width": 70, - "Actual Startup Time": 0.002, - "Actual Total Time": 0.008, - "Actual Rows": 16, - "Actual Loops": 365, - "Output": [ - "a.attrelid", - "a.attname", - "a.atttypid", - "a.attstattarget", - "a.attlen", - "a.attnum", - "a.attndims", - "a.attcacheoff", - "a.atttypmod", - "a.attbyval", - "a.attstorage", - "a.attalign", - "a.attnotnull", - "a.atthasdef", - "a.atthasmissing", - "a.attidentity", - "a.attisdropped", - "a.attislocal", - "a.attinhcount", - "a.attcollation", - "a.attacl", - "a.attoptions", - "a.attfdwoptions", - "a.attmissingval" - ], - "Index Cond": "(a.attrelid = c_2.oid)", - "Rows Removed by Index Recheck": 0, - "Filter": "((NOT a.attisdropped) AND has_column_privilege(c_2.oid, a.attnum, 'select'::text))", - "Rows Removed by Filter": 0, - "Shared Hit Blocks": 1361, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Startup Cost": 183.33, - "Total Cost": 183.33, - "Plan Rows": 1, - "Plan Width": 136, - "Actual Startup Time": 190.33, - "Actual Total Time": 190.33, - "Actual Rows": 36, - "Actual Loops": 1, - "Output": [ - "(sum((CASE WHEN ((q.relpages)::double precision > COALESCE(('1'::double precision + ceil((q.reltuples / floor((((((((current_setting('block_size'::text))::numeric) - ((16))::numeric) - ((24))::numeric) * (q.fillfactor)::numeric))::double precision / ('100'::double precision * (('4'::numeric + ((((((((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) + (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) - CASE WHEN (((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE ((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END))::double precision + (sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision)))) + ((CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END))::double precision) - (CASE WHEN ((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))) = '0'::double precision) THEN 0 WHEN ((((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE (((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END)::double precision))::numeric))::double precision)))))), '0'::double precision)) THEN ((((current_setting('block_size'::text))::numeric))::double precision * ((q.relpages)::double precision - COALESCE(('1'::double precision + ceil((q.reltuples / floor((((((((current_setting('block_size'::text))::numeric) - ((16))::numeric) - ((24))::numeric) * (q.fillfactor)::numeric))::double precision / ('100'::double precision * (('4'::numeric + ((((((((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) + (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) - CASE WHEN (((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE ((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END))::double precision + (sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision)))) + ((CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END))::double precision) - (CASE WHEN ((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))) = '0'::double precision) THEN 0 WHEN ((((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE (((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END)::double precision))::numeric))::double precision)))))), '0'::double precision))) ELSE '0'::double precision END)))", - "q.nspname", - "q.tblname" - ], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 14, - "Shared Hit Blocks": 215652, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Aggregate", - "Strategy": "Sorted", - "Partial Mode": "Simple", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Startup Cost": 181.95, - "Total Cost": 183.32, - "Plan Rows": 1, - "Plan Width": 136, - "Actual Startup Time": 190.008, - "Actual Total Time": 190.312, - "Actual Rows": 36, - "Actual Loops": 1, - "Output": [ - "sum((CASE WHEN ((q.relpages)::double precision > COALESCE(('1'::double precision + ceil((q.reltuples / floor((((((((current_setting('block_size'::text))::numeric) - ((16))::numeric) - ((24))::numeric) * (q.fillfactor)::numeric))::double precision / ('100'::double precision * (('4'::numeric + ((((((((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) + (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) - CASE WHEN (((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE ((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END))::double precision + (sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision)))) + ((CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END))::double precision) - (CASE WHEN ((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))) = '0'::double precision) THEN 0 WHEN ((((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE (((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END)::double precision))::numeric))::double precision)))))), '0'::double precision)) THEN ((((current_setting('block_size'::text))::numeric))::double precision * ((q.relpages)::double precision - COALESCE(('1'::double precision + ceil((q.reltuples / floor((((((((current_setting('block_size'::text))::numeric) - ((16))::numeric) - ((24))::numeric) * (q.fillfactor)::numeric))::double precision / ('100'::double precision * (('4'::numeric + ((((((((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) + (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) - CASE WHEN (((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE ((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END))::double precision + (sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision)))) + ((CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END))::double precision) - (CASE WHEN ((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))) = '0'::double precision) THEN 0 WHEN ((((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE (((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END)::double precision))::numeric))::double precision)))))), '0'::double precision))) ELSE '0'::double precision END))", - "q.nspname", - "q.tblname" - ], - "Group Key": ["q.nspname", "q.tblname"], - "Shared Hit Blocks": 215652, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Nested Loop", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 181.95, - "Total Cost": 183.3, - "Plan Rows": 1, - "Plan Width": 349, - "Actual Startup Time": 189.991, - "Actual Total Time": 190.29, - "Actual Rows": 47, - "Actual Loops": 1, - "Output": [ - "NULL::name", - "q.nspname", - "q.tblname", - "q.idxname", - "NULL::numeric", - "NULL::numeric", - "NULL::double precision", - "NULL::integer", - "CASE WHEN ((q.relpages)::double precision > COALESCE(('1'::double precision + ceil((q.reltuples / floor((((((((current_setting('block_size'::text))::numeric) - ((16))::numeric) - ((24))::numeric) * (q.fillfactor)::numeric))::double precision / ('100'::double precision * (('4'::numeric + ((((((((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) + (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) - CASE WHEN (((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE ((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END))::double precision + (sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision)))) + ((CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END))::double precision) - (CASE WHEN ((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))) = '0'::double precision) THEN 0 WHEN ((((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE (((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END)::double precision))::numeric))::double precision)))))), '0'::double precision)) THEN ((((current_setting('block_size'::text))::numeric))::double precision * ((q.relpages)::double precision - COALESCE(('1'::double precision + ceil((q.reltuples / floor((((((((current_setting('block_size'::text))::numeric) - ((16))::numeric) - ((24))::numeric) * (q.fillfactor)::numeric))::double precision / ('100'::double precision * (('4'::numeric + ((((((((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) + (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) - CASE WHEN (((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE ((CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END) % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END))::double precision + (sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision)))) + ((CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END))::double precision) - (CASE WHEN ((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))) = '0'::double precision) THEN 0 WHEN ((((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) = 0) THEN (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END) ELSE (((sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))))::integer % (CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END)) END)::double precision))::numeric))::double precision)))))), '0'::double precision))) ELSE '0'::double precision END", - "NULL::double precision", - "NULL::boolean" - ], - "Inner Unique": true, - "Join Filter": "(q.relam = am.oid)", - "Rows Removed by Join Filter": 0, - "Shared Hit Blocks": 215652, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Aggregate", - "Strategy": "Sorted", - "Partial Mode": "Simple", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Startup Cost": 181.95, - "Total Cost": 182.02, - "Plan Rows": 1, - "Plan Width": 269, - "Actual Startup Time": 189.969, - "Actual Total Time": 190.143, - "Actual Rows": 47, - "Actual Loops": 1, - "Output": [ - "q.nspname", - "q.tblname", - "q.idxname", - "q.reltuples", - "q.relpages", - "q.relam", - "q.attrelid", - "((current_setting('block_size'::text))::numeric)", - "q.fillfactor", - "CASE WHEN ((version() ~ 'mingw32'::text) OR (version() ~ '64-bit|x86_64|ppc64|ia64|amd64'::text)) THEN 8 ELSE 4 END", - "24", - "16", - "CASE WHEN (max(COALESCE(s_3.stanullfrac, '0'::real)) = '0'::double precision) THEN 2 ELSE 6 END", - "sum((('1'::double precision - COALESCE(s_3.stanullfrac, '0'::real)) * (COALESCE(s_3.stawidth, 1024))::double precision))", - "NULL::boolean" - ], - "Group Key": [ - "q.nspname", - "q.tblname", - "q.idxname", - "q.reltuples", - "q.relpages", - "q.relam", - "q.attrelid", - "((current_setting('block_size'::text))::numeric)", - "q.fillfactor" - ], - "Shared Hit Blocks": 215605, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Sort", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Startup Cost": 181.95, - "Total Cost": 181.95, - "Plan Rows": 1, - "Plan Width": 252, - "Actual Startup Time": 189.921, - "Actual Total Time": 189.926, - "Actual Rows": 100, - "Actual Loops": 1, - "Output": [ - "q.nspname", - "q.tblname", - "q.idxname", - "q.reltuples", - "q.relpages", - "q.relam", - "q.attrelid", - "((current_setting('block_size'::text))::numeric)", - "q.fillfactor", - "s_3.stanullfrac", - "s_3.stawidth" - ], - "Sort Key": [ - "q.tblname", - "q.idxname", - "q.reltuples", - "q.relpages", - "q.relam", - "q.attrelid", - "q.fillfactor" - ], - "Sort Method": "quicksort", - "Sort Space Used": 51, - "Sort Space Type": "Memory", - "Shared Hit Blocks": 215605, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Nested Loop", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 93.79, - "Total Cost": 181.94, - "Plan Rows": 1, - "Plan Width": 252, - "Actual Startup Time": 2.371, - "Actual Total Time": 189.594, - "Actual Rows": 100, - "Actual Loops": 1, - "Output": [ - "q.nspname", - "q.tblname", - "q.idxname", - "q.reltuples", - "q.relpages", - "q.relam", - "q.attrelid", - "(current_setting('block_size'::text))::numeric", - "q.fillfactor", - "s_3.stanullfrac", - "s_3.stawidth" - ], - "Inner Unique": true, - "Shared Hit Blocks": 215605, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Nested Loop", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 93.65, - "Total Cost": 177.74, - "Plan Rows": 1, - "Plan Width": 224, - "Actual Startup Time": 2.26, - "Actual Total Time": 188.458, - "Actual Rows": 100, - "Actual Loops": 1, - "Output": [ - "q.nspname", - "q.tblname", - "q.idxname", - "q.reltuples", - "q.relpages", - "q.relam", - "q.attrelid", - "q.fillfactor", - "q.atttypid", - "s_3.stanullfrac", - "s_3.stawidth" - ], - "Inner Unique": false, - "Join Filter": "(((c_3.relname = q.tblname) AND ((a_1.attname)::text = pg_get_indexdef(q.attrelid, (q.attnum)::integer, true))) OR ((c_3.relname = q.idxname) AND (a_1.attname = q.attname)))", - "Rows Removed by Join Filter": 70345, - "Shared Hit Blocks": 215504, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "CTE Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "CTE Name": "q", - "Alias": "q", - "Startup Cost": 73.76, - "Total Cost": 76.03, - "Plan Rows": 1, - "Plan Width": 453, - "Actual Startup Time": 0.663, - "Actual Total Time": 4.145, - "Actual Rows": 193, - "Actual Loops": 1, - "Output": [ - "q.nspname", - "q.tblname", - "q.idxname", - "q.reltuples", - "q.relpages", - "q.relam", - "NULL::oid", - "NULL::oid", - "q.fillfactor", - "q.attrelid", - "q.attname", - "q.atttypid", - "NULL::integer", - "NULL::smallint", - "q.attnum", - "NULL::integer", - "NULL::integer", - "NULL::integer", - "NULL::boolean", - "NULL::\"char\"", - "NULL::\"char\"", - "NULL::boolean", - "NULL::boolean", - "NULL::boolean", - "NULL::\"char\"", - "NULL::boolean", - "NULL::boolean", - "NULL::integer", - "NULL::oid", - "NULL::aclitem[]", - "NULL::text[]", - "NULL::text[]", - "NULL::anyarray" - ], - "Filter": "(q.nspname = 'pg_catalog'::name)", - "Rows Removed by Filter": 0, - "Shared Hit Blocks": 380, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Nested Loop", - "Parent Relationship": "InitPlan", - "Subplan Name": "CTE q", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 25.29, - "Total Cost": 73.76, - "Plan Rows": 101, - "Plan Width": 454, - "Actual Startup Time": 0.643, - "Actual Total Time": 2.855, - "Actual Rows": 193, - "Actual Loops": 1, - "Output": [ - "pg_namespace.nspname", - "tbl_1.relname", - "idx.relname", - "idx.reltuples", - "idx.relpages", - "idx.relam", - "pg_index.indrelid", - "pg_index.indexrelid", - "COALESCE(((\"substring\"(array_to_string(idx.reloptions, ' '::text), 'fillfactor=([0-9]+)'::text))::smallint)::integer, 90)", - "a_2.attrelid", - "a_2.attname", - "a_2.atttypid", - "a_2.attstattarget", - "a_2.attlen", - "a_2.attnum", - "a_2.attndims", - "a_2.attcacheoff", - "a_2.atttypmod", - "a_2.attbyval", - "a_2.attstorage", - "a_2.attalign", - "a_2.attnotnull", - "a_2.atthasdef", - "a_2.atthasmissing", - "a_2.attidentity", - "a_2.attisdropped", - "a_2.attislocal", - "a_2.attinhcount", - "a_2.attcollation", - "a_2.attacl", - "a_2.attoptions", - "a_2.attfdwoptions", - "a_2.attmissingval" - ], - "Inner Unique": false, - "Join Filter": "(idx.oid = a_2.attrelid)", - "Rows Removed by Join Filter": 0, - "Shared Hit Blocks": 380, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 25.01, - "Total Cost": 42.13, - "Plan Rows": 17, - "Plan Width": 265, - "Actual Startup Time": 0.604, - "Actual Total Time": 1.613, - "Actual Rows": 116, - "Actual Loops": 1, - "Output": [ - "pg_index.indrelid", - "pg_index.indexrelid", - "idx.relname", - "idx.reltuples", - "idx.relpages", - "idx.relam", - "idx.reloptions", - "idx.oid", - "tbl_1.relname", - "pg_namespace.nspname" - ], - "Inner Unique": true, - "Hash Cond": "(idx.relnamespace = pg_namespace.oid)", - "Shared Hit Blocks": 29, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 23.87, - "Total Cost": 40.92, - "Plan Rows": 17, - "Plan Width": 205, - "Actual Startup Time": 0.534, - "Actual Total Time": 1.282, - "Actual Rows": 116, - "Actual Loops": 1, - "Output": [ - "pg_index.indrelid", - "pg_index.indexrelid", - "idx.relname", - "idx.reltuples", - "idx.relpages", - "idx.relam", - "idx.reloptions", - "idx.oid", - "idx.relnamespace", - "tbl_1.relname" - ], - "Inner Unique": false, - "Hash Cond": "(idx.oid = pg_index.indexrelid)", - "Shared Hit Blocks": 28, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "pg_class", - "Schema": "pg_catalog", - "Alias": "idx", - "Startup Cost": 0.0, - "Total Cost": 16.27, - "Plan Rows": 161, - "Plan Width": 133, - "Actual Startup Time": 0.013, - "Actual Total Time": 0.407, - "Actual Rows": 182, - "Actual Loops": 1, - "Output": [ - "idx.relname", - "idx.reltuples", - "idx.relpages", - "idx.relam", - "idx.reloptions", - "idx.oid", - "idx.relnamespace" - ], - "Filter": "(idx.relpages > 0)", - "Rows Removed by Filter": 166, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Startup Cost": 23.42, - "Total Cost": 23.42, - "Plan Rows": 36, - "Plan Width": 72, - "Actual Startup Time": 0.441, - "Actual Total Time": 0.442, - "Actual Rows": 116, - "Actual Loops": 1, - "Output": [ - "pg_index.indrelid", - "pg_index.indexrelid", - "tbl_1.relname" - ], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 20, - "Shared Hit Blocks": 16, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 17.14, - "Total Cost": 23.42, - "Plan Rows": 36, - "Plan Width": 72, - "Actual Startup Time": 0.266, - "Actual Total Time": 0.378, - "Actual Rows": 116, - "Actual Loops": 1, - "Output": [ - "pg_index.indrelid", - "pg_index.indexrelid", - "tbl_1.relname" - ], - "Inner Unique": true, - "Hash Cond": "(pg_index.indrelid = tbl_1.oid)", - "Shared Hit Blocks": 16, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "pg_index", - "Schema": "pg_catalog", - "Alias": "pg_index", - "Startup Cost": 0.0, - "Total Cost": 5.8, - "Plan Rows": 180, - "Plan Width": 8, - "Actual Startup Time": 0.003, - "Actual Total Time": 0.073, - "Actual Rows": 137, - "Actual Loops": 1, - "Output": [ - "pg_index.indexrelid", - "pg_index.indrelid", - "pg_index.indnatts", - "pg_index.indnkeyatts", - "pg_index.indisunique", - "pg_index.indisprimary", - "pg_index.indisexclusion", - "pg_index.indimmediate", - "pg_index.indisclustered", - "pg_index.indisvalid", - "pg_index.indcheckxmin", - "pg_index.indisready", - "pg_index.indislive", - "pg_index.indisreplident", - "pg_index.indkey", - "pg_index.indcollation", - "pg_index.indclass", - "pg_index.indoption", - "pg_index.indexprs", - "pg_index.indpred" - ], - "Filter": "pg_index.indisvalid", - "Rows Removed by Filter": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Startup Cost": 16.27, - "Total Cost": 16.27, - "Plan Rows": 69, - "Plan Width": 68, - "Actual Startup Time": 0.229, - "Actual Total Time": 0.229, - "Actual Rows": 71, - "Actual Loops": 1, - "Output": [ - "tbl_1.relname", - "tbl_1.oid" - ], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 15, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "pg_class", - "Schema": "pg_catalog", - "Alias": "tbl_1", - "Startup Cost": 0.0, - "Total Cost": 16.27, - "Plan Rows": 69, - "Plan Width": 68, - "Actual Startup Time": 0.01, - "Actual Total Time": 0.182, - "Actual Rows": 71, - "Actual Loops": 1, - "Output": [ - "tbl_1.relname", - "tbl_1.oid" - ], - "Filter": "(tbl_1.relkind = 'r'::\"char\")", - "Rows Removed by Filter": 277, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - } - ] - } - ] - } - ] - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Startup Cost": 1.06, - "Total Cost": 1.06, - "Plan Rows": 6, - "Plan Width": 68, - "Actual Startup Time": 0.037, - "Actual Total Time": 0.037, - "Actual Rows": 7, - "Actual Loops": 1, - "Output": [ - "pg_namespace.nspname", - "pg_namespace.oid" - ], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 9, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "pg_namespace", - "Schema": "pg_catalog", - "Alias": "pg_namespace", - "Startup Cost": 0.0, - "Total Cost": 1.06, - "Plan Rows": 6, - "Plan Width": 68, - "Actual Startup Time": 0.022, - "Actual Total Time": 0.024, - "Actual Rows": 7, - "Actual Loops": 1, - "Output": [ - "pg_namespace.nspname", - "pg_namespace.oid" - ], - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - } - ] - }, - { - "Node Type": "Index Scan", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Scan Direction": "Forward", - "Index Name": "pg_attribute_relid_attnum_index", - "Relation Name": "pg_attribute", - "Schema": "pg_catalog", - "Alias": "a_2", - "Startup Cost": 0.28, - "Total Cost": 1.71, - "Plan Rows": 6, - "Plan Width": 238, - "Actual Startup Time": 0.004, - "Actual Total Time": 0.005, - "Actual Rows": 2, - "Actual Loops": 116, - "Output": [ - "a_2.attrelid", - "a_2.attname", - "a_2.atttypid", - "a_2.attstattarget", - "a_2.attlen", - "a_2.attnum", - "a_2.attndims", - "a_2.attcacheoff", - "a_2.atttypmod", - "a_2.attbyval", - "a_2.attstorage", - "a_2.attalign", - "a_2.attnotnull", - "a_2.atthasdef", - "a_2.atthasmissing", - "a_2.attidentity", - "a_2.attisdropped", - "a_2.attislocal", - "a_2.attinhcount", - "a_2.attcollation", - "a_2.attacl", - "a_2.attoptions", - "a_2.attfdwoptions", - "a_2.attmissingval" - ], - "Index Cond": "((a_2.attrelid = pg_index.indexrelid) AND (a_2.attnum > 0))", - "Rows Removed by Index Recheck": 0, - "Shared Hit Blocks": 351, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - } - ] - }, - { - "Node Type": "Nested Loop", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 19.89, - "Total Cost": 101.67, - "Plan Rows": 1, - "Plan Width": 401, - "Actual Startup Time": 0.008, - "Actual Total Time": 0.857, - "Actual Rows": 365, - "Actual Loops": 193, - "Output": [ - "n_2.nspname", - "c_3.relname", - "a_1.attname", - "NULL::boolean", - "s_3.stanullfrac", - "s_3.stawidth", - "NULL::real", - "NULL::anyarray", - "NULL::real[]", - "NULL::anyarray", - "NULL::real", - "NULL::anyarray", - "NULL::real[]", - "NULL::real[]" - ], - "Inner Unique": true, - "Join Filter": "(has_column_privilege(c_3.oid, a_1.attnum, 'select'::text) AND (c_3.oid = a_1.attrelid))", - "Rows Removed by Join Filter": 0, - "Shared Hit Blocks": 214436, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 19.61, - "Total Cost": 41.74, - "Plan Rows": 66, - "Plan Width": 146, - "Actual Startup Time": 0.004, - "Actual Total Time": 0.157, - "Actual Rows": 365, - "Actual Loops": 193, - "Output": [ - "s_3.stanullfrac", - "s_3.stawidth", - "s_3.starelid", - "s_3.staattnum", - "c_3.relname", - "c_3.oid", - "n_2.nspname" - ], - "Inner Unique": false, - "Hash Cond": "(s_3.starelid = c_3.oid)", - "Shared Hit Blocks": 3101, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "pg_statistic", - "Schema": "pg_catalog", - "Alias": "s_3", - "Startup Cost": 0.0, - "Total Cost": 19.98, - "Plan Rows": 398, - "Plan Width": 14, - "Actual Startup Time": 0.001, - "Actual Total Time": 0.035, - "Actual Rows": 398, - "Actual Loops": 193, - "Output": [ - "s_3.starelid", - "s_3.staattnum", - "s_3.stainherit", - "s_3.stanullfrac", - "s_3.stawidth", - "s_3.stadistinct", - "s_3.stakind1", - "s_3.stakind2", - "s_3.stakind3", - "s_3.stakind4", - "s_3.stakind5", - "s_3.staop1", - "s_3.staop2", - "s_3.staop3", - "s_3.staop4", - "s_3.staop5", - "s_3.stanumbers1", - "s_3.stanumbers2", - "s_3.stanumbers3", - "s_3.stanumbers4", - "s_3.stanumbers5", - "s_3.stavalues1", - "s_3.stavalues2", - "s_3.stavalues3", - "s_3.stavalues4", - "s_3.stavalues5" - ], - "Shared Hit Blocks": 3088, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Startup Cost": 18.89, - "Total Cost": 18.89, - "Plan Rows": 57, - "Plan Width": 132, - "Actual Startup Time": 0.476, - "Actual Total Time": 0.476, - "Actual Rows": 237, - "Actual Loops": 1, - "Output": [ - "c_3.relname", - "c_3.oid", - "n_2.nspname" - ], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 46, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Hash Join", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Join Type": "Inner", - "Startup Cost": 1.09, - "Total Cost": 18.89, - "Plan Rows": 57, - "Plan Width": 132, - "Actual Startup Time": 0.098, - "Actual Total Time": 0.355, - "Actual Rows": 237, - "Actual Loops": 1, - "Output": [ - "c_3.relname", - "c_3.oid", - "n_2.nspname" - ], - "Inner Unique": true, - "Hash Cond": "(c_3.relnamespace = n_2.oid)", - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "pg_class", - "Schema": "pg_catalog", - "Alias": "c_3", - "Startup Cost": 0.0, - "Total Cost": 16.27, - "Plan Rows": 342, - "Plan Width": 72, - "Actual Startup Time": 0.012, - "Actual Total Time": 0.206, - "Actual Rows": 348, - "Actual Loops": 1, - "Output": [ - "c_3.relname", - "c_3.oid", - "c_3.relnamespace" - ], - "Filter": "((NOT c_3.relrowsecurity) OR (NOT row_security_active(c_3.oid)))", - "Rows Removed by Filter": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - }, - { - "Node Type": "Hash", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Startup Cost": 1.07, - "Total Cost": 1.07, - "Plan Rows": 1, - "Plan Width": 68, - "Actual Startup Time": 0.027, - "Actual Total Time": 0.027, - "Actual Rows": 1, - "Actual Loops": 1, - "Output": [ - "n_2.nspname", - "n_2.oid" - ], - "Hash Buckets": 1024, - "Original Hash Buckets": 1024, - "Hash Batches": 1, - "Original Hash Batches": 1, - "Peak Memory Usage": 9, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Relation Name": "pg_namespace", - "Schema": "pg_catalog", - "Alias": "n_2", - "Startup Cost": 0.0, - "Total Cost": 1.07, - "Plan Rows": 1, - "Plan Width": 68, - "Actual Startup Time": 0.021, - "Actual Total Time": 0.022, - "Actual Rows": 1, - "Actual Loops": 1, - "Output": [ - "n_2.nspname", - "n_2.oid" - ], - "Filter": "(n_2.nspname = 'pg_catalog'::name)", - "Rows Removed by Filter": 6, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - } - ] - } - ] - } - ] - }, - { - "Node Type": "Index Scan", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Scan Direction": "Forward", - "Index Name": "pg_attribute_relid_attnum_index", - "Relation Name": "pg_attribute", - "Schema": "pg_catalog", - "Alias": "a_1", - "Startup Cost": 0.28, - "Total Cost": 0.89, - "Plan Rows": 1, - "Plan Width": 70, - "Actual Startup Time": 0.001, - "Actual Total Time": 0.001, - "Actual Rows": 1, - "Actual Loops": 70445, - "Output": [ - "a_1.attrelid", - "a_1.attname", - "a_1.atttypid", - "a_1.attstattarget", - "a_1.attlen", - "a_1.attnum", - "a_1.attndims", - "a_1.attcacheoff", - "a_1.atttypmod", - "a_1.attbyval", - "a_1.attstorage", - "a_1.attalign", - "a_1.attnotnull", - "a_1.atthasdef", - "a_1.atthasmissing", - "a_1.attidentity", - "a_1.attisdropped", - "a_1.attislocal", - "a_1.attinhcount", - "a_1.attcollation", - "a_1.attacl", - "a_1.attoptions", - "a_1.attfdwoptions", - "a_1.attmissingval" - ], - "Index Cond": "((a_1.attrelid = s_3.starelid) AND (a_1.attnum = s_3.staattnum))", - "Rows Removed by Index Recheck": 0, - "Filter": "(NOT a_1.attisdropped)", - "Rows Removed by Filter": 0, - "Shared Hit Blocks": 211335, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - } - ] - }, - { - "Node Type": "Index Only Scan", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Scan Direction": "Forward", - "Index Name": "pg_type_oid_index", - "Relation Name": "pg_type", - "Schema": "pg_catalog", - "Alias": "t", - "Startup Cost": 0.15, - "Total Cost": 4.17, - "Plan Rows": 1, - "Plan Width": 4, - "Actual Startup Time": 0.005, - "Actual Total Time": 0.005, - "Actual Rows": 1, - "Actual Loops": 100, - "Output": ["t.oid"], - "Index Cond": "(t.oid = q.atttypid)", - "Rows Removed by Index Recheck": 0, - "Heap Fetches": 0, - "Shared Hit Blocks": 101, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - } - ] - } - ] - }, - { - "Node Type": "Seq Scan", - "Parent Relationship": "Inner", - "Parallel Aware": false, - "Relation Name": "pg_am", - "Schema": "pg_catalog", - "Alias": "am", - "Startup Cost": 0.0, - "Total Cost": 1.07, - "Plan Rows": 1, - "Plan Width": 4, - "Actual Startup Time": 0.0, - "Actual Total Time": 0.0, - "Actual Rows": 1, - "Actual Loops": 47, - "Output": ["am.oid"], - "Filter": "(am.amname = 'btree'::name)", - "Rows Removed by Filter": 0, - "Shared Hit Blocks": 47, - "Shared Read Blocks": 0, - "Shared Dirtied Blocks": 0, - "Shared Written Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Written Blocks": 0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0 - } - ] - } - ] - } - ] - } - ] - } -} -`,g0=` Merge on public.tb (cost=262602.88..306621.45 rows=0 width=0) (actual time=7798.118..7798.122 rows=0 loops=1) - Tuples: inserted=9995 updated=9679 deleted=326 - Buffers: shared hit=7731564 read=22226 dirtied=27295 written=38115, temp read=9593 written=27592 - I/O Timings: shared read=22.960 write=186.426, temp read=17.017 write=119.861 - WAL: records=5049414 fpi=5192 bytes=416135793 - CTE tbl - -> Insert on pg_temp.tblog (cost=8704.82..8705.65 rows=0 width=0) (actual time=509.761..509.761 rows=0 loops=1) - Buffers: shared hit=3 read=5448 written=5276, local hit=494411 dirtied=2644 written=4269, temp read=1559 written=1568 - I/O Timings: shared read=10.578 write=13.760, local write=54.430, temp read=2.942 write=6.888 - -> Sort (cost=8704.82..8705.65 rows=333 width=12) (actual time=286.491..347.529 rows=489127 loops=1) - Output: tb_1.i, tb_1.x - Sort Key: tb_1.x - Sort Method: external merge Disk: 12472kB - Buffers: shared hit=3 read=5448 written=5276, temp read=1559 written=1568 - I/O Timings: shared read=10.578 write=13.760, temp read=2.942 write=6.888 - -> Bitmap Heap Scan on public.tb tb_1 (cost=180.48..8690.86 rows=333 width=12) (actual time=30.582..122.685 rows=489127 loops=1) - Output: tb_1.i, tb_1.x - Recheck Cond: ((tb_1.i >= 4000000) AND (tb_1.i <= 5000000)) - Filter: ((mod(tb_1.i, 99) > 0) AND (mod(tb_1.i, 98) > 0) AND (mod(tb_1.i, 98) > 0) AND ((tb_1.i + 1) > 0)) - Rows Removed by Filter: 10068 - Heap Blocks: exact=3181 - Buffers: shared hit=3 read=5448 written=5276 - I/O Timings: shared read=10.578 write=13.760 - -> Bitmap Index Scan on tb_pkey (cost=0.00..180.40 rows=8997 width=0) (actual time=30.251..30.251 rows=499195 loops=1) - Index Cond: ((tb_1.i >= 4000000) AND (tb_1.i <= 5000000)) - Buffers: shared hit=2 read=2268 written=2181 - I/O Timings: shared read=4.315 write=5.384 - CTE tabb - -> Update on public.ta (cost=96.13..93079.47 rows=1667044 width=18) (actual time=11.270..6418.935 rows=2499947 loops=1) - Output: ta_1.i, ta_1.x, ta_1.filler - Update on public.ta1 ta_1 - Update on public.ta2 ta_2 - Buffers: shared hit=7542762 read=22126 dirtied=26988 written=37604 - I/O Timings: shared read=22.722 write=184.053 - WAL: records=4999894 fpi=5162 bytes=412139886 - InitPlan 3 - -> Result (cost=96.12..96.13 rows=1 width=4) (actual time=0.052..0.053 rows=1 loops=1) - Output: ((InitPlan 2).col1 / 2) - Buffers: shared hit=2 read=2 - I/O Timings: shared read=0.007 - InitPlan 2 - -> Limit (cost=0.43..96.12 rows=1 width=4) (actual time=0.048..0.048 rows=1 loops=1) - Output: tb_2.i - Buffers: shared hit=2 read=2 - I/O Timings: shared read=0.007 - -> Index Only Scan Backward using tb_pkey on public.tb tb_2 (cost=0.43..95690.29 rows=1000 width=4) (actual time=0.045..0.045 rows=1 loops=1) - Output: tb_2.i - Filter: (((tb_2.i + 1) > 0) AND ((tb_2.i + 2) > 0) AND (mod(tb_2.i, 99) = 0)) - Rows Removed by Filter: 38 - Heap Fetches: 39 - Buffers: shared hit=2 read=2 - I/O Timings: shared read=0.007 - -> Append (cost=0.00..92983.35 rows=1667044 width=18) (actual time=0.078..650.328 rows=2499947 loops=1) - Buffers: shared hit=2 read=22126 written=8891 - I/O Timings: shared read=22.722 write=25.883 - -> Seq Scan on public.ta1 ta_1 (cost=0.00..84624.00 rows=1666667 width=18) (actual time=0.016..486.444 rows=2499947 loops=1) - Output: '2'::double precision, ta_1.tableoid, ta_1.ctid - Filter: (ta_1.i < (InitPlan 3).col1) - Rows Removed by Filter: 2500053 - Buffers: shared read=22124 written=8891 - I/O Timings: shared read=22.715 write=25.883 - -> Seq Scan on public.ta2 ta_2 (cost=0.00..24.12 rows=377 width=18) (never executed) - Output: '2'::double precision, ta_2.tableoid, ta_2.ctid - Filter: (ta_2.i < (InitPlan 3).col1) - CTE tab - -> Limit (cost=160767.33..160817.33 rows=20000 width=44) (actual time=7700.673..7704.219 rows=20000 loops=1) - Output: tabb.i, tabb.x, tabb.filler - Buffers: shared hit=7542762 read=22126 dirtied=26988 written=37604, temp read=9593 written=27592 - I/O Timings: shared read=22.722 write=184.053, temp read=17.017 write=119.861 - WAL: records=4999894 fpi=5162 bytes=412139886 - -> Sort (cost=160767.33..164934.94 rows=1667044 width=44) (actual time=7563.572..7565.984 rows=20000 loops=1) - Output: tabb.i, tabb.x, tabb.filler - Sort Key: tabb.x - Sort Method: external merge Disk: 73440kB - Buffers: shared hit=7542762 read=22126 dirtied=26988 written=37604, temp read=9593 written=27592 - I/O Timings: shared read=22.722 write=184.053, temp read=17.017 write=119.861 - WAL: records=4999894 fpi=5162 bytes=412139886 - -> CTE Scan on tabb (cost=0.00..33340.88 rows=1667044 width=44) (actual time=11.274..7104.296 rows=2499947 loops=1) - Output: tabb.i, tabb.x, tabb.filler - Buffers: shared hit=7542762 read=22126 dirtied=26988 written=37604, temp written=9155 - I/O Timings: shared read=22.722 write=184.053, temp write=58.774 - WAL: records=4999894 fpi=5162 bytes=412139886 - -> Nested Loop Left Join (cost=0.43..44019.00 rows=20000 width=102) (actual time=7700.749..7733.331 rows=20000 loops=1) - Output: tb.ctid, tab.i, tab.filler, tab.* - Inner Unique: true - Buffers: shared hit=7612704 read=22189 dirtied=26988 written=37663, temp read=9593 written=27592 - I/O Timings: shared read=22.871 write=184.243, temp read=17.017 write=119.861 - WAL: records=4999894 fpi=5162 bytes=412139886 - -> CTE Scan on tab (cost=0.00..400.00 rows=20000 width=96) (actual time=7700.708..7709.042 rows=20000 loops=1) - Output: tab.i, tab.filler, tab.* - Buffers: shared hit=7542762 read=22126 dirtied=26988 written=37604, temp read=9593 written=27592 - I/O Timings: shared read=22.722 write=184.053, temp read=17.017 write=119.861 - WAL: records=4999894 fpi=5162 bytes=412139886 - -> Index Scan using tb_pkey on public.tb (cost=0.43..2.18 rows=1 width=10) (actual time=0.001..0.001 rows=1 loops=20000) - Output: tb.ctid, tb.i - Index Cond: (tb.i = tab.i) - Buffers: shared hit=69942 read=63 written=59 - I/O Timings: shared read=0.149 write=0.190 - Settings: work_mem = '3MB', random_page_cost = '1.5', parallel_tuple_cost = '0', jit_above_cost = '0', jit_inline_above_cost = '0', jit_optimize_above_cost = '0' - Planning: - Buffers: shared hit=26 read=1 - I/O Timings: shared read=0.003 - Memory: used=165kB allocated=264kB - Planning Time: 0.289 ms - Trigger RI_ConstraintTrigger_a_18153 for constraint tc1_fkey on tb: time=4399.335 calls=326 - Trigger RI_ConstraintTrigger_a_18161 for constraint tc2_fkey on tc1: time=6000.010 calls=326 - JIT: - Functions: 31 - Options: Inlining true, Optimization true, Expressions true, Deforming true - Timing: Generation 1.340 ms (Deform 0.303 ms), Inlining 9.145 ms, Optimization 82.044 ms, Emission 57.043 ms, Total 149.572 ms - Serialization: time=0.000 ms output=0kB format=text - Execution Time: 18733.542 ms -(112 lignes) -`,A0=`EXPLAIN (ANALYZE,BUFFERS,VERBOSE,SETTINGS,WAL,SERIALIZE,MEMORY,FORMAT TEXT) -WITH -tBl AS ( INSERT INTO tBlog SELECT i,x FROM tB - WHERE i BETWEEN 4000000 AND 5000000 - AND mod(i,99)>0 AND mod(i,98)>0 AND mod(i,98)>0 and i+1>0 /* force bitmap index */ - ORDER BY x), -tAbb AS ( UPDATE tA SET x=2 WHERE i < ( - SELECT max(i)/2 FROM tB WHERE mod(i,99)=0 AND i+1>0 AND i+2>0 /* for bad stats */ - ) - RETURNING * ), -tAb AS MATERIALIZED ( SELECT * FROM tAbb ORDER BY x LIMIT 20000) -MERGE INTO tB -USING tAb ON (tB.i=tAb.i) -WHEN NOT MATCHED THEN - INSERT VALUES (tAb.i, 0.0, '000') -WHEN MATCHED AND tB.x > 0.97 THEN - DELETE /* will raise the ON DELETE trigger (very costly) */ -WHEN MATCHED THEN - UPDATE SET filler=tAb.filler -; -`,L0=`[ - { - "Plan": { - "Node Type": "Aggregate", - "Strategy": "Plain", - "Partial Mode": "Finalize", - "Parallel Aware": false, - "Startup Cost": 144975.01, - "Total Cost": 144975.02, - "Plan Rows": 1, - "Plan Width": 32, - "Actual Startup Time": 484.97, - "Actual Total Time": 484.97, - "Actual Rows": 1, - "Actual Loops": 1, - "Output": ["sum(l_quantity)"], - "Plans": [ - { - "Node Type": "Gather", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Startup Cost": 144974.57, - "Total Cost": 144974.98, - "Plan Rows": 4, - "Plan Width": 32, - "Actual Startup Time": 484.868, - "Actual Total Time": 486.428, - "Actual Rows": 3, - "Actual Loops": 1, - "Output": ["(PARTIAL sum(l_quantity))"], - "Workers Planned": 4, - "Workers Launched": 2, - "Single Copy": false, - "Plans": [ - { - "Node Type": "Aggregate", - "Strategy": "Plain", - "Partial Mode": "Partial", - "Parent Relationship": "Outer", - "Parallel Aware": false, - "Startup Cost": 143974.57, - "Total Cost": 143974.58, - "Plan Rows": 1, - "Plan Width": 32, - "Actual Startup Time": 482.39, - "Actual Total Time": 482.39, - "Actual Rows": 1, - "Actual Loops": 3, - "Output": ["PARTIAL sum(l_quantity)"], - "Workers": [ - { - "Worker Number": 0, - "Actual Startup Time": 481.485, - "Actual Total Time": 481.485, - "Actual Rows": 1, - "Actual Loops": 1 - }, - { - "Worker Number": 1, - "Actual Startup Time": 481.56, - "Actual Total Time": 481.56, - "Actual Rows": 1, - "Actual Loops": 1 - } - ], - "Plans": [ - { - "Node Type": "Seq Scan", - "Parent Relationship": "Outer", - "Parallel Aware": true, - "Relation Name": "lineitem", - "Schema": "public", - "Alias": "lineitem", - "Startup Cost": 0.0, - "Total Cost": 140298.89, - "Plan Rows": 1470273, - "Plan Width": 5, - "Actual Startup Time": 0.652, - "Actual Total Time": 344.447, - "Actual Rows": 1962085, - "Actual Loops": 3, - "Output": [ - "l_orderkey", - "l_partkey", - "l_suppkey", - "l_linenumber", - "l_quantity", - "l_extendedprice", - "l_discount", - "l_tax", - "l_returnflag", - "l_linestatus", - "l_shipdate", - "l_commitdate", - "l_receiptdate", - "l_shipinstruct", - "l_shipmode", - "l_comment" - ], - "Filter": "(lineitem.l_shipdate <= '1998-08-18 00:00:00'::timestamp without time zone)", - "Rows Removed by Filter": 38320, - "Workers": [ - { - "Worker Number": 0, - "Actual Startup Time": 0.414, - "Actual Total Time": 344.435, - "Actual Rows": 1962858, - "Actual Loops": 1 - }, - { - "Worker Number": 1, - "Actual Startup Time": 0.441, - "Actual Total Time": 344.431, - "Actual Rows": 1971199, - "Actual Loops": 1 - } - ] - } - ] - } - ] - } - ] - }, - "Planning Time": 0.591, - "Triggers": [], - "Execution Time": 486.495 - } -]`,y0=`select - l_shipmode, - sum(case - when o_orderpriority = '1-URGENT' - or o_orderpriority = '2-HIGH' - then 1 - else 0 - end) as high_line_count, - sum(case - when o_orderpriority <> '1-URGENT' - and o_orderpriority <> '2-HIGH' - then 1 - else 0 - end) as low_line_count -from - orders, - lineitem -where - o_orderkey = l_orderkey - and l_shipmode in ('MAIL', 'AIR') - and l_commitdate < l_receiptdate - and l_shipdate < l_commitdate - and l_receiptdate >= date '1996-01-01' - and l_receiptdate < date '1996-01-01' + interval '1' year -group by - l_shipmode -order by - l_shipmode -LIMIT 1; -`,b0=` Limit (cost=1964755.66..1964961.44 rows=1 width=27) (actual time=7579.592..7922.997 rows=1 loops=1) - -> Finalize GroupAggregate (cost=1964755.66..1966196.11 rows=7 width=27) (actual time=7579.590..7579.591 rows=1 loops=1) - Group Key: lineitem.l_shipmode - -> Gather Merge (cost=1964755.66..1966195.83 rows=28 width=27) (actual time=7559.593..7922.319 rows=6 loops=1) - Workers Planned: 4 - Workers Launched: 4 - -> Partial GroupAggregate (cost=1963755.61..1965192.44 rows=7 width=27) (actual time=7548.103..7564.592 rows=2 loops=5) - Group Key: lineitem.l_shipmode - -> Sort (cost=1963755.61..1963935.20 rows=71838 width=27) (actual time=7530.280..7539.688 rows=62519 loops=5) - Sort Key: lineitem.l_shipmode - Sort Method: external merge Disk: 2304kB - Worker 0: Sort Method: external merge Disk: 2064kB - Worker 1: Sort Method: external merge Disk: 2384kB - Worker 2: Sort Method: external merge Disk: 2264kB - Worker 3: Sort Method: external merge Disk: 2336kB - -> Parallel Hash Join (cost=382571.01..1957960.99 rows=71838 width=27) (actual time=7036.917..7499.692 rows=62519 loops=5) - Hash Cond: (lineitem.l_orderkey = orders.o_orderkey) - -> Parallel Seq Scan on lineitem (cost=0.00..1552386.40 rows=71838 width=19) (actual time=0.583..4901.063 rows=62519 loops=5) - Filter: ((l_shipmode = ANY ('{MAIL,AIR}'::bpchar[])) AND (l_commitdate < l_receiptdate) AND (l_shipdate < l_commitdate) AND (l_receiptdate >= '1996-01-01'::date) AND (l_receiptdate < '1997-01-01 00:00:00'::timestamp without time zone)) - Rows Removed by Filter: 11934691 - -> Parallel Hash (cost=313722.45..313722.45 rows=3750045 width=20) (actual time=2011.518..2011.518 rows=3000000 loops=5) - Buckets: 65536 Batches: 256 Memory Usage: 3840kB - -> Parallel Seq Scan on orders (cost=0.00..313722.45 rows=3750045 width=20) (actual time=0.029..995.948 rows=3000000 loops=5) - Planning Time: 0.977 ms - Execution Time: 7923.770 ms`,N0=` QUERY PLAN --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Delete on emailmessages (cost=224.85..38989.92 rows=5000 width=34) (actual time=217158.570..217158.570 rows=0 loops=1) - Buffers: shared hit=2579331 read=506594 dirtied=503671 - -> Nested Loop (cost=224.85..38989.92 rows=5000 width=34) (actual time=7.105..4576.019 rows=5000 loops=1) - Buffers: shared hit=20223 read=395 - -> HashAggregate (cost=224.42..274.42 rows=5000 width=32) (actual time=7.072..23.891 rows=5000 loops=1) - Group Key: "ANY_subquery".emailmessageid - Buffers: shared hit=583 - -> Subquery Scan on "ANY_subquery" (cost=0.43..211.92 rows=5000 width=32) (actual time=0.064..3.892 rows=5000 loops=1) - Buffers: shared hit=583 - -> Limit (cost=0.43..161.92 rows=5000 width=4) (actual time=0.053..2.808 rows=5000 loops=1) - Buffers: shared hit=583 - -> Index Only Scan using emailmessages_pkey on emailmessages emailmessages_1 (cost=0.43..89834.20 rows=2781465 width=4) (actual time=0.051..2.260 rows=5000 loops=1) - Heap Fetches: 609 - Buffers: shared hit=583 - -> Index Scan using emailmessages_pkey on emailmessages (cost=0.43..7.73 rows=1 width=10) (actual time=0.903..0.905 rows=1 loops=5000) - Index Cond: (emailmessageid = "ANY_subquery".emailmessageid) - Buffers: shared hit=19640 read=395 - Planning time: 2.482 ms - Trigger for constraint headeremessageref: time=4038.247 calls=5000 - Trigger for constraint formdataemessageref: time=81.415 calls=5000 - Trigger for constraint attachemessageref: time=158945.774 calls=5000 - Trigger for constraint outgoingemessageref: time=332.316 calls=5000 - Trigger for constraint incomingemessageref: time=125.492 calls=5000 - Trigger for constraint eventemessageref: time=251.365 calls=5000 - Trigger for constraint filteredemessageref: time=125.894 calls=5000 - Execution time: 381072.164 ms -(26 rows)`,O0="DELETE FROM emailmessages where emailmessageid in ( select emailmessageid from emailmessages limit 5000 );",x0=` - Append (cost=0.43..170502.33 rows=4018259 width=97) (actual time=0.007..464.318 rows=4000001 loops=1) - Buffers: shared hit=39 read=69641 - I/O Timings: shared read=66.219 - -> Index Scan using pgbench_accounts_2_pkey on pgbench_accounts_2 pgbench_accounts_1 (cost=0.43..8.45 rows=1 width=97) (actual time=0.006..0.007 rows=1 loops=1) - Index Cond: ((aid >= 5000000) AND (aid <= 9000000)) - Buffers: shared hit=4 - -> Seq Scan on pgbench_accounts_3 pgbench_accounts_2 (cost=0.00..78484.00 rows=2500000 width=97) (actual time=0.032..163.701 rows=2500000 loops=1) - Filter: ((aid >= 5000000) AND (aid <= 9000000)) - Buffers: shared hit=32 read=40952 - I/O Timings: shared read=32.345 - -> Index Scan using pgbench_accounts_4_pkey on pgbench_accounts_4 pgbench_accounts_3 (cost=0.43..71918.59 rows=1518258 width=97) (actual time=0.020..148.504 rows=1500000 loops=1) - Index Cond: ((aid >= 5000000) AND (aid <= 9000000)) - Buffers: shared hit=3 read=28689 - I/O Timings: shared read=33.874 - Settings: jit = 'off' - Planning: - Buffers: shared hit=20 - Planning Time: 0.271 ms - Execution Time: 548.488 ms -`,C0=` -/* Query on a pgbench database with 4 partitions, - only 3 are used */ -EXPLAIN (ANALYZE,BUFFERS,SETTINGS) -SELECT * from pgbench_accounts where aid BETWEEN 5000000 AND 9000000 ; -`,v0=[["Simple join (TEXT format)",u0,Os],["Simple join (JSON format)",p0,Os],["Three joins, missing an index",m0,h0],["Aggregate with four joins",_0,S0],["With subplan",k0,""],["With Buffers",T0,B0],["A single CTE",E0,R0],["Many CTEs",f0,""],["Very large plan",w0,""],["DELETE with triggers",N0,O0],["With many options",g0,A0],["Parallel (verbose)",L0,""],["Parallel (4 workers)",b0,y0],["Partitions",x0,C0]];ei.add(ti,ai,si);let ha,xs;const aa=ci({setup(){const e=ee(""),t=ee(""),a=ee(""),s=ee(""),r=ee(!1),i=ee(!1),o=ee([]),n=ee(null),u=ee(null),l=ee(!1);function d(B){n.value=null,B.preventDefault(),localStorage.getItem("dontAskBeforeSubmit")?h():ha.show()}function h(){document.getElementById("dontAskAgain").checked&&localStorage.setItem("dontAskBeforeSubmit",!0);let P=n.value;P||(e.value=e.value||"Plan created on "+f().format("MMMM Do YYYY, h:mm a"),P={title:e.value,plan:t.value,query:a.value,password:s.value,createdOn:new Date}),C(P)}function R(B){[e.value,t.value,a.value]=B}function N(B){const P=B.srcElement;if(!(P instanceof HTMLTextAreaElement)||(r.value=!1,i.value=!1,!B.dataTransfer))return;const q=B.dataTransfer.files[0],Z=new FileReader;Z.onload=we=>{Z.result instanceof ArrayBuffer||(P.value=Z.result||"",P.dispatchEvent(new Event("input")))},Z.readAsText(q)}function p(){const B=[];for(let P in localStorage)Ns.startsWith(P,"plan_")&&B.push(JSON.parse(localStorage[P]));o.value=Ns.chain(B).sortBy("createdOn").reverse().value()}function T(B){B.value=B,localStorage.getItem("dontAskBeforeSubmit")?C(B):ha.show()}function _(B){return B.shareId?"/"+B.shareId:"#"+B.id}function W(B){l.value&&B.shareId?D.get("/plan/"+B.shareId+"/"+B.deleteKey).then(U.bind(this,B)):U(B)}function U(B){localStorage.removeItem(B.id?B.id:"plan_"+B.shareId),p(),xs.hide()}function C(B){const P=document.getElementById("submitForm");D.post(P.action,{title:B.title,plan:B.plan,query:B.query,password:B.password}).then(q=>{localStorage.removeItem(B.id);const Z=q.data,we="plan_"+Z.id;localStorage.setItem(we,JSON.stringify({id:we,shareId:Z.id,title:B.title,createdOn:B.createdOn,deleteKey:Z.deleteKey})),window.location.href="/plan/"+Z.id})}function F(B){return new Date(B).toLocaleDateString(navigator.language,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"})}return di(()=>{document.getElementsByTagName("textarea"),p(),ha=new as(document.getElementById("confirmSubmitModal")),xs=new as(document.getElementById("deletePlanModal"))}),Rt(u,(B,P)=>{l.value=!1}),{samples:v0,titleInput:e,planInput:t,queryInput:a,passwordInput:s,draggingPlan:r,draggingQuery:i,plans:o,plan:n,planToDelete:u,deleteFromServer:l,checkForm:d,submitPlan:h,loadSample:R,handleDrop:N,loadPlan:T,getPlanUrl:_,deletePlan:W,formattedDate:F}}});aa.use(c0);aa.component("font-awesome-icon",ri);aa.component("theme-switcher",mi);aa.mount("#app")});export default W0(); diff --git a/app/static/dist/assets/plan-CqliKu1A.js b/app/static/dist/assets/plan-CqliKu1A.js deleted file mode 100644 index 1961927..0000000 --- a/app/static/dist/assets/plan-CqliKu1A.js +++ /dev/null @@ -1 +0,0 @@ -import{l as Bn,a as $n,F as In}from"./about-4AxB30-u.js";import{c as jn,e as kn,f as $t,g as Hn,m as It,t as Nn,d as tn,o as Tt,a as ue,n as Vn,w as st,u as nn,r as Un,I as Ee,x as Fn,D as _n,E as pe,G as jt,J as Wn,K as Xn,H as yt}from"./vue-CPYrH9CX.js";import{D as Yn}from"./pev2-DehNO_aX.js";import{_ as qn}from"./themeSwitcher-D0Vjumho.js";const zn={class:"lh-1"},Gn=["title"],Kn={__name:"created",props:["date"],setup(e){const t=e,n=new Date(t.date),r=It(()=>n.toLocaleString(navigator.language,{year:"numeric",month:"short",day:"numeric"})),o=It(()=>n.toLocaleString(navigator.language,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}));return(a,s)=>(kn(),jn("small",zn,[$t("small",null,[s[0]||(s[0]=Hn("created ",-1)),$t("span",{title:o.value},"on "+Nn(r.value),9,Gn)])]))}};var U="top",X="bottom",Y="right",F="left",Ct="auto",We=[U,X,Y,F],Pe="start",Ue="end",Jn="clippingParents",rn="viewport",He="popper",Zn="reference",kt=We.reduce(function(e,t){return e.concat([t+"-"+Pe,t+"-"+Ue])},[]),on=[].concat(We,[Ct]).reduce(function(e,t){return e.concat([t,t+"-"+Pe,t+"-"+Ue])},[]),Qn="beforeRead",er="read",tr="afterRead",nr="beforeMain",rr="main",ir="afterMain",or="beforeWrite",ar="write",sr="afterWrite",ur=[Qn,er,tr,nr,rr,ir,or,ar,sr];function ne(e){return e?(e.nodeName||"").toLowerCase():null}function K(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function De(e){var t=K(e).Element;return e instanceof t||e instanceof Element}function W(e){var t=K(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function an(e){if(typeof ShadowRoot>"u")return!1;var t=K(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fr(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!W(a)||!ne(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var u=o[s];u===!1?a.removeAttribute(s):a.setAttribute(s,u===!0?"":u)}))})}function lr(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=s.reduce(function(f,d){return f[d]="",f},{});!W(o)||!ne(o)||(Object.assign(o.style,u),Object.keys(a).forEach(function(f){o.removeAttribute(f)}))})}}var sn={name:"applyStyles",enabled:!0,phase:"write",fn:fr,effect:lr,requires:["computeStyles"]};function te(e){return e.split("-")[0]}var be=Math.max,ut=Math.min,Se=Math.round;function Me(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(W(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(r=Se(n.width)/s||1),a>0&&(o=Se(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function At(e){var t=Me(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function un(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&an(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function re(e){return K(e).getComputedStyle(e)}function pr(e){return["table","td","th"].indexOf(ne(e))>=0}function ce(e){return((De(e)?e.ownerDocument:e.document)||window.document).documentElement}function lt(e){return ne(e)==="html"?e:e.assignedSlot||e.parentNode||(an(e)?e.host:null)||ce(e)}function Ht(e){return!W(e)||re(e).position==="fixed"?null:e.offsetParent}function cr(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&W(e)){var r=re(e);if(r.position==="fixed")return null}for(var o=lt(e);W(o)&&["html","body"].indexOf(ne(o))<0;){var a=re(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Xe(e){for(var t=K(e),n=Ht(e);n&&pr(n)&&re(n).position==="static";)n=Ht(n);return n&&(ne(n)==="html"||ne(n)==="body"&&re(n).position==="static")?t:n||cr(e)||t}function Et(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ne(e,t,n){return be(e,ut(t,n))}function dr(e,t,n){var r=Ne(e,t,n);return r>n?n:r}function fn(){return{top:0,right:0,bottom:0,left:0}}function ln(e){return Object.assign({},fn(),e)}function pn(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var vr=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ln(typeof t!="number"?t:pn(t,We))};function mr(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,u=te(n.placement),f=Et(u),d=[F,Y].indexOf(u)>=0,p=d?"height":"width";if(!(!a||!s)){var T=vr(o.padding,n),E=At(a),b=f==="y"?U:F,g=f==="y"?X:Y,y=n.rects.reference[p]+n.rects.reference[f]-s[f]-n.rects.popper[p],C=s[f]-n.rects.reference[f],m=Xe(a),A=m?f==="y"?m.clientHeight||0:m.clientWidth||0:0,D=y/2-C/2,i=T[b],w=A-E[p]-T[g],v=A/2-E[p]/2+D,c=Ne(i,v,w),h=f;n.modifiersData[r]=(t={},t[h]=c,t.centerOffset=c-v,t)}}function gr(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||un(t.elements.popper,o)&&(t.elements.arrow=o))}var hr={name:"arrow",enabled:!0,phase:"main",fn:mr,effect:gr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Le(e){return e.split("-")[1]}var yr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function br(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Se(t*o)/o||0,y:Se(n*o)/o||0}}function Nt(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,u=e.position,f=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,T=e.isFixed,E=p===!0?br(s):typeof p=="function"?p(s):s,b=E.x,g=b===void 0?0:b,y=E.y,C=y===void 0?0:y,m=s.hasOwnProperty("x"),A=s.hasOwnProperty("y"),D=F,i=U,w=window;if(d){var v=Xe(n),c="clientHeight",h="clientWidth";if(v===K(n)&&(v=ce(n),re(v).position!=="static"&&u==="absolute"&&(c="scrollHeight",h="scrollWidth")),v=v,o===U||(o===F||o===Y)&&a===Ue){i=X;var M=T&&w.visualViewport?w.visualViewport.height:v[c];C-=M-r.height,C*=f?1:-1}if(o===F||(o===U||o===X)&&a===Ue){D=Y;var B=T&&w.visualViewport?w.visualViewport.width:v[h];g-=B-r.width,g*=f?1:-1}}var $=Object.assign({position:u},d&&yr);if(f){var R;return Object.assign({},$,(R={},R[i]=A?"0":"",R[D]=m?"0":"",R.transform=(w.devicePixelRatio||1)<=1?"translate("+g+"px, "+C+"px)":"translate3d("+g+"px, "+C+"px, 0)",R))}return Object.assign({},$,(t={},t[i]=A?C+"px":"",t[D]=m?g+"px":"",t.transform="",t))}function wr(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,u=n.roundOffsets,f=u===void 0?!0:u,d={placement:te(t.placement),variation:Le(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Nt(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Nt(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Or={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:wr,data:{}},rt={passive:!0};function xr(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,u=s===void 0?!0:s,f=K(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(p){p.addEventListener("scroll",n.update,rt)}),u&&f.addEventListener("resize",n.update,rt),function(){a&&d.forEach(function(p){p.removeEventListener("scroll",n.update,rt)}),u&&f.removeEventListener("resize",n.update,rt)}}var Tr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xr,data:{}},Cr={left:"right",right:"left",bottom:"top",top:"bottom"};function at(e){return e.replace(/left|right|bottom|top/g,function(t){return Cr[t]})}var Ar={start:"end",end:"start"};function Vt(e){return e.replace(/start|end/g,function(t){return Ar[t]})}function Pt(e){var t=K(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Dt(e){return Me(ce(e)).left+Pt(e).scrollLeft}function Er(e){var t=K(e),n=ce(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,u=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,u=r.offsetTop)),{width:o,height:a,x:s+Dt(e),y:u}}function Pr(e){var t,n=ce(e),r=Pt(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=be(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=be(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+Dt(e),f=-r.scrollTop;return re(o||n).direction==="rtl"&&(u+=be(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:u,y:f}}function St(e){var t=re(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function cn(e){return["html","body","#document"].indexOf(ne(e))>=0?e.ownerDocument.body:W(e)&&St(e)?e:cn(lt(e))}function Ve(e,t){var n;t===void 0&&(t=[]);var r=cn(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=K(r),s=o?[a].concat(a.visualViewport||[],St(r)?r:[]):r,u=t.concat(s);return o?u:u.concat(Ve(lt(s)))}function bt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Dr(e){var t=Me(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Ut(e,t){return t===rn?bt(Er(e)):De(t)?Dr(t):bt(Pr(ce(e)))}function Sr(e){var t=Ve(lt(e)),n=["absolute","fixed"].indexOf(re(e).position)>=0,r=n&&W(e)?Xe(e):e;return De(r)?t.filter(function(o){return De(o)&&un(o,r)&&ne(o)!=="body"&&(n?re(o).position!=="static":!0)}):[]}function Mr(e,t,n){var r=t==="clippingParents"?Sr(e):[].concat(t),o=[].concat(r,[n]),a=o[0],s=o.reduce(function(u,f){var d=Ut(e,f);return u.top=be(d.top,u.top),u.right=ut(d.right,u.right),u.bottom=ut(d.bottom,u.bottom),u.left=be(d.left,u.left),u},Ut(e,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function dn(e){var t=e.reference,n=e.element,r=e.placement,o=r?te(r):null,a=r?Le(r):null,s=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,f;switch(o){case U:f={x:s,y:t.y-n.height};break;case X:f={x:s,y:t.y+t.height};break;case Y:f={x:t.x+t.width,y:u};break;case F:f={x:t.x-n.width,y:u};break;default:f={x:t.x,y:t.y}}var d=o?Et(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(a){case Pe:f[d]=f[d]-(t[p]/2-n[p]/2);break;case Ue:f[d]=f[d]+(t[p]/2-n[p]/2);break}}return f}function Fe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.boundary,s=a===void 0?Jn:a,u=n.rootBoundary,f=u===void 0?rn:u,d=n.elementContext,p=d===void 0?He:d,T=n.altBoundary,E=T===void 0?!1:T,b=n.padding,g=b===void 0?0:b,y=ln(typeof g!="number"?g:pn(g,We)),C=p===He?Zn:He,m=e.rects.popper,A=e.elements[E?C:p],D=Mr(De(A)?A:A.contextElement||ce(e.elements.popper),s,f),i=Me(e.elements.reference),w=dn({reference:i,element:m,placement:o}),v=bt(Object.assign({},m,w)),c=p===He?v:i,h={top:D.top-c.top+y.top,bottom:c.bottom-D.bottom+y.bottom,left:D.left-c.left+y.left,right:c.right-D.right+y.right},M=e.modifiersData.offset;if(p===He&&M){var B=M[o];Object.keys(h).forEach(function($){var R=[Y,X].indexOf($)>=0?1:-1,I=[U,X].indexOf($)>=0?"y":"x";h[$]+=B[I]*R})}return h}function Lr(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,u=n.flipVariations,f=n.allowedAutoPlacements,d=f===void 0?on:f,p=Le(r),T=p?u?kt:kt.filter(function(g){return Le(g)===p}):We,E=T.filter(function(g){return d.indexOf(g)>=0});E.length===0&&(E=T);var b=E.reduce(function(g,y){return g[y]=Fe(e,{placement:y,boundary:o,rootBoundary:a,padding:s})[te(y)],g},{});return Object.keys(b).sort(function(g,y){return b[g]-b[y]})}function Rr(e){if(te(e)===Ct)return[];var t=at(e);return[Vt(e),t,Vt(t)]}function Br(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,u=s===void 0?!0:s,f=n.fallbackPlacements,d=n.padding,p=n.boundary,T=n.rootBoundary,E=n.altBoundary,b=n.flipVariations,g=b===void 0?!0:b,y=n.allowedAutoPlacements,C=t.options.placement,m=te(C),A=m===C,D=f||(A||!g?[at(C)]:Rr(C)),i=[C].concat(D).reduce(function(ie,z){return ie.concat(te(z)===Ct?Lr(t,{placement:z,boundary:p,rootBoundary:T,padding:d,flipVariations:g,allowedAutoPlacements:y}):z)},[]),w=t.rects.reference,v=t.rects.popper,c=new Map,h=!0,M=i[0],B=0;B=0,q=V?"width":"height",k=Fe(t,{placement:$,boundary:p,rootBoundary:T,altBoundary:E,padding:d}),H=V?I?Y:F:I?X:U;w[q]>v[q]&&(H=at(H));var j=at(H),J=[];if(a&&J.push(k[R]<=0),u&&J.push(k[H]<=0,k[j]<=0),J.every(function(ie){return ie})){M=$,h=!1;break}c.set($,J)}if(h)for(var Z=g?3:1,de=function(z){var oe=i.find(function(Oe){var ae=c.get(Oe);if(ae)return ae.slice(0,z).every(function(xe){return xe})});if(oe)return M=oe,"break"},Q=Z;Q>0;Q--){var ve=de(Q);if(ve==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}var $r={name:"flip",enabled:!0,phase:"main",fn:Br,requiresIfExists:["offset"],data:{_skip:!1}};function Ft(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function _t(e){return[U,Y,X,F].some(function(t){return e[t]>=0})}function Ir(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Fe(t,{elementContext:"reference"}),u=Fe(t,{altBoundary:!0}),f=Ft(s,r),d=Ft(u,o,a),p=_t(f),T=_t(d);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:T},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":T})}var jr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ir};function kr(e,t,n){var r=te(e),o=[F,U].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],u=a[1];return s=s||0,u=(u||0)*o,[F,Y].indexOf(r)>=0?{x:u,y:s}:{x:s,y:u}}function Hr(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=on.reduce(function(p,T){return p[T]=kr(T,t.rects,a),p},{}),u=s[t.placement],f=u.x,d=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}var Nr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hr};function Vr(e){var t=e.state,n=e.name;t.modifiersData[n]=dn({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var Ur={name:"popperOffsets",enabled:!0,phase:"read",fn:Vr,data:{}};function Fr(e){return e==="x"?"y":"x"}function _r(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,u=s===void 0?!1:s,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,T=n.padding,E=n.tether,b=E===void 0?!0:E,g=n.tetherOffset,y=g===void 0?0:g,C=Fe(t,{boundary:f,rootBoundary:d,padding:T,altBoundary:p}),m=te(t.placement),A=Le(t.placement),D=!A,i=Et(m),w=Fr(i),v=t.modifiersData.popperOffsets,c=t.rects.reference,h=t.rects.popper,M=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,B=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(v){if(a){var I,V=i==="y"?U:F,q=i==="y"?X:Y,k=i==="y"?"height":"width",H=v[i],j=H+C[V],J=H-C[q],Z=b?-h[k]/2:0,de=A===Pe?c[k]:h[k],Q=A===Pe?-h[k]:-c[k],ve=t.elements.arrow,ie=b&&ve?At(ve):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:fn(),oe=z[V],Oe=z[q],ae=Ne(0,c[k],ie[k]),xe=D?c[k]/2-Z-ae-oe-B.mainAxis:de-ae-oe-B.mainAxis,fe=D?-c[k]/2+Z+ae+Oe+B.mainAxis:Q+ae+Oe+B.mainAxis,Te=t.elements.arrow&&Xe(t.elements.arrow),Ye=Te?i==="y"?Te.clientTop||0:Te.clientLeft||0:0,Be=(I=$?.[i])!=null?I:0,qe=H+xe-Be-Ye,ze=H+fe-Be,$e=Ne(b?ut(j,qe):j,H,b?be(J,ze):J);v[i]=$e,R[i]=$e-H}if(u){var Ie,Ge=i==="x"?U:F,Ke=i==="x"?X:Y,se=v[w],le=w==="y"?"height":"width",je=se+C[Ge],me=se-C[Ke],ke=[U,F].indexOf(m)!==-1,Je=(Ie=$?.[w])!=null?Ie:0,Ze=ke?je:se-c[le]-h[le]-Je+B.altAxis,Qe=ke?se+c[le]+h[le]-Je-B.altAxis:me,et=b&&ke?dr(Ze,se,Qe):Ne(b?Ze:je,se,b?Qe:me);v[w]=et,R[w]=et-se}t.modifiersData[r]=R}}var Wr={name:"preventOverflow",enabled:!0,phase:"main",fn:_r,requiresIfExists:["offset"]};function Xr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Yr(e){return e===K(e)||!W(e)?Pt(e):Xr(e)}function qr(e){var t=e.getBoundingClientRect(),n=Se(t.width)/e.offsetWidth||1,r=Se(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zr(e,t,n){n===void 0&&(n=!1);var r=W(t),o=W(t)&&qr(t),a=ce(t),s=Me(e,o),u={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((ne(t)!=="body"||St(a))&&(u=Yr(t)),W(t)?(f=Me(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Dt(a))),{x:s.left+u.scrollLeft-f.x,y:s.top+u.scrollTop-f.y,width:s.width,height:s.height}}function Gr(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(u){if(!n.has(u)){var f=t.get(u);f&&o(f)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function Kr(e){var t=Gr(e);return ur.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Jr(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Zr(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Wt={placement:"bottom",modifiers:[],strategy:"absolute"};function Xt(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function bn(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Yt(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function ri(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function ii(e){return e.split(/\s+/).filter(Boolean)}function ye(e){return[].concat(e)}function qt(e,t){e.indexOf(t)===-1&&e.push(t)}function oi(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function wn(e){return e.split("-")[0]}function Re(e){return[].slice.call(e)}function zt(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function we(){return document.createElement("div")}function pt(e){return["Element","Fragment"].some(function(t){return Mt(e,t)})}function ai(e){return Mt(e,"NodeList")}function Lt(e){return Mt(e,"MouseEvent")}function si(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function ui(e){return pt(e)?[e]:ai(e)?Re(e):Array.isArray(e)?e:Re(document.querySelectorAll(e))}function mt(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function _e(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function On(e){var t,n=ye(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function fi(e,t){var n=t.clientX,r=t.clientY;return e.every(function(o){var a=o.popperRect,s=o.popperState,u=o.props,f=u.interactiveBorder,d=wn(s.placement),p=s.modifiersData.offset;if(!p)return!0;var T=d==="bottom"?p.top.y:0,E=d==="top"?p.bottom.y:0,b=d==="right"?p.left.x:0,g=d==="left"?p.right.x:0,y=a.top-r+T>f,C=r-a.bottom-E>f,m=a.left-n+b>f,A=n-a.right-g>f;return y||C||m||A})}function gt(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[r](o,n)})}function Gt(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var ee={isTouch:!1},Kt=0;function li(){ee.isTouch||(ee.isTouch=!0,window.performance&&document.addEventListener("mousemove",xn))}function xn(){var e=performance.now();e-Kt<20&&(ee.isTouch=!1,document.removeEventListener("mousemove",xn)),Kt=e}function pi(){var e=document.activeElement;if(si(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function ci(){document.addEventListener("touchstart",li,he),window.addEventListener("blur",pi)}var di=typeof window<"u"&&typeof document<"u",vi=di?!!window.msCrypto:!1,mi={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},gi={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},G=Object.assign({appendTo:yn,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},mi,gi),hi=Object.keys(G),yi=function(t){var n=Object.keys(t);n.forEach(function(r){G[r]=t[r]})};function Tn(e){var t=e.plugins||[],n=t.reduce(function(r,o){var a=o.name,s=o.defaultValue;if(a){var u;r[a]=e[a]!==void 0?e[a]:(u=G[a])!=null?u:s}return r},{});return Object.assign({},e,n)}function bi(e,t){var n=t?Object.keys(Tn(Object.assign({},G,{plugins:t}))):hi,r=n.reduce(function(o,a){var s=(e.getAttribute("data-tippy-"+a)||"").trim();if(!s)return o;if(a==="content")o[a]=s;else try{o[a]=JSON.parse(s)}catch{o[a]=s}return o},{});return r}function Jt(e,t){var n=Object.assign({},t,{content:bn(t.content,[e])},t.ignoreAttributes?{}:bi(e,t.plugins));return n.aria=Object.assign({},G.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var wi=function(){return"innerHTML"};function wt(e,t){e[wi()]=t}function Zt(e){var t=we();return e===!0?t.className=gn:(t.className=hn,pt(e)?t.appendChild(e):wt(t,e)),t}function Qt(e,t){pt(t.content)?(wt(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?wt(e,t.content):e.textContent=t.content)}function ft(e){var t=e.firstElementChild,n=Re(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(vn)}),arrow:n.find(function(r){return r.classList.contains(gn)||r.classList.contains(hn)}),backdrop:n.find(function(r){return r.classList.contains(mn)})}}function Cn(e){var t=we(),n=we();n.className=ni,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=we();r.className=vn,r.setAttribute("data-state","hidden"),Qt(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props);function o(a,s){var u=ft(t),f=u.box,d=u.content,p=u.arrow;s.theme?f.setAttribute("data-theme",s.theme):f.removeAttribute("data-theme"),typeof s.animation=="string"?f.setAttribute("data-animation",s.animation):f.removeAttribute("data-animation"),s.inertia?f.setAttribute("data-inertia",""):f.removeAttribute("data-inertia"),f.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?f.setAttribute("role",s.role):f.removeAttribute("role"),(a.content!==s.content||a.allowHTML!==s.allowHTML)&&Qt(d,e.props),s.arrow?p?a.arrow!==s.arrow&&(f.removeChild(p),f.appendChild(Zt(s.arrow))):f.appendChild(Zt(s.arrow)):p&&f.removeChild(p)}return{popper:t,onUpdate:o}}Cn.$$tippy=!0;var Oi=1,it=[],ht=[];function xi(e,t){var n=Jt(e,Object.assign({},G,Tn(zt(t)))),r,o,a,s=!1,u=!1,f=!1,d=!1,p,T,E,b=[],g=Yt(qe,n.interactiveDebounce),y,C=Oi++,m=null,A=oi(n.plugins),D={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},i={id:C,reference:e,popper:we(),popperInstance:m,props:n,state:D,plugins:A,clearDelayTimeouts:Ze,setProps:Qe,setContent:et,show:Pn,hide:Dn,hideWithInteractivity:Sn,enable:ke,disable:Je,unmount:Mn,destroy:Ln};if(!n.render)return i;var w=n.render(i),v=w.popper,c=w.onUpdate;v.setAttribute("data-tippy-root",""),v.id="tippy-"+i.id,i.popper=v,e._tippy=i,v._tippy=i;var h=A.map(function(l){return l.fn(i)}),M=e.hasAttribute("aria-expanded");return Te(),Z(),H(),j("onCreate",[i]),n.showOnCreate&&je(),v.addEventListener("mouseenter",function(){i.props.interactive&&i.state.isVisible&&i.clearDelayTimeouts()}),v.addEventListener("mouseleave",function(){i.props.interactive&&i.props.trigger.indexOf("mouseenter")>=0&&V().addEventListener("mousemove",g)}),i;function B(){var l=i.props.touch;return Array.isArray(l)?l:[l,0]}function $(){return B()[0]==="hold"}function R(){var l;return!!((l=i.props.render)!=null&&l.$$tippy)}function I(){return y||e}function V(){var l=I().parentNode;return l?On(l):document}function q(){return ft(v)}function k(l){return i.state.isMounted&&!i.state.isVisible||ee.isTouch||p&&p.type==="focus"?0:vt(i.props.delay,l?0:1,G.delay)}function H(l){l===void 0&&(l=!1),v.style.pointerEvents=i.props.interactive&&!l?"":"none",v.style.zIndex=""+i.props.zIndex}function j(l,O,P){if(P===void 0&&(P=!0),h.forEach(function(S){S[l]&&S[l].apply(S,O)}),P){var L;(L=i.props)[l].apply(L,O)}}function J(){var l=i.props.aria;if(l.content){var O="aria-"+l.content,P=v.id,L=ye(i.props.triggerTarget||e);L.forEach(function(S){var N=S.getAttribute(O);if(i.state.isVisible)S.setAttribute(O,N?N+" "+P:P);else{var _=N&&N.replace(P,"").trim();_?S.setAttribute(O,_):S.removeAttribute(O)}})}}function Z(){if(!(M||!i.props.aria.expanded)){var l=ye(i.props.triggerTarget||e);l.forEach(function(O){i.props.interactive?O.setAttribute("aria-expanded",i.state.isVisible&&O===I()?"true":"false"):O.removeAttribute("aria-expanded")})}}function de(){V().removeEventListener("mousemove",g),it=it.filter(function(l){return l!==g})}function Q(l){if(!(ee.isTouch&&(f||l.type==="mousedown"))){var O=l.composedPath&&l.composedPath()[0]||l.target;if(!(i.props.interactive&&Gt(v,O))){if(ye(i.props.triggerTarget||e).some(function(P){return Gt(P,O)})){if(ee.isTouch||i.state.isVisible&&i.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[i,l]);i.props.hideOnClick===!0&&(i.clearDelayTimeouts(),i.hide(),u=!0,setTimeout(function(){u=!1}),i.state.isMounted||oe())}}}function ve(){f=!0}function ie(){f=!1}function z(){var l=V();l.addEventListener("mousedown",Q,!0),l.addEventListener("touchend",Q,he),l.addEventListener("touchstart",ie,he),l.addEventListener("touchmove",ve,he)}function oe(){var l=V();l.removeEventListener("mousedown",Q,!0),l.removeEventListener("touchend",Q,he),l.removeEventListener("touchstart",ie,he),l.removeEventListener("touchmove",ve,he)}function Oe(l,O){xe(l,function(){!i.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&O()})}function ae(l,O){xe(l,O)}function xe(l,O){var P=q().box;function L(S){S.target===P&&(gt(P,"remove",L),O())}if(l===0)return O();gt(P,"remove",T),gt(P,"add",L),T=L}function fe(l,O,P){P===void 0&&(P=!1);var L=ye(i.props.triggerTarget||e);L.forEach(function(S){S.addEventListener(l,O,P),b.push({node:S,eventType:l,handler:O,options:P})})}function Te(){$()&&(fe("touchstart",Be,{passive:!0}),fe("touchend",ze,{passive:!0})),ii(i.props.trigger).forEach(function(l){if(l!=="manual")switch(fe(l,Be),l){case"mouseenter":fe("mouseleave",ze);break;case"focus":fe(vi?"focusout":"blur",$e);break;case"focusin":fe("focusout",$e);break}})}function Ye(){b.forEach(function(l){var O=l.node,P=l.eventType,L=l.handler,S=l.options;O.removeEventListener(P,L,S)}),b=[]}function Be(l){var O,P=!1;if(!(!i.state.isEnabled||Ie(l)||u)){var L=((O=p)==null?void 0:O.type)==="focus";p=l,y=l.currentTarget,Z(),!i.state.isVisible&&Lt(l)&&it.forEach(function(S){return S(l)}),l.type==="click"&&(i.props.trigger.indexOf("mouseenter")<0||s)&&i.props.hideOnClick!==!1&&i.state.isVisible?P=!0:je(l),l.type==="click"&&(s=!P),P&&!L&&me(l)}}function qe(l){var O=l.target,P=I().contains(O)||v.contains(O);if(!(l.type==="mousemove"&&P)){var L=le().concat(v).map(function(S){var N,_=S._tippy,Ce=(N=_.popperInstance)==null?void 0:N.state;return Ce?{popperRect:S.getBoundingClientRect(),popperState:Ce,props:n}:null}).filter(Boolean);fi(L,l)&&(de(),me(l))}}function ze(l){var O=Ie(l)||i.props.trigger.indexOf("click")>=0&&s;if(!O){if(i.props.interactive){i.hideWithInteractivity(l);return}me(l)}}function $e(l){i.props.trigger.indexOf("focusin")<0&&l.target!==I()||i.props.interactive&&l.relatedTarget&&v.contains(l.relatedTarget)||me(l)}function Ie(l){return ee.isTouch?$()!==l.type.indexOf("touch")>=0:!1}function Ge(){Ke();var l=i.props,O=l.popperOptions,P=l.placement,L=l.offset,S=l.getReferenceClientRect,N=l.moveTransition,_=R()?ft(v).arrow:null,Ce=S?{getBoundingClientRect:S,contextElement:S.contextElement||I()}:e,Bt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(tt){var Ae=tt.state;if(R()){var Rn=q(),dt=Rn.box;["placement","reference-hidden","escaped"].forEach(function(nt){nt==="placement"?dt.setAttribute("data-placement",Ae.placement):Ae.attributes.popper["data-popper-"+nt]?dt.setAttribute("data-"+nt,""):dt.removeAttribute("data-"+nt)}),Ae.attributes.popper={}}}},ge=[{name:"offset",options:{offset:L}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!N}},Bt];R()&&_&&ge.push({name:"arrow",options:{element:_,padding:3}}),ge.push.apply(ge,O?.modifiers||[]),i.popperInstance=ti(Ce,v,Object.assign({},O,{placement:P,onFirstUpdate:E,modifiers:ge}))}function Ke(){i.popperInstance&&(i.popperInstance.destroy(),i.popperInstance=null)}function se(){var l=i.props.appendTo,O,P=I();i.props.interactive&&l===yn||l==="parent"?O=P.parentNode:O=bn(l,[P]),O.contains(v)||O.appendChild(v),i.state.isMounted=!0,Ge()}function le(){return Re(v.querySelectorAll("[data-tippy-root]"))}function je(l){i.clearDelayTimeouts(),l&&j("onTrigger",[i,l]),z();var O=k(!0),P=B(),L=P[0],S=P[1];ee.isTouch&&L==="hold"&&S&&(O=S),O?r=setTimeout(function(){i.show()},O):i.show()}function me(l){if(i.clearDelayTimeouts(),j("onUntrigger",[i,l]),!i.state.isVisible){oe();return}if(!(i.props.trigger.indexOf("mouseenter")>=0&&i.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(l.type)>=0&&s)){var O=k(!1);O?o=setTimeout(function(){i.state.isVisible&&i.hide()},O):a=requestAnimationFrame(function(){i.hide()})}}function ke(){i.state.isEnabled=!0}function Je(){i.hide(),i.state.isEnabled=!1}function Ze(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(a)}function Qe(l){if(!i.state.isDestroyed){j("onBeforeUpdate",[i,l]),Ye();var O=i.props,P=Jt(e,Object.assign({},O,zt(l),{ignoreAttributes:!0}));i.props=P,Te(),O.interactiveDebounce!==P.interactiveDebounce&&(de(),g=Yt(qe,P.interactiveDebounce)),O.triggerTarget&&!P.triggerTarget?ye(O.triggerTarget).forEach(function(L){L.removeAttribute("aria-expanded")}):P.triggerTarget&&e.removeAttribute("aria-expanded"),Z(),H(),c&&c(O,P),i.popperInstance&&(Ge(),le().forEach(function(L){requestAnimationFrame(L._tippy.popperInstance.forceUpdate)})),j("onAfterUpdate",[i,l])}}function et(l){i.setProps({content:l})}function Pn(){var l=i.state.isVisible,O=i.state.isDestroyed,P=!i.state.isEnabled,L=ee.isTouch&&!i.props.touch,S=vt(i.props.duration,0,G.duration);if(!(l||O||P||L)&&!I().hasAttribute("disabled")&&(j("onShow",[i],!1),i.props.onShow(i)!==!1)){if(i.state.isVisible=!0,R()&&(v.style.visibility="visible"),H(),z(),i.state.isMounted||(v.style.transition="none"),R()){var N=q(),_=N.box,Ce=N.content;mt([_,Ce],0)}E=function(){var ge;if(!(!i.state.isVisible||d)){if(d=!0,v.offsetHeight,v.style.transition=i.props.moveTransition,R()&&i.props.animation){var ct=q(),tt=ct.box,Ae=ct.content;mt([tt,Ae],S),_e([tt,Ae],"visible")}J(),Z(),qt(ht,i),(ge=i.popperInstance)==null||ge.forceUpdate(),j("onMount",[i]),i.props.animation&&R()&&ae(S,function(){i.state.isShown=!0,j("onShown",[i])})}},se()}}function Dn(){var l=!i.state.isVisible,O=i.state.isDestroyed,P=!i.state.isEnabled,L=vt(i.props.duration,1,G.duration);if(!(l||O||P)&&(j("onHide",[i],!1),i.props.onHide(i)!==!1)){if(i.state.isVisible=!1,i.state.isShown=!1,d=!1,s=!1,R()&&(v.style.visibility="hidden"),de(),oe(),H(!0),R()){var S=q(),N=S.box,_=S.content;i.props.animation&&(mt([N,_],L),_e([N,_],"hidden"))}J(),Z(),i.props.animation?R()&&Oe(L,i.unmount):i.unmount()}}function Sn(l){V().addEventListener("mousemove",g),qt(it,g),g(l)}function Mn(){i.state.isVisible&&i.hide(),i.state.isMounted&&(Ke(),le().forEach(function(l){l._tippy.unmount()}),v.parentNode&&v.parentNode.removeChild(v),ht=ht.filter(function(l){return l!==i}),i.state.isMounted=!1,j("onHidden",[i]))}function Ln(){i.state.isDestroyed||(i.clearDelayTimeouts(),i.unmount(),Ye(),delete e._tippy,i.state.isDestroyed=!0,j("onDestroy",[i]))}}function x(e,t){t===void 0&&(t={});var n=G.plugins.concat(t.plugins||[]);ci();var r=Object.assign({},t,{plugins:n}),o=ui(e),a=o.reduce(function(s,u){var f=u&&xi(u,r);return f&&s.push(f),s},[]);return pt(e)?a[0]:a}x.defaultProps=G;x.setDefaultProps=yi;x.currentInput=ee;var Ti=Object.assign({},sn,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}}),Ci=function(t,n){var r;n===void 0&&(n={});var o=t,a=[],s=[],u,f=n.overrides,d=[],p=!1;function T(){s=o.map(function(i){return ye(i.props.triggerTarget||i.reference)}).reduce(function(i,w){return i.concat(w)},[])}function E(){a=o.map(function(i){return i.reference})}function b(i){o.forEach(function(w){i?w.enable():w.disable()})}function g(i){return o.map(function(w){var v=w.setProps;return w.setProps=function(c){v(c),w.reference===u&&i.setProps(c)},function(){w.setProps=v}})}function y(i,w){var v=s.indexOf(w);if(w!==u){u=w;var c=(f||[]).concat("content").reduce(function(h,M){return h[M]=o[v].props[M],h},{});i.setProps(Object.assign({},c,{getReferenceClientRect:typeof c.getReferenceClientRect=="function"?c.getReferenceClientRect:function(){var h;return(h=a[v])==null?void 0:h.getBoundingClientRect()}}))}}b(!1),E(),T();var C={fn:function(){return{onDestroy:function(){b(!0)},onHidden:function(){u=null},onClickOutside:function(v){v.props.showOnCreate&&!p&&(p=!0,u=null)},onShow:function(v){v.props.showOnCreate&&!p&&(p=!0,y(v,a[0]))},onTrigger:function(v,c){y(v,c.currentTarget)}}}},m=x(we(),Object.assign({},ri(n,["overrides"]),{plugins:[C].concat(n.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},n.popperOptions,{modifiers:[].concat(((r=n.popperOptions)==null?void 0:r.modifiers)||[],[Ti])})})),A=m.show;m.show=function(i){if(A(),!u&&i==null)return y(m,a[0]);if(!(u&&i==null)){if(typeof i=="number")return a[i]&&y(m,a[i]);if(o.indexOf(i)>=0){var w=i.reference;return y(m,w)}if(a.indexOf(i)>=0)return y(m,i)}},m.showNext=function(){var i=a[0];if(!u)return m.show(0);var w=a.indexOf(u);m.show(a[w+1]||i)},m.showPrevious=function(){var i=a[a.length-1];if(!u)return m.show(i);var w=a.indexOf(u),v=a[w-1]||i;m.show(v)};var D=m.setProps;return m.setProps=function(i){f=i.overrides||f,D(i)},m.setInstances=function(i){b(!0),d.forEach(function(w){return w()}),o=i,b(!1),E(),T(),d=g(m),m.setProps({triggerTarget:s})},d=g(m),m},Ai={name:"animateFill",defaultValue:!1,fn:function(t){var n;if(!((n=t.props.render)!=null&&n.$$tippy))return{};var r=ft(t.popper),o=r.box,a=r.content,s=t.props.animateFill?Ei():null;return{onCreate:function(){s&&(o.insertBefore(s,o.firstElementChild),o.setAttribute("data-animatefill",""),o.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(s){var f=o.style.transitionDuration,d=Number(f.replace("ms",""));a.style.transitionDelay=Math.round(d/10)+"ms",s.style.transitionDuration=f,_e([s],"visible")}},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&_e([s],"hidden")}}}};function Ei(){var e=we();return e.className=mn,_e([e],"hidden"),e}var Ot={clientX:0,clientY:0},ot=[];function An(e){var t=e.clientX,n=e.clientY;Ot={clientX:t,clientY:n}}function Pi(e){e.addEventListener("mousemove",An)}function Di(e){e.removeEventListener("mousemove",An)}var Si={name:"followCursor",defaultValue:!1,fn:function(t){var n=t.reference,r=On(t.props.triggerTarget||n),o=!1,a=!1,s=!0,u=t.props;function f(){return t.props.followCursor==="initial"&&t.state.isVisible}function d(){r.addEventListener("mousemove",E)}function p(){r.removeEventListener("mousemove",E)}function T(){o=!0,t.setProps({getReferenceClientRect:null}),o=!1}function E(y){var C=y.target?n.contains(y.target):!0,m=t.props.followCursor,A=y.clientX,D=y.clientY,i=n.getBoundingClientRect(),w=A-i.left,v=D-i.top;(C||!t.props.interactive)&&t.setProps({getReferenceClientRect:function(){var h=n.getBoundingClientRect(),M=A,B=D;m==="initial"&&(M=h.left+w,B=h.top+v);var $=m==="horizontal"?h.top:B,R=m==="vertical"?h.right:M,I=m==="horizontal"?h.bottom:B,V=m==="vertical"?h.left:M;return{width:R-V,height:I-$,top:$,right:R,bottom:I,left:V}}})}function b(){t.props.followCursor&&(ot.push({instance:t,doc:r}),Pi(r))}function g(){ot=ot.filter(function(y){return y.instance!==t}),ot.filter(function(y){return y.doc===r}).length===0&&Di(r)}return{onCreate:b,onDestroy:g,onBeforeUpdate:function(){u=t.props},onAfterUpdate:function(C,m){var A=m.followCursor;o||A!==void 0&&u.followCursor!==A&&(g(),A?(b(),t.state.isMounted&&!a&&!f()&&d()):(p(),T()))},onMount:function(){t.props.followCursor&&!a&&(s&&(E(Ot),s=!1),f()||d())},onTrigger:function(C,m){Lt(m)&&(Ot={clientX:m.clientX,clientY:m.clientY}),a=m.type==="focus"},onHidden:function(){t.props.followCursor&&(T(),p(),s=!0)}}}};function Mi(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat((((n=e.popperOptions)==null?void 0:n.modifiers)||[]).filter(function(r){var o=r.name;return o!==t.name}),[t])})}}var Li={name:"inlinePositioning",defaultValue:!1,fn:function(t){var n=t.reference;function r(){return!!t.props.inlinePositioning}var o,a=-1,s=!1,u=[],f={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(b){var g=b.state;r()&&(u.indexOf(g.placement)!==-1&&(u=[]),o!==g.placement&&u.indexOf(g.placement)===-1&&(u.push(g.placement),t.setProps({getReferenceClientRect:function(){return d(g.placement)}})),o=g.placement)}};function d(E){return Ri(wn(E),n.getBoundingClientRect(),Re(n.getClientRects()),a)}function p(E){s=!0,t.setProps(E),s=!1}function T(){s||p(Mi(t.props,f))}return{onCreate:T,onAfterUpdate:T,onTrigger:function(b,g){if(Lt(g)){var y=Re(t.reference.getClientRects()),C=y.find(function(A){return A.left-2<=g.clientX&&A.right+2>=g.clientX&&A.top-2<=g.clientY&&A.bottom+2>=g.clientY}),m=y.indexOf(C);a=m>-1?m:a}},onHidden:function(){a=-1}}}};function Ri(e,t,n,r){if(n.length<2||e===null)return t;if(n.length===2&&r>=0&&n[0].left>n[1].right)return n[r]||t;switch(e){case"top":case"bottom":{var o=n[0],a=n[n.length-1],s=e==="top",u=o.top,f=a.bottom,d=s?o.left:a.left,p=s?o.right:a.right,T=p-d,E=f-u;return{top:u,bottom:f,left:d,right:p,width:T,height:E}}case"left":case"right":{var b=Math.min.apply(Math,n.map(function(v){return v.left})),g=Math.max.apply(Math,n.map(function(v){return v.right})),y=n.filter(function(v){return e==="left"?v.left===b:v.right===g}),C=y[0].top,m=y[y.length-1].bottom,A=b,D=g,i=D-A,w=m-C;return{top:C,bottom:m,left:A,right:D,width:i,height:w}}default:return t}}var Bi={name:"sticky",defaultValue:!1,fn:function(t){var n=t.reference,r=t.popper;function o(){return t.popperInstance?t.popperInstance.state.elements.reference:n}function a(d){return t.props.sticky===!0||t.props.sticky===d}var s=null,u=null;function f(){var d=a("reference")?o().getBoundingClientRect():null,p=a("popper")?r.getBoundingClientRect():null;(d&&en(s,d)||p&&en(u,p))&&t.popperInstance&&t.popperInstance.update(),s=d,u=p,t.state.isMounted&&requestAnimationFrame(f)}return{onMount:function(){t.props.sticky&&f()}}}};function en(e,t){return e&&t?e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left:!0}x.setDefaultProps({render:Cn});x.setDefaultProps({onShow:e=>{if(!e.props.content)return!1}});const $i=e=>e instanceof Object&&"$"in e&&"$el"in e;function En(e,t={},n={mount:!0,appName:"Tippy"}){n=Object.assign({mount:!0,appName:"Tippy"},n);const r=Fn(),o=ue(),a=ue({isEnabled:!1,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1}),s=Wn();let u=null;const f=()=>u||(u=document.createDocumentFragment(),u),d=c=>{let h,M=pe(c)?c.value:c;return Xn(M)?(s.value||(s.value=yt({name:n.appName,setup:()=>()=>pe(c)?c.value:c}),r&&Object.assign(s.value._context,r.appContext),s.value.mount(f())),h=()=>f()):typeof M=="object"?(s.value||(s.value=yt({name:n.appName,setup:()=>()=>Ee(pe(c)?c.value:c)}),r&&Object.assign(s.value._context,r.appContext),s.value.mount(f())),h=()=>f()):h=M,h},p=c=>{let h={};return pe(c)?h=c.value||{}:jt(c)?h={...c}:h={...c},h.content&&(h.content=d(h.content)),h.triggerTarget&&(h.triggerTarget=pe(h.triggerTarget)?h.triggerTarget.value:h.triggerTarget),(!h.plugins||!Array.isArray(h.plugins))&&(h.plugins=[]),h.plugins=h.plugins.filter(M=>M.name!=="vueTippyReactiveState"),h.plugins.push({name:"vueTippyReactiveState",fn:()=>({onCreate(){a.value.isEnabled=!0},onMount(){a.value.isMounted=!0},onShow(){a.value.isMounted=!0,a.value.isVisible=!0},onShown(){a.value.isShown=!0},onHide(){a.value.isMounted=!1,a.value.isVisible=!1},onHidden(){a.value.isShown=!1},onUnmounted(){a.value.isMounted=!1},onDestroy(){a.value.isDestroyed=!0}})}),h},T=()=>{o.value&&o.value.setProps(p(t))},E=()=>{!o.value||!t.content||o.value.setContent(d(t.content))},b=c=>{var h;(h=o.value)===null||h===void 0||h.setContent(d(c))},g=c=>{var h;(h=o.value)===null||h===void 0||h.setProps(p(c))},y=()=>{var c;o.value&&(o.value.destroy(),o.value=void 0),u=null,(c=s.value)===null||c===void 0||c.unmount(),s.value=void 0},C=()=>{var c;(c=o.value)===null||c===void 0||c.show()},m=()=>{var c;(c=o.value)===null||c===void 0||c.hide()},A=()=>{var c;(c=o.value)===null||c===void 0||c.disable(),a.value.isEnabled=!1},D=()=>{var c;(c=o.value)===null||c===void 0||c.enable(),a.value.isEnabled=!0},i=()=>{var c;(c=o.value)===null||c===void 0||c.unmount()},w=()=>{if(!e)return;let c=pe(e)?e.value:e;typeof c=="function"&&(c=c()),$i(c)&&(c=c.$el),c&&(o.value=x(c,p(t)),c.$tippy=v)},v={tippy:o,refresh:T,refreshContent:E,setContent:b,setProps:g,destroy:y,hide:m,show:C,disable:A,enable:D,unmount:i,mount:w,state:a};return n.mount&&(r?r.isMounted?w():Tt(w):w()),r&&_n(()=>{y()}),pe(t)||jt(t)?st(t,T,{immediate:!1}):pe(t.content)&&st(t.content,E,{immediate:!1}),v}function Ii(e,t){const n=ue();return Tt(()=>{const o=(Array.isArray(e)?e.map(a=>a.value):typeof e=="function"?e():e.value).map(a=>a instanceof Element?a._tippy:a).filter(Boolean);n.value=Ci(o,t?{allowHTML:!0,...t}:{allowHTML:!0})}),{singleton:n}}function ji(e){return typeof e=="function"?e():nn(e)}function ki(e){var t,n;const r=ji(e);return(n=(t=r)===null||t===void 0?void 0:t.$el)!==null&&n!==void 0?n:r}const Hi=tn({props:{to:{type:[String,Function]},tag:{type:[String,Object],default:"span"},contentTag:{type:[String,Object],default:"span"},contentClass:{type:String,default:null},appendTo:{default:()=>x.defaultProps.appendTo},aria:{default:()=>x.defaultProps.aria},delay:{default:()=>x.defaultProps.delay},duration:{default:()=>x.defaultProps.duration},getReferenceClientRect:{default:()=>x.defaultProps.getReferenceClientRect},hideOnClick:{type:[Boolean,String],default:()=>x.defaultProps.hideOnClick},ignoreAttributes:{type:Boolean,default:()=>x.defaultProps.ignoreAttributes},interactive:{type:Boolean,default:()=>x.defaultProps.interactive},interactiveBorder:{default:()=>x.defaultProps.interactiveBorder},interactiveDebounce:{default:()=>x.defaultProps.interactiveDebounce},moveTransition:{default:()=>x.defaultProps.moveTransition},offset:{default:()=>x.defaultProps.offset},onAfterUpdate:{default:()=>x.defaultProps.onAfterUpdate},onBeforeUpdate:{default:()=>x.defaultProps.onBeforeUpdate},onCreate:{default:()=>x.defaultProps.onCreate},onDestroy:{default:()=>x.defaultProps.onDestroy},onHidden:{default:()=>x.defaultProps.onHidden},onHide:{default:()=>x.defaultProps.onHide},onMount:{default:()=>x.defaultProps.onMount},onShow:{default:()=>x.defaultProps.onShow},onShown:{default:()=>x.defaultProps.onShown},onTrigger:{default:()=>x.defaultProps.onTrigger},onUntrigger:{default:()=>x.defaultProps.onUntrigger},onClickOutside:{default:()=>x.defaultProps.onClickOutside},placement:{default:()=>x.defaultProps.placement},plugins:{default:()=>x.defaultProps.plugins},popperOptions:{default:()=>x.defaultProps.popperOptions},render:{default:()=>x.defaultProps.render},showOnCreate:{type:Boolean,default:()=>x.defaultProps.showOnCreate},touch:{type:[Boolean,String,Array],default:()=>x.defaultProps.touch},trigger:{default:()=>x.defaultProps.trigger},triggerTarget:{default:()=>x.defaultProps.triggerTarget},animateFill:{type:Boolean,default:()=>x.defaultProps.animateFill},followCursor:{type:[Boolean,String],default:()=>x.defaultProps.followCursor},inlinePositioning:{type:Boolean,default:()=>x.defaultProps.inlinePositioning},sticky:{type:[Boolean,String],default:()=>x.defaultProps.sticky},allowHTML:{type:Boolean,default:()=>x.defaultProps.allowHTML},animation:{default:()=>x.defaultProps.animation},arrow:{default:()=>x.defaultProps.arrow},content:{default:()=>x.defaultProps.content},inertia:{default:()=>x.defaultProps.inertia},maxWidth:{default:()=>x.defaultProps.maxWidth},role:{default:()=>x.defaultProps.role},theme:{default:()=>x.defaultProps.theme},zIndex:{default:()=>x.defaultProps.zIndex}},emits:["state"],setup(e,{slots:t,emit:n,expose:r}){const o=ue(),a=ue(),s=ue(),u=ue(!1),f=()=>{let b={...e};for(const g of["to","tag","contentTag","contentClass"])b.hasOwnProperty(g)&&delete b[g];return b};let d=()=>ki(o);e.to&&(typeof Element<"u"&&e.to instanceof Element?d=()=>e.to:e.to==="parent"?d=()=>{let b=o.value;return b||(b=o.value=a.value.parentElement),b}:(typeof e.to=="string"||e.to instanceof String)&&(d=()=>document.querySelector(e.to)));const p=En(d,f());let T=t.content;!T&&e.to==="parent"&&(T=t.default),Tt(()=>{u.value=!0,Vn(()=>{T&&p.setContent(()=>s.value)})}),st(p.state,()=>{n("state",nn(p.state))},{immediate:!0,deep:!0}),st(()=>e,()=>{p.setProps(f()),T&&p.setContent(()=>s.value)},{deep:!0});let E=Un({elem:o,contentElem:s,mounted:u,...p});return r(E),()=>{const b=(typeof e.contentTag=="string",e.contentTag),g=T?Ee(b,{ref:s,style:{display:u.value?"inherit":"none"},class:e.contentClass},T(E)):null;if(e.to==="parent"){const m=[];if(!o.value){const A=Ee("span",{ref:a,"data-v-tippy":"",style:{display:"none"}});m.push(A)}return g&&m.push(g),m}const y=t.default?t.default(E):[];if(!e.tag){const m=Ee(y[0],{ref:o,"data-v-tippy":""});return g?[m,g]:m}const C=(typeof e.tag=="string",e.tag);return Ee(C,{ref:o,"data-v-tippy":""},g?[y,g]:y)}}}),Ni=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let xt={};Object.keys(x.defaultProps).forEach(e=>{Ni.includes(e)?xt[e]={type:Boolean,default:function(){return x.defaultProps[e]}}:xt[e]={default:function(){return x.defaultProps[e]}}});const Vi=tn({props:xt,setup(e){const t=ue([]),{singleton:n}=Ii(t,e);return{instances:t,singleton:n}},mounted(){var e;const n=this.$el.parentElement.querySelectorAll("[data-v-tippy]");this.instances=Array.from(n).map(r=>r._tippy).filter(Boolean),(e=this.singleton)===null||e===void 0||e.setInstances(this.instances)},render(){let e=this.$slots.default?this.$slots.default():[];return Ee(()=>e)}}),Ui={mounted(e,t,n){const r=typeof t.value=="string"?{content:t.value}:t.value||{},o=Object.keys(t.modifiers||{}),a=o.find(u=>u!=="arrow"),s=o.findIndex(u=>u==="arrow")!==-1;a&&(r.placement=r.placement||a),s&&(r.arrow=r.arrow!==void 0?r.arrow:!0),n.props&&n.props.onTippyShow&&(r.onShow=function(...u){var f;return(f=n.props)===null||f===void 0?void 0:f.onTippyShow(...u)}),n.props&&n.props.onTippyShown&&(r.onShown=function(...u){var f;return(f=n.props)===null||f===void 0?void 0:f.onTippyShown(...u)}),n.props&&n.props.onTippyHidden&&(r.onHidden=function(...u){var f;return(f=n.props)===null||f===void 0?void 0:f.onTippyHidden(...u)}),n.props&&n.props.onTippyHide&&(r.onHide=function(...u){var f;return(f=n.props)===null||f===void 0?void 0:f.onTippyHide(...u)}),n.props&&n.props.onTippyMount&&(r.onMount=function(...u){var f;return(f=n.props)===null||f===void 0?void 0:f.onTippyMount(...u)}),e.getAttribute("title")&&!r.content&&(r.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!r.content&&(r.content=e.getAttribute("content")),En(e,r)},unmounted(e){e.$tippy?e.$tippy.destroy():e._tippy&&e._tippy.destroy()},updated(e,t){const n=typeof t.value=="string"?{content:t.value}:t.value||{};n.content||(n.content=null),e.getAttribute("title")&&!n.content&&(n.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!n.content&&(n.content=e.getAttribute("content")),e.$tippy?e.$tippy.setProps(n||{}):e._tippy&&e._tippy.setProps(n||{})}},Fi={install(e,t={}){x.setDefaultProps(t.defaultProps||{}),e.directive(t.directive||"tippy",Ui),e.component(t.component||"tippy",Hi),e.component(t.componentSingleton||"tippy-singleton",Vi)}},_i=x.setDefaultProps;_i({ignoreAttributes:!0,plugins:[Bi,Li,Si,Ai]});Bn.add($n);const Rt=yt({setup(){return{plan:ue(planData)}},components:{pev2:Yn,created:Kn,themeSwitcher:qn}});Rt.use(Fi,{defaultProps:{theme:"light"}});Rt.component("font-awesome-icon",In);Rt.mount("#app"); diff --git a/app/static/dist/assets/themeSwitcher-D0Vjumho.js b/app/static/dist/assets/themeSwitcher-D0Vjumho.js deleted file mode 100644 index 835cd9c..0000000 --- a/app/static/dist/assets/themeSwitcher-D0Vjumho.js +++ /dev/null @@ -1 +0,0 @@ -import{M as oe,N as Q,a as G,O as re,o as U,n as X,x as $,w as x,P as Y,Q as ae,v as ie,m as _,J as R,R as M,u as P,S as se,c as ue,e as le,f as ce,j as de}from"./vue-CPYrH9CX.js";import{l as fe,c as me,d as pe,F as he}from"./about-4AxB30-u.js";const B=new WeakMap,ve=(...e)=>{var t;const n=e[0],r=(t=$())===null||t===void 0?void 0:t.proxy,o=r??ae();if(o==null&&!Y())throw new Error("injectLocal must be called in setup");return o&&B.has(o)&&n in B.get(o)?B.get(o)[n]:ie(...e)},ye=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ge=Object.prototype.toString,Se=e=>ge.call(e)==="[object Object]",we=()=>{};function Z(...e){if(e.length!==1)return oe(...e);const t=e[0];return typeof t=="function"?Q(re(()=>({get:t,set:we}))):G(t)}function be(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}const q=e=>e();function ke(e=q,t={}){const{initialState:n="active"}=t,r=Z(n==="active");function o(){r.value=!1}function i(){r.value=!0}const s=(...f)=>{r.value&&e(...f)};return{isActive:Q(r),pause:o,resume:i,eventFilter:s}}function H(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function J(e){return Array.isArray(e)?e:[e]}function Ce(e){return $()}function Me(e,t,n={}){const{eventFilter:r=q,...o}=n;return x(e,be(r,t),o)}function Ae(e,t,n={}){const{eventFilter:r,initialState:o="active",...i}=n,{eventFilter:s,pause:f,resume:S,isActive:c}=ke(r,{initialState:o});return{stop:Me(e,t,{...i,eventFilter:s}),pause:f,resume:S,isActive:c}}const Ee=Ae;function ee(e,t=!0,n){Ce()?U(e,n):t?e():X(e)}function Te(e,t,n){return x(e,t,{...n,immediate:!0})}const O=ye?window:void 0;function te(e){var t;const n=M(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function I(...e){const t=(r,o,i,s)=>(r.addEventListener(o,i,s),()=>r.removeEventListener(o,i,s)),n=_(()=>{const r=J(M(e[0])).filter(o=>o!=null);return r.every(o=>typeof o!="string")?r:void 0});return Te(()=>{var r,o;return[(r=(o=n.value)===null||o===void 0?void 0:o.map(i=>te(i)))!==null&&r!==void 0?r:[O].filter(i=>i!=null),J(M(n.value?e[1]:e[0])),J(P(n.value?e[2]:e[1])),M(n.value?e[3]:e[2])]},([r,o,i,s],f,S)=>{if(!r?.length||!o?.length||!i?.length)return;const c=Se(s)?{...s}:s,C=r.flatMap(l=>o.flatMap(w=>i.map(d=>t(l,w,d,c))));S(()=>{C.forEach(l=>l())})},{flush:"post"})}function Ne(){const e=R(!1),t=$();return t&&U(()=>{e.value=!0},t),e}function Oe(e){const t=Ne();return _(()=>(t.value,!!e()))}const _e=Symbol("vueuse-ssr-width");function We(){const e=Y()?ve(_e,null):null;return typeof e=="number"?e:void 0}function je(e,t={}){const{window:n=O,ssrWidth:r=We()}=t,o=Oe(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=R(typeof r=="number"),s=R(),f=R(!1),S=c=>{f.value=c.matches};return se(()=>{if(i.value){i.value=!o.value,f.value=M(e).split(",").some(c=>{const C=c.includes("not all"),l=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let d=!!(l||w);return l&&d&&(d=r>=H(l[1])),w&&d&&(d=r<=H(w[1])),C?!d:d});return}o.value&&(s.value=n.matchMedia(M(e)),f.value=s.value.matches)}),I(s,"change",S,{passive:!0}),_(()=>f.value)}const V=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},D="__vueuse_ssr_handlers__",Fe=ze();function ze(){return D in V||(V[D]=V[D]||{}),V[D]}function ne(e,t){return Fe[e]||t}function Le(e){return je("(prefers-color-scheme: dark)",e)}function Re(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Ve={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},K="vueuse-storage";function De(e,t,n,r={}){var o;const{flush:i="pre",deep:s=!0,listenToStorageChanges:f=!0,writeDefaults:S=!0,mergeDefaults:c=!1,shallow:C,window:l=O,eventFilter:w,onError:d=a=>{console.error(a)},initOnMounted:b}=r,p=(C?R:G)(typeof t=="function"?t():t),y=_(()=>M(e));if(!n)try{n=ne("getDefaultStorage",()=>O?.localStorage)()}catch(a){d(a)}if(!n)return p;const g=M(t),z=Re(g),A=(o=r.serializer)!==null&&o!==void 0?o:Ve[z],{pause:m,resume:k}=Ee(p,a=>E(a),{flush:i,deep:s,eventFilter:w});x(y,()=>h(),{flush:i});let W=!1;const j=a=>{b&&!W||h(a)},L=a=>{b&&!W||N(a)};l&&f&&(n instanceof Storage?I(l,"storage",j,{passive:!0}):I(l,K,L)),b?ee(()=>{W=!0,h()}):h();function F(a,u){if(l){const v={key:y.value,oldValue:a,newValue:u,storageArea:n};l.dispatchEvent(n instanceof Storage?new StorageEvent("storage",v):new CustomEvent(K,{detail:v}))}}function E(a){try{const u=n.getItem(y.value);if(a==null)F(u,null),n.removeItem(y.value);else{const v=A.write(a);u!==v&&(n.setItem(y.value,v),F(u,v))}}catch(u){d(u)}}function T(a){const u=a?a.newValue:n.getItem(y.value);if(u==null)return S&&g!=null&&n.setItem(y.value,A.write(g)),g;if(!a&&c){const v=A.read(u);return typeof c=="function"?c(v,g):z==="object"&&!Array.isArray(v)?{...g,...v}:v}else return typeof u!="string"?u:A.read(u)}function h(a){if(!(a&&a.storageArea!==n)){if(a&&a.key==null){p.value=g;return}if(!(a&&a.key!==y.value)){m();try{const u=A.write(p.value);(a===void 0||a?.newValue!==u)&&(p.value=T(a))}catch(u){d(u)}finally{a?X(k):k()}}}}function N(a){h(a.detail)}return p}const Pe="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function xe(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:o=O,storage:i,storageKey:s="vueuse-color-scheme",listenToStorageChanges:f=!0,storageRef:S,emitAuto:c,disableTransition:C=!0}=e,l={auto:"",light:"light",dark:"dark",...e.modes||{}},w=Le({window:o}),d=_(()=>w.value?"dark":"light"),b=S||(s==null?Z(r):De(s,r,i,{window:o,listenToStorageChanges:f})),p=_(()=>b.value==="auto"?d.value:b.value),y=ne("updateHTMLAttrs",(m,k,W)=>{const j=typeof m=="string"?o?.document.querySelector(m):te(m);if(!j)return;const L=new Set,F=new Set;let E=null;if(k==="class"){const h=W.split(/\s/g);Object.values(l).flatMap(N=>(N||"").split(/\s/g)).filter(Boolean).forEach(N=>{h.includes(N)?L.add(N):F.add(N)})}else E={key:k,value:W};if(L.size===0&&F.size===0&&E===null)return;let T;C&&(T=o.document.createElement("style"),T.appendChild(document.createTextNode(Pe)),o.document.head.appendChild(T));for(const h of L)j.classList.add(h);for(const h of F)j.classList.remove(h);E&&j.setAttribute(E.key,E.value),C&&(o.getComputedStyle(T).opacity,document.head.removeChild(T))});function g(m){var k;y(t,n,(k=l[m])!==null&&k!==void 0?k:m)}function z(m){e.onChanged?e.onChanged(m,g):g(m)}x(p,z,{flush:"post",immediate:!0}),ee(()=>z(p.value));const A=_({get(){return c?b.value:p.value},set(m){b.value=m}});return Object.assign(A,{store:b,system:d,state:p})}const Be={class:"nav-item ms-2"},Je=["title"],He={__name:"themeSwitcher",setup(e){fe.add(me,pe);const{store:t}=xe({attribute:"data-bs-theme",storageKey:"theme",initialValue:"auto"});function n(){t.value=t.value==="dark"?"light":"dark"}return(r,o)=>(le(),ue("li",Be,[ce("a",{class:"nav-link",href:"#",onClick:n,title:P(t)==="dark"?"Switch to light mode":"Switch to dark mode"},[de(P(he),{icon:P(t)==="dark"?"moon":"sun"},null,8,["icon"])],8,Je)]))}};export{He as _};