@yoast/ai-insights-client 1.4.119 → 1.4.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";var Jg=Object.defineProperty;var od=t=>{throw TypeError(t)};var Zg=(t,e,n)=>e in t?Jg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var ce=(t,e,n)=>Zg(t,typeof e!="symbol"?e+"":e,n),sl=(t,e,n)=>e.has(t)||od("Cannot "+n);var R=(t,e,n)=>(sl(t,e,"read from private field"),n?n.call(t):e.get(t)),re=(t,e,n)=>e.has(t)?od("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),$=(t,e,n,r)=>(sl(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),xe=(t,e,n)=>(sl(t,e,"access private method"),n);var Aa=(t,e,n,r)=>({set _(i){$(t,e,i,n)},get _(){return R(t,e,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),C=require("@yoast/ui-library"),F=require("react"),Uy=require("react-dom");function $g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const M=$g(F);function Oo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var $i={},ld;function ev(){if(ld)return $i;ld=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.parse=a,$i.serialize=u;const t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,e=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,s=(()=>{const p=function(){};return p.prototype=Object.create(null),p})();function a(p,h){const y=new s,m=p.length;if(m<2)return y;const v=(h==null?void 0:h.decode)||c;let g=0;do{const A=p.indexOf("=",g);if(A===-1)break;const E=p.indexOf(";",g),j=E===-1?m:E;if(A>j){g=p.lastIndexOf(";",A-1)+1;continue}const S=o(p,g,A),b=l(p,A,S),w=p.slice(S,b);if(y[w]===void 0){let x=o(p,A+1,j),N=l(p,j,x);const _=v(p.slice(x,N));y[w]=_}g=j+1}while(g<m);return y}function o(p,h,y){do{const m=p.charCodeAt(h);if(m!==32&&m!==9)return h}while(++h<y);return y}function l(p,h,y){for(;h>y;){const m=p.charCodeAt(--h);if(m!==32&&m!==9)return h+1}return y}function u(p,h,y){const m=(y==null?void 0:y.encode)||encodeURIComponent;if(!t.test(p))throw new TypeError(`argument name is invalid: ${p}`);const v=m(h);if(!e.test(v))throw new TypeError(`argument val is invalid: ${h}`);let g=p+"="+v;if(!y)return g;if(y.maxAge!==void 0){if(!Number.isInteger(y.maxAge))throw new TypeError(`option maxAge is invalid: ${y.maxAge}`);g+="; Max-Age="+y.maxAge}if(y.domain){if(!n.test(y.domain))throw new TypeError(`option domain is invalid: ${y.domain}`);g+="; Domain="+y.domain}if(y.path){if(!r.test(y.path))throw new TypeError(`option path is invalid: ${y.path}`);g+="; Path="+y.path}if(y.expires){if(!f(y.expires)||!Number.isFinite(y.expires.valueOf()))throw new TypeError(`option expires is invalid: ${y.expires}`);g+="; Expires="+y.expires.toUTCString()}if(y.httpOnly&&(g+="; HttpOnly"),y.secure&&(g+="; Secure"),y.partitioned&&(g+="; Partitioned"),y.priority)switch(typeof y.priority=="string"?y.priority.toLowerCase():void 0){case"low":g+="; Priority=Low";break;case"medium":g+="; Priority=Medium";break;case"high":g+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${y.priority}`)}if(y.sameSite)switch(typeof y.sameSite=="string"?y.sameSite.toLowerCase():y.sameSite){case!0:case"strict":g+="; SameSite=Strict";break;case"lax":g+="; SameSite=Lax";break;case"none":g+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${y.sameSite}`)}return g}function c(p){if(p.indexOf("%")===-1)return p;try{return decodeURIComponent(p)}catch(h){return p}}function f(p){return i.call(p)==="[object Date]"}return $i}ev();/**
1
+ "use strict";var Av=Object.defineProperty;var gd=t=>{throw TypeError(t)};var Sv=(t,e,n)=>e in t?Av(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var de=(t,e,n)=>Sv(t,typeof e!="symbol"?e+"":e,n),ll=(t,e,n)=>e.has(t)||gd("Cannot "+n);var _=(t,e,n)=>(ll(t,e,"read from private field"),n?n.call(t):e.get(t)),ae=(t,e,n)=>e.has(t)?gd("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),ee=(t,e,n,r)=>(ll(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Ae=(t,e,n)=>(ll(t,e,"access private method"),n);var Sa=(t,e,n,r)=>({set _(i){ee(t,e,i,n)},get _(){return _(t,e,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),k=require("@yoast/ui-library"),F=require("react"),em=require("react-dom");function Cv(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const L=Cv(F);function To(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ns={},vd;function kv(){if(vd)return ns;vd=1,Object.defineProperty(ns,"__esModule",{value:!0}),ns.parse=a,ns.serialize=u;const t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,e=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,s=(()=>{const p=function(){};return p.prototype=Object.create(null),p})();function a(p,h){const y=new s,m=p.length;if(m<2)return y;const v=(h==null?void 0:h.decode)||c;let g=0;do{const A=p.indexOf("=",g);if(A===-1)break;const E=p.indexOf(";",g),C=E===-1?m:E;if(A>C){g=p.lastIndexOf(";",A-1)+1;continue}const S=o(p,g,A),b=l(p,A,S),w=p.slice(S,b);if(y[w]===void 0){let x=o(p,A+1,C),N=l(p,C,x);const D=v(p.slice(x,N));y[w]=D}g=C+1}while(g<m);return y}function o(p,h,y){do{const m=p.charCodeAt(h);if(m!==32&&m!==9)return h}while(++h<y);return y}function l(p,h,y){for(;h>y;){const m=p.charCodeAt(--h);if(m!==32&&m!==9)return h+1}return y}function u(p,h,y){const m=(y==null?void 0:y.encode)||encodeURIComponent;if(!t.test(p))throw new TypeError(`argument name is invalid: ${p}`);const v=m(h);if(!e.test(v))throw new TypeError(`argument val is invalid: ${h}`);let g=p+"="+v;if(!y)return g;if(y.maxAge!==void 0){if(!Number.isInteger(y.maxAge))throw new TypeError(`option maxAge is invalid: ${y.maxAge}`);g+="; Max-Age="+y.maxAge}if(y.domain){if(!n.test(y.domain))throw new TypeError(`option domain is invalid: ${y.domain}`);g+="; Domain="+y.domain}if(y.path){if(!r.test(y.path))throw new TypeError(`option path is invalid: ${y.path}`);g+="; Path="+y.path}if(y.expires){if(!f(y.expires)||!Number.isFinite(y.expires.valueOf()))throw new TypeError(`option expires is invalid: ${y.expires}`);g+="; Expires="+y.expires.toUTCString()}if(y.httpOnly&&(g+="; HttpOnly"),y.secure&&(g+="; Secure"),y.partitioned&&(g+="; Partitioned"),y.priority)switch(typeof y.priority=="string"?y.priority.toLowerCase():void 0){case"low":g+="; Priority=Low";break;case"medium":g+="; Priority=Medium";break;case"high":g+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${y.priority}`)}if(y.sameSite)switch(typeof y.sameSite=="string"?y.sameSite.toLowerCase():y.sameSite){case!0:case"strict":g+="; SameSite=Strict";break;case"lax":g+="; SameSite=Lax";break;case"none":g+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${y.sameSite}`)}return g}function c(p){if(p.indexOf("%")===-1)return p;try{return decodeURIComponent(p)}catch(h){return p}}function f(p){return i.call(p)==="[object Date]"}return ns}kv();/**
2
2
  * react-router v7.6.3
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
@@ -7,98 +7,98 @@
7
7
  * LICENSE.md file in the root directory of this source tree.
8
8
  *
9
9
  * @license MIT
10
- */function tv(t={}){let{initialEntries:e=["/"],initialIndex:n,v5Compat:r=!1}=t,i;i=e.map((h,y)=>c(h,typeof h=="string"?null:h.state,y===0?"default":void 0));let s=l(n==null?i.length-1:n),a="POP",o=null;function l(h){return Math.min(Math.max(h,0),i.length-1)}function u(){return i[s]}function c(h,y=null,m){let v=rv(i?u().pathname:"/",h,y,m);return sn(v.pathname.charAt(0)==="/",`relative pathnames are not supported in memory history: ${JSON.stringify(h)}`),v}function f(h){return typeof h=="string"?h:ao(h)}return{get index(){return s},get action(){return a},get location(){return u()},createHref:f,createURL(h){return new URL(f(h),"http://localhost")},encodeLocation(h){let y=typeof h=="string"?si(h):h;return{pathname:y.pathname||"",search:y.search||"",hash:y.hash||""}},push(h,y){a="PUSH";let m=c(h,y);s+=1,i.splice(s,i.length,m),r&&o&&o({action:a,location:m,delta:1})},replace(h,y){a="REPLACE";let m=c(h,y);i[s]=m,r&&o&&o({action:a,location:m,delta:0})},go(h){a="POP";let y=l(s+h),m=i[y];s=y,o&&o({action:a,location:m,delta:h})},listen(h){return o=h,()=>{o=null}}}}function He(t,e){if(t===!1||t===null||typeof t=="undefined")throw new Error(e)}function sn(t,e){if(!t){typeof console!="undefined"&&console.warn(e);try{throw new Error(e)}catch(n){}}}function nv(){return Math.random().toString(36).substring(2,10)}function rv(t,e,n=null,r){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?si(e):e,state:n,key:e&&e.key||r||nv()}}function ao({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function si(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function Hy(t,e,n="/"){return iv(t,e,n,!1)}function iv(t,e,n,r){let i=typeof e=="string"?si(e):e,s=Xn(i.pathname||"/",n);if(s==null)return null;let a=qy(t);sv(a);let o=null;for(let l=0;o==null&&l<a.length;++l){let u=Qy(s);o=pv(a[l],u,r)}return o}function qy(t,e=[],n=[],r=""){let i=(s,a,o)=>{let l={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};l.relativePath.startsWith("/")&&(He(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length));let u=Vn([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(He(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),qy(s.children,e,c,u)),!(s.path==null&&!s.index)&&e.push({path:u,score:fv(u,s.index),routesMeta:c})};return t.forEach((s,a)=>{var o;if(s.path===""||!((o=s.path)!=null&&o.includes("?")))i(s,a);else for(let l of Wy(s.path))i(s,a,l)}),e}function Wy(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let a=Wy(r.join("/")),o=[];return o.push(...a.map(l=>l===""?s:[s,l].join("/"))),i&&o.push(...a),o.map(l=>t.startsWith("/")&&l===""?"/":l)}function sv(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:hv(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var av=/^:[\w-]+$/,ov=3,lv=2,uv=1,cv=10,dv=-2,ud=t=>t==="*";function fv(t,e){let n=t.split("/"),r=n.length;return n.some(ud)&&(r+=dv),e&&(r+=lv),n.filter(i=>!ud(i)).reduce((i,s)=>i+(av.test(s)?ov:s===""?uv:cv),r)}function hv(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function pv(t,e,n=!1){let{routesMeta:r}=t,i={},s="/",a=[];for(let o=0;o<r.length;++o){let l=r[o],u=o===r.length-1,c=s==="/"?e:e.slice(s.length)||"/",f=Ri({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),p=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Ri({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!f)return null;Object.assign(i,f.params),a.push({params:i,pathname:Vn([s,f.pathname]),pathnameBase:bv(Vn([s,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(s=Vn([s,f.pathnameBase]))}return a}function Ri(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=yv(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce((u,{paramName:c,isOptional:f},p)=>{if(c==="*"){let y=o[p]||"";a=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const h=o[p];return f&&!h?u[c]=void 0:u[c]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:a,pattern:t}}function yv(t,e=!1,n=!0){sn(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function Qy(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return sn(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function Xn(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function mv(t,e="/"){let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?si(t):t;return{pathname:n?n.startsWith("/")?n:gv(n,e):e,search:xv(r),hash:wv(i)}}function gv(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function al(t,e,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function vv(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function uc(t){let e=vv(t);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function cc(t,e,n,r=!1){let i;typeof t=="string"?i=si(t):(i={...t},He(!i.pathname||!i.pathname.includes("?"),al("?","pathname","search",i)),He(!i.pathname||!i.pathname.includes("#"),al("#","pathname","hash",i)),He(!i.search||!i.search.includes("#"),al("#","search","hash",i)));let s=t===""||i.pathname==="",a=s?"/":i.pathname,o;if(a==null)o=n;else{let f=e.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}o=f>=0?e[f]:"/"}let l=mv(i,o),u=a&&a!=="/"&&a.endsWith("/"),c=(s||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var Vn=t=>t.join("/").replace(/\/\/+/g,"/"),bv=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),xv=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,wv=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Av(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var Gy=["POST","PUT","PATCH","DELETE"];new Set(Gy);var Sv=["GET",...Gy];new Set(Sv);var Ui=M.createContext(null);Ui.displayName="DataRouter";var Po=M.createContext(null);Po.displayName="DataRouterState";var Yy=M.createContext({isTransitioning:!1});Yy.displayName="ViewTransition";var Cv=M.createContext(new Map);Cv.displayName="Fetchers";var kv=M.createContext(null);kv.displayName="Await";var fn=M.createContext(null);fn.displayName="Navigation";var la=M.createContext(null);la.displayName="Location";var an=M.createContext({outlet:null,matches:[],isDataRoute:!1});an.displayName="Route";var dc=M.createContext(null);dc.displayName="RouteError";function jv(t,{relative:e}={}){He(ai(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=M.useContext(fn),{hash:i,pathname:s,search:a}=ua(t,{relative:e}),o=s;return n!=="/"&&(o=s==="/"?n:Vn([n,s])),r.createHref({pathname:o,search:a,hash:i})}function ai(){return M.useContext(la)!=null}function xt(){return He(ai(),"useLocation() may be used only in the context of a <Router> component."),M.useContext(la).location}function Sa(t){He(ai(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:e}=xt();return M.useMemo(()=>Ri(t,Qy(e)),[e,t])}var Vy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ky(t){M.useContext(fn).static||M.useLayoutEffect(t)}function ht(){let{isDataRoute:t}=M.useContext(an);return t?Uv():Ev()}function Ev(){He(ai(),"useNavigate() may be used only in the context of a <Router> component.");let t=M.useContext(Ui),{basename:e,navigator:n}=M.useContext(fn),{matches:r}=M.useContext(an),{pathname:i}=xt(),s=JSON.stringify(uc(r)),a=M.useRef(!1);return Ky(()=>{a.current=!0}),M.useCallback((l,u={})=>{if(sn(a.current,Vy),!a.current)return;if(typeof l=="number"){n.go(l);return}let c=cc(l,JSON.parse(s),i,u.relative==="path");t==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:Vn([e,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[e,n,s,i,t])}var Ov=M.createContext(null);function Pv(t){let e=M.useContext(an).outlet;return e&&M.createElement(Ov.Provider,{value:t},e)}function To(){let{matches:t}=M.useContext(an),e=t[t.length-1];return e?e.params:{}}function ua(t,{relative:e}={}){let{matches:n}=M.useContext(an),{pathname:r}=xt(),i=JSON.stringify(uc(n));return M.useMemo(()=>cc(t,JSON.parse(i),r,e==="path"),[t,i,r,e])}function Tv(t,e){return Xy(t,e)}function Xy(t,e,n,r){var g;He(ai(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=M.useContext(fn),{matches:s}=M.useContext(an),a=s[s.length-1],o=a?a.params:{},l=a?a.pathname:"/",u=a?a.pathnameBase:"/",c=a&&a.route;{let A=c&&c.path||"";Jy(l,!c||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
+ */function jv(t={}){let{initialEntries:e=["/"],initialIndex:n,v5Compat:r=!1}=t,i;i=e.map((h,y)=>c(h,typeof h=="string"?null:h.state,y===0?"default":void 0));let s=l(n==null?i.length-1:n),a="POP",o=null;function l(h){return Math.min(Math.max(h,0),i.length-1)}function u(){return i[s]}function c(h,y=null,m){let v=Ov(i?u().pathname:"/",h,y,m);return sn(v.pathname.charAt(0)==="/",`relative pathnames are not supported in memory history: ${JSON.stringify(h)}`),v}function f(h){return typeof h=="string"?h:oo(h)}return{get index(){return s},get action(){return a},get location(){return u()},createHref:f,createURL(h){return new URL(f(h),"http://localhost")},encodeLocation(h){let y=typeof h=="string"?ai(h):h;return{pathname:y.pathname||"",search:y.search||"",hash:y.hash||""}},push(h,y){a="PUSH";let m=c(h,y);s+=1,i.splice(s,i.length,m),r&&o&&o({action:a,location:m,delta:1})},replace(h,y){a="REPLACE";let m=c(h,y);i[s]=m,r&&o&&o({action:a,location:m,delta:0})},go(h){a="POP";let y=l(s+h),m=i[y];s=y,o&&o({action:a,location:m,delta:h})},listen(h){return o=h,()=>{o=null}}}}function He(t,e){if(t===!1||t===null||typeof t=="undefined")throw new Error(e)}function sn(t,e){if(!t){typeof console!="undefined"&&console.warn(e);try{throw new Error(e)}catch(n){}}}function Ev(){return Math.random().toString(36).substring(2,10)}function Ov(t,e,n=null,r){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?ai(e):e,state:n,key:e&&e.key||r||Ev()}}function oo({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function ai(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function tm(t,e,n="/"){return Pv(t,e,n,!1)}function Pv(t,e,n,r){let i=typeof e=="string"?ai(e):e,s=er(i.pathname||"/",n);if(s==null)return null;let a=nm(t);Tv(a);let o=null;for(let l=0;o==null&&l<a.length;++l){let u=im(s);o=Fv(a[l],u,r)}return o}function nm(t,e=[],n=[],r=""){let i=(s,a,o)=>{let l={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};l.relativePath.startsWith("/")&&(He(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length));let u=Zn([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(He(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),nm(s.children,e,c,u)),!(s.path==null&&!s.index)&&e.push({path:u,score:Dv(u,s.index),routesMeta:c})};return t.forEach((s,a)=>{var o;if(s.path===""||!((o=s.path)!=null&&o.includes("?")))i(s,a);else for(let l of rm(s.path))i(s,a,l)}),e}function rm(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let a=rm(r.join("/")),o=[];return o.push(...a.map(l=>l===""?s:[s,l].join("/"))),i&&o.push(...a),o.map(l=>t.startsWith("/")&&l===""?"/":l)}function Tv(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Bv(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Iv=/^:[\w-]+$/,Mv=3,Lv=2,Nv=1,Rv=10,_v=-2,bd=t=>t==="*";function Dv(t,e){let n=t.split("/"),r=n.length;return n.some(bd)&&(r+=_v),e&&(r+=Lv),n.filter(i=>!bd(i)).reduce((i,s)=>i+(Iv.test(s)?Mv:s===""?Nv:Rv),r)}function Bv(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function Fv(t,e,n=!1){let{routesMeta:r}=t,i={},s="/",a=[];for(let o=0;o<r.length;++o){let l=r[o],u=o===r.length-1,c=s==="/"?e:e.slice(s.length)||"/",f=Fi({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),p=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Fi({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!f)return null;Object.assign(i,f.params),a.push({params:i,pathname:Zn([s,f.pathname]),pathnameBase:Wv(Zn([s,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(s=Zn([s,f.pathnameBase]))}return a}function Fi(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=zv(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce((u,{paramName:c,isOptional:f},p)=>{if(c==="*"){let y=o[p]||"";a=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const h=o[p];return f&&!h?u[c]=void 0:u[c]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:a,pattern:t}}function zv(t,e=!1,n=!0){sn(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function im(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return sn(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function er(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function Uv(t,e="/"){let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?ai(t):t;return{pathname:n?n.startsWith("/")?n:Hv(n,e):e,search:Gv(r),hash:Qv(i)}}function Hv(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ul(t,e,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function qv(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function pc(t){let e=qv(t);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function yc(t,e,n,r=!1){let i;typeof t=="string"?i=ai(t):(i={...t},He(!i.pathname||!i.pathname.includes("?"),ul("?","pathname","search",i)),He(!i.pathname||!i.pathname.includes("#"),ul("#","pathname","hash",i)),He(!i.search||!i.search.includes("#"),ul("#","search","hash",i)));let s=t===""||i.pathname==="",a=s?"/":i.pathname,o;if(a==null)o=n;else{let f=e.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}o=f>=0?e[f]:"/"}let l=Uv(i,o),u=a&&a!=="/"&&a.endsWith("/"),c=(s||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var Zn=t=>t.join("/").replace(/\/\/+/g,"/"),Wv=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Gv=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Qv=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Yv(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var sm=["POST","PUT","PATCH","DELETE"];new Set(sm);var Vv=["GET",...sm];new Set(Vv);var Gi=L.createContext(null);Gi.displayName="DataRouter";var Io=L.createContext(null);Io.displayName="DataRouterState";var am=L.createContext({isTransitioning:!1});am.displayName="ViewTransition";var Kv=L.createContext(new Map);Kv.displayName="Fetchers";var Xv=L.createContext(null);Xv.displayName="Await";var hn=L.createContext(null);hn.displayName="Navigation";var ua=L.createContext(null);ua.displayName="Location";var an=L.createContext({outlet:null,matches:[],isDataRoute:!1});an.displayName="Route";var mc=L.createContext(null);mc.displayName="RouteError";function Jv(t,{relative:e}={}){He(oi(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=L.useContext(hn),{hash:i,pathname:s,search:a}=ca(t,{relative:e}),o=s;return n!=="/"&&(o=s==="/"?n:Zn([n,s])),r.createHref({pathname:o,search:a,hash:i})}function oi(){return L.useContext(ua)!=null}function vt(){return He(oi(),"useLocation() may be used only in the context of a <Router> component."),L.useContext(ua).location}function Ca(t){He(oi(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:e}=vt();return L.useMemo(()=>Fi(t,im(e)),[e,t])}var om="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lm(t){L.useContext(hn).static||L.useLayoutEffect(t)}function ft(){let{isDataRoute:t}=L.useContext(an);return t?fb():Zv()}function Zv(){He(oi(),"useNavigate() may be used only in the context of a <Router> component.");let t=L.useContext(Gi),{basename:e,navigator:n}=L.useContext(hn),{matches:r}=L.useContext(an),{pathname:i}=vt(),s=JSON.stringify(pc(r)),a=L.useRef(!1);return lm(()=>{a.current=!0}),L.useCallback((l,u={})=>{if(sn(a.current,om),!a.current)return;if(typeof l=="number"){n.go(l);return}let c=yc(l,JSON.parse(s),i,u.relative==="path");t==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:Zn([e,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[e,n,s,i,t])}var $v=L.createContext(null);function eb(t){let e=L.useContext(an).outlet;return e&&L.createElement($v.Provider,{value:t},e)}function Mo(){let{matches:t}=L.useContext(an),e=t[t.length-1];return e?e.params:{}}function ca(t,{relative:e}={}){let{matches:n}=L.useContext(an),{pathname:r}=vt(),i=JSON.stringify(pc(n));return L.useMemo(()=>yc(t,JSON.parse(i),r,e==="path"),[t,i,r,e])}function tb(t,e){return um(t,e)}function um(t,e,n,r){var g;He(oi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=L.useContext(hn),{matches:s}=L.useContext(an),a=s[s.length-1],o=a?a.params:{},l=a?a.pathname:"/",u=a?a.pathnameBase:"/",c=a&&a.route;{let A=c&&c.path||"";cm(l,!c||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
11
11
 
12
- Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let f=xt(),p;if(e){let A=typeof e=="string"?si(e):e;He(u==="/"||((g=A.pathname)==null?void 0:g.startsWith(u)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${A.pathname}" was given in the \`location\` prop.`),p=A}else p=f;let h=p.pathname||"/",y=h;if(u!=="/"){let A=u.replace(/^\//,"").split("/");y="/"+h.replace(/^\//,"").split("/").slice(A.length).join("/")}let m=Hy(t,{pathname:y});sn(c||m!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),sn(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=Rv(m&&m.map(A=>Object.assign({},A,{params:Object.assign({},o,A.params),pathname:Vn([u,i.encodeLocation?i.encodeLocation(A.pathname).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?u:Vn([u,i.encodeLocation?i.encodeLocation(A.pathnameBase).pathname:A.pathnameBase])})),s,n,r);return e&&v?M.createElement(la.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...p},navigationType:"POP"}},v):v}function Iv(){let t=zv(),e=Av(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",t),a=M.createElement(M.Fragment,null,M.createElement("p",null,"💿 Hey developer 👋"),M.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",M.createElement("code",{style:s},"ErrorBoundary")," or"," ",M.createElement("code",{style:s},"errorElement")," prop on your route.")),M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},e),n?M.createElement("pre",{style:i},n):null,a)}var Mv=M.createElement(Iv,null),Lv=class extends M.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return this.state.error!==void 0?M.createElement(an.Provider,{value:this.props.routeContext},M.createElement(dc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Nv({routeContext:t,match:e,children:n}){let r=M.useContext(Ui);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),M.createElement(an.Provider,{value:t},n)}function Rv(t,e=[],n=null,r=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let i=t,s=n==null?void 0:n.errors;if(s!=null){let l=i.findIndex(u=>u.route.id&&(s==null?void 0:s[u.route.id])!==void 0);He(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,l+1))}let a=!1,o=-1;if(n)for(let l=0;l<i.length;l++){let u=i[l];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(o=l),u.route.id){let{loaderData:c,errors:f}=n,p=u.route.loader&&!c.hasOwnProperty(u.route.id)&&(!f||f[u.route.id]===void 0);if(u.route.lazy||p){a=!0,o>=0?i=i.slice(0,o+1):i=[i[0]];break}}}return i.reduceRight((l,u,c)=>{let f,p=!1,h=null,y=null;n&&(f=s&&u.route.id?s[u.route.id]:void 0,h=u.route.errorElement||Mv,a&&(o<0&&c===0?(Jy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,y=null):o===c&&(p=!0,y=u.route.hydrateFallbackElement||null)));let m=e.concat(i.slice(0,c+1)),v=()=>{let g;return f?g=h:p?g=y:u.route.Component?g=M.createElement(u.route.Component,null):u.route.element?g=u.route.element:g=l,M.createElement(Nv,{match:u,routeContext:{outlet:l,matches:m,isDataRoute:n!=null},children:g})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?M.createElement(Lv,{location:n.location,revalidation:n.revalidation,component:h,error:f,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}function fc(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _v(t){let e=M.useContext(Ui);return He(e,fc(t)),e}function Dv(t){let e=M.useContext(Po);return He(e,fc(t)),e}function Bv(t){let e=M.useContext(an);return He(e,fc(t)),e}function hc(t){let e=Bv(t),n=e.matches[e.matches.length-1];return He(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function Fv(){return hc("useRouteId")}function zv(){var r;let t=M.useContext(dc),e=Dv("useRouteError"),n=hc("useRouteError");return t!==void 0?t:(r=e.errors)==null?void 0:r[n]}function Uv(){let{router:t}=_v("useNavigate"),e=hc("useNavigate"),n=M.useRef(!1);return Ky(()=>{n.current=!0}),M.useCallback(async(i,s={})=>{sn(n.current,Vy),n.current&&(typeof i=="number"?t.navigate(i):await t.navigate(i,{fromRouteId:e,...s}))},[t,e])}var cd={};function Jy(t,e,n){!e&&!cd[t]&&(cd[t]=!0,sn(!1,n))}M.memo(Hv);function Hv({routes:t,future:e,state:n}){return Xy(t,void 0,n,e)}function qv({basename:t,children:e,initialEntries:n,initialIndex:r}){let i=M.useRef();i.current==null&&(i.current=tv({initialEntries:n,initialIndex:r,v5Compat:!0}));let s=i.current,[a,o]=M.useState({action:s.action,location:s.location}),l=M.useCallback(u=>{M.startTransition(()=>o(u))},[o]);return M.useLayoutEffect(()=>s.listen(l),[s,l]),M.createElement(Wv,{basename:t,children:e,location:a.location,navigationType:a.action,navigator:s})}function gi({to:t,replace:e,state:n,relative:r}){He(ai(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=M.useContext(fn);sn(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=M.useContext(an),{pathname:a}=xt(),o=ht(),l=cc(t,uc(s),a,r==="path"),u=JSON.stringify(l);return M.useEffect(()=>{o(JSON.parse(u),{replace:e,state:n,relative:r})},[o,u,r,e,n]),null}function _i(t){return Pv(t.context)}function ut(t){He(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Wv({basename:t="/",children:e=null,location:n,navigationType:r="POP",navigator:i,static:s=!1}){He(!ai(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=t.replace(/^\/*/,"/"),o=M.useMemo(()=>({basename:a,navigator:i,static:s,future:{}}),[a,i,s]);typeof n=="string"&&(n=si(n));let{pathname:l="/",search:u="",hash:c="",state:f=null,key:p="default"}=n,h=M.useMemo(()=>{let y=Xn(l,a);return y==null?null:{location:{pathname:y,search:u,hash:c,state:f,key:p},navigationType:r}},[a,l,u,c,f,p,r]);return sn(h!=null,`<Router basename="${a}"> is not able to match the URL "${l}${u}${c}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:M.createElement(fn.Provider,{value:o},M.createElement(la.Provider,{children:e,value:h}))}function Qv({children:t,location:e}){return Tv(eu(t),e)}function eu(t,e=[]){let n=[];return M.Children.forEach(t,(r,i)=>{if(!M.isValidElement(r))return;let s=[...e,i];if(r.type===M.Fragment){n.push.apply(n,eu(r.props.children,s));return}He(r.type===ut,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),He(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=eu(r.props.children,s)),n.push(a)}),n}var Ya="get",Va="application/x-www-form-urlencoded";function Io(t){return t!=null&&typeof t.tagName=="string"}function Gv(t){return Io(t)&&t.tagName.toLowerCase()==="button"}function Yv(t){return Io(t)&&t.tagName.toLowerCase()==="form"}function Vv(t){return Io(t)&&t.tagName.toLowerCase()==="input"}function Kv(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Xv(t,e){return t.button===0&&(!e||e==="_self")&&!Kv(t)}var Ca=null;function Jv(){if(Ca===null)try{new FormData(document.createElement("form"),0),Ca=!1}catch(t){Ca=!0}return Ca}var Zv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ol(t){return t!=null&&!Zv.has(t)?(sn(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Va}"`),null):t}function $v(t,e){let n,r,i,s,a;if(Yv(t)){let o=t.getAttribute("action");r=o?Xn(o,e):null,n=t.getAttribute("method")||Ya,i=ol(t.getAttribute("enctype"))||Va,s=new FormData(t)}else if(Gv(t)||Vv(t)&&(t.type==="submit"||t.type==="image")){let o=t.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||o.getAttribute("action");if(r=l?Xn(l,e):null,n=t.getAttribute("formmethod")||o.getAttribute("method")||Ya,i=ol(t.getAttribute("formenctype"))||ol(o.getAttribute("enctype"))||Va,s=new FormData(o,t),!Jv()){let{name:u,type:c,value:f}=t;if(c==="image"){let p=u?`${u}.`:"";s.append(`${p}x`,"0"),s.append(`${p}y`,"0")}else u&&s.append(u,f)}}else{if(Io(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ya,r=null,i=Va,a=t}return s&&i==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}function pc(t,e){if(t===!1||t===null||typeof t=="undefined")throw new Error(e)}async function eb(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function tb(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function nb(t,e,n){let r=await Promise.all(t.map(async i=>{let s=e.routes[i.route.id];if(s){let a=await eb(s,n);return a.links?a.links():[]}return[]}));return ab(r.flat(1).filter(tb).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function dd(t,e,n,r,i,s){let a=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,o=(l,u)=>{var c;return n[u].pathname!==l.pathname||((c=n[u].route.path)==null?void 0:c.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return s==="assets"?e.filter((l,u)=>a(l,u)||o(l,u)):s==="data"?e.filter((l,u)=>{var f;let c=r.routes[l.route.id];if(!c||!c.hasLoader)return!1;if(a(l,u)||o(l,u))return!0;if(l.route.shouldRevalidate){let p=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(t,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function rb(t,e,{includeHydrateFallback:n}={}){return ib(t.map(r=>{let i=e.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function ib(t){return[...new Set(t)]}function sb(t){let e={},n=Object.keys(t).sort();for(let r of n)e[r]=t[r];return e}function ab(t,e){let n=new Set;return new Set(e),t.reduce((r,i)=>{let s=JSON.stringify(sb(i));return n.has(s)||(n.add(s),r.push({key:s,link:i})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ob=new Set([100,101,204,205]);function lb(t,e){let n=typeof t=="string"?new URL(t,typeof window=="undefined"?"server://singlefetch/":window.location.origin):t;return n.pathname==="/"?n.pathname="_root.data":e&&Xn(n.pathname,e)==="/"?n.pathname=`${e.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function Zy(){let t=M.useContext(Ui);return pc(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function ub(){let t=M.useContext(Po);return pc(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var yc=M.createContext(void 0);yc.displayName="FrameworkContext";function $y(){let t=M.useContext(yc);return pc(t,"You must render this element inside a <HydratedRouter> element"),t}function cb(t,e){let n=M.useContext(yc),[r,i]=M.useState(!1),[s,a]=M.useState(!1),{onFocus:o,onBlur:l,onMouseEnter:u,onMouseLeave:c,onTouchStart:f}=e,p=M.useRef(null);M.useEffect(()=>{if(t==="render"&&a(!0),t==="viewport"){let m=g=>{g.forEach(A=>{a(A.isIntersecting)})},v=new IntersectionObserver(m,{threshold:.5});return p.current&&v.observe(p.current),()=>{v.disconnect()}}},[t]),M.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let h=()=>{i(!0)},y=()=>{i(!1),a(!1)};return n?t!=="intent"?[s,p,{}]:[s,p,{onFocus:es(o,h),onBlur:es(l,y),onMouseEnter:es(u,h),onMouseLeave:es(c,y),onTouchStart:es(f,h)}]:[!1,p,{}]}function es(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function db({page:t,...e}){let{router:n}=Zy(),r=M.useMemo(()=>Hy(n.routes,t,n.basename),[n.routes,t,n.basename]);return r?M.createElement(hb,{page:t,matches:r,...e}):null}function fb(t){let{manifest:e,routeModules:n}=$y(),[r,i]=M.useState([]);return M.useEffect(()=>{let s=!1;return nb(t,e,n).then(a=>{s||i(a)}),()=>{s=!0}},[t,e,n]),r}function hb({page:t,matches:e,...n}){let r=xt(),{manifest:i,routeModules:s}=$y(),{basename:a}=Zy(),{loaderData:o,matches:l}=ub(),u=M.useMemo(()=>dd(t,e,l,i,r,"data"),[t,e,l,i,r]),c=M.useMemo(()=>dd(t,e,l,i,r,"assets"),[t,e,l,i,r]),f=M.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let y=new Set,m=!1;if(e.forEach(g=>{var E;let A=i.routes[g.route.id];!A||!A.hasLoader||(!u.some(j=>j.route.id===g.route.id)&&g.route.id in o&&((E=s[g.route.id])!=null&&E.shouldRevalidate)||A.hasClientLoader?m=!0:y.add(g.route.id))}),y.size===0)return[];let v=lb(t,a);return m&&y.size>0&&v.searchParams.set("_routes",e.filter(g=>y.has(g.route.id)).map(g=>g.route.id).join(",")),[v.pathname+v.search]},[a,o,r,i,u,e,t,s]),p=M.useMemo(()=>rb(c,i),[c,i]),h=fb(c);return M.createElement(M.Fragment,null,f.map(y=>M.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),p.map(y=>M.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),h.map(({key:y,link:m})=>M.createElement("link",{key:y,...m})))}function pb(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var em=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";try{em&&(window.__reactRouterVersion="7.6.3")}catch(t){}var tm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Cr=M.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:i,reloadDocument:s,replace:a,state:o,target:l,to:u,preventScrollReset:c,viewTransition:f,...p},h){let{basename:y}=M.useContext(fn),m=typeof u=="string"&&tm.test(u),v,g=!1;if(typeof u=="string"&&m&&(v=u,em))try{let N=new URL(window.location.href),_=u.startsWith("//")?new URL(N.protocol+u):new URL(u),I=Xn(_.pathname,y);_.origin===N.origin&&I!=null?u=I+_.search+_.hash:g=!0}catch(N){sn(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let A=jv(u,{relative:i}),[E,j,S]=cb(r,p),b=vb(u,{replace:a,state:o,target:l,preventScrollReset:c,relative:i,viewTransition:f});function w(N){e&&e(N),N.defaultPrevented||b(N)}let x=M.createElement("a",{...p,...S,href:v||A,onClick:g||s?e:w,ref:pb(h,j),target:l,"data-discover":!m&&n==="render"?"true":void 0});return E&&!m?M.createElement(M.Fragment,null,x,M.createElement(db,{page:A})):x});Cr.displayName="Link";var yb=M.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:i=!1,style:s,to:a,viewTransition:o,children:l,...u},c){let f=ua(a,{relative:u.relative}),p=xt(),h=M.useContext(Po),{navigator:y,basename:m}=M.useContext(fn),v=h!=null&&Sb(f)&&o===!0,g=y.encodeLocation?y.encodeLocation(f).pathname:f.pathname,A=p.pathname,E=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;n||(A=A.toLowerCase(),E=E?E.toLowerCase():null,g=g.toLowerCase()),E&&m&&(E=Xn(E,m)||E);const j=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let S=A===g||!i&&A.startsWith(g)&&A.charAt(j)==="/",b=E!=null&&(E===g||!i&&E.startsWith(g)&&E.charAt(g.length)==="/"),w={isActive:S,isPending:b,isTransitioning:v},x=S?e:void 0,N;typeof r=="function"?N=r(w):N=[r,S?"active":null,b?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let _=typeof s=="function"?s(w):s;return M.createElement(Cr,{...u,"aria-current":x,className:N,ref:c,style:_,to:a,viewTransition:o},typeof l=="function"?l(w):l)});yb.displayName="NavLink";var mb=M.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:i,state:s,method:a=Ya,action:o,onSubmit:l,relative:u,preventScrollReset:c,viewTransition:f,...p},h)=>{let y=wb(),m=Ab(o,{relative:u}),v=a.toLowerCase()==="get"?"get":"post",g=typeof o=="string"&&tm.test(o),A=E=>{if(l&&l(E),E.defaultPrevented)return;E.preventDefault();let j=E.nativeEvent.submitter,S=(j==null?void 0:j.getAttribute("formmethod"))||a;y(j||E.currentTarget,{fetcherKey:e,method:S,navigate:n,replace:i,state:s,relative:u,preventScrollReset:c,viewTransition:f})};return M.createElement("form",{ref:h,method:v,action:m,onSubmit:r?l:A,...p,"data-discover":!g&&t==="render"?"true":void 0})});mb.displayName="Form";function gb(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nm(t){let e=M.useContext(Ui);return He(e,gb(t)),e}function vb(t,{target:e,replace:n,state:r,preventScrollReset:i,relative:s,viewTransition:a}={}){let o=ht(),l=xt(),u=ua(t,{relative:s});return M.useCallback(c=>{if(Xv(c,e)){c.preventDefault();let f=n!==void 0?n:ao(l)===ao(u);o(t,{replace:f,state:r,preventScrollReset:i,relative:s,viewTransition:a})}},[l,o,u,n,r,e,t,i,s,a])}var bb=0,xb=()=>`__${String(++bb)}__`;function wb(){let{router:t}=nm("useSubmit"),{basename:e}=M.useContext(fn),n=Fv();return M.useCallback(async(r,i={})=>{let{action:s,method:a,encType:o,formData:l,body:u}=$v(r,e);if(i.navigate===!1){let c=i.fetcherKey||xb();await t.fetch(c,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:l,body:u,formMethod:i.method||a,formEncType:i.encType||o,flushSync:i.flushSync})}else await t.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:l,body:u,formMethod:i.method||a,formEncType:i.encType||o,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[t,e,n])}function Ab(t,{relative:e}={}){let{basename:n}=M.useContext(fn),r=M.useContext(an);He(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...ua(t||".",{relative:e})},a=xt();if(t==null){s.search=a.search;let o=new URLSearchParams(s.search),l=o.getAll("index");if(l.some(c=>c==="")){o.delete("index"),l.filter(f=>f).forEach(f=>o.append("index",f));let c=o.toString();s.search=c?`?${c}`:""}}return(!t||t===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Vn([n,s.pathname])),ao(s)}function Sb(t,e={}){let n=M.useContext(Yy);He(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=nm("useViewTransitionState"),i=ua(t,{relative:e.relative});if(!n.isTransitioning)return!1;let s=Xn(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Xn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ri(i.pathname,a)!=null||Ri(i.pathname,s)!=null}[...ob];var Hi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Cb={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},An,zr,Ty,kb=(Ty=class{constructor(){re(this,An,Cb);re(this,zr,!1)}setTimeoutProvider(t){process.env.NODE_ENV!=="production"&&R(this,zr)&&t!==R(this,An)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:R(this,An),provider:t}),$(this,An,t),process.env.NODE_ENV!=="production"&&$(this,zr,!1)}setTimeout(t,e){return process.env.NODE_ENV!=="production"&&$(this,zr,!0),R(this,An).setTimeout(t,e)}clearTimeout(t){R(this,An).clearTimeout(t)}setInterval(t,e){return process.env.NODE_ENV!=="production"&&$(this,zr,!0),R(this,An).setInterval(t,e)}clearInterval(t){R(this,An).clearInterval(t)}},An=new WeakMap,zr=new WeakMap,Ty),_r=new kb;function jb(t){setTimeout(t,0)}var $r=typeof window=="undefined"||"Deno"in globalThis;function vt(){}function Eb(t,e){return typeof t=="function"?t(e):t}function tu(t){return typeof t=="number"&&t>=0&&t!==1/0}function rm(t,e){return Math.max(t+(e||0)-Date.now(),0)}function xr(t,e){return typeof t=="function"?t(e):t}function en(t,e){return typeof t=="function"?t(e):t}function fd(t,e){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:a,stale:o}=t;if(a){if(r){if(e.queryHash!==mc(a,e.options))return!1}else if(!Ns(e.queryKey,a))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||i&&i!==e.state.fetchStatus||s&&!s(e))}function hd(t,e){const{exact:n,status:r,predicate:i,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(ei(e.options.mutationKey)!==ei(s))return!1}else if(!Ns(e.options.mutationKey,s))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function mc(t,e){return((e==null?void 0:e.queryKeyHashFn)||ei)(t)}function ei(t){return JSON.stringify(t,(e,n)=>ru(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Ns(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>Ns(t[n],e[n])):!1}var Ob=Object.prototype.hasOwnProperty;function nu(t,e){if(t===e)return t;const n=pd(t)&&pd(e);if(!n&&!(ru(t)&&ru(e)))return e;const i=(n?t:Object.keys(t)).length,s=n?e:Object.keys(e),a=s.length,o=n?new Array(a):{};let l=0;for(let u=0;u<a;u++){const c=n?u:s[u],f=t[c],p=e[c];if(f===p){o[c]=f,(n?u<i:Ob.call(t,c))&&l++;continue}if(f===null||p===null||typeof f!="object"||typeof p!="object"){o[c]=p;continue}const h=nu(f,p);o[c]=h,h===f&&l++}return i===a&&l===i?t:o}function oo(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function pd(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function ru(t){if(!yd(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!yd(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function yd(t){return Object.prototype.toString.call(t)==="[object Object]"}function Pb(t){return new Promise(e=>{_r.setTimeout(e,t)})}function iu(t,e,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(t,e);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return nu(t,e)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return nu(t,e)}return e}function Tb(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function Ib(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var lo=Symbol();function im(t,e){return process.env.NODE_ENV!=="production"&&t.queryFn===lo&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`),!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===lo?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function sm(t,e){return typeof t=="function"?t(...e):!!t}var Ur,lr,Si,Iy,Mb=(Iy=class extends Hi{constructor(){super();re(this,Ur);re(this,lr);re(this,Si);$(this,Si,e=>{if(!$r&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,lr)||this.setEventListener(R(this,Si))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,lr))==null||e.call(this),$(this,lr,void 0))}setEventListener(e){var n;$(this,Si,e),(n=R(this,lr))==null||n.call(this),$(this,lr,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){R(this,Ur)!==e&&($(this,Ur,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof R(this,Ur)=="boolean"?R(this,Ur):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Ur=new WeakMap,lr=new WeakMap,Si=new WeakMap,Iy),gc=new Mb;function su(){let t,e;const n=new Promise((i,s)=>{t=i,e=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),t(i)},n.reject=i=>{r({status:"rejected",reason:i}),e(i)},n}var Lb=jb;function Nb(){let t=[],e=0,n=o=>{o()},r=o=>{o()},i=Lb;const s=o=>{e?t.push(o):i(()=>{n(o)})},a=()=>{const o=t;t=[],o.length&&i(()=>{r(()=>{o.forEach(l=>{n(l)})})})};return{batch:o=>{let l;e++;try{l=o()}finally{e--,e||a()}return l},batchCalls:o=>(...l)=>{s(()=>{o(...l)})},schedule:s,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{i=o}}}var Je=Nb(),Ci,ur,ki,My,Rb=(My=class extends Hi{constructor(){super();re(this,Ci,!0);re(this,ur);re(this,ki);$(this,ki,e=>{if(!$r&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){R(this,ur)||this.setEventListener(R(this,ki))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,ur))==null||e.call(this),$(this,ur,void 0))}setEventListener(e){var n;$(this,ki,e),(n=R(this,ur))==null||n.call(this),$(this,ur,e(this.setOnline.bind(this)))}setOnline(e){R(this,Ci)!==e&&($(this,Ci,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return R(this,Ci)}},Ci=new WeakMap,ur=new WeakMap,ki=new WeakMap,My),uo=new Rb;function _b(t){return Math.min(1e3*2**t,3e4)}function am(t){return(t!=null?t:"online")==="online"?uo.isOnline():!0}var au=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function om(t){let e=!1,n=0,r;const i=su(),s=()=>i.status!=="pending",a=m=>{var v;if(!s()){const g=new au(m);p(g),(v=t.onCancel)==null||v.call(t,g)}},o=()=>{e=!0},l=()=>{e=!1},u=()=>gc.isFocused()&&(t.networkMode==="always"||uo.isOnline())&&t.canRun(),c=()=>am(t.networkMode)&&t.canRun(),f=m=>{s()||(r==null||r(),i.resolve(m))},p=m=>{s()||(r==null||r(),i.reject(m))},h=()=>new Promise(m=>{var v;r=g=>{(s()||u())&&m(g)},(v=t.onPause)==null||v.call(t)}).then(()=>{var m;r=void 0,s()||(m=t.onContinue)==null||m.call(t)}),y=()=>{if(s())return;let m;const v=n===0?t.initialPromise:void 0;try{m=v!=null?v:t.fn()}catch(g){m=Promise.reject(g)}Promise.resolve(m).then(f).catch(g=>{var b,w,x;if(s())return;const A=(b=t.retry)!=null?b:$r?0:3,E=(w=t.retryDelay)!=null?w:_b,j=typeof E=="function"?E(n,g):E,S=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,g);if(e||!S){p(g);return}n++,(x=t.onFail)==null||x.call(t,n,g),Pb(j).then(()=>u()?void 0:h()).then(()=>{e?p(g):y()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(r==null||r(),i),cancelRetry:o,continueRetry:l,canStart:c,start:()=>(c()?y():h().then(y),i)}}var Hr,Ly,lm=(Ly=class{constructor(){re(this,Hr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),tu(this.gcTime)&&$(this,Hr,_r.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t!=null?t:$r?1/0:5*60*1e3)}clearGcTimeout(){R(this,Hr)&&(_r.clearTimeout(R(this,Hr)),$(this,Hr,void 0))}},Hr=new WeakMap,Ly),qr,ji,$t,Wr,$e,ra,Qr,cn,Dn,Ny,Db=(Ny=class extends lm{constructor(e){var n;super();re(this,cn);re(this,qr);re(this,ji);re(this,$t);re(this,Wr);re(this,$e);re(this,ra);re(this,Qr);$(this,Qr,!1),$(this,ra,e.defaultOptions),this.setOptions(e.options),this.observers=[],$(this,Wr,e.client),$(this,$t,R(this,Wr).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,$(this,qr,md(this.options)),this.state=(n=e.state)!=null?n:R(this,qr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=R(this,$e))==null?void 0:e.promise}setOptions(e){if(this.options={...R(this,ra),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=md(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),$(this,qr,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,$t).remove(this)}setData(e,n){const r=iu(this.state.data,e,this.options);return xe(this,cn,Dn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){xe(this,cn,Dn).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,i;const n=(r=R(this,$e))==null?void 0:r.promise;return(i=R(this,$e))==null||i.cancel(e),n?n.then(vt).catch(vt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,qr))}isActive(){return this.observers.some(e=>en(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===lo||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>xr(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!rm(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=R(this,$e))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=R(this,$e))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),R(this,$t).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(R(this,$e)&&(R(this,Qr)?R(this,$e).cancel({revert:!0}):R(this,$e).cancelRetry()),this.scheduleGc()),R(this,$t).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||xe(this,cn,Dn).call(this,{type:"invalidate"})}async fetch(e,n){var l,u,c,f,p,h,y,m,v,g,A,E;if(this.state.fetchStatus!=="idle"&&((l=R(this,$e))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(R(this,$e))return R(this,$e).continueRetry(),R(this,$e).promise}if(e&&this.setOptions(e),!this.options.queryFn){const j=this.observers.find(S=>S.options.queryFn);j&&this.setOptions(j.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,i=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>($(this,Qr,!0),r.signal)})},s=()=>{const j=im(this.options,n),b=(()=>{const w={client:R(this,Wr),queryKey:this.queryKey,meta:this.meta};return i(w),w})();return $(this,Qr,!1),this.options.persister?this.options.persister(j,b,this):j(b)},o=(()=>{const j={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:R(this,Wr),state:this.state,fetchFn:s};return i(j),j})();(u=this.options.behavior)==null||u.onFetch(o,this),$(this,ji,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=o.fetchOptions)==null?void 0:c.meta))&&xe(this,cn,Dn).call(this,{type:"fetch",meta:(f=o.fetchOptions)==null?void 0:f.meta}),$(this,$e,om({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,onCancel:j=>{j instanceof au&&j.revert&&this.setState({...R(this,ji),fetchStatus:"idle"}),r.abort()},onFail:(j,S)=>{xe(this,cn,Dn).call(this,{type:"failed",failureCount:j,error:S})},onPause:()=>{xe(this,cn,Dn).call(this,{type:"pause"})},onContinue:()=>{xe(this,cn,Dn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const j=await R(this,$e).start();if(j===void 0)throw process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(j),(h=(p=R(this,$t).config).onSuccess)==null||h.call(p,j,this),(m=(y=R(this,$t).config).onSettled)==null||m.call(y,j,this.state.error,this),j}catch(j){if(j instanceof au){if(j.silent)return R(this,$e).promise;if(j.revert){if(this.state.data===void 0)throw j;return this.state.data}}throw xe(this,cn,Dn).call(this,{type:"error",error:j}),(g=(v=R(this,$t).config).onError)==null||g.call(v,j,this),(E=(A=R(this,$t).config).onSettled)==null||E.call(A,this.state.data,j,this),j}finally{this.scheduleGc()}}},qr=new WeakMap,ji=new WeakMap,$t=new WeakMap,Wr=new WeakMap,$e=new WeakMap,ra=new WeakMap,Qr=new WeakMap,cn=new WeakSet,Dn=function(e){const n=r=>{var i,s;switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...um(r.data,this.options),fetchMeta:(i=e.meta)!=null?i:null};case"success":const a={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(s=e.dataUpdatedAt)!=null?s:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return $(this,ji,e.manual?a:void 0),a;case"error":const o=e.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),Je.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),R(this,$t).notify({query:this,type:"updated",action:e})})},Ny);function um(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:am(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function md(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var kt,Ce,ia,mt,Gr,Ei,Hn,cr,sa,Oi,Pi,Yr,Vr,dr,Ti,Me,vs,ou,lu,uu,cu,du,fu,hu,cm,Ry,Bb=(Ry=class extends Hi{constructor(e,n){super();re(this,Me);re(this,kt);re(this,Ce);re(this,ia);re(this,mt);re(this,Gr);re(this,Ei);re(this,Hn);re(this,cr);re(this,sa);re(this,Oi);re(this,Pi);re(this,Yr);re(this,Vr);re(this,dr);re(this,Ti,new Set);this.options=n,$(this,kt,e),$(this,cr,null),$(this,Hn,su()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,Ce).addObserver(this),gd(R(this,Ce),this.options)?xe(this,Me,vs).call(this):this.updateResult(),xe(this,Me,cu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return pu(R(this,Ce),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return pu(R(this,Ce),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,xe(this,Me,du).call(this),xe(this,Me,fu).call(this),R(this,Ce).removeObserver(this)}setOptions(e){const n=this.options,r=R(this,Ce);if(this.options=R(this,kt).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof en(this.options.enabled,R(this,Ce))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");xe(this,Me,hu).call(this),R(this,Ce).setOptions(this.options),n._defaulted&&!oo(this.options,n)&&R(this,kt).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,Ce),observer:this});const i=this.hasListeners();i&&vd(R(this,Ce),r,this.options,n)&&xe(this,Me,vs).call(this),this.updateResult(),i&&(R(this,Ce)!==r||en(this.options.enabled,R(this,Ce))!==en(n.enabled,R(this,Ce))||xr(this.options.staleTime,R(this,Ce))!==xr(n.staleTime,R(this,Ce)))&&xe(this,Me,ou).call(this);const s=xe(this,Me,lu).call(this);i&&(R(this,Ce)!==r||en(this.options.enabled,R(this,Ce))!==en(n.enabled,R(this,Ce))||s!==R(this,dr))&&xe(this,Me,uu).call(this,s)}getOptimisticResult(e){const n=R(this,kt).getQueryCache().build(R(this,kt),e),r=this.createResult(n,e);return zb(this,r)&&($(this,mt,r),$(this,Ei,this.options),$(this,Gr,R(this,Ce).state)),r}getCurrentResult(){return R(this,mt)}trackResult(e,n){return new Proxy(e,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&R(this,Hn).status==="pending"&&R(this,Hn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(e){R(this,Ti).add(e)}getCurrentQuery(){return R(this,Ce)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=R(this,kt).defaultQueryOptions(e),r=R(this,kt).getQueryCache().build(R(this,kt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(e){var n;return xe(this,Me,vs).call(this,{...e,cancelRefetch:(n=e.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),R(this,mt)))}createResult(e,n){var N;const r=R(this,Ce),i=this.options,s=R(this,mt),a=R(this,Gr),o=R(this,Ei),u=e!==r?e.state:R(this,ia),{state:c}=e;let f={...c},p=!1,h;if(n._optimisticResults){const _=this.hasListeners(),I=!_&&gd(e,n),T=_&&vd(e,r,n,i);(I||T)&&(f={...f,...um(c.data,e.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:y,errorUpdatedAt:m,status:v}=f;h=f.data;let g=!1;if(n.placeholderData!==void 0&&h===void 0&&v==="pending"){let _;s!=null&&s.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData)?(_=s.data,g=!0):_=typeof n.placeholderData=="function"?n.placeholderData((N=R(this,Pi))==null?void 0:N.state.data,R(this,Pi)):n.placeholderData,_!==void 0&&(v="success",h=iu(s==null?void 0:s.data,_,n),p=!0)}if(n.select&&h!==void 0&&!g)if(s&&h===(a==null?void 0:a.data)&&n.select===R(this,sa))h=R(this,Oi);else try{$(this,sa,n.select),h=n.select(h),h=iu(s==null?void 0:s.data,h,n),$(this,Oi,h),$(this,cr,null)}catch(_){$(this,cr,_)}R(this,cr)&&(y=R(this,cr),h=R(this,Oi),m=Date.now(),v="error");const A=f.fetchStatus==="fetching",E=v==="pending",j=v==="error",S=E&&A,b=h!==void 0,x={status:v,fetchStatus:f.fetchStatus,isPending:E,isSuccess:v==="success",isError:j,isInitialLoading:S,isLoading:S,data:h,dataUpdatedAt:f.dataUpdatedAt,error:y,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:A,isRefetching:A&&!E,isLoadingError:j&&!b,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:j&&b,isStale:vc(e,n),refetch:this.refetch,promise:R(this,Hn),isEnabled:en(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const _=z=>{x.status==="error"?z.reject(x.error):x.data!==void 0&&z.resolve(x.data)},I=()=>{const z=$(this,Hn,x.promise=su());_(z)},T=R(this,Hn);switch(T.status){case"pending":e.queryHash===r.queryHash&&_(T);break;case"fulfilled":(x.status==="error"||x.data!==T.value)&&I();break;case"rejected":(x.status!=="error"||x.error!==T.reason)&&I();break}}return x}updateResult(){const e=R(this,mt),n=this.createResult(R(this,Ce),this.options);if($(this,Gr,R(this,Ce).state),$(this,Ei,this.options),R(this,Gr).data!==void 0&&$(this,Pi,R(this,Ce)),oo(n,e))return;$(this,mt,n);const r=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!R(this,Ti).size)return!0;const a=new Set(s!=null?s:R(this,Ti));return this.options.throwOnError&&a.add("error"),Object.keys(R(this,mt)).some(o=>{const l=o;return R(this,mt)[l]!==e[l]&&a.has(l)})};xe(this,Me,cm).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&xe(this,Me,cu).call(this)}},kt=new WeakMap,Ce=new WeakMap,ia=new WeakMap,mt=new WeakMap,Gr=new WeakMap,Ei=new WeakMap,Hn=new WeakMap,cr=new WeakMap,sa=new WeakMap,Oi=new WeakMap,Pi=new WeakMap,Yr=new WeakMap,Vr=new WeakMap,dr=new WeakMap,Ti=new WeakMap,Me=new WeakSet,vs=function(e){xe(this,Me,hu).call(this);let n=R(this,Ce).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(vt)),n},ou=function(){xe(this,Me,du).call(this);const e=xr(this.options.staleTime,R(this,Ce));if($r||R(this,mt).isStale||!tu(e))return;const r=rm(R(this,mt).dataUpdatedAt,e)+1;$(this,Yr,_r.setTimeout(()=>{R(this,mt).isStale||this.updateResult()},r))},lu=function(){var e;return(e=typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,Ce)):this.options.refetchInterval)!=null?e:!1},uu=function(e){xe(this,Me,fu).call(this),$(this,dr,e),!($r||en(this.options.enabled,R(this,Ce))===!1||!tu(R(this,dr))||R(this,dr)===0)&&$(this,Vr,_r.setInterval(()=>{(this.options.refetchIntervalInBackground||gc.isFocused())&&xe(this,Me,vs).call(this)},R(this,dr)))},cu=function(){xe(this,Me,ou).call(this),xe(this,Me,uu).call(this,xe(this,Me,lu).call(this))},du=function(){R(this,Yr)&&(_r.clearTimeout(R(this,Yr)),$(this,Yr,void 0))},fu=function(){R(this,Vr)&&(_r.clearInterval(R(this,Vr)),$(this,Vr,void 0))},hu=function(){const e=R(this,kt).getQueryCache().build(R(this,kt),this.options);if(e===R(this,Ce))return;const n=R(this,Ce);$(this,Ce,e),$(this,ia,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},cm=function(e){Je.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(R(this,mt))}),R(this,kt).getQueryCache().notify({query:R(this,Ce),type:"observerResultsUpdated"})})},Ry);function Fb(t,e){return en(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function gd(t,e){return Fb(t,e)||t.state.data!==void 0&&pu(t,e,e.refetchOnMount)}function pu(t,e,n){if(en(e.enabled,t)!==!1&&xr(e.staleTime,t)!=="static"){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&vc(t,e)}return!1}function vd(t,e,n,r){return(t!==e||en(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&vc(t,n)}function vc(t,e){return en(e.enabled,t)!==!1&&t.isStaleByTime(xr(e.staleTime,t))}function zb(t,e){return!oo(t.getCurrentResult(),e)}function bd(t){return{onFetch:(e,n)=>{var c,f,p,h,y;const r=e.options,i=(p=(f=(c=e.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,s=((h=e.state.data)==null?void 0:h.pages)||[],a=((y=e.state.data)==null?void 0:y.pageParams)||[];let o={pages:[],pageParams:[]},l=0;const u=async()=>{var E;let m=!1;const v=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(e.signal.aborted?m=!0:e.signal.addEventListener("abort",()=>{m=!0}),e.signal)})},g=im(e.options,e.fetchOptions),A=async(j,S,b)=>{if(m)return Promise.reject();if(S==null&&j.pages.length)return Promise.resolve(j);const x=(()=>{const T={client:e.client,queryKey:e.queryKey,pageParam:S,direction:b?"backward":"forward",meta:e.options.meta};return v(T),T})(),N=await g(x),{maxPages:_}=e.options,I=b?Ib:Tb;return{pages:I(j.pages,N,_),pageParams:I(j.pageParams,S,_)}};if(i&&s.length){const j=i==="backward",S=j?Ub:xd,b={pages:s,pageParams:a},w=S(r,b);o=await A(b,w,j)}else{const j=t!=null?t:s.length;do{const S=l===0?(E=a[0])!=null?E:r.initialPageParam:xd(r,o);if(l>0&&S==null)break;o=await A(o,S),l++}while(l<j)}return o};e.options.persister?e.fetchFn=()=>{var m,v;return(v=(m=e.options).persister)==null?void 0:v.call(m,u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=u}}}function xd(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function Ub(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var aa,Sn,gt,Kr,Cn,or,_y,Hb=(_y=class extends lm{constructor(e){super();re(this,Cn);re(this,aa);re(this,Sn);re(this,gt);re(this,Kr);$(this,aa,e.client),this.mutationId=e.mutationId,$(this,gt,e.mutationCache),$(this,Sn,[]),this.state=e.state||dm(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){R(this,Sn).includes(e)||(R(this,Sn).push(e),this.clearGcTimeout(),R(this,gt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){$(this,Sn,R(this,Sn).filter(n=>n!==e)),this.scheduleGc(),R(this,gt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){R(this,Sn).length||(this.state.status==="pending"?this.scheduleGc():R(this,gt).remove(this))}continue(){var e,n;return(n=(e=R(this,Kr))==null?void 0:e.continue())!=null?n:this.execute(this.state.variables)}async execute(e){var a,o,l,u,c,f,p,h,y,m,v,g,A,E,j,S,b,w,x,N,_;const n=()=>{xe(this,Cn,or).call(this,{type:"continue"})},r={client:R(this,aa),meta:this.options.meta,mutationKey:this.options.mutationKey};$(this,Kr,om({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(I,T)=>{xe(this,Cn,or).call(this,{type:"failed",failureCount:I,error:T})},onPause:()=>{xe(this,Cn,or).call(this,{type:"pause"})},onContinue:n,retry:(a=this.options.retry)!=null?a:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,gt).canRun(this)}));const i=this.state.status==="pending",s=!R(this,Kr).canStart();try{if(i)n();else{xe(this,Cn,or).call(this,{type:"pending",variables:e,isPaused:s}),await((l=(o=R(this,gt).config).onMutate)==null?void 0:l.call(o,e,this,r));const T=await((c=(u=this.options).onMutate)==null?void 0:c.call(u,e,r));T!==this.state.context&&xe(this,Cn,or).call(this,{type:"pending",context:T,variables:e,isPaused:s})}const I=await R(this,Kr).start();return await((p=(f=R(this,gt).config).onSuccess)==null?void 0:p.call(f,I,e,this.state.context,this,r)),await((y=(h=this.options).onSuccess)==null?void 0:y.call(h,I,e,this.state.context,r)),await((v=(m=R(this,gt).config).onSettled)==null?void 0:v.call(m,I,null,this.state.variables,this.state.context,this,r)),await((A=(g=this.options).onSettled)==null?void 0:A.call(g,I,null,e,this.state.context,r)),xe(this,Cn,or).call(this,{type:"success",data:I}),I}catch(I){try{throw await((j=(E=R(this,gt).config).onError)==null?void 0:j.call(E,I,e,this.state.context,this,r)),await((b=(S=this.options).onError)==null?void 0:b.call(S,I,e,this.state.context,r)),await((x=(w=R(this,gt).config).onSettled)==null?void 0:x.call(w,void 0,I,this.state.variables,this.state.context,this,r)),await((_=(N=this.options).onSettled)==null?void 0:_.call(N,void 0,I,e,this.state.context,r)),I}finally{xe(this,Cn,or).call(this,{type:"error",error:I})}}finally{R(this,gt).runNext(this)}}},aa=new WeakMap,Sn=new WeakMap,gt=new WeakMap,Kr=new WeakMap,Cn=new WeakSet,or=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Je.batch(()=>{R(this,Sn).forEach(r=>{r.onMutationUpdate(e)}),R(this,gt).notify({mutation:this,type:"updated",action:e})})},_y);function dm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var qn,dn,oa,Dy,qb=(Dy=class extends Hi{constructor(e={}){super();re(this,qn);re(this,dn);re(this,oa);this.config=e,$(this,qn,new Set),$(this,dn,new Map),$(this,oa,0)}build(e,n,r){const i=new Hb({client:e,mutationCache:this,mutationId:++Aa(this,oa)._,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){R(this,qn).add(e);const n=ka(e);if(typeof n=="string"){const r=R(this,dn).get(n);r?r.push(e):R(this,dn).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(R(this,qn).delete(e)){const n=ka(e);if(typeof n=="string"){const r=R(this,dn).get(n);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&R(this,dn).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=ka(e);if(typeof n=="string"){const r=R(this,dn).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===e}else return!0}runNext(e){var r,i;const n=ka(e);if(typeof n=="string"){const s=(r=R(this,dn).get(n))==null?void 0:r.find(a=>a!==e&&a.state.isPaused);return(i=s==null?void 0:s.continue())!=null?i:Promise.resolve()}else return Promise.resolve()}clear(){Je.batch(()=>{R(this,qn).forEach(e=>{this.notify({type:"removed",mutation:e})}),R(this,qn).clear(),R(this,dn).clear()})}getAll(){return Array.from(R(this,qn))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>hd(n,r))}findAll(e={}){return this.getAll().filter(n=>hd(e,n))}notify(e){Je.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Je.batch(()=>Promise.all(e.map(n=>n.continue().catch(vt))))}},qn=new WeakMap,dn=new WeakMap,oa=new WeakMap,Dy);function ka(t){var e;return(e=t.options.scope)==null?void 0:e.id}var Wn,fr,jt,Qn,Kn,Ka,yu,By,Wb=(By=class extends Hi{constructor(n,r){super();re(this,Kn);re(this,Wn);re(this,fr);re(this,jt);re(this,Qn);$(this,Wn,n),this.setOptions(r),this.bindMethods(),xe(this,Kn,Ka).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=R(this,Wn).defaultMutationOptions(n),oo(this.options,r)||R(this,Wn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:R(this,jt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ei(r.mutationKey)!==ei(this.options.mutationKey)?this.reset():((i=R(this,jt))==null?void 0:i.state.status)==="pending"&&R(this,jt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=R(this,jt))==null||n.removeObserver(this)}onMutationUpdate(n){xe(this,Kn,Ka).call(this),xe(this,Kn,yu).call(this,n)}getCurrentResult(){return R(this,fr)}reset(){var n;(n=R(this,jt))==null||n.removeObserver(this),$(this,jt,void 0),xe(this,Kn,Ka).call(this),xe(this,Kn,yu).call(this)}mutate(n,r){var i;return $(this,Qn,r),(i=R(this,jt))==null||i.removeObserver(this),$(this,jt,R(this,Wn).getMutationCache().build(R(this,Wn),this.options)),R(this,jt).addObserver(this),R(this,jt).execute(n)}},Wn=new WeakMap,fr=new WeakMap,jt=new WeakMap,Qn=new WeakMap,Kn=new WeakSet,Ka=function(){var r,i;const n=(i=(r=R(this,jt))==null?void 0:r.state)!=null?i:dm();$(this,fr,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},yu=function(n){Je.batch(()=>{var r,i,s,a,o,l,u,c;if(R(this,Qn)&&this.hasListeners()){const f=R(this,fr).variables,p=R(this,fr).context,h={client:R(this,Wn),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((i=(r=R(this,Qn)).onSuccess)==null||i.call(r,n.data,f,p,h),(a=(s=R(this,Qn)).onSettled)==null||a.call(s,n.data,null,f,p,h)):(n==null?void 0:n.type)==="error"&&((l=(o=R(this,Qn)).onError)==null||l.call(o,n.error,f,p,h),(c=(u=R(this,Qn)).onSettled)==null||c.call(u,void 0,n.error,f,p,h))}this.listeners.forEach(f=>{f(R(this,fr))})})},By),kn,Fy,Qb=(Fy=class extends Hi{constructor(e={}){super();re(this,kn);this.config=e,$(this,kn,new Map)}build(e,n,r){var o;const i=n.queryKey,s=(o=n.queryHash)!=null?o:mc(i,n);let a=this.get(s);return a||(a=new Db({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){R(this,kn).has(e.queryHash)||(R(this,kn).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=R(this,kn).get(e.queryHash);n&&(e.destroy(),n===e&&R(this,kn).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Je.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return R(this,kn).get(e)}getAll(){return[...R(this,kn).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>fd(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>fd(e,r)):n}notify(e){Je.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Je.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Je.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},kn=new WeakMap,Fy),Qe,hr,pr,Ii,Mi,yr,Li,Ni,zy,Gb=(zy=class{constructor(t={}){re(this,Qe);re(this,hr);re(this,pr);re(this,Ii);re(this,Mi);re(this,yr);re(this,Li);re(this,Ni);$(this,Qe,t.queryCache||new Qb),$(this,hr,t.mutationCache||new qb),$(this,pr,t.defaultOptions||{}),$(this,Ii,new Map),$(this,Mi,new Map),$(this,yr,0)}mount(){Aa(this,yr)._++,R(this,yr)===1&&($(this,Li,gc.subscribe(async t=>{t&&(await this.resumePausedMutations(),R(this,Qe).onFocus())})),$(this,Ni,uo.subscribe(async t=>{t&&(await this.resumePausedMutations(),R(this,Qe).onOnline())})))}unmount(){var t,e;Aa(this,yr)._--,R(this,yr)===0&&((t=R(this,Li))==null||t.call(this),$(this,Li,void 0),(e=R(this,Ni))==null||e.call(this),$(this,Ni,void 0))}isFetching(t){return R(this,Qe).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return R(this,hr).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=R(this,Qe).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=R(this,Qe).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(xr(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return R(this,Qe).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),i=R(this,Qe).get(r.queryHash),s=i==null?void 0:i.state.data,a=Eb(e,s);if(a!==void 0)return R(this,Qe).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(t,e,n){return Je.batch(()=>R(this,Qe).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=R(this,Qe).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=R(this,Qe);Je.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=R(this,Qe);return Je.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=Je.batch(()=>R(this,Qe).findAll(t).map(i=>i.cancel(n)));return Promise.all(r).then(vt).catch(vt)}invalidateQueries(t,e={}){return Je.batch(()=>{var n,r;return R(this,Qe).findAll(t).forEach(i=>{i.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(r=(n=t==null?void 0:t.refetchType)!=null?n:t==null?void 0:t.type)!=null?r:"active"},e)})}refetchQueries(t,e={}){var i;const n={...e,cancelRefetch:(i=e.cancelRefetch)!=null?i:!0},r=Je.batch(()=>R(this,Qe).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let a=s.fetch(void 0,n);return n.throwOnError||(a=a.catch(vt)),s.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(vt)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=R(this,Qe).build(this,e);return n.isStaleByTime(xr(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(vt).catch(vt)}fetchInfiniteQuery(t){return t.behavior=bd(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(vt).catch(vt)}ensureInfiniteQueryData(t){return t.behavior=bd(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return uo.isOnline()?R(this,hr).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Qe)}getMutationCache(){return R(this,hr)}getDefaultOptions(){return R(this,pr)}setDefaultOptions(t){$(this,pr,t)}setQueryDefaults(t,e){R(this,Ii).set(ei(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...R(this,Ii).values()],n={};return e.forEach(r=>{Ns(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){R(this,Mi).set(ei(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...R(this,Mi).values()],n={};return e.forEach(r=>{Ns(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...R(this,pr).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=mc(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===lo&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...R(this,pr).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){R(this,Qe).clear(),R(this,hr).clear()}},Qe=new WeakMap,hr=new WeakMap,pr=new WeakMap,Ii=new WeakMap,Mi=new WeakMap,yr=new WeakMap,Li=new WeakMap,Ni=new WeakMap,zy),fm=M.createContext(void 0),on=t=>{const e=M.useContext(fm);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Yb=({client:t,children:e})=>(M.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),d.jsx(fm.Provider,{value:t,children:e})),hm=M.createContext(!1),Vb=()=>M.useContext(hm);hm.Provider;function Kb(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Xb=M.createContext(Kb()),Jb=()=>M.useContext(Xb),Zb=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},$b=t=>{M.useEffect(()=>{t.clearReset()},[t])},e2=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||sm(n,[t.error,r])),t2=t=>{if(t.suspense){const n=i=>i==="static"?i:Math.max(i!=null?i:1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},n2=(t,e)=>t.isLoading&&t.isFetching&&!e,r2=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,wd=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function i2(t,e,n){var f,p,h,y,m;if(process.env.NODE_ENV!=="production"&&(typeof t!="object"||Array.isArray(t)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Vb(),i=Jb(),s=on(),a=s.defaultQueryOptions(t);(p=(f=s.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||p.call(f,a),process.env.NODE_ENV!=="production"&&(a.queryFn||console.error(`[${a.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),a._optimisticResults=r?"isRestoring":"optimistic",t2(a),Zb(a,i),$b(i);const o=!s.getQueryCache().get(a.queryHash),[l]=M.useState(()=>new e(s,a)),u=l.getOptimisticResult(a),c=!r&&t.subscribed!==!1;if(M.useSyncExternalStore(M.useCallback(v=>{const g=c?l.subscribe(Je.batchCalls(v)):vt;return l.updateResult(),g},[l,c]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),M.useEffect(()=>{l.setOptions(a)},[a,l]),r2(a,u))throw wd(a,l,i);if(e2({result:u,errorResetBoundary:i,throwOnError:a.throwOnError,query:s.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw u.error;if((y=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||y.call(h,a,u),a.experimental_prefetchInRender&&!$r&&n2(u,r)){const v=o?wd(a,l,i):(m=s.getQueryCache().get(a.queryHash))==null?void 0:m.promise;v==null||v.catch(vt).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?u:l.trackResult(u)}function Zn(t,e){return i2(t,Bb)}function $n(t,e){const n=on(),[r]=M.useState(()=>new Wb(n,t));M.useEffect(()=>{r.setOptions(t)},[r,t]);const i=M.useSyncExternalStore(M.useCallback(a=>r.subscribe(Je.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=M.useCallback((a,o)=>{r.mutate(a,o).catch(vt)},[r]);if(i.error&&sm(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}function pm(t,e){return function(){return t.apply(e,arguments)}}const{toString:s2}=Object.prototype,{getPrototypeOf:bc}=Object,{iterator:Mo,toStringTag:ym}=Symbol,Lo=(t=>e=>{const n=s2.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hn=t=>(t=t.toLowerCase(),e=>Lo(e)===t),No=t=>e=>typeof e===t,{isArray:qi}=Array,Rs=No("undefined");function a2(t){return t!==null&&!Rs(t)&&t.constructor!==null&&!Rs(t.constructor)&&Ot(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const mm=hn("ArrayBuffer");function o2(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&mm(t.buffer),e}const l2=No("string"),Ot=No("function"),gm=No("number"),Ro=t=>t!==null&&typeof t=="object",u2=t=>t===!0||t===!1,Xa=t=>{if(Lo(t)!=="object")return!1;const e=bc(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(ym in t)&&!(Mo in t)},c2=hn("Date"),d2=hn("File"),f2=hn("Blob"),h2=hn("FileList"),p2=t=>Ro(t)&&Ot(t.pipe),y2=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Ot(t.append)&&((e=Lo(t))==="formdata"||e==="object"&&Ot(t.toString)&&t.toString()==="[object FormData]"))},m2=hn("URLSearchParams"),[g2,v2,b2,x2]=["ReadableStream","Request","Response","Headers"].map(hn),w2=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ca(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t=="undefined")return;let r,i;if(typeof t!="object"&&(t=[t]),qi(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let o;for(r=0;r<a;r++)o=s[r],e.call(null,t[o],o,t)}}function vm(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const Dr=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,bm=t=>!Rs(t)&&t!==Dr;function mu(){const{caseless:t}=bm(this)&&this||{},e={},n=(r,i)=>{const s=t&&vm(e,i)||i;Xa(e[s])&&Xa(r)?e[s]=mu(e[s],r):Xa(r)?e[s]=mu({},r):qi(r)?e[s]=r.slice():e[s]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&ca(arguments[r],n);return e}const A2=(t,e,n,{allOwnKeys:r}={})=>(ca(e,(i,s)=>{n&&Ot(i)?t[s]=pm(i,n):t[s]=i},{allOwnKeys:r}),t),S2=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),C2=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},k2=(t,e,n,r)=>{let i,s,a;const o={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],(!r||r(a,t,e))&&!o[a]&&(e[a]=t[a],o[a]=!0);t=n!==!1&&bc(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},j2=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},E2=t=>{if(!t)return null;if(qi(t))return t;let e=t.length;if(!gm(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},O2=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&bc(Uint8Array)),P2=(t,e)=>{const r=(t&&t[Mo]).call(t);let i;for(;(i=r.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},T2=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},I2=hn("HTMLFormElement"),M2=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Ad=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),L2=hn("RegExp"),xm=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};ca(n,(i,s)=>{let a;(a=e(i,s,t))!==!1&&(r[s]=a||i)}),Object.defineProperties(t,r)},N2=t=>{xm(t,(e,n)=>{if(Ot(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Ot(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},R2=(t,e)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return qi(t)?r(t):r(String(t).split(e)),n},_2=()=>{},D2=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function B2(t){return!!(t&&Ot(t.append)&&t[ym]==="FormData"&&t[Mo])}const F2=t=>{const e=new Array(10),n=(r,i)=>{if(Ro(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const s=qi(r)?[]:{};return ca(r,(a,o)=>{const l=n(a,i+1);!Rs(l)&&(s[o]=l)}),e[i]=void 0,s}}return r};return n(t,0)},z2=hn("AsyncFunction"),U2=t=>t&&(Ro(t)||Ot(t))&&Ot(t.then)&&Ot(t.catch),wm=((t,e)=>t?setImmediate:e?((n,r)=>(Dr.addEventListener("message",({source:i,data:s})=>{i===Dr&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Dr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ot(Dr.postMessage)),H2=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Dr):typeof process!="undefined"&&process.nextTick||wm,q2=t=>t!=null&&Ot(t[Mo]),q={isArray:qi,isArrayBuffer:mm,isBuffer:a2,isFormData:y2,isArrayBufferView:o2,isString:l2,isNumber:gm,isBoolean:u2,isObject:Ro,isPlainObject:Xa,isReadableStream:g2,isRequest:v2,isResponse:b2,isHeaders:x2,isUndefined:Rs,isDate:c2,isFile:d2,isBlob:f2,isRegExp:L2,isFunction:Ot,isStream:p2,isURLSearchParams:m2,isTypedArray:O2,isFileList:h2,forEach:ca,merge:mu,extend:A2,trim:w2,stripBOM:S2,inherits:C2,toFlatObject:k2,kindOf:Lo,kindOfTest:hn,endsWith:j2,toArray:E2,forEachEntry:P2,matchAll:T2,isHTMLForm:I2,hasOwnProperty:Ad,hasOwnProp:Ad,reduceDescriptors:xm,freezeMethods:N2,toObjectSet:R2,toCamelCase:M2,noop:_2,toFiniteNumber:D2,findKey:vm,global:Dr,isContextDefined:bm,isSpecCompliantForm:B2,toJSONObject:F2,isAsyncFn:z2,isThenable:U2,setImmediate:wm,asap:H2,isIterable:q2};function ve(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}q.inherits(ve,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:q.toJSONObject(this.config),code:this.code,status:this.status}}});const Am=ve.prototype,Sm={};["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(t=>{Sm[t]={value:t}});Object.defineProperties(ve,Sm);Object.defineProperty(Am,"isAxiosError",{value:!0});ve.from=(t,e,n,r,i,s)=>{const a=Object.create(Am);return q.toFlatObject(t,a,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),ve.call(a,t.message,e,n,r,i),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const W2=null;function gu(t){return q.isPlainObject(t)||q.isArray(t)}function Cm(t){return q.endsWith(t,"[]")?t.slice(0,-2):t}function Sd(t,e,n){return t?t.concat(e).map(function(i,s){return i=Cm(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function Q2(t){return q.isArray(t)&&!t.some(gu)}const G2=q.toFlatObject(q,{},null,function(e){return/^is[A-Z]/.test(e)});function _o(t,e,n){if(!q.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!q.isUndefined(v[m])});const r=n.metaTokens,i=n.visitor||c,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob!="undefined"&&Blob)&&q.isSpecCompliantForm(e);if(!q.isFunction(i))throw new TypeError("visitor must be a function");function u(y){if(y===null)return"";if(q.isDate(y))return y.toISOString();if(q.isBoolean(y))return y.toString();if(!l&&q.isBlob(y))throw new ve("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(y)||q.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function c(y,m,v){let g=y;if(y&&!v&&typeof y=="object"){if(q.endsWith(m,"{}"))m=r?m:m.slice(0,-2),y=JSON.stringify(y);else if(q.isArray(y)&&Q2(y)||(q.isFileList(y)||q.endsWith(m,"[]"))&&(g=q.toArray(y)))return m=Cm(m),g.forEach(function(E,j){!(q.isUndefined(E)||E===null)&&e.append(a===!0?Sd([m],j,s):a===null?m:m+"[]",u(E))}),!1}return gu(y)?!0:(e.append(Sd(v,m,s),u(y)),!1)}const f=[],p=Object.assign(G2,{defaultVisitor:c,convertValue:u,isVisitable:gu});function h(y,m){if(!q.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(y),q.forEach(y,function(g,A){(!(q.isUndefined(g)||g===null)&&i.call(e,g,q.isString(A)?A.trim():A,m,p))===!0&&h(g,m?m.concat(A):[A])}),f.pop()}}if(!q.isObject(t))throw new TypeError("data must be an object");return h(t),e}function Cd(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function xc(t,e){this._pairs=[],t&&_o(t,this,e)}const km=xc.prototype;km.append=function(e,n){this._pairs.push([e,n])};km.toString=function(e){const n=e?function(r){return e.call(this,r,Cd)}:Cd;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Y2(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jm(t,e,n){if(!e)return t;const r=n&&n.encode||Y2;q.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(e,n):s=q.isURLSearchParams(e)?e.toString():new xc(e,n).toString(r),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class kd{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){q.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Em={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},V2=typeof URLSearchParams!="undefined"?URLSearchParams:xc,K2=typeof FormData!="undefined"?FormData:null,X2=typeof Blob!="undefined"?Blob:null,J2={isBrowser:!0,classes:{URLSearchParams:V2,FormData:K2,Blob:X2},protocols:["http","https","file","blob","url","data"]},wc=typeof window!="undefined"&&typeof document!="undefined",vu=typeof navigator=="object"&&navigator||void 0,Z2=wc&&(!vu||["ReactNative","NativeScript","NS"].indexOf(vu.product)<0),$2=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",e1=wc&&window.location.href||"http://localhost",t1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wc,hasStandardBrowserEnv:Z2,hasStandardBrowserWebWorkerEnv:$2,navigator:vu,origin:e1},Symbol.toStringTag,{value:"Module"})),dt={...t1,...J2};function n1(t,e){return _o(t,new dt.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return dt.isNode&&q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function r1(t){return q.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function i1(t){const e={},n=Object.keys(t);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],e[s]=t[s];return e}function Om(t){function e(n,r,i,s){let a=n[s++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),l=s>=n.length;return a=!a&&q.isArray(i)?i.length:a,l?(q.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!o):((!i[a]||!q.isObject(i[a]))&&(i[a]=[]),e(n,r,i[a],s)&&q.isArray(i[a])&&(i[a]=i1(i[a])),!o)}if(q.isFormData(t)&&q.isFunction(t.entries)){const n={};return q.forEachEntry(t,(r,i)=>{e(r1(r),i,n,0)}),n}return null}function s1(t,e,n){if(q.isString(t))try{return(e||JSON.parse)(t),q.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const da={transitional:Em,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=q.isObject(e);if(s&&q.isHTMLForm(e)&&(e=new FormData(e)),q.isFormData(e))return i?JSON.stringify(Om(e)):e;if(q.isArrayBuffer(e)||q.isBuffer(e)||q.isStream(e)||q.isFile(e)||q.isBlob(e)||q.isReadableStream(e))return e;if(q.isArrayBufferView(e))return e.buffer;if(q.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return n1(e,this.formSerializer).toString();if((o=q.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return _o(o?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),s1(e)):e}],transformResponse:[function(e){const n=this.transitional||da.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(q.isResponse(e)||q.isReadableStream(e))return e;if(e&&q.isString(e)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?ve.from(o,ve.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],t=>{da.headers[t]={}});const a1=q.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"]),o1=t=>{const e={};let n,r,i;return t&&t.split(`
13
- `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||e[n]&&a1[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},jd=Symbol("internals");function ts(t){return t&&String(t).trim().toLowerCase()}function Ja(t){return t===!1||t==null?t:q.isArray(t)?t.map(Ja):String(t)}function l1(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const u1=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ll(t,e,n,r,i){if(q.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!q.isString(e)){if(q.isString(r))return e.indexOf(r)!==-1;if(q.isRegExp(r))return r.test(e)}}function c1(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function d1(t,e){const n=q.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,s,a){return this[r].call(this,e,i,s,a)},configurable:!0})})}let Pt=class{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function s(o,l,u){const c=ts(l);if(!c)throw new Error("header name must be a non-empty string");const f=q.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Ja(o))}const a=(o,l)=>q.forEach(o,(u,c)=>s(u,c,l));if(q.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(q.isString(e)&&(e=e.trim())&&!u1(e))a(o1(e),n);else if(q.isObject(e)&&q.isIterable(e)){let o={},l,u;for(const c of e){if(!q.isArray(c))throw TypeError("Object iterator must return a key-value pair");o[u=c[0]]=(l=o[u])?q.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}a(o,n)}else e!=null&&s(n,e,r);return this}get(e,n){if(e=ts(e),e){const r=q.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return l1(i);if(q.isFunction(n))return n.call(this,i,r);if(q.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ts(e),e){const r=q.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||ll(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function s(a){if(a=ts(a),a){const o=q.findKey(r,a);o&&(!n||ll(r,r[o],o,n))&&(delete r[o],i=!0)}}return q.isArray(e)?e.forEach(s):s(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!e||ll(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const n=this,r={};return q.forEach(this,(i,s)=>{const a=q.findKey(r,s);if(a){n[a]=Ja(i),delete n[s];return}const o=e?c1(s):String(s).trim();o!==s&&delete n[s],n[o]=Ja(i),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return q.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
14
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[jd]=this[jd]={accessors:{}}).accessors,i=this.prototype;function s(a){const o=ts(a);r[o]||(d1(i,a),r[o]=!0)}return q.isArray(e)?e.forEach(s):s(e),this}};Pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);q.reduceDescriptors(Pt.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});q.freezeMethods(Pt);function ul(t,e){const n=this||da,r=e||n,i=Pt.from(r.headers);let s=r.data;return q.forEach(t,function(o){s=o.call(n,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Pm(t){return!!(t&&t.__CANCEL__)}function Wi(t,e,n){ve.call(this,t==null?"canceled":t,ve.ERR_CANCELED,e,n),this.name="CanceledError"}q.inherits(Wi,ve,{__CANCEL__:!0});function Tm(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new ve("Request failed with status code "+n.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function f1(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function h1(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,s=0,a;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=r[s];a||(a=u),n[i]=l,r[i]=u;let f=s,p=0;for(;f!==i;)p+=n[f++],f=f%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),u-a<e)return;const h=c&&u-c;return h?Math.round(p*1e3/h):void 0}}function p1(t,e){let n=0,r=1e3/e,i,s;const a=(u,c=Date.now())=>{n=c,i=null,s&&(clearTimeout(s),s=null),t.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?a(u,c):(i=u,s||(s=setTimeout(()=>{s=null,a(i)},r-f)))},()=>i&&a(i)]}const co=(t,e,n=3)=>{let r=0;const i=h1(50,250);return p1(s=>{const a=s.loaded,o=s.lengthComputable?s.total:void 0,l=a-r,u=i(l),c=a<=o;r=a;const f={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&c?(o-a)/u:void 0,event:s,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(f)},n)},Ed=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Od=t=>(...e)=>q.asap(()=>t(...e)),y1=dt.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,dt.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(dt.origin),dt.navigator&&/(msie|trident)/i.test(dt.navigator.userAgent)):()=>!0,m1=dt.hasStandardBrowserEnv?{write(t,e,n,r,i,s){const a=[t+"="+encodeURIComponent(e)];q.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),q.isString(r)&&a.push("path="+r),q.isString(i)&&a.push("domain="+i),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function g1(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function v1(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Im(t,e,n){let r=!g1(e);return t&&(r||n==!1)?v1(t,e):e}const Pd=t=>t instanceof Pt?{...t}:t;function ti(t,e){e=e||{};const n={};function r(u,c,f,p){return q.isPlainObject(u)&&q.isPlainObject(c)?q.merge.call({caseless:p},u,c):q.isPlainObject(c)?q.merge({},c):q.isArray(c)?c.slice():c}function i(u,c,f,p){if(q.isUndefined(c)){if(!q.isUndefined(u))return r(void 0,u,f,p)}else return r(u,c,f,p)}function s(u,c){if(!q.isUndefined(c))return r(void 0,c)}function a(u,c){if(q.isUndefined(c)){if(!q.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function o(u,c,f){if(f in e)return r(u,c);if(f in t)return r(void 0,u)}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(u,c,f)=>i(Pd(u),Pd(c),f,!0)};return q.forEach(Object.keys(Object.assign({},t,e)),function(c){const f=l[c]||i,p=f(t[c],e[c],c);q.isUndefined(p)&&f!==o||(n[c]=p)}),n}const Mm=t=>{const e=ti({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:o}=e;e.headers=a=Pt.from(a),e.url=jm(Im(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(q.isFormData(n)){if(dt.hasStandardBrowserEnv||dt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(dt.hasStandardBrowserEnv&&(r&&q.isFunction(r)&&(r=r(e)),r||r!==!1&&y1(e.url))){const u=i&&s&&m1.read(s);u&&a.set(i,u)}return e},b1=typeof XMLHttpRequest!="undefined",x1=b1&&function(t){return new Promise(function(n,r){const i=Mm(t);let s=i.data;const a=Pt.from(i.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:u}=i,c,f,p,h,y;function m(){h&&h(),y&&y(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function g(){if(!v)return;const E=Pt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),S={data:!o||o==="text"||o==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:E,config:t,request:v};Tm(function(w){n(w),m()},function(w){r(w),m()},S),v=null}"onloadend"in v?v.onloadend=g:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(g)},v.onabort=function(){v&&(r(new ve("Request aborted",ve.ECONNABORTED,t,v)),v=null)},v.onerror=function(){r(new ve("Network Error",ve.ERR_NETWORK,t,v)),v=null},v.ontimeout=function(){let j=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const S=i.transitional||Em;i.timeoutErrorMessage&&(j=i.timeoutErrorMessage),r(new ve(j,S.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,t,v)),v=null},s===void 0&&a.setContentType(null),"setRequestHeader"in v&&q.forEach(a.toJSON(),function(j,S){v.setRequestHeader(S,j)}),q.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),o&&o!=="json"&&(v.responseType=i.responseType),u&&([p,y]=co(u,!0),v.addEventListener("progress",p)),l&&v.upload&&([f,h]=co(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(c=E=>{v&&(r(!E||E.type?new Wi(null,t,v):E),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const A=f1(i.url);if(A&&dt.protocols.indexOf(A)===-1){r(new ve("Unsupported protocol "+A+":",ve.ERR_BAD_REQUEST,t));return}v.send(s||null)})},w1=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,i;const s=function(u){if(!i){i=!0,o();const c=u instanceof Error?u:this.reason;r.abort(c instanceof ve?c:new Wi(c instanceof Error?c.message:c))}};let a=e&&setTimeout(()=>{a=null,s(new ve(`timeout ${e} of ms exceeded`,ve.ETIMEDOUT))},e);const o=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),t=null)};t.forEach(u=>u.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>q.asap(o),l}},A1=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},S1=async function*(t,e){for await(const n of C1(t))yield*A1(n,e)},C1=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Td=(t,e,n,r)=>{const i=S1(t,e);let s=0,a,o=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){o(),l.close();return}let f=c.byteLength;if(n){let p=s+=f;n(p)}l.enqueue(new Uint8Array(c))}catch(u){throw o(u),u}},cancel(l){return o(l),i.return()}},{highWaterMark:2})},Do=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Lm=Do&&typeof ReadableStream=="function",k1=Do&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Nm=(t,...e)=>{try{return!!t(...e)}catch(n){return!1}},j1=Lm&&Nm(()=>{let t=!1;const e=new Request(dt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Id=64*1024,bu=Lm&&Nm(()=>q.isReadableStream(new Response("").body)),fo={stream:bu&&(t=>t.body)};Do&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!fo[e]&&(fo[e]=q.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new ve(`Response type '${e}' is not supported`,ve.ERR_NOT_SUPPORT,r)})})})(new Response);const E1=async t=>{if(t==null)return 0;if(q.isBlob(t))return t.size;if(q.isSpecCompliantForm(t))return(await new Request(dt.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(q.isArrayBufferView(t)||q.isArrayBuffer(t))return t.byteLength;if(q.isURLSearchParams(t)&&(t=t+""),q.isString(t))return(await k1(t)).byteLength},O1=async(t,e)=>{const n=q.toFiniteNumber(t.getContentLength());return n==null?E1(e):n},P1=Do&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:s,timeout:a,onDownloadProgress:o,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:p}=Mm(t);u=u?(u+"").toLowerCase():"text";let h=w1([i,s&&s.toAbortSignal()],a),y;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(l&&j1&&n!=="get"&&n!=="head"&&(v=await O1(c,r))!==0){let S=new Request(e,{method:"POST",body:r,duplex:"half"}),b;if(q.isFormData(r)&&(b=S.headers.get("content-type"))&&c.setContentType(b),S.body){const[w,x]=Ed(v,co(Od(l)));r=Td(S.body,Id,w,x)}}q.isString(f)||(f=f?"include":"omit");const g="credentials"in Request.prototype;y=new Request(e,{...p,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:g?f:void 0});let A=await fetch(y,p);const E=bu&&(u==="stream"||u==="response");if(bu&&(o||E&&m)){const S={};["status","statusText","headers"].forEach(N=>{S[N]=A[N]});const b=q.toFiniteNumber(A.headers.get("content-length")),[w,x]=o&&Ed(b,co(Od(o),!0))||[];A=new Response(Td(A.body,Id,w,()=>{x&&x(),m&&m()}),S)}u=u||"text";let j=await fo[q.findKey(fo,u)||"text"](A,t);return!E&&m&&m(),await new Promise((S,b)=>{Tm(S,b,{data:j,headers:Pt.from(A.headers),status:A.status,statusText:A.statusText,config:t,request:y})})}catch(g){throw m&&m(),g&&g.name==="TypeError"&&/Load failed|fetch/i.test(g.message)?Object.assign(new ve("Network Error",ve.ERR_NETWORK,t,y),{cause:g.cause||g}):ve.from(g,g&&g.code,t,y)}}),xu={http:W2,xhr:x1,fetch:P1};q.forEach(xu,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(n){}Object.defineProperty(t,"adapterName",{value:e})}});const Md=t=>`- ${t}`,T1=t=>q.isFunction(t)||t===null||t===!1,Rm={getAdapter:t=>{t=q.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let s=0;s<e;s++){n=t[s];let a;if(r=n,!T1(n)&&(r=xu[(a=String(n)).toLowerCase()],r===void 0))throw new ve(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+s]=r}if(!r){const s=Object.entries(i).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?s.length>1?`since :
15
- `+s.map(Md).join(`
16
- `):" "+Md(s[0]):"as no adapter specified";throw new ve("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:xu};function cl(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Wi(null,t)}function Ld(t){return cl(t),t.headers=Pt.from(t.headers),t.data=ul.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Rm.getAdapter(t.adapter||da.adapter)(t).then(function(r){return cl(t),r.data=ul.call(t,t.transformResponse,r),r.headers=Pt.from(r.headers),r},function(r){return Pm(r)||(cl(t),r&&r.response&&(r.response.data=ul.call(t,t.transformResponse,r.response),r.response.headers=Pt.from(r.response.headers))),Promise.reject(r)})}const _m="1.10.0",Bo={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Bo[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Nd={};Bo.transitional=function(e,n,r){function i(s,a){return"[Axios v"+_m+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,o)=>{if(e===!1)throw new ve(i(a," has been removed"+(n?" in "+n:"")),ve.ERR_DEPRECATED);return n&&!Nd[a]&&(Nd[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,o):!0}};Bo.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function I1(t,e,n){if(typeof t!="object")throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const s=r[i],a=e[s];if(a){const o=t[s],l=o===void 0||a(o,s,t);if(l!==!0)throw new ve("option "+s+" must be "+l,ve.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ve("Unknown option "+s,ve.ERR_BAD_OPTION)}}const Za={assertOptions:I1,validators:Bo},yn=Za.validators;let Xr=class{constructor(e){this.defaults=e||{},this.interceptors={request:new kd,response:new kd}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
17
- `+s):r.stack=s}catch(a){}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ti(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Za.assertOptions(r,{silentJSONParsing:yn.transitional(yn.boolean),forcedJSONParsing:yn.transitional(yn.boolean),clarifyTimeoutError:yn.transitional(yn.boolean)},!1),i!=null&&(q.isFunction(i)?n.paramsSerializer={serialize:i}:Za.assertOptions(i,{encode:yn.function,serialize:yn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Za.assertOptions(n,{baseUrl:yn.spelling("baseURL"),withXsrfToken:yn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&q.merge(s.common,s[n.method]);s&&q.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),n.headers=Pt.concat(a,s);const o=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,o.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,f=0,p;if(!l){const y=[Ld.bind(this),void 0];for(y.unshift.apply(y,o),y.push.apply(y,u),p=y.length,c=Promise.resolve(n);f<p;)c=c.then(y[f++],y[f++]);return c}p=o.length;let h=n;for(f=0;f<p;){const y=o[f++],m=o[f++];try{h=y(h)}catch(v){m.call(this,v);break}}try{c=Ld.call(this,h)}catch(y){return Promise.reject(y)}for(f=0,p=u.length;f<p;)c=c.then(u[f++],u[f++]);return c}getUri(e){e=ti(this.defaults,e);const n=Im(e.baseURL,e.url,e.allowAbsoluteUrls);return jm(n,e.params,e.paramsSerializer)}};q.forEach(["delete","get","head","options"],function(e){Xr.prototype[e]=function(n,r){return this.request(ti(r||{},{method:e,url:n,data:(r||{}).data}))}});q.forEach(["post","put","patch"],function(e){function n(r){return function(s,a,o){return this.request(ti(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Xr.prototype[e]=n(),Xr.prototype[e+"Form"]=n(!0)});let M1=class Dm{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(o=>{r.subscribe(o),s=o}).then(i);return a.cancel=function(){r.unsubscribe(s)},a},e(function(s,a,o){r.reason||(r.reason=new Wi(s,a,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Dm(function(i){e=i}),cancel:e}}};function L1(t){return function(n){return t.apply(null,n)}}function N1(t){return q.isObject(t)&&t.isAxiosError===!0}const wu={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(wu).forEach(([t,e])=>{wu[e]=t});function Bm(t){const e=new Xr(t),n=pm(Xr.prototype.request,e);return q.extend(n,Xr.prototype,e,{allOwnKeys:!0}),q.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Bm(ti(t,i))},n}const qe=Bm(da);qe.Axios=Xr;qe.CanceledError=Wi;qe.CancelToken=M1;qe.isCancel=Pm;qe.VERSION=_m;qe.toFormData=_o;qe.AxiosError=ve;qe.Cancel=qe.CanceledError;qe.all=function(e){return Promise.all(e)};qe.spread=L1;qe.isAxiosError=N1;qe.mergeConfig=ti;qe.AxiosHeaders=Pt;qe.formToJSON=t=>Om(q.isHTMLForm(t)?new FormData(t):t);qe.getAdapter=Rm.getAdapter;qe.HttpStatusCode=wu;qe.default=qe;const{Axios:bT,AxiosError:xT,CanceledError:wT,isCancel:AT,CancelToken:ST,VERSION:CT,all:kT,Cancel:jT,isAxiosError:R1,spread:ET,toFormData:OT,AxiosHeaders:PT,HttpStatusCode:TT,formToJSON:IT,getAdapter:MT,mergeConfig:LT}=qe,_1={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function _s(t){"@babel/helpers - typeof";return _s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_s(t)}function bt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return Dt(A,"_invoke",function(E,j,S){var b,w,x,N=0,_=S||[],I=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(P,D){return b=P,w=0,x=t,T.n=D,a}};function z(L,P){for(w=L,x=P,e=0;!I&&N&&!D&&e<_.length;e++){var D,B=_[e],V=T.p,W=B[2];L>3?(D=W===P)&&(x=B[(w=B[4])?5:(w=3,3)],B[4]=B[5]=t):B[0]<=V&&((D=L<2&&V<B[1])?(w=0,T.v=P,T.n=B[1]):V<W&&(D=L<3||B[0]>P||P>W)&&(B[4]=L,B[5]=P,T.n=W,w=0))}if(D||L>1)return a;throw I=!0,P}return function(L,P,D){if(N>1)throw TypeError("Generator is already running");for(I&&P===1&&z(P,D),w=P,x=D;(e=w<2?t:x)||!I;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(L="next"),e=b[L]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+L+"' method"),w=1);b=t}else if((e=(I=T.n<0)?x:E.call(j,T))!==a)break}catch(B){b=t,w=1,x=B}finally{N=1}}return{value:e,done:I}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(Dt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,Dt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,Dt(f,"constructor",u),Dt(u,"constructor",l),l.displayName="GeneratorFunction",Dt(u,i,"GeneratorFunction"),Dt(f),Dt(f,i,"Generator"),Dt(f,r,function(){return this}),Dt(f,"toString",function(){return"[object Generator]"}),(bt=function(){return{w:s,m:p}})()}function Dt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}Dt=function(a,o,l,u){function c(f,p){Dt(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},Dt(t,e,n,r)}function Rd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Jr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Rd(Object(n),!0).forEach(function(r){D1(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rd(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function D1(t,e,n){return(e=B1(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function B1(t){var e=F1(t,"string");return _s(e)=="symbol"?e:e+""}function F1(t,e){if(_s(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(_s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _d(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function ni(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){_d(s,r,i,a,o,"next",l)}function o(l){_d(s,r,i,a,o,"throw",l)}a(void 0)})}}var Fm=function(){var e,n;if((e=document)!==null&&e!==void 0&&e.cookie){var r=document.cookie.match(new RegExp("(^| )access_token=([^;]+)"));if(r)return decodeURIComponent(r[2])}return((n=_1)===null||n===void 0?void 0:n.VITE_MYYOAST_ACCESS_TOKEN)||""};function Dd(t){var e;if(typeof document!="undefined"){var n="; ".concat(document.cookie),r=n.split("; ".concat(t,"="));if(r.length===2)return(e=r.pop())===null||e===void 0?void 0:e.split(";").shift()}}var z1="yst-insights-token",Qi=qe.create({withCredentials:!0});Qi.interceptors.request.use(function(){var t=ni(bt().m(function e(n){var r,i;return bt().w(function(s){for(;;)switch(s.n){case 0:return s.n=1,H1();case 1:return r=s.v,s.n=2,Um();case 2:return i=s.v,n.headers=Jr(Jr(Jr({},n.headers||{}),i?{"X-XSRF-TOKEN":i}:{}),r?{Authorization:"Bearer ".concat(r)}:{}),s.a(2,n)}},e)}));return function(e){return t.apply(this,arguments)}}(),function(t){return Promise.reject(t)},{synchronous:!1});Qi.interceptors.response.use(function(t){return t},function(){var t=ni(bt().m(function e(n){var r;return bt().w(function(i){for(;;)switch(i.n){case 0:return n==null||(r=n.response)===null||r===void 0||r.status,i.a(2,Promise.reject(n))}},e)}));return function(e){return t.apply(this,arguments)}}());function tt(t){return Au.apply(this,arguments)}function Au(){return Au=ni(bt().m(function t(e){var n;return bt().w(function(r){for(;;)switch(r.n){case 0:return n=Jr({},e),delete n.baseURL,r.a(2,Qi.request(Jr(Jr({},n),{},{withCredentials:!0})))}},t)})),Au.apply(this,arguments)}function zm(t){Qi.defaults.baseURL=t}function Bd(){return Qi.defaults.baseURL}function U1(t){Fm=t}var ns=null;function H1(){return Su.apply(this,arguments)}function Su(){return Su=ni(bt().m(function t(){var e,n,r,i,s;return bt().w(function(a){for(;;)switch(a.p=a.n){case 0:if(e=Fm(),n=Qi.defaults.baseURL,r=q1(e,n),i=sessionStorage.getItem(r),!i){a.n=4;break}if(a.p=1,s=JSON.parse(i),!((s==null?void 0:s.validUntil)>Date.now()&&s.value)){a.n=2;break}return a.a(2,String(s.value));case 2:a.n=4;break;case 3:a.p=3,a.v;case 4:if(!ns){a.n=5;break}return a.a(2,ns);case 5:return ns=ni(bt().m(function o(){var l,u,c,f,p;return bt().w(function(h){for(;;)switch(h.p=h.n){case 0:return h.p=0,h.n=1,Um();case 1:return l=h.v,h.n=2,qe.post(n+"/users/getToken",{},{headers:Jr({Authorization:"Bearer "+e},l?{"X-XSRF-TOKEN":l}:{}),withCredentials:!0});case 2:if(u=h.v,c=u.data,!(c!=null&&c.plainTextToken)){h.n=3;break}return sessionStorage.setItem(r,JSON.stringify({value:c.plainTextToken,validUntil:Date.parse(((f=c.accessToken)===null||f===void 0?void 0:f.expires_at)||"")||Date.now()+15*60*1e3})),h.a(2,c.plainTextToken);case 3:h.n=5;break;case 4:h.p=4,p=h.v,qe.isAxiosError(p)?p.response?console.error("Login failed with status",p.response.status,p.response.data):p.request?console.error("Login request made but no response received",p.request):console.error("Error setting up login request",p.message):console.error("Non-Axios error during login",p);case 5:return h.p=5,ns=null,h.f(5);case 6:return h.a(2,"")}},o,null,[[0,4,5,6]])}))(),a.a(2,ns)}},t,null,[[1,3]])})),Su.apply(this,arguments)}function q1(t,e){var n=Array.from(t+e).reduce(function(r,i){return(r<<5)-r+i.charCodeAt(0)},0);return z1+":"+n}var rs=null;function Um(){return Cu.apply(this,arguments)}function Cu(){return Cu=ni(bt().m(function t(){var e;return bt().w(function(n){for(;;)switch(n.n){case 0:if(window.location.hostname===new URL(Bd()||window.location.href).hostname){n.n=1;break}return n.a(2,"");case 1:if(e=Dd("XSRF-TOKEN"),!e){n.n=2;break}return n.a(2,decodeURIComponent(e));case 2:if(!rs){n.n=3;break}return n.a(2,rs);case 3:return rs=ni(bt().m(function r(){var i;return bt().w(function(s){for(;;)switch(s.p=s.n){case 0:return s.p=0,s.n=1,qe.get(((i=Bd())===null||i===void 0?void 0:i.replace("/api/v1",""))+"/sanctum/csrf-cookie",{withCredentials:!0});case 1:return s.a(2,decodeURIComponent(Dd("XSRF-TOKEN")||""));case 2:return s.p=2,rs=null,s.f(2);case 3:return s.a(2)}},r,null,[[0,,2,3]])}))(),n.a(2,rs)}},t)})),Cu.apply(this,arguments)}function Ds(t){"@babel/helpers - typeof";return Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ds(t)}function Fd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function se(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fd(Object(n),!0).forEach(function(r){W1(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fd(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function W1(t,e,n){return(e=Q1(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Q1(t){var e=G1(t,"string");return Ds(e)=="symbol"?e:e+""}function G1(t,e){if(Ds(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ds(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Y1=function(e,n){return tt({url:"/brands/".concat(e,"/analysis"),method:"GET",signal:n})},Ac=function(e){return["/brands/".concat(e,"/analysis")]},V1=function(e,n){var r,i=n!=null?n:{},s=i.query,a=(r=s==null?void 0:s.queryKey)!==null&&r!==void 0?r:Ac(e),o=function(u){var c=u.signal;return Y1(e,c)};return se({queryKey:a,queryFn:o,enabled:!!e},s)};function Sc(t,e,n){var r=V1(t,e),i=Zn(r);return i.queryKey=r.queryKey,i}var K1=function(e,n,r){return tt({url:"/brands/".concat(e,"/analysis/").concat(n),method:"GET",signal:r})},On=function(e,n){return["/brands/".concat(e,"/analysis/").concat(n)]},X1=function(e,n,r){var i,s=r!=null?r:{},a=s.query,o=(i=a==null?void 0:a.queryKey)!==null&&i!==void 0?i:On(e,n),l=function(c){var f=c.signal;return K1(e,n,f)};return se({queryKey:o,queryFn:l,enabled:!!(e&&n)},a)};function Fo(t,e,n,r){var i=X1(t,e,n),s=Zn(i);return s.queryKey=i.queryKey,s}var J1=function(e,n,r){return tt({url:"/brands/".concat(e,"/analysis/").concat(n,"/scans/").concat(r),method:"DELETE"})},Z1=function(e){var n=["deleteScan"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:se(se({},e),{},{mutation:se(se({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId,c=l.analysisId,f=l.scanId;return J1(u,c,f)};return se({mutationFn:s},i)},$1=function(e,n){var r=Z1(e);return $n(r)},ex=function(e,n,r){return tt({url:"/brands/".concat(e,"/analysis/").concat(n,"/status"),method:"GET",signal:r})},Gn=function(e,n){return["/brands/".concat(e,"/analysis/").concat(n,"/status")]},tx=function(e,n,r){var i,s=r!=null?r:{},a=s.query,o=(i=a==null?void 0:a.queryKey)!==null&&i!==void 0?i:Gn(e,n),l=function(c){var f=c.signal;return ex(e,n,f)};return se({queryKey:o,queryFn:l,enabled:!!(e&&n)},a)};function nx(t,e,n,r){var i=tx(t,e,n),s=Zn(i);return s.queryKey=i.queryKey,s}var rx=function(e,n,r,i){return tt({url:"/brands/".concat(e,"/analysis/").concat(n,"/scans/").concat(r,"/query-results"),method:"GET",signal:i})},ix=function(e,n,r){return["/brands/".concat(e,"/analysis/").concat(n,"/scans/").concat(r,"/query-results")]},sx=function(e,n,r,i){var s,a=i!=null?i:{},o=a.query,l=(s=o==null?void 0:o.queryKey)!==null&&s!==void 0?s:ix(e,n,r),u=function(f){var p=f.signal;return rx(e,n,r,p)};return se({queryKey:l,queryFn:u,enabled:!!(e&&n&&r)},o)};function ax(t,e,n,r,i){var s=sx(t,e,n,r),a=Zn(s);return a.queryKey=s.queryKey,a}var ox=function(e){return tt({url:"/users/logout",method:"POST",signal:e})},lx=function(e){var n=["logout"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:se(se({},e),{},{mutation:se(se({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(){return ox()};return se({mutationFn:s},i)},ux=function(e,n){var r=lx(e);return $n(r)},cx=function(e,n){return tt({url:"/brands/".concat(e,"/associated-brands"),method:"GET",signal:n})},ho=function(e){return["/brands/".concat(e,"/associated-brands")]},dx=function(e,n){var r,i=n!=null?n:{},s=i.query,a=(r=s==null?void 0:s.queryKey)!==null&&r!==void 0?r:ho(e),o=function(u){var c=u.signal;return cx(e,c)};return se({queryKey:a,queryFn:o,enabled:!!e},s)};function fx(t,e,n){var r=dx(t,e),i=Zn(r);return i.queryKey=r.queryKey,i}var hx=function(e,n,r){return tt({url:"/brands/".concat(e,"/associated-brand-groups"),method:"POST",headers:{"Content-Type":"application/json"},data:n,signal:r})},px=function(e){var n=["createBrandAssociationGroup"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:se(se({},e),{},{mutation:se(se({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId,c=l.data;return hx(u,c)};return se({mutationFn:s},i)},Hm=function(e,n){var r=px(e);return $n(r)},yx=function(e,n){return tt({url:"/brands/".concat(e,"/associated-brand-groups/").concat(n),method:"DELETE"})},mx=function(e){var n=["deleteBrandAssociationGroup"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:se(se({},e),{},{mutation:se(se({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId,c=l.brandGroupId;return yx(u,c)};return se({mutationFn:s},i)},gx=function(e,n){var r=mx(e);return $n(r)},vx=function(e){return tt({url:"/brands",method:"GET",signal:e})},jn=function(){return["/brands"]},bx=function(e){var n,r=e!=null?e:{},i=r.query,s=(n=i==null?void 0:i.queryKey)!==null&&n!==void 0?n:jn(),a=function(l){var u=l.signal;return vx(u)};return se({queryKey:s,queryFn:a},i)};function oi(t,e){var n=bx(t),r=Zn(n);return r.queryKey=n.queryKey,r}var xx=function(e,n){return tt({url:"/brands",method:"POST",headers:{"Content-Type":"application/json"},data:e,signal:n})},wx=function(e){var n=["createBrand"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:se(se({},e),{},{mutation:se(se({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.data;return xx(u)};return se({mutationFn:s},i)},Ax=function(e,n){var r=wx(e);return $n(r)},Sx=function(e,n){return tt({url:"/brands/".concat(e),method:"GET",signal:n})},zo=function(e){return["/brands/".concat(e)]},Cx=function(e,n){var r,i=n!=null?n:{},s=i.query,a=(r=s==null?void 0:s.queryKey)!==null&&r!==void 0?r:zo(e),o=function(u){var c=u.signal;return Sx(e,c)};return se({queryKey:a,queryFn:o,enabled:!!e},s)};function Bs(t,e,n){var r=Cx(t,e),i=Zn(r);return i.queryKey=r.queryKey,i}var kx=function(e){return tt({url:"/brands/".concat(e),method:"DELETE"})},jx=function(e){var n=["deleteBrand"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:se(se({},e),{},{mutation:se(se({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId;return kx(u)};return se({mutationFn:s},i)},Ex=function(e,n){var r=jx(e);return $n(r)},Ox=function(e,n){return tt({url:"/brands/".concat(e,"/settings"),method:"PATCH",headers:{"Content-Type":"application/json"},data:n})},Px=function(e){var n=["updateBrandSettings"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:se(se({},e),{},{mutation:se(se({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId,c=l.data;return Ox(u,c)};return se({mutationFn:s},i)},qm=function(e,n){var r=Px(e);return $n(r)},Tx=function(e,n){return tt({url:"/brands/".concat(e,"/queries"),method:"PUT",headers:{"Content-Type":"application/json"},data:n})},Ix=function(e){var n=["updateBrandQueries"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:se(se({},e),{},{mutation:se(se({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId,c=l.data;return Tx(u,c)};return se({mutationFn:s},i)},Mx=function(e,n){var r=Ix(e);return $n(r)},Lx=function(e,n){return tt({url:"/brands/".concat(e,"/query-suggestions"),method:"GET",signal:n})},Nx=function(e){return["/brands/".concat(e,"/query-suggestions")]},Rx=function(e,n){var r,i=n!=null?n:{},s=i.query,a=(r=s==null?void 0:s.queryKey)!==null&&r!==void 0?r:Nx(e),o=function(u){var c=u.signal;return Lx(e,c)};return se({queryKey:a,queryFn:o,enabled:!!e},s)};function _x(t,e,n){var r=Rx(t,e),i=Zn(r);return i.queryKey=r.queryKey,i}var Dx=function(e){return tt({url:"/users/current",method:"GET",signal:e})},Uo=function(){return["/users/current"]},Bx=function(e){var n,r=e!=null?e:{},i=r.query,s=(n=i==null?void 0:i.queryKey)!==null&&n!==void 0?n:Uo(),a=function(l){var u=l.signal;return Dx(u)};return se({queryKey:s,queryFn:a},i)};function fa(t,e){var n=Bx(t),r=Zn(n);return r.queryKey=n.queryKey,r}var Fx=function(){return tt({url:"/users/data",method:"DELETE"})},zx=function(e){var n=["deleteUserData"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:se(se({},e),{},{mutation:se(se({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(){return Fx()};return se({mutationFn:s},i)},Ux=function(e,n){var r=zx(e);return $n(r)},Wm=F.createContext(void 0),Hx=function(e){var n,r,i,s,a,o,l=e.children,u=e.brandId,c=e.analysisId,f=e.aiProvider,p=e.hostAppProps,h=p===void 0?{}:p,y=Sa("/brands/:brandId"),m=Sa("/brands/:brandId/*"),v=Sa("/brands/:brandId/analysis/:analysisId"),g=Sa("/brands/:brandId/analysis/:analysisId/*"),A=(v==null||(n=v.params)===null||n===void 0?void 0:n.brandId)||(g==null||(r=g.params)===null||r===void 0?void 0:r.brandId)||(m==null||(i=m.params)===null||i===void 0?void 0:i.brandId)||(y==null||(s=y.params)===null||s===void 0?void 0:s.brandId),E=(v==null||(a=v.params)===null||a===void 0?void 0:a.analysisId)||(g==null||(o=g.params)===null||o===void 0?void 0:o.analysisId),j=F.useMemo(function(){return{brandId:A||u||"",analysisId:E||c||"latest",aiProvider:f||"openai",hostAppProps:h}},[A,u,E,c,f,h]),S=F.useMemo(function(){return{data:j}},[j]);return d.jsx(Wm.Provider,{value:S,children:l})},Qm=F.createContext(void 0),qx=function(e){var n=e.children,r=e.setBrandId,i=e.setAnalysisId,s=e.setAiProvider,a=F.useCallback(function(f){r(f),i("latest")},[r,i]),o=F.useCallback(function(f){i(f)},[i]),l=F.useCallback(function(f){s(f)},[s]),u=F.useMemo(function(){return{setBrandId:a,setAnalysisId:o,setAiProvider:l}},[a,o,l]),c=F.useMemo(function(){return{mutations:u}},[u]);return d.jsx(Qm.Provider,{value:c,children:n})};function dl(t,e){return Yx(t)||Gx(t,e)||Qx(t,e)||Wx()}function Wx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qx(t,e){if(t){if(typeof t=="string")return zd(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zd(t,e):void 0}}function zd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Gx(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function Yx(t){if(Array.isArray(t))return t}var Vx=function(e){var n=e.children,r=e.hostAppProps,i=r===void 0?{}:r,s=F.useState(void 0),a=dl(s,2),o=a[0],l=a[1],u=F.useState("latest"),c=dl(u,2),f=c[0],p=c[1],h=F.useState(void 0),y=dl(h,2),m=y[0],v=y[1];return d.jsx(qx,{brandId:o,setBrandId:l,analysisId:f,setAnalysisId:p,aiProvider:m,setAiProvider:v,children:d.jsx(Hx,{brandId:o,analysisId:f,aiProvider:m,hostAppProps:i,children:n})})},It=function(){var e=F.useContext(Wm);if(e===void 0)throw new Error("useBrandAnalysisData must be used within a BrandAnalysisDataProvider");return e.data},ha=function(){var e=F.useContext(Qm);if(e===void 0)throw new Error("useBrandAnalysisMutations must be used within a BrandAnalysisMutationsProvider");return e.mutations},fl={exports:{}};/*!
12
+ Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let f=vt(),p;if(e){let A=typeof e=="string"?ai(e):e;He(u==="/"||((g=A.pathname)==null?void 0:g.startsWith(u)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${A.pathname}" was given in the \`location\` prop.`),p=A}else p=f;let h=p.pathname||"/",y=h;if(u!=="/"){let A=u.replace(/^\//,"").split("/");y="/"+h.replace(/^\//,"").split("/").slice(A.length).join("/")}let m=tm(t,{pathname:y});sn(c||m!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),sn(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=ab(m&&m.map(A=>Object.assign({},A,{params:Object.assign({},o,A.params),pathname:Zn([u,i.encodeLocation?i.encodeLocation(A.pathname).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?u:Zn([u,i.encodeLocation?i.encodeLocation(A.pathnameBase).pathname:A.pathnameBase])})),s,n,r);return e&&v?L.createElement(ua.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...p},navigationType:"POP"}},v):v}function nb(){let t=db(),e=Yv(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",t),a=L.createElement(L.Fragment,null,L.createElement("p",null,"💿 Hey developer 👋"),L.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",L.createElement("code",{style:s},"ErrorBoundary")," or"," ",L.createElement("code",{style:s},"errorElement")," prop on your route.")),L.createElement(L.Fragment,null,L.createElement("h2",null,"Unexpected Application Error!"),L.createElement("h3",{style:{fontStyle:"italic"}},e),n?L.createElement("pre",{style:i},n):null,a)}var rb=L.createElement(nb,null),ib=class extends L.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return this.state.error!==void 0?L.createElement(an.Provider,{value:this.props.routeContext},L.createElement(mc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function sb({routeContext:t,match:e,children:n}){let r=L.useContext(Gi);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),L.createElement(an.Provider,{value:t},n)}function ab(t,e=[],n=null,r=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let i=t,s=n==null?void 0:n.errors;if(s!=null){let l=i.findIndex(u=>u.route.id&&(s==null?void 0:s[u.route.id])!==void 0);He(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,l+1))}let a=!1,o=-1;if(n)for(let l=0;l<i.length;l++){let u=i[l];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(o=l),u.route.id){let{loaderData:c,errors:f}=n,p=u.route.loader&&!c.hasOwnProperty(u.route.id)&&(!f||f[u.route.id]===void 0);if(u.route.lazy||p){a=!0,o>=0?i=i.slice(0,o+1):i=[i[0]];break}}}return i.reduceRight((l,u,c)=>{let f,p=!1,h=null,y=null;n&&(f=s&&u.route.id?s[u.route.id]:void 0,h=u.route.errorElement||rb,a&&(o<0&&c===0?(cm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,y=null):o===c&&(p=!0,y=u.route.hydrateFallbackElement||null)));let m=e.concat(i.slice(0,c+1)),v=()=>{let g;return f?g=h:p?g=y:u.route.Component?g=L.createElement(u.route.Component,null):u.route.element?g=u.route.element:g=l,L.createElement(sb,{match:u,routeContext:{outlet:l,matches:m,isDataRoute:n!=null},children:g})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?L.createElement(ib,{location:n.location,revalidation:n.revalidation,component:h,error:f,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}function gc(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ob(t){let e=L.useContext(Gi);return He(e,gc(t)),e}function lb(t){let e=L.useContext(Io);return He(e,gc(t)),e}function ub(t){let e=L.useContext(an);return He(e,gc(t)),e}function vc(t){let e=ub(t),n=e.matches[e.matches.length-1];return He(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function cb(){return vc("useRouteId")}function db(){var r;let t=L.useContext(mc),e=lb("useRouteError"),n=vc("useRouteError");return t!==void 0?t:(r=e.errors)==null?void 0:r[n]}function fb(){let{router:t}=ob("useNavigate"),e=vc("useNavigate"),n=L.useRef(!1);return lm(()=>{n.current=!0}),L.useCallback(async(i,s={})=>{sn(n.current,om),n.current&&(typeof i=="number"?t.navigate(i):await t.navigate(i,{fromRouteId:e,...s}))},[t,e])}var xd={};function cm(t,e,n){!e&&!xd[t]&&(xd[t]=!0,sn(!1,n))}L.memo(hb);function hb({routes:t,future:e,state:n}){return um(t,void 0,n,e)}function pb({basename:t,children:e,initialEntries:n,initialIndex:r}){let i=L.useRef();i.current==null&&(i.current=jv({initialEntries:n,initialIndex:r,v5Compat:!0}));let s=i.current,[a,o]=L.useState({action:s.action,location:s.location}),l=L.useCallback(u=>{L.startTransition(()=>o(u))},[o]);return L.useLayoutEffect(()=>s.listen(l),[s,l]),L.createElement(yb,{basename:t,children:e,location:a.location,navigationType:a.action,navigator:s})}function wi({to:t,replace:e,state:n,relative:r}){He(oi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=L.useContext(hn);sn(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=L.useContext(an),{pathname:a}=vt(),o=ft(),l=yc(t,pc(s),a,r==="path"),u=JSON.stringify(l);return L.useEffect(()=>{o(JSON.parse(u),{replace:e,state:n,relative:r})},[o,u,r,e,n]),null}function zi(t){return eb(t.context)}function lt(t){He(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function yb({basename:t="/",children:e=null,location:n,navigationType:r="POP",navigator:i,static:s=!1}){He(!oi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=t.replace(/^\/*/,"/"),o=L.useMemo(()=>({basename:a,navigator:i,static:s,future:{}}),[a,i,s]);typeof n=="string"&&(n=ai(n));let{pathname:l="/",search:u="",hash:c="",state:f=null,key:p="default"}=n,h=L.useMemo(()=>{let y=er(l,a);return y==null?null:{location:{pathname:y,search:u,hash:c,state:f,key:p},navigationType:r}},[a,l,u,c,f,p,r]);return sn(h!=null,`<Router basename="${a}"> is not able to match the URL "${l}${u}${c}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:L.createElement(hn.Provider,{value:o},L.createElement(ua.Provider,{children:e,value:h}))}function mb({children:t,location:e}){return tb(ru(t),e)}function ru(t,e=[]){let n=[];return L.Children.forEach(t,(r,i)=>{if(!L.isValidElement(r))return;let s=[...e,i];if(r.type===L.Fragment){n.push.apply(n,ru(r.props.children,s));return}He(r.type===lt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),He(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=ru(r.props.children,s)),n.push(a)}),n}var Va="get",Ka="application/x-www-form-urlencoded";function Lo(t){return t!=null&&typeof t.tagName=="string"}function gb(t){return Lo(t)&&t.tagName.toLowerCase()==="button"}function vb(t){return Lo(t)&&t.tagName.toLowerCase()==="form"}function bb(t){return Lo(t)&&t.tagName.toLowerCase()==="input"}function xb(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function wb(t,e){return t.button===0&&(!e||e==="_self")&&!xb(t)}var ka=null;function Ab(){if(ka===null)try{new FormData(document.createElement("form"),0),ka=!1}catch(t){ka=!0}return ka}var Sb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function cl(t){return t!=null&&!Sb.has(t)?(sn(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ka}"`),null):t}function Cb(t,e){let n,r,i,s,a;if(vb(t)){let o=t.getAttribute("action");r=o?er(o,e):null,n=t.getAttribute("method")||Va,i=cl(t.getAttribute("enctype"))||Ka,s=new FormData(t)}else if(gb(t)||bb(t)&&(t.type==="submit"||t.type==="image")){let o=t.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||o.getAttribute("action");if(r=l?er(l,e):null,n=t.getAttribute("formmethod")||o.getAttribute("method")||Va,i=cl(t.getAttribute("formenctype"))||cl(o.getAttribute("enctype"))||Ka,s=new FormData(o,t),!Ab()){let{name:u,type:c,value:f}=t;if(c==="image"){let p=u?`${u}.`:"";s.append(`${p}x`,"0"),s.append(`${p}y`,"0")}else u&&s.append(u,f)}}else{if(Lo(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Va,r=null,i=Ka,a=t}return s&&i==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}function bc(t,e){if(t===!1||t===null||typeof t=="undefined")throw new Error(e)}async function kb(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function jb(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Eb(t,e,n){let r=await Promise.all(t.map(async i=>{let s=e.routes[i.route.id];if(s){let a=await kb(s,n);return a.links?a.links():[]}return[]}));return Ib(r.flat(1).filter(jb).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function wd(t,e,n,r,i,s){let a=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,o=(l,u)=>{var c;return n[u].pathname!==l.pathname||((c=n[u].route.path)==null?void 0:c.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return s==="assets"?e.filter((l,u)=>a(l,u)||o(l,u)):s==="data"?e.filter((l,u)=>{var f;let c=r.routes[l.route.id];if(!c||!c.hasLoader)return!1;if(a(l,u)||o(l,u))return!0;if(l.route.shouldRevalidate){let p=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(t,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function Ob(t,e,{includeHydrateFallback:n}={}){return Pb(t.map(r=>{let i=e.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function Pb(t){return[...new Set(t)]}function Tb(t){let e={},n=Object.keys(t).sort();for(let r of n)e[r]=t[r];return e}function Ib(t,e){let n=new Set;return new Set(e),t.reduce((r,i)=>{let s=JSON.stringify(Tb(i));return n.has(s)||(n.add(s),r.push({key:s,link:i})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Mb=new Set([100,101,204,205]);function Lb(t,e){let n=typeof t=="string"?new URL(t,typeof window=="undefined"?"server://singlefetch/":window.location.origin):t;return n.pathname==="/"?n.pathname="_root.data":e&&er(n.pathname,e)==="/"?n.pathname=`${e.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function dm(){let t=L.useContext(Gi);return bc(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Nb(){let t=L.useContext(Io);return bc(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var xc=L.createContext(void 0);xc.displayName="FrameworkContext";function fm(){let t=L.useContext(xc);return bc(t,"You must render this element inside a <HydratedRouter> element"),t}function Rb(t,e){let n=L.useContext(xc),[r,i]=L.useState(!1),[s,a]=L.useState(!1),{onFocus:o,onBlur:l,onMouseEnter:u,onMouseLeave:c,onTouchStart:f}=e,p=L.useRef(null);L.useEffect(()=>{if(t==="render"&&a(!0),t==="viewport"){let m=g=>{g.forEach(A=>{a(A.isIntersecting)})},v=new IntersectionObserver(m,{threshold:.5});return p.current&&v.observe(p.current),()=>{v.disconnect()}}},[t]),L.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let h=()=>{i(!0)},y=()=>{i(!1),a(!1)};return n?t!=="intent"?[s,p,{}]:[s,p,{onFocus:rs(o,h),onBlur:rs(l,y),onMouseEnter:rs(u,h),onMouseLeave:rs(c,y),onTouchStart:rs(f,h)}]:[!1,p,{}]}function rs(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function _b({page:t,...e}){let{router:n}=dm(),r=L.useMemo(()=>tm(n.routes,t,n.basename),[n.routes,t,n.basename]);return r?L.createElement(Bb,{page:t,matches:r,...e}):null}function Db(t){let{manifest:e,routeModules:n}=fm(),[r,i]=L.useState([]);return L.useEffect(()=>{let s=!1;return Eb(t,e,n).then(a=>{s||i(a)}),()=>{s=!0}},[t,e,n]),r}function Bb({page:t,matches:e,...n}){let r=vt(),{manifest:i,routeModules:s}=fm(),{basename:a}=dm(),{loaderData:o,matches:l}=Nb(),u=L.useMemo(()=>wd(t,e,l,i,r,"data"),[t,e,l,i,r]),c=L.useMemo(()=>wd(t,e,l,i,r,"assets"),[t,e,l,i,r]),f=L.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let y=new Set,m=!1;if(e.forEach(g=>{var E;let A=i.routes[g.route.id];!A||!A.hasLoader||(!u.some(C=>C.route.id===g.route.id)&&g.route.id in o&&((E=s[g.route.id])!=null&&E.shouldRevalidate)||A.hasClientLoader?m=!0:y.add(g.route.id))}),y.size===0)return[];let v=Lb(t,a);return m&&y.size>0&&v.searchParams.set("_routes",e.filter(g=>y.has(g.route.id)).map(g=>g.route.id).join(",")),[v.pathname+v.search]},[a,o,r,i,u,e,t,s]),p=L.useMemo(()=>Ob(c,i),[c,i]),h=Db(c);return L.createElement(L.Fragment,null,f.map(y=>L.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),p.map(y=>L.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),h.map(({key:y,link:m})=>L.createElement("link",{key:y,...m})))}function Fb(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var hm=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";try{hm&&(window.__reactRouterVersion="7.6.3")}catch(t){}var pm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jr=L.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:i,reloadDocument:s,replace:a,state:o,target:l,to:u,preventScrollReset:c,viewTransition:f,...p},h){let{basename:y}=L.useContext(hn),m=typeof u=="string"&&pm.test(u),v,g=!1;if(typeof u=="string"&&m&&(v=u,hm))try{let N=new URL(window.location.href),D=u.startsWith("//")?new URL(N.protocol+u):new URL(u),M=er(D.pathname,y);D.origin===N.origin&&M!=null?u=M+D.search+D.hash:g=!0}catch(N){sn(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let A=Jv(u,{relative:i}),[E,C,S]=Rb(r,p),b=qb(u,{replace:a,state:o,target:l,preventScrollReset:c,relative:i,viewTransition:f});function w(N){e&&e(N),N.defaultPrevented||b(N)}let x=L.createElement("a",{...p,...S,href:v||A,onClick:g||s?e:w,ref:Fb(h,C),target:l,"data-discover":!m&&n==="render"?"true":void 0});return E&&!m?L.createElement(L.Fragment,null,x,L.createElement(_b,{page:A})):x});jr.displayName="Link";var zb=L.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:i=!1,style:s,to:a,viewTransition:o,children:l,...u},c){let f=ca(a,{relative:u.relative}),p=vt(),h=L.useContext(Io),{navigator:y,basename:m}=L.useContext(hn),v=h!=null&&Vb(f)&&o===!0,g=y.encodeLocation?y.encodeLocation(f).pathname:f.pathname,A=p.pathname,E=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;n||(A=A.toLowerCase(),E=E?E.toLowerCase():null,g=g.toLowerCase()),E&&m&&(E=er(E,m)||E);const C=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let S=A===g||!i&&A.startsWith(g)&&A.charAt(C)==="/",b=E!=null&&(E===g||!i&&E.startsWith(g)&&E.charAt(g.length)==="/"),w={isActive:S,isPending:b,isTransitioning:v},x=S?e:void 0,N;typeof r=="function"?N=r(w):N=[r,S?"active":null,b?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let D=typeof s=="function"?s(w):s;return L.createElement(jr,{...u,"aria-current":x,className:N,ref:c,style:D,to:a,viewTransition:o},typeof l=="function"?l(w):l)});zb.displayName="NavLink";var Ub=L.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:i,state:s,method:a=Va,action:o,onSubmit:l,relative:u,preventScrollReset:c,viewTransition:f,...p},h)=>{let y=Qb(),m=Yb(o,{relative:u}),v=a.toLowerCase()==="get"?"get":"post",g=typeof o=="string"&&pm.test(o),A=E=>{if(l&&l(E),E.defaultPrevented)return;E.preventDefault();let C=E.nativeEvent.submitter,S=(C==null?void 0:C.getAttribute("formmethod"))||a;y(C||E.currentTarget,{fetcherKey:e,method:S,navigate:n,replace:i,state:s,relative:u,preventScrollReset:c,viewTransition:f})};return L.createElement("form",{ref:h,method:v,action:m,onSubmit:r?l:A,...p,"data-discover":!g&&t==="render"?"true":void 0})});Ub.displayName="Form";function Hb(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ym(t){let e=L.useContext(Gi);return He(e,Hb(t)),e}function qb(t,{target:e,replace:n,state:r,preventScrollReset:i,relative:s,viewTransition:a}={}){let o=ft(),l=vt(),u=ca(t,{relative:s});return L.useCallback(c=>{if(wb(c,e)){c.preventDefault();let f=n!==void 0?n:oo(l)===oo(u);o(t,{replace:f,state:r,preventScrollReset:i,relative:s,viewTransition:a})}},[l,o,u,n,r,e,t,i,s,a])}var Wb=0,Gb=()=>`__${String(++Wb)}__`;function Qb(){let{router:t}=ym("useSubmit"),{basename:e}=L.useContext(hn),n=cb();return L.useCallback(async(r,i={})=>{let{action:s,method:a,encType:o,formData:l,body:u}=Cb(r,e);if(i.navigate===!1){let c=i.fetcherKey||Gb();await t.fetch(c,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:l,body:u,formMethod:i.method||a,formEncType:i.encType||o,flushSync:i.flushSync})}else await t.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:l,body:u,formMethod:i.method||a,formEncType:i.encType||o,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[t,e,n])}function Yb(t,{relative:e}={}){let{basename:n}=L.useContext(hn),r=L.useContext(an);He(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...ca(t||".",{relative:e})},a=vt();if(t==null){s.search=a.search;let o=new URLSearchParams(s.search),l=o.getAll("index");if(l.some(c=>c==="")){o.delete("index"),l.filter(f=>f).forEach(f=>o.append("index",f));let c=o.toString();s.search=c?`?${c}`:""}}return(!t||t===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Zn([n,s.pathname])),oo(s)}function Vb(t,e={}){let n=L.useContext(am);He(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ym("useViewTransitionState"),i=ca(t,{relative:e.relative});if(!n.isTransitioning)return!1;let s=er(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=er(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Fi(i.pathname,a)!=null||Fi(i.pathname,s)!=null}[...Mb];var Qi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Kb={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},kn,Ur,qy,Xb=(qy=class{constructor(){ae(this,kn,Kb);ae(this,Ur,!1)}setTimeoutProvider(t){process.env.NODE_ENV!=="production"&&_(this,Ur)&&t!==_(this,kn)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:_(this,kn),provider:t}),ee(this,kn,t),process.env.NODE_ENV!=="production"&&ee(this,Ur,!1)}setTimeout(t,e){return process.env.NODE_ENV!=="production"&&ee(this,Ur,!0),_(this,kn).setTimeout(t,e)}clearTimeout(t){_(this,kn).clearTimeout(t)}setInterval(t,e){return process.env.NODE_ENV!=="production"&&ee(this,Ur,!0),_(this,kn).setInterval(t,e)}clearInterval(t){_(this,kn).clearInterval(t)}},kn=new WeakMap,Ur=new WeakMap,qy),Br=new Xb;function Jb(t){setTimeout(t,0)}var ei=typeof window=="undefined"||"Deno"in globalThis;function mt(){}function Zb(t,e){return typeof t=="function"?t(e):t}function iu(t){return typeof t=="number"&&t>=0&&t!==1/0}function mm(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Ar(t,e){return typeof t=="function"?t(e):t}function en(t,e){return typeof t=="function"?t(e):t}function Ad(t,e){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:a,stale:o}=t;if(a){if(r){if(e.queryHash!==wc(a,e.options))return!1}else if(!_s(e.queryKey,a))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||i&&i!==e.state.fetchStatus||s&&!s(e))}function Sd(t,e){const{exact:n,status:r,predicate:i,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(ti(e.options.mutationKey)!==ti(s))return!1}else if(!_s(e.options.mutationKey,s))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function wc(t,e){return((e==null?void 0:e.queryKeyHashFn)||ti)(t)}function ti(t){return JSON.stringify(t,(e,n)=>au(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function _s(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>_s(t[n],e[n])):!1}var $b=Object.prototype.hasOwnProperty;function su(t,e){if(t===e)return t;const n=Cd(t)&&Cd(e);if(!n&&!(au(t)&&au(e)))return e;const i=(n?t:Object.keys(t)).length,s=n?e:Object.keys(e),a=s.length,o=n?new Array(a):{};let l=0;for(let u=0;u<a;u++){const c=n?u:s[u],f=t[c],p=e[c];if(f===p){o[c]=f,(n?u<i:$b.call(t,c))&&l++;continue}if(f===null||p===null||typeof f!="object"||typeof p!="object"){o[c]=p;continue}const h=su(f,p);o[c]=h,h===f&&l++}return i===a&&l===i?t:o}function lo(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function Cd(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function au(t){if(!kd(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!kd(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function kd(t){return Object.prototype.toString.call(t)==="[object Object]"}function e2(t){return new Promise(e=>{Br.setTimeout(e,t)})}function ou(t,e,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(t,e);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return su(t,e)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return su(t,e)}return e}function t2(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function n2(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var uo=Symbol();function gm(t,e){return process.env.NODE_ENV!=="production"&&t.queryFn===uo&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`),!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===uo?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function vm(t,e){return typeof t=="function"?t(...e):!!t}var Hr,cr,Ei,Wy,r2=(Wy=class extends Qi{constructor(){super();ae(this,Hr);ae(this,cr);ae(this,Ei);ee(this,Ei,e=>{if(!ei&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){_(this,cr)||this.setEventListener(_(this,Ei))}onUnsubscribe(){var e;this.hasListeners()||((e=_(this,cr))==null||e.call(this),ee(this,cr,void 0))}setEventListener(e){var n;ee(this,Ei,e),(n=_(this,cr))==null||n.call(this),ee(this,cr,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){_(this,Hr)!==e&&(ee(this,Hr,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof _(this,Hr)=="boolean"?_(this,Hr):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Hr=new WeakMap,cr=new WeakMap,Ei=new WeakMap,Wy),Ac=new r2;function lu(){let t,e;const n=new Promise((i,s)=>{t=i,e=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),t(i)},n.reject=i=>{r({status:"rejected",reason:i}),e(i)},n}var i2=Jb;function s2(){let t=[],e=0,n=o=>{o()},r=o=>{o()},i=i2;const s=o=>{e?t.push(o):i(()=>{n(o)})},a=()=>{const o=t;t=[],o.length&&i(()=>{r(()=>{o.forEach(l=>{n(l)})})})};return{batch:o=>{let l;e++;try{l=o()}finally{e--,e||a()}return l},batchCalls:o=>(...l)=>{s(()=>{o(...l)})},schedule:s,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{i=o}}}var Je=s2(),Oi,dr,Pi,Gy,a2=(Gy=class extends Qi{constructor(){super();ae(this,Oi,!0);ae(this,dr);ae(this,Pi);ee(this,Pi,e=>{if(!ei&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){_(this,dr)||this.setEventListener(_(this,Pi))}onUnsubscribe(){var e;this.hasListeners()||((e=_(this,dr))==null||e.call(this),ee(this,dr,void 0))}setEventListener(e){var n;ee(this,Pi,e),(n=_(this,dr))==null||n.call(this),ee(this,dr,e(this.setOnline.bind(this)))}setOnline(e){_(this,Oi)!==e&&(ee(this,Oi,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return _(this,Oi)}},Oi=new WeakMap,dr=new WeakMap,Pi=new WeakMap,Gy),co=new a2;function o2(t){return Math.min(1e3*2**t,3e4)}function bm(t){return(t!=null?t:"online")==="online"?co.isOnline():!0}var uu=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function xm(t){let e=!1,n=0,r;const i=lu(),s=()=>i.status!=="pending",a=m=>{var v;if(!s()){const g=new uu(m);p(g),(v=t.onCancel)==null||v.call(t,g)}},o=()=>{e=!0},l=()=>{e=!1},u=()=>Ac.isFocused()&&(t.networkMode==="always"||co.isOnline())&&t.canRun(),c=()=>bm(t.networkMode)&&t.canRun(),f=m=>{s()||(r==null||r(),i.resolve(m))},p=m=>{s()||(r==null||r(),i.reject(m))},h=()=>new Promise(m=>{var v;r=g=>{(s()||u())&&m(g)},(v=t.onPause)==null||v.call(t)}).then(()=>{var m;r=void 0,s()||(m=t.onContinue)==null||m.call(t)}),y=()=>{if(s())return;let m;const v=n===0?t.initialPromise:void 0;try{m=v!=null?v:t.fn()}catch(g){m=Promise.reject(g)}Promise.resolve(m).then(f).catch(g=>{var b,w,x;if(s())return;const A=(b=t.retry)!=null?b:ei?0:3,E=(w=t.retryDelay)!=null?w:o2,C=typeof E=="function"?E(n,g):E,S=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,g);if(e||!S){p(g);return}n++,(x=t.onFail)==null||x.call(t,n,g),e2(C).then(()=>u()?void 0:h()).then(()=>{e?p(g):y()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(r==null||r(),i),cancelRetry:o,continueRetry:l,canStart:c,start:()=>(c()?y():h().then(y),i)}}var qr,Qy,wm=(Qy=class{constructor(){ae(this,qr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),iu(this.gcTime)&&ee(this,qr,Br.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t!=null?t:ei?1/0:5*60*1e3)}clearGcTimeout(){_(this,qr)&&(Br.clearTimeout(_(this,qr)),ee(this,qr,void 0))}},qr=new WeakMap,Qy),Wr,Ti,$t,Gr,nt,ia,Qr,cn,Un,Yy,l2=(Yy=class extends wm{constructor(e){var n;super();ae(this,cn);ae(this,Wr);ae(this,Ti);ae(this,$t);ae(this,Gr);ae(this,nt);ae(this,ia);ae(this,Qr);ee(this,Qr,!1),ee(this,ia,e.defaultOptions),this.setOptions(e.options),this.observers=[],ee(this,Gr,e.client),ee(this,$t,_(this,Gr).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,ee(this,Wr,jd(this.options)),this.state=(n=e.state)!=null?n:_(this,Wr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=_(this,nt))==null?void 0:e.promise}setOptions(e){if(this.options={..._(this,ia),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=jd(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),ee(this,Wr,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_(this,$t).remove(this)}setData(e,n){const r=ou(this.state.data,e,this.options);return Ae(this,cn,Un).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){Ae(this,cn,Un).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,i;const n=(r=_(this,nt))==null?void 0:r.promise;return(i=_(this,nt))==null||i.cancel(e),n?n.then(mt).catch(mt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_(this,Wr))}isActive(){return this.observers.some(e=>en(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===uo||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ar(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!mm(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=_(this,nt))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=_(this,nt))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),_(this,$t).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(_(this,nt)&&(_(this,Qr)?_(this,nt).cancel({revert:!0}):_(this,nt).cancelRetry()),this.scheduleGc()),_(this,$t).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ae(this,cn,Un).call(this,{type:"invalidate"})}async fetch(e,n){var l,u,c,f,p,h,y,m,v,g,A,E;if(this.state.fetchStatus!=="idle"&&((l=_(this,nt))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(_(this,nt))return _(this,nt).continueRetry(),_(this,nt).promise}if(e&&this.setOptions(e),!this.options.queryFn){const C=this.observers.find(S=>S.options.queryFn);C&&this.setOptions(C.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,i=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(ee(this,Qr,!0),r.signal)})},s=()=>{const C=gm(this.options,n),b=(()=>{const w={client:_(this,Gr),queryKey:this.queryKey,meta:this.meta};return i(w),w})();return ee(this,Qr,!1),this.options.persister?this.options.persister(C,b,this):C(b)},o=(()=>{const C={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:_(this,Gr),state:this.state,fetchFn:s};return i(C),C})();(u=this.options.behavior)==null||u.onFetch(o,this),ee(this,Ti,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=o.fetchOptions)==null?void 0:c.meta))&&Ae(this,cn,Un).call(this,{type:"fetch",meta:(f=o.fetchOptions)==null?void 0:f.meta}),ee(this,nt,xm({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,onCancel:C=>{C instanceof uu&&C.revert&&this.setState({..._(this,Ti),fetchStatus:"idle"}),r.abort()},onFail:(C,S)=>{Ae(this,cn,Un).call(this,{type:"failed",failureCount:C,error:S})},onPause:()=>{Ae(this,cn,Un).call(this,{type:"pause"})},onContinue:()=>{Ae(this,cn,Un).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const C=await _(this,nt).start();if(C===void 0)throw process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(C),(h=(p=_(this,$t).config).onSuccess)==null||h.call(p,C,this),(m=(y=_(this,$t).config).onSettled)==null||m.call(y,C,this.state.error,this),C}catch(C){if(C instanceof uu){if(C.silent)return _(this,nt).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw Ae(this,cn,Un).call(this,{type:"error",error:C}),(g=(v=_(this,$t).config).onError)==null||g.call(v,C,this),(E=(A=_(this,$t).config).onSettled)==null||E.call(A,this.state.data,C,this),C}finally{this.scheduleGc()}}},Wr=new WeakMap,Ti=new WeakMap,$t=new WeakMap,Gr=new WeakMap,nt=new WeakMap,ia=new WeakMap,Qr=new WeakMap,cn=new WeakSet,Un=function(e){const n=r=>{var i,s;switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Am(r.data,this.options),fetchMeta:(i=e.meta)!=null?i:null};case"success":const a={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(s=e.dataUpdatedAt)!=null?s:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ee(this,Ti,e.manual?a:void 0),a;case"error":const o=e.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),Je.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),_(this,$t).notify({query:this,type:"updated",action:e})})},Yy);function Am(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:bm(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function jd(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var St,Ce,sa,pt,Yr,Ii,Gn,fr,aa,Mi,Li,Vr,Kr,hr,Ni,Le,xs,cu,du,fu,hu,pu,yu,mu,Sm,Vy,u2=(Vy=class extends Qi{constructor(e,n){super();ae(this,Le);ae(this,St);ae(this,Ce);ae(this,sa);ae(this,pt);ae(this,Yr);ae(this,Ii);ae(this,Gn);ae(this,fr);ae(this,aa);ae(this,Mi);ae(this,Li);ae(this,Vr);ae(this,Kr);ae(this,hr);ae(this,Ni,new Set);this.options=n,ee(this,St,e),ee(this,fr,null),ee(this,Gn,lu()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_(this,Ce).addObserver(this),Ed(_(this,Ce),this.options)?Ae(this,Le,xs).call(this):this.updateResult(),Ae(this,Le,hu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return gu(_(this,Ce),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return gu(_(this,Ce),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ae(this,Le,pu).call(this),Ae(this,Le,yu).call(this),_(this,Ce).removeObserver(this)}setOptions(e){const n=this.options,r=_(this,Ce);if(this.options=_(this,St).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof en(this.options.enabled,_(this,Ce))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ae(this,Le,mu).call(this),_(this,Ce).setOptions(this.options),n._defaulted&&!lo(this.options,n)&&_(this,St).getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,Ce),observer:this});const i=this.hasListeners();i&&Od(_(this,Ce),r,this.options,n)&&Ae(this,Le,xs).call(this),this.updateResult(),i&&(_(this,Ce)!==r||en(this.options.enabled,_(this,Ce))!==en(n.enabled,_(this,Ce))||Ar(this.options.staleTime,_(this,Ce))!==Ar(n.staleTime,_(this,Ce)))&&Ae(this,Le,cu).call(this);const s=Ae(this,Le,du).call(this);i&&(_(this,Ce)!==r||en(this.options.enabled,_(this,Ce))!==en(n.enabled,_(this,Ce))||s!==_(this,hr))&&Ae(this,Le,fu).call(this,s)}getOptimisticResult(e){const n=_(this,St).getQueryCache().build(_(this,St),e),r=this.createResult(n,e);return d2(this,r)&&(ee(this,pt,r),ee(this,Ii,this.options),ee(this,Yr,_(this,Ce).state)),r}getCurrentResult(){return _(this,pt)}trackResult(e,n){return new Proxy(e,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&_(this,Gn).status==="pending"&&_(this,Gn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(e){_(this,Ni).add(e)}getCurrentQuery(){return _(this,Ce)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=_(this,St).defaultQueryOptions(e),r=_(this,St).getQueryCache().build(_(this,St),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(e){var n;return Ae(this,Le,xs).call(this,{...e,cancelRefetch:(n=e.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),_(this,pt)))}createResult(e,n){var N;const r=_(this,Ce),i=this.options,s=_(this,pt),a=_(this,Yr),o=_(this,Ii),u=e!==r?e.state:_(this,sa),{state:c}=e;let f={...c},p=!1,h;if(n._optimisticResults){const D=this.hasListeners(),M=!D&&Ed(e,n),T=D&&Od(e,r,n,i);(M||T)&&(f={...f,...Am(c.data,e.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:y,errorUpdatedAt:m,status:v}=f;h=f.data;let g=!1;if(n.placeholderData!==void 0&&h===void 0&&v==="pending"){let D;s!=null&&s.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData)?(D=s.data,g=!0):D=typeof n.placeholderData=="function"?n.placeholderData((N=_(this,Li))==null?void 0:N.state.data,_(this,Li)):n.placeholderData,D!==void 0&&(v="success",h=ou(s==null?void 0:s.data,D,n),p=!0)}if(n.select&&h!==void 0&&!g)if(s&&h===(a==null?void 0:a.data)&&n.select===_(this,aa))h=_(this,Mi);else try{ee(this,aa,n.select),h=n.select(h),h=ou(s==null?void 0:s.data,h,n),ee(this,Mi,h),ee(this,fr,null)}catch(D){ee(this,fr,D)}_(this,fr)&&(y=_(this,fr),h=_(this,Mi),m=Date.now(),v="error");const A=f.fetchStatus==="fetching",E=v==="pending",C=v==="error",S=E&&A,b=h!==void 0,x={status:v,fetchStatus:f.fetchStatus,isPending:E,isSuccess:v==="success",isError:C,isInitialLoading:S,isLoading:S,data:h,dataUpdatedAt:f.dataUpdatedAt,error:y,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:A,isRefetching:A&&!E,isLoadingError:C&&!b,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:C&&b,isStale:Sc(e,n),refetch:this.refetch,promise:_(this,Gn),isEnabled:en(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const D=z=>{x.status==="error"?z.reject(x.error):x.data!==void 0&&z.resolve(x.data)},M=()=>{const z=ee(this,Gn,x.promise=lu());D(z)},T=_(this,Gn);switch(T.status){case"pending":e.queryHash===r.queryHash&&D(T);break;case"fulfilled":(x.status==="error"||x.data!==T.value)&&M();break;case"rejected":(x.status!=="error"||x.error!==T.reason)&&M();break}}return x}updateResult(){const e=_(this,pt),n=this.createResult(_(this,Ce),this.options);if(ee(this,Yr,_(this,Ce).state),ee(this,Ii,this.options),_(this,Yr).data!==void 0&&ee(this,Li,_(this,Ce)),lo(n,e))return;ee(this,pt,n);const r=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!_(this,Ni).size)return!0;const a=new Set(s!=null?s:_(this,Ni));return this.options.throwOnError&&a.add("error"),Object.keys(_(this,pt)).some(o=>{const l=o;return _(this,pt)[l]!==e[l]&&a.has(l)})};Ae(this,Le,Sm).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ae(this,Le,hu).call(this)}},St=new WeakMap,Ce=new WeakMap,sa=new WeakMap,pt=new WeakMap,Yr=new WeakMap,Ii=new WeakMap,Gn=new WeakMap,fr=new WeakMap,aa=new WeakMap,Mi=new WeakMap,Li=new WeakMap,Vr=new WeakMap,Kr=new WeakMap,hr=new WeakMap,Ni=new WeakMap,Le=new WeakSet,xs=function(e){Ae(this,Le,mu).call(this);let n=_(this,Ce).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(mt)),n},cu=function(){Ae(this,Le,pu).call(this);const e=Ar(this.options.staleTime,_(this,Ce));if(ei||_(this,pt).isStale||!iu(e))return;const r=mm(_(this,pt).dataUpdatedAt,e)+1;ee(this,Vr,Br.setTimeout(()=>{_(this,pt).isStale||this.updateResult()},r))},du=function(){var e;return(e=typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_(this,Ce)):this.options.refetchInterval)!=null?e:!1},fu=function(e){Ae(this,Le,yu).call(this),ee(this,hr,e),!(ei||en(this.options.enabled,_(this,Ce))===!1||!iu(_(this,hr))||_(this,hr)===0)&&ee(this,Kr,Br.setInterval(()=>{(this.options.refetchIntervalInBackground||Ac.isFocused())&&Ae(this,Le,xs).call(this)},_(this,hr)))},hu=function(){Ae(this,Le,cu).call(this),Ae(this,Le,fu).call(this,Ae(this,Le,du).call(this))},pu=function(){_(this,Vr)&&(Br.clearTimeout(_(this,Vr)),ee(this,Vr,void 0))},yu=function(){_(this,Kr)&&(Br.clearInterval(_(this,Kr)),ee(this,Kr,void 0))},mu=function(){const e=_(this,St).getQueryCache().build(_(this,St),this.options);if(e===_(this,Ce))return;const n=_(this,Ce);ee(this,Ce,e),ee(this,sa,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},Sm=function(e){Je.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(_(this,pt))}),_(this,St).getQueryCache().notify({query:_(this,Ce),type:"observerResultsUpdated"})})},Vy);function c2(t,e){return en(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Ed(t,e){return c2(t,e)||t.state.data!==void 0&&gu(t,e,e.refetchOnMount)}function gu(t,e,n){if(en(e.enabled,t)!==!1&&Ar(e.staleTime,t)!=="static"){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&Sc(t,e)}return!1}function Od(t,e,n,r){return(t!==e||en(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&Sc(t,n)}function Sc(t,e){return en(e.enabled,t)!==!1&&t.isStaleByTime(Ar(e.staleTime,t))}function d2(t,e){return!lo(t.getCurrentResult(),e)}function Pd(t){return{onFetch:(e,n)=>{var c,f,p,h,y;const r=e.options,i=(p=(f=(c=e.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,s=((h=e.state.data)==null?void 0:h.pages)||[],a=((y=e.state.data)==null?void 0:y.pageParams)||[];let o={pages:[],pageParams:[]},l=0;const u=async()=>{var E;let m=!1;const v=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(e.signal.aborted?m=!0:e.signal.addEventListener("abort",()=>{m=!0}),e.signal)})},g=gm(e.options,e.fetchOptions),A=async(C,S,b)=>{if(m)return Promise.reject();if(S==null&&C.pages.length)return Promise.resolve(C);const x=(()=>{const T={client:e.client,queryKey:e.queryKey,pageParam:S,direction:b?"backward":"forward",meta:e.options.meta};return v(T),T})(),N=await g(x),{maxPages:D}=e.options,M=b?n2:t2;return{pages:M(C.pages,N,D),pageParams:M(C.pageParams,S,D)}};if(i&&s.length){const C=i==="backward",S=C?f2:Td,b={pages:s,pageParams:a},w=S(r,b);o=await A(b,w,C)}else{const C=t!=null?t:s.length;do{const S=l===0?(E=a[0])!=null?E:r.initialPageParam:Td(r,o);if(l>0&&S==null)break;o=await A(o,S),l++}while(l<C)}return o};e.options.persister?e.fetchFn=()=>{var m,v;return(v=(m=e.options).persister)==null?void 0:v.call(m,u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=u}}}function Td(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function f2(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var oa,jn,yt,Xr,En,ur,Ky,h2=(Ky=class extends wm{constructor(e){super();ae(this,En);ae(this,oa);ae(this,jn);ae(this,yt);ae(this,Xr);ee(this,oa,e.client),this.mutationId=e.mutationId,ee(this,yt,e.mutationCache),ee(this,jn,[]),this.state=e.state||Cm(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){_(this,jn).includes(e)||(_(this,jn).push(e),this.clearGcTimeout(),_(this,yt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){ee(this,jn,_(this,jn).filter(n=>n!==e)),this.scheduleGc(),_(this,yt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){_(this,jn).length||(this.state.status==="pending"?this.scheduleGc():_(this,yt).remove(this))}continue(){var e,n;return(n=(e=_(this,Xr))==null?void 0:e.continue())!=null?n:this.execute(this.state.variables)}async execute(e){var a,o,l,u,c,f,p,h,y,m,v,g,A,E,C,S,b,w,x,N,D;const n=()=>{Ae(this,En,ur).call(this,{type:"continue"})},r={client:_(this,oa),meta:this.options.meta,mutationKey:this.options.mutationKey};ee(this,Xr,xm({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(M,T)=>{Ae(this,En,ur).call(this,{type:"failed",failureCount:M,error:T})},onPause:()=>{Ae(this,En,ur).call(this,{type:"pause"})},onContinue:n,retry:(a=this.options.retry)!=null?a:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_(this,yt).canRun(this)}));const i=this.state.status==="pending",s=!_(this,Xr).canStart();try{if(i)n();else{Ae(this,En,ur).call(this,{type:"pending",variables:e,isPaused:s}),await((l=(o=_(this,yt).config).onMutate)==null?void 0:l.call(o,e,this,r));const T=await((c=(u=this.options).onMutate)==null?void 0:c.call(u,e,r));T!==this.state.context&&Ae(this,En,ur).call(this,{type:"pending",context:T,variables:e,isPaused:s})}const M=await _(this,Xr).start();return await((p=(f=_(this,yt).config).onSuccess)==null?void 0:p.call(f,M,e,this.state.context,this,r)),await((y=(h=this.options).onSuccess)==null?void 0:y.call(h,M,e,this.state.context,r)),await((v=(m=_(this,yt).config).onSettled)==null?void 0:v.call(m,M,null,this.state.variables,this.state.context,this,r)),await((A=(g=this.options).onSettled)==null?void 0:A.call(g,M,null,e,this.state.context,r)),Ae(this,En,ur).call(this,{type:"success",data:M}),M}catch(M){try{throw await((C=(E=_(this,yt).config).onError)==null?void 0:C.call(E,M,e,this.state.context,this,r)),await((b=(S=this.options).onError)==null?void 0:b.call(S,M,e,this.state.context,r)),await((x=(w=_(this,yt).config).onSettled)==null?void 0:x.call(w,void 0,M,this.state.variables,this.state.context,this,r)),await((D=(N=this.options).onSettled)==null?void 0:D.call(N,void 0,M,e,this.state.context,r)),M}finally{Ae(this,En,ur).call(this,{type:"error",error:M})}}finally{_(this,yt).runNext(this)}}},oa=new WeakMap,jn=new WeakMap,yt=new WeakMap,Xr=new WeakMap,En=new WeakSet,ur=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Je.batch(()=>{_(this,jn).forEach(r=>{r.onMutationUpdate(e)}),_(this,yt).notify({mutation:this,type:"updated",action:e})})},Ky);function Cm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qn,dn,la,Xy,p2=(Xy=class extends Qi{constructor(e={}){super();ae(this,Qn);ae(this,dn);ae(this,la);this.config=e,ee(this,Qn,new Set),ee(this,dn,new Map),ee(this,la,0)}build(e,n,r){const i=new h2({client:e,mutationCache:this,mutationId:++Sa(this,la)._,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){_(this,Qn).add(e);const n=ja(e);if(typeof n=="string"){const r=_(this,dn).get(n);r?r.push(e):_(this,dn).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(_(this,Qn).delete(e)){const n=ja(e);if(typeof n=="string"){const r=_(this,dn).get(n);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&_(this,dn).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=ja(e);if(typeof n=="string"){const r=_(this,dn).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===e}else return!0}runNext(e){var r,i;const n=ja(e);if(typeof n=="string"){const s=(r=_(this,dn).get(n))==null?void 0:r.find(a=>a!==e&&a.state.isPaused);return(i=s==null?void 0:s.continue())!=null?i:Promise.resolve()}else return Promise.resolve()}clear(){Je.batch(()=>{_(this,Qn).forEach(e=>{this.notify({type:"removed",mutation:e})}),_(this,Qn).clear(),_(this,dn).clear()})}getAll(){return Array.from(_(this,Qn))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Sd(n,r))}findAll(e={}){return this.getAll().filter(n=>Sd(e,n))}notify(e){Je.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Je.batch(()=>Promise.all(e.map(n=>n.continue().catch(mt))))}},Qn=new WeakMap,dn=new WeakMap,la=new WeakMap,Xy);function ja(t){var e;return(e=t.options.scope)==null?void 0:e.id}var Yn,pr,Ct,Vn,$n,Xa,vu,Jy,y2=(Jy=class extends Qi{constructor(n,r){super();ae(this,$n);ae(this,Yn);ae(this,pr);ae(this,Ct);ae(this,Vn);ee(this,Yn,n),this.setOptions(r),this.bindMethods(),Ae(this,$n,Xa).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=_(this,Yn).defaultMutationOptions(n),lo(this.options,r)||_(this,Yn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_(this,Ct),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ti(r.mutationKey)!==ti(this.options.mutationKey)?this.reset():((i=_(this,Ct))==null?void 0:i.state.status)==="pending"&&_(this,Ct).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=_(this,Ct))==null||n.removeObserver(this)}onMutationUpdate(n){Ae(this,$n,Xa).call(this),Ae(this,$n,vu).call(this,n)}getCurrentResult(){return _(this,pr)}reset(){var n;(n=_(this,Ct))==null||n.removeObserver(this),ee(this,Ct,void 0),Ae(this,$n,Xa).call(this),Ae(this,$n,vu).call(this)}mutate(n,r){var i;return ee(this,Vn,r),(i=_(this,Ct))==null||i.removeObserver(this),ee(this,Ct,_(this,Yn).getMutationCache().build(_(this,Yn),this.options)),_(this,Ct).addObserver(this),_(this,Ct).execute(n)}},Yn=new WeakMap,pr=new WeakMap,Ct=new WeakMap,Vn=new WeakMap,$n=new WeakSet,Xa=function(){var r,i;const n=(i=(r=_(this,Ct))==null?void 0:r.state)!=null?i:Cm();ee(this,pr,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},vu=function(n){Je.batch(()=>{var r,i,s,a,o,l,u,c;if(_(this,Vn)&&this.hasListeners()){const f=_(this,pr).variables,p=_(this,pr).context,h={client:_(this,Yn),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((i=(r=_(this,Vn)).onSuccess)==null||i.call(r,n.data,f,p,h),(a=(s=_(this,Vn)).onSettled)==null||a.call(s,n.data,null,f,p,h)):(n==null?void 0:n.type)==="error"&&((l=(o=_(this,Vn)).onError)==null||l.call(o,n.error,f,p,h),(c=(u=_(this,Vn)).onSettled)==null||c.call(u,void 0,n.error,f,p,h))}this.listeners.forEach(f=>{f(_(this,pr))})})},Jy),On,Zy,m2=(Zy=class extends Qi{constructor(e={}){super();ae(this,On);this.config=e,ee(this,On,new Map)}build(e,n,r){var o;const i=n.queryKey,s=(o=n.queryHash)!=null?o:wc(i,n);let a=this.get(s);return a||(a=new l2({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){_(this,On).has(e.queryHash)||(_(this,On).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=_(this,On).get(e.queryHash);n&&(e.destroy(),n===e&&_(this,On).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Je.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return _(this,On).get(e)}getAll(){return[..._(this,On).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Ad(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>Ad(e,r)):n}notify(e){Je.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Je.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Je.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},On=new WeakMap,Zy),Ge,yr,mr,Ri,_i,gr,Di,Bi,$y,g2=($y=class{constructor(t={}){ae(this,Ge);ae(this,yr);ae(this,mr);ae(this,Ri);ae(this,_i);ae(this,gr);ae(this,Di);ae(this,Bi);ee(this,Ge,t.queryCache||new m2),ee(this,yr,t.mutationCache||new p2),ee(this,mr,t.defaultOptions||{}),ee(this,Ri,new Map),ee(this,_i,new Map),ee(this,gr,0)}mount(){Sa(this,gr)._++,_(this,gr)===1&&(ee(this,Di,Ac.subscribe(async t=>{t&&(await this.resumePausedMutations(),_(this,Ge).onFocus())})),ee(this,Bi,co.subscribe(async t=>{t&&(await this.resumePausedMutations(),_(this,Ge).onOnline())})))}unmount(){var t,e;Sa(this,gr)._--,_(this,gr)===0&&((t=_(this,Di))==null||t.call(this),ee(this,Di,void 0),(e=_(this,Bi))==null||e.call(this),ee(this,Bi,void 0))}isFetching(t){return _(this,Ge).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return _(this,yr).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=_(this,Ge).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=_(this,Ge).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Ar(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return _(this,Ge).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),i=_(this,Ge).get(r.queryHash),s=i==null?void 0:i.state.data,a=Zb(e,s);if(a!==void 0)return _(this,Ge).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(t,e,n){return Je.batch(()=>_(this,Ge).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=_(this,Ge).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=_(this,Ge);Je.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=_(this,Ge);return Je.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=Je.batch(()=>_(this,Ge).findAll(t).map(i=>i.cancel(n)));return Promise.all(r).then(mt).catch(mt)}invalidateQueries(t,e={}){return Je.batch(()=>{var n,r;return _(this,Ge).findAll(t).forEach(i=>{i.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(r=(n=t==null?void 0:t.refetchType)!=null?n:t==null?void 0:t.type)!=null?r:"active"},e)})}refetchQueries(t,e={}){var i;const n={...e,cancelRefetch:(i=e.cancelRefetch)!=null?i:!0},r=Je.batch(()=>_(this,Ge).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let a=s.fetch(void 0,n);return n.throwOnError||(a=a.catch(mt)),s.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(mt)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=_(this,Ge).build(this,e);return n.isStaleByTime(Ar(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(mt).catch(mt)}fetchInfiniteQuery(t){return t.behavior=Pd(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(mt).catch(mt)}ensureInfiniteQueryData(t){return t.behavior=Pd(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return co.isOnline()?_(this,yr).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,Ge)}getMutationCache(){return _(this,yr)}getDefaultOptions(){return _(this,mr)}setDefaultOptions(t){ee(this,mr,t)}setQueryDefaults(t,e){_(this,Ri).set(ti(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[..._(this,Ri).values()],n={};return e.forEach(r=>{_s(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){_(this,_i).set(ti(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[..._(this,_i).values()],n={};return e.forEach(r=>{_s(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={..._(this,mr).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=wc(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===uo&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{..._(this,mr).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){_(this,Ge).clear(),_(this,yr).clear()}},Ge=new WeakMap,yr=new WeakMap,mr=new WeakMap,Ri=new WeakMap,_i=new WeakMap,gr=new WeakMap,Di=new WeakMap,Bi=new WeakMap,$y),km=L.createContext(void 0),Kt=t=>{const e=L.useContext(km);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},v2=({client:t,children:e})=>(L.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),d.jsx(km.Provider,{value:t,children:e})),jm=L.createContext(!1),b2=()=>L.useContext(jm);jm.Provider;function x2(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var w2=L.createContext(x2()),A2=()=>L.useContext(w2),S2=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},C2=t=>{L.useEffect(()=>{t.clearReset()},[t])},k2=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||vm(n,[t.error,r])),j2=t=>{if(t.suspense){const n=i=>i==="static"?i:Math.max(i!=null?i:1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},E2=(t,e)=>t.isLoading&&t.isFetching&&!e,O2=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,Id=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function P2(t,e,n){var f,p,h,y,m;if(process.env.NODE_ENV!=="production"&&(typeof t!="object"||Array.isArray(t)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=b2(),i=A2(),s=Kt(),a=s.defaultQueryOptions(t);(p=(f=s.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||p.call(f,a),process.env.NODE_ENV!=="production"&&(a.queryFn||console.error(`[${a.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),a._optimisticResults=r?"isRestoring":"optimistic",j2(a),S2(a,i),C2(i);const o=!s.getQueryCache().get(a.queryHash),[l]=L.useState(()=>new e(s,a)),u=l.getOptimisticResult(a),c=!r&&t.subscribed!==!1;if(L.useSyncExternalStore(L.useCallback(v=>{const g=c?l.subscribe(Je.batchCalls(v)):mt;return l.updateResult(),g},[l,c]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),L.useEffect(()=>{l.setOptions(a)},[a,l]),O2(a,u))throw Id(a,l,i);if(k2({result:u,errorResetBoundary:i,throwOnError:a.throwOnError,query:s.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw u.error;if((y=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||y.call(h,a,u),a.experimental_prefetchInRender&&!ei&&E2(u,r)){const v=o?Id(a,l,i):(m=s.getQueryCache().get(a.queryHash))==null?void 0:m.promise;v==null||v.catch(mt).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?u:l.trackResult(u)}function nr(t,e){return P2(t,u2)}function Mn(t,e){const n=Kt(),[r]=L.useState(()=>new y2(n,t));L.useEffect(()=>{r.setOptions(t)},[r,t]);const i=L.useSyncExternalStore(L.useCallback(a=>r.subscribe(Je.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=L.useCallback((a,o)=>{r.mutate(a,o).catch(mt)},[r]);if(i.error&&vm(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}function Em(t,e){return function(){return t.apply(e,arguments)}}const{toString:T2}=Object.prototype,{getPrototypeOf:Cc}=Object,{iterator:No,toStringTag:Om}=Symbol,Ro=(t=>e=>{const n=T2.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pn=t=>(t=t.toLowerCase(),e=>Ro(e)===t),_o=t=>e=>typeof e===t,{isArray:Yi}=Array,Ds=_o("undefined");function I2(t){return t!==null&&!Ds(t)&&t.constructor!==null&&!Ds(t.constructor)&&jt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Pm=pn("ArrayBuffer");function M2(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Pm(t.buffer),e}const L2=_o("string"),jt=_o("function"),Tm=_o("number"),Do=t=>t!==null&&typeof t=="object",N2=t=>t===!0||t===!1,Ja=t=>{if(Ro(t)!=="object")return!1;const e=Cc(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Om in t)&&!(No in t)},R2=pn("Date"),_2=pn("File"),D2=pn("Blob"),B2=pn("FileList"),F2=t=>Do(t)&&jt(t.pipe),z2=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||jt(t.append)&&((e=Ro(t))==="formdata"||e==="object"&&jt(t.toString)&&t.toString()==="[object FormData]"))},U2=pn("URLSearchParams"),[H2,q2,W2,G2]=["ReadableStream","Request","Response","Headers"].map(pn),Q2=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function da(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t=="undefined")return;let r,i;if(typeof t!="object"&&(t=[t]),Yi(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let o;for(r=0;r<a;r++)o=s[r],e.call(null,t[o],o,t)}}function Im(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const Fr=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Mm=t=>!Ds(t)&&t!==Fr;function bu(){const{caseless:t}=Mm(this)&&this||{},e={},n=(r,i)=>{const s=t&&Im(e,i)||i;Ja(e[s])&&Ja(r)?e[s]=bu(e[s],r):Ja(r)?e[s]=bu({},r):Yi(r)?e[s]=r.slice():e[s]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&da(arguments[r],n);return e}const Y2=(t,e,n,{allOwnKeys:r}={})=>(da(e,(i,s)=>{n&&jt(i)?t[s]=Em(i,n):t[s]=i},{allOwnKeys:r}),t),V2=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),K2=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},X2=(t,e,n,r)=>{let i,s,a;const o={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],(!r||r(a,t,e))&&!o[a]&&(e[a]=t[a],o[a]=!0);t=n!==!1&&Cc(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},J2=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Z2=t=>{if(!t)return null;if(Yi(t))return t;let e=t.length;if(!Tm(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},$2=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&Cc(Uint8Array)),e1=(t,e)=>{const r=(t&&t[No]).call(t);let i;for(;(i=r.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},t1=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},n1=pn("HTMLFormElement"),r1=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Md=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),i1=pn("RegExp"),Lm=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};da(n,(i,s)=>{let a;(a=e(i,s,t))!==!1&&(r[s]=a||i)}),Object.defineProperties(t,r)},s1=t=>{Lm(t,(e,n)=>{if(jt(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(jt(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},a1=(t,e)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Yi(t)?r(t):r(String(t).split(e)),n},o1=()=>{},l1=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function u1(t){return!!(t&&jt(t.append)&&t[Om]==="FormData"&&t[No])}const c1=t=>{const e=new Array(10),n=(r,i)=>{if(Do(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const s=Yi(r)?[]:{};return da(r,(a,o)=>{const l=n(a,i+1);!Ds(l)&&(s[o]=l)}),e[i]=void 0,s}}return r};return n(t,0)},d1=pn("AsyncFunction"),f1=t=>t&&(Do(t)||jt(t))&&jt(t.then)&&jt(t.catch),Nm=((t,e)=>t?setImmediate:e?((n,r)=>(Fr.addEventListener("message",({source:i,data:s})=>{i===Fr&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Fr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",jt(Fr.postMessage)),h1=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Fr):typeof process!="undefined"&&process.nextTick||Nm,p1=t=>t!=null&&jt(t[No]),H={isArray:Yi,isArrayBuffer:Pm,isBuffer:I2,isFormData:z2,isArrayBufferView:M2,isString:L2,isNumber:Tm,isBoolean:N2,isObject:Do,isPlainObject:Ja,isReadableStream:H2,isRequest:q2,isResponse:W2,isHeaders:G2,isUndefined:Ds,isDate:R2,isFile:_2,isBlob:D2,isRegExp:i1,isFunction:jt,isStream:F2,isURLSearchParams:U2,isTypedArray:$2,isFileList:B2,forEach:da,merge:bu,extend:Y2,trim:Q2,stripBOM:V2,inherits:K2,toFlatObject:X2,kindOf:Ro,kindOfTest:pn,endsWith:J2,toArray:Z2,forEachEntry:e1,matchAll:t1,isHTMLForm:n1,hasOwnProperty:Md,hasOwnProp:Md,reduceDescriptors:Lm,freezeMethods:s1,toObjectSet:a1,toCamelCase:r1,noop:o1,toFiniteNumber:l1,findKey:Im,global:Fr,isContextDefined:Mm,isSpecCompliantForm:u1,toJSONObject:c1,isAsyncFn:d1,isThenable:f1,setImmediate:Nm,asap:h1,isIterable:p1};function be(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}H.inherits(be,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:H.toJSONObject(this.config),code:this.code,status:this.status}}});const Rm=be.prototype,_m={};["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(t=>{_m[t]={value:t}});Object.defineProperties(be,_m);Object.defineProperty(Rm,"isAxiosError",{value:!0});be.from=(t,e,n,r,i,s)=>{const a=Object.create(Rm);return H.toFlatObject(t,a,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),be.call(a,t.message,e,n,r,i),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const y1=null;function xu(t){return H.isPlainObject(t)||H.isArray(t)}function Dm(t){return H.endsWith(t,"[]")?t.slice(0,-2):t}function Ld(t,e,n){return t?t.concat(e).map(function(i,s){return i=Dm(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function m1(t){return H.isArray(t)&&!t.some(xu)}const g1=H.toFlatObject(H,{},null,function(e){return/^is[A-Z]/.test(e)});function Bo(t,e,n){if(!H.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=H.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!H.isUndefined(v[m])});const r=n.metaTokens,i=n.visitor||c,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob!="undefined"&&Blob)&&H.isSpecCompliantForm(e);if(!H.isFunction(i))throw new TypeError("visitor must be a function");function u(y){if(y===null)return"";if(H.isDate(y))return y.toISOString();if(H.isBoolean(y))return y.toString();if(!l&&H.isBlob(y))throw new be("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(y)||H.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function c(y,m,v){let g=y;if(y&&!v&&typeof y=="object"){if(H.endsWith(m,"{}"))m=r?m:m.slice(0,-2),y=JSON.stringify(y);else if(H.isArray(y)&&m1(y)||(H.isFileList(y)||H.endsWith(m,"[]"))&&(g=H.toArray(y)))return m=Dm(m),g.forEach(function(E,C){!(H.isUndefined(E)||E===null)&&e.append(a===!0?Ld([m],C,s):a===null?m:m+"[]",u(E))}),!1}return xu(y)?!0:(e.append(Ld(v,m,s),u(y)),!1)}const f=[],p=Object.assign(g1,{defaultVisitor:c,convertValue:u,isVisitable:xu});function h(y,m){if(!H.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(y),H.forEach(y,function(g,A){(!(H.isUndefined(g)||g===null)&&i.call(e,g,H.isString(A)?A.trim():A,m,p))===!0&&h(g,m?m.concat(A):[A])}),f.pop()}}if(!H.isObject(t))throw new TypeError("data must be an object");return h(t),e}function Nd(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function kc(t,e){this._pairs=[],t&&Bo(t,this,e)}const Bm=kc.prototype;Bm.append=function(e,n){this._pairs.push([e,n])};Bm.toString=function(e){const n=e?function(r){return e.call(this,r,Nd)}:Nd;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function v1(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Fm(t,e,n){if(!e)return t;const r=n&&n.encode||v1;H.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(e,n):s=H.isURLSearchParams(e)?e.toString():new kc(e,n).toString(r),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Rd{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){H.forEach(this.handlers,function(r){r!==null&&e(r)})}}const zm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},b1=typeof URLSearchParams!="undefined"?URLSearchParams:kc,x1=typeof FormData!="undefined"?FormData:null,w1=typeof Blob!="undefined"?Blob:null,A1={isBrowser:!0,classes:{URLSearchParams:b1,FormData:x1,Blob:w1},protocols:["http","https","file","blob","url","data"]},jc=typeof window!="undefined"&&typeof document!="undefined",wu=typeof navigator=="object"&&navigator||void 0,S1=jc&&(!wu||["ReactNative","NativeScript","NS"].indexOf(wu.product)<0),C1=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",k1=jc&&window.location.href||"http://localhost",j1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:jc,hasStandardBrowserEnv:S1,hasStandardBrowserWebWorkerEnv:C1,navigator:wu,origin:k1},Symbol.toStringTag,{value:"Module"})),ct={...j1,...A1};function E1(t,e){return Bo(t,new ct.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return ct.isNode&&H.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function O1(t){return H.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function P1(t){const e={},n=Object.keys(t);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],e[s]=t[s];return e}function Um(t){function e(n,r,i,s){let a=n[s++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),l=s>=n.length;return a=!a&&H.isArray(i)?i.length:a,l?(H.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!o):((!i[a]||!H.isObject(i[a]))&&(i[a]=[]),e(n,r,i[a],s)&&H.isArray(i[a])&&(i[a]=P1(i[a])),!o)}if(H.isFormData(t)&&H.isFunction(t.entries)){const n={};return H.forEachEntry(t,(r,i)=>{e(O1(r),i,n,0)}),n}return null}function T1(t,e,n){if(H.isString(t))try{return(e||JSON.parse)(t),H.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const fa={transitional:zm,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=H.isObject(e);if(s&&H.isHTMLForm(e)&&(e=new FormData(e)),H.isFormData(e))return i?JSON.stringify(Um(e)):e;if(H.isArrayBuffer(e)||H.isBuffer(e)||H.isStream(e)||H.isFile(e)||H.isBlob(e)||H.isReadableStream(e))return e;if(H.isArrayBufferView(e))return e.buffer;if(H.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return E1(e,this.formSerializer).toString();if((o=H.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Bo(o?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),T1(e)):e}],transformResponse:[function(e){const n=this.transitional||fa.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(H.isResponse(e)||H.isReadableStream(e))return e;if(e&&H.isString(e)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?be.from(o,be.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ct.classes.FormData,Blob:ct.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],t=>{fa.headers[t]={}});const I1=H.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"]),M1=t=>{const e={};let n,r,i;return t&&t.split(`
13
+ `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||e[n]&&I1[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},_d=Symbol("internals");function is(t){return t&&String(t).trim().toLowerCase()}function Za(t){return t===!1||t==null?t:H.isArray(t)?t.map(Za):String(t)}function L1(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const N1=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function dl(t,e,n,r,i){if(H.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!H.isString(e)){if(H.isString(r))return e.indexOf(r)!==-1;if(H.isRegExp(r))return r.test(e)}}function R1(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function _1(t,e){const n=H.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,s,a){return this[r].call(this,e,i,s,a)},configurable:!0})})}let Et=class{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function s(o,l,u){const c=is(l);if(!c)throw new Error("header name must be a non-empty string");const f=H.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Za(o))}const a=(o,l)=>H.forEach(o,(u,c)=>s(u,c,l));if(H.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(H.isString(e)&&(e=e.trim())&&!N1(e))a(M1(e),n);else if(H.isObject(e)&&H.isIterable(e)){let o={},l,u;for(const c of e){if(!H.isArray(c))throw TypeError("Object iterator must return a key-value pair");o[u=c[0]]=(l=o[u])?H.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}a(o,n)}else e!=null&&s(n,e,r);return this}get(e,n){if(e=is(e),e){const r=H.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return L1(i);if(H.isFunction(n))return n.call(this,i,r);if(H.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=is(e),e){const r=H.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||dl(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function s(a){if(a=is(a),a){const o=H.findKey(r,a);o&&(!n||dl(r,r[o],o,n))&&(delete r[o],i=!0)}}return H.isArray(e)?e.forEach(s):s(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!e||dl(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const n=this,r={};return H.forEach(this,(i,s)=>{const a=H.findKey(r,s);if(a){n[a]=Za(i),delete n[s];return}const o=e?R1(s):String(s).trim();o!==s&&delete n[s],n[o]=Za(i),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return H.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&H.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
14
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[_d]=this[_d]={accessors:{}}).accessors,i=this.prototype;function s(a){const o=is(a);r[o]||(_1(i,a),r[o]=!0)}return H.isArray(e)?e.forEach(s):s(e),this}};Et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);H.reduceDescriptors(Et.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});H.freezeMethods(Et);function fl(t,e){const n=this||fa,r=e||n,i=Et.from(r.headers);let s=r.data;return H.forEach(t,function(o){s=o.call(n,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Hm(t){return!!(t&&t.__CANCEL__)}function Vi(t,e,n){be.call(this,t==null?"canceled":t,be.ERR_CANCELED,e,n),this.name="CanceledError"}H.inherits(Vi,be,{__CANCEL__:!0});function qm(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new be("Request failed with status code "+n.status,[be.ERR_BAD_REQUEST,be.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function D1(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function B1(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,s=0,a;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=r[s];a||(a=u),n[i]=l,r[i]=u;let f=s,p=0;for(;f!==i;)p+=n[f++],f=f%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),u-a<e)return;const h=c&&u-c;return h?Math.round(p*1e3/h):void 0}}function F1(t,e){let n=0,r=1e3/e,i,s;const a=(u,c=Date.now())=>{n=c,i=null,s&&(clearTimeout(s),s=null),t.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?a(u,c):(i=u,s||(s=setTimeout(()=>{s=null,a(i)},r-f)))},()=>i&&a(i)]}const fo=(t,e,n=3)=>{let r=0;const i=B1(50,250);return F1(s=>{const a=s.loaded,o=s.lengthComputable?s.total:void 0,l=a-r,u=i(l),c=a<=o;r=a;const f={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&c?(o-a)/u:void 0,event:s,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(f)},n)},Dd=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Bd=t=>(...e)=>H.asap(()=>t(...e)),z1=ct.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,ct.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(ct.origin),ct.navigator&&/(msie|trident)/i.test(ct.navigator.userAgent)):()=>!0,U1=ct.hasStandardBrowserEnv?{write(t,e,n,r,i,s){const a=[t+"="+encodeURIComponent(e)];H.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),H.isString(r)&&a.push("path="+r),H.isString(i)&&a.push("domain="+i),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function H1(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function q1(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Wm(t,e,n){let r=!H1(e);return t&&(r||n==!1)?q1(t,e):e}const Fd=t=>t instanceof Et?{...t}:t;function ni(t,e){e=e||{};const n={};function r(u,c,f,p){return H.isPlainObject(u)&&H.isPlainObject(c)?H.merge.call({caseless:p},u,c):H.isPlainObject(c)?H.merge({},c):H.isArray(c)?c.slice():c}function i(u,c,f,p){if(H.isUndefined(c)){if(!H.isUndefined(u))return r(void 0,u,f,p)}else return r(u,c,f,p)}function s(u,c){if(!H.isUndefined(c))return r(void 0,c)}function a(u,c){if(H.isUndefined(c)){if(!H.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function o(u,c,f){if(f in e)return r(u,c);if(f in t)return r(void 0,u)}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(u,c,f)=>i(Fd(u),Fd(c),f,!0)};return H.forEach(Object.keys(Object.assign({},t,e)),function(c){const f=l[c]||i,p=f(t[c],e[c],c);H.isUndefined(p)&&f!==o||(n[c]=p)}),n}const Gm=t=>{const e=ni({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:o}=e;e.headers=a=Et.from(a),e.url=Fm(Wm(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(H.isFormData(n)){if(ct.hasStandardBrowserEnv||ct.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(ct.hasStandardBrowserEnv&&(r&&H.isFunction(r)&&(r=r(e)),r||r!==!1&&z1(e.url))){const u=i&&s&&U1.read(s);u&&a.set(i,u)}return e},W1=typeof XMLHttpRequest!="undefined",G1=W1&&function(t){return new Promise(function(n,r){const i=Gm(t);let s=i.data;const a=Et.from(i.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:u}=i,c,f,p,h,y;function m(){h&&h(),y&&y(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function g(){if(!v)return;const E=Et.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),S={data:!o||o==="text"||o==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:E,config:t,request:v};qm(function(w){n(w),m()},function(w){r(w),m()},S),v=null}"onloadend"in v?v.onloadend=g:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(g)},v.onabort=function(){v&&(r(new be("Request aborted",be.ECONNABORTED,t,v)),v=null)},v.onerror=function(){r(new be("Network Error",be.ERR_NETWORK,t,v)),v=null},v.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const S=i.transitional||zm;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new be(C,S.clarifyTimeoutError?be.ETIMEDOUT:be.ECONNABORTED,t,v)),v=null},s===void 0&&a.setContentType(null),"setRequestHeader"in v&&H.forEach(a.toJSON(),function(C,S){v.setRequestHeader(S,C)}),H.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),o&&o!=="json"&&(v.responseType=i.responseType),u&&([p,y]=fo(u,!0),v.addEventListener("progress",p)),l&&v.upload&&([f,h]=fo(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(c=E=>{v&&(r(!E||E.type?new Vi(null,t,v):E),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const A=D1(i.url);if(A&&ct.protocols.indexOf(A)===-1){r(new be("Unsupported protocol "+A+":",be.ERR_BAD_REQUEST,t));return}v.send(s||null)})},Q1=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,i;const s=function(u){if(!i){i=!0,o();const c=u instanceof Error?u:this.reason;r.abort(c instanceof be?c:new Vi(c instanceof Error?c.message:c))}};let a=e&&setTimeout(()=>{a=null,s(new be(`timeout ${e} of ms exceeded`,be.ETIMEDOUT))},e);const o=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),t=null)};t.forEach(u=>u.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>H.asap(o),l}},Y1=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},V1=async function*(t,e){for await(const n of K1(t))yield*Y1(n,e)},K1=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},zd=(t,e,n,r)=>{const i=V1(t,e);let s=0,a,o=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){o(),l.close();return}let f=c.byteLength;if(n){let p=s+=f;n(p)}l.enqueue(new Uint8Array(c))}catch(u){throw o(u),u}},cancel(l){return o(l),i.return()}},{highWaterMark:2})},Fo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Qm=Fo&&typeof ReadableStream=="function",X1=Fo&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Ym=(t,...e)=>{try{return!!t(...e)}catch(n){return!1}},J1=Qm&&Ym(()=>{let t=!1;const e=new Request(ct.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Ud=64*1024,Au=Qm&&Ym(()=>H.isReadableStream(new Response("").body)),ho={stream:Au&&(t=>t.body)};Fo&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ho[e]&&(ho[e]=H.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new be(`Response type '${e}' is not supported`,be.ERR_NOT_SUPPORT,r)})})})(new Response);const Z1=async t=>{if(t==null)return 0;if(H.isBlob(t))return t.size;if(H.isSpecCompliantForm(t))return(await new Request(ct.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(H.isArrayBufferView(t)||H.isArrayBuffer(t))return t.byteLength;if(H.isURLSearchParams(t)&&(t=t+""),H.isString(t))return(await X1(t)).byteLength},$1=async(t,e)=>{const n=H.toFiniteNumber(t.getContentLength());return n==null?Z1(e):n},ex=Fo&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:s,timeout:a,onDownloadProgress:o,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:p}=Gm(t);u=u?(u+"").toLowerCase():"text";let h=Q1([i,s&&s.toAbortSignal()],a),y;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(l&&J1&&n!=="get"&&n!=="head"&&(v=await $1(c,r))!==0){let S=new Request(e,{method:"POST",body:r,duplex:"half"}),b;if(H.isFormData(r)&&(b=S.headers.get("content-type"))&&c.setContentType(b),S.body){const[w,x]=Dd(v,fo(Bd(l)));r=zd(S.body,Ud,w,x)}}H.isString(f)||(f=f?"include":"omit");const g="credentials"in Request.prototype;y=new Request(e,{...p,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:g?f:void 0});let A=await fetch(y,p);const E=Au&&(u==="stream"||u==="response");if(Au&&(o||E&&m)){const S={};["status","statusText","headers"].forEach(N=>{S[N]=A[N]});const b=H.toFiniteNumber(A.headers.get("content-length")),[w,x]=o&&Dd(b,fo(Bd(o),!0))||[];A=new Response(zd(A.body,Ud,w,()=>{x&&x(),m&&m()}),S)}u=u||"text";let C=await ho[H.findKey(ho,u)||"text"](A,t);return!E&&m&&m(),await new Promise((S,b)=>{qm(S,b,{data:C,headers:Et.from(A.headers),status:A.status,statusText:A.statusText,config:t,request:y})})}catch(g){throw m&&m(),g&&g.name==="TypeError"&&/Load failed|fetch/i.test(g.message)?Object.assign(new be("Network Error",be.ERR_NETWORK,t,y),{cause:g.cause||g}):be.from(g,g&&g.code,t,y)}}),Su={http:y1,xhr:G1,fetch:ex};H.forEach(Su,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(n){}Object.defineProperty(t,"adapterName",{value:e})}});const Hd=t=>`- ${t}`,tx=t=>H.isFunction(t)||t===null||t===!1,Vm={getAdapter:t=>{t=H.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let s=0;s<e;s++){n=t[s];let a;if(r=n,!tx(n)&&(r=Su[(a=String(n)).toLowerCase()],r===void 0))throw new be(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+s]=r}if(!r){const s=Object.entries(i).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?s.length>1?`since :
15
+ `+s.map(Hd).join(`
16
+ `):" "+Hd(s[0]):"as no adapter specified";throw new be("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Su};function hl(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Vi(null,t)}function qd(t){return hl(t),t.headers=Et.from(t.headers),t.data=fl.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Vm.getAdapter(t.adapter||fa.adapter)(t).then(function(r){return hl(t),r.data=fl.call(t,t.transformResponse,r),r.headers=Et.from(r.headers),r},function(r){return Hm(r)||(hl(t),r&&r.response&&(r.response.data=fl.call(t,t.transformResponse,r.response),r.response.headers=Et.from(r.response.headers))),Promise.reject(r)})}const Km="1.10.0",zo={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{zo[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Wd={};zo.transitional=function(e,n,r){function i(s,a){return"[Axios v"+Km+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,o)=>{if(e===!1)throw new be(i(a," has been removed"+(n?" in "+n:"")),be.ERR_DEPRECATED);return n&&!Wd[a]&&(Wd[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,o):!0}};zo.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function nx(t,e,n){if(typeof t!="object")throw new be("options must be an object",be.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const s=r[i],a=e[s];if(a){const o=t[s],l=o===void 0||a(o,s,t);if(l!==!0)throw new be("option "+s+" must be "+l,be.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new be("Unknown option "+s,be.ERR_BAD_OPTION)}}const $a={assertOptions:nx,validators:zo},gn=$a.validators;let Jr=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Rd,response:new Rd}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
17
+ `+s):r.stack=s}catch(a){}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ni(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&$a.assertOptions(r,{silentJSONParsing:gn.transitional(gn.boolean),forcedJSONParsing:gn.transitional(gn.boolean),clarifyTimeoutError:gn.transitional(gn.boolean)},!1),i!=null&&(H.isFunction(i)?n.paramsSerializer={serialize:i}:$a.assertOptions(i,{encode:gn.function,serialize:gn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),$a.assertOptions(n,{baseUrl:gn.spelling("baseURL"),withXsrfToken:gn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&H.merge(s.common,s[n.method]);s&&H.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),n.headers=Et.concat(a,s);const o=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,o.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,f=0,p;if(!l){const y=[qd.bind(this),void 0];for(y.unshift.apply(y,o),y.push.apply(y,u),p=y.length,c=Promise.resolve(n);f<p;)c=c.then(y[f++],y[f++]);return c}p=o.length;let h=n;for(f=0;f<p;){const y=o[f++],m=o[f++];try{h=y(h)}catch(v){m.call(this,v);break}}try{c=qd.call(this,h)}catch(y){return Promise.reject(y)}for(f=0,p=u.length;f<p;)c=c.then(u[f++],u[f++]);return c}getUri(e){e=ni(this.defaults,e);const n=Wm(e.baseURL,e.url,e.allowAbsoluteUrls);return Fm(n,e.params,e.paramsSerializer)}};H.forEach(["delete","get","head","options"],function(e){Jr.prototype[e]=function(n,r){return this.request(ni(r||{},{method:e,url:n,data:(r||{}).data}))}});H.forEach(["post","put","patch"],function(e){function n(r){return function(s,a,o){return this.request(ni(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Jr.prototype[e]=n(),Jr.prototype[e+"Form"]=n(!0)});let rx=class Xm{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(o=>{r.subscribe(o),s=o}).then(i);return a.cancel=function(){r.unsubscribe(s)},a},e(function(s,a,o){r.reason||(r.reason=new Vi(s,a,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Xm(function(i){e=i}),cancel:e}}};function ix(t){return function(n){return t.apply(null,n)}}function sx(t){return H.isObject(t)&&t.isAxiosError===!0}const Cu={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(Cu).forEach(([t,e])=>{Cu[e]=t});function Jm(t){const e=new Jr(t),n=Em(Jr.prototype.request,e);return H.extend(n,Jr.prototype,e,{allOwnKeys:!0}),H.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Jm(ni(t,i))},n}const qe=Jm(fa);qe.Axios=Jr;qe.CanceledError=Vi;qe.CancelToken=rx;qe.isCancel=Hm;qe.VERSION=Km;qe.toFormData=Bo;qe.AxiosError=be;qe.Cancel=qe.CanceledError;qe.all=function(e){return Promise.all(e)};qe.spread=ix;qe.isAxiosError=sx;qe.mergeConfig=ni;qe.AxiosHeaders=Et;qe.formToJSON=t=>Um(H.isHTMLForm(t)?new FormData(t):t);qe.getAdapter=Vm.getAdapter;qe.HttpStatusCode=Cu;qe.default=qe;const{Axios:ZT,AxiosError:$T,CanceledError:eI,isCancel:tI,CancelToken:nI,VERSION:rI,all:iI,Cancel:sI,isAxiosError:ax,spread:aI,toFormData:oI,AxiosHeaders:lI,HttpStatusCode:uI,formToJSON:cI,getAdapter:dI,mergeConfig:fI}=qe,ox={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function Bs(t){"@babel/helpers - typeof";return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bs(t)}function gt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return Rt(A,"_invoke",function(E,C,S){var b,w,x,N=0,D=S||[],M=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(O,B){return b=O,w=0,x=t,T.n=B,a}};function z(I,O){for(w=I,x=O,e=0;!M&&N&&!B&&e<D.length;e++){var B,R=D[e],Y=T.p,Q=R[2];I>3?(B=Q===O)&&(x=R[(w=R[4])?5:(w=3,3)],R[4]=R[5]=t):R[0]<=Y&&((B=I<2&&Y<R[1])?(w=0,T.v=O,T.n=R[1]):Y<Q&&(B=I<3||R[0]>O||O>Q)&&(R[4]=I,R[5]=O,T.n=Q,w=0))}if(B||I>1)return a;throw M=!0,O}return function(I,O,B){if(N>1)throw TypeError("Generator is already running");for(M&&O===1&&z(O,B),w=O,x=B;(e=w<2?t:x)||!M;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(I="next"),e=b[I]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+I+"' method"),w=1);b=t}else if((e=(M=T.n<0)?x:E.call(C,T))!==a)break}catch(R){b=t,w=1,x=R}finally{N=1}}return{value:e,done:M}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(Rt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,Rt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,Rt(f,"constructor",u),Rt(u,"constructor",l),l.displayName="GeneratorFunction",Rt(u,i,"GeneratorFunction"),Rt(f),Rt(f,i,"Generator"),Rt(f,r,function(){return this}),Rt(f,"toString",function(){return"[object Generator]"}),(gt=function(){return{w:s,m:p}})()}function Rt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}Rt=function(a,o,l,u){function c(f,p){Rt(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},Rt(t,e,n,r)}function Gd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Zr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Gd(Object(n),!0).forEach(function(r){lx(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gd(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function lx(t,e,n){return(e=ux(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ux(t){var e=cx(t,"string");return Bs(e)=="symbol"?e:e+""}function cx(t,e){if(Bs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Qd(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function ri(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){Qd(s,r,i,a,o,"next",l)}function o(l){Qd(s,r,i,a,o,"throw",l)}a(void 0)})}}var Zm=function(){var e,n;if((e=document)!==null&&e!==void 0&&e.cookie){var r=document.cookie.match(new RegExp("(^| )access_token=([^;]+)"));if(r)return decodeURIComponent(r[2])}return((n=ox)===null||n===void 0?void 0:n.VITE_MYYOAST_ACCESS_TOKEN)||""};function Yd(t){var e;if(typeof document!="undefined"){var n="; ".concat(document.cookie),r=n.split("; ".concat(t,"="));if(r.length===2)return(e=r.pop())===null||e===void 0?void 0:e.split(";").shift()}}var dx="yst-insights-token",Ki=qe.create({withCredentials:!0});Ki.interceptors.request.use(function(){var t=ri(gt().m(function e(n){var r,i;return gt().w(function(s){for(;;)switch(s.n){case 0:return s.n=1,hx();case 1:return r=s.v,s.n=2,e0();case 2:return i=s.v,n.headers=Zr(Zr(Zr({},n.headers||{}),i?{"X-XSRF-TOKEN":i}:{}),r?{Authorization:"Bearer ".concat(r)}:{}),s.a(2,n)}},e)}));return function(e){return t.apply(this,arguments)}}(),function(t){return Promise.reject(t)},{synchronous:!1});Ki.interceptors.response.use(function(t){return t},function(){var t=ri(gt().m(function e(n){var r;return gt().w(function(i){for(;;)switch(i.n){case 0:return n==null||(r=n.response)===null||r===void 0||r.status,i.a(2,Promise.reject(n))}},e)}));return function(e){return t.apply(this,arguments)}}());function $e(t){return ku.apply(this,arguments)}function ku(){return ku=ri(gt().m(function t(e){var n;return gt().w(function(r){for(;;)switch(r.n){case 0:return n=Zr({},e),delete n.baseURL,r.a(2,Ki.request(Zr(Zr({},n),{},{withCredentials:!0})))}},t)})),ku.apply(this,arguments)}function $m(t){Ki.defaults.baseURL=t}function Vd(){return Ki.defaults.baseURL}function fx(t){Zm=t}var ss=null;function hx(){return ju.apply(this,arguments)}function ju(){return ju=ri(gt().m(function t(){var e,n,r,i,s;return gt().w(function(a){for(;;)switch(a.p=a.n){case 0:if(e=Zm(),n=Ki.defaults.baseURL,r=px(e,n),i=sessionStorage.getItem(r),!i){a.n=4;break}if(a.p=1,s=JSON.parse(i),!((s==null?void 0:s.validUntil)>Date.now()&&s.value)){a.n=2;break}return a.a(2,String(s.value));case 2:a.n=4;break;case 3:a.p=3,a.v;case 4:if(!ss){a.n=5;break}return a.a(2,ss);case 5:return ss=ri(gt().m(function o(){var l,u,c,f,p;return gt().w(function(h){for(;;)switch(h.p=h.n){case 0:return h.p=0,h.n=1,e0();case 1:return l=h.v,h.n=2,qe.post(n+"/users/getToken",{},{headers:Zr({Authorization:"Bearer "+e},l?{"X-XSRF-TOKEN":l}:{}),withCredentials:!0});case 2:if(u=h.v,c=u.data,!(c!=null&&c.plainTextToken)){h.n=3;break}return sessionStorage.setItem(r,JSON.stringify({value:c.plainTextToken,validUntil:Date.parse(((f=c.accessToken)===null||f===void 0?void 0:f.expires_at)||"")||Date.now()+15*60*1e3})),h.a(2,c.plainTextToken);case 3:h.n=5;break;case 4:h.p=4,p=h.v,qe.isAxiosError(p)?p.response?console.error("Login failed with status",p.response.status,p.response.data):p.request?console.error("Login request made but no response received",p.request):console.error("Error setting up login request",p.message):console.error("Non-Axios error during login",p);case 5:return h.p=5,ss=null,h.f(5);case 6:return h.a(2,"")}},o,null,[[0,4,5,6]])}))(),a.a(2,ss)}},t,null,[[1,3]])})),ju.apply(this,arguments)}function px(t,e){var n=Array.from(t+e).reduce(function(r,i){return(r<<5)-r+i.charCodeAt(0)},0);return dx+":"+n}var as=null;function e0(){return Eu.apply(this,arguments)}function Eu(){return Eu=ri(gt().m(function t(){var e;return gt().w(function(n){for(;;)switch(n.n){case 0:if(window.location.hostname===new URL(Vd()||window.location.href).hostname){n.n=1;break}return n.a(2,"");case 1:if(e=Yd("XSRF-TOKEN"),!e){n.n=2;break}return n.a(2,decodeURIComponent(e));case 2:if(!as){n.n=3;break}return n.a(2,as);case 3:return as=ri(gt().m(function r(){var i;return gt().w(function(s){for(;;)switch(s.p=s.n){case 0:return s.p=0,s.n=1,qe.get(((i=Vd())===null||i===void 0?void 0:i.replace("/api/v1",""))+"/sanctum/csrf-cookie",{withCredentials:!0});case 1:return s.a(2,decodeURIComponent(Yd("XSRF-TOKEN")||""));case 2:return s.p=2,as=null,s.f(2);case 3:return s.a(2)}},r,null,[[0,,2,3]])}))(),n.a(2,as)}},t)})),Eu.apply(this,arguments)}function Fs(t){"@babel/helpers - typeof";return Fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fs(t)}function Kd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function re(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Kd(Object(n),!0).forEach(function(r){yx(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kd(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function yx(t,e,n){return(e=mx(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mx(t){var e=gx(t,"string");return Fs(e)=="symbol"?e:e+""}function gx(t,e){if(Fs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Fs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var vx=function(e,n){return $e({url:"/brands/".concat(e,"/analysis"),method:"GET",signal:n})},Uo=function(e){return["/brands/".concat(e,"/analysis")]},bx=function(e,n){var r,i=n!=null?n:{},s=i.query,a=(r=s==null?void 0:s.queryKey)!==null&&r!==void 0?r:Uo(e),o=function(u){var c=u.signal;return vx(e,c)};return re({queryKey:a,queryFn:o,enabled:!!e},s)};function Ec(t,e,n){var r=bx(t,e),i=nr(r);return i.queryKey=r.queryKey,i}var xx=function(e,n,r){return $e({url:"/brands/".concat(e,"/analysis/").concat(n),method:"GET",signal:r})},fn=function(e,n){return["/brands/".concat(e,"/analysis/").concat(n)]},wx=function(e,n,r){var i,s=r!=null?r:{},a=s.query,o=(i=a==null?void 0:a.queryKey)!==null&&i!==void 0?i:fn(e,n),l=function(c){var f=c.signal;return xx(e,n,f)};return re({queryKey:o,queryFn:l,enabled:!!(e&&n)},a)};function Ho(t,e,n,r){var i=wx(t,e,n),s=nr(i);return s.queryKey=i.queryKey,s}var Ax=function(e,n,r){return $e({url:"/brands/".concat(e,"/analysis/").concat(n,"/scans/").concat(r),method:"DELETE"})},Sx=function(e){var n=["deleteScan"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:re(re({},e),{},{mutation:re(re({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId,c=l.analysisId,f=l.scanId;return Ax(u,c,f)};return re({mutationFn:s},i)},Cx=function(e,n){var r=Sx(e);return Mn(r)},kx=function(e,n,r,i){return $e({url:"/brands/".concat(e,"/analysis/").concat(n,"/scans/").concat(r,"/manual-retry"),method:"POST",signal:i})},jx=function(e){var n=["manualRetryScan"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:re(re({},e),{},{mutation:re(re({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId,c=l.analysisId,f=l.scanId;return kx(u,c,f)};return re({mutationFn:s},i)},Ex=function(e,n){var r=jx(e);return Mn(r)},Ox=function(e,n,r){return $e({url:"/brands/".concat(e,"/analysis/").concat(n,"/status"),method:"GET",signal:r})},Kn=function(e,n){return["/brands/".concat(e,"/analysis/").concat(n,"/status")]},Px=function(e,n,r){var i,s=r!=null?r:{},a=s.query,o=(i=a==null?void 0:a.queryKey)!==null&&i!==void 0?i:Kn(e,n),l=function(c){var f=c.signal;return Ox(e,n,f)};return re({queryKey:o,queryFn:l,enabled:!!(e&&n)},a)};function Tx(t,e,n,r){var i=Px(t,e,n),s=nr(i);return s.queryKey=i.queryKey,s}var Ix=function(e,n,r,i){return $e({url:"/brands/".concat(e,"/analysis/").concat(n,"/scans/").concat(r,"/query-results"),method:"GET",signal:i})},Mx=function(e,n,r){return["/brands/".concat(e,"/analysis/").concat(n,"/scans/").concat(r,"/query-results")]},Lx=function(e,n,r,i){var s,a=i!=null?i:{},o=a.query,l=(s=o==null?void 0:o.queryKey)!==null&&s!==void 0?s:Mx(e,n,r),u=function(f){var p=f.signal;return Ix(e,n,r,p)};return re({queryKey:l,queryFn:u,enabled:!!(e&&n&&r)},o)};function Nx(t,e,n,r,i){var s=Lx(t,e,n,r),a=nr(s);return a.queryKey=s.queryKey,a}var Rx=function(e){return $e({url:"/users/logout",method:"POST",signal:e})},_x=function(e){var n=["logout"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:re(re({},e),{},{mutation:re(re({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(){return Rx()};return re({mutationFn:s},i)},Dx=function(e,n){var r=_x(e);return Mn(r)},Bx=function(e,n){return $e({url:"/brands/".concat(e,"/associated-brands"),method:"GET",signal:n})},po=function(e){return["/brands/".concat(e,"/associated-brands")]},Fx=function(e,n){var r,i=n!=null?n:{},s=i.query,a=(r=s==null?void 0:s.queryKey)!==null&&r!==void 0?r:po(e),o=function(u){var c=u.signal;return Bx(e,c)};return re({queryKey:a,queryFn:o,enabled:!!e},s)};function zx(t,e,n){var r=Fx(t,e),i=nr(r);return i.queryKey=r.queryKey,i}var Ux=function(e,n,r){return $e({url:"/brands/".concat(e,"/associated-brand-groups"),method:"POST",headers:{"Content-Type":"application/json"},data:n,signal:r})},Hx=function(e){var n=["createBrandAssociationGroup"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:re(re({},e),{},{mutation:re(re({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId,c=l.data;return Ux(u,c)};return re({mutationFn:s},i)},t0=function(e,n){var r=Hx(e);return Mn(r)},qx=function(e,n){return $e({url:"/brands/".concat(e,"/associated-brand-groups/").concat(n),method:"DELETE"})},Wx=function(e){var n=["deleteBrandAssociationGroup"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:re(re({},e),{},{mutation:re(re({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId,c=l.brandGroupId;return qx(u,c)};return re({mutationFn:s},i)},Gx=function(e,n){var r=Wx(e);return Mn(r)},Qx=function(e){return $e({url:"/brands",method:"GET",signal:e})},Pn=function(){return["/brands"]},Yx=function(e){var n,r=e!=null?e:{},i=r.query,s=(n=i==null?void 0:i.queryKey)!==null&&n!==void 0?n:Pn(),a=function(l){var u=l.signal;return Qx(u)};return re({queryKey:s,queryFn:a},i)};function li(t,e){var n=Yx(t),r=nr(n);return r.queryKey=n.queryKey,r}var Vx=function(e,n){return $e({url:"/brands",method:"POST",headers:{"Content-Type":"application/json"},data:e,signal:n})},Kx=function(e){var n=["createBrand"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:re(re({},e),{},{mutation:re(re({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.data;return Vx(u)};return re({mutationFn:s},i)},Xx=function(e,n){var r=Kx(e);return Mn(r)},Jx=function(e,n){return $e({url:"/brands/".concat(e),method:"GET",signal:n})},qo=function(e){return["/brands/".concat(e)]},Zx=function(e,n){var r,i=n!=null?n:{},s=i.query,a=(r=s==null?void 0:s.queryKey)!==null&&r!==void 0?r:qo(e),o=function(u){var c=u.signal;return Jx(e,c)};return re({queryKey:a,queryFn:o,enabled:!!e},s)};function zs(t,e,n){var r=Zx(t,e),i=nr(r);return i.queryKey=r.queryKey,i}var $x=function(e){return $e({url:"/brands/".concat(e),method:"DELETE"})},ew=function(e){var n=["deleteBrand"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:re(re({},e),{},{mutation:re(re({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId;return $x(u)};return re({mutationFn:s},i)},tw=function(e,n){var r=ew(e);return Mn(r)},nw=function(e,n){return $e({url:"/brands/".concat(e,"/settings"),method:"PATCH",headers:{"Content-Type":"application/json"},data:n})},rw=function(e){var n=["updateBrandSettings"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:re(re({},e),{},{mutation:re(re({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId,c=l.data;return nw(u,c)};return re({mutationFn:s},i)},n0=function(e,n){var r=rw(e);return Mn(r)},iw=function(e,n){return $e({url:"/brands/".concat(e,"/queries"),method:"PUT",headers:{"Content-Type":"application/json"},data:n})},sw=function(e){var n=["updateBrandQueries"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:re(re({},e),{},{mutation:re(re({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId,c=l.data;return iw(u,c)};return re({mutationFn:s},i)},aw=function(e,n){var r=sw(e);return Mn(r)},ow=function(e,n){return $e({url:"/brands/".concat(e,"/query-suggestions"),method:"GET",signal:n})},lw=function(e){return["/brands/".concat(e,"/query-suggestions")]},uw=function(e,n){var r,i=n!=null?n:{},s=i.query,a=(r=s==null?void 0:s.queryKey)!==null&&r!==void 0?r:lw(e),o=function(u){var c=u.signal;return ow(e,c)};return re({queryKey:a,queryFn:o,enabled:!!e},s)};function cw(t,e,n){var r=uw(t,e),i=nr(r);return i.queryKey=r.queryKey,i}var dw=function(e){return $e({url:"/users/current",method:"GET",signal:e})},Wo=function(){return["/users/current"]},fw=function(e){var n,r=e!=null?e:{},i=r.query,s=(n=i==null?void 0:i.queryKey)!==null&&n!==void 0?n:Wo(),a=function(l){var u=l.signal;return dw(u)};return re({queryKey:s,queryFn:a},i)};function ha(t,e){var n=fw(t),r=nr(n);return r.queryKey=n.queryKey,r}var hw=function(){return $e({url:"/users/data",method:"DELETE"})},pw=function(e){var n=["deleteUserData"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:re(re({},e),{},{mutation:re(re({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(){return hw()};return re({mutationFn:s},i)},yw=function(e,n){var r=pw(e);return Mn(r)},r0=F.createContext(void 0),mw=function(e){var n,r,i,s,a,o,l=e.children,u=e.brandId,c=e.analysisId,f=e.aiProvider,p=e.hostAppProps,h=p===void 0?{}:p,y=Ca("/brands/:brandId"),m=Ca("/brands/:brandId/*"),v=Ca("/brands/:brandId/analysis/:analysisId"),g=Ca("/brands/:brandId/analysis/:analysisId/*"),A=(v==null||(n=v.params)===null||n===void 0?void 0:n.brandId)||(g==null||(r=g.params)===null||r===void 0?void 0:r.brandId)||(m==null||(i=m.params)===null||i===void 0?void 0:i.brandId)||(y==null||(s=y.params)===null||s===void 0?void 0:s.brandId),E=(v==null||(a=v.params)===null||a===void 0?void 0:a.analysisId)||(g==null||(o=g.params)===null||o===void 0?void 0:o.analysisId),C=F.useMemo(function(){return{brandId:A||u||"",analysisId:E||c||"latest",aiProvider:f||"openai",hostAppProps:h}},[A,u,E,c,f,h]),S=F.useMemo(function(){return{data:C}},[C]);return d.jsx(r0.Provider,{value:S,children:l})},i0=F.createContext(void 0),gw=function(e){var n=e.children,r=e.setBrandId,i=e.setAnalysisId,s=e.setAiProvider,a=F.useCallback(function(f){r(f),i("latest")},[r,i]),o=F.useCallback(function(f){i(f)},[i]),l=F.useCallback(function(f){s(f)},[s]),u=F.useMemo(function(){return{setBrandId:a,setAnalysisId:o,setAiProvider:l}},[a,o,l]),c=F.useMemo(function(){return{mutations:u}},[u]);return d.jsx(i0.Provider,{value:c,children:n})};function pl(t,e){return ww(t)||xw(t,e)||bw(t,e)||vw()}function vw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bw(t,e){if(t){if(typeof t=="string")return Xd(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xd(t,e):void 0}}function Xd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function xw(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function ww(t){if(Array.isArray(t))return t}var Aw=function(e){var n=e.children,r=e.hostAppProps,i=r===void 0?{}:r,s=F.useState(void 0),a=pl(s,2),o=a[0],l=a[1],u=F.useState("latest"),c=pl(u,2),f=c[0],p=c[1],h=F.useState(void 0),y=pl(h,2),m=y[0],v=y[1];return d.jsx(gw,{brandId:o,setBrandId:l,analysisId:f,setAnalysisId:p,aiProvider:m,setAiProvider:v,children:d.jsx(mw,{brandId:o,analysisId:f,aiProvider:m,hostAppProps:i,children:n})})},Tt=function(){var e=F.useContext(r0);if(e===void 0)throw new Error("useBrandAnalysisData must be used within a BrandAnalysisDataProvider");return e.data},pa=function(){var e=F.useContext(i0);if(e===void 0)throw new Error("useBrandAnalysisMutations must be used within a BrandAnalysisMutationsProvider");return e.mutations},yl={exports:{}};/*!
19
19
  Copyright (c) 2018 Jed Watson.
20
20
  Licensed under the MIT License (MIT), see
21
21
  http://jedwatson.github.io/classnames
22
- */var Ud;function Kx(){return Ud||(Ud=1,function(t){(function(){var e={}.hasOwnProperty;function n(){for(var s="",a=0;a<arguments.length;a++){var o=arguments[a];o&&(s=i(s,r(o)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var o in s)e.call(s,o)&&s[o]&&(a=i(a,o));return a}function i(s,a){return a?s?s+" "+a:s+a:s}t.exports?(n.default=n,t.exports=n):window.classNames=n})()}(fl)),fl.exports}var Xx=Kx();const ie=Oo(Xx);var Jx=function(e){return ux({mutation:{onSettled:function(){e&&e()}}})};function Zx(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"}))}const $x=M.forwardRef(Zx);function ew(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}))}const tw=M.forwardRef(ew);function nw(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"}))}const rw=M.forwardRef(nw);function iw(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"}))}const sw=M.forwardRef(iw);function aw(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const ow=M.forwardRef(aw);function lw(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"}))}const uw=M.forwardRef(lw);function cw(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"}))}const dw=M.forwardRef(cw);function fw(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))}const $a=M.forwardRef(fw);function hw(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}const Hd=M.forwardRef(hw);function pw(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))}const yw=M.forwardRef(pw);function mw(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))}const gw=M.forwardRef(mw);function vw(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}))}const Gm=M.forwardRef(vw);function bw(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4v16m8-8H4"}))}const Ym=M.forwardRef(bw);function xw(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 12l3-3 3 3 4-4M8 21l4-4 4 4M3 4h18M4 4h16v12a1 1 0 01-1 1H5a1 1 0 01-1-1V4z"}))}const ww=M.forwardRef(xw);function Aw(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"}))}const Sw=M.forwardRef(Aw);function Cw(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"}))}const Vm=M.forwardRef(Cw);function kw(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))}const Cc=M.forwardRef(kw);function jw(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}))}const Ew=M.forwardRef(jw);var Ow=function(){return[{label:"Brand analysis",href:"/",Icon:ww,isActive:function(n){return n.startsWith("/setup")||n==="/"},showInMenu:!0},{label:"Settings",href:"/settings",Icon:ow,isActive:function(n){return n.startsWith("/settings")},showInMenu:!0}]},qd;function Pw(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Wd=function(e){var n=e.className,r=xt(),i=r.pathname,s=Ow();return d.jsx("div",{className:ie("yst-flex yst-flex-col yst-gap-10",n),children:d.jsx(C.SidebarNavigation.Sidebar,{children:d.jsx(C.SidebarNavigation.List,{className:"yst-space-y-2",children:s.filter(function(a){return a.showInMenu!==!1}).map(function(a){var o=a.isActive?a.isActive(i):!1;return d.jsx(C.SidebarNavigation.SubmenuItem,{className:ie("yst-flex yst-gap-x-3",{"yst-sidebar-navigation__item--active":o}),href:a.href,to:a.href,as:Cr,label:d.jsxs(d.Fragment,{children:[d.jsx(a.Icon,{className:ie(qd||(qd=Pw(["yst-sidebar-navigation__icon yst-h-6 yst-w-6"])))}),a.label]})},a.label)})})})})};const Tw="data:image/svg+xml,%3csvg%20width='208'%20height='42'%20viewBox='0%200%20208%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='169'%20width='39'%20height='16'%20rx='8'%20fill='%23BFDBFE'/%3e%3cpath%20d='M177.869%2012V4.9541H180.813C182.151%204.9541%20182.957%205.62793%20182.957%206.70703V6.7168C182.957%207.4541%20182.41%208.1084%20181.702%208.2207V8.30859C182.649%208.39648%20183.304%209.08008%20183.304%209.99316V10.0029C183.304%2011.2383%20182.386%2012%20180.882%2012H177.869ZM180.506%205.93555H179.129V7.92285H180.345C181.238%207.92285%20181.712%207.57617%20181.712%206.93652V6.92676C181.712%206.30176%20181.268%205.93555%20180.506%205.93555ZM180.545%208.81641H179.129V11.0186H180.594C181.521%2011.0186%20182.015%2010.6328%20182.015%209.91504V9.90527C182.015%209.19238%20181.507%208.81641%20180.545%208.81641ZM186.834%2012.1074C185.247%2012.1074%20184.285%2011.043%20184.285%209.34375V9.33887C184.285%207.65918%20185.257%206.56055%20186.775%206.56055C188.294%206.56055%20189.231%207.625%20189.231%209.23633V9.63672H185.501C185.516%2010.5938%20186.033%2011.1504%20186.858%2011.1504C187.518%2011.1504%20187.894%2010.8184%20188.011%2010.5742L188.025%2010.54H189.183L189.168%2010.584C188.997%2011.2725%20188.284%2012.1074%20186.834%2012.1074ZM186.79%207.5127C186.111%207.5127%20185.604%207.97168%20185.511%208.82129H188.045C187.962%207.94727%20187.469%207.5127%20186.79%207.5127ZM192.547%2012.0244C191.321%2012.0244%20190.818%2011.6143%20190.818%2010.584V7.60547H189.988V6.66309H190.818V5.35449H192.054V6.66309H193.182V7.60547H192.054V10.2959C192.054%2010.8281%20192.264%2011.0527%20192.771%2011.0527C192.942%2011.0527%20193.035%2011.0479%20193.182%2011.0332V11.9707C193.006%2012.0049%20192.781%2012.0244%20192.547%2012.0244ZM195.848%2012.0879C194.832%2012.0879%20194.095%2011.4629%20194.095%2010.4912V10.4814C194.095%209.5293%20194.822%208.97266%20196.121%208.89453L197.493%208.81152V8.35254C197.493%207.82031%20197.146%207.52734%20196.492%207.52734C195.936%207.52734%20195.574%207.72754%20195.452%208.0791L195.447%208.09863H194.3L194.305%208.05469C194.422%207.15625%20195.281%206.56055%20196.551%206.56055C197.923%206.56055%20198.694%207.22461%20198.694%208.35254V12H197.493V11.2676H197.41C197.117%2011.7852%20196.551%2012.0879%20195.848%2012.0879ZM195.296%2010.4326C195.296%2010.8867%20195.682%2011.1553%20196.219%2011.1553C196.951%2011.1553%20197.493%2010.6768%20197.493%2010.042V9.6123L196.292%209.69043C195.613%209.73438%20195.296%209.9834%20195.296%2010.4229V10.4326Z'%20fill='%231E3A8A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.5037%2019.2842C22.9203%2019.2842%2023.2881%2019.5608%2023.402%2019.9612L24.4143%2023.5057C24.857%2025.0583%2026.071%2026.2724%2027.6236%2026.715L31.1682%2027.7273C31.6629%2027.8705%2031.9526%2028.3881%2031.8094%2028.8828C31.7215%2029.192%2031.4774%2029.4361%2031.1682%2029.524L27.6236%2030.5363C26.071%2030.9789%2024.857%2032.193%2024.4143%2033.7456L23.402%2037.2901C23.2588%2037.7849%2022.7413%2038.0745%2022.2466%2037.9313C21.9373%2037.8434%2021.6932%2037.5993%2021.6053%2037.2901L20.5931%2033.7456C20.1504%2032.193%2018.9364%2030.9789%2017.3838%2030.5363L13.8392%2029.524C13.3445%2029.3808%2013.0548%2028.8633%2013.198%2028.3685C13.2859%2028.0593%2013.53%2027.8152%2013.8392%2027.7273L17.3838%2026.715C18.9364%2026.2724%2020.1504%2025.0583%2020.5931%2023.5057L21.6053%2019.9612C21.7193%2019.5608%2022.0871%2019.2842%2022.5037%2019.2842Z'%20fill='url(%23paint0_radial_4548_14216)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.3742%2012C13.6573%2012%2013.9047%2012.192%2013.9731%2012.4654L14.1846%2013.315C14.3799%2014.0864%2014.9821%2014.6918%2015.7535%2014.8838L16.603%2015.0954C16.9318%2015.1768%2017.1335%2015.512%2017.0522%2015.8407C16.9968%2016.0621%2016.8243%2016.2346%2016.603%2016.2899L15.7535%2016.5015C14.9821%2016.6968%2014.3767%2017.2989%2014.1846%2018.0703L13.9731%2018.9199C13.8917%2019.2486%2013.5564%2019.4504%2013.2277%2019.369C13.0064%2019.3137%2012.8339%2019.1412%2012.7785%2018.9199L12.567%2018.0703C12.3749%2017.2989%2011.7695%2016.6935%2010.9981%2016.5015L10.1486%2016.2899C9.81986%2016.2085%209.61805%2015.8733%209.69943%2015.5446C9.75476%2015.3232%209.92727%2015.1507%2010.1486%2015.0954L10.9981%2014.8838C11.7695%2014.6918%2012.3749%2014.0864%2012.567%2013.315L12.7785%2012.4654C12.8469%2012.192%2013.0943%2012%2013.3774%2012H13.3742Z'%20fill='url(%23paint1_radial_4548_14216)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.39254%2026.8813C6.54226%2026.8813%206.67571%2026.979%206.72453%2027.1189L6.90681%2027.669C6.97516%2027.8773%207.1379%2028.0401%207.34947%2028.1117L7.89954%2028.294C8.08181%2028.3558%208.17946%2028.5543%208.12087%2028.7366C8.08507%2028.8408%208.0037%2028.9222%207.89954%2028.958L7.34947%2029.1402C7.14116%2029.2086%206.97841%2029.3713%206.90681%2029.5829L6.72453%2030.133C6.66269%2030.3152%206.46414%2030.4129%206.28187%2030.3543C6.17771%2030.3185%206.09634%2030.2371%206.06054%2030.133L5.87827%2029.5829C5.80992%2029.3746%205.64392%2029.2118%205.4356%2029.1402L4.88553%2028.958C4.70326%2028.8961%204.60561%2028.6976%204.6642%2028.5153C4.7%2028.4111%204.78138%2028.3298%204.88553%2028.294L5.4356%2028.1117C5.64392%2028.0433%205.80666%2027.8806%205.87827%2027.669L6.06054%2027.1189C6.10936%2026.9757%206.24281%2026.8813%206.39254%2026.8813Z'%20fill='url(%23paint2_radial_4548_14216)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.80904%2033.5596C2.95876%2033.5596%203.09221%2033.6572%203.14104%2033.7972L3.32331%2034.3473C3.39166%2034.5556%203.5544%2034.7183%203.76597%2034.7899L4.31604%2034.9722C4.49832%2035.034%204.59596%2035.2326%204.53737%2035.4148C4.50157%2035.519%204.4202%2035.6004%204.31604%2035.6362L3.76597%2035.8185C3.55766%2035.8868%203.39492%2036.0495%203.32331%2036.2611L3.14104%2036.8112C3.07919%2036.9935%202.88065%2037.0911%202.69837%2037.0325C2.59422%2036.9967%202.51285%2036.9153%202.47704%2036.8112L2.29477%2036.2611C2.22642%2036.0528%202.06042%2035.8901%201.85211%2035.8185L1.30204%2035.6362C1.11976%2035.5743%201.02212%2035.3758%201.0807%2035.1935C1.11651%2035.0894%201.19788%2035.008%201.30204%2034.9722L1.85211%2034.7899C2.06042%2034.7216%202.22316%2034.5588%202.29477%2034.3473L2.47704%2033.7972C2.52587%2033.654%202.65931%2033.5596%202.80904%2033.5596Z'%20fill='url(%23paint3_radial_4548_14216)'/%3e%3cpath%20d='M2.42488%2032.7235C1.94641%2031.4476%201.68277%2030.0676%201.68277%2028.6256C1.68277%2023.5806%204.89532%2019.2712%209.38379%2017.634L8.79466%2016.0586C3.66498%2017.9269%200%2022.8483%200%2028.6256C0%2030.2661%200.296193%2031.835%200.836502%2033.2866L2.42488%2032.7268V32.7235Z'%20fill='url(%23paint4_radial_4548_14216)'/%3e%3cpath%20d='M20.6587%2037.7652C18.6602%2039.3633%2016.1279%2040.3202%2013.3743%2040.3202C10.0023%2040.3202%206.96221%2038.8849%204.82702%2036.5967L3.58691%2037.7359C6.02807%2040.3593%209.51078%2041.9998%2013.3776%2041.9998C16.5218%2041.9998%2019.4121%2040.9159%2021.6938%2039.0997L20.662%2037.7684L20.6587%2037.7652Z'%20fill='url(%23paint5_radial_4548_14216)'/%3e%3cpath%20d='M13.3739%2022.3664C15.0436%2022.3664%2016.5604%2023.0238%2017.6833%2024.0914L18.8095%2022.8383C17.3904%2021.5038%2015.4798%2020.6836%2013.3771%2020.6836C9.89444%2020.6836%206.93902%2022.9262%205.86816%2026.0476L7.44678%2026.627C8.28328%2024.1533%2010.6235%2022.3631%2013.3771%2022.3631L13.3739%2022.3664Z'%20fill='url(%23paint6_radial_4548_14216)'/%3e%3cpath%20d='M17.6737%2033.1658C16.5508%2034.2301%2015.0373%2034.8843%2013.3741%2034.8843C10.6074%2034.8843%208.2574%2033.0811%207.43392%2030.5879L5.84229%2031.1249C6.89035%2034.2822%209.8653%2036.5638%2013.3773%2036.5638C15.4832%2036.5638%2017.3971%2035.7436%2018.8162%2034.4059L17.677%2033.169L17.6737%2033.1658Z'%20fill='url(%23paint7_radial_4548_14216)'/%3e%3cpath%20d='M39.169%2021.2891H43.677C45.7666%2021.2891%2047.2802%2021.595%2048.2111%2022.2037C49.142%2022.8123%2049.6074%2023.7758%2049.6074%2025.0908C49.6074%2025.9761%2049.3796%2026.7149%2048.9206%2027.3041C48.4617%2027.8932%2047.8075%2028.2642%2046.9482%2028.414V28.5181C48.0158%2028.7199%2048.8002%2029.1138%2049.3014%2029.7062C49.8027%2030.2985%2050.0533%2031.0992%2050.0533%2032.1115C50.0533%2033.4753%2049.5781%2034.5429%2048.6244%2035.3143C47.6707%2036.0857%2046.3493%2036.473%2044.6502%2036.473H39.1658V21.2891H39.169ZM41.6525%2027.5645H44.0416C45.0799%2027.5645%2045.8383%2027.3985%2046.3167%2027.0697C46.7952%2026.741%2047.0328%2026.1811%2047.0328%2025.3935C47.0328%2024.6806%2046.7757%2024.1631%2046.2581%2023.8474C45.7406%2023.5284%2044.9236%2023.3689%2043.8007%2023.3689H41.6492V27.5645H41.6525ZM41.6525%2029.5792V34.3867H44.2889C45.3272%2034.3867%2046.1117%2034.1881%2046.6422%2033.791C47.1728%2033.3939%2047.4364%2032.7657%2047.4364%2031.9065C47.4364%2031.1188%2047.1662%2030.5329%2046.6259%2030.1521C46.0856%2029.7713%2045.2654%2029.5792%2044.1653%2029.5792H41.6525Z'%20fill='url(%23paint8_linear_4548_14216)'/%3e%3cpath%20d='M58.7762%2024.7817C59.2677%2024.7817%2059.6713%2024.8175%2059.9902%2024.8859L59.7526%2027.161C59.4076%2027.0764%2059.0463%2027.0374%2058.672%2027.0374C57.6955%2027.0374%2056.9046%2027.3563%2056.2992%2027.9943C55.6938%2028.6322%2055.3911%2029.459%2055.3911%2030.4778V36.4797H52.95V24.9933H54.8606L55.1828%2027.0178H55.3065C55.6873%2026.3311%2056.1853%2025.7908%2056.7972%2025.3871C57.4091%2024.9868%2058.0699%2024.785%2058.7762%2024.785V24.7817Z'%20fill='url(%23paint9_linear_4548_14216)'/%3e%3cpath%20d='M69.309%2036.4734L68.8208%2034.8753H68.7394C68.1861%2035.575%2067.6295%2036.0503%2067.0664%2036.3041C66.5065%2036.558%2065.784%2036.685%2064.9051%2036.685C63.7757%2036.685%2062.8969%2036.379%2062.2622%2035.7703C61.6275%2035.1617%2061.3118%2034.2991%2061.3118%2033.186C61.3118%2032.0012%2061.7512%2031.1094%2062.63%2030.5072C63.5088%2029.9051%2064.8498%2029.5763%2066.6498%2029.521L68.632%2029.4591V28.8472C68.632%2028.1116%2068.4595%2027.5648%2068.1177%2027.2003C67.7759%2026.8357%2067.2421%2026.6534%2066.5228%2026.6534C65.9337%2026.6534%2065.3706%2026.7413%2064.8303%2026.9138C64.29%2027.0864%2063.7692%2027.2914%2063.2712%2027.5258L62.4803%2025.7811C63.1019%2025.4557%2063.7855%2025.2083%2064.5276%2025.039C65.2697%2024.8698%2065.9662%2024.7852%2066.627%2024.7852C68.0884%2024.7852%2069.1918%2025.1041%2069.9339%2025.7421C70.6793%2026.38%2071.0503%2027.3793%2071.0503%2028.7431V36.4799H69.3057L69.309%2036.4734ZM65.6733%2034.8134C66.5586%2034.8134%2067.2714%2034.566%2067.8085%2034.0713C68.3455%2033.5766%2068.6124%2032.8833%2068.6124%2031.9882V30.9922L67.138%2031.054C65.989%2031.0963%2065.1525%2031.2884%2064.6285%2031.6301C64.1044%2031.9719%2063.8441%2032.4992%2063.8441%2033.2055C63.8441%2033.7165%2063.997%2034.1136%2064.2997%2034.3935C64.6057%2034.6734%2065.0614%2034.8134%2065.67%2034.8134H65.6733Z'%20fill='url(%23paint10_linear_4548_14216)'/%3e%3cpath%20d='M84.5646%2036.4732H82.1137V29.4102C82.1137%2028.5248%2081.9347%2027.8641%2081.5799%2027.4279C81.2219%2026.9918%2080.6588%2026.7737%2079.8809%2026.7737C78.8491%2026.7737%2078.0939%2027.0797%2077.6155%2027.6883C77.137%2028.297%2076.8994%2029.319%2076.8994%2030.7512V36.4732H74.4583V24.9868H76.3689L76.7106%2026.4938H76.8343C77.1793%2025.947%2077.6708%2025.5238%2078.3088%2025.2277C78.9467%2024.9315%2079.653%2024.7817%2080.4277%2024.7817C83.1846%2024.7817%2084.5614%2026.1846%2084.5614%2028.987V36.4765L84.5646%2036.4732Z'%20fill='url(%23paint11_linear_4548_14216)'/%3e%3cpath%20d='M91.836%2036.6814C90.4038%2036.6814%2089.2841%2036.1606%2088.4802%2035.1223C87.6762%2034.084%2087.2759%2032.6258%2087.2759%2030.751C87.2759%2028.8762%2087.6827%2027.4018%2088.4965%2026.3537C89.3102%2025.3056%2090.4364%2024.7816%2091.8783%2024.7816C93.3202%2024.7816%2094.5375%2025.3382%2095.3252%2026.4546H95.4489C95.3317%2025.6311%2095.2731%2024.9802%2095.2731%2024.5017V20.3159H97.724V36.4763H95.8134L95.387%2034.9693H95.2731C94.4919%2036.1118%2093.3462%2036.6847%2091.836%2036.6847V36.6814ZM92.4902%2034.709C93.4927%2034.709%2094.225%2034.4258%2094.6807%2033.8627C95.1364%2033.2996%2095.374%2032.3817%2095.387%2031.1156V30.7738C95.387%2029.3254%2095.1527%2028.2969%2094.6807%2027.6882C94.2088%2027.0795%2093.4732%2026.7736%2092.4674%2026.7736C91.6081%2026.7736%2090.9474%2027.1219%2090.4852%2027.8184C90.023%2028.5149%2089.7886%2029.5044%2089.7886%2030.7933C89.7886%2032.0823%2090.0132%2033.0392%2090.4624%2033.7065C90.9116%2034.3737%2091.5886%2034.709%2092.4869%2034.709H92.4902Z'%20fill='url(%23paint12_linear_4548_14216)'/%3e%3cpath%20d='M106.997%2036.473V21.2891H109.481V36.473H106.997Z'%20fill='url(%23paint13_linear_4548_14216)'/%3e%3cpath%20d='M123.334%2036.4732H120.883V29.4102C120.883%2028.5248%20120.704%2027.8641%20120.349%2027.4279C119.991%2026.9918%20119.428%2026.7737%20118.65%2026.7737C117.618%2026.7737%20116.863%2027.0797%20116.385%2027.6883C115.906%2028.297%20115.668%2029.319%20115.668%2030.7512V36.4732H113.227V24.9868H115.138L115.48%2026.4938H115.603C115.948%2025.947%20116.44%2025.5238%20117.078%2025.2277C117.716%2024.9315%20118.422%2024.7817%20119.197%2024.7817C121.954%2024.7817%20123.33%2026.1846%20123.33%2028.987V36.4765L123.334%2036.4732Z'%20fill='url(%23paint14_linear_4548_14216)'/%3e%3cpath%20d='M134.449%2033.2019C134.449%2034.3249%20134.039%2035.1841%20133.222%2035.783C132.405%2036.3819%20131.233%2036.6814%20129.71%2036.6814C128.187%2036.6814%20126.95%2036.4503%20126.022%2035.9848V33.8757C127.373%2034.4974%20128.629%2034.8098%20129.791%2034.8098C131.295%2034.8098%20132.044%2034.3574%20132.044%2033.4493C132.044%2033.1596%20131.959%2032.9155%20131.793%2032.7235C131.627%2032.5314%20131.354%2032.3296%20130.973%2032.1213C130.592%2031.913%20130.062%2031.6786%20129.385%2031.415C128.063%2030.904%20127.168%2030.3897%20126.699%2029.8787C126.231%2029.3677%20126%2028.7004%20126%2027.8835C126%2026.9005%20126.397%2026.1389%20127.188%2025.592C127.982%2025.0485%20129.059%2024.7783%20130.423%2024.7783C131.787%2024.7783%20133.05%2025.0517%20134.254%2025.5986L133.466%2027.4376C132.226%2026.9265%20131.185%2026.6694%20130.342%2026.6694C129.053%2026.6694%20128.411%2027.0372%20128.411%2027.7695C128.411%2028.1308%20128.581%2028.4335%20128.916%2028.6842C129.251%2028.9348%20129.983%2029.2766%20131.113%2029.7127C132.06%2030.0805%20132.75%2030.4158%20133.18%2030.7217C133.609%2031.0277%20133.928%2031.3792%20134.137%2031.7763C134.345%2032.1734%20134.449%2032.6519%20134.449%2033.2052V33.2019Z'%20fill='url(%23paint15_linear_4548_14216)'/%3e%3cpath%20d='M136.939%2021.9434C136.939%2021.5072%20137.059%2021.172%20137.297%2020.9344C137.535%2020.6968%20137.876%2020.5796%20138.319%2020.5796C138.762%2020.5796%20139.081%2020.6968%20139.322%2020.9344C139.562%2021.1687%20139.68%2021.504%20139.68%2021.9434C139.68%2022.3828%20139.559%2022.6855%20139.322%2022.9264C139.084%2023.164%20138.749%2023.2844%20138.319%2023.2844C137.889%2023.2844%20137.535%2023.164%20137.297%2022.9264C137.059%2022.6887%20136.939%2022.36%20136.939%2021.9434ZM139.527%2036.4731H137.085V24.9867H139.527V36.4731Z'%20fill='url(%23paint16_linear_4548_14216)'/%3e%3cpath%20d='M152.715%2024.987V26.328L150.752%2026.6925C150.931%2026.9334%20151.081%2027.2328%20151.198%2027.5843C151.316%2027.9359%20151.374%2028.3102%20151.374%2028.7073C151.374%2029.892%20150.964%2030.8229%20150.147%2031.5C149.33%2032.177%20148.204%2032.5187%20146.772%2032.5187C146.404%2032.5187%20146.072%2032.4927%20145.776%2032.4373C145.248%2032.7628%20144.988%2033.1437%20144.988%2033.5798C144.988%2033.8435%20145.112%2034.0387%20145.356%2034.1722C145.603%2034.3024%20146.052%2034.3707%20146.71%2034.3707H148.715C149.981%2034.3707%20150.945%2034.6409%20151.602%2035.1812C152.259%2035.7215%20152.588%2036.4994%20152.588%2037.5182C152.588%2038.8202%20152.051%2039.8227%20150.977%2040.529C149.903%2041.2353%20148.354%2041.5868%20146.326%2041.5868C144.76%2041.5868%20143.566%2041.3101%20142.742%2040.7568C141.919%2040.2035%20141.505%2039.4125%20141.505%2038.3905C141.505%2037.6842%20141.73%2037.0918%20142.176%2036.6101C142.622%2036.1284%20143.247%2035.7964%20144.051%2035.6076C143.725%2035.4676%20143.455%2035.2463%20143.247%2034.9371C143.035%2034.6279%20142.931%2034.3056%20142.931%2033.9671C142.931%2033.5375%20143.051%2033.173%20143.296%2032.8768C143.54%2032.5806%20143.898%2032.2844%20144.376%2031.9947C143.781%2031.7376%20143.299%2031.3209%20142.928%2030.7416C142.557%2030.1655%20142.371%2029.4884%20142.371%2028.7105C142.371%2027.4639%20142.765%2026.4972%20143.549%2025.8137C144.334%2025.1269%20145.454%2024.7852%20146.908%2024.7852C147.234%2024.7852%20147.576%2024.8079%20147.93%2024.8535C148.289%2024.8991%20148.555%2024.9446%20148.734%2024.9935H152.712L152.715%2024.987ZM143.689%2038.2603C143.689%2038.7876%20143.927%2039.1912%20144.402%2039.4744C144.877%2039.7576%20145.541%2039.9008%20146.401%2039.9008C147.729%2039.9008%20148.721%2039.7087%20149.372%2039.3279C150.023%2038.9471%20150.349%2038.4426%20150.349%2037.8111C150.349%2037.3131%20150.17%2036.9584%20149.815%2036.7468C149.457%2036.5352%20148.796%2036.4311%20147.826%2036.4311H145.978C145.278%2036.4311%20144.721%2036.5971%20144.311%2036.9258C143.898%2037.2546%20143.693%2037.7005%20143.693%2038.2603H143.689ZM144.741%2028.7073C144.741%2029.4266%20144.926%2029.9799%20145.297%2030.3705C145.668%2030.7578%20146.199%2030.9531%20146.892%2030.9531C148.305%2030.9531%20149.011%2030.198%20149.011%2028.6877C149.011%2027.9391%20148.835%2027.363%20148.487%2026.9594C148.139%2026.5558%20147.605%2026.3507%20146.892%2026.3507C146.179%2026.3507%20145.652%2026.5526%20145.288%2026.9529C144.923%2027.3532%20144.741%2027.9391%20144.741%2028.7073Z'%20fill='url(%23paint17_linear_4548_14216)'/%3e%3cpath%20d='M164.95%2036.4729H162.499V29.4099C162.499%2028.5245%20162.32%2027.8638%20161.965%2027.4276C161.607%2026.9915%20161.044%2026.7734%20160.266%2026.7734C159.241%2026.7734%20158.489%2027.0794%20158.007%2027.6913C157.526%2028.3032%20157.285%2029.3317%20157.285%2030.7704V36.4729H154.844V20.3125H157.285V24.4136C157.285%2025.0711%20157.243%2025.7742%20157.161%2026.5228H157.317C157.649%2025.9695%20158.112%2025.5398%20158.704%2025.2339C159.296%2024.9279%20159.986%2024.7782%20160.774%2024.7782C163.557%2024.7782%20164.95%2026.181%20164.95%2028.9835V36.4729Z'%20fill='url(%23paint18_linear_4548_14216)'/%3e%3cpath%20d='M172.625%2034.709C173.221%2034.709%20173.816%2034.6146%20174.412%2034.4291V36.2681C174.142%2036.3853%20173.794%2036.4829%20173.367%2036.5643C172.941%2036.6424%20172.501%2036.6847%20172.042%2036.6847C169.728%2036.6847%20168.573%2035.4674%20168.573%2033.0295V26.8387H167.004V25.7581L168.687%2024.863L169.517%2022.4316H171.024V24.9867H174.295V26.8355H171.024V32.9839C171.024%2033.5731%20171.17%2034.006%20171.466%2034.2859C171.763%2034.5658%20172.147%2034.7058%20172.625%2034.7058V34.709Z'%20fill='url(%23paint19_linear_4548_14216)'/%3e%3cpath%20d='M184.424%2033.2019C184.424%2034.3249%20184.014%2035.1841%20183.197%2035.783C182.38%2036.3819%20181.208%2036.6814%20179.685%2036.6814C178.161%2036.6814%20176.925%2036.4503%20175.997%2035.9848V33.8757C177.348%2034.4974%20178.604%2034.8098%20179.766%2034.8098C181.27%2034.8098%20182.018%2034.3574%20182.018%2033.4493C182.018%2033.1596%20181.934%2032.9155%20181.768%2032.7235C181.602%2032.5314%20181.328%2032.3296%20180.948%2032.1213C180.567%2031.913%20180.036%2031.6786%20179.359%2031.415C178.038%2030.904%20177.143%2030.3897%20176.674%2029.8787C176.205%2029.3677%20175.974%2028.7004%20175.974%2027.8835C175.974%2026.9005%20176.371%2026.1389%20177.162%2025.592C177.956%2025.0485%20179.034%2024.7783%20180.397%2024.7783C181.761%2024.7783%20183.024%2025.0517%20184.228%2025.5986L183.441%2027.4376C182.201%2026.9265%20181.159%2026.6694%20180.316%2026.6694C179.027%2026.6694%20178.386%2027.0372%20178.386%2027.7695C178.386%2028.1308%20178.555%2028.4335%20178.89%2028.6842C179.226%2028.9348%20179.958%2029.2766%20181.088%2029.7127C182.035%2030.0805%20182.725%2030.4158%20183.154%2030.7217C183.584%2031.0277%20183.903%2031.3792%20184.111%2031.7763C184.32%2032.1734%20184.424%2032.6519%20184.424%2033.2052V33.2019Z'%20fill='url(%23paint20_linear_4548_14216)'/%3e%3cdefs%3e%3cradialGradient%20id='paint0_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0672%2015.5248)%20scale(61.1655%2061.1655)'%3e%3cstop%20offset='0.17'%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint1_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0676%2015.525)%20scale(61.1655%2061.1655)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint2_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8974)%20scale(61.1655%2061.1654)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint3_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8984)%20scale(61.1655%2061.1656)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint4_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8978)%20scale(61.1655%2061.1655)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint5_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8978)%20scale(61.1655%2061.1654)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint6_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0673%2015.5246)%20scale(61.1655%2061.1656)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint7_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0675%20-58.8983)%20scale(61.1655%2061.1656)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3clinearGradient%20id='paint8_linear_4548_14216'%20x1='27.6858'%20y1='26.9883'%20x2='184.655'%20y2='47.7609'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint9_linear_4548_14216'%20x1='27.7019'%20y1='26.8681'%20x2='184.671'%20y2='47.6374'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint10_linear_4548_14216'%20x1='27.8582'%20y1='25.703'%20x2='184.827'%20y2='46.4723'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint11_linear_4548_14216'%20x1='28.0796'%20y1='24.0657'%20x2='185.049'%20y2='44.835'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint12_linear_4548_14216'%20x1='28.6426'%20y1='19.7724'%20x2='185.612'%20y2='40.5417'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint13_linear_4548_14216'%20x1='28.8281'%20y1='18.376'%20x2='185.794'%20y2='39.1453'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint14_linear_4548_14216'%20x1='28.7407'%20y1='19.0206'%20x2='185.71'%20y2='39.7899'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint15_linear_4548_14216'%20x1='28.9621'%20y1='17.367'%20x2='185.928'%20y2='38.1363'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint16_linear_4548_14216'%20x1='29.382'%20y1='14.187'%20x2='186.351'%20y2='34.9563'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint17_linear_4548_14216'%20x1='28.9585'%20y1='17.3836'%20x2='185.928'%20y2='38.1529'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint18_linear_4548_14216'%20x1='29.7136'%20y1='11.6741'%20x2='186.683'%20y2='32.4466'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint19_linear_4548_14216'%20x1='29.8241'%20y1='10.8313'%20x2='186.794'%20y2='31.6039'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint20_linear_4548_14216'%20x1='29.8206'%20y1='10.867'%20x2='186.79'%20y2='31.6364'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function Iw(t,e){return Rw(t)||Nw(t,e)||Lw(t,e)||Mw()}function Mw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lw(t,e){if(t){if(typeof t=="string")return Qd(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qd(t,e):void 0}}function Qd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Nw(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function Rw(t){if(Array.isArray(t))return t}var _w=function(e){var n=e.className,r=xt(),i=r.pathname,s=It(),a=s.hostAppProps,o=a.onLogout,l=F.useState(!1),u=Iw(l,2),c=u[0],f=u[1],p=fa({query:{select:function(j){var S=j.data;return S==null?void 0:S.data}}}),h=p.data,y=p.isLoading,m=Jx(o),v=m.mutate,g=m.isPending,A=function(j){if(j.preventDefault(),f(!0),!g)return v()};return d.jsxs("div",{className:ie("ystaii-sidemenu"),children:[d.jsx("div",{className:"ystaii-mobile-menu lg:yst-hidden",children:d.jsx(C.SidebarNavigation,{activePath:i,children:d.jsx(C.SidebarNavigation.Mobile,{closeButtonScreenReaderText:"Close sidebar",openButtonScreenReaderText:"Open sidebar",children:d.jsx(Wd,{})})})}),d.jsxs("div",{className:ie("ystaii-menuHeader","yst-mb-6 yst-mt-10 yst-flex yst-flex-row yst-justify-between yst-px-4","yst-flex-col yst-items-start yst-space-y-12 yst-max-w-2xl yst-mx-auto"),children:[d.jsx(C.Title,{children:d.jsx(Cr,{className:ie("yst-outline-none"),to:"/",children:d.jsx("img",{src:Tw,alt:"Yoast",width:"208",height:"42",className:"yst-block"})})}),d.jsxs("div",{className:ie("ystaii-userInfoContainer","yst-flex yst-flex-col"),children:[d.jsx("div",{children:d.jsx("b",{children:y?d.jsx(C.SkeletonLoader,{children:"Display name"}):h==null?void 0:h.displayName})}),d.jsx("div",{children:y?d.jsx(C.SkeletonLoader,{children:"loading-email@address.com"}):h==null?void 0:h.email}),d.jsx("div",{children:d.jsx(C.Link,{variant:"primary",className:"yst-no-underline",onClick:A,children:y?d.jsxs(C.SkeletonLoader,{children:["Sign out ",d.jsx("span",{"aria-hidden":"true",children:"→"})]}):c||g?d.jsx(d.Fragment,{children:"Signing out..."}):d.jsxs(d.Fragment,{children:["Sign out ",d.jsx("span",{"aria-hidden":"true",children:"→"})]})})})]})]}),d.jsx("div",{className:ie("ystaii-desktopMenu","yst-hidden","lg:yst-mb-0 lg:yst-block lg:yst-w-full lg:yst-shrink-0"),children:d.jsx(C.SidebarNavigation,{activePath:i,children:d.jsx(Wd,{className:n})})})]})},Dw=["className","href"];function Bw(t,e){if(t==null)return{};var n,r,i=Fw(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Fw(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var zw=function(e){var n=e.className,r=e.href,i=r===void 0?"#content":r,s=Bw(e,Dw);return d.jsx("a",{href:i,className:ie("yst-outline-none yst-absolute yst--top-[1000em] yst-left-[10px] yst-z-[100000] yst-block yst-h-12 yst-min-w-[150px] yst-rounded yst-bg-[var(--bg-color-white)] yst-px-[15px] yst-text-center yst-text-[14px] yst-leading-[48px] yst-underline yst-shadow-md focus:yst-top-[10px] focus:yst-text-[var(--text-color-blue)]",n),...s,children:"Skip to main content"})},Uw=F.lazy(function(){return Promise.resolve({default:function(){return null}})});function hl(t){var e=t.children,n=t.disable,r=n===void 0?!1:n,i=t.hideNav,s=i===void 0?!1:i,a=t.DebugInfo;return r?e:d.jsxs("div",{className:ie("ystaii-layout","yst-block","lg:yst-flex lg:yst-min-h-full lg:yst-overflow-visible"),children:[d.jsx(zw,{children:"Skip to main content"}),!s&&d.jsxs("div",{className:ie("ystaii-sidebar","yst-overflow-hidden","lg:yst-flex-grow-1 lg:yst-max-w-[300px] lg:yst-flex-shrink-0 lg:yst-basis-[300px] lg:yst-overflow-visible lg:yst-pl-4"),children:[d.jsx(_w,{}),a&&d.jsx(a,{}),d.jsx(F.Suspense,{fallback:null,children:d.jsx(Uw,{})}),d.jsxs("div",{id:"toast-portal",className:"yst-fixed yst-bottom-4 yst-left-4 yst-w-96 yst-space-y-4",children:[d.jsx("div",{id:"hook-toasts"}),d.jsx("div",{id:"tsx-toasts"})]})]}),d.jsx("main",{id:"content",className:ie("ystaii-main","yst-mx-4 yst-my-0 yst-flex yst-min-w-0 yst-shrink yst-grow yst-basis-auto yst-px-0 yst-py-6","lg:yst-ml-12 lg:yst-mr-6"),children:d.jsx("div",{className:ie("ystaii-main-content","yst-mx-auto yst-flex yst-flex-col yst-gap-8","lg:yst-w-full lg:yst-flex-row"),children:d.jsx("div",{className:"yst-layout-root yst-mx-auto yst-w-full yst-max-w-[1200px] yst-flex-1",children:e})})})]})}function bs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return Bt(A,"_invoke",function(E,j,S){var b,w,x,N=0,_=S||[],I=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(P,D){return b=P,w=0,x=t,T.n=D,a}};function z(L,P){for(w=L,x=P,e=0;!I&&N&&!D&&e<_.length;e++){var D,B=_[e],V=T.p,W=B[2];L>3?(D=W===P)&&(x=B[(w=B[4])?5:(w=3,3)],B[4]=B[5]=t):B[0]<=V&&((D=L<2&&V<B[1])?(w=0,T.v=P,T.n=B[1]):V<W&&(D=L<3||B[0]>P||P>W)&&(B[4]=L,B[5]=P,T.n=W,w=0))}if(D||L>1)return a;throw I=!0,P}return function(L,P,D){if(N>1)throw TypeError("Generator is already running");for(I&&P===1&&z(P,D),w=P,x=D;(e=w<2?t:x)||!I;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(L="next"),e=b[L]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+L+"' method"),w=1);b=t}else if((e=(I=T.n<0)?x:E.call(j,T))!==a)break}catch(B){b=t,w=1,x=B}finally{N=1}}return{value:e,done:I}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(Bt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,Bt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,Bt(f,"constructor",u),Bt(u,"constructor",l),l.displayName="GeneratorFunction",Bt(u,i,"GeneratorFunction"),Bt(f),Bt(f,i,"Generator"),Bt(f,r,function(){return this}),Bt(f,"toString",function(){return"[object Generator]"}),(bs=function(){return{w:s,m:p}})()}function Bt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}Bt=function(a,o,l,u){function c(f,p){Bt(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},Bt(t,e,n,r)}function Gd(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function Yd(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){Gd(s,r,i,a,o,"next",l)}function o(l){Gd(s,r,i,a,o,"throw",l)}a(void 0)})}}function Hw(t,e){return Gw(t)||Qw(t,e)||Ww(t,e)||qw()}function qw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ww(t,e){if(t){if(typeof t=="string")return Vd(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vd(t,e):void 0}}function Vd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Qw(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function Gw(t){if(Array.isArray(t))return t}var Yw=function(e){var n,r=e.className,i=on(),s=ht(),a=F.useState(!1),o=Hw(a,2),l=o[0],u=o[1],c=oi({query:{select:function(S){var b=S.data;return b==null?void 0:b.brands}}}),f=c.data,p=qm({mutation:{onSettled:function(){i.invalidateQueries({queryKey:[jn()]})}}}),h=p.mutateAsync,y=p.isPending,m=F.useMemo(function(){var j;return(j=f==null?void 0:f.filter(function(S){var b;return((b=S.settings)===null||b===void 0?void 0:b.showAutomaticAnalysisDisabledNotification)===!0}))!==null&&j!==void 0?j:[]},[f]);F.useEffect(function(){u(m.length!==0)},[m]);var v=function(){var j=Yd(bs().m(function S(){var b;return bs().w(function(w){for(;;)switch(w.n){case 0:return b=m.map(function(x){return h({brandId:String(x.id),data:{showAutomaticAnalysisDisabledNotification:!1}})}),w.n=1,Promise.all(b);case 1:u(!1);case 2:return w.a(2)}},S)}));return function(){return j.apply(this,arguments)}}(),g=function(){var j=Yd(bs().m(function S(){return bs().w(function(b){for(;;)switch(b.n){case 0:return b.n=1,v();case 1:s("/settings");case 2:return b.a(2)}},S)}));return function(){return j.apply(this,arguments)}}(),A=m.length===1?"One brand has been deactivated":"Multiple brands have been deactivated",E=m.length===1?d.jsxs(d.Fragment,{children:[d.jsx("p",{children:"You recently lost a subscription. Because of this, we could not analyze all your active brands."}),d.jsxs("p",{children:["The brand ",d.jsx("b",{children:m==null||(n=m[0])===null||n===void 0?void 0:n.name})," was deactivated, since it was the most recently analyzed."]}),d.jsxs("p",{children:["If you prefer, you can go to ",d.jsx("b",{children:"Settings"})," and deactivate a different brand instead."]})]}):d.jsxs(d.Fragment,{children:[d.jsx("p",{children:"You recently lost a subscription. Because of this, we could not analyze all your active brands."}),d.jsx("p",{children:"The following brands were deactivated, since they were the most recently analyzed:"}),d.jsx("ul",{children:m.map(function(j){return d.jsx("li",{children:d.jsx("b",{children:j.name})},j.id)})}),d.jsxs("p",{children:["If you prefer, you can go to ",d.jsx("b",{children:"Settings"})," and deactivate different brand(s) instead."]})]});return l?d.jsx(C.Modal,{isOpen:l,onClose:g,position:"center",as:"div",className:r,children:d.jsxs(C.Modal.Panel,{children:[d.jsx("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(C.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(C.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:A})}),d.jsx(C.Modal.Container.Content,{className:"yst-mb-4 yst-space-y-3",children:E})]})}),d.jsxs(C.Modal.Container.Footer,{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-2",children:[d.jsx(C.Button,{variant:"secondary",onClick:g,children:"Close"}),d.jsx(C.Button,{variant:"primary",onClick:g,isLoading:y,disabled:y,children:"Go to settings"})]})]})}):null};const Vw=t=>M.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8948 6.33943C17.1675 6.33943 17.4064 6.52012 17.4816 6.78187L18.1436 9.09795C18.4332 10.112 19.226 10.9049 20.2401 11.1945L22.5562 11.8565C22.8804 11.9493 23.0679 12.2871 22.975 12.6113C22.9167 12.814 22.7588 12.9719 22.5562 13.0301L20.2401 13.6921C19.226 13.9817 18.4332 14.7746 18.1436 15.7886L17.4816 18.1047C17.3887 18.4289 17.051 18.6164 16.7267 18.5235C16.5241 18.4652 16.3662 18.3073 16.3079 18.1047L15.646 15.7886C15.3563 14.7746 14.5635 13.9817 13.5494 13.6921L11.2333 13.0301C10.9091 12.9372 10.7217 12.5995 10.8145 12.2753C10.8728 12.0726 11.0307 11.9147 11.2333 11.8565L13.5494 11.1945C14.5635 10.9049 15.3563 10.112 15.646 9.09795L16.3079 6.78187C16.3831 6.52012 16.622 6.33943 16.8948 6.33943Z",fill:"url(#paint0_linear_1940_1302)"}),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9302 1.57979C11.1151 1.57979 11.2764 1.7056 11.3211 1.8846L11.4596 2.44103C11.5863 2.94596 11.9806 3.33943 12.4847 3.46608L13.0411 3.60456C13.2572 3.65775 13.3881 3.87644 13.3349 4.09175C13.2986 4.23698 13.1855 4.35012 13.0411 4.38559L12.4847 4.52406C11.9797 4.65071 11.5863 5.04503 11.4596 5.54911L11.3211 6.10554C11.2679 6.3217 11.0492 6.45257 10.8339 6.39938C10.6887 6.36307 10.5756 6.24993 10.5401 6.10554L10.4016 5.54911C10.2758 5.04418 9.8815 4.64987 9.37658 4.52406L8.82015 4.38559C8.60399 4.33239 8.47312 4.1137 8.52631 3.89839C8.56262 3.75316 8.67576 3.64002 8.82015 3.60456L9.37658 3.46608C9.8815 3.34027 10.2758 2.94596 10.4016 2.44103L10.5401 1.8846C10.584 1.7056 10.7453 1.57979 10.9302 1.57979Z",fill:"url(#paint1_linear_1940_1302)"}),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.36896 11.3034C6.4669 11.3034 6.55472 11.3659 6.58511 11.4596L6.70501 11.8193C6.75061 11.9552 6.857 12.0625 6.99294 12.1072L7.35263 12.2271C7.47169 12.2668 7.5367 12.3968 7.49617 12.5159C7.47338 12.5835 7.42018 12.6366 7.35263 12.6594L6.99294 12.7793C6.857 12.8249 6.74976 12.9313 6.70501 13.0673L6.58511 13.427C6.54543 13.546 6.4154 13.611 6.29634 13.5705C6.22879 13.5477 6.1756 13.4945 6.1528 13.427L6.0329 13.0673C5.98731 12.9313 5.88092 12.8241 5.74498 12.7793L5.38528 12.6594C5.26623 12.6198 5.20121 12.4897 5.24174 12.3707C5.26454 12.3031 5.31773 12.2499 5.38528 12.2271L5.74498 12.1072C5.88092 12.0616 5.98815 11.9552 6.0329 11.8193L6.1528 11.4596C6.18404 11.3667 6.27101 11.3034 6.36896 11.3034Z",fill:"url(#paint2_linear_1940_1302)"}),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.02759 15.6679C4.12553 15.6679 4.21335 15.7304 4.24374 15.8241L4.36364 16.1838C4.40924 16.3197 4.51563 16.427 4.65157 16.4717L5.01126 16.5916C5.13032 16.6313 5.19533 16.7613 5.1548 16.8804C5.13201 16.9479 5.07881 17.0011 5.01126 17.0239L4.65157 17.1438C4.51563 17.1894 4.40839 17.2958 4.36364 17.4318L4.24374 17.7915C4.20406 17.9105 4.07403 17.9755 3.95497 17.935C3.88742 17.9122 3.83423 17.859 3.81143 17.7915L3.69153 17.4318C3.64594 17.2958 3.53955 17.1886 3.40361 17.1438L3.04391 17.0239C2.92486 16.9842 2.85984 16.8542 2.90037 16.7352C2.92317 16.6676 2.97636 16.6144 3.04391 16.5916L3.40361 16.4717C3.53955 16.4261 3.64678 16.3197 3.69153 16.1838L3.81143 15.8241C3.84267 15.7312 3.92964 15.6679 4.02759 15.6679Z",fill:"url(#paint3_linear_1940_1302)"}),M.createElement("path",{d:"M3.77599 15.1216C3.46273 14.2874 3.29133 13.3856 3.29133 12.4433C3.29133 9.14607 5.39124 6.33014 8.3237 5.26287L7.93951 4.23276C4.58742 5.4537 2.19366 8.66901 2.19366 12.4433C2.19366 13.5139 2.38702 14.5398 2.73912 15.488L3.77599 15.1216Z",fill:"url(#paint4_linear_1940_1302)"}),M.createElement("path",{d:"M15.6899 18.4137C14.3837 19.4574 12.7287 20.0822 10.9302 20.0822C8.72816 20.0822 6.74055 19.1449 5.34482 17.6487L4.53424 18.3935C6.12923 20.1075 8.40393 21.179 10.9302 21.179C12.9846 21.179 14.8725 20.4697 16.3645 19.2834L15.6899 18.4129V18.4137Z",fill:"url(#paint5_linear_1940_1302)"}),M.createElement("path",{d:"M10.9302 8.35407C12.0203 8.35407 13.0115 8.78385 13.7453 9.48129L14.4807 8.66311C13.5528 7.79089 12.3048 7.25641 10.931 7.25641C8.65549 7.25641 6.7236 8.72221 6.02448 10.7613L7.05628 11.1396C7.60173 9.52266 9.13171 8.35407 10.931 8.35407H10.9302Z",fill:"url(#paint6_linear_1940_1302)"}),M.createElement("path",{d:"M13.7402 15.4104C13.0073 16.1053 12.0177 16.5325 10.931 16.5325C9.1241 16.5325 7.58906 15.3546 7.04951 13.7259L6.00842 14.0771C6.6932 16.1407 8.63775 17.6302 10.931 17.6302C12.3065 17.6302 13.5561 17.0932 14.4849 16.2193L13.7402 15.4104Z",fill:"url(#paint7_linear_1940_1302)"}),M.createElement("defs",null,M.createElement("linearGradient",{id:"paint0_linear_1940_1302",x1:5.35747,y1:4.15001,x2:20.3929,y2:14.9578,gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#A61E69"}),M.createElement("stop",{offset:1,stopColor:"#6366F1"})),M.createElement("linearGradient",{id:"paint1_linear_1940_1302",x1:7.32986,y1:1.40754,x2:22.3653,y2:12.2153,gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#A61E69"}),M.createElement("stop",{offset:1,stopColor:"#6366F1"})),M.createElement("linearGradient",{id:"paint2_linear_1940_1302",x1:1.77228,y1:9.13847,x2:16.8077,y2:19.9462,gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#A61E69"}),M.createElement("stop",{offset:1,stopColor:"#6366F1"})),M.createElement("linearGradient",{id:"paint3_linear_1940_1302",x1:-1.09428,y1:13.1255,x2:13.9412,y2:23.9333,gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#A61E69"}),M.createElement("stop",{offset:1,stopColor:"#6366F1"})),M.createElement("linearGradient",{id:"paint4_linear_1940_1302",x1:2.64455,y1:7.92344,x2:17.68,y2:18.7312,gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#A61E69"}),M.createElement("stop",{offset:1,stopColor:"#6366F1"})),M.createElement("linearGradient",{id:"paint5_linear_1940_1302",x1:.172293,y1:11.3642,x2:15.2078,y2:22.172,gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#A61E69"}),M.createElement("stop",{offset:1,stopColor:"#6366F1"})),M.createElement("linearGradient",{id:"paint6_linear_1940_1302",x1:4.40247,y1:5.47904,x2:19.4379,y2:16.2868,gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#A61E69"}),M.createElement("stop",{offset:1,stopColor:"#6366F1"})),M.createElement("linearGradient",{id:"paint7_linear_1940_1302",x1:1.58821,y1:9.39517,x2:16.6237,y2:20.2029,gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#A61E69"}),M.createElement("stop",{offset:1,stopColor:"#6366F1"})))),Kw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA2AAAAHoCAYAAAAv7ow4AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAOtaSURBVHgB7L0HgBzFmb/99uYg7SqDhERSAiSiwBYCgYkHlg3YBgsHggPRCQyOdwaDz8afDQf2nYlnsm2C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VD9IPhzZsk0rhZ04IIYQQQkjtGZPwRrSro+pICuYwxbo7hVRHtYU0WH6eEEIIIYSQ2jMmc8DwMI90Nsz/yqD6YSrjqoBoBdKAeV8ogc4qfCOnmnL0LD9PCCGEEEJI7RlTu4FMYYN8DfftkHw25zoHqW+d03qUhJHaUKhmGH5ldJafJ4QQQgghZHQYlwoLSEdEUQ0vyeqY2k35qjFGOfrQ57P8PCGEEEIIIaPCuJW4gxC0tkVs+xB1YdW90SFSQUohy88TQgghhBAyOoyr7UQd63tFud7XqNFWQUphKwtwEEIIIYQQMiqMq4AhKmNNjeOD/+gRNgKGOXiMQhJCCCGEEDI6jGulBchXx5RuVRkx2tXOB/9RxCisUa4aIsvPE0IIIYQQMnqMe6k7FIjARkafMOXoWX6eEEIIIYSQ0YMhpwkEFsQOAhFIlp8nhBBCCCFk9KCATSCQhtjeE/c/NmWSEEIIIYQQQkaPFk1HyIQim0ipeXdIRzSWA2jv7VIFOAghhBBCCCGjBwWMEEIIIYQQQsYIpiASQgghhBBCyBhBASOEEEIIIYSQMYICRgghhBBCCCFjBAWMEEIIIYQQQsYIChghhBBCCCGEjBEUMEIIIYQQQggZIyhghBBCCCGEEDJGUMAIIYQQQgghZIyggBFCCCGEEELIGEEBI4QQQgghhJAxggJGCCGEEEIIIWMEBYwQQgghhBBCxggKGCGEEEIIIYSMERQwQgghhBBCCBkjKGCEEEIIIYQQMkZQwAghhBBCCCFkjKCAEUIIIYQQQsgYQQEjhBBCCCGEkDGCAkYIIYQQQgghY8T/B+cQ4pXsw1icAAAAAElFTkSuQmCC";var Gi=function(e){var n=e.className,r=n===void 0?"":n,i=e.size,s=i===void 0?6:i;return d.jsx("hr",{className:ie("yst-mb-".concat(s," yst-mt-").concat(s),r)})},Km=function(e){var n=e.isOpen,r=e.variant,i=r===void 0?"purchase":r,s=e.onClose,a=It(),o=a.hostAppProps.onAddSubscription,l=function(){o==null||o()};return d.jsx(C.Modal,{isOpen:n,onClose:s||function(){},position:"center",as:"div",className:"[&_.yst-modal\\_\\_close-button]:yst-bg-transparent",children:d.jsxs(C.Modal.Panel,{className:ie("yst-relative yst-max-w-[512px] yst-rounded-3xl yst-bg-gradient-to-b yst-from-[rgba(166,30,105,0.25)] yst-via-white yst-via-40% yst-to-white yst-px-10",{"yst-pt-10":!!s,"yst-py-10":!s}),hasCloseButton:!!s,children:[d.jsx("img",{src:Kw,alt:"Upsell image",className:"yst-mb-6 yst-rounded-lg yst-shadow-lg"}),d.jsxs(C.Modal.Container.Header,{className:"yst-mb-4 yst-space-y-4 yst-text-center",children:[d.jsxs("p",{className:"yst-flex yst-items-center yst-justify-center yst-gap-1 yst-text-center yst-text-xs yst-uppercase yst-text-slate-500",children:[d.jsx(Vw,{className:"yst-h-6 yst-w-6"})," Available now - Yoast AI Brand Insights"]}),d.jsx(C.Modal.Title,{as:"h2",className:"yst-pr-8 yst-text-lg yst-font-medium yst-text-slate-900",children:"How does your brand show up in AI responses?"}),i==="trial"?d.jsxs("p",{className:"yst-text-tiny yst-font-normal yst-text-slate-600",children:["Track visibility, control perception, and stay ahead - tools to manage your AI presence are now live."," ",d.jsx("strong",{children:"Try it for free, on us!"})]}):d.jsx("p",{className:"yst-text-tiny yst-font-normal yst-text-slate-600",children:"Track visibility, control perception, and stay ahead - tools to manage your AI presence are now live!"})]}),i==="trial"&&d.jsxs(d.Fragment,{children:[d.jsx(Gi,{size:4}),d.jsx(C.Modal.Container.Content,{className:"yst-space-y-4",children:d.jsxs("p",{className:"yst-text-sm yst-italic yst-text-slate-600",children:["By continuing to use this product, you agree to our"," ",d.jsx(C.Link,{href:"https://yoast.com/terms-and-conditions/",target:"_blank",rel:"noopener noreferrer",variant:"default",children:"terms and conditions"})," ","and"," ",d.jsx(C.Link,{href:"https://yoast.com/privacy-policy/",target:"_blank",rel:"noopener noreferrer",variant:"default",children:"privacy notice"}),"."]})})]}),d.jsxs(C.Modal.Container.Footer,{className:"yst-mt-6 yst-flex yst-flex-col yst-gap-2",children:[i==="trial"?d.jsxs(C.Button,{variant:"primary",onClick:l,className:"yst-flex yst-w-full yst-items-center yst-gap-1",children:[d.jsx(Vm,{})," Discover Brand Insights now"]}):d.jsxs(C.Button,{variant:"upsell",onClick:l,className:"yst-flex yst-w-full yst-items-center yst-gap-1",children:[d.jsx(gw,{})," Unlock Yoast AI Brand Insights"]}),!!s&&d.jsx(C.Button,{onClick:s,variant:"tertiary",className:"yst-text-center",children:"Close"})]})]})})},Yi=function(){return d.jsx("div",{className:"yst-flex yst-min-h-screen yst-items-center yst-justify-center",children:d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-3 yst-text-center",children:[d.jsx(C.Spinner,{variant:"primary"}),d.jsx("span",{className:"yst-italic",children:"Just a moment while we get things ready for you..."})]})})};function Xw(t,e){return eA(t)||$w(t,e)||Zw(t,e)||Jw()}function Jw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
25
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zw(t,e){if(t){if(typeof t=="string")return Kd(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kd(t,e):void 0}}function Kd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function $w(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function eA(t){if(Array.isArray(t))return t}var tA={HOME:"/"},nA=function(e){var n,r,i,s=e.hideNav,a=s===void 0?!1:s,o=e.disableLayout,l=o===void 0?!1:o,u=e.DebugInfo,c=xt(),f=ht(),p=F.useState(!0),h=Xw(p,2),y=h[0],m=h[1],v={disable:l,hideNav:a},g=It(),A=g.brandId,E=ha(),j=E.setBrandId,S=oi({query:{refetchOnReconnect:!1,refetchOnWindowFocus:!1,select:function(V){var W;return V==null||(W=V.data)===null||W===void 0?void 0:W.brands}}}),b=S.data,w=S.isLoading,x=S.error,N=S.refetch,_=fa(),I=_.data,T=F.useRef(!1),z=F.useMemo(function(){return b==null?void 0:b.find(function(B){return B.id===A})},[b,A]);F.useEffect(function(){var B;if(!(b===void 0||A)){var V=(B=b[0])===null||B===void 0?void 0:B.id;V&&j(V)}},[b,A,j,f,c.pathname]),F.useEffect(function(){!A||T.current||(T.current=!0)},[z,A,f,c.pathname,b]);var L=F.useCallback(function(){N()},[N]);if(c.pathname!==tA.HOME&&w)return d.jsx(hl,{...v,children:d.jsx(Yi,{})});if(x)return d.jsx(hl,{...v,children:d.jsx("div",{className:"yst-flex yst-min-h-screen yst-items-center yst-justify-center",children:d.jsxs("div",{className:"yst-space-y-4 yst-text-center",children:[d.jsx("div",{className:"yst-mb-4 yst-text-6xl yst-text-red-600",children:"⚠️"}),d.jsx("h2",{className:"yst-text-xl yst-font-semibold yst-text-slate-900",children:"Something went wrong"}),d.jsx("p",{className:"yst-text-slate-600",children:"We couldn't load your Brand Analysis. Please try again shortly."}),d.jsx(C.Button,{variant:"primary",onClick:L,children:"Retry"})]})})});var P=(I==null||(n=I.data)===null||n===void 0?void 0:n.activeSubscriptions)===0,D=(I==null||(r=I.data)===null||r===void 0?void 0:r.brands)&&(I==null||(i=I.data)===null||i===void 0||(i=i.brands)===null||i===void 0?void 0:i.length)>0;return d.jsxs(hl,{DebugInfo:u,...v,children:[d.jsx(_i,{}),d.jsx(Yw,{}),P&&d.jsx(Km,{isOpen:y,onClose:D?function(){m(!1)}:void 0})]})},Ln=function(e){var n=e.title,r=xt();return F.useEffect(function(){document.title=n},[r,n]),null},rA=function(){var e=To(),n=e.brandId,r=e.analysisId,i=Sc(n,{query:{enabled:!!n,select:function(c){var f=c.data;return(f==null?void 0:f.analyses)||[]}}}),s=i.data,a=i.isLoading,o=i.error;if(a)return d.jsx(Yi,{});if(o)return console.error("Error fetching analyses for validation:",o),d.jsx(gi,{to:"/brands/".concat(n),replace:!0});if(!r||r.trim()==="")return d.jsx(gi,{to:"/brands/".concat(n),replace:!0});if(r==="latest")return d.jsx(_i,{});var l=s==null?void 0:s.some(function(u){return u.id===r});return l?d.jsx(_i,{}):d.jsx(gi,{to:"/brands/".concat(n),replace:!0})},Xd=function(){var e=To(),n=e.brandId,r=oi({query:{select:function(f){var p=f.data;return p}}}),i=r.data,s=r.isLoading,a=r.error,o=r.isFetched,l=(i==null?void 0:i.brands)||[];if(s||!o)return d.jsx(Yi,{});if(a)return d.jsx(gi,{to:"/",replace:!0});if(!n||n.trim()==="")return d.jsx(gi,{to:"/",replace:!0});var u=l.length>0&&l.some(function(c){return String(c.id)===n});return o&&!u?d.jsx(gi,{to:"/",replace:!0}):d.jsx(_i,{})};function iA(t){return oA(t)||aA(t)||Xm(t)||sA()}function sA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
26
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aA(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function oA(t){if(Array.isArray(t))return ku(t)}function lA(t,e){return dA(t)||cA(t,e)||Xm(t,e)||uA()}function uA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
27
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xm(t,e){if(t){if(typeof t=="string")return ku(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ku(t,e):void 0}}function ku(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function cA(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function dA(t){if(Array.isArray(t))return t}var kc=F.createContext(void 0),fA=function(e){var n=e.children,r=F.useState([]),i=lA(r,2),s=i[0],a=i[1],o=F.useCallback(function(u){a(function(c){return c.filter(function(f){return f.id!==u})})},[]),l=F.useCallback(function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a(function(f){var p,h,y=typeof u=="string"?f.some(function(A){return typeof A.message!="string"?!1:A.message===u&&A.variant===(c.variant||"info")}):!1;if(y)return f;var m="toast-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,11)),v=(p=c.duration)!==null&&p!==void 0?p:5e3,g={id:m,message:u,variant:c.variant||"info",duration:v,dismissible:(h=c.dismissible)!==null&&h!==void 0?h:!0};return v>0&&setTimeout(function(){o(m)},v),[].concat(iA(f),[g])})},[o]);return d.jsx(kc.Provider,{value:{toasts:s,addToast:l,removeToast:o},children:n})},hA=function(){var e=F.useContext(kc);if(!e)return null;var n=e.toasts,r=e.removeToast;if(typeof window=="undefined")return null;var i=document.getElementById("hook-toasts");return i?Uy.createPortal(d.jsx("div",{className:ie("yst-w-full yst-space-y-4"),"aria-live":"polite","aria-atomic":"true",children:n.map(function(s){var a;return d.jsxs(C.Toast,{className:ie("yst-w-full",s.className),id:s.id,variant:s.variant||"info",autoDismiss:s.dismissible?0:(a=s.duration)!==null&&a!==void 0?a:1500,onDismiss:function(){return r(s.id)},isVisible:!0,setIsVisible:function(){},children:[d.jsxs("div",{className:"yst-flex yst-gap-3",children:[d.jsx("div",{className:"yst-flex-shrink-0",children:d.jsx(C.ValidationIcon,{className:"yst-h-5 yst-w-5",variant:s.variant})}),d.jsxs("div",{className:"yst-flex-1",children:[typeof s.title=="string"?d.jsx(C.Title,{title:s.title}):s.title,typeof s.message=="string"?d.jsx("p",{className:"yst-mb-0",children:s.message}):s.message]}),s.dismissible&&d.jsx("div",{children:d.jsx(C.Toast.Close,{className:"yst-p-0 yst-text-slate-400",dismissScreenReaderLabel:"Dismiss"})})]}),s.actions&&d.jsx("div",{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-3",children:d.jsx(s.actions,{dismiss:function(){return r(s.id)}})})]},s.id)})}),i):null},jc=function(){var e=F.useContext(kc);if(!e)throw new Error("useToast must be used within a ToastProvider");var n=e.addToast;return F.useCallback(function(r,i){n(r,i)},[n])};function pA(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{fillRule:"evenodd",d:"M14.707 12.293a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 111.414-1.414L9 14.586V3a1 1 0 012 0v11.586l2.293-2.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}const Jm=M.forwardRef(pA);function yA(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}const mA=M.forwardRef(yA);function gA(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{fillRule:"evenodd",d:"M5.293 7.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 11-2 0V5.414L6.707 7.707a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}const Zm=M.forwardRef(gA);function vA(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}const $m=M.forwardRef(vA);function bA(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))}const xA=M.forwardRef(bA);function wA(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"}))}const AA=M.forwardRef(wA);function SA(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{d:"M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"}),M.createElement("path",{d:"M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"}))}const e0=M.forwardRef(SA);function CA(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))}const kA=M.forwardRef(CA);function jA(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{fillRule:"evenodd",d:"M2 5a2 2 0 012-2h12a2 2 0 012 2v2a2 2 0 01-2 2H4a2 2 0 01-2-2V5zm14 1a1 1 0 11-2 0 1 1 0 012 0zM2 13a2 2 0 012-2h12a2 2 0 012 2v2a2 2 0 01-2 2H4a2 2 0 01-2-2v-2zm14 1a1 1 0 11-2 0 1 1 0 012 0z",clipRule:"evenodd"}))}const EA=M.forwardRef(jA);function OA(t,e){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),M.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))}const t0=M.forwardRef(OA);var un={openai:"openai",perplexity:"perplexity",anthropic:"anthropic",gemini:"gemini"},PA={updating:"updating"},zn={pending:"pending",processing:"processing",completed:"completed",failed:"failed",cancelled:"cancelled"};const ju=t=>M.createElement("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},M.createElement("path",{d:"M3.652 15.0488C2.3816 15.0488 1.348 14.0152 1.348 12.7448V5.22476C1.348 3.95436 2.3816 2.92075 3.652 2.92075H9.5912L9.9304 2.07275H3.652C1.9144 2.07275 0.5 3.48716 0.5 5.22476V12.7448C0.5 14.4824 1.9144 15.8968 3.652 15.8968H3.6776V15.0488H3.652Z",fill:"#A61E69"}),M.createElement("path",{d:"M16.5 5.22468C16.5 3.74948 15.4824 2.51428 14.1096 2.17188L13.812 2.97188C14.8584 3.18628 15.6488 4.11748 15.6488 5.22788V15.0519H9.16236C9.00236 15.3527 8.83276 15.6375 8.65356 15.8999H16.4968V5.22468H16.5Z",fill:"#A61E69"}),M.createElement("path",{d:"M11.5815 0.140137L8.03267 9.99614L6.28867 4.53374H4.15747L6.82307 11.3785C7.06947 12.0121 7.06947 12.7129 6.82307 13.3497C6.56387 14.0121 6.10627 14.8025 4.82947 15.0361L4.77187 15.0457V16.8633H4.84547C5.91107 16.8185 6.73667 16.4665 7.44387 15.7561C8.16387 15.0329 8.78147 13.9065 9.38947 12.2137L13.8919 0.140137H11.5815Z",fill:"#A61E69"}));var Jd="production",Zd="development",$d="staging",ef={development:["localhost","my.yoast.test"],staging:["staging","pages.dev"]};function TA(){var t=It(),e=t.hostAppProps,n=e==null?void 0:e.env,r=F.useMemo(function(){return typeof window!="undefined"?window.location.hostname:""},[]);return F.useMemo(function(){var i=function(u){return u.some(function(c){return r.includes(c)})},s=n?n===Zd:i(ef.development),a=n?n===$d:i(ef.staging),o=n?n===Jd:!s&&!a;return{env:n||(s?Zd:a?$d:Jd),isProduction:o,isDevelopment:s,isStaging:a}},[n,r])}var tf=function(e){return typeof e=="string"&&e!=="latest"&&e.trim().length>0};function Fs(t){"@babel/helpers - typeof";return Fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fs(t)}var IA=["children","as","startColor","endColor","angle","disabled","style","className"];function nf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function rf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nf(Object(n),!0).forEach(function(r){MA(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function MA(t,e,n){return(e=LA(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function LA(t){var e=NA(t,"string");return Fs(e)=="symbol"?e:e+""}function NA(t,e){if(Fs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Fs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function RA(t,e){if(t==null)return{};var n,r,i=_A(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function _A(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var zs=function(e){var n=e.children,r=e.as,i=r===void 0?"span":r,s=e.startColor,a=s===void 0?"#A61E69":s,o=e.endColor,l=o===void 0?"#6366F1":o,u=e.angle,c=u===void 0?102:u,f=e.disabled,p=f===void 0?!1:f,h=e.style,y=h===void 0?{}:h,m=e.className,v=m===void 0?"":m,g=RA(e,IA),A=rf(p?{display:"inline-block"}:{background:"linear-gradient(".concat(c,"deg, ").concat(a,", ").concat(l,")"),WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"},y);return d.jsx(i,{className:v,style:A,...g,children:n})};function Ec(t){var e=t.children,n=t.nestedInPaperContent,r=n===void 0?!1:n,i=t.className;return d.jsx("div",{className:ie("yst-mt-8 yst-flex yst-items-center yst-justify-end yst-gap-6 yst-rounded-bl-lg yst-rounded-br-lg yst-border-t yst-border-slate-200 yst-bg-slate-50 yst-px-8 yst-py-6",{"yst-mb-[-2rem] yst-ml-[-2rem] yst-mr-[-2rem]":r},i),children:e})}var DA=function(){var e=ht();return d.jsx("form",{onSubmit:function(){return e("/setup")},children:d.jsxs(C.Paper,{className:"yst-mx-auto yst-flex yst-max-w-2xl",children:[d.jsx(C.Paper.Header,{children:d.jsxs(C.Title,{size:"1",children:["Welcome to ",d.jsx(zs,{children:"Yoast AI Brand Insights"}),"!"]})}),d.jsxs(C.Paper.Content,{className:"yst-space-y-8",children:[d.jsxs("div",{className:"yst-space-y-4 *:yst-text-tiny",children:[d.jsx("p",{children:"See how your brand is represented in AI answers."}),d.jsxs("p",{children:[d.jsx("b",{className:"yst-font-medium yst-text-slate-800",children:"Yoast AI Brand Insights"})," ","shows how often your brand appears, how it's described, and how it compares to competitors in tools like ChatGPT and Perplexity."]}),d.jsx("p",{children:"It only takes three simple steps to get your brand insights:"})]}),d.jsx("div",{className:"yst-flex yst-flex-col yst-items-stretch yst-justify-stretch yst-gap-4 yst-pb-8",children:[{title:"1. ADD BRAND INFO",description:"Tell us about your brand and where it's active so we can customize your analysis."},{title:"2. REVIEW QUERIES",description:"Edit or approve the queries generated from your input."},{title:"3. RUN ANALYSIS",description:"Run your queries through relevant AI platforms to see how your brand shows up."}].map(function(n,r,i){return d.jsxs("div",{className:"yst-relative yst-flex yst-flex-col yst-items-stretch",children:[d.jsxs("div",{className:"yst-flex yst-flex-row yst-items-center yst-justify-stretch yst-gap-6",children:[d.jsx(C.Stepper.Step,{isActive:!0,isComplete:!1,children:d.jsx("span",{className:"yst-hidden",children:r+1})}),d.jsxs("div",{className:"yst-flex yst-flex-1 yst-flex-col yst-gap-2 yst-rounded yst-border yst-border-slate-200 yst-p-6",children:[d.jsx(C.Title,{size:"3",className:"yst-font-semibold yst-uppercase",children:n.title}),d.jsx("p",{className:"yst-my-0 yst-py-0",children:n.description})]})]}),r<i.length-1&&d.jsx("div",{className:"yst-absolute yst-left-[-2px] yst-top-1/2 yst-my-0 yst-ml-[13px] yst-h-full yst-border-l-2 yst-border-l-primary-600"})]},n.title)})})]}),d.jsx(Ec,{className:"yst-justify-end",children:d.jsxs(C.Button,{variant:"primary",onClick:function(){return e("/setup")},children:["Start your first analysis ",d.jsx(mA,{})]})})]})})};function Us(t){return typeof t!="number"?{}:{"yst-text-green-600":t>0,"yst-text-red-600":t<0,"yst-text-gray-400":t===0}}function pa(t){var e=t.score,n=t.total,r=t.suffix,i=t.isLoading,s=i===void 0?!1:i,a=t.className,o=t.hideTotal,l=o===void 0?!1:o,u=t.delta,c=t.deltaFormat,f=c===void 0?"absolute":c,p=t.deltaSuffix,h=t.scoreFormat,y=h===void 0?"absolute":h;return d.jsxs("div",{className:ie(a,"yst-font-medium"),children:[d.jsxs("span",{className:"yst-mr-1 yst-text-xl yst-font-bold yst-text-slate-900",children:[s||e===void 0||e===null?"—":e,!s&&e!==void 0&&e!==null&&y==="percentage"?"%":""]}),!l&&n&&n!==0&&n!=="0"&&d.jsxs("span",{className:"yst-text-slate-500",children:["/ ",s?"—":n]}),r&&d.jsxs("span",{className:"yst-text-slate-500",children:[" ",r]}),typeof u=="number"&&!isNaN(u)&&d.jsxs("span",{className:ie("yst-ml-2",Us(u)),children:[u>-1&&"+",u,f==="percentage"&&"%"," ",p]})]})}var BA=["Icon","className","children","position","id"];function FA(t,e){return qA(t)||HA(t,e)||UA(t,e)||zA()}function zA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
28
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UA(t,e){if(t){if(typeof t=="string")return sf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sf(t,e):void 0}}function sf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function HA(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function qA(t){if(Array.isArray(t))return t}function WA(t,e){if(t==null)return{};var n,r,i=QA(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function QA(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Oc(t){var e=t.Icon,n=e===void 0?yw:e,r=t.className,i=r===void 0?"":r,s=t.children,a=t.position,o=a===void 0?"left":a,l=t.id,u=l===void 0?"":l,c=WA(t,BA),f=F.useState(!1),p=FA(f,2),h=p[0],y=p[1];return s?d.jsxs("div",{className:i||"yst-relative",onMouseEnter:function(){return y(!0)},onMouseLeave:function(){return y(!1)},"aria-describedby":u?"tooltip-button-id":"tooltip-button",...c,children:[d.jsx(n,{className:"yst-relative yst-h-6 yst-w-6 yst-text-slate-400"}),h&&d.jsx(C.Tooltip,{position:o,id:u||"tooltip-button",children:s})]}):null}var ya=function(e){var n=e.title,r=e.tooltip,i=e.size,s=i===void 0?"3":i,a=e.className,o=a===void 0?"":a,l=function(f){var p=typeof f=="string"?f:"tooltip";return"tooltip-".concat(p.toLowerCase().replace(/\s+/g,"-"))},u=l(n);return d.jsxs("div",{className:"yst-flex yst-items-center yst-justify-between ".concat(o),children:[d.jsx(C.Title,{size:s,children:n}),d.jsx(Oc,{id:u,children:r})]})},af=function(e){var n=e.keywords,r=e.badgeClassName;return d.jsx("div",{className:"yst-flex yst-flex-wrap yst-gap-2",children:n.map(function(i,s){return i&&d.jsx(C.Badge,{className:r,children:i},s)})})},n0=function(e){var n,r,i,s,a=e.title,o=a===void 0?"Sentiment":a,l=e.tooltip,u=l===void 0?"":l,c=e.data,f=c==null?void 0:c.brandName,p=c==null||(n=c.positivityPercentage)===null||n===void 0?void 0:n.value,h=c==null||(r=c.positivityPercentage)===null||r===void 0||(r=r.previous)===null||r===void 0?void 0:r.difference,y=c==null||(i=c.keywords)===null||i===void 0?void 0:i.positive,m=c==null||(s=c.keywords)===null||s===void 0?void 0:s.negative,v=!c||p===void 0&&h===void 0;return d.jsx(C.Card,{className:"yst-overflow-visible",children:d.jsxs(C.Card.Content,{className:"yst-space-y-8",children:[d.jsx(ya,{title:o,tooltip:u}),d.jsx("div",{className:"yst-space-y-3",children:!v&&d.jsxs(d.Fragment,{children:[d.jsx("p",{children:f||d.jsx(C.SkeletonLoader,{className:"yst-h-6 yst-w-20"})}),d.jsxs("div",{children:[d.jsx("div",{className:"yst-inline-flex",children:d.jsx(pa,{className:"yst-mb-1.5",score:p,scoreFormat:"percentage",suffix:"positive",delta:h})}),d.jsx(C.ProgressBar,{max:100,min:0,progress:p||0,className:ie({"yst-bg-red-500":p},"[&>*]:yst-bg-green-500")})]})]})}),v&&d.jsx(C.Alert,{variant:"info",children:"The selected AI platform returned no brand sentiment data for your queries. This can happen with some queries or platforms."}),!!y&&d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(C.Title,{as:"h5",size:"5",children:"Positive keywords"}),d.jsx(af,{keywords:y,badgeClassName:"yst-bg-green-100 yst-text-green-800"})]}),!!m&&d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(C.Title,{as:"h5",size:"5",children:"Negative keywords"}),d.jsx(af,{keywords:m,badgeClassName:"yst-bg-red-100 yst-text-red-800"})]})]})})};function Hs(t){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hs(t)}var GA=["data"];function of(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function YA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?of(Object(n),!0).forEach(function(r){VA(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):of(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function VA(t,e,n){return(e=KA(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function KA(t){var e=XA(t,"string");return Hs(e)=="symbol"?e:e+""}function XA(t,e){if(Hs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function JA(t,e){if(t==null)return{};var n,r,i=ZA(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function ZA(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var er=function(e,n,r){var i=It(),s=i.brandId,a=i.analysisId,o=i.aiProvider,l=s,u=a,c=o,f=Fo(l,u,{query:{enabled:!!l&&!!u,select:function(v){var g=v.data;return g==null?void 0:g.analysis}}}),p=f.data,h=JA(f,GA),y=F.useMemo(function(){if(!p||!c)return null;var m=p.scans||[];return m.find(function(v){return String(v.aiProvider)===String(c)})||null},[p,c]);return YA({data:y},h)};function $A(){var t,e=er(),n=e.data;return d.jsx(n0,{title:"Brand sentiment",data:n==null||(t=n.sentiment)===null||t===void 0?void 0:t.own,tooltip:"Percentage of positive versus negative keywords in your query results related to your brand."})}var e3=["children","as","className"];function t3(t,e){if(t==null)return{};var n,r,i=n3(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function n3(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var ma=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var s=e.reduce(function(a,o,l){return a+o+(r[l]||"")},"");return function(a){var o=a.children,l=a.as,u=l===void 0?"div":l,c=a.className,f=c===void 0?"":c,p=t3(a,e3);return d.jsx(u,{className:ie(String(s).trim(),f),...p,children:o})}},pl=[{bg:"yst-bg-blue-200",text:"yst-text-blue-900"},{bg:"yst-bg-green-200",text:"yst-text-green-900"},{bg:"yst-bg-purple-200",text:"yst-text-purple-900"},{bg:"yst-bg-pink-200",text:"yst-text-pink-900"},{bg:"yst-bg-yellow-200",text:"yst-text-yellow-900"},{bg:"yst-bg-indigo-200",text:"yst-text-indigo-900"},{bg:"yst-bg-red-200",text:"yst-text-red-900"},{bg:"yst-bg-orange-200",text:"yst-text-orange-900"},{bg:"yst-bg-teal-200",text:"yst-text-teal-900"},{bg:"yst-bg-cyan-200",text:"yst-text-cyan-900"},{bg:"yst-bg-lime-200",text:"yst-text-lime-900"},{bg:"yst-bg-emerald-200",text:"yst-text-emerald-900"},{bg:"yst-bg-sky-200",text:"yst-text-sky-900"},{bg:"yst-bg-violet-200",text:"yst-text-violet-900"},{bg:"yst-bg-fuchsia-200",text:"yst-text-fuchsia-900"},{bg:"yst-bg-rose-200",text:"yst-text-rose-900"},{bg:"yst-bg-amber-200",text:"yst-text-amber-900"}],lf=function(e){if(!e)return pl[0];if(e.toLowerCase()==="other")return{bg:"yst-bg-slate-200",text:"yst-text-slate-900"};for(var n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);n=(n<<5)-n+i,n=n&n}var s=Math.abs(n)%pl.length;return pl[s]};function qs(t){"@babel/helpers - typeof";return qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qs(t)}var uf;function cf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function df(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cf(Object(n),!0).forEach(function(r){r3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function r3(t,e,n){return(e=i3(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i3(t){var e=s3(t,"string");return qs(e)=="symbol"?e:e+""}function s3(t,e){if(qs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function a3(t){return u3(t)||l3(t)||r0(t)||o3()}function o3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
29
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l3(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function u3(t){if(Array.isArray(t))return Eu(t)}function ff(t,e){return f3(t)||d3(t,e)||r0(t,e)||c3()}function c3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
30
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r0(t,e){if(t){if(typeof t=="string")return Eu(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eu(t,e):void 0}}function Eu(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function d3(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function f3(t){if(Array.isArray(t))return t}function h3(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var is=ma(uf||(uf=h3(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-slate-400 yst-inline-flex yst-w-20"]))),hf=function(e){var n=e.data,r=e.totalQueries,i=e.isLoading,s=i===void 0?!1:i,a=e.isFirstScan,o=a===void 0?!1:a,l=e.enableCategories,u=l===void 0?!1:l,c=s||!n,f=n||{},p=f.rank,h=f.url,y=f.rootDomain,m=f.category,v=f.impact,g=f.numberOfMentions,A=g==null?void 0:g.value,E=g==null?void 0:g.previous,j=typeof(E==null?void 0:E.difference)=="number"?E.difference:A;return d.jsxs("tr",{className:"yst-flex yst-flex-col yst-py-4 md:yst-table-row md:yst-py-0",children:[d.jsxs(C.Table.Cell,{className:"yst-p-0 yst-py-1 md:yst-ml-0 md:yst-p-2",children:[d.jsx(is,{as:"span",children:"Rank:"}),c?d.jsx(C.SkeletonLoader,{className:"yst-h-6 yst-w-24"}):d.jsx("span",{className:"yst-font-medium yst-text-slate-900",children:p!=null?p:"—"})]}),d.jsx(C.Table.Cell,{className:"yst-break-all yst-p-0 yst-py-1 md:yst-ml-0 md:yst-w-1/2 md:yst-p-2",children:c?d.jsx(C.SkeletonLoader,{className:"yst-h-6 yst-w-full"}):d.jsxs(C.Link,{className:"yst-font-medium",href:h||"#",rel:"nofollow noreferrer",target:"_blank",children:[d.jsx("span",{className:"yst-inline yst-break-all",children:h!=null?h:"—"}),d.jsx(e0,{className:"yst-ml-1 yst-inline-block yst-h-4 yst-w-4 yst-align-text-bottom"})]})}),d.jsxs(C.Table.Cell,{className:"yst-p-0 yst-py-1 yst-font-medium md:yst-ml-0 md:yst-p-2",children:[d.jsx(is,{as:"span",children:"Domain:"}),c?d.jsx(C.SkeletonLoader,{className:"yst-h-6 yst-w-24"}):d.jsx("span",{className:"yst-inline yst-break-all yst-font-medium yst-text-slate-900",children:y!=null?y:"—"})]}),u&&d.jsxs(C.Table.Cell,{className:"yst-p-0 yst-py-1 md:yst-ml-0 md:yst-p-2",children:[d.jsx(is,{as:"span",children:"Category:"}),c?d.jsx(C.SkeletonLoader,{className:"yst-h-6 yst-w-16"}):d.jsx(C.Badge,{className:ie(lf(m||"").bg,lf(m||"").text),children:m!=null?m:"—"})]}),d.jsxs(C.Table.Cell,{className:ie("yst-p-0 yst-py-0 md:yst-ml-0 md:yst-p-2","yst-font-medium",{"yst-text-green-600":v==="High","yst-text-yellow-600":v==="Medium","yst-text-red-600":v==="Low"}),children:[d.jsx(is,{as:"span",children:"Impact:"}),c?d.jsx(C.SkeletonLoader,{className:"yst-h-6 yst-w-12"}):v!=null?v:"—"]}),d.jsxs(C.Table.Cell,{className:"yst-flex yst-p-0 yst-pt-1 md:yst-ml-0 md:yst-p-2 md:yst-text-right",children:[d.jsx(is,{as:"span",children:"Mentions:"}),c?d.jsx(C.SkeletonLoader,{className:"yst-h-6 yst-w-8"}):A?d.jsxs("span",{className:"yst-inline-flex yst-justify-start yst-gap-4 md:yst-justify-end",children:[d.jsxs("span",{className:"yst-flex yst-flex-nowrap yst-gap-1 yst-font-medium",children:[d.jsx("span",{className:"yst-whitespace-nowrap yst-text-slate-500",children:A}),d.jsxs("span",{className:"yst-whitespace-nowrap yst-text-slate-900",children:["/ ",r]})]}),!o&&d.jsxs("span",{className:ie(Us(j)),children:[j>-1&&"+",j]})]}):"—"]})]},c?void 0:h)},p3=function(e){var n,r,i,s,a,o=e.enableCategories,l=o===void 0?!1:o,u=F.useState("all"),c=ff(u,2),f=c[0],p=c[1],h=F.useState(1),y=ff(h,2),m=y[0],v=y[1],g=er(),A=g.data,E=g.isLoading,j=g.isRefetching,S=A==null?void 0:A.citations,b=(A==null||(n=A.scores)===null||n===void 0||(n=n.standardized)===null||n===void 0?void 0:n.citations)||{},w=Object.hasOwn(b,"previous"),x=S==null||(r=S.list)===null||r===void 0?void 0:r.filter(function(P){return f==="all"?!0:P.category===f}),N=10,_=(x==null?void 0:x.length)||0,I=Math.ceil(_/N),T=(m-1)*N,z=T+N,L=x==null?void 0:x.slice(T,z);return F.useEffect(function(){m>I&&I>0&&v(1)},[I,m,v,f]),d.jsx(C.Card,{className:"yst-overflow-visible md:yst-col-span-2",children:d.jsxs(C.Card.Content,{className:"yst-flex yst-flex-col yst-gap-6",children:[d.jsxs("div",{className:"yst-space-y-4",children:[d.jsx(ya,{title:"Citations",tooltip:"Sources the AI used to support brand mentions in the results."}),d.jsx("p",{children:"This table highlights the most important sources where your brand was cited."}),d.jsx(pa,{score:S==null||(i=S.total)===null||i===void 0?void 0:i.value,suffix:"citations",delta:S==null||(s=S.total)===null||s===void 0||(s=s.previous)===null||s===void 0?void 0:s.difference,deltaSuffix:"since last analysis",isLoading:E,hideTotal:!0})]}),(S==null||(a=S.list)===null||a===void 0?void 0:a.length)===0&&!E&&!j?d.jsx(C.Alert,{children:"The selected AI platform returned no citations for your queries. This can happen with some queries or platforms."}):d.jsxs(d.Fragment,{children:[d.jsxs("div",{children:[l&&d.jsx(C.Select,{className:"yst-mb-4 md:yst-max-w-sm",label:"Filter categories",value:f,onChange:function(P){p(P)},id:"citation-category-filter",options:[{value:"all",label:"All categories"}].concat(a3(S!=null&&S.categories?S.categories.map(function(P){return{value:P,label:P}}):[]))}),d.jsxs(C.Table,{variant:"minimal",children:[d.jsx(C.Table.Head,{className:"yst-font-semibold",children:d.jsxs(C.Table.Row,{children:[d.jsx(C.Table.Cell,{className:"yst-hidden yst-text-slate-900 md:yst-table-cell md:yst-pl-2",children:"#"}),d.jsx(C.Table.Cell,{className:"yst yst-hidden yst-text-slate-900 md:yst-table-cell md:yst-px-2",children:"URL"}),d.jsx(C.Table.Cell,{className:"yst-hidden yst-text-slate-900 md:yst-table-cell md:yst-px-2",children:"Root domain"}),l&&d.jsx(C.Table.Cell,{className:"yst-hidden yst-text-slate-900 md:yst-table-cell",children:"Category"}),d.jsx(C.Table.Cell,{className:"yst-hidden yst-text-slate-900 md:yst-table-cell md:yst-px-2",children:"Impact"}),d.jsx(C.Table.Cell,{className:"yst-hidden yst-text-right yst-text-slate-900 md:yst-table-cell",children:"Mentions"})]})}),d.jsx(C.Table.Body,{children:E||j?Array.from({length:5}).map(function(P,D){return d.jsx(hf,{isLoading:!0,enableCategories:l},"skeleton-".concat(D))}):L&&L.length>0?L.map(function(P,D){return d.jsx(hf,{data:df(df({},P),{},{rank:T+D+1}),totalQueries:A==null?void 0:A.numberOfQueries,isFirstScan:!w,enableCategories:l},"citation-table-row-".concat(P.url,"-").concat(D))}):d.jsx(C.Table.Row,{children:d.jsxs(C.Table.Cell,{colSpan:l?6:5,className:"yst-py-8 yst-text-center yst-text-slate-500",children:[f==="all"?"No citations found.":'No citations found for the "'.concat(f,'" category.')," ",d.jsx(C.Link,{onClick:function(){return p("all")},children:"Show all categories."})]})},"no-results")})]})]}),x&&x.length>N&&d.jsxs("div",{className:"yst-flex yst-items-center yst-justify-end yst-gap-4",children:[d.jsxs("p",{className:"yst-mb-0",children:["Showing ",T+1," to"," ",z>_?_:z," of"," ",_," results"]}),d.jsx(C.Pagination,{variant:"text",className:"yst-flex-row yst-gap-0",current:m,total:I,onNavigate:v,screenReaderTextPrevious:"Previous page",screenReaderTextNext:"Next page"})]})]})]})})};function y3(t,e){return b3(t)||v3(t,e)||g3(t,e)||m3()}function m3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
31
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g3(t,e){if(t){if(typeof t=="string")return pf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pf(t,e):void 0}}function pf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function v3(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function b3(t){if(Array.isArray(t))return t}var yf=function(e){var n,r=e.data,i=e.totalQueries,s=e.isFirstScan,a=s===void 0?!0:s,o=e.isLoading,l=o===void 0?!1:o,u=l||!r,c=r||{},f=c.rank,p=c.brand,h=f==null?void 0:f.previous,y=typeof(h==null?void 0:h.difference)=="number"?h.difference*-1:void 0,m=p==null?void 0:p.numberOfMentions,v=m==null?void 0:m.previous,g=typeof(v==null?void 0:v.difference)=="number"?v.difference:void 0;return d.jsxs(C.Table.Row,{children:[d.jsx(C.Table.Cell,{children:u?d.jsx(C.SkeletonLoader,{className:"yst-h-6 yst-w-8"}):d.jsxs("span",{className:"yst-flex yst-justify-between yst-gap-4",children:[d.jsxs("span",{className:"yst-flex yst-flex-nowrap yst-gap-2 yst-font-medium",children:[d.jsx("span",{className:"yst-text-slate-500",children:"#"}),d.jsx("span",{className:"yst-text-slate-900",children:(f==null?void 0:f.value)||"—"})]}),!a&&d.jsx("span",{className:ie("yst-inline-flex yst-items-center yst-justify-end",Us(h&&typeof y=="number"?y:0)),children:h&&typeof y=="number"&&y!==0?d.jsxs(d.Fragment,{children:[Math.abs(y),y>0?d.jsx(AA,{className:"yst-h-4 yst-w-4"}):d.jsx(xA,{className:"yst-h-4 yst-w-4"})]}):null})]})}),d.jsx(C.Table.Cell,{children:u?d.jsx(C.SkeletonLoader,{className:"yst-h-6 yst-w-24"}):d.jsx("span",{className:"yst-font-medium",children:p!=null&&p.isSelf?d.jsx(zs,{children:p==null?void 0:p.name}):(n=p==null?void 0:p.name)!==null&&n!==void 0?n:"—"})}),d.jsx(C.Table.Cell,{children:u?d.jsx(C.SkeletonLoader,{className:"yst-h-6 yst-w-8"}):d.jsxs("span",{className:"yst-flex yst-justify-end yst-gap-4",children:[d.jsxs("span",{className:"yst-flex yst-flex-nowrap yst-gap-1 yst-font-medium",children:[d.jsx("span",{className:"yst-text-slate-500",children:m==null?void 0:m.value}),d.jsxs("span",{className:"yst-text-slate-900",children:["/ ",i]})]}),!a&&d.jsx("span",{className:ie("yst-ml-auto",Us(v&&typeof g=="number"?g:0)),children:v&&typeof g=="number"?d.jsxs(d.Fragment,{children:[g>-1&&"+",g]}):null})]})})]},u||f==null?void 0:f.value)},x3=function(e){var n,r,i=e.className,s=F.useRef(null),a=F.useState(1),o=y3(a,2),l=o[0],u=o[1],c=er(),f=c.data,p=c.isLoading,h=c.isRefetching,y=f==null||(n=f.rankings)===null||n===void 0?void 0:n.list,m=(f==null||(r=f.scores)===null||r===void 0||(r=r.standardized)===null||r===void 0?void 0:r.ranking)||{},v=Object.hasOwn(m,"previous"),g=5,A=(y==null?void 0:y.length)||0,E=Math.ceil(A/g),j=(l-1)*g,S=j+g,b=y==null?void 0:y.slice(j,S);return F.useEffect(function(){l>E&&E>0&&u(1)},[E,l,u]),d.jsx(C.Card,{ref:s,className:ie("yst-overflow-visible",i),children:d.jsxs(C.Card.Content,{className:"yst-mt-0 yst-space-y-6",children:[d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(ya,{title:"Competitor ranking",tooltip:"How often competitors are mentioned in your submitted queries."}),d.jsx("p",{children:"Brands with the most mentions for your prompts."})]}),!p&&!h&&(!y||y.length===0)?d.jsx(C.Alert,{variant:"info",children:"The selected AI platform returned no brands for your queries. This can happen with some queries or platforms."}):d.jsxs(C.Table,{variant:"minimal",children:[d.jsx(C.Table.Head,{children:d.jsxs(C.Table.Row,{children:[d.jsx(C.Table.Cell,{className:"yst-w-20 yst-font-semibold",children:"Rank"}),d.jsx(C.Table.Cell,{className:"yst-font-semibold",children:"Brand"}),d.jsx(C.Table.Cell,{className:"yst-w-20 yst-text-right yst-font-semibold",children:"Mentions"})]})}),d.jsx(C.Table.Body,{children:b&&Array.isArray(b)&&b.length>0?b.map(function(w){var x;return d.jsx(yf,{data:w,totalQueries:f==null?void 0:f.numberOfQueries,isFirstScan:!v},"rank-row-".concat((x=w.rank)===null||x===void 0?void 0:x.value))}):p||h?Array.from({length:g}).map(function(w,x){return d.jsx(yf,{isLoading:!0},"skeleton-".concat(x))}):null})]}),!p&&!h&&y&&y.length>g&&d.jsx(C.Pagination,{current:l,total:E,className:"yst-flex-row",onNavigate:u,screenReaderTextNext:"Next",screenReaderTextPrevious:"Previous",variant:"text"})]})})},w3=function(){var e,n=er(),r=n.data,i=r==null||(e=r.sentiment)===null||e===void 0?void 0:e.topCompetitor;return d.jsx(n0,{title:"Competitor sentiment",data:i,tooltip:"Percentage of positive versus negative keywords in your query results related to your competitor's brand."})};const i0=6048e5,A3=864e5,mf=Symbol.for("constructDateFrom");function Xt(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&mf in t?t[mf](e):t instanceof Date?new t.constructor(e):new Date(e)}function Mt(t,e){return Xt(e||t,t)}function s0(t,e,n){const r=Mt(t,n==null?void 0:n.in);if(isNaN(e))return Xt(t,NaN);if(!e)return r;const i=r.getDate(),s=Xt(t,r.getTime());s.setMonth(r.getMonth()+e+1,0);const a=s.getDate();return i>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),i),r)}let S3={};function Ho(){return S3}function Ws(t,e){var o,l,u,c,f,p,h,y;const n=Ho(),r=(y=(h=(c=(u=e==null?void 0:e.weekStartsOn)!=null?u:(l=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)!=null?c:n.weekStartsOn)!=null?h:(p=(f=n.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)!=null?y:0,i=Mt(t,e==null?void 0:e.in),s=i.getDay(),a=(s<r?7:0)+s-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function po(t,e){return Ws(t,{...e,weekStartsOn:1})}function a0(t,e){const n=Mt(t,e==null?void 0:e.in),r=n.getFullYear(),i=Xt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const s=po(i),a=Xt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const o=po(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function gf(t){const e=Mt(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function qo(t,...e){const n=Xt.bind(null,e.find(r=>typeof r=="object"));return e.map(n)}function yo(t,e){const n=Mt(t,e==null?void 0:e.in);return n.setHours(0,0,0,0),n}function C3(t,e,n){const[r,i]=qo(n==null?void 0:n.in,t,e),s=yo(r),a=yo(i),o=+s-gf(s),l=+a-gf(a);return Math.round((o-l)/A3)}function k3(t,e){const n=a0(t,e),r=Xt(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),po(r)}function j3(t){return Xt(t,Date.now())}function E3(t,e,n){const[r,i]=qo(n==null?void 0:n.in,t,e);return+yo(r)==+yo(i)}function O3(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function P3(t){return!(!O3(t)&&typeof t!="number"||isNaN(+Mt(t)))}function T3(t,e){const n=Mt(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function I3(t,e){const[n,r]=qo(t,e.start,e.end);return{start:n,end:r}}function M3(t,e){const{start:n,end:r}=I3(e==null?void 0:e.in,t);let i=+n>+r;const s=i?+n:+r,a=i?r:n;a.setHours(0,0,0,0);let o=1;const l=[];for(;+a<=s;)l.push(Xt(n,a)),a.setDate(a.getDate()+o),a.setHours(0,0,0,0);return i?l.reverse():l}function L3(t,e){const n=Mt(t,e==null?void 0:e.in);return n.setDate(1),n.setHours(0,0,0,0),n}function N3(t,e){const n=Mt(t,e==null?void 0:e.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const R3={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"}},_3=(t,e,n)=>{let r;const i=R3[t];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function yl(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const D3={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},B3={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},F3={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},z3={date:yl({formats:D3,defaultWidth:"full"}),time:yl({formats:B3,defaultWidth:"full"}),dateTime:yl({formats:F3,defaultWidth:"full"})},U3={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},H3=(t,e,n,r)=>U3[t];function ss(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&t.formattingValues){const a=t.defaultFormattingWidth||t.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=t.formattingValues[o]||t.formattingValues[a]}else{const a=t.defaultWidth,o=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[o]||t.values[a]}const s=t.argumentCallback?t.argumentCallback(e):e;return i[s]}}const q3={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},W3={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Q3={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"]},G3={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"]},Y3={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"}},V3={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"}},K3=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},X3={ordinalNumber:K3,era:ss({values:q3,defaultWidth:"wide"}),quarter:ss({values:W3,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ss({values:Q3,defaultWidth:"wide"}),day:ss({values:G3,defaultWidth:"wide"}),dayPeriod:ss({values:Y3,defaultWidth:"wide",formattingValues:V3,defaultFormattingWidth:"wide"})};function as(t){return(e,n={})=>{const r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;const a=s[0],o=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(o)?Z3(o,f=>f.test(a)):J3(o,f=>f.test(a));let u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=e.slice(a.length);return{value:u,rest:c}}}function J3(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function Z3(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function $3(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const i=r[0],s=e.match(t.parsePattern);if(!s)return null;let a=t.valueCallback?t.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const o=e.slice(i.length);return{value:a,rest:o}}}const eS=/^(\d+)(th|st|nd|rd)?/i,tS=/\d+/i,nS={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},rS={any:[/^b/i,/^(a|c)/i]},iS={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sS={any:[/1/i,/2/i,/3/i,/4/i]},aS={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},oS={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]},lS={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},uS={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]},cS={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},dS={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}},fS={ordinalNumber:$3({matchPattern:eS,parsePattern:tS,valueCallback:t=>parseInt(t,10)}),era:as({matchPatterns:nS,defaultMatchWidth:"wide",parsePatterns:rS,defaultParseWidth:"any"}),quarter:as({matchPatterns:iS,defaultMatchWidth:"wide",parsePatterns:sS,defaultParseWidth:"any",valueCallback:t=>t+1}),month:as({matchPatterns:aS,defaultMatchWidth:"wide",parsePatterns:oS,defaultParseWidth:"any"}),day:as({matchPatterns:lS,defaultMatchWidth:"wide",parsePatterns:uS,defaultParseWidth:"any"}),dayPeriod:as({matchPatterns:cS,defaultMatchWidth:"any",parsePatterns:dS,defaultParseWidth:"any"})},hS={code:"en-US",formatDistance:_3,formatLong:z3,formatRelative:H3,localize:X3,match:fS,options:{weekStartsOn:0,firstWeekContainsDate:1}};function pS(t,e){const n=Mt(t,e==null?void 0:e.in);return C3(n,N3(n))+1}function yS(t,e){const n=Mt(t,e==null?void 0:e.in),r=+po(n)-+k3(n);return Math.round(r/i0)+1}function o0(t,e){var c,f,p,h,y,m,v,g;const n=Mt(t,e==null?void 0:e.in),r=n.getFullYear(),i=Ho(),s=(g=(v=(h=(p=e==null?void 0:e.firstWeekContainsDate)!=null?p:(f=(c=e==null?void 0:e.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)!=null?h:i.firstWeekContainsDate)!=null?v:(m=(y=i.locale)==null?void 0:y.options)==null?void 0:m.firstWeekContainsDate)!=null?g:1,a=Xt((e==null?void 0:e.in)||t,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const o=Ws(a,e),l=Xt((e==null?void 0:e.in)||t,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const u=Ws(l,e);return+n>=+o?r+1:+n>=+u?r:r-1}function mS(t,e){var o,l,u,c,f,p,h,y;const n=Ho(),r=(y=(h=(c=(u=e==null?void 0:e.firstWeekContainsDate)!=null?u:(l=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)!=null?c:n.firstWeekContainsDate)!=null?h:(p=(f=n.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)!=null?y:1,i=o0(t,e),s=Xt((e==null?void 0:e.in)||t,0);return s.setFullYear(i,0,r),s.setHours(0,0,0,0),Ws(s,e)}function gS(t,e){const n=Mt(t,e==null?void 0:e.in),r=+Ws(n,e)-+mS(n,e);return Math.round(r/i0)+1}function Ne(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const rr={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return Ne(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):Ne(n+1,2)},d(t,e){return Ne(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return Ne(t.getHours()%12||12,e.length)},H(t,e){return Ne(t.getHours(),e.length)},m(t,e){return Ne(t.getMinutes(),e.length)},s(t,e){return Ne(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Ne(i,e.length)}},ci={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},vf={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return rr.y(t,e)},Y:function(t,e,n,r){const i=o0(t,r),s=i>0?i:1-i;if(e==="YY"){const a=s%100;return Ne(a,2)}return e==="Yo"?n.ordinalNumber(s,{unit:"year"}):Ne(s,e.length)},R:function(t,e){const n=a0(t);return Ne(n,e.length)},u:function(t,e){const n=t.getFullYear();return Ne(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Ne(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Ne(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return rr.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return Ne(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const i=gS(t,r);return e==="wo"?n.ordinalNumber(i,{unit:"week"}):Ne(i,e.length)},I:function(t,e,n){const r=yS(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):Ne(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):rr.d(t,e)},D:function(t,e,n){const r=pS(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ne(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const i=t.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Ne(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const i=t.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Ne(s,e.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return Ne(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let i;switch(r===12?i=ci.noon:r===0?i=ci.midnight:i=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let i;switch(r>=17?i=ci.evening:r>=12?i=ci.afternoon:r>=4?i=ci.morning:i=ci.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return rr.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):rr.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ne(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ne(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):rr.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):rr.s(t,e)},S:function(t,e){return rr.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return xf(r);case"XXXX":case"XX":return Mr(r);case"XXXXX":case"XXX":default:return Mr(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return xf(r);case"xxxx":case"xx":return Mr(r);case"xxxxx":case"xxx":default:return Mr(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+bf(r,":");case"OOOO":default:return"GMT"+Mr(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+bf(r,":");case"zzzz":default:return"GMT"+Mr(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return Ne(r,e.length)},T:function(t,e,n){return Ne(+t,e.length)}};function bf(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),s=r%60;return s===0?n+String(i):n+String(i)+e+Ne(s,2)}function xf(t,e){return t%60===0?(t>0?"-":"+")+Ne(Math.abs(t)/60,2):Mr(t,e)}function Mr(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Ne(Math.trunc(r/60),2),s=Ne(r%60,2);return n+i+e+s}const wf=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},l0=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},vS=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return wf(t,e);let s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",wf(r,e)).replace("{{time}}",l0(i,e))},bS={p:l0,P:vS},xS=/^D+$/,wS=/^Y+$/,AS=["D","DD","YY","YYYY"];function SS(t){return xS.test(t)}function CS(t){return wS.test(t)}function kS(t,e,n){const r=jS(t,e,n);if(console.warn(r),AS.includes(t))throw new RangeError(r)}function jS(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ES=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,OS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,PS=/^'([^]*?)'?$/,TS=/''/g,IS=/[a-zA-Z]/;function Br(t,e,n){var c,f,p,h,y,m,v,g,A;const r=Ho(),i=(c=r.locale)!=null?c:hS,s=(y=(h=r.firstWeekContainsDate)!=null?h:(p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)!=null?y:1,a=(A=(g=r.weekStartsOn)!=null?g:(v=(m=r.locale)==null?void 0:m.options)==null?void 0:v.weekStartsOn)!=null?A:0,o=Mt(t,n==null?void 0:n.in);if(!P3(o))throw new RangeError("Invalid time value");let l=e.match(OS).map(E=>{const j=E[0];if(j==="p"||j==="P"){const S=bS[j];return S(E,i.formatLong)}return E}).join("").match(ES).map(E=>{if(E==="''")return{isToken:!1,value:"'"};const j=E[0];if(j==="'")return{isToken:!1,value:MS(E)};if(vf[j])return{isToken:!0,value:E};if(j.match(IS))throw new RangeError("Format string contains an unescaped latin alphabet character `"+j+"`");return{isToken:!1,value:E}});i.localize.preprocessor&&(l=i.localize.preprocessor(o,l));const u={firstWeekContainsDate:s,weekStartsOn:a,locale:i};return l.map(E=>{if(!E.isToken)return E.value;const j=E.value;(CS(j)||SS(j))&&kS(j,e,String(t));const S=vf[j[0]];return S(o,j,i.localize,u)}).join("")}function MS(t){const e=t.match(PS);return e?e[1].replace(TS,"'"):t}function Af(t,e,n){const[r,i]=qo(n==null?void 0:n.in,t,e);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function LS(t,e){return E3(Xt(t,t),j3(t))}function NS(t,e,n){return s0(t,-1,n)}var RS=function(e){var n=e.brand,r=ht(),i=ha(),s=i.setBrandId;return(n==null?void 0:n.setupStatus)==="pendingQuerySelection"?d.jsx(C.Alert,{className:"yst-mt-0",children:d.jsxs("div",{className:"yst-max-w-xl yst-space-y-4",children:[d.jsxs("div",{className:"yst-space-y-2",children:[d.jsxs("h3",{className:"yst-font-medium",children:["Finish your analysis for ",(n==null?void 0:n.name)||"Brand ".concat(n==null?void 0:n.id)]}),d.jsx("p",{children:"Your brand is saved, but you haven’t completed the analysis yet. Review your queries and run the analysis to get your brand insights!"})]}),d.jsx("div",{className:"yst-flex yst-justify-start yst-gap-6",children:d.jsx(C.Link,{onClick:function(){n.id?(s(n.id),r("/setup/".concat(n.id,"/queries"))):console.error("Brand ID is missing.")},children:"Review queries"})})]})}):null},Wo=function(e){var n=e.isOpen,r=e.onClose,i=e.onConfirm,s=e.isLoading,a=s===void 0?!1:s,o=e.title,l=e.description,u=e.disabled,c=u===void 0?!1:u,f=e.confirmText,p=f===void 0?"Yes, delete":f,h=e.cancelText,y=h===void 0?"No, go back":h,m=e.className;return d.jsx(C.Modal,{isOpen:n,onClose:r,position:"center",as:"div",className:m,children:d.jsxs(C.Modal.Panel,{children:[d.jsxs("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:[d.jsx("div",{children:d.jsx("span",{className:"yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-red-100",children:d.jsx($a,{className:"yst-h-6 yst-w-6 yst-text-red-600"})})}),d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(C.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(C.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:o})}),d.jsx(C.Modal.Container.Content,{className:"yst-mb-4 yst-space-y-3",children:typeof l=="string"?d.jsx("p",{children:l}):l})]})]}),d.jsxs(C.Modal.Container.Footer,{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-2",children:[d.jsx(C.Button,{variant:"secondary",onClick:r,children:y}),d.jsx(C.Button,{variant:"error",onClick:i,isLoading:a,disabled:c,children:p})]})]})})};function u0(t){if(t!=null){if(typeof t=="number"){var e=1e12;return t>e?t-Date.now():t}var n=Date.parse(t);if(!Number.isNaN(n))return n-Date.now()}}function _S(t,e){var n=u0(t);return n!==void 0&&n>e*60*1e3}var DS=2;function c0(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:DS,n=u0(t);return n!==void 0&&n<=e*60*1e3}function Ou(t){if(t==null)return"a future date";var e;if(typeof t=="number"){var n=1e12;t>n?e=t:e=Date.now()+t}else{var r=Date.parse(t);Number.isNaN(r)||(e=r)}if(e===void 0)return"a future date";var i=new Date(e),s={month:"long",day:"numeric"},a={hour:"numeric",minute:"2-digit",hour12:!0},o=i.toLocaleDateString("en-US",s),l=i.toLocaleTimeString("en-US",a);return"".concat(o," at ").concat(l)}function Rr(t){if(!t)return null;var e=new Date(t);return isNaN(e.getTime())?null:e}function Qs(t){"@babel/helpers - typeof";return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qs(t)}function ml(t,e,n){return(e=BS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function BS(t){var e=FS(t,"string");return Qs(e)=="symbol"?e:e+""}function FS(t,e){if(Qs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zS(t,e){return WS(t)||qS(t,e)||HS(t,e)||US()}function US(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
32
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HS(t,e){if(t){if(typeof t=="string")return Sf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sf(t,e):void 0}}function Sf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function qS(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function WS(t){if(Array.isArray(t))return t}var mn={selected:{background:"yst-bg-primary-500",text:"yst-text-white",hover:"hover:yst-bg-primary-600"},hasAnalysis:{border:"yst-border-2 yst-border-primary-500",text:"yst-text-slate-900",hover:"hover:yst-bg-primary-50"},today:{underline:"yst-border-b-2 yst-border-slate-400"},indicator:{default:"yst-bg-blue-500"}},QS=function(e){var n=e.analyses,r=e.selectedAnalysisId,i=e.onAnalysisSelect,s=e.isLoading,a=s===void 0?!1:s,o=e.isOpen,l=o===void 0?!1:o,u=e.onClose,c=F.useState(new Date),f=zS(c,2),p=f[0],h=f[1],y=F.useMemo(function(){var b=new Map;return n.forEach(function(w){var x=Rr(w.createdAt),N=x?Br(x,"yyyy-MM-dd"):"";N&&(b.has(N)||b.set(N,[]),b.get(N).push(w))}),b},[n]);F.useEffect(function(){if(l&&r){var b=n.find(function(_){return _.id===r});if(b){var w=Rr(b.createdAt);w&&h(w)}}else if(l&&n.length>0){var x=n.reduce(function(_,I){return new Date(I.createdAt)>new Date(_.createdAt)?I:_}),N=Rr(x.createdAt);N&&h(N)}},[l,r,n]);var m=F.useMemo(function(){return n.length===0?null:n.reduce(function(b,w){return new Date(w.createdAt)>new Date(b.createdAt)?w:b})},[n]),v=function(){if(m){var w=Rr(m.createdAt);w&&h(w)}},g=F.useMemo(function(){if(!m)return!1;var b=Rr(m.createdAt);return b?Af(b,p):!1},[m,p]),A=F.useMemo(function(){var b=L3(p),w=T3(p),x=new Date(b),N=x.getDay(),_=N===0?6:N-1;x.setDate(x.getDate()-_);var I=new Date(w),T=I.getDay(),z=T===0?0:7-T;return I.setDate(I.getDate()+z),M3({start:x,end:I}).map(function(L){var P=Br(L,"yyyy-MM-dd"),D=y.get(P)||[],B=D.find(function(V){return String(V.id)===String(r)});return{date:P,dateObj:L,isCurrentMonth:Af(L,p),isToday:LS(L),isSelected:!!B,hasAnalyses:D.length>0,analyses:D}})},[p,y,r]),E=function(){h(function(w){return NS(w)})},j=function(){h(function(w){return s0(w,1)})},S=function(w){if(w.hasAnalyses){if(w.analyses.length===1)i(w.analyses[0].id);else{var x=w.analyses.reduce(function(N,_){return new Date(_.createdAt)>new Date(N.createdAt)?_:N});i(x.id)}u==null||u()}};return l?a?d.jsx("div",{className:"yst-absolute yst-left-0 yst-right-0 yst-top-full yst-z-50 yst-mt-1 yst-rounded-md yst-border yst-border-slate-200 yst-bg-white yst-p-4 yst-shadow-lg",children:d.jsxs("div",{className:"yst-animate-pulse yst-space-y-4",children:[d.jsx("div",{className:"yst-h-6 yst-rounded yst-bg-slate-200"}),d.jsx("div",{className:"yst-h-48 yst-rounded yst-bg-slate-200"})]})}):d.jsxs("div",{className:"yst-absolute yst-left-0 yst-right-0 yst-top-full yst-z-50 yst-mt-1 yst-min-w-80 yst-max-w-sm yst-rounded-md yst-border yst-border-slate-200 yst-bg-white yst-p-4 yst-shadow-lg",children:[d.jsxs("div",{className:"yst-mb-6 yst-flex yst-items-center yst-justify-between",children:[d.jsxs("button",{type:"button",onClick:E,className:"yst-rounded-md yst-p-1.5 yst-text-slate-400 hover:yst-bg-slate-100 hover:yst-text-slate-500",children:[d.jsx("span",{className:"yst-sr-only",children:"Previous month"}),d.jsx(rw,{className:"yst-h-5 yst-w-5"})]}),d.jsx("h2",{className:"yst-text-sm yst-font-semibold yst-text-slate-900",children:Br(p,"MMMM yyyy")}),d.jsxs("button",{type:"button",onClick:j,className:"yst-rounded-md yst-p-1.5 yst-text-slate-400 hover:yst-bg-slate-100 hover:yst-text-slate-500",children:[d.jsx("span",{className:"yst-sr-only",children:"Next month"}),d.jsx(sw,{className:"yst-h-5 yst-w-5"})]})]}),d.jsx("div",{className:"yst-mb-0 yst-grid yst-grid-cols-7 yst-gap-x-1",children:["M","T","W","T","F","S","S"].map(function(b,w){return d.jsx("div",{className:"yst-py-2 yst-text-center yst-text-xs yst-font-medium yst-text-slate-500",children:b},"".concat(b,"-").concat(w))})}),d.jsx("div",{className:"yst-grid yst-grid-cols-7 yst-gap-x-1",children:A.map(function(b){return d.jsx("div",{className:"yst-flex yst-items-center yst-justify-center yst-py-1",children:d.jsxs("button",{type:"button",onClick:function(){return S(b)},disabled:!b.hasAnalyses,className:ie("yst-relative yst-rounded-full yst-text-sm yst-transition-colors","yst-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center","yst-p-0",{"yst-text-slate-900":b.isCurrentMonth,"yst-text-slate-400":!b.isCurrentMonth},{"focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-blue-500":b.hasAnalyses,"yst-cursor-not-allowed":!b.hasAnalyses,"yst-cursor-pointer":b.hasAnalyses},ml({},"".concat(mn.selected.background," ").concat(mn.selected.text," ").concat(mn.selected.hover),b.isSelected),ml({},"".concat(mn.hasAnalysis.border," ").concat(mn.hasAnalysis.text," ").concat(mn.hasAnalysis.hover),b.hasAnalyses&&!b.isSelected)),children:[d.jsx("span",{className:ie("yst-relative yst-z-10 yst-w-4",ml({},mn.today.underline,b.isToday&&!b.isSelected)),children:Br(b.dateObj,"d")}),b.hasAnalyses&&b.analyses.length>1&&!b.isSelected&&d.jsx("span",{className:ie("yst-absolute yst-right-1 yst-top-1 yst-h-2 yst-w-2 yst-rounded-full",mn.indicator.default)})]})},b.date)})}),d.jsxs("div",{className:"yst-mt-4 yst-flex yst-items-center yst-gap-4 yst-text-xs yst-text-slate-600",children:[d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-1",children:[d.jsx("div",{className:"yst-h-3 yst-w-3 yst-rounded-full ".concat(mn.hasAnalysis.border)}),d.jsx("span",{children:"Has analysis"})]}),d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-1",children:[d.jsx("div",{className:"yst-h-3 yst-w-3 yst-rounded-full ".concat(mn.selected.background)}),d.jsx("span",{children:"Selected"})]}),d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-1",children:[d.jsx("div",{className:"yst-h-0.5 yst-w-4 yst-bg-slate-400"}),d.jsx("span",{children:"Today"})]})]}),m&&d.jsx("div",{className:"yst-mt-6",children:d.jsx(C.Button,{onClick:v,className:"yst-w-full",disabled:g,children:"Show latest analysis"})})]}):null};function Cf(t,e){return KS(t)||VS(t,e)||YS(t,e)||GS()}function GS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YS(t,e){if(t){if(typeof t=="string")return kf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kf(t,e):void 0}}function kf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function VS(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function KS(t){if(Array.isArray(t))return t}var XS=function(e){var n=e.analyses,r=e.selectedAnalysisId,i=e.onAnalysisSelect,s=e.isLoading,a=s===void 0?!1:s,o=e.disabled,l=o===void 0?!1:o,u=e.id,c=u===void 0?"analysis-date-select":u,f=F.useState(!1),p=Cf(f,2),h=p[0],y=p[1],m=F.useState("latest"),v=Cf(m,2),g=v[0],A=v[1],E=F.useRef(null),j=F.useCallback(function(z){var L=Rr(z.createdAt);return L?L.getTime():-1/0},[]);F.useEffect(function(){if((r==="latest"||!r)&&n.length>0&&!a){var z=n.reduce(function(L,P){return j(P)>j(L)?P:L});i(z.id)}},[n,r,i,a,j]);var S=F.useMemo(function(){if(r==="latest"||!r){if(n.length>0){var z=n.reduce(function(L,P){return j(P)>j(L)?P:L});return z.id}return"latest"}return r},[r,n,j]);F.useEffect(function(){A(S)},[S]);var b=n.find(function(z){return String(z.id)===String(g)}),w=n.length>0?String(n.reduce(function(z,L){return j(L)>j(z)?L:z}).id):"",x=function(){if(b){var z=Rr(b.createdAt),L=z?Br(z,"MMMM d, yyyy"):b.createdAt?b.createdAt.slice(0,10):"Unknown date",P=String(b.id)===w?"(latest)":"(older)";return"".concat(L," ").concat(P)}return n.length>0?"Select date...":"No analyses available"}();F.useEffect(function(){var z=function(P){E.current&&!E.current.contains(P.target)&&y(!1)};return h&&document.addEventListener("mousedown",z),function(){document.removeEventListener("mousedown",z)}},[h]);var N=function(){!l&&!a&&y(!h)},_=function(L){A(L),i(L),y(!1)},I=function(){y(!1)},T=function(L){L.key==="Enter"||L.key===" "?(L.preventDefault(),N()):L.key==="Escape"&&y(!1)};return d.jsxs("div",{ref:E,className:"yst-relative",children:[d.jsxs("div",{className:"yst-relative",children:[d.jsx(C.TextInput,{id:c,onClick:N,onKeyDown:T,onChange:function(){},disabled:l||a,value:x,"aria-expanded":h,"aria-haspopup":"true","aria-label":"Select analysis date",className:ie("yst-pr-10",{"yst-cursor-default":!l&&!a})}),d.jsx($x,{className:ie("yst-pointer-events-none yst-absolute yst-right-3 yst-top-1/2 yst--translate-y-1/2 yst-transform",{"yst-text-gray-400":l||a})})]}),d.jsx(QS,{analyses:n,selectedAnalysisId:g,onAnalysisSelect:_,isLoading:a,isOpen:h,onClose:I})]})};function jf(t,e){return eC(t)||$S(t,e)||ZS(t,e)||JS()}function JS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
34
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZS(t,e){if(t){if(typeof t=="string")return Ef(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ef(t,e):void 0}}function Ef(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function $S(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function eC(t){if(Array.isArray(t))return t}var Of=function(e){var n=e.id,r=e.isVisible,i=e.onClose,s=e.children,a=e.className,o=e.variant,l=o===void 0?"info":o,u=e.showArrow,c=u===void 0?!0:u,f=e.keepOpenOnExternalClick,p=f===void 0?!1:f,h=e.delay,y=h===void 0?0:h,m=F.useRef(null),v=F.useState(!1),g=jf(v,2),A=g[0],E=g[1],j=F.useState(!1),S=jf(j,2),b=S[0],w=S[1];return F.useEffect(function(){if(!r){(A||b)&&(E(!1),w(!1));return}if(r)if(y>0){w(!1),E(!1);var x=setTimeout(function(){E(!0),setTimeout(function(){return w(!0)},50)},y);return function(){return clearTimeout(x)}}else E(!0),w(!1)},[r,y]),F.useEffect(function(){if(!p){var x=function(_){m.current&&!m.current.contains(_.target)&&i()};return r&&document.addEventListener("mousedown",x),function(){document.removeEventListener("mousedown",x)}}},[r,i,p]),r?d.jsxs("div",{id:n,className:"yst-absolute yst-w-80",ref:m,children:[A&&c&&d.jsx("div",{className:ie("yst-absolute yst-left-1/2 yst-top-full yst-z-[60] yst-mt-[7px] yst-h-3 yst-w-3 yst--translate-x-1/2 yst--translate-y-1/2 yst-rotate-45 yst-transform yst-border-l yst-border-t yst-border-gray-100 yst-bg-white",{"yst-opacity-0":y>0&&!b,"yst-animate-in yst-fade-in yst-slide-in-from-top-1 yst-duration-300":y>0&&b})}),d.jsx(C.Toast,{id:"".concat(n,"--toast"),className:ie("yst-absolute yst-left-1/2 yst-top-full yst-z-50 yst-mt-2 yst-w-80 yst--translate-x-1/2 yst-transform",{"yst-block":A,"yst-hidden":!A,"yst-opacity-0":y>0&&A&&!b,"yst-animate-in yst-fade-in yst-slide-in-from-top-2 yst-duration-300":y>0&&b},a),variant:l,isVisible:A,setIsVisible:function(){},autoDismiss:0,children:s})]}):null};function Gs(t){"@babel/helpers - typeof";return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gs(t)}var Pf;function ja(t,e,n){return(e=tC(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tC(t){var e=nC(t,"string");return Gs(e)=="symbol"?e:e+""}function nC(t,e){if(Gs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Gs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Pu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return Ft(A,"_invoke",function(E,j,S){var b,w,x,N=0,_=S||[],I=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(P,D){return b=P,w=0,x=t,T.n=D,a}};function z(L,P){for(w=L,x=P,e=0;!I&&N&&!D&&e<_.length;e++){var D,B=_[e],V=T.p,W=B[2];L>3?(D=W===P)&&(x=B[(w=B[4])?5:(w=3,3)],B[4]=B[5]=t):B[0]<=V&&((D=L<2&&V<B[1])?(w=0,T.v=P,T.n=B[1]):V<W&&(D=L<3||B[0]>P||P>W)&&(B[4]=L,B[5]=P,T.n=W,w=0))}if(D||L>1)return a;throw I=!0,P}return function(L,P,D){if(N>1)throw TypeError("Generator is already running");for(I&&P===1&&z(P,D),w=P,x=D;(e=w<2?t:x)||!I;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(L="next"),e=b[L]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+L+"' method"),w=1);b=t}else if((e=(I=T.n<0)?x:E.call(j,T))!==a)break}catch(B){b=t,w=1,x=B}finally{N=1}}return{value:e,done:I}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(Ft(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,Ft(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,Ft(f,"constructor",u),Ft(u,"constructor",l),l.displayName="GeneratorFunction",Ft(u,i,"GeneratorFunction"),Ft(f),Ft(f,i,"Generator"),Ft(f,r,function(){return this}),Ft(f,"toString",function(){return"[object Generator]"}),(Pu=function(){return{w:s,m:p}})()}function Ft(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}Ft=function(a,o,l,u){function c(f,p){Ft(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},Ft(t,e,n,r)}function Tf(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function rC(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){Tf(s,r,i,a,o,"next",l)}function o(l){Tf(s,r,i,a,o,"throw",l)}a(void 0)})}}function os(t,e){return oC(t)||aC(t,e)||sC(t,e)||iC()}function iC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
35
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sC(t,e){if(t){if(typeof t=="string")return If(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?If(t,e):void 0}}function If(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function aC(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function oC(t){if(Array.isArray(t))return t}function lC(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Mf="perplexity_tooltip_dismissed",uC=new Date("2026-01-13"),Lf="gemini_tooltip_dismissed",cC=new Date("2026-03-01"),gl=ma(Pf||(Pf=lC(["yst-flex-1 yst-space-y-2"]))),dC=function(e){for(var n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);n=(n<<5)-n+i,n=n&n}return Math.abs(n).toString(36)},Nf=function(e,n,r,i){var s="".concat(e,"_").concat(n,"_").concat(r,"_").concat(i),a=dC(s);return"yst_legal_alert_dismissed_".concat(a)},fC=function(e,n){return"yst_legal_alert_dismissed_".concat(e,"_").concat(n)},hC=function(e){var n,r,i,s,a,o,l,u=e.className,c=It(),f=c.brandId,p=c.analysisId,h=c.aiProvider,y=ha(),m=y.setAiProvider,v=y.setAnalysisId,g=on(),A=ht(),E=F.useState(function(){return localStorage.getItem(Mf)==="true"}),j=os(E,2),S=j[0],b=j[1],w=F.useState(function(){return localStorage.getItem(Lf)==="true"}),x=os(w,2),N=x[0],_=x[1],I=er(),T=I.data,z=fa({query:{select:function(we){var Pe=we.data;return Pe}}}),L=z.data,P=z.isLoading,D=L==null?void 0:L.data,B=D==null?void 0:D.displayName,V=oi({query:{select:function(we){var Pe=we.data;return Pe==null?void 0:Pe.brands}}}),W=V.data,k=V.isLoading,Q=Sc(f,{query:{enabled:!!f,select:function(we){var Pe=we.data;return Pe==null?void 0:Pe.analyses}}}),H=Q.data,O=Q.isLoading,G=Fo(f,p,{query:{enabled:!!f&&!!p,select:function(we){var Pe=we.data;return Pe}}}),Y=G.data,X=G.isLoading,ne=Y==null||(n=Y.analysis)===null||n===void 0||(n=n.scans)===null||n===void 0?void 0:n.some(function(le){return le.aiProvider===un.perplexity}),oe=Y==null||(r=Y.analysis)===null||r===void 0||(r=r.scans)===null||r===void 0?void 0:r.some(function(le){return le.aiProvider===un.gemini}),he=F.useMemo(function(){return new Date},[]),ae=he<uC&&!S&&(T==null?void 0:T.aiProvider)!==un.perplexity&&!!ne,je=he<cC&&!N&&(T==null?void 0:T.aiProvider)!==un.gemini&&!!oe,Z=Bs(f,{query:{enabled:!!f,select:function(we){var Pe=we.data;return Pe}}}),Le=Z.data,Nt=F.useState(!1),at=os(Nt,2),Ye=at[0],Xe=at[1],pn=function(){Xe(!1)},nt=$1({mutation:{onSuccess:function(){var le=rC(Pu().m(function Pe(){var lt,Rt,Mn,Er,nl,rl,il;return Pu().w(function(ui){for(;;)switch(ui.n){case 0:if(lt=Y==null?void 0:Y.analysis,Rt=(lt==null?void 0:lt.scans)||[],Mn=H||[],Er=function(){return Promise.all([g.invalidateQueries({queryKey:Ac(f)}),g.invalidateQueries({queryKey:On(f,p)}),g.invalidateQueries({queryKey:zo(f)})])},Xe(!1),lt){ui.n=2;break}return A("/brands/".concat(f)),ui.n=1,Er();case 1:return ui.a(2);case 2:return nl=Rt.filter(function(Or){return Or.aiProvider!==h}),nl.length>0?m(nl[0].aiProvider):(rl=Mn.filter(function(Or){return Or.id!==p}),rl.length>0?(il=rl.reduce(function(Or,ad){return new Date(ad.createdAt||0)>new Date(Or.createdAt||0)?ad:Or}),v(il.id),A("/brands/".concat(f,"/analysis/").concat(il.id))):(v("latest"),A("/brands/".concat(f)))),ui.n=3,Er();case 3:return ui.a(2)}},Pe)}));function we(){return le.apply(this,arguments)}return we}()}}),Tn=nt.mutate,tr=nt.isPending,Ue=F.useState(!1),pe=os(Ue,2),ye=pe[0],Ae=pe[1],U=W==null?void 0:W.find(function(le){return String(le.id)===String(f)}),J=function(we){switch(we){case"openai":return"ChatGPT";case"perplexity":return"Perplexity AI";case"anthropic":return"Anthropic";case"gemini":return"Gemini";default:return we||"Unknown"}},ue=(Y==null||(i=Y.analysis)===null||i===void 0?void 0:i.scans)||[],ge=ue.length>0?ue.map(function(le){return{value:le.aiProvider,label:J(le.aiProvider)}}):[{value:"",label:"AI platform"}];F.useEffect(function(){var le,we=Y==null||(le=Y.analysis)===null||le===void 0?void 0:le.scans;if(we&&we.length>0){var Pe=we.map(function(Rt){return Rt.aiProvider});if(!h||!Pe.includes(h)){var lt=we[0].aiProvider;lt&&m(lt)}}},[Y==null||(s=Y.analysis)===null||s===void 0?void 0:s.scans,h,m]);var Ee=H!=null&&H.some(function(le){return String(le.id)===String(p)})?p:H&&H.length>0?H[0].id:"latest",rt=Bs(f,{query:{enabled:!!f,select:function(we){var Pe=we.data;return Pe}}}),it=rt.data,yt=(it==null?void 0:it.name)||"your brand",In=Ou(it==null?void 0:it.nextScheduledAnalysis),wt=Y==null||(a=Y.analysis)===null||a===void 0?void 0:a.status,st=F.useState(!1),ln=os(st,2),At=ln[0],Ji=ln[1];F.useEffect(function(){var le,we=Y==null||(le=Y.analysis)===null||le===void 0?void 0:le.id,Pe=D==null?void 0:D.id;if(!f||!we||!h||!Pe||wt!==zn.completed){Ji(!1);return}var lt=Nf(Pe,f,we,h),Rt=window.localStorage.getItem(lt)!==null;if(!Rt&&h==="openai"){var Mn=fC(f,we),Er=window.localStorage.getItem(Mn)!==null;Er&&(window.localStorage.setItem(lt,"true"),window.localStorage.removeItem(Mn),Rt=!0)}Ji(!Rt)},[f,Y==null||(o=Y.analysis)===null||o===void 0?void 0:o.id,wt,h,D==null?void 0:D.id]);var tl=function(we){var Pe;we.preventDefault();var lt=Y==null||(Pe=Y.analysis)===null||Pe===void 0?void 0:Pe.id,Rt=D==null?void 0:D.id;if(!(!f||!lt||!h||!Rt)){var Mn=Nf(Rt,f,lt,h);window.localStorage.setItem(Mn,"true"),Ji(!1)}},Zi=d.jsxs("div",{className:"yst-max-w-xl yst-space-y-2",children:[d.jsx("p",{className:"yst-font-medium",children:"Your analysis is scheduled"}),d.jsxs("p",{children:["You've completed the setup for"," ",d.jsx("b",{className:"yst-font-medium",children:yt}),". The analysis is scheduled to run on"," ",d.jsx("b",{className:"yst-font-medium",children:In}),". You'll see the results here once it's ready. We'll also notify you by email."]})]}),ee=ja(ja(ja(ja({scheduledFirstAnalysis:{alertContent:Zi,alertVariant:"info"}},zn.pending,{alertContent:Zi,alertVariant:"info"}),zn.processing,{alertContent:d.jsxs(d.Fragment,{children:["You've completed the setup for ",yt,". The analysis is now processing. You'll see the results here once it's ready. We'll also notify you by email."]}),alertVariant:"info"}),zn.failed,{alertContent:d.jsx(d.Fragment,{children:"Analysis failed. Try restarting the analysis or contact support if the issue persists."}),alertVariant:"danger"}),zn.cancelled,{alertContent:d.jsx(d.Fragment,{children:"Analysis was cancelled. You can restart the analysis when ready."}),alertVariant:"warning"}),te=!wt&&(Le==null?void 0:Le.setupStatus)==="scheduledFirstAnalysis"?"scheduledFirstAnalysis":wt,fe=(l=ee[te])!==null&&l!==void 0?l:{alertContent:null,alertVariant:"info"},me=fe.alertContent,De=fe.alertVariant,ot=!O&&(Le==null?void 0:Le.setupStatus)!=="pendingQuerySelection"&&(H==null?void 0:H.length)===0&&(Le==null?void 0:Le.nextScheduledAnalysis)===null,nr=wt===zn.completed&&T&&["updating","completed"].includes(T.status)&&!T.isUpToDateWithBrandGroups,Kg=(T==null?void 0:T.status)===PA.updating&&nr===!0,Xg=function(){var we,Pe,lt=(we=L==null?void 0:L.maxNumberOfActiveBrands)!==null&&we!==void 0?we:0,Rt=(Pe=L==null?void 0:L.numberOfActiveBrands)!==null&&Pe!==void 0?Pe:0,Mn=lt-Rt,Er=Mn>0;if(!Er){Ae(!0);return}A("/setup")},xa=function(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;b(!0),we&&localStorage.setItem(Mf,"true")},wa=function(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;_(!0),we&&localStorage.setItem(Lf,"true")};return d.jsxs(d.Fragment,{children:[d.jsx(Km,{isOpen:ye,onClose:function(){return Ae(!1)}}),d.jsx(Wo,{isOpen:Ye,onClose:pn,onConfirm:function(){f&&p&&T!==null&&T!==void 0&&T.id&&Tn({brandId:f,analysisId:p,scanId:T.id})},isLoading:tr,title:"Delete ".concat(J(h)," analysis?"),description:d.jsxs(d.Fragment,{children:[d.jsxs("p",{children:["This will permanently delete the"," ",d.jsx("b",{children:J(h)})," analysis for"," ",d.jsx("b",{children:T!=null&&T.finishedAt?Br(new Date(T.finishedAt),"MMMM d, yyyy"):"this date"}),". Analyses from other AI platforms for that date will not be affected."]}),d.jsx("p",{children:"This action cannot be undone."})]}),confirmText:"Yes, delete analysis",cancelText:"No, go back"}),d.jsx(C.Card,{className:ie("yst-relative yst-overflow-visible",u),children:d.jsxs(C.Card.Content,{className:"yst-mt-0",children:[d.jsxs("div",{className:"yst-flex yst-flex-1 yst-flex-col yst-flex-wrap yst-items-start yst-justify-between yst-gap-4 md:yst-flex-row xl:yst-items-center",children:[d.jsx("div",{className:"xl:yst-max-w-1/4",children:d.jsxs("div",{className:"yst-flex yst-flex-col yst-gap-2 lg:yst-gap-2 xl:yst-flex-row xl:yst-items-baseline",children:[d.jsx(C.Title,{children:d.jsxs(d.Fragment,{children:[P?d.jsx(C.SkeletonLoader,{className:"yst-inline-block yst-h-8 yst-w-64"}):d.jsxs(d.Fragment,{children:["Hi",B&&" ".concat(B),","]})," "]})}),d.jsx("p",{className:"yst-text-sm yst-font-normal yst-text-slate-600",children:"welcome to your brand analysis!"})]})}),d.jsxs("div",{className:"yst-flex yst-flex-row yst-flex-wrap yst-items-center yst-justify-end yst-gap-4 yst-self-end md:yst-self-start",children:[d.jsxs(C.Button,{variant:"primary",onClick:Xg,disabled:O||k||P,children:[d.jsx(Ym,{})," Analyze a different brand"]}),d.jsx("div",{className:"yst-relative yst-flex yst-items-center",children:d.jsxs(C.DropdownMenu,{children:[d.jsx(C.DropdownMenu.IconTrigger,{screenReaderTriggerLabel:"Open brand list options",disabled:O||k||W&&(W==null?void 0:W.length)<1,children:d.jsx(dw,{})}),d.jsx(C.DropdownMenu.List,{className:"yst-absolute yst-right-0 yst-top-full yst-z-40 yst-mt-2 yst-flex yst-w-64 yst-flex-col yst-justify-start",children:d.jsxs(C.DropdownMenu.ButtonItem,{className:"yst-flex yst-justify-start yst-text-red-600 hover:yst-bg-red-50",onClick:function(){return Xe(!0)},disabled:!T,children:[d.jsx(Cc,{className:"yst-h-4 yst-w-4"}),"Delete analysis"]})})]})})]})]}),d.jsx(Gi,{}),d.jsxs("form",{className:"yst-flex yst-flex-col yst-items-stretch yst-gap-4 md:yst-flex-row md:yst-items-center",children:[d.jsxs(gl,{className:"yst-relative",children:[d.jsx(C.Label,{htmlFor:"brand-name",children:"Brand"}),d.jsx(C.Select,{onChange:function(le){A("/brands/".concat(le))},id:"brand-name",value:f||"loading",options:W&&W.length>0?W.map(function(le){return{value:le.id,label:le.name}}):[{value:"loading",label:"Loading..."}],disabled:k||!W||W.length<2||!f})]}),d.jsxs(gl,{className:"yst-relative",children:[d.jsx(C.Label,{htmlFor:"analysis-date",children:"Analysis date"}),d.jsx(XS,{analyses:H||[],selectedAnalysisId:Ee,onAnalysisSelect:function(le){A("/brands/".concat(f,"/analysis/").concat(String(le)))},isLoading:O,disabled:O||!H||H.length<1,id:"analysis-date"})]}),d.jsxs(gl,{className:"yst-relative",children:[d.jsx("div",{className:"yst-flex yst-items-center yst-gap-2",children:d.jsx(C.Label,{htmlFor:"ai-tool",children:"AI platform"})}),d.jsx(C.Select,{onChange:function(le){Object.values(un).includes(le)?m(le):console.error("Invalid AI provider selected:",le),le===un.perplexity&&xa(),le===un.gemini&&wa()},id:"ai-tool",value:h,options:X||O?[{value:h,label:"Loading..."}]:ge,disabled:X||O||ge.length<2,buttonProps:{className:ie("yst-select__button",{"yst-ring-2 yst-ring-primary-500":ae||je})}}),d.jsx(Of,{id:"perplexity-introduction-popover",isVisible:ae,onClose:function(){return xa(!1)},variant:"info",delay:2e3,children:d.jsxs("div",{className:"yst-space-y-3",children:[d.jsxs("div",{className:"yst-flex yst-items-start yst-gap-2",children:[d.jsx(ju,{className:"yst-mt-0.5 yst-h-4 yst-w-4 yst-flex-shrink-0"}),d.jsxs("div",{className:"yst-flex-1 yst-space-y-1",children:[d.jsx(C.Title,{size:"4",className:"yst-text-sm yst-font-medium",children:"New: See how your brand appears in Perplexity"}),d.jsxs("p",{className:"yst-mb-4 yst-text-sm",children:["Select 'Perplexity' from the"," ",d.jsx("strong",{className:"yst-font-medium",children:"AI platform"})," ","dropdown to see how your brand appears."]})]})]}),d.jsxs("div",{className:"yst-flex yst-justify-end yst-gap-2",children:[d.jsx(C.Button,{variant:"tertiary",size:"small",onClick:function(){return xa(!0)},children:"Dismiss"}),d.jsx(C.Button,{variant:"primary",size:"small",onClick:function(){var le=ge.find(function(we){return we.value===un.perplexity});le&&m(un.perplexity),xa(!0)},children:"Select Perplexity"})]})]})}),d.jsx(Of,{id:"gemini-introduction-popover",isVisible:je,onClose:function(){return wa(!1)},variant:"info",delay:2e3,children:d.jsxs("div",{className:"yst-space-y-3",children:[d.jsxs("div",{className:"yst-flex yst-items-start yst-gap-2",children:[d.jsx(ju,{className:"yst-mt-0.5 yst-h-4 yst-w-4 yst-flex-shrink-0"}),d.jsxs("div",{className:"yst-flex-1 yst-space-y-1",children:[d.jsx(C.Title,{size:"4",className:"yst-text-sm yst-font-medium",children:"New: See how your brand appears in Gemini"}),d.jsxs("p",{className:"yst-mb-4 yst-text-sm",children:["Select 'Gemini' from the"," ",d.jsx("strong",{className:"yst-font-medium",children:"AI platform"})," ","dropdown to see how your brand appears."]})]})]}),d.jsxs("div",{className:"yst-flex yst-justify-end yst-gap-2",children:[d.jsx(C.Button,{variant:"tertiary",size:"small",onClick:function(){return wa(!0)},children:"Dismiss"}),d.jsx(C.Button,{variant:"primary",size:"small",onClick:function(){var le=ge.find(function(we){return we.value===un.gemini});le&&m(un.gemini),wa(!0)},children:"Select Gemini"})]})]})})]})]})]})}),d.jsxs("div",{className:"ystaii-alerts yst-space-y-4",children:[At&&d.jsx(C.Alert,{children:d.jsxs("div",{className:"yst-flex yst-w-full",children:[d.jsx("div",{className:"yst-max-w-xl yst-space-y-4",children:d.jsx("p",{className:"yst-mb-0",children:"Note: These insights are produced using AI and may contain errors."})}),d.jsx("div",{className:"yst-ml-auto",children:d.jsx(C.Link,{onClick:tl,variant:"default",children:d.jsx(t0,{})})})]})}),wt!==zn.completed&&me&&d.jsx(C.Alert,{className:"md:yst-col-span-2",variant:De,children:me}),nr&&d.jsxs(C.Alert,{variant:"warning",children:["Note: This scan is not up to date with your current brand groups.",Kg?d.jsxs(d.Fragment,{children:[" ","We're updating your sentiment analysis to reflect your new brand groups. This may take a few minutes."]}):d.jsx(d.Fragment,{children:" Newer scans will use your newly selected brand groupings."})]})]}),ot&&d.jsx(C.Alert,{variant:"info",className:"yst-mb-6",children:d.jsx("div",{className:"yst-flex yst-items-start yst-gap-3",children:d.jsxs("div",{className:"yst-flex-1",children:[d.jsx("h3",{className:"yst-mb-2 yst-font-medium yst-text-blue-800",children:"No analyses scheduled"}),d.jsxs("p",{className:"yst-text-bluer-700 yst-mb-0",children:[d.jsx("span",{className:"yst-font-medium yst-text-blue-900",children:U==null?void 0:U.name})," ","has not been analyzed yet, and no analyses are scheduled because this brand is set to inactive in your"," ",d.jsx("span",{className:"yst-cursor-pointer yst-font-medium yst-text-blue-900 yst-underline",onClick:function(){return A("/settings")},role:"button",tabIndex:0,onKeyPress:function(le){(le.key==="Enter"||le.key===" ")&&A("/settings")},children:"Settings"}),"."]})]})})}),U&&d.jsx(RS,{brand:U},U.id)]})},pC=function(){var e,n,r,i=er(),s=i.data,a=i.isLoading,o=i.isRefetching,l=s==null?void 0:s.mentions;return d.jsx(C.Card,{className:"yst-overflow-visible",children:d.jsxs(C.Card.Content,{className:"yst-space-y-4",children:[d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(ya,{title:"Mentions",tooltip:"The queries where your brand was mentioned."}),d.jsx(pa,{score:l==null||(e=l.mentionedInNumberOfQueries)===null||e===void 0?void 0:e.value,total:l==null||(n=l.queriesWithMentions)===null||n===void 0?void 0:n.length,suffix:"queries",isLoading:a||o})]}),!a&&l?d.jsx("ul",{children:l==null||(r=l.queriesWithMentions)===null||r===void 0?void 0:r.map(function(u,c){var f=c===0,p=l.queriesWithMentions&&c===l.queriesWithMentions.length-1;return d.jsxs("li",{className:ie("yst-flex yst-flex-row yst-items-center yst-gap-2 yst-border-l yst-border-r yst-border-slate-300 yst-p-4 yst-font-medium yst-text-slate-800",{"yst-rounded-t-lg yst-border-t":f,"yst-rounded-b-lg yst-border-b":p,"yst-border-b":!p}),children:[d.jsx("div",{className:"yst-h-4 yst-w-4",children:u!=null&&u.mentioned?d.jsx(tw,{className:"yst-text-green-500"}):d.jsx(Ew,{className:"yst-text-red-500"})}),d.jsx("span",{className:"yst-justify-start",children:u.query}),d.jsx("span",{className:"yst-ml-auto yst-flex yst-items-end",children:u!=null&&u.mentioned?d.jsx(C.Badge,{className:"yst-bg-green-100 yst-text-green-800",children:"Found"}):d.jsx(C.Badge,{className:"yst-bg-red-100 yst-text-red-800",children:"Not found"})})]},u.query)})}):d.jsx(C.SkeletonLoader,{className:"yst-h-56 yst-w-full"})]})})};/*!
22
+ */var Jd;function Sw(){return Jd||(Jd=1,function(t){(function(){var e={}.hasOwnProperty;function n(){for(var s="",a=0;a<arguments.length;a++){var o=arguments[a];o&&(s=i(s,r(o)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var o in s)e.call(s,o)&&s[o]&&(a=i(a,o));return a}function i(s,a){return a?s?s+" "+a:s+a:s}t.exports?(n.default=n,t.exports=n):window.classNames=n})()}(yl)),yl.exports}var Cw=Sw();const le=To(Cw);var kw=function(e){return Dx({mutation:{onSettled:function(){e&&e()}}})};function jw(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"}))}const Ew=L.forwardRef(jw);function Ow(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}))}const Pw=L.forwardRef(Ow);function Tw(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"}))}const Iw=L.forwardRef(Tw);function Mw(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"}))}const Lw=L.forwardRef(Mw);function Nw(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const Rw=L.forwardRef(Nw);function _w(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"}))}const Dw=L.forwardRef(_w);function Bw(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"}))}const Fw=L.forwardRef(Bw);function zw(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))}const eo=L.forwardRef(zw);function Uw(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}const Zd=L.forwardRef(Uw);function Hw(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))}const qw=L.forwardRef(Hw);function Ww(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))}const Gw=L.forwardRef(Ww);function Qw(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}))}const s0=L.forwardRef(Qw);function Yw(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4v16m8-8H4"}))}const a0=L.forwardRef(Yw);function Vw(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 12l3-3 3 3 4-4M8 21l4-4 4 4M3 4h18M4 4h16v12a1 1 0 01-1 1H5a1 1 0 01-1-1V4z"}))}const Kw=L.forwardRef(Vw);function Xw(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"}))}const Jw=L.forwardRef(Xw);function Zw(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"}))}const o0=L.forwardRef(Zw);function $w(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))}const Oc=L.forwardRef($w);function eA(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}))}const tA=L.forwardRef(eA);var nA=function(){return[{label:"Brand analysis",href:"/",Icon:Kw,isActive:function(n){return n.startsWith("/setup")||n==="/"},showInMenu:!0},{label:"Settings",href:"/settings",Icon:Rw,isActive:function(n){return n.startsWith("/settings")},showInMenu:!0}]},$d;function rA(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var ef=function(e){var n=e.className,r=vt(),i=r.pathname,s=nA();return d.jsx("div",{className:le("yst-flex yst-flex-col yst-gap-10",n),children:d.jsx(k.SidebarNavigation.Sidebar,{children:d.jsx(k.SidebarNavigation.List,{className:"yst-space-y-2",children:s.filter(function(a){return a.showInMenu!==!1}).map(function(a){var o=a.isActive?a.isActive(i):!1;return d.jsx(k.SidebarNavigation.SubmenuItem,{className:le("yst-flex yst-gap-x-3",{"yst-sidebar-navigation__item--active":o}),href:a.href,to:a.href,as:jr,label:d.jsxs(d.Fragment,{children:[d.jsx(a.Icon,{className:le($d||($d=rA(["yst-sidebar-navigation__icon yst-h-6 yst-w-6"])))}),a.label]})},a.label)})})})})};const iA="data:image/svg+xml,%3csvg%20width='208'%20height='42'%20viewBox='0%200%20208%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='169'%20width='39'%20height='16'%20rx='8'%20fill='%23BFDBFE'/%3e%3cpath%20d='M177.869%2012V4.9541H180.813C182.151%204.9541%20182.957%205.62793%20182.957%206.70703V6.7168C182.957%207.4541%20182.41%208.1084%20181.702%208.2207V8.30859C182.649%208.39648%20183.304%209.08008%20183.304%209.99316V10.0029C183.304%2011.2383%20182.386%2012%20180.882%2012H177.869ZM180.506%205.93555H179.129V7.92285H180.345C181.238%207.92285%20181.712%207.57617%20181.712%206.93652V6.92676C181.712%206.30176%20181.268%205.93555%20180.506%205.93555ZM180.545%208.81641H179.129V11.0186H180.594C181.521%2011.0186%20182.015%2010.6328%20182.015%209.91504V9.90527C182.015%209.19238%20181.507%208.81641%20180.545%208.81641ZM186.834%2012.1074C185.247%2012.1074%20184.285%2011.043%20184.285%209.34375V9.33887C184.285%207.65918%20185.257%206.56055%20186.775%206.56055C188.294%206.56055%20189.231%207.625%20189.231%209.23633V9.63672H185.501C185.516%2010.5938%20186.033%2011.1504%20186.858%2011.1504C187.518%2011.1504%20187.894%2010.8184%20188.011%2010.5742L188.025%2010.54H189.183L189.168%2010.584C188.997%2011.2725%20188.284%2012.1074%20186.834%2012.1074ZM186.79%207.5127C186.111%207.5127%20185.604%207.97168%20185.511%208.82129H188.045C187.962%207.94727%20187.469%207.5127%20186.79%207.5127ZM192.547%2012.0244C191.321%2012.0244%20190.818%2011.6143%20190.818%2010.584V7.60547H189.988V6.66309H190.818V5.35449H192.054V6.66309H193.182V7.60547H192.054V10.2959C192.054%2010.8281%20192.264%2011.0527%20192.771%2011.0527C192.942%2011.0527%20193.035%2011.0479%20193.182%2011.0332V11.9707C193.006%2012.0049%20192.781%2012.0244%20192.547%2012.0244ZM195.848%2012.0879C194.832%2012.0879%20194.095%2011.4629%20194.095%2010.4912V10.4814C194.095%209.5293%20194.822%208.97266%20196.121%208.89453L197.493%208.81152V8.35254C197.493%207.82031%20197.146%207.52734%20196.492%207.52734C195.936%207.52734%20195.574%207.72754%20195.452%208.0791L195.447%208.09863H194.3L194.305%208.05469C194.422%207.15625%20195.281%206.56055%20196.551%206.56055C197.923%206.56055%20198.694%207.22461%20198.694%208.35254V12H197.493V11.2676H197.41C197.117%2011.7852%20196.551%2012.0879%20195.848%2012.0879ZM195.296%2010.4326C195.296%2010.8867%20195.682%2011.1553%20196.219%2011.1553C196.951%2011.1553%20197.493%2010.6768%20197.493%2010.042V9.6123L196.292%209.69043C195.613%209.73438%20195.296%209.9834%20195.296%2010.4229V10.4326Z'%20fill='%231E3A8A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.5037%2019.2842C22.9203%2019.2842%2023.2881%2019.5608%2023.402%2019.9612L24.4143%2023.5057C24.857%2025.0583%2026.071%2026.2724%2027.6236%2026.715L31.1682%2027.7273C31.6629%2027.8705%2031.9526%2028.3881%2031.8094%2028.8828C31.7215%2029.192%2031.4774%2029.4361%2031.1682%2029.524L27.6236%2030.5363C26.071%2030.9789%2024.857%2032.193%2024.4143%2033.7456L23.402%2037.2901C23.2588%2037.7849%2022.7413%2038.0745%2022.2466%2037.9313C21.9373%2037.8434%2021.6932%2037.5993%2021.6053%2037.2901L20.5931%2033.7456C20.1504%2032.193%2018.9364%2030.9789%2017.3838%2030.5363L13.8392%2029.524C13.3445%2029.3808%2013.0548%2028.8633%2013.198%2028.3685C13.2859%2028.0593%2013.53%2027.8152%2013.8392%2027.7273L17.3838%2026.715C18.9364%2026.2724%2020.1504%2025.0583%2020.5931%2023.5057L21.6053%2019.9612C21.7193%2019.5608%2022.0871%2019.2842%2022.5037%2019.2842Z'%20fill='url(%23paint0_radial_4548_14216)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.3742%2012C13.6573%2012%2013.9047%2012.192%2013.9731%2012.4654L14.1846%2013.315C14.3799%2014.0864%2014.9821%2014.6918%2015.7535%2014.8838L16.603%2015.0954C16.9318%2015.1768%2017.1335%2015.512%2017.0522%2015.8407C16.9968%2016.0621%2016.8243%2016.2346%2016.603%2016.2899L15.7535%2016.5015C14.9821%2016.6968%2014.3767%2017.2989%2014.1846%2018.0703L13.9731%2018.9199C13.8917%2019.2486%2013.5564%2019.4504%2013.2277%2019.369C13.0064%2019.3137%2012.8339%2019.1412%2012.7785%2018.9199L12.567%2018.0703C12.3749%2017.2989%2011.7695%2016.6935%2010.9981%2016.5015L10.1486%2016.2899C9.81986%2016.2085%209.61805%2015.8733%209.69943%2015.5446C9.75476%2015.3232%209.92727%2015.1507%2010.1486%2015.0954L10.9981%2014.8838C11.7695%2014.6918%2012.3749%2014.0864%2012.567%2013.315L12.7785%2012.4654C12.8469%2012.192%2013.0943%2012%2013.3774%2012H13.3742Z'%20fill='url(%23paint1_radial_4548_14216)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.39254%2026.8813C6.54226%2026.8813%206.67571%2026.979%206.72453%2027.1189L6.90681%2027.669C6.97516%2027.8773%207.1379%2028.0401%207.34947%2028.1117L7.89954%2028.294C8.08181%2028.3558%208.17946%2028.5543%208.12087%2028.7366C8.08507%2028.8408%208.0037%2028.9222%207.89954%2028.958L7.34947%2029.1402C7.14116%2029.2086%206.97841%2029.3713%206.90681%2029.5829L6.72453%2030.133C6.66269%2030.3152%206.46414%2030.4129%206.28187%2030.3543C6.17771%2030.3185%206.09634%2030.2371%206.06054%2030.133L5.87827%2029.5829C5.80992%2029.3746%205.64392%2029.2118%205.4356%2029.1402L4.88553%2028.958C4.70326%2028.8961%204.60561%2028.6976%204.6642%2028.5153C4.7%2028.4111%204.78138%2028.3298%204.88553%2028.294L5.4356%2028.1117C5.64392%2028.0433%205.80666%2027.8806%205.87827%2027.669L6.06054%2027.1189C6.10936%2026.9757%206.24281%2026.8813%206.39254%2026.8813Z'%20fill='url(%23paint2_radial_4548_14216)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.80904%2033.5596C2.95876%2033.5596%203.09221%2033.6572%203.14104%2033.7972L3.32331%2034.3473C3.39166%2034.5556%203.5544%2034.7183%203.76597%2034.7899L4.31604%2034.9722C4.49832%2035.034%204.59596%2035.2326%204.53737%2035.4148C4.50157%2035.519%204.4202%2035.6004%204.31604%2035.6362L3.76597%2035.8185C3.55766%2035.8868%203.39492%2036.0495%203.32331%2036.2611L3.14104%2036.8112C3.07919%2036.9935%202.88065%2037.0911%202.69837%2037.0325C2.59422%2036.9967%202.51285%2036.9153%202.47704%2036.8112L2.29477%2036.2611C2.22642%2036.0528%202.06042%2035.8901%201.85211%2035.8185L1.30204%2035.6362C1.11976%2035.5743%201.02212%2035.3758%201.0807%2035.1935C1.11651%2035.0894%201.19788%2035.008%201.30204%2034.9722L1.85211%2034.7899C2.06042%2034.7216%202.22316%2034.5588%202.29477%2034.3473L2.47704%2033.7972C2.52587%2033.654%202.65931%2033.5596%202.80904%2033.5596Z'%20fill='url(%23paint3_radial_4548_14216)'/%3e%3cpath%20d='M2.42488%2032.7235C1.94641%2031.4476%201.68277%2030.0676%201.68277%2028.6256C1.68277%2023.5806%204.89532%2019.2712%209.38379%2017.634L8.79466%2016.0586C3.66498%2017.9269%200%2022.8483%200%2028.6256C0%2030.2661%200.296193%2031.835%200.836502%2033.2866L2.42488%2032.7268V32.7235Z'%20fill='url(%23paint4_radial_4548_14216)'/%3e%3cpath%20d='M20.6587%2037.7652C18.6602%2039.3633%2016.1279%2040.3202%2013.3743%2040.3202C10.0023%2040.3202%206.96221%2038.8849%204.82702%2036.5967L3.58691%2037.7359C6.02807%2040.3593%209.51078%2041.9998%2013.3776%2041.9998C16.5218%2041.9998%2019.4121%2040.9159%2021.6938%2039.0997L20.662%2037.7684L20.6587%2037.7652Z'%20fill='url(%23paint5_radial_4548_14216)'/%3e%3cpath%20d='M13.3739%2022.3664C15.0436%2022.3664%2016.5604%2023.0238%2017.6833%2024.0914L18.8095%2022.8383C17.3904%2021.5038%2015.4798%2020.6836%2013.3771%2020.6836C9.89444%2020.6836%206.93902%2022.9262%205.86816%2026.0476L7.44678%2026.627C8.28328%2024.1533%2010.6235%2022.3631%2013.3771%2022.3631L13.3739%2022.3664Z'%20fill='url(%23paint6_radial_4548_14216)'/%3e%3cpath%20d='M17.6737%2033.1658C16.5508%2034.2301%2015.0373%2034.8843%2013.3741%2034.8843C10.6074%2034.8843%208.2574%2033.0811%207.43392%2030.5879L5.84229%2031.1249C6.89035%2034.2822%209.8653%2036.5638%2013.3773%2036.5638C15.4832%2036.5638%2017.3971%2035.7436%2018.8162%2034.4059L17.677%2033.169L17.6737%2033.1658Z'%20fill='url(%23paint7_radial_4548_14216)'/%3e%3cpath%20d='M39.169%2021.2891H43.677C45.7666%2021.2891%2047.2802%2021.595%2048.2111%2022.2037C49.142%2022.8123%2049.6074%2023.7758%2049.6074%2025.0908C49.6074%2025.9761%2049.3796%2026.7149%2048.9206%2027.3041C48.4617%2027.8932%2047.8075%2028.2642%2046.9482%2028.414V28.5181C48.0158%2028.7199%2048.8002%2029.1138%2049.3014%2029.7062C49.8027%2030.2985%2050.0533%2031.0992%2050.0533%2032.1115C50.0533%2033.4753%2049.5781%2034.5429%2048.6244%2035.3143C47.6707%2036.0857%2046.3493%2036.473%2044.6502%2036.473H39.1658V21.2891H39.169ZM41.6525%2027.5645H44.0416C45.0799%2027.5645%2045.8383%2027.3985%2046.3167%2027.0697C46.7952%2026.741%2047.0328%2026.1811%2047.0328%2025.3935C47.0328%2024.6806%2046.7757%2024.1631%2046.2581%2023.8474C45.7406%2023.5284%2044.9236%2023.3689%2043.8007%2023.3689H41.6492V27.5645H41.6525ZM41.6525%2029.5792V34.3867H44.2889C45.3272%2034.3867%2046.1117%2034.1881%2046.6422%2033.791C47.1728%2033.3939%2047.4364%2032.7657%2047.4364%2031.9065C47.4364%2031.1188%2047.1662%2030.5329%2046.6259%2030.1521C46.0856%2029.7713%2045.2654%2029.5792%2044.1653%2029.5792H41.6525Z'%20fill='url(%23paint8_linear_4548_14216)'/%3e%3cpath%20d='M58.7762%2024.7817C59.2677%2024.7817%2059.6713%2024.8175%2059.9902%2024.8859L59.7526%2027.161C59.4076%2027.0764%2059.0463%2027.0374%2058.672%2027.0374C57.6955%2027.0374%2056.9046%2027.3563%2056.2992%2027.9943C55.6938%2028.6322%2055.3911%2029.459%2055.3911%2030.4778V36.4797H52.95V24.9933H54.8606L55.1828%2027.0178H55.3065C55.6873%2026.3311%2056.1853%2025.7908%2056.7972%2025.3871C57.4091%2024.9868%2058.0699%2024.785%2058.7762%2024.785V24.7817Z'%20fill='url(%23paint9_linear_4548_14216)'/%3e%3cpath%20d='M69.309%2036.4734L68.8208%2034.8753H68.7394C68.1861%2035.575%2067.6295%2036.0503%2067.0664%2036.3041C66.5065%2036.558%2065.784%2036.685%2064.9051%2036.685C63.7757%2036.685%2062.8969%2036.379%2062.2622%2035.7703C61.6275%2035.1617%2061.3118%2034.2991%2061.3118%2033.186C61.3118%2032.0012%2061.7512%2031.1094%2062.63%2030.5072C63.5088%2029.9051%2064.8498%2029.5763%2066.6498%2029.521L68.632%2029.4591V28.8472C68.632%2028.1116%2068.4595%2027.5648%2068.1177%2027.2003C67.7759%2026.8357%2067.2421%2026.6534%2066.5228%2026.6534C65.9337%2026.6534%2065.3706%2026.7413%2064.8303%2026.9138C64.29%2027.0864%2063.7692%2027.2914%2063.2712%2027.5258L62.4803%2025.7811C63.1019%2025.4557%2063.7855%2025.2083%2064.5276%2025.039C65.2697%2024.8698%2065.9662%2024.7852%2066.627%2024.7852C68.0884%2024.7852%2069.1918%2025.1041%2069.9339%2025.7421C70.6793%2026.38%2071.0503%2027.3793%2071.0503%2028.7431V36.4799H69.3057L69.309%2036.4734ZM65.6733%2034.8134C66.5586%2034.8134%2067.2714%2034.566%2067.8085%2034.0713C68.3455%2033.5766%2068.6124%2032.8833%2068.6124%2031.9882V30.9922L67.138%2031.054C65.989%2031.0963%2065.1525%2031.2884%2064.6285%2031.6301C64.1044%2031.9719%2063.8441%2032.4992%2063.8441%2033.2055C63.8441%2033.7165%2063.997%2034.1136%2064.2997%2034.3935C64.6057%2034.6734%2065.0614%2034.8134%2065.67%2034.8134H65.6733Z'%20fill='url(%23paint10_linear_4548_14216)'/%3e%3cpath%20d='M84.5646%2036.4732H82.1137V29.4102C82.1137%2028.5248%2081.9347%2027.8641%2081.5799%2027.4279C81.2219%2026.9918%2080.6588%2026.7737%2079.8809%2026.7737C78.8491%2026.7737%2078.0939%2027.0797%2077.6155%2027.6883C77.137%2028.297%2076.8994%2029.319%2076.8994%2030.7512V36.4732H74.4583V24.9868H76.3689L76.7106%2026.4938H76.8343C77.1793%2025.947%2077.6708%2025.5238%2078.3088%2025.2277C78.9467%2024.9315%2079.653%2024.7817%2080.4277%2024.7817C83.1846%2024.7817%2084.5614%2026.1846%2084.5614%2028.987V36.4765L84.5646%2036.4732Z'%20fill='url(%23paint11_linear_4548_14216)'/%3e%3cpath%20d='M91.836%2036.6814C90.4038%2036.6814%2089.2841%2036.1606%2088.4802%2035.1223C87.6762%2034.084%2087.2759%2032.6258%2087.2759%2030.751C87.2759%2028.8762%2087.6827%2027.4018%2088.4965%2026.3537C89.3102%2025.3056%2090.4364%2024.7816%2091.8783%2024.7816C93.3202%2024.7816%2094.5375%2025.3382%2095.3252%2026.4546H95.4489C95.3317%2025.6311%2095.2731%2024.9802%2095.2731%2024.5017V20.3159H97.724V36.4763H95.8134L95.387%2034.9693H95.2731C94.4919%2036.1118%2093.3462%2036.6847%2091.836%2036.6847V36.6814ZM92.4902%2034.709C93.4927%2034.709%2094.225%2034.4258%2094.6807%2033.8627C95.1364%2033.2996%2095.374%2032.3817%2095.387%2031.1156V30.7738C95.387%2029.3254%2095.1527%2028.2969%2094.6807%2027.6882C94.2088%2027.0795%2093.4732%2026.7736%2092.4674%2026.7736C91.6081%2026.7736%2090.9474%2027.1219%2090.4852%2027.8184C90.023%2028.5149%2089.7886%2029.5044%2089.7886%2030.7933C89.7886%2032.0823%2090.0132%2033.0392%2090.4624%2033.7065C90.9116%2034.3737%2091.5886%2034.709%2092.4869%2034.709H92.4902Z'%20fill='url(%23paint12_linear_4548_14216)'/%3e%3cpath%20d='M106.997%2036.473V21.2891H109.481V36.473H106.997Z'%20fill='url(%23paint13_linear_4548_14216)'/%3e%3cpath%20d='M123.334%2036.4732H120.883V29.4102C120.883%2028.5248%20120.704%2027.8641%20120.349%2027.4279C119.991%2026.9918%20119.428%2026.7737%20118.65%2026.7737C117.618%2026.7737%20116.863%2027.0797%20116.385%2027.6883C115.906%2028.297%20115.668%2029.319%20115.668%2030.7512V36.4732H113.227V24.9868H115.138L115.48%2026.4938H115.603C115.948%2025.947%20116.44%2025.5238%20117.078%2025.2277C117.716%2024.9315%20118.422%2024.7817%20119.197%2024.7817C121.954%2024.7817%20123.33%2026.1846%20123.33%2028.987V36.4765L123.334%2036.4732Z'%20fill='url(%23paint14_linear_4548_14216)'/%3e%3cpath%20d='M134.449%2033.2019C134.449%2034.3249%20134.039%2035.1841%20133.222%2035.783C132.405%2036.3819%20131.233%2036.6814%20129.71%2036.6814C128.187%2036.6814%20126.95%2036.4503%20126.022%2035.9848V33.8757C127.373%2034.4974%20128.629%2034.8098%20129.791%2034.8098C131.295%2034.8098%20132.044%2034.3574%20132.044%2033.4493C132.044%2033.1596%20131.959%2032.9155%20131.793%2032.7235C131.627%2032.5314%20131.354%2032.3296%20130.973%2032.1213C130.592%2031.913%20130.062%2031.6786%20129.385%2031.415C128.063%2030.904%20127.168%2030.3897%20126.699%2029.8787C126.231%2029.3677%20126%2028.7004%20126%2027.8835C126%2026.9005%20126.397%2026.1389%20127.188%2025.592C127.982%2025.0485%20129.059%2024.7783%20130.423%2024.7783C131.787%2024.7783%20133.05%2025.0517%20134.254%2025.5986L133.466%2027.4376C132.226%2026.9265%20131.185%2026.6694%20130.342%2026.6694C129.053%2026.6694%20128.411%2027.0372%20128.411%2027.7695C128.411%2028.1308%20128.581%2028.4335%20128.916%2028.6842C129.251%2028.9348%20129.983%2029.2766%20131.113%2029.7127C132.06%2030.0805%20132.75%2030.4158%20133.18%2030.7217C133.609%2031.0277%20133.928%2031.3792%20134.137%2031.7763C134.345%2032.1734%20134.449%2032.6519%20134.449%2033.2052V33.2019Z'%20fill='url(%23paint15_linear_4548_14216)'/%3e%3cpath%20d='M136.939%2021.9434C136.939%2021.5072%20137.059%2021.172%20137.297%2020.9344C137.535%2020.6968%20137.876%2020.5796%20138.319%2020.5796C138.762%2020.5796%20139.081%2020.6968%20139.322%2020.9344C139.562%2021.1687%20139.68%2021.504%20139.68%2021.9434C139.68%2022.3828%20139.559%2022.6855%20139.322%2022.9264C139.084%2023.164%20138.749%2023.2844%20138.319%2023.2844C137.889%2023.2844%20137.535%2023.164%20137.297%2022.9264C137.059%2022.6887%20136.939%2022.36%20136.939%2021.9434ZM139.527%2036.4731H137.085V24.9867H139.527V36.4731Z'%20fill='url(%23paint16_linear_4548_14216)'/%3e%3cpath%20d='M152.715%2024.987V26.328L150.752%2026.6925C150.931%2026.9334%20151.081%2027.2328%20151.198%2027.5843C151.316%2027.9359%20151.374%2028.3102%20151.374%2028.7073C151.374%2029.892%20150.964%2030.8229%20150.147%2031.5C149.33%2032.177%20148.204%2032.5187%20146.772%2032.5187C146.404%2032.5187%20146.072%2032.4927%20145.776%2032.4373C145.248%2032.7628%20144.988%2033.1437%20144.988%2033.5798C144.988%2033.8435%20145.112%2034.0387%20145.356%2034.1722C145.603%2034.3024%20146.052%2034.3707%20146.71%2034.3707H148.715C149.981%2034.3707%20150.945%2034.6409%20151.602%2035.1812C152.259%2035.7215%20152.588%2036.4994%20152.588%2037.5182C152.588%2038.8202%20152.051%2039.8227%20150.977%2040.529C149.903%2041.2353%20148.354%2041.5868%20146.326%2041.5868C144.76%2041.5868%20143.566%2041.3101%20142.742%2040.7568C141.919%2040.2035%20141.505%2039.4125%20141.505%2038.3905C141.505%2037.6842%20141.73%2037.0918%20142.176%2036.6101C142.622%2036.1284%20143.247%2035.7964%20144.051%2035.6076C143.725%2035.4676%20143.455%2035.2463%20143.247%2034.9371C143.035%2034.6279%20142.931%2034.3056%20142.931%2033.9671C142.931%2033.5375%20143.051%2033.173%20143.296%2032.8768C143.54%2032.5806%20143.898%2032.2844%20144.376%2031.9947C143.781%2031.7376%20143.299%2031.3209%20142.928%2030.7416C142.557%2030.1655%20142.371%2029.4884%20142.371%2028.7105C142.371%2027.4639%20142.765%2026.4972%20143.549%2025.8137C144.334%2025.1269%20145.454%2024.7852%20146.908%2024.7852C147.234%2024.7852%20147.576%2024.8079%20147.93%2024.8535C148.289%2024.8991%20148.555%2024.9446%20148.734%2024.9935H152.712L152.715%2024.987ZM143.689%2038.2603C143.689%2038.7876%20143.927%2039.1912%20144.402%2039.4744C144.877%2039.7576%20145.541%2039.9008%20146.401%2039.9008C147.729%2039.9008%20148.721%2039.7087%20149.372%2039.3279C150.023%2038.9471%20150.349%2038.4426%20150.349%2037.8111C150.349%2037.3131%20150.17%2036.9584%20149.815%2036.7468C149.457%2036.5352%20148.796%2036.4311%20147.826%2036.4311H145.978C145.278%2036.4311%20144.721%2036.5971%20144.311%2036.9258C143.898%2037.2546%20143.693%2037.7005%20143.693%2038.2603H143.689ZM144.741%2028.7073C144.741%2029.4266%20144.926%2029.9799%20145.297%2030.3705C145.668%2030.7578%20146.199%2030.9531%20146.892%2030.9531C148.305%2030.9531%20149.011%2030.198%20149.011%2028.6877C149.011%2027.9391%20148.835%2027.363%20148.487%2026.9594C148.139%2026.5558%20147.605%2026.3507%20146.892%2026.3507C146.179%2026.3507%20145.652%2026.5526%20145.288%2026.9529C144.923%2027.3532%20144.741%2027.9391%20144.741%2028.7073Z'%20fill='url(%23paint17_linear_4548_14216)'/%3e%3cpath%20d='M164.95%2036.4729H162.499V29.4099C162.499%2028.5245%20162.32%2027.8638%20161.965%2027.4276C161.607%2026.9915%20161.044%2026.7734%20160.266%2026.7734C159.241%2026.7734%20158.489%2027.0794%20158.007%2027.6913C157.526%2028.3032%20157.285%2029.3317%20157.285%2030.7704V36.4729H154.844V20.3125H157.285V24.4136C157.285%2025.0711%20157.243%2025.7742%20157.161%2026.5228H157.317C157.649%2025.9695%20158.112%2025.5398%20158.704%2025.2339C159.296%2024.9279%20159.986%2024.7782%20160.774%2024.7782C163.557%2024.7782%20164.95%2026.181%20164.95%2028.9835V36.4729Z'%20fill='url(%23paint18_linear_4548_14216)'/%3e%3cpath%20d='M172.625%2034.709C173.221%2034.709%20173.816%2034.6146%20174.412%2034.4291V36.2681C174.142%2036.3853%20173.794%2036.4829%20173.367%2036.5643C172.941%2036.6424%20172.501%2036.6847%20172.042%2036.6847C169.728%2036.6847%20168.573%2035.4674%20168.573%2033.0295V26.8387H167.004V25.7581L168.687%2024.863L169.517%2022.4316H171.024V24.9867H174.295V26.8355H171.024V32.9839C171.024%2033.5731%20171.17%2034.006%20171.466%2034.2859C171.763%2034.5658%20172.147%2034.7058%20172.625%2034.7058V34.709Z'%20fill='url(%23paint19_linear_4548_14216)'/%3e%3cpath%20d='M184.424%2033.2019C184.424%2034.3249%20184.014%2035.1841%20183.197%2035.783C182.38%2036.3819%20181.208%2036.6814%20179.685%2036.6814C178.161%2036.6814%20176.925%2036.4503%20175.997%2035.9848V33.8757C177.348%2034.4974%20178.604%2034.8098%20179.766%2034.8098C181.27%2034.8098%20182.018%2034.3574%20182.018%2033.4493C182.018%2033.1596%20181.934%2032.9155%20181.768%2032.7235C181.602%2032.5314%20181.328%2032.3296%20180.948%2032.1213C180.567%2031.913%20180.036%2031.6786%20179.359%2031.415C178.038%2030.904%20177.143%2030.3897%20176.674%2029.8787C176.205%2029.3677%20175.974%2028.7004%20175.974%2027.8835C175.974%2026.9005%20176.371%2026.1389%20177.162%2025.592C177.956%2025.0485%20179.034%2024.7783%20180.397%2024.7783C181.761%2024.7783%20183.024%2025.0517%20184.228%2025.5986L183.441%2027.4376C182.201%2026.9265%20181.159%2026.6694%20180.316%2026.6694C179.027%2026.6694%20178.386%2027.0372%20178.386%2027.7695C178.386%2028.1308%20178.555%2028.4335%20178.89%2028.6842C179.226%2028.9348%20179.958%2029.2766%20181.088%2029.7127C182.035%2030.0805%20182.725%2030.4158%20183.154%2030.7217C183.584%2031.0277%20183.903%2031.3792%20184.111%2031.7763C184.32%2032.1734%20184.424%2032.6519%20184.424%2033.2052V33.2019Z'%20fill='url(%23paint20_linear_4548_14216)'/%3e%3cdefs%3e%3cradialGradient%20id='paint0_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0672%2015.5248)%20scale(61.1655%2061.1655)'%3e%3cstop%20offset='0.17'%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint1_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0676%2015.525)%20scale(61.1655%2061.1655)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint2_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8974)%20scale(61.1655%2061.1654)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint3_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8984)%20scale(61.1655%2061.1656)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint4_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8978)%20scale(61.1655%2061.1655)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint5_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8978)%20scale(61.1655%2061.1654)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint6_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0673%2015.5246)%20scale(61.1655%2061.1656)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint7_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0675%20-58.8983)%20scale(61.1655%2061.1656)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3clinearGradient%20id='paint8_linear_4548_14216'%20x1='27.6858'%20y1='26.9883'%20x2='184.655'%20y2='47.7609'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint9_linear_4548_14216'%20x1='27.7019'%20y1='26.8681'%20x2='184.671'%20y2='47.6374'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint10_linear_4548_14216'%20x1='27.8582'%20y1='25.703'%20x2='184.827'%20y2='46.4723'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint11_linear_4548_14216'%20x1='28.0796'%20y1='24.0657'%20x2='185.049'%20y2='44.835'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint12_linear_4548_14216'%20x1='28.6426'%20y1='19.7724'%20x2='185.612'%20y2='40.5417'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint13_linear_4548_14216'%20x1='28.8281'%20y1='18.376'%20x2='185.794'%20y2='39.1453'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint14_linear_4548_14216'%20x1='28.7407'%20y1='19.0206'%20x2='185.71'%20y2='39.7899'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint15_linear_4548_14216'%20x1='28.9621'%20y1='17.367'%20x2='185.928'%20y2='38.1363'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint16_linear_4548_14216'%20x1='29.382'%20y1='14.187'%20x2='186.351'%20y2='34.9563'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint17_linear_4548_14216'%20x1='28.9585'%20y1='17.3836'%20x2='185.928'%20y2='38.1529'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint18_linear_4548_14216'%20x1='29.7136'%20y1='11.6741'%20x2='186.683'%20y2='32.4466'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint19_linear_4548_14216'%20x1='29.8241'%20y1='10.8313'%20x2='186.794'%20y2='31.6039'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint20_linear_4548_14216'%20x1='29.8206'%20y1='10.867'%20x2='186.79'%20y2='31.6364'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function sA(t,e){return uA(t)||lA(t,e)||oA(t,e)||aA()}function aA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oA(t,e){if(t){if(typeof t=="string")return tf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tf(t,e):void 0}}function tf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function lA(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function uA(t){if(Array.isArray(t))return t}var cA=function(e){var n=e.className,r=vt(),i=r.pathname,s=Tt(),a=s.hostAppProps,o=a.onLogout,l=F.useState(!1),u=sA(l,2),c=u[0],f=u[1],p=ha({query:{select:function(C){var S=C.data;return S==null?void 0:S.data}}}),h=p.data,y=p.isLoading,m=kw(o),v=m.mutate,g=m.isPending,A=function(C){if(C.preventDefault(),f(!0),!g)return v()};return d.jsxs("div",{className:le("ystaii-sidemenu"),children:[d.jsx("div",{className:"ystaii-mobile-menu lg:yst-hidden",children:d.jsx(k.SidebarNavigation,{activePath:i,children:d.jsx(k.SidebarNavigation.Mobile,{closeButtonScreenReaderText:"Close sidebar",openButtonScreenReaderText:"Open sidebar",children:d.jsx(ef,{})})})}),d.jsxs("div",{className:le("ystaii-menuHeader","yst-mb-6 yst-mt-10 yst-flex yst-flex-row yst-justify-between yst-px-4","yst-flex-col yst-items-start yst-space-y-12 yst-max-w-2xl yst-mx-auto"),children:[d.jsx(k.Title,{children:d.jsx(jr,{className:le("yst-outline-none"),to:"/",children:d.jsx("img",{src:iA,alt:"Yoast",width:"208",height:"42",className:"yst-block"})})}),d.jsxs("div",{className:le("ystaii-userInfoContainer","yst-flex yst-flex-col"),children:[d.jsx("div",{children:d.jsx("b",{children:y?d.jsx(k.SkeletonLoader,{children:"Display name"}):h==null?void 0:h.displayName})}),d.jsx("div",{children:y?d.jsx(k.SkeletonLoader,{children:"loading-email@address.com"}):h==null?void 0:h.email}),d.jsx("div",{children:d.jsx(k.Link,{variant:"primary",className:"yst-no-underline",onClick:A,children:y?d.jsxs(k.SkeletonLoader,{children:["Sign out ",d.jsx("span",{"aria-hidden":"true",children:"→"})]}):c||g?d.jsx(d.Fragment,{children:"Signing out..."}):d.jsxs(d.Fragment,{children:["Sign out ",d.jsx("span",{"aria-hidden":"true",children:"→"})]})})})]})]}),d.jsx("div",{className:le("ystaii-desktopMenu","yst-hidden","lg:yst-mb-0 lg:yst-block lg:yst-w-full lg:yst-shrink-0"),children:d.jsx(k.SidebarNavigation,{activePath:i,children:d.jsx(ef,{className:n})})})]})},dA=["className","href"];function fA(t,e){if(t==null)return{};var n,r,i=hA(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function hA(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var pA=function(e){var n=e.className,r=e.href,i=r===void 0?"#content":r,s=fA(e,dA);return d.jsx("a",{href:i,className:le("yst-outline-none yst-absolute yst--top-[1000em] yst-left-[10px] yst-z-[100000] yst-block yst-h-12 yst-min-w-[150px] yst-rounded yst-bg-[var(--bg-color-white)] yst-px-[15px] yst-text-center yst-text-[14px] yst-leading-[48px] yst-underline yst-shadow-md focus:yst-top-[10px] focus:yst-text-[var(--text-color-blue)]",n),...s,children:"Skip to main content"})},yA=F.lazy(function(){return Promise.resolve({default:function(){return null}})});function ml(t){var e=t.children,n=t.disable,r=n===void 0?!1:n,i=t.hideNav,s=i===void 0?!1:i,a=t.DebugInfo;return r?e:d.jsxs("div",{className:le("ystaii-layout","yst-block","lg:yst-flex lg:yst-min-h-full lg:yst-overflow-visible"),children:[d.jsx(pA,{children:"Skip to main content"}),!s&&d.jsxs("div",{className:le("ystaii-sidebar","yst-overflow-hidden","lg:yst-flex-grow-1 lg:yst-max-w-[300px] lg:yst-flex-shrink-0 lg:yst-basis-[300px] lg:yst-overflow-visible lg:yst-pl-4"),children:[d.jsx(cA,{}),a&&d.jsx(a,{}),d.jsx(F.Suspense,{fallback:null,children:d.jsx(yA,{})}),d.jsxs("div",{id:"toast-portal",className:"yst-fixed yst-bottom-4 yst-left-4 yst-w-96 yst-space-y-4",children:[d.jsx("div",{id:"hook-toasts"}),d.jsx("div",{id:"tsx-toasts"})]})]}),d.jsx("main",{id:"content",className:le("ystaii-main","yst-mx-4 yst-my-0 yst-flex yst-min-w-0 yst-shrink yst-grow yst-basis-auto yst-px-0 yst-py-6","lg:yst-ml-12 lg:yst-mr-6"),children:d.jsx("div",{className:le("ystaii-main-content","yst-mx-auto yst-flex yst-flex-col yst-gap-8","lg:yst-w-full lg:yst-flex-row"),children:d.jsx("div",{className:"yst-layout-root yst-mx-auto yst-w-full yst-max-w-[1200px] yst-flex-1",children:e})})})]})}function ws(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return _t(A,"_invoke",function(E,C,S){var b,w,x,N=0,D=S||[],M=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(O,B){return b=O,w=0,x=t,T.n=B,a}};function z(I,O){for(w=I,x=O,e=0;!M&&N&&!B&&e<D.length;e++){var B,R=D[e],Y=T.p,Q=R[2];I>3?(B=Q===O)&&(x=R[(w=R[4])?5:(w=3,3)],R[4]=R[5]=t):R[0]<=Y&&((B=I<2&&Y<R[1])?(w=0,T.v=O,T.n=R[1]):Y<Q&&(B=I<3||R[0]>O||O>Q)&&(R[4]=I,R[5]=O,T.n=Q,w=0))}if(B||I>1)return a;throw M=!0,O}return function(I,O,B){if(N>1)throw TypeError("Generator is already running");for(M&&O===1&&z(O,B),w=O,x=B;(e=w<2?t:x)||!M;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(I="next"),e=b[I]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+I+"' method"),w=1);b=t}else if((e=(M=T.n<0)?x:E.call(C,T))!==a)break}catch(R){b=t,w=1,x=R}finally{N=1}}return{value:e,done:M}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(_t(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,_t(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,_t(f,"constructor",u),_t(u,"constructor",l),l.displayName="GeneratorFunction",_t(u,i,"GeneratorFunction"),_t(f),_t(f,i,"Generator"),_t(f,r,function(){return this}),_t(f,"toString",function(){return"[object Generator]"}),(ws=function(){return{w:s,m:p}})()}function _t(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}_t=function(a,o,l,u){function c(f,p){_t(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},_t(t,e,n,r)}function nf(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function rf(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){nf(s,r,i,a,o,"next",l)}function o(l){nf(s,r,i,a,o,"throw",l)}a(void 0)})}}function mA(t,e){return xA(t)||bA(t,e)||vA(t,e)||gA()}function gA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vA(t,e){if(t){if(typeof t=="string")return sf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sf(t,e):void 0}}function sf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function bA(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function xA(t){if(Array.isArray(t))return t}var wA=function(e){var n,r=e.className,i=Kt(),s=ft(),a=F.useState(!1),o=mA(a,2),l=o[0],u=o[1],c=li({query:{select:function(S){var b=S.data;return b==null?void 0:b.brands}}}),f=c.data,p=n0({mutation:{onSettled:function(){i.invalidateQueries({queryKey:[Pn()]})}}}),h=p.mutateAsync,y=p.isPending,m=F.useMemo(function(){var C;return(C=f==null?void 0:f.filter(function(S){var b;return((b=S.settings)===null||b===void 0?void 0:b.showAutomaticAnalysisDisabledNotification)===!0}))!==null&&C!==void 0?C:[]},[f]);F.useEffect(function(){u(m.length!==0)},[m]);var v=function(){var C=rf(ws().m(function S(){var b;return ws().w(function(w){for(;;)switch(w.n){case 0:return b=m.map(function(x){return h({brandId:String(x.id),data:{showAutomaticAnalysisDisabledNotification:!1}})}),w.n=1,Promise.all(b);case 1:u(!1);case 2:return w.a(2)}},S)}));return function(){return C.apply(this,arguments)}}(),g=function(){var C=rf(ws().m(function S(){return ws().w(function(b){for(;;)switch(b.n){case 0:return b.n=1,v();case 1:s("/settings");case 2:return b.a(2)}},S)}));return function(){return C.apply(this,arguments)}}(),A=m.length===1?"One brand has been deactivated":"Multiple brands have been deactivated",E=m.length===1?d.jsxs(d.Fragment,{children:[d.jsx("p",{children:"You recently lost a subscription. Because of this, we could not analyze all your active brands."}),d.jsxs("p",{children:["The brand ",d.jsx("b",{children:m==null||(n=m[0])===null||n===void 0?void 0:n.name})," was deactivated, since it was the most recently analyzed."]}),d.jsxs("p",{children:["If you prefer, you can go to ",d.jsx("b",{children:"Settings"})," and deactivate a different brand instead."]})]}):d.jsxs(d.Fragment,{children:[d.jsx("p",{children:"You recently lost a subscription. Because of this, we could not analyze all your active brands."}),d.jsx("p",{children:"The following brands were deactivated, since they were the most recently analyzed:"}),d.jsx("ul",{children:m.map(function(C){return d.jsx("li",{children:d.jsx("b",{children:C.name})},C.id)})}),d.jsxs("p",{children:["If you prefer, you can go to ",d.jsx("b",{children:"Settings"})," and deactivate different brand(s) instead."]})]});return l?d.jsx(k.Modal,{isOpen:l,onClose:g,position:"center",as:"div",className:r,children:d.jsxs(k.Modal.Panel,{children:[d.jsx("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(k.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(k.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:A})}),d.jsx(k.Modal.Container.Content,{className:"yst-mb-4 yst-space-y-3",children:E})]})}),d.jsxs(k.Modal.Container.Footer,{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-2",children:[d.jsx(k.Button,{variant:"secondary",onClick:g,children:"Close"}),d.jsx(k.Button,{variant:"primary",onClick:g,isLoading:y,disabled:y,children:"Go to settings"})]})]})}):null};const AA=t=>L.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8948 6.33943C17.1675 6.33943 17.4064 6.52012 17.4816 6.78187L18.1436 9.09795C18.4332 10.112 19.226 10.9049 20.2401 11.1945L22.5562 11.8565C22.8804 11.9493 23.0679 12.2871 22.975 12.6113C22.9167 12.814 22.7588 12.9719 22.5562 13.0301L20.2401 13.6921C19.226 13.9817 18.4332 14.7746 18.1436 15.7886L17.4816 18.1047C17.3887 18.4289 17.051 18.6164 16.7267 18.5235C16.5241 18.4652 16.3662 18.3073 16.3079 18.1047L15.646 15.7886C15.3563 14.7746 14.5635 13.9817 13.5494 13.6921L11.2333 13.0301C10.9091 12.9372 10.7217 12.5995 10.8145 12.2753C10.8728 12.0726 11.0307 11.9147 11.2333 11.8565L13.5494 11.1945C14.5635 10.9049 15.3563 10.112 15.646 9.09795L16.3079 6.78187C16.3831 6.52012 16.622 6.33943 16.8948 6.33943Z",fill:"url(#paint0_linear_1940_1302)"}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9302 1.57979C11.1151 1.57979 11.2764 1.7056 11.3211 1.8846L11.4596 2.44103C11.5863 2.94596 11.9806 3.33943 12.4847 3.46608L13.0411 3.60456C13.2572 3.65775 13.3881 3.87644 13.3349 4.09175C13.2986 4.23698 13.1855 4.35012 13.0411 4.38559L12.4847 4.52406C11.9797 4.65071 11.5863 5.04503 11.4596 5.54911L11.3211 6.10554C11.2679 6.3217 11.0492 6.45257 10.8339 6.39938C10.6887 6.36307 10.5756 6.24993 10.5401 6.10554L10.4016 5.54911C10.2758 5.04418 9.8815 4.64987 9.37658 4.52406L8.82015 4.38559C8.60399 4.33239 8.47312 4.1137 8.52631 3.89839C8.56262 3.75316 8.67576 3.64002 8.82015 3.60456L9.37658 3.46608C9.8815 3.34027 10.2758 2.94596 10.4016 2.44103L10.5401 1.8846C10.584 1.7056 10.7453 1.57979 10.9302 1.57979Z",fill:"url(#paint1_linear_1940_1302)"}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.36896 11.3034C6.4669 11.3034 6.55472 11.3659 6.58511 11.4596L6.70501 11.8193C6.75061 11.9552 6.857 12.0625 6.99294 12.1072L7.35263 12.2271C7.47169 12.2668 7.5367 12.3968 7.49617 12.5159C7.47338 12.5835 7.42018 12.6366 7.35263 12.6594L6.99294 12.7793C6.857 12.8249 6.74976 12.9313 6.70501 13.0673L6.58511 13.427C6.54543 13.546 6.4154 13.611 6.29634 13.5705C6.22879 13.5477 6.1756 13.4945 6.1528 13.427L6.0329 13.0673C5.98731 12.9313 5.88092 12.8241 5.74498 12.7793L5.38528 12.6594C5.26623 12.6198 5.20121 12.4897 5.24174 12.3707C5.26454 12.3031 5.31773 12.2499 5.38528 12.2271L5.74498 12.1072C5.88092 12.0616 5.98815 11.9552 6.0329 11.8193L6.1528 11.4596C6.18404 11.3667 6.27101 11.3034 6.36896 11.3034Z",fill:"url(#paint2_linear_1940_1302)"}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.02759 15.6679C4.12553 15.6679 4.21335 15.7304 4.24374 15.8241L4.36364 16.1838C4.40924 16.3197 4.51563 16.427 4.65157 16.4717L5.01126 16.5916C5.13032 16.6313 5.19533 16.7613 5.1548 16.8804C5.13201 16.9479 5.07881 17.0011 5.01126 17.0239L4.65157 17.1438C4.51563 17.1894 4.40839 17.2958 4.36364 17.4318L4.24374 17.7915C4.20406 17.9105 4.07403 17.9755 3.95497 17.935C3.88742 17.9122 3.83423 17.859 3.81143 17.7915L3.69153 17.4318C3.64594 17.2958 3.53955 17.1886 3.40361 17.1438L3.04391 17.0239C2.92486 16.9842 2.85984 16.8542 2.90037 16.7352C2.92317 16.6676 2.97636 16.6144 3.04391 16.5916L3.40361 16.4717C3.53955 16.4261 3.64678 16.3197 3.69153 16.1838L3.81143 15.8241C3.84267 15.7312 3.92964 15.6679 4.02759 15.6679Z",fill:"url(#paint3_linear_1940_1302)"}),L.createElement("path",{d:"M3.77599 15.1216C3.46273 14.2874 3.29133 13.3856 3.29133 12.4433C3.29133 9.14607 5.39124 6.33014 8.3237 5.26287L7.93951 4.23276C4.58742 5.4537 2.19366 8.66901 2.19366 12.4433C2.19366 13.5139 2.38702 14.5398 2.73912 15.488L3.77599 15.1216Z",fill:"url(#paint4_linear_1940_1302)"}),L.createElement("path",{d:"M15.6899 18.4137C14.3837 19.4574 12.7287 20.0822 10.9302 20.0822C8.72816 20.0822 6.74055 19.1449 5.34482 17.6487L4.53424 18.3935C6.12923 20.1075 8.40393 21.179 10.9302 21.179C12.9846 21.179 14.8725 20.4697 16.3645 19.2834L15.6899 18.4129V18.4137Z",fill:"url(#paint5_linear_1940_1302)"}),L.createElement("path",{d:"M10.9302 8.35407C12.0203 8.35407 13.0115 8.78385 13.7453 9.48129L14.4807 8.66311C13.5528 7.79089 12.3048 7.25641 10.931 7.25641C8.65549 7.25641 6.7236 8.72221 6.02448 10.7613L7.05628 11.1396C7.60173 9.52266 9.13171 8.35407 10.931 8.35407H10.9302Z",fill:"url(#paint6_linear_1940_1302)"}),L.createElement("path",{d:"M13.7402 15.4104C13.0073 16.1053 12.0177 16.5325 10.931 16.5325C9.1241 16.5325 7.58906 15.3546 7.04951 13.7259L6.00842 14.0771C6.6932 16.1407 8.63775 17.6302 10.931 17.6302C12.3065 17.6302 13.5561 17.0932 14.4849 16.2193L13.7402 15.4104Z",fill:"url(#paint7_linear_1940_1302)"}),L.createElement("defs",null,L.createElement("linearGradient",{id:"paint0_linear_1940_1302",x1:5.35747,y1:4.15001,x2:20.3929,y2:14.9578,gradientUnits:"userSpaceOnUse"},L.createElement("stop",{stopColor:"#A61E69"}),L.createElement("stop",{offset:1,stopColor:"#6366F1"})),L.createElement("linearGradient",{id:"paint1_linear_1940_1302",x1:7.32986,y1:1.40754,x2:22.3653,y2:12.2153,gradientUnits:"userSpaceOnUse"},L.createElement("stop",{stopColor:"#A61E69"}),L.createElement("stop",{offset:1,stopColor:"#6366F1"})),L.createElement("linearGradient",{id:"paint2_linear_1940_1302",x1:1.77228,y1:9.13847,x2:16.8077,y2:19.9462,gradientUnits:"userSpaceOnUse"},L.createElement("stop",{stopColor:"#A61E69"}),L.createElement("stop",{offset:1,stopColor:"#6366F1"})),L.createElement("linearGradient",{id:"paint3_linear_1940_1302",x1:-1.09428,y1:13.1255,x2:13.9412,y2:23.9333,gradientUnits:"userSpaceOnUse"},L.createElement("stop",{stopColor:"#A61E69"}),L.createElement("stop",{offset:1,stopColor:"#6366F1"})),L.createElement("linearGradient",{id:"paint4_linear_1940_1302",x1:2.64455,y1:7.92344,x2:17.68,y2:18.7312,gradientUnits:"userSpaceOnUse"},L.createElement("stop",{stopColor:"#A61E69"}),L.createElement("stop",{offset:1,stopColor:"#6366F1"})),L.createElement("linearGradient",{id:"paint5_linear_1940_1302",x1:.172293,y1:11.3642,x2:15.2078,y2:22.172,gradientUnits:"userSpaceOnUse"},L.createElement("stop",{stopColor:"#A61E69"}),L.createElement("stop",{offset:1,stopColor:"#6366F1"})),L.createElement("linearGradient",{id:"paint6_linear_1940_1302",x1:4.40247,y1:5.47904,x2:19.4379,y2:16.2868,gradientUnits:"userSpaceOnUse"},L.createElement("stop",{stopColor:"#A61E69"}),L.createElement("stop",{offset:1,stopColor:"#6366F1"})),L.createElement("linearGradient",{id:"paint7_linear_1940_1302",x1:1.58821,y1:9.39517,x2:16.6237,y2:20.2029,gradientUnits:"userSpaceOnUse"},L.createElement("stop",{stopColor:"#A61E69"}),L.createElement("stop",{offset:1,stopColor:"#6366F1"})))),SA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA2AAAAHoCAYAAAAv7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L6QLVipGQSCNEiKGqoeIXmGcKNxx4YJTpFLOOu0Ele6JceJzPZoCVje0aDoyygxvH9QloPqqZRCxzumcdF8NkK/h7UNSDfFZk1kBkRBCCGlSEF0pN68ozDmjRTXXrvd7qoRGGSepnLERsK079OhXRqqFa4RVD9IPhzZsk0rhZ04IIYQQQkjtGZPwRrSro+pICuYwxbo7hVRHtYU0WH6eEEIIIYSQ2jMmc8DwMI90Nsz/yqD6YSrjqoBoBdKAeV8ogc4qfCOnmnL0LD9PCCGEEEJI7RlTu4FMYYN8DfftkHw25zoHqW+d03qUhJHaUKhmGH5ldJafJ4QQQgghZHQYlwoLSEdEUQ0vyeqY2k35qjFGOfrQ57P8PCGEEEIIIaPCuJW4gxC0tkVs+xB1YdW90SFSQUohy88TQgghhBAyOoyr7UQd63tFud7XqNFWQUphKwtwEEIIIYQQMiqMq4AhKmNNjeOD/+gRNgKGOXiMQhJCCCGEEDI6jGulBchXx5RuVRkx2tXOB/9RxCisUa4aIsvPE0IIIYQQMnqMe6k7FIjARkafMOXoWX6eEEIIIYSQ0YMhpwkEFsQOAhFIlp8nhBBCCCFk9KCATSCQhtjeE/c/NmWSEEIIIYQQQkaPFk1HyIQim0ipeXdIRzSWA2jv7VIFOAghhBBCCCGjBwWMEEIIIYQQQsYIpiASQgghhBBCyBhBASOEEEIIIYSQMYICRgghhBBCCCFjBAWMEEIIIYQQQsYIChghhBBCCCGEjBEUMEIIIYQQQggZIyhghBBCCCGEEDJGUMAIIYQQQgghZIyggBFCCCGEEELIGEEBI4QQQgghhJAxggJGCCGEEEIIIWMEBYwQQgghhBBCxggKGCGEEEIIIYSMERQwQgghhBBCCBkjKGCEEEIIIYQQMkZQwAghhBBCCCFkjKCAEUIIIYQQQsgYQQEjhBBCCCGEkDGCAkYIIYQQQgghY8T/B+cQ4pXsw1icAAAAAElFTkSuQmCC";var Xi=function(e){var n=e.className,r=n===void 0?"":n,i=e.size,s=i===void 0?6:i;return d.jsx("hr",{className:le("yst-mb-".concat(s," yst-mt-").concat(s),r)})},l0=function(e){var n=e.isOpen,r=e.variant,i=r===void 0?"purchase":r,s=e.onClose,a=Tt(),o=a.hostAppProps.onAddSubscription,l=function(){o==null||o()};return d.jsx(k.Modal,{isOpen:n,onClose:s||function(){},position:"center",as:"div",className:"[&_.yst-modal\\_\\_close-button]:yst-bg-transparent",children:d.jsxs(k.Modal.Panel,{className:le("yst-relative yst-max-w-[512px] yst-rounded-3xl yst-bg-gradient-to-b yst-from-[rgba(166,30,105,0.25)] yst-via-white yst-via-40% yst-to-white yst-px-10",{"yst-pt-10":!!s,"yst-py-10":!s}),hasCloseButton:!!s,children:[d.jsx("img",{src:SA,alt:"Upsell image",className:"yst-mb-6 yst-rounded-lg yst-shadow-lg"}),d.jsxs(k.Modal.Container.Header,{className:"yst-mb-4 yst-space-y-4 yst-text-center",children:[d.jsxs("p",{className:"yst-flex yst-items-center yst-justify-center yst-gap-1 yst-text-center yst-text-xs yst-uppercase yst-text-slate-500",children:[d.jsx(AA,{className:"yst-h-6 yst-w-6"})," Available now - Yoast AI Brand Insights"]}),d.jsx(k.Modal.Title,{as:"h2",className:"yst-pr-8 yst-text-lg yst-font-medium yst-text-slate-900",children:"How does your brand show up in AI responses?"}),i==="trial"?d.jsxs("p",{className:"yst-text-tiny yst-font-normal yst-text-slate-600",children:["Track visibility, control perception, and stay ahead - tools to manage your AI presence are now live."," ",d.jsx("strong",{children:"Try it for free, on us!"})]}):d.jsx("p",{className:"yst-text-tiny yst-font-normal yst-text-slate-600",children:"Track visibility, control perception, and stay ahead - tools to manage your AI presence are now live!"})]}),i==="trial"&&d.jsxs(d.Fragment,{children:[d.jsx(Xi,{size:4}),d.jsx(k.Modal.Container.Content,{className:"yst-space-y-4",children:d.jsxs("p",{className:"yst-text-sm yst-italic yst-text-slate-600",children:["By continuing to use this product, you agree to our"," ",d.jsx(k.Link,{href:"https://yoast.com/terms-and-conditions/",target:"_blank",rel:"noopener noreferrer",variant:"default",children:"terms and conditions"})," ","and"," ",d.jsx(k.Link,{href:"https://yoast.com/privacy-policy/",target:"_blank",rel:"noopener noreferrer",variant:"default",children:"privacy notice"}),"."]})})]}),d.jsxs(k.Modal.Container.Footer,{className:"yst-mt-6 yst-flex yst-flex-col yst-gap-2",children:[i==="trial"?d.jsxs(k.Button,{variant:"primary",onClick:l,className:"yst-flex yst-w-full yst-items-center yst-gap-1",children:[d.jsx(o0,{})," Discover Brand Insights now"]}):d.jsxs(k.Button,{variant:"upsell",onClick:l,className:"yst-flex yst-w-full yst-items-center yst-gap-1",children:[d.jsx(Gw,{})," Unlock Yoast AI Brand Insights"]}),!!s&&d.jsx(k.Button,{onClick:s,variant:"tertiary",className:"yst-text-center",children:"Close"})]})]})})},Ji=function(){return d.jsx("div",{className:"yst-flex yst-min-h-screen yst-items-center yst-justify-center",children:d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-3 yst-text-center",children:[d.jsx(k.Spinner,{variant:"primary"}),d.jsx("span",{className:"yst-italic",children:"Just a moment while we get things ready for you..."})]})})};function CA(t,e){return OA(t)||EA(t,e)||jA(t,e)||kA()}function kA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
25
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jA(t,e){if(t){if(typeof t=="string")return af(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?af(t,e):void 0}}function af(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function EA(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function OA(t){if(Array.isArray(t))return t}var PA={HOME:"/"},TA=function(e){var n,r,i,s=e.hideNav,a=s===void 0?!1:s,o=e.disableLayout,l=o===void 0?!1:o,u=e.DebugInfo,c=vt(),f=ft(),p=F.useState(!0),h=CA(p,2),y=h[0],m=h[1],v={disable:l,hideNav:a},g=Tt(),A=g.brandId,E=pa(),C=E.setBrandId,S=li({query:{refetchOnReconnect:!1,refetchOnWindowFocus:!1,select:function(Y){var Q;return Y==null||(Q=Y.data)===null||Q===void 0?void 0:Q.brands}}}),b=S.data,w=S.isLoading,x=S.error,N=S.refetch,D=ha(),M=D.data,T=F.useRef(!1),z=F.useMemo(function(){return b==null?void 0:b.find(function(R){return R.id===A})},[b,A]);F.useEffect(function(){var R;if(!(b===void 0||A)){var Y=(R=b[0])===null||R===void 0?void 0:R.id;Y&&C(Y)}},[b,A,C,f,c.pathname]),F.useEffect(function(){!A||T.current||(T.current=!0)},[z,A,f,c.pathname,b]);var I=F.useCallback(function(){N()},[N]);if(c.pathname!==PA.HOME&&w)return d.jsx(ml,{...v,children:d.jsx(Ji,{})});if(x)return d.jsx(ml,{...v,children:d.jsx("div",{className:"yst-flex yst-min-h-screen yst-items-center yst-justify-center",children:d.jsxs("div",{className:"yst-space-y-4 yst-text-center",children:[d.jsx("div",{className:"yst-mb-4 yst-text-6xl yst-text-red-600",children:"⚠️"}),d.jsx("h2",{className:"yst-text-xl yst-font-semibold yst-text-slate-900",children:"Something went wrong"}),d.jsx("p",{className:"yst-text-slate-600",children:"We couldn't load your Brand Analysis. Please try again shortly."}),d.jsx(k.Button,{variant:"primary",onClick:I,children:"Retry"})]})})});var O=(M==null||(n=M.data)===null||n===void 0?void 0:n.activeSubscriptions)===0,B=(M==null||(r=M.data)===null||r===void 0?void 0:r.brands)&&(M==null||(i=M.data)===null||i===void 0||(i=i.brands)===null||i===void 0?void 0:i.length)>0;return d.jsxs(ml,{DebugInfo:u,...v,children:[d.jsx(zi,{}),d.jsx(wA,{}),O&&d.jsx(l0,{isOpen:y,onClose:B?function(){m(!1)}:void 0})]})},Dn=function(e){var n=e.title,r=vt();return F.useEffect(function(){document.title=n},[r,n]),null},IA=function(){var e=Mo(),n=e.brandId,r=e.analysisId,i=Ec(n,{query:{enabled:!!n,select:function(c){var f=c.data;return(f==null?void 0:f.analyses)||[]}}}),s=i.data,a=i.isLoading,o=i.error;if(a)return d.jsx(Ji,{});if(o)return console.error("Error fetching analyses for validation:",o),d.jsx(wi,{to:"/brands/".concat(n),replace:!0});if(!r||r.trim()==="")return d.jsx(wi,{to:"/brands/".concat(n),replace:!0});if(r==="latest")return d.jsx(zi,{});var l=s==null?void 0:s.some(function(u){return u.id===r});return l?d.jsx(zi,{}):d.jsx(wi,{to:"/brands/".concat(n),replace:!0})},of=function(){var e=Mo(),n=e.brandId,r=li({query:{select:function(f){var p=f.data;return p}}}),i=r.data,s=r.isLoading,a=r.error,o=r.isFetched,l=(i==null?void 0:i.brands)||[];if(s||!o)return d.jsx(Ji,{});if(a)return d.jsx(wi,{to:"/",replace:!0});if(!n||n.trim()==="")return d.jsx(wi,{to:"/",replace:!0});var u=l.length>0&&l.some(function(c){return String(c.id)===n});return o&&!u?d.jsx(wi,{to:"/",replace:!0}):d.jsx(zi,{})};function MA(t){return RA(t)||NA(t)||u0(t)||LA()}function LA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
26
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NA(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function RA(t){if(Array.isArray(t))return Ou(t)}function _A(t,e){return FA(t)||BA(t,e)||u0(t,e)||DA()}function DA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
27
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u0(t,e){if(t){if(typeof t=="string")return Ou(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ou(t,e):void 0}}function Ou(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function BA(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function FA(t){if(Array.isArray(t))return t}var Pc=F.createContext(void 0),zA=function(e){var n=e.children,r=F.useState([]),i=_A(r,2),s=i[0],a=i[1],o=F.useCallback(function(u){a(function(c){return c.filter(function(f){return f.id!==u})})},[]),l=F.useCallback(function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a(function(f){var p,h,y=typeof u=="string"?f.some(function(A){return typeof A.message!="string"?!1:A.message===u&&A.variant===(c.variant||"info")}):!1;if(y)return f;var m="toast-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,11)),v=(p=c.duration)!==null&&p!==void 0?p:5e3,g={id:m,message:u,variant:c.variant||"info",duration:v,dismissible:(h=c.dismissible)!==null&&h!==void 0?h:!0};return v>0&&setTimeout(function(){o(m)},v),[].concat(MA(f),[g])})},[o]);return d.jsx(Pc.Provider,{value:{toasts:s,addToast:l,removeToast:o},children:n})},UA=function(){var e=F.useContext(Pc);if(!e)return null;var n=e.toasts,r=e.removeToast;if(typeof window=="undefined")return null;var i=document.getElementById("hook-toasts");return i?em.createPortal(d.jsx("div",{className:le("yst-w-full yst-space-y-4"),"aria-live":"polite","aria-atomic":"true",children:n.map(function(s){var a;return d.jsxs(k.Toast,{className:le("yst-w-full",s.className),id:s.id,variant:s.variant||"info",autoDismiss:s.dismissible?0:(a=s.duration)!==null&&a!==void 0?a:1500,onDismiss:function(){return r(s.id)},isVisible:!0,setIsVisible:function(){},children:[d.jsxs("div",{className:"yst-flex yst-gap-3",children:[d.jsx("div",{className:"yst-flex-shrink-0",children:d.jsx(k.ValidationIcon,{className:"yst-h-5 yst-w-5",variant:s.variant})}),d.jsxs("div",{className:"yst-flex-1",children:[typeof s.title=="string"?d.jsx(k.Title,{title:s.title}):s.title,typeof s.message=="string"?d.jsx("p",{className:"yst-mb-0",children:s.message}):s.message]}),s.dismissible&&d.jsx("div",{children:d.jsx(k.Toast.Close,{className:"yst-p-0 yst-text-slate-400",dismissScreenReaderLabel:"Dismiss"})})]}),s.actions&&d.jsx("div",{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-3",children:d.jsx(s.actions,{dismiss:function(){return r(s.id)}})})]},s.id)})}),i):null},Tc=function(){var e=F.useContext(Pc);if(!e)throw new Error("useToast must be used within a ToastProvider");var n=e.addToast;return F.useCallback(function(r,i){n(r,i)},[n])};function HA(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{fillRule:"evenodd",d:"M14.707 12.293a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 111.414-1.414L9 14.586V3a1 1 0 012 0v11.586l2.293-2.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}const c0=L.forwardRef(HA);function qA(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}const WA=L.forwardRef(qA);function GA(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{fillRule:"evenodd",d:"M5.293 7.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 11-2 0V5.414L6.707 7.707a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}const d0=L.forwardRef(GA);function QA(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}const f0=L.forwardRef(QA);function YA(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))}const VA=L.forwardRef(YA);function KA(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"}))}const XA=L.forwardRef(KA);function JA(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{d:"M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"}),L.createElement("path",{d:"M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"}))}const h0=L.forwardRef(JA);function ZA(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))}const $A=L.forwardRef(ZA);function eS(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{fillRule:"evenodd",d:"M2 5a2 2 0 012-2h12a2 2 0 012 2v2a2 2 0 01-2 2H4a2 2 0 01-2-2V5zm14 1a1 1 0 11-2 0 1 1 0 012 0zM2 13a2 2 0 012-2h12a2 2 0 012 2v2a2 2 0 01-2 2H4a2 2 0 01-2-2v-2zm14 1a1 1 0 11-2 0 1 1 0 012 0z",clipRule:"evenodd"}))}const tS=L.forwardRef(eS);function nS(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"}))}const rS=L.forwardRef(nS);function iS(t,e){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),L.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))}const Ic=L.forwardRef(iS);var un={openai:"openai",perplexity:"perplexity",anthropic:"anthropic",gemini:"gemini"},sS={updating:"updating"},An={pending:"pending",processing:"processing",completed:"completed",failed:"failed",cancelled:"cancelled"};const Pu=t=>L.createElement("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},L.createElement("path",{d:"M3.652 15.0488C2.3816 15.0488 1.348 14.0152 1.348 12.7448V5.22476C1.348 3.95436 2.3816 2.92075 3.652 2.92075H9.5912L9.9304 2.07275H3.652C1.9144 2.07275 0.5 3.48716 0.5 5.22476V12.7448C0.5 14.4824 1.9144 15.8968 3.652 15.8968H3.6776V15.0488H3.652Z",fill:"#A61E69"}),L.createElement("path",{d:"M16.5 5.22468C16.5 3.74948 15.4824 2.51428 14.1096 2.17188L13.812 2.97188C14.8584 3.18628 15.6488 4.11748 15.6488 5.22788V15.0519H9.16236C9.00236 15.3527 8.83276 15.6375 8.65356 15.8999H16.4968V5.22468H16.5Z",fill:"#A61E69"}),L.createElement("path",{d:"M11.5815 0.140137L8.03267 9.99614L6.28867 4.53374H4.15747L6.82307 11.3785C7.06947 12.0121 7.06947 12.7129 6.82307 13.3497C6.56387 14.0121 6.10627 14.8025 4.82947 15.0361L4.77187 15.0457V16.8633H4.84547C5.91107 16.8185 6.73667 16.4665 7.44387 15.7561C8.16387 15.0329 8.78147 13.9065 9.38947 12.2137L13.8919 0.140137H11.5815Z",fill:"#A61E69"}));var lf="production",uf="development",cf="staging",df={development:["localhost","my.yoast.test"],staging:["staging","pages.dev"]};function aS(){var t=Tt(),e=t.hostAppProps,n=e==null?void 0:e.env,r=F.useMemo(function(){return typeof window!="undefined"?window.location.hostname:""},[]);return F.useMemo(function(){var i=function(u){return u.some(function(c){return r.includes(c)})},s=n?n===uf:i(df.development),a=n?n===cf:i(df.staging),o=n?n===lf:!s&&!a;return{env:n||(s?uf:a?cf:lf),isProduction:o,isDevelopment:s,isStaging:a}},[n,r])}var ff=function(e){return typeof e=="string"&&e!=="latest"&&e.trim().length>0};function Us(t){"@babel/helpers - typeof";return Us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Us(t)}var oS=["children","as","startColor","endColor","angle","disabled","style","className"];function hf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function pf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hf(Object(n),!0).forEach(function(r){lS(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function lS(t,e,n){return(e=uS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uS(t){var e=cS(t,"string");return Us(e)=="symbol"?e:e+""}function cS(t,e){if(Us(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Us(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function dS(t,e){if(t==null)return{};var n,r,i=fS(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function fS(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var Hs=function(e){var n=e.children,r=e.as,i=r===void 0?"span":r,s=e.startColor,a=s===void 0?"#A61E69":s,o=e.endColor,l=o===void 0?"#6366F1":o,u=e.angle,c=u===void 0?102:u,f=e.disabled,p=f===void 0?!1:f,h=e.style,y=h===void 0?{}:h,m=e.className,v=m===void 0?"":m,g=dS(e,oS),A=pf(p?{display:"inline-block"}:{background:"linear-gradient(".concat(c,"deg, ").concat(a,", ").concat(l,")"),WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"},y);return d.jsx(i,{className:v,style:A,...g,children:n})};function Mc(t){var e=t.children,n=t.nestedInPaperContent,r=n===void 0?!1:n,i=t.className;return d.jsx("div",{className:le("yst-mt-8 yst-flex yst-items-center yst-justify-end yst-gap-6 yst-rounded-bl-lg yst-rounded-br-lg yst-border-t yst-border-slate-200 yst-bg-slate-50 yst-px-8 yst-py-6",{"yst-mb-[-2rem] yst-ml-[-2rem] yst-mr-[-2rem]":r},i),children:e})}var hS=function(){var e=ft();return d.jsx("form",{onSubmit:function(){return e("/setup")},children:d.jsxs(k.Paper,{className:"yst-mx-auto yst-flex yst-max-w-2xl",children:[d.jsx(k.Paper.Header,{children:d.jsxs(k.Title,{size:"1",children:["Welcome to ",d.jsx(Hs,{children:"Yoast AI Brand Insights"}),"!"]})}),d.jsxs(k.Paper.Content,{className:"yst-space-y-8",children:[d.jsxs("div",{className:"yst-space-y-4 *:yst-text-tiny",children:[d.jsx("p",{children:"See how your brand is represented in AI answers."}),d.jsxs("p",{children:[d.jsx("b",{className:"yst-font-medium yst-text-slate-800",children:"Yoast AI Brand Insights"})," ","shows how often your brand appears, how it's described, and how it compares to competitors in tools like ChatGPT and Perplexity."]}),d.jsx("p",{children:"It only takes three simple steps to get your brand insights:"})]}),d.jsx("div",{className:"yst-flex yst-flex-col yst-items-stretch yst-justify-stretch yst-gap-4 yst-pb-8",children:[{title:"1. ADD BRAND INFO",description:"Tell us about your brand and where it's active so we can customize your analysis."},{title:"2. REVIEW QUERIES",description:"Edit or approve the queries generated from your input."},{title:"3. RUN ANALYSIS",description:"Run your queries through relevant AI platforms to see how your brand shows up."}].map(function(n,r,i){return d.jsxs("div",{className:"yst-relative yst-flex yst-flex-col yst-items-stretch",children:[d.jsxs("div",{className:"yst-flex yst-flex-row yst-items-center yst-justify-stretch yst-gap-6",children:[d.jsx(k.Stepper.Step,{isActive:!0,isComplete:!1,children:d.jsx("span",{className:"yst-hidden",children:r+1})}),d.jsxs("div",{className:"yst-flex yst-flex-1 yst-flex-col yst-gap-2 yst-rounded yst-border yst-border-slate-200 yst-p-6",children:[d.jsx(k.Title,{size:"3",className:"yst-font-semibold yst-uppercase",children:n.title}),d.jsx("p",{className:"yst-my-0 yst-py-0",children:n.description})]})]}),r<i.length-1&&d.jsx("div",{className:"yst-absolute yst-left-[-2px] yst-top-1/2 yst-my-0 yst-ml-[13px] yst-h-full yst-border-l-2 yst-border-l-primary-600"})]},n.title)})})]}),d.jsx(Mc,{className:"yst-justify-end",children:d.jsxs(k.Button,{variant:"primary",onClick:function(){return e("/setup")},children:["Start your first analysis ",d.jsx(WA,{})]})})]})})};function yo(t){return typeof t!="number"?{}:{"yst-text-green-600":t>0,"yst-text-red-600":t<0,"yst-text-gray-400":t===0}}function ya(t){var e=t.score,n=t.total,r=t.suffix,i=t.isLoading,s=i===void 0?!1:i,a=t.className,o=t.hideTotal,l=o===void 0?!1:o,u=t.delta,c=t.deltaFormat,f=c===void 0?"absolute":c,p=t.deltaSuffix,h=t.scoreFormat,y=h===void 0?"absolute":h;return d.jsxs("div",{className:le(a,"yst-font-medium"),children:[d.jsxs("span",{className:"yst-mr-1 yst-text-xl yst-font-bold yst-text-slate-900",children:[s||e===void 0||e===null?"—":e,!s&&e!==void 0&&e!==null&&y==="percentage"?"%":""]}),!l&&n&&n!==0&&n!=="0"&&d.jsxs("span",{className:"yst-text-slate-500",children:["/ ",s?"—":n]}),r&&d.jsxs("span",{className:"yst-text-slate-500",children:[" ",r]}),typeof u=="number"&&!isNaN(u)&&d.jsxs("span",{className:le("yst-ml-2",yo(u)),children:[u>-1&&"+",u,f==="percentage"&&"%"," ",p]})]})}var pS=["Icon","className","children","position","id"];function yS(t,e){return bS(t)||vS(t,e)||gS(t,e)||mS()}function mS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
28
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gS(t,e){if(t){if(typeof t=="string")return yf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yf(t,e):void 0}}function yf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function vS(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function bS(t){if(Array.isArray(t))return t}function xS(t,e){if(t==null)return{};var n,r,i=wS(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function wS(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Lc(t){var e=t.Icon,n=e===void 0?qw:e,r=t.className,i=r===void 0?"":r,s=t.children,a=t.position,o=a===void 0?"left":a,l=t.id,u=l===void 0?"":l,c=xS(t,pS),f=F.useState(!1),p=yS(f,2),h=p[0],y=p[1];return s?d.jsxs("div",{className:i||"yst-relative",onMouseEnter:function(){return y(!0)},onMouseLeave:function(){return y(!1)},"aria-describedby":u?"tooltip-button-id":"tooltip-button",...c,children:[d.jsx(n,{className:"yst-relative yst-h-6 yst-w-6 yst-text-slate-400"}),h&&d.jsx(k.Tooltip,{position:o,id:u||"tooltip-button",children:s})]}):null}var ma=function(e){var n=e.title,r=e.tooltip,i=e.size,s=i===void 0?"3":i,a=e.className,o=a===void 0?"":a,l=function(f){var p=typeof f=="string"?f:"tooltip";return"tooltip-".concat(p.toLowerCase().replace(/\s+/g,"-"))},u=l(n);return d.jsxs("div",{className:"yst-flex yst-items-center yst-justify-between ".concat(o),children:[d.jsx(k.Title,{size:s,children:n}),d.jsx(Lc,{id:u,children:r})]})},mf=function(e){var n=e.keywords,r=e.badgeClassName;return d.jsx("div",{className:"yst-flex yst-flex-wrap yst-gap-2",children:n.map(function(i,s){return i&&d.jsx(k.Badge,{className:r,children:i},s)})})},p0=function(e){var n,r,i,s,a=e.title,o=a===void 0?"Sentiment":a,l=e.tooltip,u=l===void 0?"":l,c=e.data,f=c==null?void 0:c.brandName,p=c==null||(n=c.positivityPercentage)===null||n===void 0?void 0:n.value,h=c==null||(r=c.positivityPercentage)===null||r===void 0||(r=r.previous)===null||r===void 0?void 0:r.difference,y=c==null||(i=c.keywords)===null||i===void 0?void 0:i.positive,m=c==null||(s=c.keywords)===null||s===void 0?void 0:s.negative,v=!c||p===void 0&&h===void 0;return d.jsx(k.Card,{className:"yst-overflow-visible",children:d.jsxs(k.Card.Content,{className:"yst-space-y-8",children:[d.jsx(ma,{title:o,tooltip:u}),d.jsx("div",{className:"yst-space-y-3",children:!v&&d.jsxs(d.Fragment,{children:[d.jsx("p",{children:f||d.jsx(k.SkeletonLoader,{className:"yst-h-6 yst-w-20"})}),d.jsxs("div",{children:[d.jsx("div",{className:"yst-inline-flex",children:d.jsx(ya,{className:"yst-mb-1.5",score:p,scoreFormat:"percentage",suffix:"positive",delta:h})}),d.jsx(k.ProgressBar,{max:100,min:0,progress:p||0,className:le({"yst-bg-red-500":p},"[&>*]:yst-bg-green-500")})]})]})}),v&&d.jsx(k.Alert,{variant:"info",children:"The selected AI platform returned no brand sentiment data for your queries. This can happen with some queries or platforms."}),!!y&&d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(k.Title,{as:"h5",size:"5",children:"Positive keywords"}),d.jsx(mf,{keywords:y,badgeClassName:"yst-bg-green-100 yst-text-green-800"})]}),!!m&&d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(k.Title,{as:"h5",size:"5",children:"Negative keywords"}),d.jsx(mf,{keywords:m,badgeClassName:"yst-bg-red-100 yst-text-red-800"})]})]})})};function qs(t){"@babel/helpers - typeof";return qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qs(t)}var AS=["data"];function gf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function SS(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gf(Object(n),!0).forEach(function(r){CS(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function CS(t,e,n){return(e=kS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kS(t){var e=jS(t,"string");return qs(e)=="symbol"?e:e+""}function jS(t,e){if(qs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ES(t,e){if(t==null)return{};var n,r,i=OS(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function OS(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var rr=function(e,n,r){var i=Tt(),s=i.brandId,a=i.analysisId,o=i.aiProvider,l=s,u=a,c=o,f=Ho(l,u,{query:{enabled:!!l&&!!u,select:function(v){var g=v.data;return g==null?void 0:g.analysis}}}),p=f.data,h=ES(f,AS),y=F.useMemo(function(){if(!p||!c)return null;var m=p.completedScans||[];return m.find(function(v){return String(v.aiProvider)===String(c)})||null},[p,c]);return SS({data:y},h)};function PS(){var t,e=rr(),n=e.data;return d.jsx(p0,{title:"Brand sentiment",data:n==null||(t=n.sentiment)===null||t===void 0?void 0:t.own,tooltip:"Percentage of positive versus negative keywords in your query results related to your brand."})}var TS=["children","as","className"];function IS(t,e){if(t==null)return{};var n,r,i=MS(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function MS(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var Zi=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var s=e.reduce(function(a,o,l){return a+o+(r[l]||"")},"");return function(a){var o=a.children,l=a.as,u=l===void 0?"div":l,c=a.className,f=c===void 0?"":c,p=IS(a,TS);return d.jsx(u,{className:le(String(s).trim(),f),...p,children:o})}},gl=[{bg:"yst-bg-blue-200",text:"yst-text-blue-900"},{bg:"yst-bg-green-200",text:"yst-text-green-900"},{bg:"yst-bg-purple-200",text:"yst-text-purple-900"},{bg:"yst-bg-pink-200",text:"yst-text-pink-900"},{bg:"yst-bg-yellow-200",text:"yst-text-yellow-900"},{bg:"yst-bg-indigo-200",text:"yst-text-indigo-900"},{bg:"yst-bg-red-200",text:"yst-text-red-900"},{bg:"yst-bg-orange-200",text:"yst-text-orange-900"},{bg:"yst-bg-teal-200",text:"yst-text-teal-900"},{bg:"yst-bg-cyan-200",text:"yst-text-cyan-900"},{bg:"yst-bg-lime-200",text:"yst-text-lime-900"},{bg:"yst-bg-emerald-200",text:"yst-text-emerald-900"},{bg:"yst-bg-sky-200",text:"yst-text-sky-900"},{bg:"yst-bg-violet-200",text:"yst-text-violet-900"},{bg:"yst-bg-fuchsia-200",text:"yst-text-fuchsia-900"},{bg:"yst-bg-rose-200",text:"yst-text-rose-900"},{bg:"yst-bg-amber-200",text:"yst-text-amber-900"}],vf=function(e){if(!e)return gl[0];if(e.toLowerCase()==="other")return{bg:"yst-bg-slate-200",text:"yst-text-slate-900"};for(var n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);n=(n<<5)-n+i,n=n&n}var s=Math.abs(n)%gl.length;return gl[s]};function Ws(t){"@babel/helpers - typeof";return Ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ws(t)}var bf,xf;function wf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Af(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wf(Object(n),!0).forEach(function(r){LS(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function LS(t,e,n){return(e=NS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function NS(t){var e=RS(t,"string");return Ws(e)=="symbol"?e:e+""}function RS(t,e){if(Ws(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ws(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _S(t){return FS(t)||BS(t)||y0(t)||DS()}function DS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
29
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BS(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function FS(t){if(Array.isArray(t))return Tu(t)}function Sf(t,e){return HS(t)||US(t,e)||y0(t,e)||zS()}function zS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
30
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y0(t,e){if(t){if(typeof t=="string")return Tu(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tu(t,e):void 0}}function Tu(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function US(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function HS(t){if(Array.isArray(t))return t}function m0(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var os=Zi(bf||(bf=m0(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-slate-400 yst-inline-flex yst-w-20"]))),Cf=Zi(xf||(xf=m0(["yst-hidden md:yst-inline-flex"]))),kf=function(e){var n=e.data,r=e.isLoading,i=r===void 0?!1:r,s=e.enableCategories,a=s===void 0?!1:s,o=i||!n,l=n||{},u=l.rank,c=l.url,f=l.rootDomain,p=l.category,h=l.isBrand,y=l.associatedBrands;return d.jsxs("tr",{className:"yst-flex yst-flex-col yst-py-4 md:yst-table-row md:yst-py-0",children:[d.jsxs(k.Table.Cell,{className:"yst-p-0 yst-py-1 yst-align-top md:yst-ml-0 md:yst-p-2",children:[d.jsx(os,{as:"span",children:"Rank:"}),o?d.jsx(k.SkeletonLoader,{className:"yst-h-6 yst-w-24"}):d.jsxs("div",{className:"yst-inline-flex yst-items-center yst-gap-1",children:[d.jsx("span",{className:"yst-whitespace-nowrap yst-text-slate-500",children:u?d.jsxs(d.Fragment,{children:[u,d.jsx(Cf,{children:"."})]}):"—"}),h&&d.jsx(Cf,{children:d.jsx(Iu,{})}),h&&d.jsx(os,{children:d.jsx(Iu,{})})]})]}),d.jsx(k.Table.Cell,{className:"yst-break-all yst-p-0 yst-py-1 yst-align-top md:yst-ml-0 md:yst-w-1/2 md:yst-p-2",children:o?d.jsx(k.SkeletonLoader,{className:"yst-h-6 yst-w-full"}):d.jsxs(k.Link,{className:"yst-font-medium",href:c||"#",rel:"nofollow noreferrer",target:"_blank",children:[d.jsx("span",{className:"yst-inline yst-break-all",children:c!=null?c:"—"}),d.jsx(h0,{className:"yst-ml-1 yst-inline-block yst-h-4 yst-w-4 yst-align-text-bottom"})]})}),d.jsxs(k.Table.Cell,{className:"yst-p-0 yst-py-1 yst-align-top yst-font-medium md:yst-ml-0 md:yst-p-2",children:[d.jsx(os,{as:"span",children:"Domain:"}),o?d.jsx(k.SkeletonLoader,{className:"yst-h-6 yst-w-24"}):d.jsx("span",{className:"yst-inline yst-break-all yst-font-medium yst-text-slate-900",children:f!=null?f:"—"})]}),a&&d.jsxs(k.Table.Cell,{className:"yst-p-0 yst-py-1 yst-align-top md:yst-ml-0 md:yst-p-2",children:[d.jsx(os,{as:"span",children:"Category:"}),o?d.jsx(k.SkeletonLoader,{className:"yst-h-6 yst-w-16"}):d.jsx(k.Badge,{className:le(vf(p||"").bg,vf(p||"").text),children:p!=null?p:"—"})]}),d.jsxs(k.Table.Cell,{className:"yst-p-0 yst-py-1 yst-align-top md:yst-ml-0 md:yst-p-2",children:[d.jsx(os,{as:"span",children:"Brands:"}),o?d.jsx(k.SkeletonLoader,{className:"yst-h-6 yst-w-24"}):y&&y.length>0?d.jsx("div",{className:"yst-flex yst-flex-wrap yst-gap-1",children:y.map(function(m){return d.jsx(k.Badge,{variant:m.isSelf?"ai":"plain",children:m.name},m.id)})}):d.jsx("span",{className:"yst-text-slate-500",children:"—"})]})]},o?void 0:c)},Iu=function(){return d.jsx("span",{role:"img","aria-label":"Brand citation",children:d.jsx(rS,{className:"yst-inline yst-h-4 yst-w-4 yst-fill-amber-500"})})},qS=function(e){var n,r,i,s,a=e.enableCategories,o=a===void 0?!1:a,l=F.useState("all"),u=Sf(l,2),c=u[0],f=u[1],p=F.useState(1),h=Sf(p,2),y=h[0],m=h[1],v=rr(),g=v.data,A=v.isLoading,E=v.isRefetching,C=g==null?void 0:g.citations,S=C==null||(n=C.list)===null||n===void 0?void 0:n.filter(function(T){return c==="all"?!0:T.category===c}),b=10,w=(S==null?void 0:S.length)||0,x=Math.ceil(w/b),N=(y-1)*b,D=N+b,M=S==null?void 0:S.slice(N,D);return F.useEffect(function(){y>x&&x>0&&m(1)},[x,y,m,c]),d.jsx(k.Card,{className:"yst-overflow-visible md:yst-col-span-2",children:d.jsxs(k.Card.Content,{className:"yst-flex yst-flex-col yst-gap-6",children:[d.jsxs("div",{className:"yst-space-y-4",children:[d.jsx(ma,{title:"Citations",tooltip:"Sources the AI used to support brand mentions in the results."}),d.jsxs("p",{children:["This table highlights the key sources where your brand (",d.jsx(Iu,{}),") or competitors were mentioned, ordered by their relevance."]}),d.jsx(ya,{score:C==null||(r=C.total)===null||r===void 0?void 0:r.value,suffix:"citations",delta:C==null||(i=C.total)===null||i===void 0||(i=i.previous)===null||i===void 0?void 0:i.difference,deltaSuffix:"since last analysis",isLoading:A,hideTotal:!0})]}),(C==null||(s=C.list)===null||s===void 0?void 0:s.length)===0&&!A&&!E?d.jsx(k.Alert,{children:"The selected AI platform returned no citations for your queries. This can happen with some queries or platforms."}):d.jsxs(d.Fragment,{children:[d.jsxs("div",{children:[o&&d.jsx(k.Select,{className:"yst-mb-4 md:yst-max-w-sm",label:"Filter categories",value:c,onChange:function(T){f(T)},id:"citation-category-filter",options:[{value:"all",label:"All categories"}].concat(_S(C!=null&&C.categories?C.categories.map(function(T){return{value:T,label:T}}):[]))}),d.jsxs(k.Table,{variant:"minimal",children:[d.jsx(k.Table.Head,{className:"yst-font-semibold",children:d.jsxs(k.Table.Row,{children:[d.jsx(k.Table.Cell,{className:"yst-hidden yst-align-top yst-text-slate-900 md:yst-table-cell md:yst-pl-1",children:" "}),d.jsx(k.Table.Cell,{className:"yst yst-hidden yst-align-top yst-text-slate-900 md:yst-table-cell md:yst-px-1",children:"URL"}),d.jsx(k.Table.Cell,{className:"yst-hidden yst-align-top yst-text-slate-900 md:yst-table-cell md:yst-px-1",children:"Root domain"}),o&&d.jsx(k.Table.Cell,{className:"yst-hidden yst-align-top yst-text-slate-900 md:yst-table-cell",children:"Category"}),d.jsx(k.Table.Cell,{className:"yst-hidden yst-align-top yst-text-slate-900 md:yst-table-cell",children:"Brands"})]})}),d.jsx(k.Table.Body,{children:A||E?Array.from({length:5}).map(function(T,z){return d.jsx(kf,{isLoading:!0,enableCategories:o},"skeleton-".concat(z))}):M&&M.length>0?M.map(function(T,z){return d.jsx(kf,{data:Af(Af({},T),{},{rank:N+z+1}),enableCategories:o},"citation-table-row-".concat(T.url,"-").concat(z))}):d.jsx(k.Table.Row,{children:d.jsxs(k.Table.Cell,{colSpan:o?6:5,className:"yst-py-8 yst-text-center yst-text-slate-500",children:[c==="all"?"No citations found.":'No citations found for the "'.concat(c,'" category.')," ",d.jsx(k.Link,{onClick:function(){return f("all")},children:"Show all categories."})]})},"no-results")})]})]}),S&&S.length>b&&d.jsxs("div",{className:"yst-flex yst-items-center yst-justify-end yst-gap-4",children:[d.jsxs("p",{className:"yst-mb-0",children:["Showing ",N+1," to"," ",D>w?w:D," of"," ",w," results"]}),d.jsx(k.Pagination,{variant:"text",className:"yst-flex-row yst-gap-0",current:y,total:x,onNavigate:m,screenReaderTextPrevious:"Previous page",screenReaderTextNext:"Next page"})]})]})]})})};function WS(t,e){return VS(t)||YS(t,e)||QS(t,e)||GS()}function GS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
31
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QS(t,e){if(t){if(typeof t=="string")return jf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jf(t,e):void 0}}function jf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function YS(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function VS(t){if(Array.isArray(t))return t}var Ef=function(e){var n,r=e.data,i=e.totalQueries,s=e.isFirstScan,a=s===void 0?!0:s,o=e.isLoading,l=o===void 0?!1:o,u=l||!r,c=r||{},f=c.rank,p=c.brand,h=f==null?void 0:f.previous,y=typeof(h==null?void 0:h.difference)=="number"?h.difference*-1:void 0,m=p==null?void 0:p.numberOfMentions,v=m==null?void 0:m.previous,g=typeof(v==null?void 0:v.difference)=="number"?v.difference:void 0;return d.jsxs(k.Table.Row,{children:[d.jsx(k.Table.Cell,{children:u?d.jsx(k.SkeletonLoader,{className:"yst-h-6 yst-w-8"}):d.jsxs("span",{className:"yst-flex yst-justify-between yst-gap-4",children:[d.jsxs("span",{className:"yst-flex yst-flex-nowrap yst-gap-2 yst-font-medium",children:[d.jsx("span",{className:"yst-text-slate-500",children:"#"}),d.jsx("span",{className:"yst-text-slate-900",children:(f==null?void 0:f.value)||"—"})]}),!a&&d.jsx("span",{className:le("yst-inline-flex yst-items-center yst-justify-end",yo(h&&typeof y=="number"?y:0)),children:h&&typeof y=="number"&&y!==0?d.jsxs(d.Fragment,{children:[Math.abs(y),y>0?d.jsx(XA,{className:"yst-h-4 yst-w-4"}):d.jsx(VA,{className:"yst-h-4 yst-w-4"})]}):null})]})}),d.jsx(k.Table.Cell,{children:u?d.jsx(k.SkeletonLoader,{className:"yst-h-6 yst-w-24"}):d.jsx("span",{className:"yst-font-medium",children:p!=null&&p.isSelf?d.jsx(Hs,{children:p==null?void 0:p.name}):(n=p==null?void 0:p.name)!==null&&n!==void 0?n:"—"})}),d.jsx(k.Table.Cell,{children:u?d.jsx(k.SkeletonLoader,{className:"yst-h-6 yst-w-8"}):d.jsxs("span",{className:"yst-flex yst-justify-end yst-gap-4",children:[d.jsxs("span",{className:"yst-flex yst-flex-nowrap yst-gap-1 yst-font-medium",children:[d.jsx("span",{className:"yst-text-slate-500",children:m==null?void 0:m.value}),d.jsxs("span",{className:"yst-text-slate-900",children:["/ ",i]})]}),!a&&d.jsx("span",{className:le("yst-ml-auto",yo(v&&typeof g=="number"?g:0)),children:v&&typeof g=="number"?d.jsxs(d.Fragment,{children:[g>-1&&"+",g]}):null})]})})]},u||f==null?void 0:f.value)},KS=function(e){var n,r,i=e.className,s=F.useRef(null),a=F.useState(1),o=WS(a,2),l=o[0],u=o[1],c=rr(),f=c.data,p=c.isLoading,h=c.isRefetching,y=f==null||(n=f.rankings)===null||n===void 0?void 0:n.list,m=(f==null||(r=f.scores)===null||r===void 0||(r=r.standardized)===null||r===void 0?void 0:r.ranking)||{},v=Object.hasOwn(m,"previous"),g=5,A=(y==null?void 0:y.length)||0,E=Math.ceil(A/g),C=(l-1)*g,S=C+g,b=y==null?void 0:y.slice(C,S);return F.useEffect(function(){l>E&&E>0&&u(1)},[E,l,u]),d.jsx(k.Card,{ref:s,className:le("yst-overflow-visible",i),children:d.jsxs(k.Card.Content,{className:"yst-mt-0 yst-space-y-6",children:[d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(ma,{title:"Competitor ranking",tooltip:"How often competitors are mentioned in your submitted queries."}),d.jsx("p",{children:"Brands with the most mentions for your prompts."})]}),!p&&!h&&(!y||y.length===0)?d.jsx(k.Alert,{variant:"info",children:"The selected AI platform returned no brands for your queries. This can happen with some queries or platforms."}):d.jsxs(k.Table,{variant:"minimal",children:[d.jsx(k.Table.Head,{children:d.jsxs(k.Table.Row,{children:[d.jsx(k.Table.Cell,{className:"yst-w-20 yst-font-semibold",children:"Rank"}),d.jsx(k.Table.Cell,{className:"yst-font-semibold",children:"Brand"}),d.jsx(k.Table.Cell,{className:"yst-w-20 yst-text-right yst-font-semibold",children:"Mentions"})]})}),d.jsx(k.Table.Body,{children:b&&Array.isArray(b)&&b.length>0?b.map(function(w){var x;return d.jsx(Ef,{data:w,totalQueries:f==null?void 0:f.numberOfQueries,isFirstScan:!v},"rank-row-".concat((x=w.rank)===null||x===void 0?void 0:x.value))}):p||h?Array.from({length:g}).map(function(w,x){return d.jsx(Ef,{isLoading:!0},"skeleton-".concat(x))}):null})]}),!p&&!h&&y&&y.length>g&&d.jsx(k.Pagination,{current:l,total:E,className:"yst-flex-row",onNavigate:u,screenReaderTextNext:"Next",screenReaderTextPrevious:"Previous",variant:"text"})]})})},XS=function(){var e,n=rr(),r=n.data,i=r==null||(e=r.sentiment)===null||e===void 0?void 0:e.topCompetitor;return d.jsx(p0,{title:"Competitor sentiment",data:i,tooltip:"Percentage of positive versus negative keywords in your query results related to your competitor's brand."})};const g0=6048e5,JS=864e5,Of=Symbol.for("constructDateFrom");function Pt(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Of in t?t[Of](e):t instanceof Date?new t.constructor(e):new Date(e)}function bt(t,e){return Pt(e||t,t)}function ZS(t,e,n){const r=bt(t,n==null?void 0:n.in);return isNaN(e)?Pt(t,NaN):(r.setDate(r.getDate()+e),r)}function v0(t,e,n){const r=bt(t,n==null?void 0:n.in);if(isNaN(e))return Pt(t,NaN);if(!e)return r;const i=r.getDate(),s=Pt(t,r.getTime());s.setMonth(r.getMonth()+e+1,0);const a=s.getDate();return i>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),i),r)}let $S={};function Go(){return $S}function Gs(t,e){var o,l,u,c,f,p,h,y;const n=Go(),r=(y=(h=(c=(u=e==null?void 0:e.weekStartsOn)!=null?u:(l=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)!=null?c:n.weekStartsOn)!=null?h:(p=(f=n.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)!=null?y:0,i=bt(t,e==null?void 0:e.in),s=i.getDay(),a=(s<r?7:0)+s-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function mo(t,e){return Gs(t,{...e,weekStartsOn:1})}function b0(t,e){const n=bt(t,e==null?void 0:e.in),r=n.getFullYear(),i=Pt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const s=mo(i),a=Pt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const o=mo(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function Pf(t){const e=bt(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Qo(t,...e){const n=Pt.bind(null,e.find(r=>typeof r=="object"));return e.map(n)}function go(t,e){const n=bt(t,e==null?void 0:e.in);return n.setHours(0,0,0,0),n}function e3(t,e,n){const[r,i]=Qo(n==null?void 0:n.in,t,e),s=go(r),a=go(i),o=+s-Pf(s),l=+a-Pf(a);return Math.round((o-l)/JS)}function t3(t,e){const n=b0(t,e),r=Pt(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),mo(r)}function x0(t){return Pt(t,Date.now())}function w0(t,e,n){const[r,i]=Qo(n==null?void 0:n.in,t,e);return+go(r)==+go(i)}function n3(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function r3(t){return!(!n3(t)&&typeof t!="number"||isNaN(+bt(t)))}function i3(t,e){const n=bt(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function s3(t,e){const[n,r]=Qo(t,e.start,e.end);return{start:n,end:r}}function a3(t,e){const{start:n,end:r}=s3(e==null?void 0:e.in,t);let i=+n>+r;const s=i?+n:+r,a=i?r:n;a.setHours(0,0,0,0);let o=1;const l=[];for(;+a<=s;)l.push(Pt(n,a)),a.setDate(a.getDate()+o),a.setHours(0,0,0,0);return i?l.reverse():l}function o3(t,e){const n=bt(t,e==null?void 0:e.in);return n.setDate(1),n.setHours(0,0,0,0),n}function l3(t,e){const n=bt(t,e==null?void 0:e.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const u3={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"}},c3=(t,e,n)=>{let r;const i=u3[t];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function vl(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const d3={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},f3={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},h3={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},p3={date:vl({formats:d3,defaultWidth:"full"}),time:vl({formats:f3,defaultWidth:"full"}),dateTime:vl({formats:h3,defaultWidth:"full"})},y3={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},m3=(t,e,n,r)=>y3[t];function ls(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&t.formattingValues){const a=t.defaultFormattingWidth||t.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=t.formattingValues[o]||t.formattingValues[a]}else{const a=t.defaultWidth,o=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[o]||t.values[a]}const s=t.argumentCallback?t.argumentCallback(e):e;return i[s]}}const g3={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},v3={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},b3={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"]},x3={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"]},w3={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"}},A3={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"}},S3=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},C3={ordinalNumber:S3,era:ls({values:g3,defaultWidth:"wide"}),quarter:ls({values:v3,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ls({values:b3,defaultWidth:"wide"}),day:ls({values:x3,defaultWidth:"wide"}),dayPeriod:ls({values:w3,defaultWidth:"wide",formattingValues:A3,defaultFormattingWidth:"wide"})};function us(t){return(e,n={})=>{const r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;const a=s[0],o=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(o)?j3(o,f=>f.test(a)):k3(o,f=>f.test(a));let u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=e.slice(a.length);return{value:u,rest:c}}}function k3(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function j3(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function E3(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const i=r[0],s=e.match(t.parsePattern);if(!s)return null;let a=t.valueCallback?t.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const o=e.slice(i.length);return{value:a,rest:o}}}const O3=/^(\d+)(th|st|nd|rd)?/i,P3=/\d+/i,T3={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},I3={any:[/^b/i,/^(a|c)/i]},M3={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},L3={any:[/1/i,/2/i,/3/i,/4/i]},N3={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},R3={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]},_3={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},D3={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]},B3={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},F3={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}},z3={ordinalNumber:E3({matchPattern:O3,parsePattern:P3,valueCallback:t=>parseInt(t,10)}),era:us({matchPatterns:T3,defaultMatchWidth:"wide",parsePatterns:I3,defaultParseWidth:"any"}),quarter:us({matchPatterns:M3,defaultMatchWidth:"wide",parsePatterns:L3,defaultParseWidth:"any",valueCallback:t=>t+1}),month:us({matchPatterns:N3,defaultMatchWidth:"wide",parsePatterns:R3,defaultParseWidth:"any"}),day:us({matchPatterns:_3,defaultMatchWidth:"wide",parsePatterns:D3,defaultParseWidth:"any"}),dayPeriod:us({matchPatterns:B3,defaultMatchWidth:"any",parsePatterns:F3,defaultParseWidth:"any"})},U3={code:"en-US",formatDistance:c3,formatLong:p3,formatRelative:m3,localize:C3,match:z3,options:{weekStartsOn:0,firstWeekContainsDate:1}};function H3(t,e){const n=bt(t,e==null?void 0:e.in);return e3(n,l3(n))+1}function q3(t,e){const n=bt(t,e==null?void 0:e.in),r=+mo(n)-+t3(n);return Math.round(r/g0)+1}function A0(t,e){var c,f,p,h,y,m,v,g;const n=bt(t,e==null?void 0:e.in),r=n.getFullYear(),i=Go(),s=(g=(v=(h=(p=e==null?void 0:e.firstWeekContainsDate)!=null?p:(f=(c=e==null?void 0:e.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)!=null?h:i.firstWeekContainsDate)!=null?v:(m=(y=i.locale)==null?void 0:y.options)==null?void 0:m.firstWeekContainsDate)!=null?g:1,a=Pt((e==null?void 0:e.in)||t,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const o=Gs(a,e),l=Pt((e==null?void 0:e.in)||t,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const u=Gs(l,e);return+n>=+o?r+1:+n>=+u?r:r-1}function W3(t,e){var o,l,u,c,f,p,h,y;const n=Go(),r=(y=(h=(c=(u=e==null?void 0:e.firstWeekContainsDate)!=null?u:(l=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)!=null?c:n.firstWeekContainsDate)!=null?h:(p=(f=n.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)!=null?y:1,i=A0(t,e),s=Pt((e==null?void 0:e.in)||t,0);return s.setFullYear(i,0,r),s.setHours(0,0,0,0),Gs(s,e)}function G3(t,e){const n=bt(t,e==null?void 0:e.in),r=+Gs(n,e)-+W3(n,e);return Math.round(r/g0)+1}function Ne(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const sr={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return Ne(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):Ne(n+1,2)},d(t,e){return Ne(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return Ne(t.getHours()%12||12,e.length)},H(t,e){return Ne(t.getHours(),e.length)},m(t,e){return Ne(t.getMinutes(),e.length)},s(t,e){return Ne(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Ne(i,e.length)}},hi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Tf={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return sr.y(t,e)},Y:function(t,e,n,r){const i=A0(t,r),s=i>0?i:1-i;if(e==="YY"){const a=s%100;return Ne(a,2)}return e==="Yo"?n.ordinalNumber(s,{unit:"year"}):Ne(s,e.length)},R:function(t,e){const n=b0(t);return Ne(n,e.length)},u:function(t,e){const n=t.getFullYear();return Ne(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Ne(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Ne(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return sr.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return Ne(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const i=G3(t,r);return e==="wo"?n.ordinalNumber(i,{unit:"week"}):Ne(i,e.length)},I:function(t,e,n){const r=q3(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):Ne(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):sr.d(t,e)},D:function(t,e,n){const r=H3(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ne(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const i=t.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Ne(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const i=t.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Ne(s,e.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return Ne(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let i;switch(r===12?i=hi.noon:r===0?i=hi.midnight:i=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let i;switch(r>=17?i=hi.evening:r>=12?i=hi.afternoon:r>=4?i=hi.morning:i=hi.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return sr.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):sr.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ne(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ne(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):sr.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):sr.s(t,e)},S:function(t,e){return sr.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Mf(r);case"XXXX":case"XX":return Nr(r);case"XXXXX":case"XXX":default:return Nr(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return Mf(r);case"xxxx":case"xx":return Nr(r);case"xxxxx":case"xxx":default:return Nr(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+If(r,":");case"OOOO":default:return"GMT"+Nr(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+If(r,":");case"zzzz":default:return"GMT"+Nr(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return Ne(r,e.length)},T:function(t,e,n){return Ne(+t,e.length)}};function If(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),s=r%60;return s===0?n+String(i):n+String(i)+e+Ne(s,2)}function Mf(t,e){return t%60===0?(t>0?"-":"+")+Ne(Math.abs(t)/60,2):Nr(t,e)}function Nr(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Ne(Math.trunc(r/60),2),s=Ne(r%60,2);return n+i+e+s}const Lf=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},S0=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},Q3=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Lf(t,e);let s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",Lf(r,e)).replace("{{time}}",S0(i,e))},Y3={p:S0,P:Q3},V3=/^D+$/,K3=/^Y+$/,X3=["D","DD","YY","YYYY"];function J3(t){return V3.test(t)}function Z3(t){return K3.test(t)}function $3(t,e,n){const r=eC(t,e,n);if(console.warn(r),X3.includes(t))throw new RangeError(r)}function eC(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const tC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rC=/^'([^]*?)'?$/,iC=/''/g,sC=/[a-zA-Z]/;function Xn(t,e,n){var c,f,p,h,y,m,v,g,A;const r=Go(),i=(c=r.locale)!=null?c:U3,s=(y=(h=r.firstWeekContainsDate)!=null?h:(p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)!=null?y:1,a=(A=(g=r.weekStartsOn)!=null?g:(v=(m=r.locale)==null?void 0:m.options)==null?void 0:v.weekStartsOn)!=null?A:0,o=bt(t,n==null?void 0:n.in);if(!r3(o))throw new RangeError("Invalid time value");let l=e.match(nC).map(E=>{const C=E[0];if(C==="p"||C==="P"){const S=Y3[C];return S(E,i.formatLong)}return E}).join("").match(tC).map(E=>{if(E==="''")return{isToken:!1,value:"'"};const C=E[0];if(C==="'")return{isToken:!1,value:aC(E)};if(Tf[C])return{isToken:!0,value:E};if(C.match(sC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:E}});i.localize.preprocessor&&(l=i.localize.preprocessor(o,l));const u={firstWeekContainsDate:s,weekStartsOn:a,locale:i};return l.map(E=>{if(!E.isToken)return E.value;const C=E.value;(Z3(C)||J3(C))&&$3(C,e,String(t));const S=Tf[C[0]];return S(o,C,i.localize,u)}).join("")}function aC(t){const e=t.match(rC);return e?e[1].replace(iC,"'"):t}function Nf(t,e,n){const[r,i]=Qo(n==null?void 0:n.in,t,e);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function C0(t,e){return w0(Pt(t,t),x0(t))}function oC(t,e){return w0(t,ZS(x0(t),1),e)}function lC(t,e,n){return v0(t,-1,n)}var uC=function(e){var n=e.brand,r=ft(),i=pa(),s=i.setBrandId;return(n==null?void 0:n.setupStatus)==="pendingQuerySelection"?d.jsx(k.Alert,{className:"yst-mt-0",children:d.jsxs("div",{className:"yst-max-w-xl yst-space-y-4",children:[d.jsxs("div",{className:"yst-space-y-2",children:[d.jsxs("h3",{className:"yst-font-medium",children:["Finish your analysis for ",(n==null?void 0:n.name)||"Brand ".concat(n==null?void 0:n.id)]}),d.jsx("p",{children:"Your brand is saved, but you haven’t completed the analysis yet. Review your queries and run the analysis to get your brand insights!"})]}),d.jsx("div",{className:"yst-flex yst-justify-start yst-gap-6",children:d.jsx(k.Link,{onClick:function(){n.id?(s(n.id),r("/setup/".concat(n.id,"/queries"))):console.error("Brand ID is missing.")},children:"Review queries"})})]})}):null},Yo=function(e){var n=e.isOpen,r=e.onClose,i=e.onConfirm,s=e.isLoading,a=s===void 0?!1:s,o=e.title,l=e.description,u=e.disabled,c=u===void 0?!1:u,f=e.confirmText,p=f===void 0?"Yes, delete":f,h=e.cancelText,y=h===void 0?"No, go back":h,m=e.className;return d.jsx(k.Modal,{isOpen:n,onClose:r,position:"center",as:"div",className:m,children:d.jsxs(k.Modal.Panel,{children:[d.jsxs("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:[d.jsx("div",{children:d.jsx("span",{className:"yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-red-100",children:d.jsx(eo,{className:"yst-h-6 yst-w-6 yst-text-red-600"})})}),d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(k.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(k.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:o})}),d.jsx(k.Modal.Container.Content,{className:"yst-mb-4 yst-space-y-3",children:typeof l=="string"?d.jsx("p",{children:l}):l})]})]}),d.jsxs(k.Modal.Container.Footer,{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-2",children:[d.jsx(k.Button,{variant:"secondary",onClick:r,children:y}),d.jsx(k.Button,{variant:"error",onClick:i,isLoading:a,disabled:c,children:p})]})]})})};function k0(t){if(t!=null){if(typeof t=="number"){var e=1e12;return t>e?t-Date.now():t}var n=Date.parse(t);if(!Number.isNaN(n))return n-Date.now()}}function cC(t,e){var n=k0(t);return n!==void 0&&n>e*60*1e3}var dC=2;function j0(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dC,n=k0(t);return n!==void 0&&n<=e*60*1e3}function Mu(t){if(t==null)return"a future date";var e;if(typeof t=="number"){var n=1e12;t>n?e=t:e=Date.now()+t}else{var r=Date.parse(t);Number.isNaN(r)||(e=r)}if(e===void 0)return"a future date";var i=new Date(e),s={month:"long",day:"numeric"},a={hour:"numeric",minute:"2-digit",hour12:!0},o=i.toLocaleDateString("en-US",s),l=i.toLocaleTimeString("en-US",a);return"".concat(o," at ").concat(l)}function Dr(t){if(!t)return null;var e=new Date(t);return isNaN(e.getTime())?null:e}function Qs(t){"@babel/helpers - typeof";return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qs(t)}function bl(t,e,n){return(e=fC(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fC(t){var e=hC(t,"string");return Qs(e)=="symbol"?e:e+""}function hC(t,e){if(Qs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function pC(t,e){return vC(t)||gC(t,e)||mC(t,e)||yC()}function yC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
32
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mC(t,e){if(t){if(typeof t=="string")return Rf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rf(t,e):void 0}}function Rf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function gC(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function vC(t){if(Array.isArray(t))return t}var vn={selected:{background:"yst-bg-primary-500",text:"yst-text-white",hover:"hover:yst-bg-primary-600"},hasAnalysis:{border:"yst-border-2 yst-border-primary-500",text:"yst-text-slate-900",hover:"hover:yst-bg-primary-50"},today:{underline:"yst-border-b-2 yst-border-slate-400"},indicator:{default:"yst-bg-blue-500"}},bC=function(e){var n=e.analyses,r=e.selectedAnalysisId,i=e.onAnalysisSelect,s=e.isLoading,a=s===void 0?!1:s,o=e.isOpen,l=o===void 0?!1:o,u=e.onClose,c=F.useState(new Date),f=pC(c,2),p=f[0],h=f[1],y=F.useMemo(function(){var b=new Map;return n.forEach(function(w){var x=Dr(w.createdAt),N=x?Xn(x,"yyyy-MM-dd"):"";N&&(b.has(N)||b.set(N,[]),b.get(N).push(w))}),b},[n]);F.useEffect(function(){if(l&&r){var b=n.find(function(D){return D.id===r});if(b){var w=Dr(b.createdAt);w&&h(w)}}else if(l&&n.length>0){var x=n.reduce(function(D,M){return new Date(M.createdAt)>new Date(D.createdAt)?M:D}),N=Dr(x.createdAt);N&&h(N)}},[l,r,n]);var m=F.useMemo(function(){return n.length===0?null:n.reduce(function(b,w){return new Date(w.createdAt)>new Date(b.createdAt)?w:b})},[n]),v=function(){if(m){var w=Dr(m.createdAt);w&&h(w)}},g=F.useMemo(function(){if(!m)return!1;var b=Dr(m.createdAt);return b?Nf(b,p):!1},[m,p]),A=F.useMemo(function(){var b=o3(p),w=i3(p),x=new Date(b),N=x.getDay(),D=N===0?6:N-1;x.setDate(x.getDate()-D);var M=new Date(w),T=M.getDay(),z=T===0?0:7-T;return M.setDate(M.getDate()+z),a3({start:x,end:M}).map(function(I){var O=Xn(I,"yyyy-MM-dd"),B=y.get(O)||[],R=B.find(function(Y){return String(Y.id)===String(r)});return{date:O,dateObj:I,isCurrentMonth:Nf(I,p),isToday:C0(I),isSelected:!!R,hasAnalyses:B.length>0,analyses:B}})},[p,y,r]),E=function(){h(function(w){return lC(w)})},C=function(){h(function(w){return v0(w,1)})},S=function(w){if(w.hasAnalyses){if(w.analyses.length===1)i(w.analyses[0].id);else{var x=w.analyses.reduce(function(N,D){return new Date(D.createdAt)>new Date(N.createdAt)?D:N});i(x.id)}u==null||u()}};return l?a?d.jsx("div",{className:"yst-absolute yst-left-0 yst-right-0 yst-top-full yst-z-50 yst-mt-1 yst-rounded-md yst-border yst-border-slate-200 yst-bg-white yst-p-4 yst-shadow-lg",children:d.jsxs("div",{className:"yst-animate-pulse yst-space-y-4",children:[d.jsx("div",{className:"yst-h-6 yst-rounded yst-bg-slate-200"}),d.jsx("div",{className:"yst-h-48 yst-rounded yst-bg-slate-200"})]})}):d.jsxs("div",{className:"yst-absolute yst-left-0 yst-right-0 yst-top-full yst-z-50 yst-mt-1 yst-min-w-80 yst-max-w-sm yst-rounded-md yst-border yst-border-slate-200 yst-bg-white yst-p-4 yst-shadow-lg",children:[d.jsxs("div",{className:"yst-mb-6 yst-flex yst-items-center yst-justify-between",children:[d.jsxs("button",{type:"button",onClick:E,className:"yst-rounded-md yst-p-1.5 yst-text-slate-400 hover:yst-bg-slate-100 hover:yst-text-slate-500",children:[d.jsx("span",{className:"yst-sr-only",children:"Previous month"}),d.jsx(Iw,{className:"yst-h-5 yst-w-5"})]}),d.jsx("h2",{className:"yst-text-sm yst-font-semibold yst-text-slate-900",children:Xn(p,"MMMM yyyy")}),d.jsxs("button",{type:"button",onClick:C,className:"yst-rounded-md yst-p-1.5 yst-text-slate-400 hover:yst-bg-slate-100 hover:yst-text-slate-500",children:[d.jsx("span",{className:"yst-sr-only",children:"Next month"}),d.jsx(Lw,{className:"yst-h-5 yst-w-5"})]})]}),d.jsx("div",{className:"yst-mb-0 yst-grid yst-grid-cols-7 yst-gap-x-1",children:["M","T","W","T","F","S","S"].map(function(b,w){return d.jsx("div",{className:"yst-py-2 yst-text-center yst-text-xs yst-font-medium yst-text-slate-500",children:b},"".concat(b,"-").concat(w))})}),d.jsx("div",{className:"yst-grid yst-grid-cols-7 yst-gap-x-1",children:A.map(function(b){return d.jsx("div",{className:"yst-flex yst-items-center yst-justify-center yst-py-1",children:d.jsxs("button",{type:"button",onClick:function(){return S(b)},disabled:!b.hasAnalyses,className:le("yst-relative yst-rounded-full yst-text-sm yst-transition-colors","yst-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center","yst-p-0",{"yst-text-slate-900":b.isCurrentMonth,"yst-text-slate-400":!b.isCurrentMonth},{"focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-blue-500":b.hasAnalyses,"yst-cursor-not-allowed":!b.hasAnalyses,"yst-cursor-pointer":b.hasAnalyses},bl({},"".concat(vn.selected.background," ").concat(vn.selected.text," ").concat(vn.selected.hover),b.isSelected),bl({},"".concat(vn.hasAnalysis.border," ").concat(vn.hasAnalysis.text," ").concat(vn.hasAnalysis.hover),b.hasAnalyses&&!b.isSelected)),children:[d.jsx("span",{className:le("yst-relative yst-z-10 yst-w-4",bl({},vn.today.underline,b.isToday&&!b.isSelected)),children:Xn(b.dateObj,"d")}),b.hasAnalyses&&b.analyses.length>1&&!b.isSelected&&d.jsx("span",{className:le("yst-absolute yst-right-1 yst-top-1 yst-h-2 yst-w-2 yst-rounded-full",vn.indicator.default)})]})},b.date)})}),d.jsxs("div",{className:"yst-mt-4 yst-flex yst-items-center yst-gap-4 yst-text-xs yst-text-slate-600",children:[d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-1",children:[d.jsx("div",{className:"yst-h-3 yst-w-3 yst-rounded-full ".concat(vn.hasAnalysis.border)}),d.jsx("span",{children:"Has analysis"})]}),d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-1",children:[d.jsx("div",{className:"yst-h-3 yst-w-3 yst-rounded-full ".concat(vn.selected.background)}),d.jsx("span",{children:"Selected"})]}),d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-1",children:[d.jsx("div",{className:"yst-h-0.5 yst-w-4 yst-bg-slate-400"}),d.jsx("span",{children:"Today"})]})]}),m&&d.jsx("div",{className:"yst-mt-6",children:d.jsx(k.Button,{onClick:v,className:"yst-w-full",disabled:g,children:"Show latest analysis"})})]}):null};function _f(t,e){return SC(t)||AC(t,e)||wC(t,e)||xC()}function xC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wC(t,e){if(t){if(typeof t=="string")return Df(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Df(t,e):void 0}}function Df(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function AC(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function SC(t){if(Array.isArray(t))return t}var CC=function(e){var n=e.analyses,r=e.selectedAnalysisId,i=e.onAnalysisSelect,s=e.isLoading,a=s===void 0?!1:s,o=e.disabled,l=o===void 0?!1:o,u=e.id,c=u===void 0?"analysis-date-select":u,f=F.useState(!1),p=_f(f,2),h=p[0],y=p[1],m=F.useState("latest"),v=_f(m,2),g=v[0],A=v[1],E=F.useRef(null),C=F.useCallback(function(z){var I=Dr(z.createdAt);return I?I.getTime():-1/0},[]);F.useEffect(function(){if((r==="latest"||!r)&&n.length>0&&!a){var z=n.reduce(function(I,O){return C(O)>C(I)?O:I});i(z.id)}},[n,r,i,a,C]);var S=F.useMemo(function(){if(r==="latest"||!r){if(n.length>0){var z=n.reduce(function(I,O){return C(O)>C(I)?O:I});return z.id}return"latest"}return r},[r,n,C]);F.useEffect(function(){A(S)},[S]);var b=n.find(function(z){return String(z.id)===String(g)}),w=n.length>0?String(n.reduce(function(z,I){return C(I)>C(z)?I:z}).id):"",x=function(){if(b){var z=Dr(b.createdAt),I=z?Xn(z,"MMMM d, yyyy"):b.createdAt?b.createdAt.slice(0,10):"Unknown date",O=String(b.id)===w?"(latest)":"(older)";return"".concat(I," ").concat(O)}return n.length>0?"Select date...":"No analyses available"}();F.useEffect(function(){var z=function(O){E.current&&!E.current.contains(O.target)&&y(!1)};return h&&document.addEventListener("mousedown",z),function(){document.removeEventListener("mousedown",z)}},[h]);var N=function(){!l&&!a&&y(!h)},D=function(I){A(I),i(I),y(!1)},M=function(){y(!1)},T=function(I){I.key==="Enter"||I.key===" "?(I.preventDefault(),N()):I.key==="Escape"&&y(!1)};return d.jsxs("div",{ref:E,className:"yst-relative",children:[d.jsxs("div",{className:"yst-relative",children:[d.jsx(k.TextInput,{id:c,onClick:N,onKeyDown:T,onChange:function(){},disabled:l||a,value:x,"aria-expanded":h,"aria-haspopup":"true","aria-label":"Select analysis date",className:le("yst-pr-10",{"yst-cursor-default":!l&&!a})}),d.jsx(Ew,{className:le("yst-pointer-events-none yst-absolute yst-right-3 yst-top-1/2 yst--translate-y-1/2 yst-transform",{"yst-text-gray-400":l||a})})]}),d.jsx(bC,{analyses:n,selectedAnalysisId:g,onAnalysisSelect:D,isLoading:a,isOpen:h,onClose:M})]})};function Bf(t,e){return OC(t)||EC(t,e)||jC(t,e)||kC()}function kC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
34
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jC(t,e){if(t){if(typeof t=="string")return Ff(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ff(t,e):void 0}}function Ff(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function EC(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function OC(t){if(Array.isArray(t))return t}var zf=function(e){var n=e.id,r=e.isVisible,i=e.onClose,s=e.children,a=e.className,o=e.variant,l=o===void 0?"info":o,u=e.showArrow,c=u===void 0?!0:u,f=e.keepOpenOnExternalClick,p=f===void 0?!1:f,h=e.delay,y=h===void 0?0:h,m=F.useRef(null),v=F.useState(!1),g=Bf(v,2),A=g[0],E=g[1],C=F.useState(!1),S=Bf(C,2),b=S[0],w=S[1];return F.useEffect(function(){if(!r){(A||b)&&(E(!1),w(!1));return}if(r)if(y>0){w(!1),E(!1);var x=setTimeout(function(){E(!0),setTimeout(function(){return w(!0)},50)},y);return function(){return clearTimeout(x)}}else E(!0),w(!1)},[r,y]),F.useEffect(function(){if(!p){var x=function(D){m.current&&!m.current.contains(D.target)&&i()};return r&&document.addEventListener("mousedown",x),function(){document.removeEventListener("mousedown",x)}}},[r,i,p]),r?d.jsxs("div",{id:n,className:"yst-absolute yst-w-80",ref:m,children:[A&&c&&d.jsx("div",{className:le("yst-absolute yst-left-1/2 yst-top-full yst-z-[60] yst-mt-[7px] yst-h-3 yst-w-3 yst--translate-x-1/2 yst--translate-y-1/2 yst-rotate-45 yst-transform yst-border-l yst-border-t yst-border-gray-100 yst-bg-white",{"yst-opacity-0":y>0&&!b,"yst-animate-in yst-fade-in yst-slide-in-from-top-1 yst-duration-300":y>0&&b})}),d.jsx(k.Toast,{id:"".concat(n,"--toast"),className:le("yst-absolute yst-left-1/2 yst-top-full yst-z-50 yst-mt-2 yst-w-80 yst--translate-x-1/2 yst-transform",{"yst-block":A,"yst-hidden":!A,"yst-opacity-0":y>0&&A&&!b,"yst-animate-in yst-fade-in yst-slide-in-from-top-2 yst-duration-300":y>0&&b},a),variant:l,isVisible:A,setIsVisible:function(){},autoDismiss:0,children:s})]}):null},PC=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Nc=function(e){return e.some(function(n){return n.canManualRetry})?"can_retry":e.some(function(n){return n.manualRetryCount===1&&!n.canManualRetry&&n.nextManualRetryAfter!=null})?"cooldown":e.some(function(n){return n.manualRetryCount>=2})?"exhausted":"none"},E0=function(e){var n=new Date(e),r=Xn(n,"h:mm a");return C0(n)?"today at ".concat(r):oC(n)?"tomorrow at ".concat(r):"".concat(Xn(n,"MMM d")," at ").concat(r)},O0=function(e){return e.map(function(n){return n.nextManualRetryAfter}).filter(function(n){return n!=null}).sort()[0]},TC=function(e,n){return"incomplete_analysis_dismissed_".concat(e,"_").concat(n)};function Lu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return Dt(A,"_invoke",function(E,C,S){var b,w,x,N=0,D=S||[],M=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(O,B){return b=O,w=0,x=t,T.n=B,a}};function z(I,O){for(w=I,x=O,e=0;!M&&N&&!B&&e<D.length;e++){var B,R=D[e],Y=T.p,Q=R[2];I>3?(B=Q===O)&&(x=R[(w=R[4])?5:(w=3,3)],R[4]=R[5]=t):R[0]<=Y&&((B=I<2&&Y<R[1])?(w=0,T.v=O,T.n=R[1]):Y<Q&&(B=I<3||R[0]>O||O>Q)&&(R[4]=I,R[5]=O,T.n=Q,w=0))}if(B||I>1)return a;throw M=!0,O}return function(I,O,B){if(N>1)throw TypeError("Generator is already running");for(M&&O===1&&z(O,B),w=O,x=B;(e=w<2?t:x)||!M;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(I="next"),e=b[I]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+I+"' method"),w=1);b=t}else if((e=(M=T.n<0)?x:E.call(C,T))!==a)break}catch(R){b=t,w=1,x=R}finally{N=1}}return{value:e,done:M}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(Dt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,Dt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,Dt(f,"constructor",u),Dt(u,"constructor",l),l.displayName="GeneratorFunction",Dt(u,i,"GeneratorFunction"),Dt(f),Dt(f,i,"Generator"),Dt(f,r,function(){return this}),Dt(f,"toString",function(){return"[object Generator]"}),(Lu=function(){return{w:s,m:p}})()}function Dt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}Dt=function(a,o,l,u){function c(f,p){Dt(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},Dt(t,e,n,r)}function Uf(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function IC(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){Uf(s,r,i,a,o,"next",l)}function o(l){Uf(s,r,i,a,o,"throw",l)}a(void 0)})}}var P0=function(e,n){var r=Kt();return Ex({mutation:{onSuccess:function(){var i=IC(Lu().m(function a(){return Lu().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,Promise.all([r.invalidateQueries({queryKey:fn(e,n)}),r.invalidateQueries({queryKey:Uo(e)})]);case 1:return o.a(2)}},a)}));function s(){return i.apply(this,arguments)}return s}()}})},MC=function(e){var n=e.failedScans,r=e.brandId,i=e.analysisId,s=e.onDismiss,a=Nc(n),o=P0(r,i),l=o.mutate,u=o.isPending;if(a==="none")return null;var c=function(){n.filter(function(g){return g.canManualRetry}).forEach(function(g){l({brandId:r,analysisId:i,scanId:g.id})})},f=d.jsx(k.Link,{as:"button",className:"yst-py-1.5 yst-pr-2 yst-no-underline yst-text-inherit yst-font-medium",onClick:s,variant:"default",children:"Dismiss"}),p=d.jsx("div",{className:"yst-ml-auto yst-flex-shrink-0",children:d.jsx(k.Link,{onClick:s,variant:"default",children:d.jsx(Ic,{className:"yst-h-4 yst-w-4"})})}),h=function(){return d.jsx(k.Alert,{variant:"error",children:d.jsxs("div",{className:"yst-flex yst-w-full",children:[d.jsxs("div",{className:"yst-flex-1 yst-space-y-2",children:[d.jsx("p",{className:"yst-mb-0 yst-font-medium",children:"Analysis incomplete"}),d.jsx("p",{className:"yst-mb-0",children:"We couldn't retrieve results for all AI platforms. Please run the analysis again to complete the dataset."}),d.jsxs("div",{className:"yst-flex yst-gap-4",children:[d.jsx(k.Link,{as:"button",className:"yst-py-1.5 yst-pr-2 yst-no-underline yst-text-inherit yst-font-medium",onClick:c,variant:"default",children:u?"Running...":"Run analysis again"}),f]})]}),p]})})},y=function(){var g=O0(n);return d.jsx(k.Alert,{variant:"info",children:d.jsxs("div",{className:"yst-flex yst-w-full",children:[d.jsxs("div",{className:"yst-flex-1 yst-space-y-2",children:[d.jsx("p",{className:"yst-mb-0 yst-font-medium",children:"Analysis still incomplete"}),d.jsxs("p",{className:"yst-mb-0",children:["We still can't retrieve the data. Please wait 24 hours before trying again.",g&&d.jsxs(d.Fragment,{children:[d.jsx("br",{}),"Next retry available: ",d.jsx("strong",{children:PC(E0(g))}),"."]})]})]}),p]})})},m=function(){return d.jsx(k.Alert,{variant:"error",children:d.jsxs("div",{className:"yst-flex yst-w-full",children:[d.jsxs("div",{className:"yst-flex-1 yst-space-y-2",children:[d.jsx("p",{className:"yst-mb-0 yst-font-medium",children:"Analysis still incomplete"}),d.jsx("p",{className:"yst-mb-0",children:"Re-running the analysis didn't resolve the issue. Please contact support so we can investigate the missing data for you."}),d.jsxs("div",{className:"yst-flex yst-gap-4",children:[d.jsx(k.Link,{href:"mailto:support@yoast.com",className:"yst-py-1.5 yst-pr-2 yst-no-underline yst-text-inherit yst-font-medium",variant:"default",children:"Contact support"}),f]})]}),p]})})};return a==="can_retry"?h():a==="cooldown"?y():m()},LC=function(e){var n=e.failedScans,r=e.brandId,i=e.analysisId,s=Nc(n),a=P0(r,i),o=a.mutate,l=a.isPending;if(s==="none")return null;var u=function(p){p.preventDefault(),n.filter(function(h){return h.canManualRetry}).forEach(function(h){o({brandId:r,analysisId:i,scanId:h.id})})};if(s==="can_retry")return l?d.jsx("p",{className:"yst-text-sm yst-text-red-600 yst-mt-1 yst-mb-0",children:"Preparing the scan retry..."}):d.jsxs("p",{className:"yst-text-sm yst-text-red-600 yst-mt-1 yst-mb-0",children:["Analysis incomplete. Please"," ",d.jsx(k.Link,{as:"button",type:"button",className:"yst-text-sm yst-text-red-600",onClick:u,variant:"default",children:"run analysis again"}),"."]});if(s==="cooldown"){var c=O0(n);return d.jsxs("p",{className:"yst-text-sm yst-text-red-600 yst-mt-1 yst-mb-0",children:["Analysis incomplete."," ",c?"You can run the analysis again ".concat(E0(c),"."):"You can run the analysis again later."]})}return d.jsxs("p",{className:"yst-text-sm yst-text-red-600 yst-mt-1 yst-mb-0",children:["Analysis incomplete. Please"," ",d.jsx(k.Link,{href:"mailto:support@yoast.com",className:"yst-text-sm yst-text-red-600",variant:"default",children:"contact support"}),"."]})};function Ys(t){"@babel/helpers - typeof";return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ys(t)}var Hf;function Ea(t,e,n){return(e=NC(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function NC(t){var e=RC(t,"string");return Ys(e)=="symbol"?e:e+""}function RC(t,e){if(Ys(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Nu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return Bt(A,"_invoke",function(E,C,S){var b,w,x,N=0,D=S||[],M=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(O,B){return b=O,w=0,x=t,T.n=B,a}};function z(I,O){for(w=I,x=O,e=0;!M&&N&&!B&&e<D.length;e++){var B,R=D[e],Y=T.p,Q=R[2];I>3?(B=Q===O)&&(x=R[(w=R[4])?5:(w=3,3)],R[4]=R[5]=t):R[0]<=Y&&((B=I<2&&Y<R[1])?(w=0,T.v=O,T.n=R[1]):Y<Q&&(B=I<3||R[0]>O||O>Q)&&(R[4]=I,R[5]=O,T.n=Q,w=0))}if(B||I>1)return a;throw M=!0,O}return function(I,O,B){if(N>1)throw TypeError("Generator is already running");for(M&&O===1&&z(O,B),w=O,x=B;(e=w<2?t:x)||!M;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(I="next"),e=b[I]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+I+"' method"),w=1);b=t}else if((e=(M=T.n<0)?x:E.call(C,T))!==a)break}catch(R){b=t,w=1,x=R}finally{N=1}}return{value:e,done:M}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(Bt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,Bt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,Bt(f,"constructor",u),Bt(u,"constructor",l),l.displayName="GeneratorFunction",Bt(u,i,"GeneratorFunction"),Bt(f),Bt(f,i,"Generator"),Bt(f,r,function(){return this}),Bt(f,"toString",function(){return"[object Generator]"}),(Nu=function(){return{w:s,m:p}})()}function Bt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}Bt=function(a,o,l,u){function c(f,p){Bt(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},Bt(t,e,n,r)}function qf(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function _C(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){qf(s,r,i,a,o,"next",l)}function o(l){qf(s,r,i,a,o,"throw",l)}a(void 0)})}}function pi(t,e){return zC(t)||FC(t,e)||BC(t,e)||DC()}function DC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
35
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BC(t,e){if(t){if(typeof t=="string")return Wf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wf(t,e):void 0}}function Wf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function FC(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function zC(t){if(Array.isArray(t))return t}function UC(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Gf="perplexity_tooltip_dismissed",HC=new Date("2026-01-13"),Qf="gemini_tooltip_dismissed",qC=new Date("2026-03-01"),xl=Zi(Hf||(Hf=UC(["yst-flex-1 yst-space-y-2"]))),WC=function(e){for(var n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);n=(n<<5)-n+i,n=n&n}return Math.abs(n).toString(36)},Yf=function(e,n,r,i){var s="".concat(e,"_").concat(n,"_").concat(r,"_").concat(i),a=WC(s);return"yst_legal_alert_dismissed_".concat(a)},GC=function(e,n){return"yst_legal_alert_dismissed_".concat(e,"_").concat(n)},QC=function(e){var n,r,i,s,a,o,l,u,c,f=e.className,p=Tt(),h=p.brandId,y=p.analysisId,m=p.aiProvider,v=pa(),g=v.setAiProvider,A=v.setAnalysisId,E=Kt(),C=ft(),S=F.useState(function(){return localStorage.getItem(Gf)==="true"}),b=pi(S,2),w=b[0],x=b[1],N=F.useState(function(){return localStorage.getItem(Qf)==="true"}),D=pi(N,2),M=D[0],T=D[1],z=rr(),I=z.data,O=ha({query:{select:function(we){var je=we.data;return je}}}),B=O.data,R=O.isLoading,Y=B==null?void 0:B.data,Q=Y==null?void 0:Y.displayName,j=li({query:{select:function(we){var je=we.data;return je==null?void 0:je.brands}}}),W=j.data,q=j.isLoading,P=Ec(h,{query:{enabled:!!h,select:function(we){var je=we.data;return je==null?void 0:je.analyses}}}),G=P.data,J=P.isLoading,K=Ho(h,y,{query:{enabled:!!h&&!!y,select:function(we){var je=we.data;return je}}}),Z=K.data,oe=K.isLoading,ue=(n=Z==null||(r=Z.analysis)===null||r===void 0?void 0:r.completedScans)!==null&&n!==void 0?n:[],ie=(i=Z==null||(s=Z.analysis)===null||s===void 0?void 0:s.failedScans)!==null&&i!==void 0?i:[],Oe=(a=Z==null||(o=Z.analysis)===null||o===void 0?void 0:o.pendingScans)!==null&&a!==void 0?a:[],$=Nc(ie),Ue=TC(y,$),Mt=F.useState(function(){return localStorage.getItem(Ue)!==null}),st=pi(Mt,2),Ye=st[0],et=st[1];F.useEffect(function(){et(localStorage.getItem(Ue)!==null)},[Ue]);var yn=function(){localStorage.setItem(Ue,"true"),et(!0)},at=ue.some(function(se){return se.aiProvider===un.perplexity}),Ln=ue.some(function(se){return se.aiProvider===un.gemini}),Nn=F.useMemo(function(){return new Date},[]),ze=Nn<HC&&!w&&(I==null?void 0:I.aiProvider)!==un.perplexity&&!!at,pe=Nn<qC&&!M&&(I==null?void 0:I.aiProvider)!==un.gemini&&!!Ln,ye=zs(h,{query:{enabled:!!h,select:function(we){var je=we.data;return je}}}),me=ye.data,U=F.useState(!1),X=pi(U,2),ce=X[0],ve=X[1],Pe=function(){ve(!1)},tt=Cx({mutation:{onSuccess:function(){var se=_C(Nu().m(function je(){var Lt,ln,_n,Pr,sl,al,ol;return Nu().w(function(fi){for(;;)switch(fi.n){case 0:if(Lt=Z==null?void 0:Z.analysis,ln=(Lt==null?void 0:Lt.completedScans)||[],_n=G||[],Pr=function(){return Promise.all([E.invalidateQueries({queryKey:Uo(h)}),E.invalidateQueries({queryKey:fn(h,y)}),E.invalidateQueries({queryKey:qo(h)})])},ve(!1),Lt){fi.n=2;break}return C("/brands/".concat(h)),fi.n=1,Pr();case 1:return fi.a(2);case 2:return sl=ln.filter(function(Tr){return Tr.aiProvider!==m}),sl.length>0?g(sl[0].aiProvider):(al=_n.filter(function(Tr){return Tr.id!==y}),al.length>0?(ol=al.reduce(function(Tr,md){return new Date(md.createdAt||0)>new Date(Tr.createdAt||0)?md:Tr}),A(ol.id),C("/brands/".concat(h,"/analysis/").concat(ol.id))):(A("latest"),C("/brands/".concat(h)))),fi.n=3,Pr();case 3:return fi.a(2)}},je)}));function we(){return se.apply(this,arguments)}return we}()}}),Xt=tt.mutate,xt=tt.isPending,Rn=F.useState(!1),mn=pi(Rn,2),it=mn[0],on=mn[1],Xe=W==null?void 0:W.find(function(se){return String(se.id)===String(h)}),ci=function(we){switch(we){case"openai":return"ChatGPT";case"perplexity":return"Perplexity AI";case"anthropic":return"Anthropic";case"gemini":return"Gemini";default:return we||"Unknown"}},di=ue.length>0?ue.map(function(se){return{value:se.aiProvider,label:ci(se.aiProvider)}}):[{value:"",label:"AI platform"}];F.useEffect(function(){if(ue.length>0){var se=ue.map(function(je){return je.aiProvider});if(!m||!se.includes(m)){var we=ue[0].aiProvider;we&&g(we)}}},[ue,m,g]);var xa=G!=null&&G.some(function(se){return String(se.id)===String(y)})?y:G&&G.length>0?G[0].id:"latest",ne=zs(h,{query:{enabled:!!h,select:function(we){var je=we.data;return je}}}),te=ne.data,he=(te==null?void 0:te.name)||"your brand",ge=Mu(te==null?void 0:te.nextScheduledAnalysis),ke=Z==null||(l=Z.analysis)===null||l===void 0?void 0:l.status,ot=F.useState(!1),ir=pi(ot,2),pv=ir[0],il=ir[1];F.useEffect(function(){var se,we=Z==null||(se=Z.analysis)===null||se===void 0?void 0:se.id,je=Y==null?void 0:Y.id;if(!h||!we||!m||!je||ke!==An.completed){il(!1);return}var Lt=Yf(je,h,we,m),ln=window.localStorage.getItem(Lt)!==null;if(!ln&&m==="openai"){var _n=GC(h,we),Pr=window.localStorage.getItem(_n)!==null;Pr&&(window.localStorage.setItem(Lt,"true"),window.localStorage.removeItem(_n),ln=!0)}il(!ln)},[h,Z==null||(u=Z.analysis)===null||u===void 0?void 0:u.id,ke,m,Y==null?void 0:Y.id]);var yv=function(we){var je;we.preventDefault();var Lt=Z==null||(je=Z.analysis)===null||je===void 0?void 0:je.id,ln=Y==null?void 0:Y.id;if(!(!h||!Lt||!m||!ln)){var _n=Yf(ln,h,Lt,m);window.localStorage.setItem(_n,"true"),il(!1)}},fd=d.jsxs("div",{className:"yst-max-w-xl yst-space-y-2",children:[d.jsx("p",{className:"yst-font-medium",children:"Your analysis is scheduled"}),d.jsxs("p",{children:["You've completed the setup for"," ",d.jsx("b",{className:"yst-font-medium",children:he}),". The analysis is scheduled to run on"," ",d.jsx("b",{className:"yst-font-medium",children:ge}),". You'll see the results here once it's ready. We'll also notify you by email."]})]}),mv=Ea(Ea(Ea(Ea({scheduledFirstAnalysis:{alertContent:fd,alertVariant:"info"}},An.pending,{alertContent:fd,alertVariant:"info"}),An.processing,{alertContent:d.jsxs(d.Fragment,{children:["You've completed the setup for ",he,". The analysis is now processing. You'll see the results here once it's ready. We'll also notify you by email."]}),alertVariant:"info"}),An.failed,{alertContent:d.jsx(d.Fragment,{children:"Analysis failed. Try restarting the analysis or contact support if the issue persists."}),alertVariant:"danger"}),An.cancelled,{alertContent:d.jsx(d.Fragment,{children:"Analysis was cancelled. You can restart the analysis when ready."}),alertVariant:"warning"}),gv=!ke&&(me==null?void 0:me.setupStatus)==="scheduledFirstAnalysis"?"scheduledFirstAnalysis":ke,hd=(c=mv[gv])!==null&&c!==void 0?c:{alertContent:null,alertVariant:"info"},pd=hd.alertContent,vv=hd.alertVariant,bv=!J&&(me==null?void 0:me.setupStatus)!=="pendingQuerySelection"&&(G==null?void 0:G.length)===0&&(me==null?void 0:me.nextScheduledAnalysis)===null,yd=ke===An.completed&&I&&["updating","completed"].includes(I.status)&&!I.isUpToDateWithBrandGroups,xv=(I==null?void 0:I.status)===sS.updating&&yd===!0,wv=function(){var we,je,Lt=(we=B==null?void 0:B.maxNumberOfActiveBrands)!==null&&we!==void 0?we:0,ln=(je=B==null?void 0:B.numberOfActiveBrands)!==null&&je!==void 0?je:0,_n=Lt-ln,Pr=_n>0;if(!Pr){on(!0);return}C("/setup")},wa=function(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;x(!0),we&&localStorage.setItem(Gf,"true")},Aa=function(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;T(!0),we&&localStorage.setItem(Qf,"true")};return d.jsxs(d.Fragment,{children:[d.jsx(l0,{isOpen:it,onClose:function(){return on(!1)}}),d.jsx(Yo,{isOpen:ce,onClose:Pe,onConfirm:function(){h&&y&&I!==null&&I!==void 0&&I.id&&Xt({brandId:h,analysisId:y,scanId:I.id})},isLoading:xt,title:"Delete ".concat(ci(m)," analysis?"),description:d.jsxs(d.Fragment,{children:[d.jsxs("p",{children:["This will permanently delete the"," ",d.jsx("b",{children:ci(m)})," analysis for"," ",d.jsx("b",{children:I!=null&&I.finishedAt?Xn(new Date(I.finishedAt),"MMMM d, yyyy"):"this date"}),". Analyses from other AI platforms for that date will not be affected."]}),d.jsx("p",{children:"This action cannot be undone."})]}),confirmText:"Yes, delete analysis",cancelText:"No, go back"}),ie.length>0&&!Ye&&d.jsx(MC,{failedScans:ie,brandId:h,analysisId:y,onDismiss:yn}),d.jsx(k.Card,{className:le("yst-relative yst-overflow-visible",f),children:d.jsxs(k.Card.Content,{className:"yst-mt-0",children:[d.jsxs("div",{className:"yst-flex yst-flex-1 yst-flex-col yst-flex-wrap yst-items-start yst-justify-between yst-gap-4 md:yst-flex-row xl:yst-items-center",children:[d.jsx("div",{className:"xl:yst-max-w-1/4",children:d.jsxs("div",{className:"yst-flex yst-flex-col yst-gap-2 lg:yst-gap-2 xl:yst-flex-row xl:yst-items-baseline",children:[d.jsx(k.Title,{children:d.jsxs(d.Fragment,{children:[R?d.jsx(k.SkeletonLoader,{className:"yst-inline-block yst-h-8 yst-w-64"}):d.jsxs(d.Fragment,{children:["Hi",Q&&" ".concat(Q),","]})," "]})}),d.jsx("p",{className:"yst-text-sm yst-font-normal yst-text-slate-600",children:"welcome to your brand analysis!"})]})}),d.jsxs("div",{className:"yst-flex yst-flex-row yst-flex-wrap yst-items-center yst-justify-end yst-gap-4 yst-self-end md:yst-self-start",children:[d.jsxs(k.Button,{variant:"primary",onClick:wv,disabled:J||q||R,children:[d.jsx(a0,{})," Analyze a different brand"]}),d.jsx("div",{className:"yst-relative yst-flex yst-items-center",children:d.jsxs(k.DropdownMenu,{children:[d.jsx(k.DropdownMenu.IconTrigger,{screenReaderTriggerLabel:"Open brand list options",disabled:J||q||W&&(W==null?void 0:W.length)<1,children:d.jsx(Fw,{})}),d.jsx(k.DropdownMenu.List,{className:"yst-absolute yst-right-0 yst-top-full yst-z-40 yst-mt-2 yst-flex yst-w-64 yst-flex-col yst-justify-start",children:d.jsxs(k.DropdownMenu.ButtonItem,{className:"yst-flex yst-justify-start yst-text-red-600 hover:yst-bg-red-50",onClick:function(){return ve(!0)},disabled:!I,children:[d.jsx(Oc,{className:"yst-h-4 yst-w-4"}),"Delete analysis"]})})]})})]})]}),d.jsx(Xi,{}),d.jsxs("form",{className:"yst-flex yst-flex-col yst-items-stretch yst-gap-4 md:yst-flex-row md:yst-items-start",children:[d.jsxs(xl,{className:"yst-relative",children:[d.jsx(k.Label,{htmlFor:"brand-name",children:"Brand"}),d.jsx(k.Select,{onChange:function(se){C("/brands/".concat(se))},id:"brand-name",value:h||"loading",options:W&&W.length>0?W.map(function(se){return{value:se.id,label:se.name}}):[{value:"loading",label:"Loading..."}],disabled:q||!W||W.length<2||!h})]}),d.jsxs(xl,{className:"yst-relative",children:[d.jsx(k.Label,{htmlFor:"analysis-date",children:"Analysis date"}),d.jsx(CC,{analyses:G||[],selectedAnalysisId:xa,onAnalysisSelect:function(se){C("/brands/".concat(h,"/analysis/").concat(String(se)))},isLoading:J,disabled:J||!G||G.length<1,id:"analysis-date"})]}),d.jsxs(xl,{className:"yst-relative",children:[d.jsx("div",{className:"yst-flex yst-items-center yst-gap-2",children:d.jsx(k.Label,{htmlFor:"ai-tool",children:"AI platform"})}),d.jsx(k.Select,{onChange:function(se){Object.values(un).includes(se)?g(se):console.error("Invalid AI provider selected:",se),se===un.perplexity&&wa(),se===un.gemini&&Aa()},id:"ai-tool",value:m,options:oe||J?[{value:m,label:"Loading..."}]:di,disabled:oe||J||di.length<2,buttonProps:{className:le("yst-select__button",{"yst-ring-2 yst-ring-primary-500":ze||pe})}}),ie.length>0&&Ye&&d.jsx(LC,{failedScans:ie,brandId:h,analysisId:y}),d.jsx(zf,{id:"perplexity-introduction-popover",isVisible:ze,onClose:function(){return wa(!1)},variant:"info",delay:2e3,children:d.jsxs("div",{className:"yst-space-y-3",children:[d.jsxs("div",{className:"yst-flex yst-items-start yst-gap-2",children:[d.jsx(Pu,{className:"yst-mt-0.5 yst-h-4 yst-w-4 yst-flex-shrink-0"}),d.jsxs("div",{className:"yst-flex-1 yst-space-y-1",children:[d.jsx(k.Title,{size:"4",className:"yst-text-sm yst-font-medium",children:"New: See how your brand appears in Perplexity"}),d.jsxs("p",{className:"yst-mb-4 yst-text-sm",children:["Select 'Perplexity' from the"," ",d.jsx("strong",{className:"yst-font-medium",children:"AI platform"})," ","dropdown to see how your brand appears."]})]})]}),d.jsxs("div",{className:"yst-flex yst-justify-end yst-gap-2",children:[d.jsx(k.Button,{variant:"tertiary",size:"small",onClick:function(){return wa(!0)},children:"Dismiss"}),d.jsx(k.Button,{variant:"primary",size:"small",onClick:function(){var se=di.find(function(we){return we.value===un.perplexity});se&&g(un.perplexity),wa(!0)},children:"Select Perplexity"})]})]})}),d.jsx(zf,{id:"gemini-introduction-popover",isVisible:pe,onClose:function(){return Aa(!1)},variant:"info",delay:2e3,children:d.jsxs("div",{className:"yst-space-y-3",children:[d.jsxs("div",{className:"yst-flex yst-items-start yst-gap-2",children:[d.jsx(Pu,{className:"yst-mt-0.5 yst-h-4 yst-w-4 yst-flex-shrink-0"}),d.jsxs("div",{className:"yst-flex-1 yst-space-y-1",children:[d.jsx(k.Title,{size:"4",className:"yst-text-sm yst-font-medium",children:"New: See how your brand appears in Gemini"}),d.jsxs("p",{className:"yst-mb-4 yst-text-sm",children:["Select 'Gemini' from the"," ",d.jsx("strong",{className:"yst-font-medium",children:"AI platform"})," ","dropdown to see how your brand appears."]})]})]}),d.jsxs("div",{className:"yst-flex yst-justify-end yst-gap-2",children:[d.jsx(k.Button,{variant:"tertiary",size:"small",onClick:function(){return Aa(!0)},children:"Dismiss"}),d.jsx(k.Button,{variant:"primary",size:"small",onClick:function(){var se=di.find(function(we){return we.value===un.gemini});se&&g(un.gemini),Aa(!0)},children:"Select Gemini"})]})]})})]})]})]})}),d.jsxs("div",{className:"ystaii-alerts yst-space-y-4",children:[pv&&d.jsx(k.Alert,{children:d.jsxs("div",{className:"yst-flex yst-w-full",children:[d.jsx("div",{className:"yst-max-w-xl yst-space-y-4",children:d.jsx("p",{className:"yst-mb-0",children:"Note: These insights are produced using AI and may contain errors."})}),d.jsx("div",{className:"yst-ml-auto",children:d.jsx(k.Link,{onClick:yv,variant:"default",children:d.jsx(Ic,{})})})]})}),ke!==An.completed&&pd&&d.jsx(k.Alert,{className:"md:yst-col-span-2",variant:vv,children:pd}),ke===An.completed&&Oe.some(function(se){return se.manualRetryCount>=1})&&d.jsx(k.Alert,{variant:"info",children:function(){var se=Oe.filter(function(je){return je.manualRetryCount>=1}),we=se.map(function(je){return ci(je.aiProvider)});return se.length===1?d.jsxs(d.Fragment,{children:["Retrying the ",we[0]," scan — this may take a few minutes."]}):d.jsxs(d.Fragment,{children:["Retrying the ",we.join(" and ")," scans — this may take a few minutes."]})}()}),yd&&d.jsxs(k.Alert,{variant:"warning",children:["Note: This scan is not up to date with your current brand groups.",xv?d.jsxs(d.Fragment,{children:[" ","We're updating your sentiment analysis to reflect your new brand groups. This may take a few minutes."]}):d.jsx(d.Fragment,{children:" Newer scans will use your newly selected brand groupings."})]})]}),bv&&d.jsx(k.Alert,{variant:"info",className:"yst-mb-6",children:d.jsx("div",{className:"yst-flex yst-items-start yst-gap-3",children:d.jsxs("div",{className:"yst-flex-1",children:[d.jsx("h3",{className:"yst-mb-2 yst-font-medium yst-text-blue-800",children:"No analyses scheduled"}),d.jsxs("p",{className:"yst-text-bluer-700 yst-mb-0",children:[d.jsx("span",{className:"yst-font-medium yst-text-blue-900",children:Xe==null?void 0:Xe.name})," ","has not been analyzed yet, and no analyses are scheduled because this brand is set to inactive in your"," ",d.jsx("span",{className:"yst-cursor-pointer yst-font-medium yst-text-blue-900 yst-underline",onClick:function(){return C("/settings")},role:"button",tabIndex:0,onKeyPress:function(se){(se.key==="Enter"||se.key===" ")&&C("/settings")},children:"Settings"}),"."]})]})})}),Xe&&d.jsx(uC,{brand:Xe},Xe.id)]})},YC=function(){var e,n,r,i=rr(),s=i.data,a=i.isLoading,o=i.isRefetching,l=s==null?void 0:s.mentions;return d.jsx(k.Card,{className:"yst-overflow-visible",children:d.jsxs(k.Card.Content,{className:"yst-space-y-4",children:[d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(ma,{title:"Mentions",tooltip:"The queries where your brand was mentioned."}),d.jsx(ya,{score:l==null||(e=l.mentionedInNumberOfQueries)===null||e===void 0?void 0:e.value,total:l==null||(n=l.queriesWithMentions)===null||n===void 0?void 0:n.length,suffix:"queries",isLoading:a||o})]}),!a&&l?d.jsx("ul",{children:l==null||(r=l.queriesWithMentions)===null||r===void 0?void 0:r.map(function(u,c){var f=c===0,p=l.queriesWithMentions&&c===l.queriesWithMentions.length-1;return d.jsxs("li",{className:le("yst-flex yst-flex-row yst-items-center yst-gap-2 yst-border-l yst-border-r yst-border-slate-300 yst-p-4 yst-font-medium yst-text-slate-800",{"yst-rounded-t-lg yst-border-t":f,"yst-rounded-b-lg yst-border-b":p,"yst-border-b":!p}),children:[d.jsx("div",{className:"yst-h-4 yst-w-4",children:u!=null&&u.mentioned?d.jsx(Pw,{className:"yst-text-green-500"}):d.jsx(tA,{className:"yst-text-red-500"})}),d.jsx("span",{className:"yst-justify-start",children:u.query}),d.jsx("span",{className:"yst-ml-auto yst-flex yst-items-end",children:u!=null&&u.mentioned?d.jsx(k.Badge,{className:"yst-bg-green-100 yst-text-green-800",children:"Found"}):d.jsx(k.Badge,{className:"yst-bg-red-100 yst-text-red-800",children:"Not found"})})]},u.query)})}):d.jsx(k.SkeletonLoader,{className:"yst-h-56 yst-w-full"})]})})};/*!
36
36
  * @kurkle/color v0.3.4
37
37
  * https://github.com/kurkle/color#readme
38
38
  * (c) 2024 Jukka Kurkela
39
39
  * Released under the MIT License
40
- */function ga(t){return t+.5|0}const mr=(t,e,n)=>Math.max(Math.min(t,n),e);function xs(t){return mr(ga(t*2.55),0,255)}function wr(t){return mr(ga(t*255),0,255)}function Un(t){return mr(ga(t/2.55)/100,0,1)}function Rf(t){return mr(ga(t*100),0,100)}const Jt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Tu=[..."0123456789ABCDEF"],yC=t=>Tu[t&15],mC=t=>Tu[(t&240)>>4]+Tu[t&15],Ea=t=>(t&240)>>4===(t&15),gC=t=>Ea(t.r)&&Ea(t.g)&&Ea(t.b)&&Ea(t.a);function vC(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Jt[t[1]]*17,g:255&Jt[t[2]]*17,b:255&Jt[t[3]]*17,a:e===5?Jt[t[4]]*17:255}:(e===7||e===9)&&(n={r:Jt[t[1]]<<4|Jt[t[2]],g:Jt[t[3]]<<4|Jt[t[4]],b:Jt[t[5]]<<4|Jt[t[6]],a:e===9?Jt[t[7]]<<4|Jt[t[8]]:255})),n}const bC=(t,e)=>t<255?e(t):"";function xC(t){var e=gC(t)?yC:mC;return t?"#"+e(t.r)+e(t.g)+e(t.b)+bC(t.a,e):void 0}const wC=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function d0(t,e,n){const r=e*Math.min(n,1-n),i=(s,a=(s+t/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function AC(t,e,n){const r=(i,s=(i+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return[r(5),r(3),r(1)]}function SC(t,e,n){const r=d0(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function CC(t,e,n,r,i){return t===i?(e-n)/r+(e<n?6:0):e===i?(n-t)/r+2:(t-e)/r+4}function Pc(t){const n=t.r/255,r=t.g/255,i=t.b/255,s=Math.max(n,r,i),a=Math.min(n,r,i),o=(s+a)/2;let l,u,c;return s!==a&&(c=s-a,u=o>.5?c/(2-s-a):c/(s+a),l=CC(n,r,i,c,s),l=l*60+.5),[l|0,u||0,o]}function Tc(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(wr)}function Ic(t,e,n){return Tc(d0,t,e,n)}function kC(t,e,n){return Tc(SC,t,e,n)}function jC(t,e,n){return Tc(AC,t,e,n)}function f0(t){return(t%360+360)%360}function EC(t){const e=wC.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?xs(+e[5]):wr(+e[5]));const i=f0(+e[2]),s=+e[3]/100,a=+e[4]/100;return e[1]==="hwb"?r=kC(i,s,a):e[1]==="hsv"?r=jC(i,s,a):r=Ic(i,s,a),{r:r[0],g:r[1],b:r[2],a:n}}function OC(t,e){var n=Pc(t);n[0]=f0(n[0]+e),n=Ic(n),t.r=n[0],t.g=n[1],t.b=n[2]}function PC(t){if(!t)return;const e=Pc(t),n=e[0],r=Rf(e[1]),i=Rf(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${Un(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const _f={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Df={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function TC(){const t={},e=Object.keys(Df),n=Object.keys(_f);let r,i,s,a,o;for(r=0;r<e.length;r++){for(a=o=e[r],i=0;i<n.length;i++)s=n[i],o=o.replace(s,_f[s]);s=parseInt(Df[a],16),t[o]=[s>>16&255,s>>8&255,s&255]}return t}let Oa;function IC(t){Oa||(Oa=TC(),Oa.transparent=[0,0,0,0]);const e=Oa[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const MC=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function LC(t){const e=MC.exec(t);let n=255,r,i,s;if(e){if(e[7]!==r){const a=+e[7];n=e[8]?xs(a):mr(a*255,0,255)}return r=+e[1],i=+e[3],s=+e[5],r=255&(e[2]?xs(r):mr(r,0,255)),i=255&(e[4]?xs(i):mr(i,0,255)),s=255&(e[6]?xs(s):mr(s,0,255)),{r,g:i,b:s,a:n}}}function NC(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Un(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const vl=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,di=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function RC(t,e,n){const r=di(Un(t.r)),i=di(Un(t.g)),s=di(Un(t.b));return{r:wr(vl(r+n*(di(Un(e.r))-r))),g:wr(vl(i+n*(di(Un(e.g))-i))),b:wr(vl(s+n*(di(Un(e.b))-s))),a:t.a+n*(e.a-t.a)}}function Pa(t,e,n){if(t){let r=Pc(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=Ic(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function h0(t,e){return t&&Object.assign(e||{},t)}function Bf(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=wr(t[3]))):(e=h0(t,{r:0,g:0,b:0,a:1}),e.a=wr(e.a)),e}function _C(t){return t.charAt(0)==="r"?LC(t):EC(t)}class Ys{constructor(e){if(e instanceof Ys)return e;const n=typeof e;let r;n==="object"?r=Bf(e):n==="string"&&(r=vC(e)||IC(e)||_C(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=h0(this._rgb);return e&&(e.a=Un(e.a)),e}set rgb(e){this._rgb=Bf(e)}rgbString(){return this._valid?NC(this._rgb):void 0}hexString(){return this._valid?xC(this._rgb):void 0}hslString(){return this._valid?PC(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,i=e.rgb;let s;const a=n===s?.5:n,o=2*a-1,l=r.a-i.a,u=((o*l===-1?o:(o+l)/(1+o*l))+1)/2;s=1-u,r.r=255&u*r.r+s*i.r+.5,r.g=255&u*r.g+s*i.g+.5,r.b=255&u*r.b+s*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=RC(this._rgb,e._rgb,n)),this}clone(){return new Ys(this.rgb)}alpha(e){return this._rgb.a=wr(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=ga(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Pa(this._rgb,2,e),this}darken(e){return Pa(this._rgb,2,-e),this}saturate(e){return Pa(this._rgb,1,e),this}desaturate(e){return Pa(this._rgb,1,-e),this}rotate(e){return OC(this._rgb,e),this}}/*!
40
+ */function ga(t){return t+.5|0}const vr=(t,e,n)=>Math.max(Math.min(t,n),e);function As(t){return vr(ga(t*2.55),0,255)}function Sr(t){return vr(ga(t*255),0,255)}function Wn(t){return vr(ga(t/2.55)/100,0,1)}function Vf(t){return vr(ga(t*100),0,100)}const Jt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Ru=[..."0123456789ABCDEF"],VC=t=>Ru[t&15],KC=t=>Ru[(t&240)>>4]+Ru[t&15],Oa=t=>(t&240)>>4===(t&15),XC=t=>Oa(t.r)&&Oa(t.g)&&Oa(t.b)&&Oa(t.a);function JC(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Jt[t[1]]*17,g:255&Jt[t[2]]*17,b:255&Jt[t[3]]*17,a:e===5?Jt[t[4]]*17:255}:(e===7||e===9)&&(n={r:Jt[t[1]]<<4|Jt[t[2]],g:Jt[t[3]]<<4|Jt[t[4]],b:Jt[t[5]]<<4|Jt[t[6]],a:e===9?Jt[t[7]]<<4|Jt[t[8]]:255})),n}const ZC=(t,e)=>t<255?e(t):"";function $C(t){var e=XC(t)?VC:KC;return t?"#"+e(t.r)+e(t.g)+e(t.b)+ZC(t.a,e):void 0}const e5=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function T0(t,e,n){const r=e*Math.min(n,1-n),i=(s,a=(s+t/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function t5(t,e,n){const r=(i,s=(i+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return[r(5),r(3),r(1)]}function n5(t,e,n){const r=T0(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function r5(t,e,n,r,i){return t===i?(e-n)/r+(e<n?6:0):e===i?(n-t)/r+2:(t-e)/r+4}function Rc(t){const n=t.r/255,r=t.g/255,i=t.b/255,s=Math.max(n,r,i),a=Math.min(n,r,i),o=(s+a)/2;let l,u,c;return s!==a&&(c=s-a,u=o>.5?c/(2-s-a):c/(s+a),l=r5(n,r,i,c,s),l=l*60+.5),[l|0,u||0,o]}function _c(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(Sr)}function Dc(t,e,n){return _c(T0,t,e,n)}function i5(t,e,n){return _c(n5,t,e,n)}function s5(t,e,n){return _c(t5,t,e,n)}function I0(t){return(t%360+360)%360}function a5(t){const e=e5.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?As(+e[5]):Sr(+e[5]));const i=I0(+e[2]),s=+e[3]/100,a=+e[4]/100;return e[1]==="hwb"?r=i5(i,s,a):e[1]==="hsv"?r=s5(i,s,a):r=Dc(i,s,a),{r:r[0],g:r[1],b:r[2],a:n}}function o5(t,e){var n=Rc(t);n[0]=I0(n[0]+e),n=Dc(n),t.r=n[0],t.g=n[1],t.b=n[2]}function l5(t){if(!t)return;const e=Rc(t),n=e[0],r=Vf(e[1]),i=Vf(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${Wn(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const Kf={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Xf={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function u5(){const t={},e=Object.keys(Xf),n=Object.keys(Kf);let r,i,s,a,o;for(r=0;r<e.length;r++){for(a=o=e[r],i=0;i<n.length;i++)s=n[i],o=o.replace(s,Kf[s]);s=parseInt(Xf[a],16),t[o]=[s>>16&255,s>>8&255,s&255]}return t}let Pa;function c5(t){Pa||(Pa=u5(),Pa.transparent=[0,0,0,0]);const e=Pa[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const d5=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function f5(t){const e=d5.exec(t);let n=255,r,i,s;if(e){if(e[7]!==r){const a=+e[7];n=e[8]?As(a):vr(a*255,0,255)}return r=+e[1],i=+e[3],s=+e[5],r=255&(e[2]?As(r):vr(r,0,255)),i=255&(e[4]?As(i):vr(i,0,255)),s=255&(e[6]?As(s):vr(s,0,255)),{r,g:i,b:s,a:n}}}function h5(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Wn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const wl=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,yi=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function p5(t,e,n){const r=yi(Wn(t.r)),i=yi(Wn(t.g)),s=yi(Wn(t.b));return{r:Sr(wl(r+n*(yi(Wn(e.r))-r))),g:Sr(wl(i+n*(yi(Wn(e.g))-i))),b:Sr(wl(s+n*(yi(Wn(e.b))-s))),a:t.a+n*(e.a-t.a)}}function Ta(t,e,n){if(t){let r=Rc(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=Dc(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function M0(t,e){return t&&Object.assign(e||{},t)}function Jf(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Sr(t[3]))):(e=M0(t,{r:0,g:0,b:0,a:1}),e.a=Sr(e.a)),e}function y5(t){return t.charAt(0)==="r"?f5(t):a5(t)}class Vs{constructor(e){if(e instanceof Vs)return e;const n=typeof e;let r;n==="object"?r=Jf(e):n==="string"&&(r=JC(e)||c5(e)||y5(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=M0(this._rgb);return e&&(e.a=Wn(e.a)),e}set rgb(e){this._rgb=Jf(e)}rgbString(){return this._valid?h5(this._rgb):void 0}hexString(){return this._valid?$C(this._rgb):void 0}hslString(){return this._valid?l5(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,i=e.rgb;let s;const a=n===s?.5:n,o=2*a-1,l=r.a-i.a,u=((o*l===-1?o:(o+l)/(1+o*l))+1)/2;s=1-u,r.r=255&u*r.r+s*i.r+.5,r.g=255&u*r.g+s*i.g+.5,r.b=255&u*r.b+s*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=p5(this._rgb,e._rgb,n)),this}clone(){return new Vs(this.rgb)}alpha(e){return this._rgb.a=Sr(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=ga(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Ta(this._rgb,2,e),this}darken(e){return Ta(this._rgb,2,-e),this}saturate(e){return Ta(this._rgb,1,e),this}desaturate(e){return Ta(this._rgb,1,-e),this}rotate(e){return o5(this._rgb,e),this}}/*!
41
41
  * Chart.js v4.5.1
42
42
  * https://www.chartjs.org
43
43
  * (c) 2025 Chart.js Contributors
44
44
  * Released under the MIT License
45
- */function Nn(){}const DC=(()=>{let t=0;return()=>t++})();function _e(t){return t==null}function We(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function ke(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function et(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function gn(t,e){return et(t)?t:e}function Se(t,e){return typeof t=="undefined"?e:t}const BC=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Fe(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Re(t,e,n,r){let i,s,a;if(We(t))for(s=t.length,i=0;i<s;i++)e.call(n,t[i],i);else if(ke(t))for(a=Object.keys(t),s=a.length,i=0;i<s;i++)e.call(n,t[a[i]],a[i])}function mo(t,e){let n,r,i,s;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],s=e[n],i.datasetIndex!==s.datasetIndex||i.index!==s.index)return!1;return!0}function go(t){if(We(t))return t.map(go);if(ke(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let i=0;for(;i<r;++i)e[n[i]]=go(t[n[i]]);return e}return t}function p0(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function FC(t,e,n,r){if(!p0(t))return;const i=e[t],s=n[t];ke(i)&&ke(s)?Vs(i,s,r):e[t]=go(s)}function Vs(t,e,n){const r=We(e)?e:[e],i=r.length;if(!ke(t))return t;n=n||{};const s=n.merger||FC;let a;for(let o=0;o<i;++o){if(a=r[o],!ke(a))continue;const l=Object.keys(a);for(let u=0,c=l.length;u<c;++u)s(l[u],t,a,n)}return t}function Es(t,e){return Vs(t,e,{merger:zC})}function zC(t,e,n){if(!p0(t))return;const r=e[t],i=n[t];ke(r)&&ke(i)?Es(r,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=go(i))}const Ff={"":t=>t,x:t=>t.x,y:t=>t.y};function UC(t){const e=t.split("."),n=[];let r="";for(const i of e)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function HC(t){const e=UC(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function Ks(t,e){return(Ff[e]||(Ff[e]=HC(e)))(t)}function Mc(t){return t.charAt(0).toUpperCase()+t.slice(1)}const vo=t=>typeof t!="undefined",Sr=t=>typeof t=="function",zf=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function qC(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Ke=Math.PI,Kt=2*Ke,WC=Kt+Ke,bo=Number.POSITIVE_INFINITY,QC=Ke/180,Yt=Ke/2,Pr=Ke/4,Uf=Ke*2/3,y0=Math.log10,Di=Math.sign;function Os(t,e,n){return Math.abs(t-e)<n}function Hf(t){const e=Math.round(t);t=Os(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(y0(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function GC(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((i,s)=>i-s).pop(),e}function YC(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function Xs(t){return!YC(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function VC(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function KC(t,e,n){let r,i,s;for(r=0,i=t.length;r<i;r++)s=t[r][n],isNaN(s)||(e.min=Math.min(e.min,s),e.max=Math.max(e.max,s))}function gr(t){return t*(Ke/180)}function Lc(t){return t*(180/Ke)}function qf(t){if(!et(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function XC(t,e){const n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r);let s=Math.atan2(r,n);return s<-.5*Ke&&(s+=Kt),{angle:s,distance:i}}function Iu(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function JC(t,e){return(t-e+WC)%Kt-Ke}function Gt(t){return(t%Kt+Kt)%Kt}function m0(t,e,n,r){const i=Gt(t),s=Gt(e),a=Gt(n),o=Gt(s-i),l=Gt(a-i),u=Gt(i-s),c=Gt(i-a);return i===s||i===a||r&&s===a||o>l&&u<c}function nn(t,e,n){return Math.max(e,Math.min(n,t))}function ZC(t){return nn(t,-32768,32767)}function yi(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function Nc(t,e,n){n=n||(a=>t[a]<e);let r=t.length-1,i=0,s;for(;r-i>1;)s=i+r>>1,n(s)?i=s:r=s;return{lo:i,hi:r}}const Fr=(t,e,n,r)=>Nc(t,n,r?i=>{const s=t[i][e];return s<n||s===n&&t[i+1][e]===n}:i=>t[i][e]<n),$C=(t,e,n)=>Nc(t,n,r=>t[r][e]>=n);function e5(t,e,n){let r=0,i=t.length;for(;r<i&&t[r]<e;)r++;for(;i>r&&t[i-1]>n;)i--;return r>0||i<t.length?t.slice(r,i):t}const g0=["push","pop","shift","splice","unshift"];function t5(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),g0.forEach(n=>{const r="_onData"+Mc(n),i=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...s){const a=i.apply(this,s);return t._chartjs.listeners.forEach(o=>{typeof o[r]=="function"&&o[r](...s)}),a}})})}function Wf(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(e);i!==-1&&r.splice(i,1),!(r.length>0)&&(g0.forEach(s=>{delete t[s]}),delete t._chartjs)}function n5(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const v0=function(){return typeof window=="undefined"?function(t){return t()}:window.requestAnimationFrame}();function b0(t,e){let n=[],r=!1;return function(...i){n=i,r||(r=!0,v0.call(window,()=>{r=!1,t.apply(e,n)}))}}function r5(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const Rc=t=>t==="start"?"left":t==="end"?"right":"center",ct=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,i5=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e;function s5(t,e,n){const r=e.length;let i=0,s=r;if(t._sorted){const{iScale:a,vScale:o,_parsed:l}=t,u=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,c=a.axis,{min:f,max:p,minDefined:h,maxDefined:y}=a.getUserBounds();if(h){if(i=Math.min(Fr(l,c,f).lo,n?r:Fr(e,c,a.getPixelForValue(f)).lo),u){const m=l.slice(0,i+1).reverse().findIndex(v=>!_e(v[o.axis]));i-=Math.max(0,m)}i=nn(i,0,r-1)}if(y){let m=Math.max(Fr(l,a.axis,p,!0).hi+1,n?0:Fr(e,c,a.getPixelForValue(p),!0).hi+1);if(u){const v=l.slice(m-1).findIndex(g=>!_e(g[o.axis]));m+=Math.max(0,v)}s=nn(m,i,r)-i}else s=r-i}return{start:i,count:s}}function a5(t){const{xScale:e,yScale:n,_scaleRanges:r}=t,i={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=i,!0;const s=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),s}const Ta=t=>t===0||t===1,Qf=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Kt/n)),Gf=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Kt/n)+1,Ps={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Yt)+1,easeOutSine:t=>Math.sin(t*Yt),easeInOutSine:t=>-.5*(Math.cos(Ke*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Ta(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Ta(t)?t:Qf(t,.075,.3),easeOutElastic:t=>Ta(t)?t:Gf(t,.075,.3),easeInOutElastic(t){return Ta(t)?t:t<.5?.5*Qf(t*2,.1125,.45):.5+.5*Gf(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Ps.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Ps.easeInBounce(t*2)*.5:Ps.easeOutBounce(t*2-1)*.5+.5};function _c(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Yf(t){return _c(t)?t:new Ys(t)}function bl(t){return _c(t)?t:new Ys(t).saturate(.5).darken(.1).hexString()}const o5=["x","y","borderWidth","radius","tension"],l5=["color","borderColor","backgroundColor"];function u5(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:l5},numbers:{type:"number",properties:o5}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function c5(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Vf=new Map;function d5(t,e){e=e||{};const n=t+JSON.stringify(e);let r=Vf.get(n);return r||(r=new Intl.NumberFormat(t,e),Vf.set(n,r)),r}function x0(t,e,n){return d5(e,n).format(t)}const f5={values(t){return We(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const r=this.chart.options.locale;let i,s=t;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),s=h5(t,n)}const a=y0(Math.abs(s)),o=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),x0(t,r,l)}};function h5(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var Dc={formatters:f5};function p5(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Dc.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const ri=Object.create(null),Mu=Object.create(null);function Ts(t,e){if(!e)return t;const n=e.split(".");for(let r=0,i=n.length;r<i;++r){const s=n[r];t=t[s]||(t[s]=Object.create(null))}return t}function xl(t,e,n){return typeof e=="string"?Vs(Ts(t,e),n):Vs(Ts(t,""),e)}class y5{constructor(e,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>bl(i.backgroundColor),this.hoverBorderColor=(r,i)=>bl(i.borderColor),this.hoverColor=(r,i)=>bl(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return xl(this,e,n)}get(e){return Ts(this,e)}describe(e,n){return xl(Mu,e,n)}override(e,n){return xl(ri,e,n)}route(e,n,r,i){const s=Ts(this,e),a=Ts(this,r),o="_"+n;Object.defineProperties(s,{[o]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[o],u=a[i];return ke(l)?Object.assign({},u,l):Se(l,u)},set(l){this[o]=l}}})}apply(e){e.forEach(n=>n(this))}}var Ge=new y5({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[u5,c5,p5]);function m5(t){return!t||_e(t.size)||_e(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function xo(t,e,n,r,i){let s=e[i];return s||(s=e[i]=t.measureText(i).width,n.push(i)),s>r&&(r=s),r}function g5(t,e,n,r){r=r||{};let i=r.data=r.data||{},s=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},s=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let a=0;const o=n.length;let l,u,c,f,p;for(l=0;l<o;l++)if(f=n[l],f!=null&&!We(f))a=xo(t,i,s,a,f);else if(We(f))for(u=0,c=f.length;u<c;u++)p=f[u],p!=null&&!We(p)&&(a=xo(t,i,s,a,p));t.restore();const h=s.length/2;if(h>n.length){for(l=0;l<h;l++)delete i[s[l]];s.splice(0,h)}return a}function Tr(t,e,n){const r=t.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((e-i)*r)/r+i}function Kf(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Lu(t,e,n,r){w0(t,e,n,r,null)}function w0(t,e,n,r,i){let s,a,o,l,u,c,f,p;const h=e.pointStyle,y=e.rotation,m=e.radius;let v=(y||0)*QC;if(h&&typeof h=="object"&&(s=h.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),t.rotate(v),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(m)||m<=0)){switch(t.beginPath(),h){default:i?t.ellipse(n,r,i/2,m,0,0,Kt):t.arc(n,r,m,0,Kt),t.closePath();break;case"triangle":c=i?i/2:m,t.moveTo(n+Math.sin(v)*c,r-Math.cos(v)*m),v+=Uf,t.lineTo(n+Math.sin(v)*c,r-Math.cos(v)*m),v+=Uf,t.lineTo(n+Math.sin(v)*c,r-Math.cos(v)*m),t.closePath();break;case"rectRounded":u=m*.516,l=m-u,a=Math.cos(v+Pr)*l,f=Math.cos(v+Pr)*(i?i/2-u:l),o=Math.sin(v+Pr)*l,p=Math.sin(v+Pr)*(i?i/2-u:l),t.arc(n-f,r-o,u,v-Ke,v-Yt),t.arc(n+p,r-a,u,v-Yt,v),t.arc(n+f,r+o,u,v,v+Yt),t.arc(n-p,r+a,u,v+Yt,v+Ke),t.closePath();break;case"rect":if(!y){l=Math.SQRT1_2*m,c=i?i/2:l,t.rect(n-c,r-l,2*c,2*l);break}v+=Pr;case"rectRot":f=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,o=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),t.moveTo(n-f,r-o),t.lineTo(n+p,r-a),t.lineTo(n+f,r+o),t.lineTo(n-p,r+a),t.closePath();break;case"crossRot":v+=Pr;case"cross":f=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,o=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),t.moveTo(n-f,r-o),t.lineTo(n+f,r+o),t.moveTo(n+p,r-a),t.lineTo(n-p,r+a);break;case"star":f=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,o=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),t.moveTo(n-f,r-o),t.lineTo(n+f,r+o),t.moveTo(n+p,r-a),t.lineTo(n-p,r+a),v+=Pr,f=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,o=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),t.moveTo(n-f,r-o),t.lineTo(n+f,r+o),t.moveTo(n+p,r-a),t.lineTo(n-p,r+a);break;case"line":a=i?i/2:Math.cos(v)*m,o=Math.sin(v)*m,t.moveTo(n-a,r-o),t.lineTo(n+a,r+o);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(v)*(i?i/2:m),r+Math.sin(v)*m);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function Yn(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Qo(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Go(t){t.restore()}function v5(t,e,n,r,i){if(!e)return t.lineTo(n.x,n.y);if(i==="middle"){const s=(e.x+n.x)/2;t.lineTo(s,e.y),t.lineTo(s,n.y)}else i==="after"!=!!r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function b5(t,e,n,r){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function x5(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),_e(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function w5(t,e,n,r,i){if(i.strikethrough||i.underline){const s=t.measureText(r),a=e-s.actualBoundingBoxLeft,o=e+s.actualBoundingBoxRight,l=n-s.actualBoundingBoxAscent,u=n+s.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(a,c),t.lineTo(o,c),t.stroke()}}function A5(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function ii(t,e,n,r,i,s={}){const a=We(e)?e:[e],o=s.strokeWidth>0&&s.strokeColor!=="";let l,u;for(t.save(),t.font=i.string,x5(t,s),l=0;l<a.length;++l)u=a[l],s.backdrop&&A5(t,s.backdrop),o&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),_e(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(u,n,r,s.maxWidth)),t.fillText(u,n,r,s.maxWidth),w5(t,n,r,u,s),r+=Number(i.lineHeight);t.restore()}function wo(t,e){const{x:n,y:r,w:i,h:s,radius:a}=e;t.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*Ke,Ke,!0),t.lineTo(n,r+s-a.bottomLeft),t.arc(n+a.bottomLeft,r+s-a.bottomLeft,a.bottomLeft,Ke,Yt,!0),t.lineTo(n+i-a.bottomRight,r+s),t.arc(n+i-a.bottomRight,r+s-a.bottomRight,a.bottomRight,Yt,0,!0),t.lineTo(n+i,r+a.topRight),t.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-Yt,!0),t.lineTo(n+a.topLeft,r)}const S5=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,C5=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function k5(t,e){const n=(""+t).match(S5);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const j5=t=>+t||0;function A0(t,e){const n={},r=ke(e),i=r?Object.keys(e):e,s=ke(t)?r?a=>Se(t[a],t[e[a]]):a=>t[a]:()=>t;for(const a of i)n[a]=j5(s(a));return n}function E5(t){return A0(t,{top:"y",right:"x",bottom:"y",left:"x"})}function vi(t){return A0(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ft(t){const e=E5(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ze(t,e){t=t||{},e=e||Ge.font;let n=Se(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=Se(t.style,e.style);r&&!(""+r).match(C5)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Se(t.family,e.family),lineHeight:k5(Se(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:Se(t.weight,e.weight),string:""};return i.string=m5(i),i}function Ia(t,e,n,r){let i,s,a;for(i=0,s=t.length;i<s;++i)if(a=t[i],a!==void 0&&a!==void 0)return a}function O5(t,e,n){const{min:r,max:i}=t,s=BC(e,(i-r)/2),a=(o,l)=>n&&o===0?0:o+l;return{min:a(r,-Math.abs(s)),max:a(i,s)}}function kr(t,e){return Object.assign(Object.create(t),e)}function Bc(t,e=[""],n,r,i=()=>t[0]){const s=n||t;typeof r=="undefined"&&(r=j0("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:r,_getTarget:i,override:o=>Bc([o,...t],e,s,r)};return new Proxy(a,{deleteProperty(o,l){return delete o[l],delete o._keys,delete t[0][l],!0},get(o,l){return C0(o,l,()=>_5(l,e,t,o))},getOwnPropertyDescriptor(o,l){return Reflect.getOwnPropertyDescriptor(o._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(o,l){return Jf(o).includes(l)},ownKeys(o){return Jf(o)},set(o,l,u){const c=o._storage||(o._storage=i());return o[l]=c[l]=u,delete o._keys,!0}})}function Bi(t,e,n,r){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:S0(t,r),setContext:s=>Bi(t,s,n,r),override:s=>Bi(t.override(s),e,n,r)};return new Proxy(i,{deleteProperty(s,a){return delete s[a],delete t[a],!0},get(s,a,o){return C0(s,a,()=>T5(s,a,o))},getOwnPropertyDescriptor(s,a){return s._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(s,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(s,a,o){return t[a]=o,delete s[a],!0}})}function S0(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Sr(n)?n:()=>n,isIndexable:Sr(r)?r:()=>r}}const P5=(t,e)=>t?t+Mc(e):e,Fc=(t,e)=>ke(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function C0(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=n();return t[e]=r,r}function T5(t,e,n){const{_proxy:r,_context:i,_subProxy:s,_descriptors:a}=t;let o=r[e];return Sr(o)&&a.isScriptable(e)&&(o=I5(e,o,t,n)),We(o)&&o.length&&(o=M5(e,o,t,a.isIndexable)),Fc(e,o)&&(o=Bi(o,i,s&&s[e],a)),o}function I5(t,e,n,r){const{_proxy:i,_context:s,_subProxy:a,_stack:o}=n;if(o.has(t))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+t);o.add(t);let l=e(s,a||r);return o.delete(t),Fc(t,l)&&(l=zc(i._scopes,i,t,l)),l}function M5(t,e,n,r){const{_proxy:i,_context:s,_subProxy:a,_descriptors:o}=n;if(typeof s.index!="undefined"&&r(t))return e[s.index%e.length];if(ke(e[0])){const l=e,u=i._scopes.filter(c=>c!==l);e=[];for(const c of l){const f=zc(u,i,t,c);e.push(Bi(f,s,a&&a[t],o))}}return e}function k0(t,e,n){return Sr(t)?t(e,n):t}const L5=(t,e)=>t===!0?e:typeof t=="string"?Ks(e,t):void 0;function N5(t,e,n,r,i){for(const s of e){const a=L5(n,s);if(a){t.add(a);const o=k0(a._fallback,n,i);if(typeof o!="undefined"&&o!==n&&o!==r)return o}else if(a===!1&&typeof r!="undefined"&&n!==r)return null}return!1}function zc(t,e,n,r){const i=e._rootScopes,s=k0(e._fallback,n,r),a=[...t,...i],o=new Set;o.add(r);let l=Xf(o,a,n,s||n,r);return l===null||typeof s!="undefined"&&s!==n&&(l=Xf(o,a,s,l,r),l===null)?!1:Bc(Array.from(o),[""],i,s,()=>R5(e,n,r))}function Xf(t,e,n,r,i){for(;n;)n=N5(t,e,n,r,i);return n}function R5(t,e,n){const r=t._getTarget();e in r||(r[e]={});const i=r[e];return We(i)&&ke(n)?n:i||{}}function _5(t,e,n,r){let i;for(const s of e)if(i=j0(P5(s,t),n),typeof i!="undefined")return Fc(t,i)?zc(n,r,t,i):i}function j0(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r!="undefined")return r}}function Jf(t){let e=t._keys;return e||(e=t._keys=D5(t._scopes)),e}function D5(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))e.add(r);return Array.from(e)}function B5(t,e,n,r){const{iScale:i}=t,{key:s="r"}=this._parsing,a=new Array(r);let o,l,u,c;for(o=0,l=r;o<l;++o)u=o+n,c=e[u],a[o]={r:i.parse(Ks(c,s),u)};return a}const F5=Number.EPSILON||1e-14,Fi=(t,e)=>e<t.length&&!t[e].skip&&t[e],E0=t=>t==="x"?"y":"x";function z5(t,e,n,r){const i=t.skip?e:t,s=e,a=n.skip?e:n,o=Iu(s,i),l=Iu(a,s);let u=o/(o+l),c=l/(o+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const f=r*u,p=r*c;return{previous:{x:s.x-f*(a.x-i.x),y:s.y-f*(a.y-i.y)},next:{x:s.x+p*(a.x-i.x),y:s.y+p*(a.y-i.y)}}}function U5(t,e,n){const r=t.length;let i,s,a,o,l,u=Fi(t,0);for(let c=0;c<r-1;++c)if(l=u,u=Fi(t,c+1),!(!l||!u)){if(Os(e[c],0,F5)){n[c]=n[c+1]=0;continue}i=n[c]/e[c],s=n[c+1]/e[c],o=Math.pow(i,2)+Math.pow(s,2),!(o<=9)&&(a=3/Math.sqrt(o),n[c]=i*a*e[c],n[c+1]=s*a*e[c])}}function H5(t,e,n="x"){const r=E0(n),i=t.length;let s,a,o,l=Fi(t,0);for(let u=0;u<i;++u){if(a=o,o=l,l=Fi(t,u+1),!o)continue;const c=o[n],f=o[r];a&&(s=(c-a[n])/3,o[`cp1${n}`]=c-s,o[`cp1${r}`]=f-s*e[u]),l&&(s=(l[n]-c)/3,o[`cp2${n}`]=c+s,o[`cp2${r}`]=f+s*e[u])}}function q5(t,e="x"){const n=E0(e),r=t.length,i=Array(r).fill(0),s=Array(r);let a,o,l,u=Fi(t,0);for(a=0;a<r;++a)if(o=l,l=u,u=Fi(t,a+1),!!l){if(u){const c=u[e]-l[e];i[a]=c!==0?(u[n]-l[n])/c:0}s[a]=o?u?Di(i[a-1])!==Di(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}U5(t,i,s),H5(t,s,e)}function Ma(t,e,n){return Math.max(Math.min(t,n),e)}function W5(t,e){let n,r,i,s,a,o=Yn(t[0],e);for(n=0,r=t.length;n<r;++n)a=s,s=o,o=n<r-1&&Yn(t[n+1],e),s&&(i=t[n],a&&(i.cp1x=Ma(i.cp1x,e.left,e.right),i.cp1y=Ma(i.cp1y,e.top,e.bottom)),o&&(i.cp2x=Ma(i.cp2x,e.left,e.right),i.cp2y=Ma(i.cp2y,e.top,e.bottom)))}function Q5(t,e,n,r,i){let s,a,o,l;if(e.spanGaps&&(t=t.filter(u=>!u.skip)),e.cubicInterpolationMode==="monotone")q5(t,i);else{let u=r?t[t.length-1]:t[0];for(s=0,a=t.length;s<a;++s)o=t[s],l=z5(u,o,t[Math.min(s+1,a-(r?0:1))%a],e.tension),o.cp1x=l.previous.x,o.cp1y=l.previous.y,o.cp2x=l.next.x,o.cp2y=l.next.y,u=o}e.capBezierPoints&&W5(t,n)}function Uc(){return typeof window!="undefined"&&typeof document!="undefined"}function Hc(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Ao(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const Yo=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function G5(t,e){return Yo(t).getPropertyValue(e)}const Y5=["top","right","bottom","left"];function Zr(t,e,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const s=Y5[i];r[s]=parseFloat(t[e+"-"+s+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const V5=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function K5(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:i,offsetY:s}=r;let a=!1,o,l;if(V5(i,s,t.target))o=i,l=s;else{const u=e.getBoundingClientRect();o=r.clientX-u.left,l=r.clientY-u.top,a=!0}return{x:o,y:l,box:a}}function Lr(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,i=Yo(n),s=i.boxSizing==="border-box",a=Zr(i,"padding"),o=Zr(i,"border","width"),{x:l,y:u,box:c}=K5(t,n),f=a.left+(c&&o.left),p=a.top+(c&&o.top);let{width:h,height:y}=e;return s&&(h-=a.width+o.width,y-=a.height+o.height),{x:Math.round((l-f)/h*n.width/r),y:Math.round((u-p)/y*n.height/r)}}function X5(t,e,n){let r,i;if(e===void 0||n===void 0){const s=t&&Hc(t);if(!s)e=t.clientWidth,n=t.clientHeight;else{const a=s.getBoundingClientRect(),o=Yo(s),l=Zr(o,"border","width"),u=Zr(o,"padding");e=a.width-u.width-l.width,n=a.height-u.height-l.height,r=Ao(o.maxWidth,s,"clientWidth"),i=Ao(o.maxHeight,s,"clientHeight")}}return{width:e,height:n,maxWidth:r||bo,maxHeight:i||bo}}const vr=t=>Math.round(t*10)/10;function J5(t,e,n,r){const i=Yo(t),s=Zr(i,"margin"),a=Ao(i.maxWidth,t,"clientWidth")||bo,o=Ao(i.maxHeight,t,"clientHeight")||bo,l=X5(t,e,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const p=Zr(i,"border","width"),h=Zr(i,"padding");u-=h.width+p.width,c-=h.height+p.height}return u=Math.max(0,u-s.width),c=Math.max(0,r?u/r:c-s.height),u=vr(Math.min(u,a,l.maxWidth)),c=vr(Math.min(c,o,l.maxHeight)),u&&!c&&(c=vr(u/2)),(e!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=vr(Math.floor(c*r))),{width:u,height:c}}function Zf(t,e,n){const r=e||1,i=vr(t.height*r),s=vr(t.width*r);t.height=vr(t.height),t.width=vr(t.width);const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||a.height!==i||a.width!==s?(t.currentDevicePixelRatio=r,a.height=i,a.width=s,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const Z5=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Uc()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(e){}return t}();function $f(t,e){const n=G5(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Nr(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function $5(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:r==="middle"?n<.5?t.y:e.y:r==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function e6(t,e,n,r){const i={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},a=Nr(t,i,n),o=Nr(i,s,n),l=Nr(s,e,n),u=Nr(a,o,n),c=Nr(o,l,n);return Nr(u,c,n)}const t6=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},n6=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function bi(t,e,n){return t?t6(e,n):n6()}function O0(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function P0(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function T0(t){return t==="angle"?{between:m0,compare:JC,normalize:Gt}:{between:yi,compare:(e,n)=>e-n,normalize:e=>e}}function eh({start:t,end:e,count:n,loop:r,style:i}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n===0,style:i}}function r6(t,e,n){const{property:r,start:i,end:s}=n,{between:a,normalize:o}=T0(r),l=e.length;let{start:u,end:c,loop:f}=t,p,h;if(f){for(u+=l,c+=l,p=0,h=l;p<h&&a(o(e[u%l][r]),i,s);++p)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:f,style:t.style}}function I0(t,e,n){if(!n)return[t];const{property:r,start:i,end:s}=n,a=e.length,{compare:o,between:l,normalize:u}=T0(r),{start:c,end:f,loop:p,style:h}=r6(t,e,n),y=[];let m=!1,v=null,g,A,E;const j=()=>l(i,E,g)&&o(i,E)!==0,S=()=>o(s,g)===0||l(s,E,g),b=()=>m||j(),w=()=>!m||S();for(let x=c,N=c;x<=f;++x)A=e[x%a],!A.skip&&(g=u(A[r]),g!==E&&(m=l(g,i,s),v===null&&b()&&(v=o(g,i)===0?x:N),v!==null&&w()&&(y.push(eh({start:v,end:x,loop:p,count:a,style:h})),v=null),N=x,E=g));return v!==null&&y.push(eh({start:v,end:f,loop:p,count:a,style:h})),y}function M0(t,e){const n=[],r=t.segments;for(let i=0;i<r.length;i++){const s=I0(r[i],t.points,e);s.length&&n.push(...s)}return n}function i6(t,e,n,r){let i=0,s=e-1;if(n&&!r)for(;i<e&&!t[i].skip;)i++;for(;i<e&&t[i].skip;)i++;for(i%=e,n&&(s+=i);s>i&&t[s%e].skip;)s--;return s%=e,{start:i,end:s}}function s6(t,e,n,r){const i=t.length,s=[];let a=e,o=t[e],l;for(l=e+1;l<=n;++l){const u=t[l%i];u.skip||u.stop?o.skip||(r=!1,s.push({start:e%i,end:(l-1)%i,loop:r}),e=a=u.stop?l:null):(a=l,o.skip&&(e=l)),o=u}return a!==null&&s.push({start:e%i,end:a%i,loop:r}),s}function a6(t,e){const n=t.points,r=t.options.spanGaps,i=n.length;if(!i)return[];const s=!!t._loop,{start:a,end:o}=i6(n,i,s,r);if(r===!0)return th(t,[{start:a,end:o,loop:s}],n,e);const l=o<a?o+i:o,u=!!t._fullLoop&&a===0&&o===i-1;return th(t,s6(n,a,l,u),n,e)}function th(t,e,n,r){return!r||!r.setContext||!n?e:o6(t,e,n,r)}function o6(t,e,n,r){const i=t._chart.getContext(),s=nh(t.options),{_datasetIndex:a,options:{spanGaps:o}}=t,l=n.length,u=[];let c=s,f=e[0].start,p=f;function h(y,m,v,g){const A=o?-1:1;if(y!==m){for(y+=l;n[y%l].skip;)y-=A;for(;n[m%l].skip;)m+=A;y%l!==m%l&&(u.push({start:y%l,end:m%l,loop:v,style:g}),c=g,f=m%l)}}for(const y of e){f=o?f:y.start;let m=n[f%l],v;for(p=f+1;p<=y.end;p++){const g=n[p%l];v=nh(r.setContext(kr(i,{type:"segment",p0:m,p1:g,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),l6(v,c)&&h(f,p-1,y.loop,c),m=g,c=v}f<p-1&&h(f,p-1,y.loop,c)}return u}function nh(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function l6(t,e){if(!e)return!1;const n=[],r=function(i,s){return _c(s)?(n.includes(s)||n.push(s),n.indexOf(s)):s};return JSON.stringify(t,r)!==JSON.stringify(e,r)}function La(t,e,n){return t.options.clip?t[n]:e[n]}function u6(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:La(n,e,"left"),right:La(n,e,"right"),top:La(r,e,"top"),bottom:La(r,e,"bottom")}:e}function L0(t,e){const n=e._clip;if(n.disabled)return!1;const r=u6(e,t.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?t.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?t.height:r.bottom+(n.bottom===!0?0:n.bottom)}}/*!
45
+ */function Bn(){}const m5=(()=>{let t=0;return()=>t++})();function _e(t){return t==null}function We(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function Ee(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function rt(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function bn(t,e){return rt(t)?t:e}function Se(t,e){return typeof t=="undefined"?e:t}const g5=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Be(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Re(t,e,n,r){let i,s,a;if(We(t))for(s=t.length,i=0;i<s;i++)e.call(n,t[i],i);else if(Ee(t))for(a=Object.keys(t),s=a.length,i=0;i<s;i++)e.call(n,t[a[i]],a[i])}function vo(t,e){let n,r,i,s;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],s=e[n],i.datasetIndex!==s.datasetIndex||i.index!==s.index)return!1;return!0}function bo(t){if(We(t))return t.map(bo);if(Ee(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let i=0;for(;i<r;++i)e[n[i]]=bo(t[n[i]]);return e}return t}function L0(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function v5(t,e,n,r){if(!L0(t))return;const i=e[t],s=n[t];Ee(i)&&Ee(s)?Ks(i,s,r):e[t]=bo(s)}function Ks(t,e,n){const r=We(e)?e:[e],i=r.length;if(!Ee(t))return t;n=n||{};const s=n.merger||v5;let a;for(let o=0;o<i;++o){if(a=r[o],!Ee(a))continue;const l=Object.keys(a);for(let u=0,c=l.length;u<c;++u)s(l[u],t,a,n)}return t}function Ps(t,e){return Ks(t,e,{merger:b5})}function b5(t,e,n){if(!L0(t))return;const r=e[t],i=n[t];Ee(r)&&Ee(i)?Ps(r,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=bo(i))}const Zf={"":t=>t,x:t=>t.x,y:t=>t.y};function x5(t){const e=t.split("."),n=[];let r="";for(const i of e)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function w5(t){const e=x5(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function Xs(t,e){return(Zf[e]||(Zf[e]=w5(e)))(t)}function Bc(t){return t.charAt(0).toUpperCase()+t.slice(1)}const xo=t=>typeof t!="undefined",kr=t=>typeof t=="function",$f=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function A5(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Ke=Math.PI,Vt=2*Ke,S5=Vt+Ke,wo=Number.POSITIVE_INFINITY,C5=Ke/180,Qt=Ke/2,Ir=Ke/4,eh=Ke*2/3,N0=Math.log10,Ui=Math.sign;function Ts(t,e,n){return Math.abs(t-e)<n}function th(t){const e=Math.round(t);t=Ts(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(N0(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function k5(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((i,s)=>i-s).pop(),e}function j5(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function Js(t){return!j5(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function E5(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function O5(t,e,n){let r,i,s;for(r=0,i=t.length;r<i;r++)s=t[r][n],isNaN(s)||(e.min=Math.min(e.min,s),e.max=Math.max(e.max,s))}function br(t){return t*(Ke/180)}function Fc(t){return t*(180/Ke)}function nh(t){if(!rt(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function P5(t,e){const n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r);let s=Math.atan2(r,n);return s<-.5*Ke&&(s+=Vt),{angle:s,distance:i}}function _u(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function T5(t,e){return(t-e+S5)%Vt-Ke}function Gt(t){return(t%Vt+Vt)%Vt}function R0(t,e,n,r){const i=Gt(t),s=Gt(e),a=Gt(n),o=Gt(s-i),l=Gt(a-i),u=Gt(i-s),c=Gt(i-a);return i===s||i===a||r&&s===a||o>l&&u<c}function nn(t,e,n){return Math.max(e,Math.min(n,t))}function I5(t){return nn(t,-32768,32767)}function bi(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function zc(t,e,n){n=n||(a=>t[a]<e);let r=t.length-1,i=0,s;for(;r-i>1;)s=i+r>>1,n(s)?i=s:r=s;return{lo:i,hi:r}}const zr=(t,e,n,r)=>zc(t,n,r?i=>{const s=t[i][e];return s<n||s===n&&t[i+1][e]===n}:i=>t[i][e]<n),M5=(t,e,n)=>zc(t,n,r=>t[r][e]>=n);function L5(t,e,n){let r=0,i=t.length;for(;r<i&&t[r]<e;)r++;for(;i>r&&t[i-1]>n;)i--;return r>0||i<t.length?t.slice(r,i):t}const _0=["push","pop","shift","splice","unshift"];function N5(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),_0.forEach(n=>{const r="_onData"+Bc(n),i=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...s){const a=i.apply(this,s);return t._chartjs.listeners.forEach(o=>{typeof o[r]=="function"&&o[r](...s)}),a}})})}function rh(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(e);i!==-1&&r.splice(i,1),!(r.length>0)&&(_0.forEach(s=>{delete t[s]}),delete t._chartjs)}function R5(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const D0=function(){return typeof window=="undefined"?function(t){return t()}:window.requestAnimationFrame}();function B0(t,e){let n=[],r=!1;return function(...i){n=i,r||(r=!0,D0.call(window,()=>{r=!1,t.apply(e,n)}))}}function _5(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const Uc=t=>t==="start"?"left":t==="end"?"right":"center",ut=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,D5=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e;function B5(t,e,n){const r=e.length;let i=0,s=r;if(t._sorted){const{iScale:a,vScale:o,_parsed:l}=t,u=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,c=a.axis,{min:f,max:p,minDefined:h,maxDefined:y}=a.getUserBounds();if(h){if(i=Math.min(zr(l,c,f).lo,n?r:zr(e,c,a.getPixelForValue(f)).lo),u){const m=l.slice(0,i+1).reverse().findIndex(v=>!_e(v[o.axis]));i-=Math.max(0,m)}i=nn(i,0,r-1)}if(y){let m=Math.max(zr(l,a.axis,p,!0).hi+1,n?0:zr(e,c,a.getPixelForValue(p),!0).hi+1);if(u){const v=l.slice(m-1).findIndex(g=>!_e(g[o.axis]));m+=Math.max(0,v)}s=nn(m,i,r)-i}else s=r-i}return{start:i,count:s}}function F5(t){const{xScale:e,yScale:n,_scaleRanges:r}=t,i={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=i,!0;const s=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),s}const Ia=t=>t===0||t===1,ih=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Vt/n)),sh=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Vt/n)+1,Is={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Qt)+1,easeOutSine:t=>Math.sin(t*Qt),easeInOutSine:t=>-.5*(Math.cos(Ke*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Ia(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Ia(t)?t:ih(t,.075,.3),easeOutElastic:t=>Ia(t)?t:sh(t,.075,.3),easeInOutElastic(t){return Ia(t)?t:t<.5?.5*ih(t*2,.1125,.45):.5+.5*sh(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Is.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Is.easeInBounce(t*2)*.5:Is.easeOutBounce(t*2-1)*.5+.5};function Hc(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function ah(t){return Hc(t)?t:new Vs(t)}function Al(t){return Hc(t)?t:new Vs(t).saturate(.5).darken(.1).hexString()}const z5=["x","y","borderWidth","radius","tension"],U5=["color","borderColor","backgroundColor"];function H5(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:U5},numbers:{type:"number",properties:z5}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function q5(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const oh=new Map;function W5(t,e){e=e||{};const n=t+JSON.stringify(e);let r=oh.get(n);return r||(r=new Intl.NumberFormat(t,e),oh.set(n,r)),r}function F0(t,e,n){return W5(e,n).format(t)}const G5={values(t){return We(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const r=this.chart.options.locale;let i,s=t;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),s=Q5(t,n)}const a=N0(Math.abs(s)),o=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),F0(t,r,l)}};function Q5(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var qc={formatters:G5};function Y5(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:qc.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const ii=Object.create(null),Du=Object.create(null);function Ms(t,e){if(!e)return t;const n=e.split(".");for(let r=0,i=n.length;r<i;++r){const s=n[r];t=t[s]||(t[s]=Object.create(null))}return t}function Sl(t,e,n){return typeof e=="string"?Ks(Ms(t,e),n):Ks(Ms(t,""),e)}class V5{constructor(e,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>Al(i.backgroundColor),this.hoverBorderColor=(r,i)=>Al(i.borderColor),this.hoverColor=(r,i)=>Al(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return Sl(this,e,n)}get(e){return Ms(this,e)}describe(e,n){return Sl(Du,e,n)}override(e,n){return Sl(ii,e,n)}route(e,n,r,i){const s=Ms(this,e),a=Ms(this,r),o="_"+n;Object.defineProperties(s,{[o]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[o],u=a[i];return Ee(l)?Object.assign({},u,l):Se(l,u)},set(l){this[o]=l}}})}apply(e){e.forEach(n=>n(this))}}var Qe=new V5({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[H5,q5,Y5]);function K5(t){return!t||_e(t.size)||_e(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Ao(t,e,n,r,i){let s=e[i];return s||(s=e[i]=t.measureText(i).width,n.push(i)),s>r&&(r=s),r}function X5(t,e,n,r){r=r||{};let i=r.data=r.data||{},s=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},s=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let a=0;const o=n.length;let l,u,c,f,p;for(l=0;l<o;l++)if(f=n[l],f!=null&&!We(f))a=Ao(t,i,s,a,f);else if(We(f))for(u=0,c=f.length;u<c;u++)p=f[u],p!=null&&!We(p)&&(a=Ao(t,i,s,a,p));t.restore();const h=s.length/2;if(h>n.length){for(l=0;l<h;l++)delete i[s[l]];s.splice(0,h)}return a}function Mr(t,e,n){const r=t.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((e-i)*r)/r+i}function lh(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Bu(t,e,n,r){z0(t,e,n,r,null)}function z0(t,e,n,r,i){let s,a,o,l,u,c,f,p;const h=e.pointStyle,y=e.rotation,m=e.radius;let v=(y||0)*C5;if(h&&typeof h=="object"&&(s=h.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),t.rotate(v),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(m)||m<=0)){switch(t.beginPath(),h){default:i?t.ellipse(n,r,i/2,m,0,0,Vt):t.arc(n,r,m,0,Vt),t.closePath();break;case"triangle":c=i?i/2:m,t.moveTo(n+Math.sin(v)*c,r-Math.cos(v)*m),v+=eh,t.lineTo(n+Math.sin(v)*c,r-Math.cos(v)*m),v+=eh,t.lineTo(n+Math.sin(v)*c,r-Math.cos(v)*m),t.closePath();break;case"rectRounded":u=m*.516,l=m-u,a=Math.cos(v+Ir)*l,f=Math.cos(v+Ir)*(i?i/2-u:l),o=Math.sin(v+Ir)*l,p=Math.sin(v+Ir)*(i?i/2-u:l),t.arc(n-f,r-o,u,v-Ke,v-Qt),t.arc(n+p,r-a,u,v-Qt,v),t.arc(n+f,r+o,u,v,v+Qt),t.arc(n-p,r+a,u,v+Qt,v+Ke),t.closePath();break;case"rect":if(!y){l=Math.SQRT1_2*m,c=i?i/2:l,t.rect(n-c,r-l,2*c,2*l);break}v+=Ir;case"rectRot":f=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,o=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),t.moveTo(n-f,r-o),t.lineTo(n+p,r-a),t.lineTo(n+f,r+o),t.lineTo(n-p,r+a),t.closePath();break;case"crossRot":v+=Ir;case"cross":f=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,o=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),t.moveTo(n-f,r-o),t.lineTo(n+f,r+o),t.moveTo(n+p,r-a),t.lineTo(n-p,r+a);break;case"star":f=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,o=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),t.moveTo(n-f,r-o),t.lineTo(n+f,r+o),t.moveTo(n+p,r-a),t.lineTo(n-p,r+a),v+=Ir,f=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,o=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),t.moveTo(n-f,r-o),t.lineTo(n+f,r+o),t.moveTo(n+p,r-a),t.lineTo(n-p,r+a);break;case"line":a=i?i/2:Math.cos(v)*m,o=Math.sin(v)*m,t.moveTo(n-a,r-o),t.lineTo(n+a,r+o);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(v)*(i?i/2:m),r+Math.sin(v)*m);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function Jn(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Vo(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Ko(t){t.restore()}function J5(t,e,n,r,i){if(!e)return t.lineTo(n.x,n.y);if(i==="middle"){const s=(e.x+n.x)/2;t.lineTo(s,e.y),t.lineTo(s,n.y)}else i==="after"!=!!r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function Z5(t,e,n,r){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function $5(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),_e(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function e6(t,e,n,r,i){if(i.strikethrough||i.underline){const s=t.measureText(r),a=e-s.actualBoundingBoxLeft,o=e+s.actualBoundingBoxRight,l=n-s.actualBoundingBoxAscent,u=n+s.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(a,c),t.lineTo(o,c),t.stroke()}}function t6(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function si(t,e,n,r,i,s={}){const a=We(e)?e:[e],o=s.strokeWidth>0&&s.strokeColor!=="";let l,u;for(t.save(),t.font=i.string,$5(t,s),l=0;l<a.length;++l)u=a[l],s.backdrop&&t6(t,s.backdrop),o&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),_e(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(u,n,r,s.maxWidth)),t.fillText(u,n,r,s.maxWidth),e6(t,n,r,u,s),r+=Number(i.lineHeight);t.restore()}function So(t,e){const{x:n,y:r,w:i,h:s,radius:a}=e;t.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*Ke,Ke,!0),t.lineTo(n,r+s-a.bottomLeft),t.arc(n+a.bottomLeft,r+s-a.bottomLeft,a.bottomLeft,Ke,Qt,!0),t.lineTo(n+i-a.bottomRight,r+s),t.arc(n+i-a.bottomRight,r+s-a.bottomRight,a.bottomRight,Qt,0,!0),t.lineTo(n+i,r+a.topRight),t.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-Qt,!0),t.lineTo(n+a.topLeft,r)}const n6=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,r6=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function i6(t,e){const n=(""+t).match(n6);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const s6=t=>+t||0;function U0(t,e){const n={},r=Ee(e),i=r?Object.keys(e):e,s=Ee(t)?r?a=>Se(t[a],t[e[a]]):a=>t[a]:()=>t;for(const a of i)n[a]=s6(s(a));return n}function a6(t){return U0(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ai(t){return U0(t,["topLeft","topRight","bottomLeft","bottomRight"])}function dt(t){const e=a6(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ze(t,e){t=t||{},e=e||Qe.font;let n=Se(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=Se(t.style,e.style);r&&!(""+r).match(r6)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Se(t.family,e.family),lineHeight:i6(Se(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:Se(t.weight,e.weight),string:""};return i.string=K5(i),i}function Ma(t,e,n,r){let i,s,a;for(i=0,s=t.length;i<s;++i)if(a=t[i],a!==void 0&&a!==void 0)return a}function o6(t,e,n){const{min:r,max:i}=t,s=g5(e,(i-r)/2),a=(o,l)=>n&&o===0?0:o+l;return{min:a(r,-Math.abs(s)),max:a(i,s)}}function Er(t,e){return Object.assign(Object.create(t),e)}function Wc(t,e=[""],n,r,i=()=>t[0]){const s=n||t;typeof r=="undefined"&&(r=G0("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:r,_getTarget:i,override:o=>Wc([o,...t],e,s,r)};return new Proxy(a,{deleteProperty(o,l){return delete o[l],delete o._keys,delete t[0][l],!0},get(o,l){return q0(o,l,()=>y6(l,e,t,o))},getOwnPropertyDescriptor(o,l){return Reflect.getOwnPropertyDescriptor(o._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(o,l){return ch(o).includes(l)},ownKeys(o){return ch(o)},set(o,l,u){const c=o._storage||(o._storage=i());return o[l]=c[l]=u,delete o._keys,!0}})}function Hi(t,e,n,r){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:H0(t,r),setContext:s=>Hi(t,s,n,r),override:s=>Hi(t.override(s),e,n,r)};return new Proxy(i,{deleteProperty(s,a){return delete s[a],delete t[a],!0},get(s,a,o){return q0(s,a,()=>u6(s,a,o))},getOwnPropertyDescriptor(s,a){return s._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(s,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(s,a,o){return t[a]=o,delete s[a],!0}})}function H0(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:r,isScriptable:kr(n)?n:()=>n,isIndexable:kr(r)?r:()=>r}}const l6=(t,e)=>t?t+Bc(e):e,Gc=(t,e)=>Ee(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function q0(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=n();return t[e]=r,r}function u6(t,e,n){const{_proxy:r,_context:i,_subProxy:s,_descriptors:a}=t;let o=r[e];return kr(o)&&a.isScriptable(e)&&(o=c6(e,o,t,n)),We(o)&&o.length&&(o=d6(e,o,t,a.isIndexable)),Gc(e,o)&&(o=Hi(o,i,s&&s[e],a)),o}function c6(t,e,n,r){const{_proxy:i,_context:s,_subProxy:a,_stack:o}=n;if(o.has(t))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+t);o.add(t);let l=e(s,a||r);return o.delete(t),Gc(t,l)&&(l=Qc(i._scopes,i,t,l)),l}function d6(t,e,n,r){const{_proxy:i,_context:s,_subProxy:a,_descriptors:o}=n;if(typeof s.index!="undefined"&&r(t))return e[s.index%e.length];if(Ee(e[0])){const l=e,u=i._scopes.filter(c=>c!==l);e=[];for(const c of l){const f=Qc(u,i,t,c);e.push(Hi(f,s,a&&a[t],o))}}return e}function W0(t,e,n){return kr(t)?t(e,n):t}const f6=(t,e)=>t===!0?e:typeof t=="string"?Xs(e,t):void 0;function h6(t,e,n,r,i){for(const s of e){const a=f6(n,s);if(a){t.add(a);const o=W0(a._fallback,n,i);if(typeof o!="undefined"&&o!==n&&o!==r)return o}else if(a===!1&&typeof r!="undefined"&&n!==r)return null}return!1}function Qc(t,e,n,r){const i=e._rootScopes,s=W0(e._fallback,n,r),a=[...t,...i],o=new Set;o.add(r);let l=uh(o,a,n,s||n,r);return l===null||typeof s!="undefined"&&s!==n&&(l=uh(o,a,s,l,r),l===null)?!1:Wc(Array.from(o),[""],i,s,()=>p6(e,n,r))}function uh(t,e,n,r,i){for(;n;)n=h6(t,e,n,r,i);return n}function p6(t,e,n){const r=t._getTarget();e in r||(r[e]={});const i=r[e];return We(i)&&Ee(n)?n:i||{}}function y6(t,e,n,r){let i;for(const s of e)if(i=G0(l6(s,t),n),typeof i!="undefined")return Gc(t,i)?Qc(n,r,t,i):i}function G0(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r!="undefined")return r}}function ch(t){let e=t._keys;return e||(e=t._keys=m6(t._scopes)),e}function m6(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))e.add(r);return Array.from(e)}function g6(t,e,n,r){const{iScale:i}=t,{key:s="r"}=this._parsing,a=new Array(r);let o,l,u,c;for(o=0,l=r;o<l;++o)u=o+n,c=e[u],a[o]={r:i.parse(Xs(c,s),u)};return a}const v6=Number.EPSILON||1e-14,qi=(t,e)=>e<t.length&&!t[e].skip&&t[e],Q0=t=>t==="x"?"y":"x";function b6(t,e,n,r){const i=t.skip?e:t,s=e,a=n.skip?e:n,o=_u(s,i),l=_u(a,s);let u=o/(o+l),c=l/(o+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const f=r*u,p=r*c;return{previous:{x:s.x-f*(a.x-i.x),y:s.y-f*(a.y-i.y)},next:{x:s.x+p*(a.x-i.x),y:s.y+p*(a.y-i.y)}}}function x6(t,e,n){const r=t.length;let i,s,a,o,l,u=qi(t,0);for(let c=0;c<r-1;++c)if(l=u,u=qi(t,c+1),!(!l||!u)){if(Ts(e[c],0,v6)){n[c]=n[c+1]=0;continue}i=n[c]/e[c],s=n[c+1]/e[c],o=Math.pow(i,2)+Math.pow(s,2),!(o<=9)&&(a=3/Math.sqrt(o),n[c]=i*a*e[c],n[c+1]=s*a*e[c])}}function w6(t,e,n="x"){const r=Q0(n),i=t.length;let s,a,o,l=qi(t,0);for(let u=0;u<i;++u){if(a=o,o=l,l=qi(t,u+1),!o)continue;const c=o[n],f=o[r];a&&(s=(c-a[n])/3,o[`cp1${n}`]=c-s,o[`cp1${r}`]=f-s*e[u]),l&&(s=(l[n]-c)/3,o[`cp2${n}`]=c+s,o[`cp2${r}`]=f+s*e[u])}}function A6(t,e="x"){const n=Q0(e),r=t.length,i=Array(r).fill(0),s=Array(r);let a,o,l,u=qi(t,0);for(a=0;a<r;++a)if(o=l,l=u,u=qi(t,a+1),!!l){if(u){const c=u[e]-l[e];i[a]=c!==0?(u[n]-l[n])/c:0}s[a]=o?u?Ui(i[a-1])!==Ui(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}x6(t,i,s),w6(t,s,e)}function La(t,e,n){return Math.max(Math.min(t,n),e)}function S6(t,e){let n,r,i,s,a,o=Jn(t[0],e);for(n=0,r=t.length;n<r;++n)a=s,s=o,o=n<r-1&&Jn(t[n+1],e),s&&(i=t[n],a&&(i.cp1x=La(i.cp1x,e.left,e.right),i.cp1y=La(i.cp1y,e.top,e.bottom)),o&&(i.cp2x=La(i.cp2x,e.left,e.right),i.cp2y=La(i.cp2y,e.top,e.bottom)))}function C6(t,e,n,r,i){let s,a,o,l;if(e.spanGaps&&(t=t.filter(u=>!u.skip)),e.cubicInterpolationMode==="monotone")A6(t,i);else{let u=r?t[t.length-1]:t[0];for(s=0,a=t.length;s<a;++s)o=t[s],l=b6(u,o,t[Math.min(s+1,a-(r?0:1))%a],e.tension),o.cp1x=l.previous.x,o.cp1y=l.previous.y,o.cp2x=l.next.x,o.cp2y=l.next.y,u=o}e.capBezierPoints&&S6(t,n)}function Yc(){return typeof window!="undefined"&&typeof document!="undefined"}function Vc(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Co(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const Xo=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function k6(t,e){return Xo(t).getPropertyValue(e)}const j6=["top","right","bottom","left"];function $r(t,e,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const s=j6[i];r[s]=parseFloat(t[e+"-"+s+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const E6=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function O6(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:i,offsetY:s}=r;let a=!1,o,l;if(E6(i,s,t.target))o=i,l=s;else{const u=e.getBoundingClientRect();o=r.clientX-u.left,l=r.clientY-u.top,a=!0}return{x:o,y:l,box:a}}function Rr(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,i=Xo(n),s=i.boxSizing==="border-box",a=$r(i,"padding"),o=$r(i,"border","width"),{x:l,y:u,box:c}=O6(t,n),f=a.left+(c&&o.left),p=a.top+(c&&o.top);let{width:h,height:y}=e;return s&&(h-=a.width+o.width,y-=a.height+o.height),{x:Math.round((l-f)/h*n.width/r),y:Math.round((u-p)/y*n.height/r)}}function P6(t,e,n){let r,i;if(e===void 0||n===void 0){const s=t&&Vc(t);if(!s)e=t.clientWidth,n=t.clientHeight;else{const a=s.getBoundingClientRect(),o=Xo(s),l=$r(o,"border","width"),u=$r(o,"padding");e=a.width-u.width-l.width,n=a.height-u.height-l.height,r=Co(o.maxWidth,s,"clientWidth"),i=Co(o.maxHeight,s,"clientHeight")}}return{width:e,height:n,maxWidth:r||wo,maxHeight:i||wo}}const xr=t=>Math.round(t*10)/10;function T6(t,e,n,r){const i=Xo(t),s=$r(i,"margin"),a=Co(i.maxWidth,t,"clientWidth")||wo,o=Co(i.maxHeight,t,"clientHeight")||wo,l=P6(t,e,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const p=$r(i,"border","width"),h=$r(i,"padding");u-=h.width+p.width,c-=h.height+p.height}return u=Math.max(0,u-s.width),c=Math.max(0,r?u/r:c-s.height),u=xr(Math.min(u,a,l.maxWidth)),c=xr(Math.min(c,o,l.maxHeight)),u&&!c&&(c=xr(u/2)),(e!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=xr(Math.floor(c*r))),{width:u,height:c}}function dh(t,e,n){const r=e||1,i=xr(t.height*r),s=xr(t.width*r);t.height=xr(t.height),t.width=xr(t.width);const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||a.height!==i||a.width!==s?(t.currentDevicePixelRatio=r,a.height=i,a.width=s,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const I6=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Yc()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(e){}return t}();function fh(t,e){const n=k6(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function _r(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function M6(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:r==="middle"?n<.5?t.y:e.y:r==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function L6(t,e,n,r){const i={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},a=_r(t,i,n),o=_r(i,s,n),l=_r(s,e,n),u=_r(a,o,n),c=_r(o,l,n);return _r(u,c,n)}const N6=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},R6=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Si(t,e,n){return t?N6(e,n):R6()}function Y0(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function V0(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function K0(t){return t==="angle"?{between:R0,compare:T5,normalize:Gt}:{between:bi,compare:(e,n)=>e-n,normalize:e=>e}}function hh({start:t,end:e,count:n,loop:r,style:i}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n===0,style:i}}function _6(t,e,n){const{property:r,start:i,end:s}=n,{between:a,normalize:o}=K0(r),l=e.length;let{start:u,end:c,loop:f}=t,p,h;if(f){for(u+=l,c+=l,p=0,h=l;p<h&&a(o(e[u%l][r]),i,s);++p)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:f,style:t.style}}function X0(t,e,n){if(!n)return[t];const{property:r,start:i,end:s}=n,a=e.length,{compare:o,between:l,normalize:u}=K0(r),{start:c,end:f,loop:p,style:h}=_6(t,e,n),y=[];let m=!1,v=null,g,A,E;const C=()=>l(i,E,g)&&o(i,E)!==0,S=()=>o(s,g)===0||l(s,E,g),b=()=>m||C(),w=()=>!m||S();for(let x=c,N=c;x<=f;++x)A=e[x%a],!A.skip&&(g=u(A[r]),g!==E&&(m=l(g,i,s),v===null&&b()&&(v=o(g,i)===0?x:N),v!==null&&w()&&(y.push(hh({start:v,end:x,loop:p,count:a,style:h})),v=null),N=x,E=g));return v!==null&&y.push(hh({start:v,end:f,loop:p,count:a,style:h})),y}function J0(t,e){const n=[],r=t.segments;for(let i=0;i<r.length;i++){const s=X0(r[i],t.points,e);s.length&&n.push(...s)}return n}function D6(t,e,n,r){let i=0,s=e-1;if(n&&!r)for(;i<e&&!t[i].skip;)i++;for(;i<e&&t[i].skip;)i++;for(i%=e,n&&(s+=i);s>i&&t[s%e].skip;)s--;return s%=e,{start:i,end:s}}function B6(t,e,n,r){const i=t.length,s=[];let a=e,o=t[e],l;for(l=e+1;l<=n;++l){const u=t[l%i];u.skip||u.stop?o.skip||(r=!1,s.push({start:e%i,end:(l-1)%i,loop:r}),e=a=u.stop?l:null):(a=l,o.skip&&(e=l)),o=u}return a!==null&&s.push({start:e%i,end:a%i,loop:r}),s}function F6(t,e){const n=t.points,r=t.options.spanGaps,i=n.length;if(!i)return[];const s=!!t._loop,{start:a,end:o}=D6(n,i,s,r);if(r===!0)return ph(t,[{start:a,end:o,loop:s}],n,e);const l=o<a?o+i:o,u=!!t._fullLoop&&a===0&&o===i-1;return ph(t,B6(n,a,l,u),n,e)}function ph(t,e,n,r){return!r||!r.setContext||!n?e:z6(t,e,n,r)}function z6(t,e,n,r){const i=t._chart.getContext(),s=yh(t.options),{_datasetIndex:a,options:{spanGaps:o}}=t,l=n.length,u=[];let c=s,f=e[0].start,p=f;function h(y,m,v,g){const A=o?-1:1;if(y!==m){for(y+=l;n[y%l].skip;)y-=A;for(;n[m%l].skip;)m+=A;y%l!==m%l&&(u.push({start:y%l,end:m%l,loop:v,style:g}),c=g,f=m%l)}}for(const y of e){f=o?f:y.start;let m=n[f%l],v;for(p=f+1;p<=y.end;p++){const g=n[p%l];v=yh(r.setContext(Er(i,{type:"segment",p0:m,p1:g,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),U6(v,c)&&h(f,p-1,y.loop,c),m=g,c=v}f<p-1&&h(f,p-1,y.loop,c)}return u}function yh(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function U6(t,e){if(!e)return!1;const n=[],r=function(i,s){return Hc(s)?(n.includes(s)||n.push(s),n.indexOf(s)):s};return JSON.stringify(t,r)!==JSON.stringify(e,r)}function Na(t,e,n){return t.options.clip?t[n]:e[n]}function H6(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:Na(n,e,"left"),right:Na(n,e,"right"),top:Na(r,e,"top"),bottom:Na(r,e,"bottom")}:e}function Z0(t,e){const n=e._clip;if(n.disabled)return!1;const r=H6(e,t.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?t.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?t.height:r.bottom+(n.bottom===!0?0:n.bottom)}}/*!
46
46
  * Chart.js v4.5.1
47
47
  * https://www.chartjs.org
48
48
  * (c) 2025 Chart.js Contributors
49
49
  * Released under the MIT License
50
- */class c6{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,i){const s=n.listeners[i],a=n.duration;s.forEach(o=>o({chart:e,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=v0.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const s=r.items;let a=s.length-1,o=!1,l;for(;a>=0;--a)l=s[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),o=!0):(s[a]=s[s.length-1],s.pop());o&&(i.draw(),this._notify(i,r,e,"progress")),s.length||(r.running=!1,this._notify(i,r,e,"complete"),r.initial=!1),n+=s.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Bn=new c6;const rh="transparent",d6={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=Yf(t||rh),i=r.valid&&Yf(e||rh);return i&&i.valid?i.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class f6{constructor(e,n,r,i){const s=n[r];i=Ia([e.to,i,s,e.from]);const a=Ia([e.from,s,i]);this._active=!0,this._fn=e.fn||d6[e.type||typeof a],this._easing=Ps[e.easing]||Ps.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],s=r-this._start,a=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=Ia([e.to,n,i,e.from]),this._from=Ia([e.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,i=this._prop,s=this._from,a=this._loop,o=this._to;let l;if(this._active=s!==o&&(a||n<r),!this._active){this._target[i]=o,this._notify(!0);return}if(n<0){this._target[i]=s;return}l=n/r%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(s,o,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class N0{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!ke(e))return;const n=Object.keys(Ge.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(i=>{const s=e[i];if(!ke(s))return;const a={};for(const o of n)a[o]=s[o];(We(s.properties)&&s.properties||[i]).forEach(o=>{(o===i||!r.has(o))&&r.set(o,a)})})}_animateOptions(e,n){const r=n.options,i=p6(e,r);if(!i)return[];const s=this._createAnimations(i,r);return r.$shared&&h6(e.options.$animations,r).then(()=>{e.options=r},()=>{}),s}_createAnimations(e,n){const r=this._properties,i=[],s=e.$animations||(e.$animations={}),a=Object.keys(n),o=Date.now();let l;for(l=a.length-1;l>=0;--l){const u=a[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(e,n));continue}const c=n[u];let f=s[u];const p=r.get(u);if(f)if(p&&f.active()){f.update(p,c,o);continue}else f.cancel();if(!p||!p.duration){e[u]=c;continue}s[u]=f=new f6(p,e,u,c),i.push(f)}return i}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return Bn.add(this._chart,r),!0}}function h6(t,e){const n=[],r=Object.keys(e);for(let i=0;i<r.length;i++){const s=t[r[i]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}function p6(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function ih(t,e){const n=t&&t.options||{},r=n.reverse,i=n.min===void 0?e:0,s=n.max===void 0?e:0;return{start:r?s:i,end:r?i:s}}function y6(t,e,n){if(n===!1)return!1;const r=ih(t,n),i=ih(e,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function m6(t){let e,n,r,i;return ke(t)?(e=t.top,n=t.right,r=t.bottom,i=t.left):e=n=r=i=t,{top:e,right:n,bottom:r,left:i,disabled:t===!1}}function R0(t,e){const n=[],r=t._getSortedDatasetMetas(e);let i,s;for(i=0,s=r.length;i<s;++i)n.push(r[i].index);return n}function sh(t,e,n,r={}){const i=t.keys,s=r.mode==="single";let a,o,l,u;if(e===null)return;let c=!1;for(a=0,o=i.length;a<o;++a){if(l=+i[a],l===n){if(c=!0,r.all)continue;break}u=t.values[l],et(u)&&(s||e===0||Di(e)===Di(u))&&(e+=u)}return!c&&!r.all?0:e}function g6(t,e){const{iScale:n,vScale:r}=e,i=n.axis==="x"?"x":"y",s=r.axis==="x"?"x":"y",a=Object.keys(t),o=new Array(a.length);let l,u,c;for(l=0,u=a.length;l<u;++l)c=a[l],o[l]={[i]:c,[s]:t[c]};return o}function wl(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function v6(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function b6(t){const{min:e,max:n,minDefined:r,maxDefined:i}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function x6(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function ah(t,e,n,r){for(const i of e.getMatchingVisibleMetas(r).reverse()){const s=t[i.index];if(n&&s>0||!n&&s<0)return i.index}return null}function oh(t,e){const{chart:n,_cachedMeta:r}=t,i=n._stacks||(n._stacks={}),{iScale:s,vScale:a,index:o}=r,l=s.axis,u=a.axis,c=v6(s,a,r),f=e.length;let p;for(let h=0;h<f;++h){const y=e[h],{[l]:m,[u]:v}=y,g=y._stacks||(y._stacks={});p=g[u]=x6(i,c,m),p[o]=v,p._top=ah(p,a,!0,r.type),p._bottom=ah(p,a,!1,r.type);const A=p._visualValues||(p._visualValues={});A[o]=v}}function Al(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function w6(t,e){return kr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function A6(t,e,n){return kr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function ls(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const i of e){const s=i._stacks;if(!s||s[r]===void 0||s[r][n]===void 0)return;delete s[r][n],s[r]._visualValues!==void 0&&s[r]._visualValues[n]!==void 0&&delete s[r]._visualValues[n]}}}const Sl=t=>t==="reset"||t==="none",lh=(t,e)=>e?t:Object.assign({},t),S6=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:R0(n,!0),values:null};class xi{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=wl(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&ls(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(f,p,h,y)=>f==="x"?p:f==="r"?y:h,s=n.xAxisID=Se(r.xAxisID,Al(e,"x")),a=n.yAxisID=Se(r.yAxisID,Al(e,"y")),o=n.rAxisID=Se(r.rAxisID,Al(e,"r")),l=n.indexAxis,u=n.iAxisID=i(l,s,a,o),c=n.vAxisID=i(l,a,s,o);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(o),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Wf(this._data,this),e._stacked&&ls(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(ke(n)){const i=this._cachedMeta;this._data=g6(n,i)}else if(r!==n){if(r){Wf(r,this);const i=this._cachedMeta;ls(i),i._parsed=[]}n&&Object.isExtensible(n)&&t5(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const s=n._stacked;n._stacked=wl(n.vScale,n),n.stack!==r.stack&&(i=!0,ls(n),n.stack=r.stack),this._resyncElements(e),(i||s!==n._stacked)&&(oh(this,n._parsed),n._stacked=wl(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:i}=this,{iScale:s,_stacked:a}=r,o=s.axis;let l=e===0&&n===i.length?!0:r._sorted,u=e>0&&r._parsed[e-1],c,f,p;if(this._parsing===!1)r._parsed=i,r._sorted=!0,p=i;else{We(i[e])?p=this.parseArrayData(r,i,e,n):ke(i[e])?p=this.parseObjectData(r,i,e,n):p=this.parsePrimitiveData(r,i,e,n);const h=()=>f[o]===null||u&&f[o]<u[o];for(c=0;c<n;++c)r._parsed[c+e]=f=p[c],l&&(h()&&(l=!1),u=f);r._sorted=l}a&&oh(this,p)}parsePrimitiveData(e,n,r,i){const{iScale:s,vScale:a}=e,o=s.axis,l=a.axis,u=s.getLabels(),c=s===a,f=new Array(i);let p,h,y;for(p=0,h=i;p<h;++p)y=p+r,f[p]={[o]:c||s.parse(u[y],y),[l]:a.parse(n[y],y)};return f}parseArrayData(e,n,r,i){const{xScale:s,yScale:a}=e,o=new Array(i);let l,u,c,f;for(l=0,u=i;l<u;++l)c=l+r,f=n[c],o[l]={x:s.parse(f[0],c),y:a.parse(f[1],c)};return o}parseObjectData(e,n,r,i){const{xScale:s,yScale:a}=e,{xAxisKey:o="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let c,f,p,h;for(c=0,f=i;c<f;++c)p=c+r,h=n[p],u[c]={x:s.parse(Ks(h,o),p),y:a.parse(Ks(h,l),p)};return u}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const i=this.chart,s=this._cachedMeta,a=n[e.axis],o={keys:R0(i,!0),values:n._stacks[e.axis]._visualValues};return sh(o,a,s.index,{mode:r})}updateRangeFromParsed(e,n,r,i){const s=r[n.axis];let a=s===null?NaN:s;const o=i&&r._stacks[n.axis];i&&o&&(i.values=o,a=sh(i,s,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}getMinMax(e,n){const r=this._cachedMeta,i=r._parsed,s=r._sorted&&e===r.iScale,a=i.length,o=this._getOtherScale(e),l=S6(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:f}=b6(o);let p,h;function y(){h=i[p];const m=h[o.axis];return!et(h[e.axis])||c>m||f<m}for(p=0;p<a&&!(!y()&&(this.updateRangeFromParsed(u,e,h,l),s));++p);if(s){for(p=a-1;p>=0;--p)if(!y()){this.updateRangeFromParsed(u,e,h,l);break}}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let i,s,a;for(i=0,s=n.length;i<s;++i)a=n[i][e.axis],et(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,i=n.vScale,s=this.getParsed(e);return{label:r?""+r.getLabelForValue(s[r.axis]):"",value:i?""+i.getLabelForValue(s[i.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=m6(Se(this.options.clip,y6(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],s=n.chartArea,a=[],o=this._drawStart||0,l=this._drawCount||i.length-o,u=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(e,s,o,l),c=o;c<o+l;++c){const f=i[c];f.hidden||(f.active&&u?a.push(f):f.draw(e,s))}for(c=0;c<a.length;++c)a[c].draw(e,s)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const i=this.getDataset();let s;if(e>=0&&e<this._cachedMeta.data.length){const a=this._cachedMeta.data[e];s=a.$context||(a.$context=A6(this.getContext(),e,a)),s.parsed=this.getParsed(e),s.raw=i.data[e],s.index=s.dataIndex=e}else s=this.$context||(this.$context=w6(this.chart.getContext(),this.index)),s.dataset=i,s.index=s.datasetIndex=this.index;return s.active=!!n,s.mode=r,s}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const i=n==="active",s=this._cachedDataOpts,a=e+"-"+n,o=s[a],l=this.enableOptionSharing&&vo(r);if(o)return lh(o,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,e),f=i?[`${e}Hover`,"hover",e,""]:[e,""],p=u.getOptionScopes(this.getDataset(),c),h=Object.keys(Ge.elements[e]),y=()=>this.getContext(r,i,n),m=u.resolveNamedOptions(p,h,y,f);return m.$shared&&(m.$shared=l,s[a]=Object.freeze(lh(m,l))),m}_resolveAnimations(e,n,r){const i=this.chart,s=this._cachedDataOpts,a=`animation-${n}`,o=s[a];if(o)return o;let l;if(i.options.animation!==!1){const c=this.chart.config,f=c.datasetAnimationScopeKeys(this._type,n),p=c.getOptionScopes(this.getDataset(),f);l=c.createResolver(p,this.getContext(e,r,n))}const u=new N0(i,l&&l.animations);return l&&l._cacheable&&(s[a]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||Sl(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),i=this._sharedOptions,s=this.getSharedOptions(r),a=this.includeOptions(n,s)||s!==i;return this.updateSharedOptions(s,n,r),{sharedOptions:s,includeOptions:a}}updateElement(e,n,r,i){Sl(i)?Object.assign(e,r):this._resolveAnimations(n,i).update(e,r)}updateSharedOptions(e,n,r){e&&!Sl(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,i){e.active=i;const s=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(e,{options:!i&&this.getSharedOptions(s)||s})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[o,l,u]of this._syncList)this[o](l,u);this._syncList=[];const i=r.length,s=n.length,a=Math.min(s,i);a&&this.parse(0,a),s>i?this._insertElements(i,s-i,e):s<i&&this._removeElements(s,i-s)}_insertElements(e,n,r=!0){const i=this._cachedMeta,s=i.data,a=e+n;let o;const l=u=>{for(u.length+=n,o=u.length-1;o>=a;o--)u[o]=u[o-n]};for(l(s),o=e;o<a;++o)s[o]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(e,n),r&&this.updateElements(s,e,n,"reset")}updateElements(e,n,r,i){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(e,n);r._stacked&&ls(r,i)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,i]=e;this[n](r,i)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ce(xi,"defaults",{}),ce(xi,"datasetElementType",null),ce(xi,"dataElementType",null);class eo extends xi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:s}=n,a=this.chart._animationsDisabled;let{start:o,count:l}=s5(n,i,a);this._drawStart=o,this._drawCount=l,a5(n)&&(o=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=i;const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:u},e),this.updateElements(i,o,l,e)}updateElements(e,n,r,i){const s=i==="reset",{iScale:a,vScale:o,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:f}=this._getSharedOptions(n,i),p=a.axis,h=o.axis,{spanGaps:y,segment:m}=this.options,v=Xs(y)?y:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||s||i==="none",A=n+r,E=e.length;let j=n>0&&this.getParsed(n-1);for(let S=0;S<E;++S){const b=e[S],w=g?b:{};if(S<n||S>=A){w.skip=!0;continue}const x=this.getParsed(S),N=_e(x[h]),_=w[p]=a.getPixelForValue(x[p],S),I=w[h]=s||N?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,x,l):x[h],S);w.skip=isNaN(_)||isNaN(I)||N,w.stop=S>0&&Math.abs(x[p]-j[p])>v,m&&(w.parsed=x,w.raw=u.data[S]),f&&(w.options=c||this.resolveDataElementOptions(S,b.active?"active":i)),g||this.updateElement(b,S,w,i),j=x}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,r=n.options&&n.options.borderWidth||0,i=e.data||[];if(!i.length)return r;const s=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,s,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}ce(eo,"id","line"),ce(eo,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ce(eo,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class to extends xi{getLabelAndValue(e){const n=this._cachedMeta.vScale,r=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(e,n,r,i){return B5.bind(this)(e,n,r,i)}update(e){const n=this._cachedMeta,r=n.dataset,i=n.data||[],s=n.iScale.getLabels();if(r.points=i,e!=="resize"){const a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===i.length,options:a};this.updateElement(r,void 0,o,e)}this.updateElements(i,0,i.length,e)}updateElements(e,n,r,i){const s=this._cachedMeta.rScale,a=i==="reset";for(let o=n;o<n+r;o++){const l=e[o],u=this.resolveDataElementOptions(o,l.active?"active":i),c=s.getPointPositionForValue(o,this.getParsed(o).r),f=a?s.xCenter:c.x,p=a?s.yCenter:c.y,h={x:f,y:p,angle:c.angle,skip:isNaN(f)||isNaN(p),options:u};this.updateElement(l,o,h,i)}}}ce(to,"id","radar"),ce(to,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),ce(to,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});function Ir(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class qc{constructor(e){ce(this,"options");this.options=e||{}}static override(e){Object.assign(qc.prototype,e)}init(){}formats(){return Ir()}parse(){return Ir()}format(){return Ir()}add(){return Ir()}diff(){return Ir()}startOf(){return Ir()}endOf(){return Ir()}}var C6={_date:qc};function k6(t,e,n,r){const{controller:i,data:s,_sorted:a}=t,o=i._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(o&&e===o.axis&&e!=="r"&&a&&s.length){const u=o._reversePixels?$C:Fr;if(r){if(i._sharedOptions){const c=s[0],f=typeof c.getRange=="function"&&c.getRange(e);if(f){const p=u(s,e,n-f),h=u(s,e,n+f);return{lo:p.lo,hi:h.hi}}}}else{const c=u(s,e,n);if(l){const{vScale:f}=i._cachedMeta,{_parsed:p}=t,h=p.slice(0,c.lo+1).reverse().findIndex(m=>!_e(m[f.axis]));c.lo-=Math.max(0,h);const y=p.slice(c.hi).findIndex(m=>!_e(m[f.axis]));c.hi+=Math.max(0,y)}return c}}return{lo:0,hi:s.length-1}}function Vo(t,e,n,r,i){const s=t.getSortedVisibleDatasetMetas(),a=n[e];for(let o=0,l=s.length;o<l;++o){const{index:u,data:c}=s[o],{lo:f,hi:p}=k6(s[o],e,a,i);for(let h=f;h<=p;++h){const y=c[h];y.skip||r(y,u,h)}}}function j6(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,i){const s=e?Math.abs(r.x-i.x):0,a=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(a,2))}}function Cl(t,e,n,r,i){const s=[];return!i&&!t.isPointInArea(e)||Vo(t,n,e,function(o,l,u){!i&&!Yn(o,t.chartArea,0)||o.inRange(e.x,e.y,r)&&s.push({element:o,datasetIndex:l,index:u})},!0),s}function E6(t,e,n,r){let i=[];function s(a,o,l){const{startAngle:u,endAngle:c}=a.getProps(["startAngle","endAngle"],r),{angle:f}=XC(a,{x:e.x,y:e.y});m0(f,u,c)&&i.push({element:a,datasetIndex:o,index:l})}return Vo(t,n,e,s),i}function O6(t,e,n,r,i,s){let a=[];const o=j6(n);let l=Number.POSITIVE_INFINITY;function u(c,f,p){const h=c.inRange(e.x,e.y,i);if(r&&!h)return;const y=c.getCenterPoint(i);if(!(!!s||t.isPointInArea(y))&&!h)return;const v=o(e,y);v<l?(a=[{element:c,datasetIndex:f,index:p}],l=v):v===l&&a.push({element:c,datasetIndex:f,index:p})}return Vo(t,n,e,u),a}function kl(t,e,n,r,i,s){return!s&&!t.isPointInArea(e)?[]:n==="r"&&!r?E6(t,e,n,i):O6(t,e,n,r,i,s)}function uh(t,e,n,r,i){const s=[],a=n==="x"?"inXRange":"inYRange";let o=!1;return Vo(t,n,e,(l,u,c)=>{l[a]&&l[a](e[n],i)&&(s.push({element:l,datasetIndex:u,index:c}),o=o||l.inRange(e.x,e.y,i))}),r&&!o?[]:s}var P6={modes:{index(t,e,n,r){const i=Lr(e,t),s=n.axis||"x",a=n.includeInvisible||!1,o=n.intersect?Cl(t,i,s,r,a):kl(t,i,s,!1,r,a),l=[];return o.length?(t.getSortedVisibleDatasetMetas().forEach(u=>{const c=o[0].index,f=u.data[c];f&&!f.skip&&l.push({element:f,datasetIndex:u.index,index:c})}),l):[]},dataset(t,e,n,r){const i=Lr(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;let o=n.intersect?Cl(t,i,s,r,a):kl(t,i,s,!1,r,a);if(o.length>0){const l=o[0].datasetIndex,u=t.getDatasetMeta(l).data;o=[];for(let c=0;c<u.length;++c)o.push({element:u[c],datasetIndex:l,index:c})}return o},point(t,e,n,r){const i=Lr(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;return Cl(t,i,s,r,a)},nearest(t,e,n,r){const i=Lr(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;return kl(t,i,s,n.intersect,r,a)},x(t,e,n,r){const i=Lr(e,t);return uh(t,i,"x",n.intersect,r)},y(t,e,n,r){const i=Lr(e,t);return uh(t,i,"y",n.intersect,r)}}};const _0=["left","top","right","bottom"];function us(t,e){return t.filter(n=>n.pos===e)}function ch(t,e){return t.filter(n=>_0.indexOf(n.pos)===-1&&n.box.axis===e)}function cs(t,e){return t.sort((n,r)=>{const i=e?r:n,s=e?n:r;return i.weight===s.weight?i.index-s.index:i.weight-s.weight})}function T6(t){const e=[];let n,r,i,s,a,o;for(n=0,r=(t||[]).length;n<r;++n)i=t[n],{position:s,options:{stack:a,stackWeight:o=1}}=i,e.push({index:n,box:i,pos:s,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&s+a,stackWeight:o});return e}function I6(t){const e={};for(const n of t){const{stack:r,pos:i,stackWeight:s}=n;if(!r||!_0.includes(i))continue;const a=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=s}return e}function M6(t,e){const n=I6(t),{vBoxMaxWidth:r,hBoxMaxHeight:i}=e;let s,a,o;for(s=0,a=t.length;s<a;++s){o=t[s];const{fullSize:l}=o.box,u=n[o.stack],c=u&&o.stackWeight/u.weight;o.horizontal?(o.width=c?c*r:l&&e.availableWidth,o.height=i):(o.width=r,o.height=c?c*i:l&&e.availableHeight)}return n}function L6(t){const e=T6(t),n=cs(e.filter(u=>u.box.fullSize),!0),r=cs(us(e,"left"),!0),i=cs(us(e,"right")),s=cs(us(e,"top"),!0),a=cs(us(e,"bottom")),o=ch(e,"x"),l=ch(e,"y");return{fullSize:n,leftAndTop:r.concat(s),rightAndBottom:i.concat(l).concat(a).concat(o),chartArea:us(e,"chartArea"),vertical:r.concat(i).concat(l),horizontal:s.concat(a).concat(o)}}function dh(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function D0(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function N6(t,e,n,r){const{pos:i,box:s}=n,a=t.maxPadding;if(!ke(i)){n.size&&(t[i]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?s.height:s.width),n.size=f.size/f.count,t[i]+=n.size}s.getPadding&&D0(a,s.getPadding());const o=Math.max(0,e.outerWidth-dh(a,t,"left","right")),l=Math.max(0,e.outerHeight-dh(a,t,"top","bottom")),u=o!==t.w,c=l!==t.h;return t.w=o,t.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function R6(t){const e=t.maxPadding;function n(r){const i=Math.max(e[r]-t[r],0);return t[r]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function _6(t,e){const n=e.maxPadding;function r(i){const s={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{s[a]=Math.max(e[a],n[a])}),s}return r(t?["left","right"]:["top","bottom"])}function ws(t,e,n,r){const i=[];let s,a,o,l,u,c;for(s=0,a=t.length,u=0;s<a;++s){o=t[s],l=o.box,l.update(o.width||e.w,o.height||e.h,_6(o.horizontal,e));const{same:f,other:p}=N6(e,n,o,r);u|=f&&i.length,c=c||p,l.fullSize||i.push(o)}return u&&ws(i,e,n,r)||c}function Na(t,e,n,r,i){t.top=n,t.left=e,t.right=e+r,t.bottom=n+i,t.width=r,t.height=i}function fh(t,e,n,r){const i=n.padding;let{x:s,y:a}=e;for(const o of t){const l=o.box,u=r[o.stack]||{placed:0,weight:1},c=o.stackWeight/u.weight||1;if(o.horizontal){const f=e.w*c,p=u.size||l.height;vo(u.start)&&(a=u.start),l.fullSize?Na(l,i.left,a,n.outerWidth-i.right-i.left,p):Na(l,e.left+u.placed,a,f,p),u.start=a,u.placed+=f,a=l.bottom}else{const f=e.h*c,p=u.size||l.width;vo(u.start)&&(s=u.start),l.fullSize?Na(l,s,i.top,p,n.outerHeight-i.bottom-i.top):Na(l,s,e.top+u.placed,p,f),u.start=s,u.placed+=f,s=l.right}}e.x=s,e.y=a}var rn={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const i=ft(t.options.layout.padding),s=Math.max(e-i.width,0),a=Math.max(n-i.height,0),o=L6(t.boxes),l=o.vertical,u=o.horizontal;Re(t.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const c=l.reduce((m,v)=>v.box.options&&v.box.options.display===!1?m:m+1,0)||1,f=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:s,availableHeight:a,vBoxMaxWidth:s/2/c,hBoxMaxHeight:a/2}),p=Object.assign({},i);D0(p,ft(r));const h=Object.assign({maxPadding:p,w:s,h:a,x:i.left,y:i.top},i),y=M6(l.concat(u),f);ws(o.fullSize,h,f,y),ws(l,h,f,y),ws(u,h,f,y)&&ws(l,h,f,y),R6(h),fh(o.leftAndTop,h,f,y),h.x+=h.w,h.y+=h.h,fh(o.rightAndBottom,h,f,y),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Re(o.chartArea,m=>{const v=m.box;Object.assign(v,t.chartArea),v.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class B0{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,i){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(e){return!0}updateConfig(e){}}class D6 extends B0{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const no="$chartjs",B6={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},hh=t=>t===null||t==="";function F6(t,e){const n=t.style,r=t.getAttribute("height"),i=t.getAttribute("width");if(t[no]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",hh(i)){const s=$f(t,"width");s!==void 0&&(t.width=s)}if(hh(r))if(t.style.height==="")t.height=t.width/(e||2);else{const s=$f(t,"height");s!==void 0&&(t.height=s)}return t}const F0=Z5?{passive:!0}:!1;function z6(t,e,n){t&&t.addEventListener(e,n,F0)}function U6(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,F0)}function H6(t,e){const n=B6[t.type]||t.type,{x:r,y:i}=Lr(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:i!==void 0?i:null}}function So(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function q6(t,e,n){const r=t.canvas,i=new MutationObserver(s=>{let a=!1;for(const o of s)a=a||So(o.addedNodes,r),a=a&&!So(o.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function W6(t,e,n){const r=t.canvas,i=new MutationObserver(s=>{let a=!1;for(const o of s)a=a||So(o.removedNodes,r),a=a&&!So(o.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Js=new Map;let ph=0;function z0(){const t=window.devicePixelRatio;t!==ph&&(ph=t,Js.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Q6(t,e){Js.size||window.addEventListener("resize",z0),Js.set(t,e)}function G6(t){Js.delete(t),Js.size||window.removeEventListener("resize",z0)}function Y6(t,e,n){const r=t.canvas,i=r&&Hc(r);if(!i)return;const s=b0((o,l)=>{const u=i.clientWidth;n(o,l),u<i.clientWidth&&n()},window),a=new ResizeObserver(o=>{const l=o[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||s(u,c)});return a.observe(i),Q6(t,s),a}function jl(t,e,n){n&&n.disconnect(),e==="resize"&&G6(t)}function V6(t,e,n){const r=t.canvas,i=b0(s=>{t.ctx!==null&&n(H6(s,t))},t);return z6(r,e,i),i}class K6 extends B0{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(F6(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[no])return!1;const r=n[no].initial;["height","width"].forEach(s=>{const a=r[s];_e(a)?n.removeAttribute(s):n.setAttribute(s,a)});const i=r.style||{};return Object.keys(i).forEach(s=>{n.style[s]=i[s]}),n.width=n.width,delete n[no],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const i=e.$proxies||(e.$proxies={}),a={attach:q6,detach:W6,resize:Y6}[n]||V6;i[n]=a(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),i=r[n];if(!i)return;({attach:jl,detach:jl,resize:jl}[n]||U6)(e,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,i){return J5(e,n,r,i)}isAttached(e){const n=e&&Hc(e);return!!(n&&n.isConnected)}}function X6(t){return!Uc()||typeof OffscreenCanvas!="undefined"&&t instanceof OffscreenCanvas?D6:K6}class Jn{constructor(){ce(this,"x");ce(this,"y");ce(this,"active",!1);ce(this,"options");ce(this,"$animations")}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return Xs(this.x)&&Xs(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const i={};return e.forEach(s=>{i[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),i}}ce(Jn,"defaults",{}),ce(Jn,"defaultRoutes");function J6(t,e){const n=t.options.ticks,r=Z6(t),i=Math.min(n.maxTicksLimit||r,r),s=n.major.enabled?e4(e):[],a=s.length,o=s[0],l=s[a-1],u=[];if(a>i)return t4(e,u,s,a/i),u;const c=$6(s,e,i);if(a>0){let f,p;const h=a>1?Math.round((l-o)/(a-1)):null;for(Ra(e,u,c,_e(h)?0:o-h,o),f=0,p=a-1;f<p;f++)Ra(e,u,c,s[f],s[f+1]);return Ra(e,u,c,l,_e(h)?e.length:l+h),u}return Ra(e,u,c),u}function Z6(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),i=t._maxLength/n;return Math.floor(Math.min(r,i))}function $6(t,e,n){const r=n4(t),i=e.length/n;if(!r)return Math.max(i,1);const s=GC(r);for(let a=0,o=s.length-1;a<o;a++){const l=s[a];if(l>i)return l}return Math.max(i,1)}function e4(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function t4(t,e,n,r){let i=0,s=n[0],a;for(r=Math.ceil(r),a=0;a<t.length;a++)a===s&&(e.push(t[a]),i++,s=n[i*r])}function Ra(t,e,n,r,i){const s=Se(r,0),a=Math.min(Se(i,t.length),t.length);let o=0,l,u,c;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),c=s;c<0;)o++,c=Math.round(s+o*n);for(u=Math.max(s,0);u<a;u++)u===c&&(e.push(t[u]),o++,c=Math.round(s+o*n))}function n4(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const r4=t=>t==="left"?"right":t==="right"?"left":t,yh=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,mh=(t,e)=>Math.min(e||t,t);function gh(t,e){const n=[],r=t.length/e,i=t.length;let s=0;for(;s<i;s+=r)n.push(t[Math.floor(s)]);return n}function i4(t,e,n){const r=t.ticks.length,i=Math.min(e,r-1),s=t._startPixel,a=t._endPixel,o=1e-6;let l=t.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-s,a-l):e===0?u=(t.getPixelForTick(1)-l)/2:u=(l-t.getPixelForTick(i-1))/2,l+=i<e?u:-u,l<s-o||l>a+o)))return l}function s4(t,e){Re(t,n=>{const r=n.gc,i=r.length/2;let s;if(i>e){for(s=0;s<i;++s)delete n.data[r[s]];r.splice(0,i)}})}function ds(t){return t.drawTicks?t.tickLength:0}function vh(t,e){if(!t.display)return 0;const n=Ze(t.font,e),r=ft(t.padding);return(We(t.text)?t.text.length:1)*n.lineHeight+r.height}function a4(t,e){return kr(t,{scale:e,type:"scale"})}function o4(t,e,n){return kr(t,{tick:n,index:e,type:"tick"})}function l4(t,e,n){let r=Rc(t);return(n&&e!=="right"||!n&&e==="right")&&(r=r4(r)),r}function u4(t,e,n,r){const{top:i,left:s,bottom:a,right:o,chart:l}=t,{chartArea:u,scales:c}=l;let f=0,p,h,y;const m=a-i,v=o-s;if(t.isHorizontal()){if(h=ct(r,s,o),ke(n)){const g=Object.keys(n)[0],A=n[g];y=c[g].getPixelForValue(A)+m-e}else n==="center"?y=(u.bottom+u.top)/2+m-e:y=yh(t,n,e);p=o-s}else{if(ke(n)){const g=Object.keys(n)[0],A=n[g];h=c[g].getPixelForValue(A)-v+e}else n==="center"?h=(u.left+u.right)/2-v+e:h=yh(t,n,e);y=ct(r,a,i),f=n==="left"?-Yt:Yt}return{titleX:h,titleY:y,maxWidth:p,rotation:f}}class Vi extends Jn{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return e=gn(e,Number.POSITIVE_INFINITY),n=gn(n,Number.NEGATIVE_INFINITY),r=gn(r,Number.POSITIVE_INFINITY),i=gn(i,Number.NEGATIVE_INFINITY),{min:gn(e,r),max:gn(n,i),minDefined:et(e),maxDefined:et(n)}}getMinMax(e){let{min:n,max:r,minDefined:i,maxDefined:s}=this.getUserBounds(),a;if(i&&s)return{min:n,max:r};const o=this.getMatchingVisibleMetas();for(let l=0,u=o.length;l<u;++l)a=o[l].controller.getMinMax(this,e),i||(n=Math.min(n,a.min)),s||(r=Math.max(r,a.max));return n=s&&n>r?r:n,r=i&&n>r?n:r,{min:gn(n,gn(r,n)),max:gn(r,gn(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Fe(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:i,grace:s,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=O5(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=o<this.ticks.length;this._convertTicksToLabels(l?gh(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=J6(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,e=!e),this._startPixel=n,this._endPixel=r,this._reversePixels=e,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Fe(this.options.afterUpdate,[this])}beforeSetDimensions(){Fe(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Fe(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Fe(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Fe(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,i,s;for(r=0,i=e.length;r<i;r++)s=e[r],s.label=Fe(n.callback,[s.value,r,e],this)}afterTickToLabelConversion(){Fe(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Fe(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=mh(this.ticks.length,e.ticks.maxTicksLimit),i=n.minRotation||0,s=n.maxRotation;let a=i,o,l,u;if(!this._isVisible()||!n.display||i>=s||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const c=this._getLabelSizes(),f=c.widest.width,p=c.highest.height,h=nn(this.chart.width-f,0,this.maxWidth);o=e.offset?this.maxWidth/r:h/(r-1),f+6>o&&(o=h/(r-(e.offset?.5:1)),l=this.maxHeight-ds(e.grid)-n.padding-vh(e.title,this.chart.options.font),u=Math.sqrt(f*f+p*p),a=Lc(Math.min(Math.asin(nn((c.highest.height+6)/o,-1,1)),Math.asin(nn(l/u,-1,1))-Math.asin(nn(p/u,-1,1)))),a=Math.max(i,Math.min(s,a))),this.labelRotation=a}afterCalculateLabelRotation(){Fe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Fe(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:s}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){const l=vh(i,n.options.font);if(o?(e.width=this.maxWidth,e.height=ds(s)+l):(e.height=this.maxHeight,e.width=ds(s)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:f,highest:p}=this._getLabelSizes(),h=r.padding*2,y=gr(this.labelRotation),m=Math.cos(y),v=Math.sin(y);if(o){const g=r.mirror?0:v*f.width+m*p.height;e.height=Math.min(this.maxHeight,e.height+g+h)}else{const g=r.mirror?0:m*f.width+v*p.height;e.width=Math.min(this.maxWidth,e.width+g+h)}this._calculatePadding(u,c,v,m)}}this._handleMargins(),o?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,i){const{ticks:{align:s,padding:a},position:o}=this.options,l=this.labelRotation!==0,u=o!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,h=0;l?u?(p=i*e.width,h=r*n.height):(p=r*e.height,h=i*n.width):s==="start"?h=n.width:s==="end"?p=e.width:s!=="inner"&&(p=e.width/2,h=n.width/2),this.paddingLeft=Math.max((p-c+a)*this.width/(this.width-c),0),this.paddingRight=Math.max((h-f+a)*this.width/(this.width-f),0)}else{let c=n.height/2,f=e.height/2;s==="start"?(c=0,f=e.height):s==="end"&&(c=n.height,f=0),this.paddingTop=c+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Fe(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n<r;n++)_e(e[n].label)&&(e.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=gh(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,r){const{ctx:i,_longestTextCache:s}=this,a=[],o=[],l=Math.floor(n/mh(n,r));let u=0,c=0,f,p,h,y,m,v,g,A,E,j,S;for(f=0;f<n;f+=l){if(y=e[f].label,m=this._resolveTickFontOptions(f),i.font=v=m.string,g=s[v]=s[v]||{data:{},gc:[]},A=m.lineHeight,E=j=0,!_e(y)&&!We(y))E=xo(i,g.data,g.gc,E,y),j=A;else if(We(y))for(p=0,h=y.length;p<h;++p)S=y[p],!_e(S)&&!We(S)&&(E=xo(i,g.data,g.gc,E,S),j+=A);a.push(E),o.push(j),u=Math.max(E,u),c=Math.max(j,c)}s4(s,n);const b=a.indexOf(u),w=o.indexOf(c),x=N=>({width:a[N]||0,height:o[N]||0});return{first:x(0),last:x(n-1),widest:x(b),highest:x(w),widths:a,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return ZC(this._alignToPixels?Tr(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const r=n[e];return r.$context||(r.$context=o4(this.getContext(),e,r))}return this.$context||(this.$context=a4(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=gr(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),s=this._getLabelSizes(),a=e.autoSkipPadding||0,o=s?s.widest.width+a:0,l=s?s.highest.height+a:0;return this.isHorizontal()?l*r>o*i?o/r:l/i:l*i<o*r?l/r:o/i}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,i=this.options,{grid:s,position:a,border:o}=i,l=s.offset,u=this.isHorizontal(),f=this.ticks.length+(l?1:0),p=ds(s),h=[],y=o.setContext(this.getContext()),m=y.display?y.width:0,v=m/2,g=function(D){return Tr(r,D,m)};let A,E,j,S,b,w,x,N,_,I,T,z;if(a==="top")A=g(this.bottom),w=this.bottom-p,N=A-v,I=g(e.top)+v,z=e.bottom;else if(a==="bottom")A=g(this.top),I=e.top,z=g(e.bottom)-v,w=A+v,N=this.top+p;else if(a==="left")A=g(this.right),b=this.right-p,x=A-v,_=g(e.left)+v,T=e.right;else if(a==="right")A=g(this.left),_=e.left,T=g(e.right)-v,b=A+v,x=this.left+p;else if(n==="x"){if(a==="center")A=g((e.top+e.bottom)/2+.5);else if(ke(a)){const D=Object.keys(a)[0],B=a[D];A=g(this.chart.scales[D].getPixelForValue(B))}I=e.top,z=e.bottom,w=A+v,N=w+p}else if(n==="y"){if(a==="center")A=g((e.left+e.right)/2);else if(ke(a)){const D=Object.keys(a)[0],B=a[D];A=g(this.chart.scales[D].getPixelForValue(B))}b=A-v,x=b-p,_=e.left,T=e.right}const L=Se(i.ticks.maxTicksLimit,f),P=Math.max(1,Math.ceil(f/L));for(E=0;E<f;E+=P){const D=this.getContext(E),B=s.setContext(D),V=o.setContext(D),W=B.lineWidth,k=B.color,Q=V.dash||[],H=V.dashOffset,O=B.tickWidth,G=B.tickColor,Y=B.tickBorderDash||[],X=B.tickBorderDashOffset;j=i4(this,E,l),j!==void 0&&(S=Tr(r,j,W),u?b=x=_=T=S:w=N=I=z=S,h.push({tx1:b,ty1:w,tx2:x,ty2:N,x1:_,y1:I,x2:T,y2:z,width:W,color:k,borderDash:Q,borderDashOffset:H,tickWidth:O,tickColor:G,tickBorderDash:Y,tickBorderDashOffset:X}))}return this._ticksLength=f,this._borderValue=A,h}_computeLabelItems(e){const n=this.axis,r=this.options,{position:i,ticks:s}=r,a=this.isHorizontal(),o=this.ticks,{align:l,crossAlign:u,padding:c,mirror:f}=s,p=ds(r.grid),h=p+c,y=f?-c:h,m=-gr(this.labelRotation),v=[];let g,A,E,j,S,b,w,x,N,_,I,T,z="middle";if(i==="top")b=this.bottom-y,w=this._getXAxisLabelAlignment();else if(i==="bottom")b=this.top+y,w=this._getXAxisLabelAlignment();else if(i==="left"){const P=this._getYAxisLabelAlignment(p);w=P.textAlign,S=P.x}else if(i==="right"){const P=this._getYAxisLabelAlignment(p);w=P.textAlign,S=P.x}else if(n==="x"){if(i==="center")b=(e.top+e.bottom)/2+h;else if(ke(i)){const P=Object.keys(i)[0],D=i[P];b=this.chart.scales[P].getPixelForValue(D)+h}w=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")S=(e.left+e.right)/2-h;else if(ke(i)){const P=Object.keys(i)[0],D=i[P];S=this.chart.scales[P].getPixelForValue(D)}w=this._getYAxisLabelAlignment(p).textAlign}n==="y"&&(l==="start"?z="top":l==="end"&&(z="bottom"));const L=this._getLabelSizes();for(g=0,A=o.length;g<A;++g){E=o[g],j=E.label;const P=s.setContext(this.getContext(g));x=this.getPixelForTick(g)+s.labelOffset,N=this._resolveTickFontOptions(g),_=N.lineHeight,I=We(j)?j.length:1;const D=I/2,B=P.color,V=P.textStrokeColor,W=P.textStrokeWidth;let k=w;a?(S=x,w==="inner"&&(g===A-1?k=this.options.reverse?"left":"right":g===0?k=this.options.reverse?"right":"left":k="center"),i==="top"?u==="near"||m!==0?T=-I*_+_/2:u==="center"?T=-L.highest.height/2-D*_+_:T=-L.highest.height+_/2:u==="near"||m!==0?T=_/2:u==="center"?T=L.highest.height/2-D*_:T=L.highest.height-I*_,f&&(T*=-1),m!==0&&!P.showLabelBackdrop&&(S+=_/2*Math.sin(m))):(b=x,T=(1-I)*_/2);let Q;if(P.showLabelBackdrop){const H=ft(P.backdropPadding),O=L.heights[g],G=L.widths[g];let Y=T-H.top,X=0-H.left;switch(z){case"middle":Y-=O/2;break;case"bottom":Y-=O;break}switch(w){case"center":X-=G/2;break;case"right":X-=G;break;case"inner":g===A-1?X-=G:g>0&&(X-=G/2);break}Q={left:X,top:Y,width:G+H.width,height:O+H.height,color:P.backdropColor}}v.push({label:j,font:N,textOffset:T,options:{rotation:m,color:B,strokeColor:V,strokeWidth:W,textAlign:k,textBaseline:z,translation:[S,b],backdrop:Q}})}return v}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-gr(this.labelRotation))return e==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:i,padding:s}}=this.options,a=this._getLabelSizes(),o=e+s,l=a.widest.width;let u,c;return n==="left"?i?(c=this.right+s,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-o,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?i?(c=this.left+s,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+o,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:i,width:s,height:a}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,i,s,a),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(s=>s.value===e);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let s,a;const o=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(s=0,a=i.length;s<a;++s){const l=i[s];n.drawOnChartArea&&o({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&o({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:r,grid:i}}=this,s=r.setContext(this.getContext()),a=r.display?s.width:0;if(!a)return;const o=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,f,p;this.isHorizontal()?(u=Tr(e,this.left,a)-a/2,c=Tr(e,this.right,o)+o/2,f=p=l):(f=Tr(e,this.top,a)-a/2,p=Tr(e,this.bottom,o)+o/2,u=c=l),n.save(),n.lineWidth=s.width,n.strokeStyle=s.color,n.beginPath(),n.moveTo(u,f),n.lineTo(c,p),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&Qo(r,i);const s=this.getLabelItems(e);for(const a of s){const o=a.options,l=a.font,u=a.label,c=a.textOffset;ii(r,u,0,c,l,o)}i&&Go(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const s=Ze(r.font),a=ft(r.padding),o=r.align;let l=s.lineHeight/2;n==="bottom"||n==="center"||ke(n)?(l+=a.bottom,We(r.text)&&(l+=s.lineHeight*(r.text.length-1))):l+=a.top;const{titleX:u,titleY:c,maxWidth:f,rotation:p}=u4(this,l,n,o);ii(e,r.text,0,0,s,{color:r.color,maxWidth:f,rotation:p,textAlign:l4(o,n,i),textBaseline:"middle",translation:[u,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,r=Se(e.grid&&e.grid.z,-1),i=Se(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==Vi.prototype.draw?[{z:n,draw:s=>{this.draw(s)}}]:[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let s,a;for(s=0,a=n.length;s<a;++s){const o=n[s];o[r]===this.id&&(!e||o.type===e)&&i.push(o)}return i}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return Ze(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class _a{constructor(e,n,r){this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let r;f4(n)&&(r=this.register(n));const i=this.items,s=e.id,a=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+e);return s in i||(i[s]=e,c4(e,a,r),this.override&&Ge.override(e.id,e.overrides)),a}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,i=this.scope;r in n&&delete n[r],i&&r in Ge[i]&&(delete Ge[i][r],this.override&&delete ri[r])}}function c4(t,e,n){const r=Vs(Object.create(null),[n?Ge.get(n):{},Ge.get(e),t.defaults]);Ge.set(e,r),t.defaultRoutes&&d4(e,t.defaultRoutes),t.descriptors&&Ge.describe(e,t.descriptors)}function d4(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),i=r.pop(),s=[t].concat(r).join("."),a=e[n].split("."),o=a.pop(),l=a.join(".");Ge.route(s,i,l,o)})}function f4(t){return"id"in t&&"defaults"in t}class h4{constructor(){this.controllers=new _a(xi,"datasets",!0),this.elements=new _a(Jn,"elements"),this.plugins=new _a(Object,"plugins"),this.scales=new _a(Vi,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(i=>{const s=r||this._getRegistryForType(i);r||s.isForType(i)||s===this.plugins&&i.id?this._exec(e,s,i):Re(i,a=>{const o=r||this._getRegistryForType(a);this._exec(e,o,a)})})}_exec(e,n,r){const i=Mc(e);Fe(r["before"+i],[],r),n[e](r),Fe(r["after"+i],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const i=n.get(e);if(i===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return i}}var xn=new h4;class p4{constructor(){this._init=void 0}notify(e,n,r,i){if(n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),this._init===void 0)return;const s=i?this._descriptors(e).filter(i):this._descriptors(e),a=this._notify(s,e,n,r);return n==="afterDestroy"&&(this._notify(s,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),a}_notify(e,n,r,i){i=i||{};for(const s of e){const a=s.plugin,o=a[r],l=[n,i,s.options];if(Fe(o,l,a)===!1&&i.cancelable)return!1}return!0}invalidate(){_e(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,i=Se(r.options&&r.options.plugins,{}),s=y4(r);return i===!1&&!n?[]:g4(e,s,i,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,i=(s,a)=>s.filter(o=>!a.some(l=>o.plugin.id===l.plugin.id));this._notify(i(n,r),e,"stop"),this._notify(i(r,n),e,"start")}}function y4(t){const e={},n=[],r=Object.keys(xn.plugins.items);for(let s=0;s<r.length;s++)n.push(xn.getPlugin(r[s]));const i=t.plugins||[];for(let s=0;s<i.length;s++){const a=i[s];n.indexOf(a)===-1&&(n.push(a),e[a.id]=!0)}return{plugins:n,localIds:e}}function m4(t,e){return!e&&t===!1?null:t===!0?{}:t}function g4(t,{plugins:e,localIds:n},r,i){const s=[],a=t.getContext();for(const o of e){const l=o.id,u=m4(r[l],i);u!==null&&s.push({plugin:o,options:v4(t.config,{plugin:o,local:n[l]},u,a)})}return s}function v4(t,{plugin:e,local:n},r,i){const s=t.pluginScopeKeys(e),a=t.getOptionScopes(r,s);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Nu(t,e){const n=Ge.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function b4(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function x4(t,e){return t===e?"_index_":"_value_"}function bh(t){if(t==="x"||t==="y"||t==="r")return t}function w4(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function Ru(t,...e){if(bh(t))return t;for(const n of e){const r=n.axis||w4(n.position)||t.length>1&&bh(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function xh(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function A4(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(n.length)return xh(t,"x",n[0])||xh(t,"y",n[0])}return{}}function S4(t,e){const n=ri[t.type]||{scales:{}},r=e.scales||{},i=Nu(t.type,e),s=Object.create(null);return Object.keys(r).forEach(a=>{const o=r[a];if(!ke(o))return console.error(`Invalid scale configuration for scale: ${a}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=Ru(a,o,A4(a,t),Ge.scales[o.type]),u=x4(l,i),c=n.scales||{};s[a]=Es(Object.create(null),[{axis:l},o,c[l],c[u]])}),t.data.datasets.forEach(a=>{const o=a.type||t.type,l=a.indexAxis||Nu(o,e),c=(ri[o]||{}).scales||{};Object.keys(c).forEach(f=>{const p=b4(f,l),h=a[p+"AxisID"]||p;s[h]=s[h]||Object.create(null),Es(s[h],[{axis:p},r[h],c[f]])})}),Object.keys(s).forEach(a=>{const o=s[a];Es(o,[Ge.scales[o.type],Ge.scale])}),s}function U0(t){const e=t.options||(t.options={});e.plugins=Se(e.plugins,{}),e.scales=S4(t,e)}function H0(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function C4(t){return t=t||{},t.data=H0(t.data),U0(t),t}const wh=new Map,q0=new Set;function Da(t,e){let n=wh.get(t);return n||(n=e(),wh.set(t,n),q0.add(n)),n}const fs=(t,e,n)=>{const r=Ks(e,n);r!==void 0&&t.add(r)};class k4{constructor(e){this._config=C4(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=H0(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),U0(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Da(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return Da(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return Da(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return Da(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let i=r.get(e);return(!i||n)&&(i=new Map,r.set(e,i)),i}getOptionScopes(e,n,r){const{options:i,type:s}=this,a=this._cachedScopes(e,r),o=a.get(n);if(o)return o;const l=new Set;n.forEach(c=>{e&&(l.add(e),c.forEach(f=>fs(l,e,f))),c.forEach(f=>fs(l,i,f)),c.forEach(f=>fs(l,ri[s]||{},f)),c.forEach(f=>fs(l,Ge,f)),c.forEach(f=>fs(l,Mu,f))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),q0.has(n)&&a.set(n,u),u}chartOptionScopes(){const{options:e,type:n}=this;return[e,ri[n]||{},Ge.datasets[n]||{},{type:n},Ge,Mu]}resolveNamedOptions(e,n,r,i=[""]){const s={$shared:!0},{resolver:a,subPrefixes:o}=Ah(this._resolverCache,e,i);let l=a;if(E4(a,n)){s.$shared=!1,r=Sr(r)?r():r;const u=this.createResolver(e,r,o);l=Bi(a,r,u)}for(const u of n)s[u]=l[u];return s}createResolver(e,n,r=[""],i){const{resolver:s}=Ah(this._resolverCache,e,r);return ke(n)?Bi(s,n,void 0,i):s}}function Ah(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const i=n.join();let s=r.get(i);return s||(s={resolver:Bc(e,n),subPrefixes:n.filter(o=>!o.toLowerCase().includes("hover"))},r.set(i,s)),s}const j4=t=>ke(t)&&Object.getOwnPropertyNames(t).some(e=>Sr(t[e]));function E4(t,e){const{isScriptable:n,isIndexable:r}=S0(t);for(const i of e){const s=n(i),a=r(i),o=(a||s)&&t[i];if(s&&(Sr(o)||j4(o))||a&&We(o))return!0}return!1}var O4="4.5.1";const P4=["top","bottom","left","right","chartArea"];function Sh(t,e){return t==="top"||t==="bottom"||P4.indexOf(t)===-1&&e==="x"}function Ch(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function kh(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Fe(n&&n.onComplete,[t],e)}function T4(t){const e=t.chart,n=e.options.animation;Fe(n&&n.onProgress,[t],e)}function W0(t){return Uc()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ro={},jh=t=>{const e=W0(t);return Object.values(ro).filter(n=>n.canvas===e).pop()};function I4(t,e,n){const r=Object.keys(t);for(const i of r){const s=+i;if(s>=e){const a=t[i];delete t[i],(n>0||s>e)&&(t[s+n]=a)}}}function M4(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}var ar;let Ko=(ar=class{static register(...e){xn.add(...e),Eh()}static unregister(...e){xn.remove(...e),Eh()}constructor(e,n){const r=this.config=new k4(n),i=W0(e),s=jh(i);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||X6(i)),this.platform.updateConfig(r);const o=this.platform.acquireContext(i,a.aspectRatio),l=o&&o.canvas,u=l&&l.height,c=l&&l.width;if(this.id=DC(),this.ctx=o,this.canvas=l,this.width=c,this.height=u,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new p4,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=r5(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],ro[this.id]=this,!o||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Bn.listen(this,"complete",kh),Bn.listen(this,"progress",T4),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:i,_aspectRatio:s}=this;return _e(e)?n&&s?s:i?r/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return xn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Zf(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Kf(this.canvas,this.ctx),this}stop(){return Bn.stop(this),this}resize(e,n){Bn.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,i=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,e,n,s),o=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Zf(this,o,!0)&&(this.notifyPlugins("resize",{size:a}),Fe(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Re(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,i=Object.keys(r).reduce((a,o)=>(a[o]=!1,a),{});let s=[];n&&(s=s.concat(Object.keys(n).map(a=>{const o=n[a],l=Ru(a,o),u=l==="r",c=l==="x";return{options:o,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),Re(s,a=>{const o=a.options,l=o.id,u=Ru(l,o),c=Se(o.type,a.dtype);(o.position===void 0||Sh(o.position,u)!==Sh(a.dposition))&&(o.position=a.dposition),i[l]=!0;let f=null;if(l in r&&r[l].type===c)f=r[l];else{const p=xn.getScale(c);f=new p({id:l,type:c,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(o,e)}),Re(i,(a,o)=>{a||delete r[o]}),Re(r,a=>{rn.configure(this,a,a.options),rn.addBox(this,a)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((i,s)=>i.index-s.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(Ch("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,i)=>{n.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const s=n[r];let a=this.getDatasetMeta(r);const o=s.type||this.config.type;if(a.type&&a.type!==o&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=o,a.indexAxis=s.indexAxis||Nu(o,this.options),a.order=s.order||0,a.index=r,a.label=""+s.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const l=xn.getController(o),{datasetElementType:u,dataElementType:c}=Ge.datasets[o];Object.assign(l,{dataElementType:xn.getElement(c),datasetElementType:u&&xn.getElement(u)}),a.controller=new l(this,r),e.push(a.controller)}}return this._updateMetasets(),e}_resetElements(){Re(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:f}=this.getDatasetMeta(u),p=!i&&s.indexOf(f)===-1;f.buildOrUpdateElements(p),a=Math.max(+f.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),i||Re(s,u=>{u.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Ch("z","_idx"));const{_active:o,_lastEvent:l}=this;l?this._eventHandler(l,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){Re(this.scales,e=>{rn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!zf(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:s}of n){const a=r==="_removeElements"?-s:s;I4(e,i,a)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=s=>new Set(e.filter(a=>a[0]===s).map((a,o)=>o+","+a.splice(1).join(","))),i=r(0);for(let s=1;s<n;s++)if(!zf(i,r(s)))return;return Array.from(i).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;rn.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Re(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,s)=>{i._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Sr(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),i={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Bn.has(this)?this.attached&&!Bn.running(this)&&Bn.start(this):(this.draw(),kh({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let i,s;for(i=0,s=n.length;i<s;++i){const a=n[i];(!e||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r={meta:e,index:e.index,cancelable:!0},i=L0(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&Qo(n,i),e.controller.draw(),i&&Go(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return Yn(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,i){const s=P6.modes[n];return typeof s=="function"?s(this,e,r,i):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let i=r.filter(s=>s&&s._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=kr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const i=r?"show":"hide",s=this.getDatasetMeta(e),a=s.controller._resolveAnimations(void 0,i);vo(n)?(s.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),a.update(s,{visible:r}),this.update(o=>o.datasetIndex===e?i:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),Bn.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Kf(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete ro[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,r=(s,a)=>{n.addEventListener(this,s,a),e[s]=a},i=(s,a,o)=>{s.offsetX=a,s.offsetY=o,this._eventHandler(s)};Re(this.options.events,s=>r(s,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),e[l]=u},i=(l,u)=>{e[l]&&(n.removeEventListener(this,l,u),delete e[l])},s=(l,u)=>{this.canvas&&this.resize(l,u)};let a;const o=()=>{i("attach",o),this.attached=!0,this.resize(),r("resize",s),r("detach",a)};a=()=>{this.attached=!1,i("resize",s),this._stop(),this._resize(0,0),r("attach",o)},n.isAttached(this.canvas)?o():a()}unbindEvents(){Re(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Re(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const i=r?"set":"remove";let s,a,o,l;for(n==="dataset"&&(s=this.getDatasetMeta(e[0].datasetIndex),s.controller["_"+i+"DatasetHoverStyle"]()),o=0,l=e.length;o<l;++o){a=e[o];const u=a&&this.getDatasetMeta(a.datasetIndex).controller;u&&u[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:s,index:a})=>{const o=this.getDatasetMeta(s);if(!o)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:o.data[a],index:a}});!mo(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const i=this.options.hover,s=(l,u)=>l.filter(c=>!u.some(f=>c.datasetIndex===f.datasetIndex&&c.index===f.index)),a=s(n,e),o=r?e:s(e,n);a.length&&this.updateHoverStyle(a,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},i=a=>(a.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const s=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(s||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:i=[],options:s}=this,a=n,o=this._getActiveElements(e,i,r,a),l=qC(e),u=M4(e,this._lastEvent,r,l);r&&(this._lastEvent=null,Fe(s.onHover,[e,o,this],this),l&&Fe(s.onClick,[e,o,this],this));const c=!mo(o,i);return(c||n)&&(this._active=o,this._updateHoverStyles(o,i,n)),this._lastEvent=u,c}_getActiveElements(e,n,r,i){if(e.type==="mouseout")return[];if(!r)return n;const s=this.options.hover;return this.getElementsAtEventForMode(e,s.mode,s,i)}},ce(ar,"defaults",Ge),ce(ar,"instances",ro),ce(ar,"overrides",ri),ce(ar,"registry",xn),ce(ar,"version",O4),ce(ar,"getChart",jh),ar);function Eh(){return Re(Ko.instances,t=>t._plugins.invalidate())}function Q0(t,e,n=e){t.lineCap=Se(n.borderCapStyle,e.borderCapStyle),t.setLineDash(Se(n.borderDash,e.borderDash)),t.lineDashOffset=Se(n.borderDashOffset,e.borderDashOffset),t.lineJoin=Se(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Se(n.borderWidth,e.borderWidth),t.strokeStyle=Se(n.borderColor,e.borderColor)}function L4(t,e,n){t.lineTo(n.x,n.y)}function N4(t){return t.stepped?v5:t.tension||t.cubicInterpolationMode==="monotone"?b5:L4}function G0(t,e,n={}){const r=t.length,{start:i=0,end:s=r-1}=n,{start:a,end:o}=e,l=Math.max(i,a),u=Math.min(s,o),c=i<a&&s<a||i>o&&s>o;return{count:r,start:l,loop:e.loop,ilen:u<l&&!c?r+u-l:u-l}}function R4(t,e,n,r){const{points:i,options:s}=e,{count:a,start:o,loop:l,ilen:u}=G0(i,n,r),c=N4(s);let{move:f=!0,reverse:p}=r||{},h,y,m;for(h=0;h<=u;++h)y=i[(o+(p?u-h:h))%a],!y.skip&&(f?(t.moveTo(y.x,y.y),f=!1):c(t,m,y,p,s.stepped),m=y);return l&&(y=i[(o+(p?u:0))%a],c(t,m,y,p,s.stepped)),!!l}function _4(t,e,n,r){const i=e.points,{count:s,start:a,ilen:o}=G0(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,f=0,p,h,y,m,v,g;const A=j=>(a+(u?o-j:j))%s,E=()=>{m!==v&&(t.lineTo(c,v),t.lineTo(c,m),t.lineTo(c,g))};for(l&&(h=i[A(0)],t.moveTo(h.x,h.y)),p=0;p<=o;++p){if(h=i[A(p)],h.skip)continue;const j=h.x,S=h.y,b=j|0;b===y?(S<m?m=S:S>v&&(v=S),c=(f*c+j)/++f):(E(),t.lineTo(j,S),y=b,f=0,m=v=S),g=S}E()}function _u(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?_4:R4}function D4(t){return t.stepped?$5:t.tension||t.cubicInterpolationMode==="monotone"?e6:Nr}function B4(t,e,n,r){let i=e._path;i||(i=e._path=new Path2D,e.path(i,n,r)&&i.closePath()),Q0(t,e.options),t.stroke(i)}function F4(t,e,n,r){const{segments:i,options:s}=e,a=_u(e);for(const o of i)Q0(t,s,o.style),t.beginPath(),a(t,e,o,{start:n,end:n+r-1})&&t.closePath(),t.stroke()}const z4=typeof Path2D=="function";function U4(t,e,n,r){z4&&!e.options.segment?B4(t,e,n,r):F4(t,e,n,r)}class br extends Jn{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;Q5(this._points,r,e,i,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=a6(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,r=e.length;return r&&n[e[r-1].end]}interpolate(e,n){const r=this.options,i=e[n],s=this.points,a=M0(this,{property:n,start:i,end:i});if(!a.length)return;const o=[],l=D4(r);let u,c;for(u=0,c=a.length;u<c;++u){const{start:f,end:p}=a[u],h=s[f],y=s[p];if(h===y){o.push(h);continue}const m=Math.abs((i-h[n])/(y[n]-h[n])),v=l(h,y,m,r.stepped);v[n]=e[n],o.push(v)}return o.length===1?o[0]:o}pathSegment(e,n,r){return _u(this)(e,this,n,r)}path(e,n,r){const i=this.segments,s=_u(this);let a=this._loop;n=n||0,r=r||this.points.length-n;for(const o of i)a&=s(e,this,o,{start:n,end:n+r-1});return!!a}draw(e,n,r,i){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(e.save(),U4(e,this,r,i),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ce(br,"id","line"),ce(br,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ce(br,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ce(br,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function Oh(t,e,n,r){const i=t.options,{[n]:s}=t.getProps([n],r);return Math.abs(e-s)<i.radius+i.hitRadius}class io extends Jn{constructor(n){super();ce(this,"parsed");ce(this,"skip");ce(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,i){const s=this.options,{x:a,y:o}=this.getProps(["x","y"],i);return Math.pow(n-a,2)+Math.pow(r-o,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(n,r){return Oh(this,n,"x",r)}inYRange(n,r){return Oh(this,n,"y",r)}getCenterPoint(n){const{x:r,y:i}=this.getProps(["x","y"],n);return{x:r,y:i}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const i=r&&n.borderWidth||0;return(r+i)*2}draw(n,r){const i=this.options;this.skip||i.radius<.1||!Yn(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,Lu(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}ce(io,"id","point"),ce(io,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ce(io,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function H4(t,e,n){const r=t.segments,i=t.points,s=e.points,a=[];for(const o of r){let{start:l,end:u}=o;u=Xo(l,u,i);const c=Du(n,i[l],i[u],o.loop);if(!e.segments){a.push({source:o,target:c,start:i[l],end:i[u]});continue}const f=M0(e,c);for(const p of f){const h=Du(n,s[p.start],s[p.end],p.loop),y=I0(o,i,h);for(const m of y)a.push({source:m,target:p,start:{[n]:Ph(c,h,"start",Math.max)},end:{[n]:Ph(c,h,"end",Math.min)}})}}return a}function Du(t,e,n,r){if(r)return;let i=e[t],s=n[t];return t==="angle"&&(i=Gt(i),s=Gt(s)),{property:t,start:i,end:s}}function q4(t,e){const{x:n=null,y:r=null}=t||{},i=e.points,s=[];return e.segments.forEach(({start:a,end:o})=>{o=Xo(a,o,i);const l=i[a],u=i[o];r!==null?(s.push({x:l.x,y:r}),s.push({x:u.x,y:r})):n!==null&&(s.push({x:n,y:l.y}),s.push({x:n,y:u.y}))}),s}function Xo(t,e,n){for(;e>t;e--){const r=n[e];if(!isNaN(r.x)&&!isNaN(r.y))break}return e}function Ph(t,e,n,r){return t&&e?r(t[n],e[n]):t?t[n]:e?e[n]:0}function Y0(t,e){let n=[],r=!1;return We(t)?(r=!0,n=t):n=q4(t,e),n.length?new br({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Th(t){return t&&t.fill!==!1}function W4(t,e,n){let i=t[e].fill;const s=[e];let a;if(!n)return i;for(;i!==!1&&s.indexOf(i)===-1;){if(!et(i))return i;if(a=t[i],!a)return!1;if(a.visible)return i;s.push(i),i=a.fill}return!1}function Q4(t,e,n){const r=K4(t);if(ke(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return et(i)&&Math.floor(i)===i?G4(r[0],e,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function G4(t,e,n,r){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=r?!1:n}function Y4(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:ke(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function V4(t,e,n){let r;return t==="start"?r=n:t==="end"?r=e.options.reverse?e.min:e.max:ke(t)?r=t.value:r=e.getBaseValue(),r}function K4(t){const e=t.options,n=e.fill;let r=Se(n&&n.target,n);return r===void 0&&(r=!!e.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function X4(t){const{scale:e,index:n,line:r}=t,i=[],s=r.segments,a=r.points,o=J4(e,n);o.push(Y0({x:null,y:e.bottom},r));for(let l=0;l<s.length;l++){const u=s[l];for(let c=u.start;c<=u.end;c++)Z4(i,a[c],o)}return new br({points:i,options:{}})}function J4(t,e){const n=[],r=t.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const s=r[i];if(s.index===e)break;s.hidden||n.unshift(s.dataset)}return n}function Z4(t,e,n){const r=[];for(let i=0;i<n.length;i++){const s=n[i],{first:a,last:o,point:l}=$4(s,e,"x");if(!(!l||a&&o)){if(a)r.unshift(l);else if(t.push(l),!o)break}}t.push(...r)}function $4(t,e,n){const r=t.interpolate(e,n);if(!r)return{};const i=r[n],s=t.segments,a=t.points;let o=!1,l=!1;for(let u=0;u<s.length;u++){const c=s[u],f=a[c.start][n],p=a[c.end][n];if(yi(i,f,p)){o=i===f,l=i===p;break}}return{first:o,last:l,point:r}}class V0{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,n,r){const{x:i,y:s,radius:a}=this;return n=n||{start:0,end:Kt},e.arc(i,s,a,n.end,n.start,!0),!r.bounds}interpolate(e){const{x:n,y:r,radius:i}=this,s=e.angle;return{x:n+Math.cos(s)*i,y:r+Math.sin(s)*i,angle:s}}}function ek(t){const{chart:e,fill:n,line:r}=t;if(et(n))return tk(e,n);if(n==="stack")return X4(t);if(n==="shape")return!0;const i=nk(t);return i instanceof V0?i:Y0(i,r)}function tk(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}function nk(t){return(t.scale||{}).getPointPositionForValue?ik(t):rk(t)}function rk(t){const{scale:e={},fill:n}=t,r=Y4(n,e);if(et(r)){const i=e.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function ik(t){const{scale:e,fill:n}=t,r=e.options,i=e.getLabels().length,s=r.reverse?e.max:e.min,a=V4(n,e,s),o=[];if(r.grid.circular){const l=e.getPointPositionForValue(0,s);return new V0({x:l.x,y:l.y,radius:e.getDistanceFromCenterForValue(a)})}for(let l=0;l<i;++l)o.push(e.getPointPositionForValue(l,a));return o}function El(t,e,n){const r=ek(e),{chart:i,index:s,line:a,scale:o,axis:l}=e,u=a.options,c=u.fill,f=u.backgroundColor,{above:p=f,below:h=f}=c||{},y=i.getDatasetMeta(s),m=L0(i,y);r&&a.points.length&&(Qo(t,n),sk(t,{line:a,target:r,above:p,below:h,area:n,scale:o,axis:l,clip:m}),Go(t))}function sk(t,e){const{line:n,target:r,above:i,below:s,area:a,scale:o,clip:l}=e,u=n._loop?"angle":e.axis;t.save();let c=s;s!==i&&(u==="x"?(Ih(t,r,a.top),Ol(t,{line:n,target:r,color:i,scale:o,property:u,clip:l}),t.restore(),t.save(),Ih(t,r,a.bottom)):u==="y"&&(Mh(t,r,a.left),Ol(t,{line:n,target:r,color:s,scale:o,property:u,clip:l}),t.restore(),t.save(),Mh(t,r,a.right),c=i)),Ol(t,{line:n,target:r,color:c,scale:o,property:u,clip:l}),t.restore()}function Ih(t,e,n){const{segments:r,points:i}=e;let s=!0,a=!1;t.beginPath();for(const o of r){const{start:l,end:u}=o,c=i[l],f=i[Xo(l,u,i)];s?(t.moveTo(c.x,c.y),s=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),a=!!e.pathSegment(t,o,{move:a}),a?t.closePath():t.lineTo(f.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function Mh(t,e,n){const{segments:r,points:i}=e;let s=!0,a=!1;t.beginPath();for(const o of r){const{start:l,end:u}=o,c=i[l],f=i[Xo(l,u,i)];s?(t.moveTo(c.x,c.y),s=!1):(t.lineTo(n,c.y),t.lineTo(c.x,c.y)),a=!!e.pathSegment(t,o,{move:a}),a?t.closePath():t.lineTo(n,f.y)}t.lineTo(n,e.first().y),t.closePath(),t.clip()}function Ol(t,e){const{line:n,target:r,property:i,color:s,scale:a,clip:o}=e,l=H4(n,r,i);for(const{source:u,target:c,start:f,end:p}of l){const{style:{backgroundColor:h=s}={}}=u,y=r!==!0;t.save(),t.fillStyle=h,ak(t,a,o,y&&Du(i,f,p)),t.beginPath();const m=!!n.pathSegment(t,u);let v;if(y){m?t.closePath():Lh(t,r,p,i);const g=!!r.pathSegment(t,c,{move:m,reverse:!0});v=m&&g,v||Lh(t,r,f,i)}t.closePath(),t.fill(v?"evenodd":"nonzero"),t.restore()}}function ak(t,e,n,r){const i=e.chart.chartArea,{property:s,start:a,end:o}=r||{};if(s==="x"||s==="y"){let l,u,c,f;s==="x"?(l=a,u=i.top,c=o,f=i.bottom):(l=i.left,u=a,c=i.right,f=o),t.beginPath(),n&&(l=Math.max(l,n.left),c=Math.min(c,n.right),u=Math.max(u,n.top),f=Math.min(f,n.bottom)),t.rect(l,u,c-l,f-u),t.clip()}}function Lh(t,e,n,r){const i=e.interpolate(n,r);i&&t.lineTo(i.x,i.y)}var ok={id:"filler",afterDatasetsUpdate(t,e,n){const r=(t.data.datasets||[]).length,i=[];let s,a,o,l;for(a=0;a<r;++a)s=t.getDatasetMeta(a),o=s.dataset,l=null,o&&o.options&&o instanceof br&&(l={visible:t.isDatasetVisible(a),index:a,fill:Q4(o,a,r),chart:t,axis:s.controller.options.indexAxis,scale:s.vScale,line:o}),s.$filler=l,i.push(l);for(a=0;a<r;++a)l=i[a],!(!l||l.fill===!1)&&(l.fill=W4(i,a,n.propagate))},beforeDraw(t,e,n){const r=n.drawTime==="beforeDraw",i=t.getSortedVisibleDatasetMetas(),s=t.chartArea;for(let a=i.length-1;a>=0;--a){const o=i[a].$filler;o&&(o.line.updateControlPoints(s,o.axis),r&&o.fill&&El(t.ctx,o,s))}},beforeDatasetsDraw(t,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=t.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const s=r[i].$filler;Th(s)&&El(t.ctx,s,t.chartArea)}},beforeDatasetDraw(t,e,n){const r=e.meta.$filler;!Th(r)||n.drawTime!=="beforeDatasetDraw"||El(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Nh=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},lk=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Rh extends Jn{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=Fe(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,i)=>e.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,i=Ze(r.font),s=i.size,a=this._computeTitleHeight(),{boxWidth:o,itemHeight:l}=Nh(r,s);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(a,s,o,l)+10):(c=this.maxHeight,u=this._fitCols(a,i,o,l)+10),this.width=Math.min(u,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,i){const{ctx:s,maxWidth:a,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+o;let f=e;s.textAlign="left",s.textBaseline="middle";let p=-1,h=-c;return this.legendItems.forEach((y,m)=>{const v=r+n/2+s.measureText(y.text).width;(m===0||u[u.length-1]+v+2*o>a)&&(f+=c,u[u.length-(m>0?0:1)]=0,h+=c,p++),l[m]={left:0,top:h,row:p,width:v,height:i},u[u.length-1]+=v+o}),f}_fitCols(e,n,r,i){const{ctx:s,maxHeight:a,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=a-e;let f=o,p=0,h=0,y=0,m=0;return this.legendItems.forEach((v,g)=>{const{itemWidth:A,itemHeight:E}=uk(r,n,s,v,i);g>0&&h+E+2*o>c&&(f+=p+o,u.push({width:p,height:h}),y+=p+o,m++,p=h=0),l[g]={left:y,top:h,col:m,width:A,height:E},p=Math.max(p,A),h+=E+o}),f+=p,u.push({width:p,height:h}),f}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:s}}=this,a=bi(s,this.left,this.width);if(this.isHorizontal()){let o=0,l=ct(r,this.left+i,this.right-this.lineWidths[o]);for(const u of n)o!==u.row&&(o=u.row,l=ct(r,this.left+i,this.right-this.lineWidths[o])),u.top+=this.top+e+i,u.left=a.leftForLtr(a.x(l),u.width),l+=u.width+i}else{let o=0,l=ct(r,this.top+e+i,this.bottom-this.columnSizes[o].height);for(const u of n)u.col!==o&&(o=u.col,l=ct(r,this.top+e+i,this.bottom-this.columnSizes[o].height)),u.top=l,u.left+=this.left+i,u.left=a.leftForLtr(a.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Qo(e,this),this._draw(),Go(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:i}=this,{align:s,labels:a}=e,o=Ge.color,l=bi(e.rtl,this.left,this.width),u=Ze(a.font),{padding:c}=a,f=u.size,p=f/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:y,boxHeight:m,itemHeight:v}=Nh(a,f),g=function(b,w,x){if(isNaN(y)||y<=0||isNaN(m)||m<0)return;i.save();const N=Se(x.lineWidth,1);if(i.fillStyle=Se(x.fillStyle,o),i.lineCap=Se(x.lineCap,"butt"),i.lineDashOffset=Se(x.lineDashOffset,0),i.lineJoin=Se(x.lineJoin,"miter"),i.lineWidth=N,i.strokeStyle=Se(x.strokeStyle,o),i.setLineDash(Se(x.lineDash,[])),a.usePointStyle){const _={radius:m*Math.SQRT2/2,pointStyle:x.pointStyle,rotation:x.rotation,borderWidth:N},I=l.xPlus(b,y/2),T=w+p;w0(i,_,I,T,a.pointStyleWidth&&y)}else{const _=w+Math.max((f-m)/2,0),I=l.leftForLtr(b,y),T=vi(x.borderRadius);i.beginPath(),Object.values(T).some(z=>z!==0)?wo(i,{x:I,y:_,w:y,h:m,radius:T}):i.rect(I,_,y,m),i.fill(),N!==0&&i.stroke()}i.restore()},A=function(b,w,x){ii(i,x.text,b,w+v/2,u,{strikethrough:x.hidden,textAlign:l.textAlign(x.textAlign)})},E=this.isHorizontal(),j=this._computeTitleHeight();E?h={x:ct(s,this.left+c,this.right-r[0]),y:this.top+c+j,line:0}:h={x:this.left+c,y:ct(s,this.top+j+c,this.bottom-n[0].height),line:0},O0(this.ctx,e.textDirection);const S=v+c;this.legendItems.forEach((b,w)=>{i.strokeStyle=b.fontColor,i.fillStyle=b.fontColor;const x=i.measureText(b.text).width,N=l.textAlign(b.textAlign||(b.textAlign=a.textAlign)),_=y+p+x;let I=h.x,T=h.y;l.setWidth(this.width),E?w>0&&I+_+c>this.right&&(T=h.y+=S,h.line++,I=h.x=ct(s,this.left+c,this.right-r[h.line])):w>0&&T+S>this.bottom&&(I=h.x=I+n[h.line].width+c,h.line++,T=h.y=ct(s,this.top+j+c,this.bottom-n[h.line].height));const z=l.x(I);if(g(z,T,b),I=i5(N,I+y+p,E?I+_:this.right,e.rtl),A(l.x(I),T,b),E)h.x+=_+c;else if(typeof b.text!="string"){const L=u.lineHeight;h.y+=K0(b,L)+c}else h.y+=S}),P0(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=Ze(n.font),i=ft(n.padding);if(!n.display)return;const s=bi(e.rtl,this.left,this.width),a=this.ctx,o=n.position,l=r.size/2,u=i.top+l;let c,f=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),c=this.top+u,f=ct(e.align,f,this.right-p);else{const y=this.columnSizes.reduce((m,v)=>Math.max(m,v.height),0);c=u+ct(e.align,this.top,this.bottom-y-e.labels.padding-this._computeTitleHeight())}const h=ct(o,f,f+p);a.textAlign=s.textAlign(Rc(o)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,ii(a,n.text,h,c,r)}_computeTitleHeight(){const e=this.options.title,n=Ze(e.font),r=ft(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,i,s;if(yi(e,this.left,this.right)&&yi(n,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;r<s.length;++r)if(i=s[r],yi(e,i.left,i.left+i.width)&&yi(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!fk(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const i=this._hoveredItem,s=lk(i,r);i&&!s&&Fe(n.onLeave,[e,i,this],this),this._hoveredItem=r,r&&!s&&Fe(n.onHover,[e,r,this],this)}else r&&Fe(n.onClick,[e,r,this],this)}}function uk(t,e,n,r,i){const s=ck(r,t,e,n),a=dk(i,r,e.lineHeight);return{itemWidth:s,itemHeight:a}}function ck(t,e,n,r){let i=t.text;return i&&typeof i!="string"&&(i=i.reduce((s,a)=>s.length>a.length?s:a)),e+n.size/2+r.measureText(i).width}function dk(t,e,n){let r=t;return typeof e.text!="string"&&(r=K0(e,n)),r}function K0(t,e){const n=t.text?t.text.length:0;return e*n}function fk(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var hk={id:"legend",_element:Rh,start(t,e,n){const r=t.legend=new Rh({ctx:t.ctx,options:n,chart:t});rn.configure(t,r,n),rn.addBox(t,r)},stop(t){rn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;rn.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),e.hidden=!0):(i.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:s,useBorderRadius:a,borderRadius:o}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=ft(u.borderWidth);return{text:e[l.index].label,fillStyle:u.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:a&&(o||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class X0 extends Jn{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const i=We(r.text)?r.text.length:1;this._padding=ft(r.padding);const s=i*Ze(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:r,bottom:i,right:s,options:a}=this,o=a.align;let l=0,u,c,f;return this.isHorizontal()?(c=ct(o,r,s),f=n+e,u=s-r):(a.position==="left"?(c=r+e,f=ct(o,i,n),l=Ke*-.5):(c=s-e,f=ct(o,n,i),l=Ke*.5),u=i-n),{titleX:c,titleY:f,maxWidth:u,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const r=Ze(n.font),s=r.lineHeight/2+this._padding.top,{titleX:a,titleY:o,maxWidth:l,rotation:u}=this._drawArgs(s);ii(e,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:Rc(n.align),textBaseline:"middle",translation:[a,o]})}}function pk(t,e){const n=new X0({ctx:t.ctx,options:e,chart:t});rn.configure(t,n,e),rn.addBox(t,n),t.titleBlock=n}var yk={id:"title",_element:X0,start(t,e,n){pk(t,n)},stop(t){const e=t.titleBlock;rn.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;rn.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const As={average(t){if(!t.length)return!1;let e,n,r=new Set,i=0,s=0;for(e=0,n=t.length;e<n;++e){const o=t[e].element;if(o&&o.hasValue()){const l=o.tooltipPosition();r.add(l.x),i+=l.y,++s}}return s===0||r.size===0?!1:{x:[...r].reduce((o,l)=>o+l)/r.size,y:i/s}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,i=Number.POSITIVE_INFINITY,s,a,o;for(s=0,a=t.length;s<a;++s){const l=t[s].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=Iu(e,u);c<i&&(i=c,o=l)}}if(o){const l=o.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function bn(t,e){return e&&(We(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Fn(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
50
+ */class q6{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,i){const s=n.listeners[i],a=n.duration;s.forEach(o=>o({chart:e,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=D0.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const s=r.items;let a=s.length-1,o=!1,l;for(;a>=0;--a)l=s[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),o=!0):(s[a]=s[s.length-1],s.pop());o&&(i.draw(),this._notify(i,r,e,"progress")),s.length||(r.running=!1,this._notify(i,r,e,"complete"),r.initial=!1),n+=s.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Hn=new q6;const mh="transparent",W6={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=ah(t||mh),i=r.valid&&ah(e||mh);return i&&i.valid?i.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class G6{constructor(e,n,r,i){const s=n[r];i=Ma([e.to,i,s,e.from]);const a=Ma([e.from,s,i]);this._active=!0,this._fn=e.fn||W6[e.type||typeof a],this._easing=Is[e.easing]||Is.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],s=r-this._start,a=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=Ma([e.to,n,i,e.from]),this._from=Ma([e.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,i=this._prop,s=this._from,a=this._loop,o=this._to;let l;if(this._active=s!==o&&(a||n<r),!this._active){this._target[i]=o,this._notify(!0);return}if(n<0){this._target[i]=s;return}l=n/r%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(s,o,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class $0{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!Ee(e))return;const n=Object.keys(Qe.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(i=>{const s=e[i];if(!Ee(s))return;const a={};for(const o of n)a[o]=s[o];(We(s.properties)&&s.properties||[i]).forEach(o=>{(o===i||!r.has(o))&&r.set(o,a)})})}_animateOptions(e,n){const r=n.options,i=Y6(e,r);if(!i)return[];const s=this._createAnimations(i,r);return r.$shared&&Q6(e.options.$animations,r).then(()=>{e.options=r},()=>{}),s}_createAnimations(e,n){const r=this._properties,i=[],s=e.$animations||(e.$animations={}),a=Object.keys(n),o=Date.now();let l;for(l=a.length-1;l>=0;--l){const u=a[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(e,n));continue}const c=n[u];let f=s[u];const p=r.get(u);if(f)if(p&&f.active()){f.update(p,c,o);continue}else f.cancel();if(!p||!p.duration){e[u]=c;continue}s[u]=f=new G6(p,e,u,c),i.push(f)}return i}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return Hn.add(this._chart,r),!0}}function Q6(t,e){const n=[],r=Object.keys(e);for(let i=0;i<r.length;i++){const s=t[r[i]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}function Y6(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function gh(t,e){const n=t&&t.options||{},r=n.reverse,i=n.min===void 0?e:0,s=n.max===void 0?e:0;return{start:r?s:i,end:r?i:s}}function V6(t,e,n){if(n===!1)return!1;const r=gh(t,n),i=gh(e,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function K6(t){let e,n,r,i;return Ee(t)?(e=t.top,n=t.right,r=t.bottom,i=t.left):e=n=r=i=t,{top:e,right:n,bottom:r,left:i,disabled:t===!1}}function eg(t,e){const n=[],r=t._getSortedDatasetMetas(e);let i,s;for(i=0,s=r.length;i<s;++i)n.push(r[i].index);return n}function vh(t,e,n,r={}){const i=t.keys,s=r.mode==="single";let a,o,l,u;if(e===null)return;let c=!1;for(a=0,o=i.length;a<o;++a){if(l=+i[a],l===n){if(c=!0,r.all)continue;break}u=t.values[l],rt(u)&&(s||e===0||Ui(e)===Ui(u))&&(e+=u)}return!c&&!r.all?0:e}function X6(t,e){const{iScale:n,vScale:r}=e,i=n.axis==="x"?"x":"y",s=r.axis==="x"?"x":"y",a=Object.keys(t),o=new Array(a.length);let l,u,c;for(l=0,u=a.length;l<u;++l)c=a[l],o[l]={[i]:c,[s]:t[c]};return o}function Cl(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function J6(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function Z6(t){const{min:e,max:n,minDefined:r,maxDefined:i}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function $6(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function bh(t,e,n,r){for(const i of e.getMatchingVisibleMetas(r).reverse()){const s=t[i.index];if(n&&s>0||!n&&s<0)return i.index}return null}function xh(t,e){const{chart:n,_cachedMeta:r}=t,i=n._stacks||(n._stacks={}),{iScale:s,vScale:a,index:o}=r,l=s.axis,u=a.axis,c=J6(s,a,r),f=e.length;let p;for(let h=0;h<f;++h){const y=e[h],{[l]:m,[u]:v}=y,g=y._stacks||(y._stacks={});p=g[u]=$6(i,c,m),p[o]=v,p._top=bh(p,a,!0,r.type),p._bottom=bh(p,a,!1,r.type);const A=p._visualValues||(p._visualValues={});A[o]=v}}function kl(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function ek(t,e){return Er(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function tk(t,e,n){return Er(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function cs(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const i of e){const s=i._stacks;if(!s||s[r]===void 0||s[r][n]===void 0)return;delete s[r][n],s[r]._visualValues!==void 0&&s[r]._visualValues[n]!==void 0&&delete s[r]._visualValues[n]}}}const jl=t=>t==="reset"||t==="none",wh=(t,e)=>e?t:Object.assign({},t),nk=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:eg(n,!0),values:null};class Ci{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Cl(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&cs(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(f,p,h,y)=>f==="x"?p:f==="r"?y:h,s=n.xAxisID=Se(r.xAxisID,kl(e,"x")),a=n.yAxisID=Se(r.yAxisID,kl(e,"y")),o=n.rAxisID=Se(r.rAxisID,kl(e,"r")),l=n.indexAxis,u=n.iAxisID=i(l,s,a,o),c=n.vAxisID=i(l,a,s,o);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(o),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&rh(this._data,this),e._stacked&&cs(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(Ee(n)){const i=this._cachedMeta;this._data=X6(n,i)}else if(r!==n){if(r){rh(r,this);const i=this._cachedMeta;cs(i),i._parsed=[]}n&&Object.isExtensible(n)&&N5(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const s=n._stacked;n._stacked=Cl(n.vScale,n),n.stack!==r.stack&&(i=!0,cs(n),n.stack=r.stack),this._resyncElements(e),(i||s!==n._stacked)&&(xh(this,n._parsed),n._stacked=Cl(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:i}=this,{iScale:s,_stacked:a}=r,o=s.axis;let l=e===0&&n===i.length?!0:r._sorted,u=e>0&&r._parsed[e-1],c,f,p;if(this._parsing===!1)r._parsed=i,r._sorted=!0,p=i;else{We(i[e])?p=this.parseArrayData(r,i,e,n):Ee(i[e])?p=this.parseObjectData(r,i,e,n):p=this.parsePrimitiveData(r,i,e,n);const h=()=>f[o]===null||u&&f[o]<u[o];for(c=0;c<n;++c)r._parsed[c+e]=f=p[c],l&&(h()&&(l=!1),u=f);r._sorted=l}a&&xh(this,p)}parsePrimitiveData(e,n,r,i){const{iScale:s,vScale:a}=e,o=s.axis,l=a.axis,u=s.getLabels(),c=s===a,f=new Array(i);let p,h,y;for(p=0,h=i;p<h;++p)y=p+r,f[p]={[o]:c||s.parse(u[y],y),[l]:a.parse(n[y],y)};return f}parseArrayData(e,n,r,i){const{xScale:s,yScale:a}=e,o=new Array(i);let l,u,c,f;for(l=0,u=i;l<u;++l)c=l+r,f=n[c],o[l]={x:s.parse(f[0],c),y:a.parse(f[1],c)};return o}parseObjectData(e,n,r,i){const{xScale:s,yScale:a}=e,{xAxisKey:o="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let c,f,p,h;for(c=0,f=i;c<f;++c)p=c+r,h=n[p],u[c]={x:s.parse(Xs(h,o),p),y:a.parse(Xs(h,l),p)};return u}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const i=this.chart,s=this._cachedMeta,a=n[e.axis],o={keys:eg(i,!0),values:n._stacks[e.axis]._visualValues};return vh(o,a,s.index,{mode:r})}updateRangeFromParsed(e,n,r,i){const s=r[n.axis];let a=s===null?NaN:s;const o=i&&r._stacks[n.axis];i&&o&&(i.values=o,a=vh(i,s,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}getMinMax(e,n){const r=this._cachedMeta,i=r._parsed,s=r._sorted&&e===r.iScale,a=i.length,o=this._getOtherScale(e),l=nk(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:f}=Z6(o);let p,h;function y(){h=i[p];const m=h[o.axis];return!rt(h[e.axis])||c>m||f<m}for(p=0;p<a&&!(!y()&&(this.updateRangeFromParsed(u,e,h,l),s));++p);if(s){for(p=a-1;p>=0;--p)if(!y()){this.updateRangeFromParsed(u,e,h,l);break}}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let i,s,a;for(i=0,s=n.length;i<s;++i)a=n[i][e.axis],rt(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,i=n.vScale,s=this.getParsed(e);return{label:r?""+r.getLabelForValue(s[r.axis]):"",value:i?""+i.getLabelForValue(s[i.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=K6(Se(this.options.clip,V6(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],s=n.chartArea,a=[],o=this._drawStart||0,l=this._drawCount||i.length-o,u=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(e,s,o,l),c=o;c<o+l;++c){const f=i[c];f.hidden||(f.active&&u?a.push(f):f.draw(e,s))}for(c=0;c<a.length;++c)a[c].draw(e,s)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const i=this.getDataset();let s;if(e>=0&&e<this._cachedMeta.data.length){const a=this._cachedMeta.data[e];s=a.$context||(a.$context=tk(this.getContext(),e,a)),s.parsed=this.getParsed(e),s.raw=i.data[e],s.index=s.dataIndex=e}else s=this.$context||(this.$context=ek(this.chart.getContext(),this.index)),s.dataset=i,s.index=s.datasetIndex=this.index;return s.active=!!n,s.mode=r,s}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const i=n==="active",s=this._cachedDataOpts,a=e+"-"+n,o=s[a],l=this.enableOptionSharing&&xo(r);if(o)return wh(o,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,e),f=i?[`${e}Hover`,"hover",e,""]:[e,""],p=u.getOptionScopes(this.getDataset(),c),h=Object.keys(Qe.elements[e]),y=()=>this.getContext(r,i,n),m=u.resolveNamedOptions(p,h,y,f);return m.$shared&&(m.$shared=l,s[a]=Object.freeze(wh(m,l))),m}_resolveAnimations(e,n,r){const i=this.chart,s=this._cachedDataOpts,a=`animation-${n}`,o=s[a];if(o)return o;let l;if(i.options.animation!==!1){const c=this.chart.config,f=c.datasetAnimationScopeKeys(this._type,n),p=c.getOptionScopes(this.getDataset(),f);l=c.createResolver(p,this.getContext(e,r,n))}const u=new $0(i,l&&l.animations);return l&&l._cacheable&&(s[a]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||jl(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),i=this._sharedOptions,s=this.getSharedOptions(r),a=this.includeOptions(n,s)||s!==i;return this.updateSharedOptions(s,n,r),{sharedOptions:s,includeOptions:a}}updateElement(e,n,r,i){jl(i)?Object.assign(e,r):this._resolveAnimations(n,i).update(e,r)}updateSharedOptions(e,n,r){e&&!jl(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,i){e.active=i;const s=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(e,{options:!i&&this.getSharedOptions(s)||s})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[o,l,u]of this._syncList)this[o](l,u);this._syncList=[];const i=r.length,s=n.length,a=Math.min(s,i);a&&this.parse(0,a),s>i?this._insertElements(i,s-i,e):s<i&&this._removeElements(s,i-s)}_insertElements(e,n,r=!0){const i=this._cachedMeta,s=i.data,a=e+n;let o;const l=u=>{for(u.length+=n,o=u.length-1;o>=a;o--)u[o]=u[o-n]};for(l(s),o=e;o<a;++o)s[o]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(e,n),r&&this.updateElements(s,e,n,"reset")}updateElements(e,n,r,i){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(e,n);r._stacked&&cs(r,i)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,i]=e;this[n](r,i)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}de(Ci,"defaults",{}),de(Ci,"datasetElementType",null),de(Ci,"dataElementType",null);class to extends Ci{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:s}=n,a=this.chart._animationsDisabled;let{start:o,count:l}=B5(n,i,a);this._drawStart=o,this._drawCount=l,F5(n)&&(o=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=i;const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:u},e),this.updateElements(i,o,l,e)}updateElements(e,n,r,i){const s=i==="reset",{iScale:a,vScale:o,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:f}=this._getSharedOptions(n,i),p=a.axis,h=o.axis,{spanGaps:y,segment:m}=this.options,v=Js(y)?y:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||s||i==="none",A=n+r,E=e.length;let C=n>0&&this.getParsed(n-1);for(let S=0;S<E;++S){const b=e[S],w=g?b:{};if(S<n||S>=A){w.skip=!0;continue}const x=this.getParsed(S),N=_e(x[h]),D=w[p]=a.getPixelForValue(x[p],S),M=w[h]=s||N?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,x,l):x[h],S);w.skip=isNaN(D)||isNaN(M)||N,w.stop=S>0&&Math.abs(x[p]-C[p])>v,m&&(w.parsed=x,w.raw=u.data[S]),f&&(w.options=c||this.resolveDataElementOptions(S,b.active?"active":i)),g||this.updateElement(b,S,w,i),C=x}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,r=n.options&&n.options.borderWidth||0,i=e.data||[];if(!i.length)return r;const s=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,s,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}de(to,"id","line"),de(to,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),de(to,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class no extends Ci{getLabelAndValue(e){const n=this._cachedMeta.vScale,r=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(e,n,r,i){return g6.bind(this)(e,n,r,i)}update(e){const n=this._cachedMeta,r=n.dataset,i=n.data||[],s=n.iScale.getLabels();if(r.points=i,e!=="resize"){const a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===i.length,options:a};this.updateElement(r,void 0,o,e)}this.updateElements(i,0,i.length,e)}updateElements(e,n,r,i){const s=this._cachedMeta.rScale,a=i==="reset";for(let o=n;o<n+r;o++){const l=e[o],u=this.resolveDataElementOptions(o,l.active?"active":i),c=s.getPointPositionForValue(o,this.getParsed(o).r),f=a?s.xCenter:c.x,p=a?s.yCenter:c.y,h={x:f,y:p,angle:c.angle,skip:isNaN(f)||isNaN(p),options:u};this.updateElement(l,o,h,i)}}}de(no,"id","radar"),de(no,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),de(no,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});function Lr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Kc{constructor(e){de(this,"options");this.options=e||{}}static override(e){Object.assign(Kc.prototype,e)}init(){}formats(){return Lr()}parse(){return Lr()}format(){return Lr()}add(){return Lr()}diff(){return Lr()}startOf(){return Lr()}endOf(){return Lr()}}var rk={_date:Kc};function ik(t,e,n,r){const{controller:i,data:s,_sorted:a}=t,o=i._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(o&&e===o.axis&&e!=="r"&&a&&s.length){const u=o._reversePixels?M5:zr;if(r){if(i._sharedOptions){const c=s[0],f=typeof c.getRange=="function"&&c.getRange(e);if(f){const p=u(s,e,n-f),h=u(s,e,n+f);return{lo:p.lo,hi:h.hi}}}}else{const c=u(s,e,n);if(l){const{vScale:f}=i._cachedMeta,{_parsed:p}=t,h=p.slice(0,c.lo+1).reverse().findIndex(m=>!_e(m[f.axis]));c.lo-=Math.max(0,h);const y=p.slice(c.hi).findIndex(m=>!_e(m[f.axis]));c.hi+=Math.max(0,y)}return c}}return{lo:0,hi:s.length-1}}function Jo(t,e,n,r,i){const s=t.getSortedVisibleDatasetMetas(),a=n[e];for(let o=0,l=s.length;o<l;++o){const{index:u,data:c}=s[o],{lo:f,hi:p}=ik(s[o],e,a,i);for(let h=f;h<=p;++h){const y=c[h];y.skip||r(y,u,h)}}}function sk(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,i){const s=e?Math.abs(r.x-i.x):0,a=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(a,2))}}function El(t,e,n,r,i){const s=[];return!i&&!t.isPointInArea(e)||Jo(t,n,e,function(o,l,u){!i&&!Jn(o,t.chartArea,0)||o.inRange(e.x,e.y,r)&&s.push({element:o,datasetIndex:l,index:u})},!0),s}function ak(t,e,n,r){let i=[];function s(a,o,l){const{startAngle:u,endAngle:c}=a.getProps(["startAngle","endAngle"],r),{angle:f}=P5(a,{x:e.x,y:e.y});R0(f,u,c)&&i.push({element:a,datasetIndex:o,index:l})}return Jo(t,n,e,s),i}function ok(t,e,n,r,i,s){let a=[];const o=sk(n);let l=Number.POSITIVE_INFINITY;function u(c,f,p){const h=c.inRange(e.x,e.y,i);if(r&&!h)return;const y=c.getCenterPoint(i);if(!(!!s||t.isPointInArea(y))&&!h)return;const v=o(e,y);v<l?(a=[{element:c,datasetIndex:f,index:p}],l=v):v===l&&a.push({element:c,datasetIndex:f,index:p})}return Jo(t,n,e,u),a}function Ol(t,e,n,r,i,s){return!s&&!t.isPointInArea(e)?[]:n==="r"&&!r?ak(t,e,n,i):ok(t,e,n,r,i,s)}function Ah(t,e,n,r,i){const s=[],a=n==="x"?"inXRange":"inYRange";let o=!1;return Jo(t,n,e,(l,u,c)=>{l[a]&&l[a](e[n],i)&&(s.push({element:l,datasetIndex:u,index:c}),o=o||l.inRange(e.x,e.y,i))}),r&&!o?[]:s}var lk={modes:{index(t,e,n,r){const i=Rr(e,t),s=n.axis||"x",a=n.includeInvisible||!1,o=n.intersect?El(t,i,s,r,a):Ol(t,i,s,!1,r,a),l=[];return o.length?(t.getSortedVisibleDatasetMetas().forEach(u=>{const c=o[0].index,f=u.data[c];f&&!f.skip&&l.push({element:f,datasetIndex:u.index,index:c})}),l):[]},dataset(t,e,n,r){const i=Rr(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;let o=n.intersect?El(t,i,s,r,a):Ol(t,i,s,!1,r,a);if(o.length>0){const l=o[0].datasetIndex,u=t.getDatasetMeta(l).data;o=[];for(let c=0;c<u.length;++c)o.push({element:u[c],datasetIndex:l,index:c})}return o},point(t,e,n,r){const i=Rr(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;return El(t,i,s,r,a)},nearest(t,e,n,r){const i=Rr(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;return Ol(t,i,s,n.intersect,r,a)},x(t,e,n,r){const i=Rr(e,t);return Ah(t,i,"x",n.intersect,r)},y(t,e,n,r){const i=Rr(e,t);return Ah(t,i,"y",n.intersect,r)}}};const tg=["left","top","right","bottom"];function ds(t,e){return t.filter(n=>n.pos===e)}function Sh(t,e){return t.filter(n=>tg.indexOf(n.pos)===-1&&n.box.axis===e)}function fs(t,e){return t.sort((n,r)=>{const i=e?r:n,s=e?n:r;return i.weight===s.weight?i.index-s.index:i.weight-s.weight})}function uk(t){const e=[];let n,r,i,s,a,o;for(n=0,r=(t||[]).length;n<r;++n)i=t[n],{position:s,options:{stack:a,stackWeight:o=1}}=i,e.push({index:n,box:i,pos:s,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&s+a,stackWeight:o});return e}function ck(t){const e={};for(const n of t){const{stack:r,pos:i,stackWeight:s}=n;if(!r||!tg.includes(i))continue;const a=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=s}return e}function dk(t,e){const n=ck(t),{vBoxMaxWidth:r,hBoxMaxHeight:i}=e;let s,a,o;for(s=0,a=t.length;s<a;++s){o=t[s];const{fullSize:l}=o.box,u=n[o.stack],c=u&&o.stackWeight/u.weight;o.horizontal?(o.width=c?c*r:l&&e.availableWidth,o.height=i):(o.width=r,o.height=c?c*i:l&&e.availableHeight)}return n}function fk(t){const e=uk(t),n=fs(e.filter(u=>u.box.fullSize),!0),r=fs(ds(e,"left"),!0),i=fs(ds(e,"right")),s=fs(ds(e,"top"),!0),a=fs(ds(e,"bottom")),o=Sh(e,"x"),l=Sh(e,"y");return{fullSize:n,leftAndTop:r.concat(s),rightAndBottom:i.concat(l).concat(a).concat(o),chartArea:ds(e,"chartArea"),vertical:r.concat(i).concat(l),horizontal:s.concat(a).concat(o)}}function Ch(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function ng(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function hk(t,e,n,r){const{pos:i,box:s}=n,a=t.maxPadding;if(!Ee(i)){n.size&&(t[i]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?s.height:s.width),n.size=f.size/f.count,t[i]+=n.size}s.getPadding&&ng(a,s.getPadding());const o=Math.max(0,e.outerWidth-Ch(a,t,"left","right")),l=Math.max(0,e.outerHeight-Ch(a,t,"top","bottom")),u=o!==t.w,c=l!==t.h;return t.w=o,t.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function pk(t){const e=t.maxPadding;function n(r){const i=Math.max(e[r]-t[r],0);return t[r]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function yk(t,e){const n=e.maxPadding;function r(i){const s={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{s[a]=Math.max(e[a],n[a])}),s}return r(t?["left","right"]:["top","bottom"])}function Ss(t,e,n,r){const i=[];let s,a,o,l,u,c;for(s=0,a=t.length,u=0;s<a;++s){o=t[s],l=o.box,l.update(o.width||e.w,o.height||e.h,yk(o.horizontal,e));const{same:f,other:p}=hk(e,n,o,r);u|=f&&i.length,c=c||p,l.fullSize||i.push(o)}return u&&Ss(i,e,n,r)||c}function Ra(t,e,n,r,i){t.top=n,t.left=e,t.right=e+r,t.bottom=n+i,t.width=r,t.height=i}function kh(t,e,n,r){const i=n.padding;let{x:s,y:a}=e;for(const o of t){const l=o.box,u=r[o.stack]||{placed:0,weight:1},c=o.stackWeight/u.weight||1;if(o.horizontal){const f=e.w*c,p=u.size||l.height;xo(u.start)&&(a=u.start),l.fullSize?Ra(l,i.left,a,n.outerWidth-i.right-i.left,p):Ra(l,e.left+u.placed,a,f,p),u.start=a,u.placed+=f,a=l.bottom}else{const f=e.h*c,p=u.size||l.width;xo(u.start)&&(s=u.start),l.fullSize?Ra(l,s,i.top,p,n.outerHeight-i.bottom-i.top):Ra(l,s,e.top+u.placed,p,f),u.start=s,u.placed+=f,s=l.right}}e.x=s,e.y=a}var rn={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const i=dt(t.options.layout.padding),s=Math.max(e-i.width,0),a=Math.max(n-i.height,0),o=fk(t.boxes),l=o.vertical,u=o.horizontal;Re(t.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const c=l.reduce((m,v)=>v.box.options&&v.box.options.display===!1?m:m+1,0)||1,f=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:s,availableHeight:a,vBoxMaxWidth:s/2/c,hBoxMaxHeight:a/2}),p=Object.assign({},i);ng(p,dt(r));const h=Object.assign({maxPadding:p,w:s,h:a,x:i.left,y:i.top},i),y=dk(l.concat(u),f);Ss(o.fullSize,h,f,y),Ss(l,h,f,y),Ss(u,h,f,y)&&Ss(l,h,f,y),pk(h),kh(o.leftAndTop,h,f,y),h.x+=h.w,h.y+=h.h,kh(o.rightAndBottom,h,f,y),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Re(o.chartArea,m=>{const v=m.box;Object.assign(v,t.chartArea),v.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class rg{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,i){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(e){return!0}updateConfig(e){}}class mk extends rg{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const ro="$chartjs",gk={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},jh=t=>t===null||t==="";function vk(t,e){const n=t.style,r=t.getAttribute("height"),i=t.getAttribute("width");if(t[ro]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",jh(i)){const s=fh(t,"width");s!==void 0&&(t.width=s)}if(jh(r))if(t.style.height==="")t.height=t.width/(e||2);else{const s=fh(t,"height");s!==void 0&&(t.height=s)}return t}const ig=I6?{passive:!0}:!1;function bk(t,e,n){t&&t.addEventListener(e,n,ig)}function xk(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,ig)}function wk(t,e){const n=gk[t.type]||t.type,{x:r,y:i}=Rr(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:i!==void 0?i:null}}function ko(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Ak(t,e,n){const r=t.canvas,i=new MutationObserver(s=>{let a=!1;for(const o of s)a=a||ko(o.addedNodes,r),a=a&&!ko(o.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function Sk(t,e,n){const r=t.canvas,i=new MutationObserver(s=>{let a=!1;for(const o of s)a=a||ko(o.removedNodes,r),a=a&&!ko(o.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Zs=new Map;let Eh=0;function sg(){const t=window.devicePixelRatio;t!==Eh&&(Eh=t,Zs.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Ck(t,e){Zs.size||window.addEventListener("resize",sg),Zs.set(t,e)}function kk(t){Zs.delete(t),Zs.size||window.removeEventListener("resize",sg)}function jk(t,e,n){const r=t.canvas,i=r&&Vc(r);if(!i)return;const s=B0((o,l)=>{const u=i.clientWidth;n(o,l),u<i.clientWidth&&n()},window),a=new ResizeObserver(o=>{const l=o[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||s(u,c)});return a.observe(i),Ck(t,s),a}function Pl(t,e,n){n&&n.disconnect(),e==="resize"&&kk(t)}function Ek(t,e,n){const r=t.canvas,i=B0(s=>{t.ctx!==null&&n(wk(s,t))},t);return bk(r,e,i),i}class Ok extends rg{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(vk(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[ro])return!1;const r=n[ro].initial;["height","width"].forEach(s=>{const a=r[s];_e(a)?n.removeAttribute(s):n.setAttribute(s,a)});const i=r.style||{};return Object.keys(i).forEach(s=>{n.style[s]=i[s]}),n.width=n.width,delete n[ro],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const i=e.$proxies||(e.$proxies={}),a={attach:Ak,detach:Sk,resize:jk}[n]||Ek;i[n]=a(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),i=r[n];if(!i)return;({attach:Pl,detach:Pl,resize:Pl}[n]||xk)(e,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,i){return T6(e,n,r,i)}isAttached(e){const n=e&&Vc(e);return!!(n&&n.isConnected)}}function Pk(t){return!Yc()||typeof OffscreenCanvas!="undefined"&&t instanceof OffscreenCanvas?mk:Ok}class tr{constructor(){de(this,"x");de(this,"y");de(this,"active",!1);de(this,"options");de(this,"$animations")}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return Js(this.x)&&Js(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const i={};return e.forEach(s=>{i[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),i}}de(tr,"defaults",{}),de(tr,"defaultRoutes");function Tk(t,e){const n=t.options.ticks,r=Ik(t),i=Math.min(n.maxTicksLimit||r,r),s=n.major.enabled?Lk(e):[],a=s.length,o=s[0],l=s[a-1],u=[];if(a>i)return Nk(e,u,s,a/i),u;const c=Mk(s,e,i);if(a>0){let f,p;const h=a>1?Math.round((l-o)/(a-1)):null;for(_a(e,u,c,_e(h)?0:o-h,o),f=0,p=a-1;f<p;f++)_a(e,u,c,s[f],s[f+1]);return _a(e,u,c,l,_e(h)?e.length:l+h),u}return _a(e,u,c),u}function Ik(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),i=t._maxLength/n;return Math.floor(Math.min(r,i))}function Mk(t,e,n){const r=Rk(t),i=e.length/n;if(!r)return Math.max(i,1);const s=k5(r);for(let a=0,o=s.length-1;a<o;a++){const l=s[a];if(l>i)return l}return Math.max(i,1)}function Lk(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function Nk(t,e,n,r){let i=0,s=n[0],a;for(r=Math.ceil(r),a=0;a<t.length;a++)a===s&&(e.push(t[a]),i++,s=n[i*r])}function _a(t,e,n,r,i){const s=Se(r,0),a=Math.min(Se(i,t.length),t.length);let o=0,l,u,c;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),c=s;c<0;)o++,c=Math.round(s+o*n);for(u=Math.max(s,0);u<a;u++)u===c&&(e.push(t[u]),o++,c=Math.round(s+o*n))}function Rk(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const _k=t=>t==="left"?"right":t==="right"?"left":t,Oh=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,Ph=(t,e)=>Math.min(e||t,t);function Th(t,e){const n=[],r=t.length/e,i=t.length;let s=0;for(;s<i;s+=r)n.push(t[Math.floor(s)]);return n}function Dk(t,e,n){const r=t.ticks.length,i=Math.min(e,r-1),s=t._startPixel,a=t._endPixel,o=1e-6;let l=t.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-s,a-l):e===0?u=(t.getPixelForTick(1)-l)/2:u=(l-t.getPixelForTick(i-1))/2,l+=i<e?u:-u,l<s-o||l>a+o)))return l}function Bk(t,e){Re(t,n=>{const r=n.gc,i=r.length/2;let s;if(i>e){for(s=0;s<i;++s)delete n.data[r[s]];r.splice(0,i)}})}function hs(t){return t.drawTicks?t.tickLength:0}function Ih(t,e){if(!t.display)return 0;const n=Ze(t.font,e),r=dt(t.padding);return(We(t.text)?t.text.length:1)*n.lineHeight+r.height}function Fk(t,e){return Er(t,{scale:e,type:"scale"})}function zk(t,e,n){return Er(t,{tick:n,index:e,type:"tick"})}function Uk(t,e,n){let r=Uc(t);return(n&&e!=="right"||!n&&e==="right")&&(r=_k(r)),r}function Hk(t,e,n,r){const{top:i,left:s,bottom:a,right:o,chart:l}=t,{chartArea:u,scales:c}=l;let f=0,p,h,y;const m=a-i,v=o-s;if(t.isHorizontal()){if(h=ut(r,s,o),Ee(n)){const g=Object.keys(n)[0],A=n[g];y=c[g].getPixelForValue(A)+m-e}else n==="center"?y=(u.bottom+u.top)/2+m-e:y=Oh(t,n,e);p=o-s}else{if(Ee(n)){const g=Object.keys(n)[0],A=n[g];h=c[g].getPixelForValue(A)-v+e}else n==="center"?h=(u.left+u.right)/2-v+e:h=Oh(t,n,e);y=ut(r,a,i),f=n==="left"?-Qt:Qt}return{titleX:h,titleY:y,maxWidth:p,rotation:f}}class $i extends tr{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return e=bn(e,Number.POSITIVE_INFINITY),n=bn(n,Number.NEGATIVE_INFINITY),r=bn(r,Number.POSITIVE_INFINITY),i=bn(i,Number.NEGATIVE_INFINITY),{min:bn(e,r),max:bn(n,i),minDefined:rt(e),maxDefined:rt(n)}}getMinMax(e){let{min:n,max:r,minDefined:i,maxDefined:s}=this.getUserBounds(),a;if(i&&s)return{min:n,max:r};const o=this.getMatchingVisibleMetas();for(let l=0,u=o.length;l<u;++l)a=o[l].controller.getMinMax(this,e),i||(n=Math.min(n,a.min)),s||(r=Math.max(r,a.max));return n=s&&n>r?r:n,r=i&&n>r?n:r,{min:bn(n,bn(r,n)),max:bn(r,bn(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Be(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:i,grace:s,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=o6(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=o<this.ticks.length;this._convertTicksToLabels(l?Th(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=Tk(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,e=!e),this._startPixel=n,this._endPixel=r,this._reversePixels=e,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Be(this.options.afterUpdate,[this])}beforeSetDimensions(){Be(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Be(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Be(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Be(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,i,s;for(r=0,i=e.length;r<i;r++)s=e[r],s.label=Be(n.callback,[s.value,r,e],this)}afterTickToLabelConversion(){Be(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Be(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=Ph(this.ticks.length,e.ticks.maxTicksLimit),i=n.minRotation||0,s=n.maxRotation;let a=i,o,l,u;if(!this._isVisible()||!n.display||i>=s||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const c=this._getLabelSizes(),f=c.widest.width,p=c.highest.height,h=nn(this.chart.width-f,0,this.maxWidth);o=e.offset?this.maxWidth/r:h/(r-1),f+6>o&&(o=h/(r-(e.offset?.5:1)),l=this.maxHeight-hs(e.grid)-n.padding-Ih(e.title,this.chart.options.font),u=Math.sqrt(f*f+p*p),a=Fc(Math.min(Math.asin(nn((c.highest.height+6)/o,-1,1)),Math.asin(nn(l/u,-1,1))-Math.asin(nn(p/u,-1,1)))),a=Math.max(i,Math.min(s,a))),this.labelRotation=a}afterCalculateLabelRotation(){Be(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Be(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:s}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){const l=Ih(i,n.options.font);if(o?(e.width=this.maxWidth,e.height=hs(s)+l):(e.height=this.maxHeight,e.width=hs(s)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:f,highest:p}=this._getLabelSizes(),h=r.padding*2,y=br(this.labelRotation),m=Math.cos(y),v=Math.sin(y);if(o){const g=r.mirror?0:v*f.width+m*p.height;e.height=Math.min(this.maxHeight,e.height+g+h)}else{const g=r.mirror?0:m*f.width+v*p.height;e.width=Math.min(this.maxWidth,e.width+g+h)}this._calculatePadding(u,c,v,m)}}this._handleMargins(),o?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,i){const{ticks:{align:s,padding:a},position:o}=this.options,l=this.labelRotation!==0,u=o!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,h=0;l?u?(p=i*e.width,h=r*n.height):(p=r*e.height,h=i*n.width):s==="start"?h=n.width:s==="end"?p=e.width:s!=="inner"&&(p=e.width/2,h=n.width/2),this.paddingLeft=Math.max((p-c+a)*this.width/(this.width-c),0),this.paddingRight=Math.max((h-f+a)*this.width/(this.width-f),0)}else{let c=n.height/2,f=e.height/2;s==="start"?(c=0,f=e.height):s==="end"&&(c=n.height,f=0),this.paddingTop=c+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Be(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n<r;n++)_e(e[n].label)&&(e.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=Th(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,r){const{ctx:i,_longestTextCache:s}=this,a=[],o=[],l=Math.floor(n/Ph(n,r));let u=0,c=0,f,p,h,y,m,v,g,A,E,C,S;for(f=0;f<n;f+=l){if(y=e[f].label,m=this._resolveTickFontOptions(f),i.font=v=m.string,g=s[v]=s[v]||{data:{},gc:[]},A=m.lineHeight,E=C=0,!_e(y)&&!We(y))E=Ao(i,g.data,g.gc,E,y),C=A;else if(We(y))for(p=0,h=y.length;p<h;++p)S=y[p],!_e(S)&&!We(S)&&(E=Ao(i,g.data,g.gc,E,S),C+=A);a.push(E),o.push(C),u=Math.max(E,u),c=Math.max(C,c)}Bk(s,n);const b=a.indexOf(u),w=o.indexOf(c),x=N=>({width:a[N]||0,height:o[N]||0});return{first:x(0),last:x(n-1),widest:x(b),highest:x(w),widths:a,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return I5(this._alignToPixels?Mr(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const r=n[e];return r.$context||(r.$context=zk(this.getContext(),e,r))}return this.$context||(this.$context=Fk(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=br(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),s=this._getLabelSizes(),a=e.autoSkipPadding||0,o=s?s.widest.width+a:0,l=s?s.highest.height+a:0;return this.isHorizontal()?l*r>o*i?o/r:l/i:l*i<o*r?l/r:o/i}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,i=this.options,{grid:s,position:a,border:o}=i,l=s.offset,u=this.isHorizontal(),f=this.ticks.length+(l?1:0),p=hs(s),h=[],y=o.setContext(this.getContext()),m=y.display?y.width:0,v=m/2,g=function(B){return Mr(r,B,m)};let A,E,C,S,b,w,x,N,D,M,T,z;if(a==="top")A=g(this.bottom),w=this.bottom-p,N=A-v,M=g(e.top)+v,z=e.bottom;else if(a==="bottom")A=g(this.top),M=e.top,z=g(e.bottom)-v,w=A+v,N=this.top+p;else if(a==="left")A=g(this.right),b=this.right-p,x=A-v,D=g(e.left)+v,T=e.right;else if(a==="right")A=g(this.left),D=e.left,T=g(e.right)-v,b=A+v,x=this.left+p;else if(n==="x"){if(a==="center")A=g((e.top+e.bottom)/2+.5);else if(Ee(a)){const B=Object.keys(a)[0],R=a[B];A=g(this.chart.scales[B].getPixelForValue(R))}M=e.top,z=e.bottom,w=A+v,N=w+p}else if(n==="y"){if(a==="center")A=g((e.left+e.right)/2);else if(Ee(a)){const B=Object.keys(a)[0],R=a[B];A=g(this.chart.scales[B].getPixelForValue(R))}b=A-v,x=b-p,D=e.left,T=e.right}const I=Se(i.ticks.maxTicksLimit,f),O=Math.max(1,Math.ceil(f/I));for(E=0;E<f;E+=O){const B=this.getContext(E),R=s.setContext(B),Y=o.setContext(B),Q=R.lineWidth,j=R.color,W=Y.dash||[],q=Y.dashOffset,P=R.tickWidth,G=R.tickColor,J=R.tickBorderDash||[],K=R.tickBorderDashOffset;C=Dk(this,E,l),C!==void 0&&(S=Mr(r,C,Q),u?b=x=D=T=S:w=N=M=z=S,h.push({tx1:b,ty1:w,tx2:x,ty2:N,x1:D,y1:M,x2:T,y2:z,width:Q,color:j,borderDash:W,borderDashOffset:q,tickWidth:P,tickColor:G,tickBorderDash:J,tickBorderDashOffset:K}))}return this._ticksLength=f,this._borderValue=A,h}_computeLabelItems(e){const n=this.axis,r=this.options,{position:i,ticks:s}=r,a=this.isHorizontal(),o=this.ticks,{align:l,crossAlign:u,padding:c,mirror:f}=s,p=hs(r.grid),h=p+c,y=f?-c:h,m=-br(this.labelRotation),v=[];let g,A,E,C,S,b,w,x,N,D,M,T,z="middle";if(i==="top")b=this.bottom-y,w=this._getXAxisLabelAlignment();else if(i==="bottom")b=this.top+y,w=this._getXAxisLabelAlignment();else if(i==="left"){const O=this._getYAxisLabelAlignment(p);w=O.textAlign,S=O.x}else if(i==="right"){const O=this._getYAxisLabelAlignment(p);w=O.textAlign,S=O.x}else if(n==="x"){if(i==="center")b=(e.top+e.bottom)/2+h;else if(Ee(i)){const O=Object.keys(i)[0],B=i[O];b=this.chart.scales[O].getPixelForValue(B)+h}w=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")S=(e.left+e.right)/2-h;else if(Ee(i)){const O=Object.keys(i)[0],B=i[O];S=this.chart.scales[O].getPixelForValue(B)}w=this._getYAxisLabelAlignment(p).textAlign}n==="y"&&(l==="start"?z="top":l==="end"&&(z="bottom"));const I=this._getLabelSizes();for(g=0,A=o.length;g<A;++g){E=o[g],C=E.label;const O=s.setContext(this.getContext(g));x=this.getPixelForTick(g)+s.labelOffset,N=this._resolveTickFontOptions(g),D=N.lineHeight,M=We(C)?C.length:1;const B=M/2,R=O.color,Y=O.textStrokeColor,Q=O.textStrokeWidth;let j=w;a?(S=x,w==="inner"&&(g===A-1?j=this.options.reverse?"left":"right":g===0?j=this.options.reverse?"right":"left":j="center"),i==="top"?u==="near"||m!==0?T=-M*D+D/2:u==="center"?T=-I.highest.height/2-B*D+D:T=-I.highest.height+D/2:u==="near"||m!==0?T=D/2:u==="center"?T=I.highest.height/2-B*D:T=I.highest.height-M*D,f&&(T*=-1),m!==0&&!O.showLabelBackdrop&&(S+=D/2*Math.sin(m))):(b=x,T=(1-M)*D/2);let W;if(O.showLabelBackdrop){const q=dt(O.backdropPadding),P=I.heights[g],G=I.widths[g];let J=T-q.top,K=0-q.left;switch(z){case"middle":J-=P/2;break;case"bottom":J-=P;break}switch(w){case"center":K-=G/2;break;case"right":K-=G;break;case"inner":g===A-1?K-=G:g>0&&(K-=G/2);break}W={left:K,top:J,width:G+q.width,height:P+q.height,color:O.backdropColor}}v.push({label:C,font:N,textOffset:T,options:{rotation:m,color:R,strokeColor:Y,strokeWidth:Q,textAlign:j,textBaseline:z,translation:[S,b],backdrop:W}})}return v}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-br(this.labelRotation))return e==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:i,padding:s}}=this.options,a=this._getLabelSizes(),o=e+s,l=a.widest.width;let u,c;return n==="left"?i?(c=this.right+s,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-o,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?i?(c=this.left+s,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+o,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:i,width:s,height:a}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,i,s,a),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(s=>s.value===e);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let s,a;const o=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(s=0,a=i.length;s<a;++s){const l=i[s];n.drawOnChartArea&&o({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&o({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:r,grid:i}}=this,s=r.setContext(this.getContext()),a=r.display?s.width:0;if(!a)return;const o=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,f,p;this.isHorizontal()?(u=Mr(e,this.left,a)-a/2,c=Mr(e,this.right,o)+o/2,f=p=l):(f=Mr(e,this.top,a)-a/2,p=Mr(e,this.bottom,o)+o/2,u=c=l),n.save(),n.lineWidth=s.width,n.strokeStyle=s.color,n.beginPath(),n.moveTo(u,f),n.lineTo(c,p),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&Vo(r,i);const s=this.getLabelItems(e);for(const a of s){const o=a.options,l=a.font,u=a.label,c=a.textOffset;si(r,u,0,c,l,o)}i&&Ko(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const s=Ze(r.font),a=dt(r.padding),o=r.align;let l=s.lineHeight/2;n==="bottom"||n==="center"||Ee(n)?(l+=a.bottom,We(r.text)&&(l+=s.lineHeight*(r.text.length-1))):l+=a.top;const{titleX:u,titleY:c,maxWidth:f,rotation:p}=Hk(this,l,n,o);si(e,r.text,0,0,s,{color:r.color,maxWidth:f,rotation:p,textAlign:Uk(o,n,i),textBaseline:"middle",translation:[u,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,r=Se(e.grid&&e.grid.z,-1),i=Se(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==$i.prototype.draw?[{z:n,draw:s=>{this.draw(s)}}]:[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let s,a;for(s=0,a=n.length;s<a;++s){const o=n[s];o[r]===this.id&&(!e||o.type===e)&&i.push(o)}return i}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return Ze(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class Da{constructor(e,n,r){this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let r;Gk(n)&&(r=this.register(n));const i=this.items,s=e.id,a=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+e);return s in i||(i[s]=e,qk(e,a,r),this.override&&Qe.override(e.id,e.overrides)),a}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,i=this.scope;r in n&&delete n[r],i&&r in Qe[i]&&(delete Qe[i][r],this.override&&delete ii[r])}}function qk(t,e,n){const r=Ks(Object.create(null),[n?Qe.get(n):{},Qe.get(e),t.defaults]);Qe.set(e,r),t.defaultRoutes&&Wk(e,t.defaultRoutes),t.descriptors&&Qe.describe(e,t.descriptors)}function Wk(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),i=r.pop(),s=[t].concat(r).join("."),a=e[n].split("."),o=a.pop(),l=a.join(".");Qe.route(s,i,l,o)})}function Gk(t){return"id"in t&&"defaults"in t}class Qk{constructor(){this.controllers=new Da(Ci,"datasets",!0),this.elements=new Da(tr,"elements"),this.plugins=new Da(Object,"plugins"),this.scales=new Da($i,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(i=>{const s=r||this._getRegistryForType(i);r||s.isForType(i)||s===this.plugins&&i.id?this._exec(e,s,i):Re(i,a=>{const o=r||this._getRegistryForType(a);this._exec(e,o,a)})})}_exec(e,n,r){const i=Bc(e);Be(r["before"+i],[],r),n[e](r),Be(r["after"+i],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const i=n.get(e);if(i===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return i}}var Sn=new Qk;class Yk{constructor(){this._init=void 0}notify(e,n,r,i){if(n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),this._init===void 0)return;const s=i?this._descriptors(e).filter(i):this._descriptors(e),a=this._notify(s,e,n,r);return n==="afterDestroy"&&(this._notify(s,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),a}_notify(e,n,r,i){i=i||{};for(const s of e){const a=s.plugin,o=a[r],l=[n,i,s.options];if(Be(o,l,a)===!1&&i.cancelable)return!1}return!0}invalidate(){_e(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,i=Se(r.options&&r.options.plugins,{}),s=Vk(r);return i===!1&&!n?[]:Xk(e,s,i,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,i=(s,a)=>s.filter(o=>!a.some(l=>o.plugin.id===l.plugin.id));this._notify(i(n,r),e,"stop"),this._notify(i(r,n),e,"start")}}function Vk(t){const e={},n=[],r=Object.keys(Sn.plugins.items);for(let s=0;s<r.length;s++)n.push(Sn.getPlugin(r[s]));const i=t.plugins||[];for(let s=0;s<i.length;s++){const a=i[s];n.indexOf(a)===-1&&(n.push(a),e[a.id]=!0)}return{plugins:n,localIds:e}}function Kk(t,e){return!e&&t===!1?null:t===!0?{}:t}function Xk(t,{plugins:e,localIds:n},r,i){const s=[],a=t.getContext();for(const o of e){const l=o.id,u=Kk(r[l],i);u!==null&&s.push({plugin:o,options:Jk(t.config,{plugin:o,local:n[l]},u,a)})}return s}function Jk(t,{plugin:e,local:n},r,i){const s=t.pluginScopeKeys(e),a=t.getOptionScopes(r,s);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Fu(t,e){const n=Qe.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Zk(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function $k(t,e){return t===e?"_index_":"_value_"}function Mh(t){if(t==="x"||t==="y"||t==="r")return t}function e4(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function zu(t,...e){if(Mh(t))return t;for(const n of e){const r=n.axis||e4(n.position)||t.length>1&&Mh(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Lh(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function t4(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(n.length)return Lh(t,"x",n[0])||Lh(t,"y",n[0])}return{}}function n4(t,e){const n=ii[t.type]||{scales:{}},r=e.scales||{},i=Fu(t.type,e),s=Object.create(null);return Object.keys(r).forEach(a=>{const o=r[a];if(!Ee(o))return console.error(`Invalid scale configuration for scale: ${a}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=zu(a,o,t4(a,t),Qe.scales[o.type]),u=$k(l,i),c=n.scales||{};s[a]=Ps(Object.create(null),[{axis:l},o,c[l],c[u]])}),t.data.datasets.forEach(a=>{const o=a.type||t.type,l=a.indexAxis||Fu(o,e),c=(ii[o]||{}).scales||{};Object.keys(c).forEach(f=>{const p=Zk(f,l),h=a[p+"AxisID"]||p;s[h]=s[h]||Object.create(null),Ps(s[h],[{axis:p},r[h],c[f]])})}),Object.keys(s).forEach(a=>{const o=s[a];Ps(o,[Qe.scales[o.type],Qe.scale])}),s}function ag(t){const e=t.options||(t.options={});e.plugins=Se(e.plugins,{}),e.scales=n4(t,e)}function og(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function r4(t){return t=t||{},t.data=og(t.data),ag(t),t}const Nh=new Map,lg=new Set;function Ba(t,e){let n=Nh.get(t);return n||(n=e(),Nh.set(t,n),lg.add(n)),n}const ps=(t,e,n)=>{const r=Xs(e,n);r!==void 0&&t.add(r)};class i4{constructor(e){this._config=r4(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=og(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),ag(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Ba(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return Ba(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return Ba(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return Ba(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let i=r.get(e);return(!i||n)&&(i=new Map,r.set(e,i)),i}getOptionScopes(e,n,r){const{options:i,type:s}=this,a=this._cachedScopes(e,r),o=a.get(n);if(o)return o;const l=new Set;n.forEach(c=>{e&&(l.add(e),c.forEach(f=>ps(l,e,f))),c.forEach(f=>ps(l,i,f)),c.forEach(f=>ps(l,ii[s]||{},f)),c.forEach(f=>ps(l,Qe,f)),c.forEach(f=>ps(l,Du,f))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),lg.has(n)&&a.set(n,u),u}chartOptionScopes(){const{options:e,type:n}=this;return[e,ii[n]||{},Qe.datasets[n]||{},{type:n},Qe,Du]}resolveNamedOptions(e,n,r,i=[""]){const s={$shared:!0},{resolver:a,subPrefixes:o}=Rh(this._resolverCache,e,i);let l=a;if(a4(a,n)){s.$shared=!1,r=kr(r)?r():r;const u=this.createResolver(e,r,o);l=Hi(a,r,u)}for(const u of n)s[u]=l[u];return s}createResolver(e,n,r=[""],i){const{resolver:s}=Rh(this._resolverCache,e,r);return Ee(n)?Hi(s,n,void 0,i):s}}function Rh(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const i=n.join();let s=r.get(i);return s||(s={resolver:Wc(e,n),subPrefixes:n.filter(o=>!o.toLowerCase().includes("hover"))},r.set(i,s)),s}const s4=t=>Ee(t)&&Object.getOwnPropertyNames(t).some(e=>kr(t[e]));function a4(t,e){const{isScriptable:n,isIndexable:r}=H0(t);for(const i of e){const s=n(i),a=r(i),o=(a||s)&&t[i];if(s&&(kr(o)||s4(o))||a&&We(o))return!0}return!1}var o4="4.5.1";const l4=["top","bottom","left","right","chartArea"];function _h(t,e){return t==="top"||t==="bottom"||l4.indexOf(t)===-1&&e==="x"}function Dh(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function Bh(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Be(n&&n.onComplete,[t],e)}function u4(t){const e=t.chart,n=e.options.animation;Be(n&&n.onProgress,[t],e)}function ug(t){return Yc()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const io={},Fh=t=>{const e=ug(t);return Object.values(io).filter(n=>n.canvas===e).pop()};function c4(t,e,n){const r=Object.keys(t);for(const i of r){const s=+i;if(s>=e){const a=t[i];delete t[i],(n>0||s>e)&&(t[s+n]=a)}}}function d4(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}var lr;let Zo=(lr=class{static register(...e){Sn.add(...e),zh()}static unregister(...e){Sn.remove(...e),zh()}constructor(e,n){const r=this.config=new i4(n),i=ug(e),s=Fh(i);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||Pk(i)),this.platform.updateConfig(r);const o=this.platform.acquireContext(i,a.aspectRatio),l=o&&o.canvas,u=l&&l.height,c=l&&l.width;if(this.id=m5(),this.ctx=o,this.canvas=l,this.width=c,this.height=u,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Yk,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=_5(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],io[this.id]=this,!o||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Hn.listen(this,"complete",Bh),Hn.listen(this,"progress",u4),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:i,_aspectRatio:s}=this;return _e(e)?n&&s?s:i?r/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Sn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():dh(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return lh(this.canvas,this.ctx),this}stop(){return Hn.stop(this),this}resize(e,n){Hn.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,i=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,e,n,s),o=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,dh(this,o,!0)&&(this.notifyPlugins("resize",{size:a}),Be(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Re(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,i=Object.keys(r).reduce((a,o)=>(a[o]=!1,a),{});let s=[];n&&(s=s.concat(Object.keys(n).map(a=>{const o=n[a],l=zu(a,o),u=l==="r",c=l==="x";return{options:o,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),Re(s,a=>{const o=a.options,l=o.id,u=zu(l,o),c=Se(o.type,a.dtype);(o.position===void 0||_h(o.position,u)!==_h(a.dposition))&&(o.position=a.dposition),i[l]=!0;let f=null;if(l in r&&r[l].type===c)f=r[l];else{const p=Sn.getScale(c);f=new p({id:l,type:c,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(o,e)}),Re(i,(a,o)=>{a||delete r[o]}),Re(r,a=>{rn.configure(this,a,a.options),rn.addBox(this,a)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((i,s)=>i.index-s.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(Dh("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,i)=>{n.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const s=n[r];let a=this.getDatasetMeta(r);const o=s.type||this.config.type;if(a.type&&a.type!==o&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=o,a.indexAxis=s.indexAxis||Fu(o,this.options),a.order=s.order||0,a.index=r,a.label=""+s.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const l=Sn.getController(o),{datasetElementType:u,dataElementType:c}=Qe.datasets[o];Object.assign(l,{dataElementType:Sn.getElement(c),datasetElementType:u&&Sn.getElement(u)}),a.controller=new l(this,r),e.push(a.controller)}}return this._updateMetasets(),e}_resetElements(){Re(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:f}=this.getDatasetMeta(u),p=!i&&s.indexOf(f)===-1;f.buildOrUpdateElements(p),a=Math.max(+f.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),i||Re(s,u=>{u.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Dh("z","_idx"));const{_active:o,_lastEvent:l}=this;l?this._eventHandler(l,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){Re(this.scales,e=>{rn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!$f(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:s}of n){const a=r==="_removeElements"?-s:s;c4(e,i,a)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=s=>new Set(e.filter(a=>a[0]===s).map((a,o)=>o+","+a.splice(1).join(","))),i=r(0);for(let s=1;s<n;s++)if(!$f(i,r(s)))return;return Array.from(i).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;rn.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Re(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,s)=>{i._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,kr(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),i={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Hn.has(this)?this.attached&&!Hn.running(this)&&Hn.start(this):(this.draw(),Bh({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let i,s;for(i=0,s=n.length;i<s;++i){const a=n[i];(!e||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r={meta:e,index:e.index,cancelable:!0},i=Z0(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&Vo(n,i),e.controller.draw(),i&&Ko(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return Jn(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,i){const s=lk.modes[n];return typeof s=="function"?s(this,e,r,i):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let i=r.filter(s=>s&&s._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Er(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const i=r?"show":"hide",s=this.getDatasetMeta(e),a=s.controller._resolveAnimations(void 0,i);xo(n)?(s.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),a.update(s,{visible:r}),this.update(o=>o.datasetIndex===e?i:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),Hn.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),lh(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete io[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,r=(s,a)=>{n.addEventListener(this,s,a),e[s]=a},i=(s,a,o)=>{s.offsetX=a,s.offsetY=o,this._eventHandler(s)};Re(this.options.events,s=>r(s,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),e[l]=u},i=(l,u)=>{e[l]&&(n.removeEventListener(this,l,u),delete e[l])},s=(l,u)=>{this.canvas&&this.resize(l,u)};let a;const o=()=>{i("attach",o),this.attached=!0,this.resize(),r("resize",s),r("detach",a)};a=()=>{this.attached=!1,i("resize",s),this._stop(),this._resize(0,0),r("attach",o)},n.isAttached(this.canvas)?o():a()}unbindEvents(){Re(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Re(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const i=r?"set":"remove";let s,a,o,l;for(n==="dataset"&&(s=this.getDatasetMeta(e[0].datasetIndex),s.controller["_"+i+"DatasetHoverStyle"]()),o=0,l=e.length;o<l;++o){a=e[o];const u=a&&this.getDatasetMeta(a.datasetIndex).controller;u&&u[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:s,index:a})=>{const o=this.getDatasetMeta(s);if(!o)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:o.data[a],index:a}});!vo(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const i=this.options.hover,s=(l,u)=>l.filter(c=>!u.some(f=>c.datasetIndex===f.datasetIndex&&c.index===f.index)),a=s(n,e),o=r?e:s(e,n);a.length&&this.updateHoverStyle(a,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},i=a=>(a.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const s=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(s||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:i=[],options:s}=this,a=n,o=this._getActiveElements(e,i,r,a),l=A5(e),u=d4(e,this._lastEvent,r,l);r&&(this._lastEvent=null,Be(s.onHover,[e,o,this],this),l&&Be(s.onClick,[e,o,this],this));const c=!vo(o,i);return(c||n)&&(this._active=o,this._updateHoverStyles(o,i,n)),this._lastEvent=u,c}_getActiveElements(e,n,r,i){if(e.type==="mouseout")return[];if(!r)return n;const s=this.options.hover;return this.getElementsAtEventForMode(e,s.mode,s,i)}},de(lr,"defaults",Qe),de(lr,"instances",io),de(lr,"overrides",ii),de(lr,"registry",Sn),de(lr,"version",o4),de(lr,"getChart",Fh),lr);function zh(){return Re(Zo.instances,t=>t._plugins.invalidate())}function cg(t,e,n=e){t.lineCap=Se(n.borderCapStyle,e.borderCapStyle),t.setLineDash(Se(n.borderDash,e.borderDash)),t.lineDashOffset=Se(n.borderDashOffset,e.borderDashOffset),t.lineJoin=Se(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Se(n.borderWidth,e.borderWidth),t.strokeStyle=Se(n.borderColor,e.borderColor)}function f4(t,e,n){t.lineTo(n.x,n.y)}function h4(t){return t.stepped?J5:t.tension||t.cubicInterpolationMode==="monotone"?Z5:f4}function dg(t,e,n={}){const r=t.length,{start:i=0,end:s=r-1}=n,{start:a,end:o}=e,l=Math.max(i,a),u=Math.min(s,o),c=i<a&&s<a||i>o&&s>o;return{count:r,start:l,loop:e.loop,ilen:u<l&&!c?r+u-l:u-l}}function p4(t,e,n,r){const{points:i,options:s}=e,{count:a,start:o,loop:l,ilen:u}=dg(i,n,r),c=h4(s);let{move:f=!0,reverse:p}=r||{},h,y,m;for(h=0;h<=u;++h)y=i[(o+(p?u-h:h))%a],!y.skip&&(f?(t.moveTo(y.x,y.y),f=!1):c(t,m,y,p,s.stepped),m=y);return l&&(y=i[(o+(p?u:0))%a],c(t,m,y,p,s.stepped)),!!l}function y4(t,e,n,r){const i=e.points,{count:s,start:a,ilen:o}=dg(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,f=0,p,h,y,m,v,g;const A=C=>(a+(u?o-C:C))%s,E=()=>{m!==v&&(t.lineTo(c,v),t.lineTo(c,m),t.lineTo(c,g))};for(l&&(h=i[A(0)],t.moveTo(h.x,h.y)),p=0;p<=o;++p){if(h=i[A(p)],h.skip)continue;const C=h.x,S=h.y,b=C|0;b===y?(S<m?m=S:S>v&&(v=S),c=(f*c+C)/++f):(E(),t.lineTo(C,S),y=b,f=0,m=v=S),g=S}E()}function Uu(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?y4:p4}function m4(t){return t.stepped?M6:t.tension||t.cubicInterpolationMode==="monotone"?L6:_r}function g4(t,e,n,r){let i=e._path;i||(i=e._path=new Path2D,e.path(i,n,r)&&i.closePath()),cg(t,e.options),t.stroke(i)}function v4(t,e,n,r){const{segments:i,options:s}=e,a=Uu(e);for(const o of i)cg(t,s,o.style),t.beginPath(),a(t,e,o,{start:n,end:n+r-1})&&t.closePath(),t.stroke()}const b4=typeof Path2D=="function";function x4(t,e,n,r){b4&&!e.options.segment?g4(t,e,n,r):v4(t,e,n,r)}class wr extends tr{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;C6(this._points,r,e,i,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=F6(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,r=e.length;return r&&n[e[r-1].end]}interpolate(e,n){const r=this.options,i=e[n],s=this.points,a=J0(this,{property:n,start:i,end:i});if(!a.length)return;const o=[],l=m4(r);let u,c;for(u=0,c=a.length;u<c;++u){const{start:f,end:p}=a[u],h=s[f],y=s[p];if(h===y){o.push(h);continue}const m=Math.abs((i-h[n])/(y[n]-h[n])),v=l(h,y,m,r.stepped);v[n]=e[n],o.push(v)}return o.length===1?o[0]:o}pathSegment(e,n,r){return Uu(this)(e,this,n,r)}path(e,n,r){const i=this.segments,s=Uu(this);let a=this._loop;n=n||0,r=r||this.points.length-n;for(const o of i)a&=s(e,this,o,{start:n,end:n+r-1});return!!a}draw(e,n,r,i){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(e.save(),x4(e,this,r,i),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}de(wr,"id","line"),de(wr,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),de(wr,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),de(wr,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function Uh(t,e,n,r){const i=t.options,{[n]:s}=t.getProps([n],r);return Math.abs(e-s)<i.radius+i.hitRadius}class so extends tr{constructor(n){super();de(this,"parsed");de(this,"skip");de(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,i){const s=this.options,{x:a,y:o}=this.getProps(["x","y"],i);return Math.pow(n-a,2)+Math.pow(r-o,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(n,r){return Uh(this,n,"x",r)}inYRange(n,r){return Uh(this,n,"y",r)}getCenterPoint(n){const{x:r,y:i}=this.getProps(["x","y"],n);return{x:r,y:i}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const i=r&&n.borderWidth||0;return(r+i)*2}draw(n,r){const i=this.options;this.skip||i.radius<.1||!Jn(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,Bu(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}de(so,"id","point"),de(so,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),de(so,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function w4(t,e,n){const r=t.segments,i=t.points,s=e.points,a=[];for(const o of r){let{start:l,end:u}=o;u=$o(l,u,i);const c=Hu(n,i[l],i[u],o.loop);if(!e.segments){a.push({source:o,target:c,start:i[l],end:i[u]});continue}const f=J0(e,c);for(const p of f){const h=Hu(n,s[p.start],s[p.end],p.loop),y=X0(o,i,h);for(const m of y)a.push({source:m,target:p,start:{[n]:Hh(c,h,"start",Math.max)},end:{[n]:Hh(c,h,"end",Math.min)}})}}return a}function Hu(t,e,n,r){if(r)return;let i=e[t],s=n[t];return t==="angle"&&(i=Gt(i),s=Gt(s)),{property:t,start:i,end:s}}function A4(t,e){const{x:n=null,y:r=null}=t||{},i=e.points,s=[];return e.segments.forEach(({start:a,end:o})=>{o=$o(a,o,i);const l=i[a],u=i[o];r!==null?(s.push({x:l.x,y:r}),s.push({x:u.x,y:r})):n!==null&&(s.push({x:n,y:l.y}),s.push({x:n,y:u.y}))}),s}function $o(t,e,n){for(;e>t;e--){const r=n[e];if(!isNaN(r.x)&&!isNaN(r.y))break}return e}function Hh(t,e,n,r){return t&&e?r(t[n],e[n]):t?t[n]:e?e[n]:0}function fg(t,e){let n=[],r=!1;return We(t)?(r=!0,n=t):n=A4(t,e),n.length?new wr({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function qh(t){return t&&t.fill!==!1}function S4(t,e,n){let i=t[e].fill;const s=[e];let a;if(!n)return i;for(;i!==!1&&s.indexOf(i)===-1;){if(!rt(i))return i;if(a=t[i],!a)return!1;if(a.visible)return i;s.push(i),i=a.fill}return!1}function C4(t,e,n){const r=O4(t);if(Ee(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return rt(i)&&Math.floor(i)===i?k4(r[0],e,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function k4(t,e,n,r){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=r?!1:n}function j4(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:Ee(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function E4(t,e,n){let r;return t==="start"?r=n:t==="end"?r=e.options.reverse?e.min:e.max:Ee(t)?r=t.value:r=e.getBaseValue(),r}function O4(t){const e=t.options,n=e.fill;let r=Se(n&&n.target,n);return r===void 0&&(r=!!e.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function P4(t){const{scale:e,index:n,line:r}=t,i=[],s=r.segments,a=r.points,o=T4(e,n);o.push(fg({x:null,y:e.bottom},r));for(let l=0;l<s.length;l++){const u=s[l];for(let c=u.start;c<=u.end;c++)I4(i,a[c],o)}return new wr({points:i,options:{}})}function T4(t,e){const n=[],r=t.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const s=r[i];if(s.index===e)break;s.hidden||n.unshift(s.dataset)}return n}function I4(t,e,n){const r=[];for(let i=0;i<n.length;i++){const s=n[i],{first:a,last:o,point:l}=M4(s,e,"x");if(!(!l||a&&o)){if(a)r.unshift(l);else if(t.push(l),!o)break}}t.push(...r)}function M4(t,e,n){const r=t.interpolate(e,n);if(!r)return{};const i=r[n],s=t.segments,a=t.points;let o=!1,l=!1;for(let u=0;u<s.length;u++){const c=s[u],f=a[c.start][n],p=a[c.end][n];if(bi(i,f,p)){o=i===f,l=i===p;break}}return{first:o,last:l,point:r}}class hg{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,n,r){const{x:i,y:s,radius:a}=this;return n=n||{start:0,end:Vt},e.arc(i,s,a,n.end,n.start,!0),!r.bounds}interpolate(e){const{x:n,y:r,radius:i}=this,s=e.angle;return{x:n+Math.cos(s)*i,y:r+Math.sin(s)*i,angle:s}}}function L4(t){const{chart:e,fill:n,line:r}=t;if(rt(n))return N4(e,n);if(n==="stack")return P4(t);if(n==="shape")return!0;const i=R4(t);return i instanceof hg?i:fg(i,r)}function N4(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}function R4(t){return(t.scale||{}).getPointPositionForValue?D4(t):_4(t)}function _4(t){const{scale:e={},fill:n}=t,r=j4(n,e);if(rt(r)){const i=e.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function D4(t){const{scale:e,fill:n}=t,r=e.options,i=e.getLabels().length,s=r.reverse?e.max:e.min,a=E4(n,e,s),o=[];if(r.grid.circular){const l=e.getPointPositionForValue(0,s);return new hg({x:l.x,y:l.y,radius:e.getDistanceFromCenterForValue(a)})}for(let l=0;l<i;++l)o.push(e.getPointPositionForValue(l,a));return o}function Tl(t,e,n){const r=L4(e),{chart:i,index:s,line:a,scale:o,axis:l}=e,u=a.options,c=u.fill,f=u.backgroundColor,{above:p=f,below:h=f}=c||{},y=i.getDatasetMeta(s),m=Z0(i,y);r&&a.points.length&&(Vo(t,n),B4(t,{line:a,target:r,above:p,below:h,area:n,scale:o,axis:l,clip:m}),Ko(t))}function B4(t,e){const{line:n,target:r,above:i,below:s,area:a,scale:o,clip:l}=e,u=n._loop?"angle":e.axis;t.save();let c=s;s!==i&&(u==="x"?(Wh(t,r,a.top),Il(t,{line:n,target:r,color:i,scale:o,property:u,clip:l}),t.restore(),t.save(),Wh(t,r,a.bottom)):u==="y"&&(Gh(t,r,a.left),Il(t,{line:n,target:r,color:s,scale:o,property:u,clip:l}),t.restore(),t.save(),Gh(t,r,a.right),c=i)),Il(t,{line:n,target:r,color:c,scale:o,property:u,clip:l}),t.restore()}function Wh(t,e,n){const{segments:r,points:i}=e;let s=!0,a=!1;t.beginPath();for(const o of r){const{start:l,end:u}=o,c=i[l],f=i[$o(l,u,i)];s?(t.moveTo(c.x,c.y),s=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),a=!!e.pathSegment(t,o,{move:a}),a?t.closePath():t.lineTo(f.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function Gh(t,e,n){const{segments:r,points:i}=e;let s=!0,a=!1;t.beginPath();for(const o of r){const{start:l,end:u}=o,c=i[l],f=i[$o(l,u,i)];s?(t.moveTo(c.x,c.y),s=!1):(t.lineTo(n,c.y),t.lineTo(c.x,c.y)),a=!!e.pathSegment(t,o,{move:a}),a?t.closePath():t.lineTo(n,f.y)}t.lineTo(n,e.first().y),t.closePath(),t.clip()}function Il(t,e){const{line:n,target:r,property:i,color:s,scale:a,clip:o}=e,l=w4(n,r,i);for(const{source:u,target:c,start:f,end:p}of l){const{style:{backgroundColor:h=s}={}}=u,y=r!==!0;t.save(),t.fillStyle=h,F4(t,a,o,y&&Hu(i,f,p)),t.beginPath();const m=!!n.pathSegment(t,u);let v;if(y){m?t.closePath():Qh(t,r,p,i);const g=!!r.pathSegment(t,c,{move:m,reverse:!0});v=m&&g,v||Qh(t,r,f,i)}t.closePath(),t.fill(v?"evenodd":"nonzero"),t.restore()}}function F4(t,e,n,r){const i=e.chart.chartArea,{property:s,start:a,end:o}=r||{};if(s==="x"||s==="y"){let l,u,c,f;s==="x"?(l=a,u=i.top,c=o,f=i.bottom):(l=i.left,u=a,c=i.right,f=o),t.beginPath(),n&&(l=Math.max(l,n.left),c=Math.min(c,n.right),u=Math.max(u,n.top),f=Math.min(f,n.bottom)),t.rect(l,u,c-l,f-u),t.clip()}}function Qh(t,e,n,r){const i=e.interpolate(n,r);i&&t.lineTo(i.x,i.y)}var z4={id:"filler",afterDatasetsUpdate(t,e,n){const r=(t.data.datasets||[]).length,i=[];let s,a,o,l;for(a=0;a<r;++a)s=t.getDatasetMeta(a),o=s.dataset,l=null,o&&o.options&&o instanceof wr&&(l={visible:t.isDatasetVisible(a),index:a,fill:C4(o,a,r),chart:t,axis:s.controller.options.indexAxis,scale:s.vScale,line:o}),s.$filler=l,i.push(l);for(a=0;a<r;++a)l=i[a],!(!l||l.fill===!1)&&(l.fill=S4(i,a,n.propagate))},beforeDraw(t,e,n){const r=n.drawTime==="beforeDraw",i=t.getSortedVisibleDatasetMetas(),s=t.chartArea;for(let a=i.length-1;a>=0;--a){const o=i[a].$filler;o&&(o.line.updateControlPoints(s,o.axis),r&&o.fill&&Tl(t.ctx,o,s))}},beforeDatasetsDraw(t,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=t.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const s=r[i].$filler;qh(s)&&Tl(t.ctx,s,t.chartArea)}},beforeDatasetDraw(t,e,n){const r=e.meta.$filler;!qh(r)||n.drawTime!=="beforeDatasetDraw"||Tl(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Yh=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},U4=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Vh extends tr{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=Be(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,i)=>e.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,i=Ze(r.font),s=i.size,a=this._computeTitleHeight(),{boxWidth:o,itemHeight:l}=Yh(r,s);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(a,s,o,l)+10):(c=this.maxHeight,u=this._fitCols(a,i,o,l)+10),this.width=Math.min(u,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,i){const{ctx:s,maxWidth:a,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+o;let f=e;s.textAlign="left",s.textBaseline="middle";let p=-1,h=-c;return this.legendItems.forEach((y,m)=>{const v=r+n/2+s.measureText(y.text).width;(m===0||u[u.length-1]+v+2*o>a)&&(f+=c,u[u.length-(m>0?0:1)]=0,h+=c,p++),l[m]={left:0,top:h,row:p,width:v,height:i},u[u.length-1]+=v+o}),f}_fitCols(e,n,r,i){const{ctx:s,maxHeight:a,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=a-e;let f=o,p=0,h=0,y=0,m=0;return this.legendItems.forEach((v,g)=>{const{itemWidth:A,itemHeight:E}=H4(r,n,s,v,i);g>0&&h+E+2*o>c&&(f+=p+o,u.push({width:p,height:h}),y+=p+o,m++,p=h=0),l[g]={left:y,top:h,col:m,width:A,height:E},p=Math.max(p,A),h+=E+o}),f+=p,u.push({width:p,height:h}),f}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:s}}=this,a=Si(s,this.left,this.width);if(this.isHorizontal()){let o=0,l=ut(r,this.left+i,this.right-this.lineWidths[o]);for(const u of n)o!==u.row&&(o=u.row,l=ut(r,this.left+i,this.right-this.lineWidths[o])),u.top+=this.top+e+i,u.left=a.leftForLtr(a.x(l),u.width),l+=u.width+i}else{let o=0,l=ut(r,this.top+e+i,this.bottom-this.columnSizes[o].height);for(const u of n)u.col!==o&&(o=u.col,l=ut(r,this.top+e+i,this.bottom-this.columnSizes[o].height)),u.top=l,u.left+=this.left+i,u.left=a.leftForLtr(a.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Vo(e,this),this._draw(),Ko(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:i}=this,{align:s,labels:a}=e,o=Qe.color,l=Si(e.rtl,this.left,this.width),u=Ze(a.font),{padding:c}=a,f=u.size,p=f/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:y,boxHeight:m,itemHeight:v}=Yh(a,f),g=function(b,w,x){if(isNaN(y)||y<=0||isNaN(m)||m<0)return;i.save();const N=Se(x.lineWidth,1);if(i.fillStyle=Se(x.fillStyle,o),i.lineCap=Se(x.lineCap,"butt"),i.lineDashOffset=Se(x.lineDashOffset,0),i.lineJoin=Se(x.lineJoin,"miter"),i.lineWidth=N,i.strokeStyle=Se(x.strokeStyle,o),i.setLineDash(Se(x.lineDash,[])),a.usePointStyle){const D={radius:m*Math.SQRT2/2,pointStyle:x.pointStyle,rotation:x.rotation,borderWidth:N},M=l.xPlus(b,y/2),T=w+p;z0(i,D,M,T,a.pointStyleWidth&&y)}else{const D=w+Math.max((f-m)/2,0),M=l.leftForLtr(b,y),T=Ai(x.borderRadius);i.beginPath(),Object.values(T).some(z=>z!==0)?So(i,{x:M,y:D,w:y,h:m,radius:T}):i.rect(M,D,y,m),i.fill(),N!==0&&i.stroke()}i.restore()},A=function(b,w,x){si(i,x.text,b,w+v/2,u,{strikethrough:x.hidden,textAlign:l.textAlign(x.textAlign)})},E=this.isHorizontal(),C=this._computeTitleHeight();E?h={x:ut(s,this.left+c,this.right-r[0]),y:this.top+c+C,line:0}:h={x:this.left+c,y:ut(s,this.top+C+c,this.bottom-n[0].height),line:0},Y0(this.ctx,e.textDirection);const S=v+c;this.legendItems.forEach((b,w)=>{i.strokeStyle=b.fontColor,i.fillStyle=b.fontColor;const x=i.measureText(b.text).width,N=l.textAlign(b.textAlign||(b.textAlign=a.textAlign)),D=y+p+x;let M=h.x,T=h.y;l.setWidth(this.width),E?w>0&&M+D+c>this.right&&(T=h.y+=S,h.line++,M=h.x=ut(s,this.left+c,this.right-r[h.line])):w>0&&T+S>this.bottom&&(M=h.x=M+n[h.line].width+c,h.line++,T=h.y=ut(s,this.top+C+c,this.bottom-n[h.line].height));const z=l.x(M);if(g(z,T,b),M=D5(N,M+y+p,E?M+D:this.right,e.rtl),A(l.x(M),T,b),E)h.x+=D+c;else if(typeof b.text!="string"){const I=u.lineHeight;h.y+=pg(b,I)+c}else h.y+=S}),V0(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=Ze(n.font),i=dt(n.padding);if(!n.display)return;const s=Si(e.rtl,this.left,this.width),a=this.ctx,o=n.position,l=r.size/2,u=i.top+l;let c,f=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),c=this.top+u,f=ut(e.align,f,this.right-p);else{const y=this.columnSizes.reduce((m,v)=>Math.max(m,v.height),0);c=u+ut(e.align,this.top,this.bottom-y-e.labels.padding-this._computeTitleHeight())}const h=ut(o,f,f+p);a.textAlign=s.textAlign(Uc(o)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,si(a,n.text,h,c,r)}_computeTitleHeight(){const e=this.options.title,n=Ze(e.font),r=dt(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,i,s;if(bi(e,this.left,this.right)&&bi(n,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;r<s.length;++r)if(i=s[r],bi(e,i.left,i.left+i.width)&&bi(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!G4(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const i=this._hoveredItem,s=U4(i,r);i&&!s&&Be(n.onLeave,[e,i,this],this),this._hoveredItem=r,r&&!s&&Be(n.onHover,[e,r,this],this)}else r&&Be(n.onClick,[e,r,this],this)}}function H4(t,e,n,r,i){const s=q4(r,t,e,n),a=W4(i,r,e.lineHeight);return{itemWidth:s,itemHeight:a}}function q4(t,e,n,r){let i=t.text;return i&&typeof i!="string"&&(i=i.reduce((s,a)=>s.length>a.length?s:a)),e+n.size/2+r.measureText(i).width}function W4(t,e,n){let r=t;return typeof e.text!="string"&&(r=pg(e,n)),r}function pg(t,e){const n=t.text?t.text.length:0;return e*n}function G4(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var Q4={id:"legend",_element:Vh,start(t,e,n){const r=t.legend=new Vh({ctx:t.ctx,options:n,chart:t});rn.configure(t,r,n),rn.addBox(t,r)},stop(t){rn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;rn.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),e.hidden=!0):(i.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:s,useBorderRadius:a,borderRadius:o}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=dt(u.borderWidth);return{text:e[l.index].label,fillStyle:u.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:a&&(o||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class yg extends tr{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const i=We(r.text)?r.text.length:1;this._padding=dt(r.padding);const s=i*Ze(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:r,bottom:i,right:s,options:a}=this,o=a.align;let l=0,u,c,f;return this.isHorizontal()?(c=ut(o,r,s),f=n+e,u=s-r):(a.position==="left"?(c=r+e,f=ut(o,i,n),l=Ke*-.5):(c=s-e,f=ut(o,n,i),l=Ke*.5),u=i-n),{titleX:c,titleY:f,maxWidth:u,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const r=Ze(n.font),s=r.lineHeight/2+this._padding.top,{titleX:a,titleY:o,maxWidth:l,rotation:u}=this._drawArgs(s);si(e,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:Uc(n.align),textBaseline:"middle",translation:[a,o]})}}function Y4(t,e){const n=new yg({ctx:t.ctx,options:e,chart:t});rn.configure(t,n,e),rn.addBox(t,n),t.titleBlock=n}var V4={id:"title",_element:yg,start(t,e,n){Y4(t,n)},stop(t){const e=t.titleBlock;rn.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;rn.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Cs={average(t){if(!t.length)return!1;let e,n,r=new Set,i=0,s=0;for(e=0,n=t.length;e<n;++e){const o=t[e].element;if(o&&o.hasValue()){const l=o.tooltipPosition();r.add(l.x),i+=l.y,++s}}return s===0||r.size===0?!1:{x:[...r].reduce((o,l)=>o+l)/r.size,y:i/s}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,i=Number.POSITIVE_INFINITY,s,a,o;for(s=0,a=t.length;s<a;++s){const l=t[s].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=_u(e,u);c<i&&(i=c,o=l)}}if(o){const l=o.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function wn(t,e){return e&&(We(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function qn(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
51
51
  `)>-1?t.split(`
52
- `):t}function mk(t,e){const{element:n,datasetIndex:r,index:i}=e,s=t.getDatasetMeta(r).controller,{label:a,value:o}=s.getLabelAndValue(i);return{chart:t,label:a,parsed:s.getParsed(i),raw:t.data.datasets[r].data[i],formattedValue:o,dataset:s.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function _h(t,e){const n=t.chart.ctx,{body:r,footer:i,title:s}=t,{boxWidth:a,boxHeight:o}=e,l=Ze(e.bodyFont),u=Ze(e.titleFont),c=Ze(e.footerFont),f=s.length,p=i.length,h=r.length,y=ft(e.padding);let m=y.height,v=0,g=r.reduce((j,S)=>j+S.before.length+S.lines.length+S.after.length,0);if(g+=t.beforeBody.length+t.afterBody.length,f&&(m+=f*u.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),g){const j=e.displayColors?Math.max(o,l.lineHeight):l.lineHeight;m+=h*j+(g-h)*l.lineHeight+(g-1)*e.bodySpacing}p&&(m+=e.footerMarginTop+p*c.lineHeight+(p-1)*e.footerSpacing);let A=0;const E=function(j){v=Math.max(v,n.measureText(j).width+A)};return n.save(),n.font=u.string,Re(t.title,E),n.font=l.string,Re(t.beforeBody.concat(t.afterBody),E),A=e.displayColors?a+2+e.boxPadding:0,Re(r,j=>{Re(j.before,E),Re(j.lines,E),Re(j.after,E)}),A=0,n.font=c.string,Re(t.footer,E),n.restore(),v+=y.width,{width:v,height:m}}function gk(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function vk(t,e,n,r){const{x:i,width:s}=r,a=n.caretSize+n.caretPadding;if(t==="left"&&i+s+a>e.width||t==="right"&&i-s-a<0)return!0}function bk(t,e,n,r){const{x:i,width:s}=n,{width:a,chartArea:{left:o,right:l}}=t;let u="center";return r==="center"?u=i<=(o+l)/2?"left":"right":i<=s/2?u="left":i>=a-s/2&&(u="right"),vk(u,t,e,n)&&(u="center"),u}function Dh(t,e,n){const r=n.yAlign||e.yAlign||gk(t,n);return{xAlign:n.xAlign||e.xAlign||bk(t,e,n,r),yAlign:r}}function xk(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function wk(t,e,n){let{y:r,height:i}=t;return e==="top"?r+=n:e==="bottom"?r-=i+n:r-=i/2,r}function Bh(t,e,n,r){const{caretSize:i,caretPadding:s,cornerRadius:a}=t,{xAlign:o,yAlign:l}=n,u=i+s,{topLeft:c,topRight:f,bottomLeft:p,bottomRight:h}=vi(a);let y=xk(e,o);const m=wk(e,l,u);return l==="center"?o==="left"?y+=u:o==="right"&&(y-=u):o==="left"?y-=Math.max(c,p)+i:o==="right"&&(y+=Math.max(f,h)+i),{x:nn(y,0,r.width-e.width),y:nn(m,0,r.height-e.height)}}function Ba(t,e,n){const r=ft(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function Fh(t){return bn([],Fn(t))}function Ak(t,e,n){return kr(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function zh(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const J0={beforeTitle:Nn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:Nn,beforeBody:Nn,beforeLabel:Nn,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return _e(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Nn,afterBody:Nn,beforeFooter:Nn,footer:Nn,afterFooter:Nn};function St(t,e,n,r){const i=t[e].call(n,r);return typeof i=="undefined"?J0[e].call(n,r):i}class Bu extends Jn{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,s=new N0(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=Ak(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,i=St(r,"beforeTitle",this,e),s=St(r,"title",this,e),a=St(r,"afterTitle",this,e);let o=[];return o=bn(o,Fn(i)),o=bn(o,Fn(s)),o=bn(o,Fn(a)),o}getBeforeBody(e,n){return Fh(St(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,i=[];return Re(e,s=>{const a={before:[],lines:[],after:[]},o=zh(r,s);bn(a.before,Fn(St(o,"beforeLabel",this,s))),bn(a.lines,St(o,"label",this,s)),bn(a.after,Fn(St(o,"afterLabel",this,s))),i.push(a)}),i}getAfterBody(e,n){return Fh(St(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,i=St(r,"beforeFooter",this,e),s=St(r,"footer",this,e),a=St(r,"afterFooter",this,e);let o=[];return o=bn(o,Fn(i)),o=bn(o,Fn(s)),o=bn(o,Fn(a)),o}_createItems(e){const n=this._active,r=this.chart.data,i=[],s=[],a=[];let o=[],l,u;for(l=0,u=n.length;l<u;++l)o.push(mk(this.chart,n[l]));return e.filter&&(o=o.filter((c,f,p)=>e.filter(c,f,p,r))),e.itemSort&&(o=o.sort((c,f)=>e.itemSort(c,f,r))),Re(o,c=>{const f=zh(e.callbacks,c);i.push(St(f,"labelColor",this,c)),s.push(St(f,"labelPointStyle",this,c)),a.push(St(f,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=s,this.labelTextColors=a,this.dataPoints=o,o}update(e,n){const r=this.options.setContext(this.getContext()),i=this._active;let s,a=[];if(!i.length)this.opacity!==0&&(s={opacity:0});else{const o=As[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=_h(this,r),u=Object.assign({},o,l),c=Dh(this.chart,r,u),f=Bh(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,s={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:o.x,caretY:o.y}}this._tooltipItems=a,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,i){const s=this.getCaretPosition(e,r,i);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(e,n,r){const{xAlign:i,yAlign:s}=this,{caretSize:a,cornerRadius:o}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:f}=vi(o),{x:p,y:h}=e,{width:y,height:m}=n;let v,g,A,E,j,S;return s==="center"?(j=h+m/2,i==="left"?(v=p,g=v-a,E=j+a,S=j-a):(v=p+y,g=v+a,E=j-a,S=j+a),A=v):(i==="left"?g=p+Math.max(l,c)+a:i==="right"?g=p+y-Math.max(u,f)-a:g=this.caretX,s==="top"?(E=h,j=E-a,v=g-a,A=g+a):(E=h+m,j=E+a,v=g+a,A=g-a),S=E),{x1:v,x2:g,x3:A,y1:E,y2:j,y3:S}}drawTitle(e,n,r){const i=this.title,s=i.length;let a,o,l;if(s){const u=bi(r.rtl,this.x,this.width);for(e.x=Ba(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",a=Ze(r.titleFont),o=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;l<s;++l)n.fillText(i[l],u.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+o,l+1===s&&(e.y+=r.titleMarginBottom-o)}}_drawColorBox(e,n,r,i,s){const a=this.labelColors[r],o=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=s,c=Ze(s.bodyFont),f=Ba(this,"left",s),p=i.x(f),h=l<c.lineHeight?(c.lineHeight-l)/2:0,y=n.y+h;if(s.usePointStyle){const m={radius:Math.min(u,l)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},v=i.leftForLtr(p,u)+u/2,g=y+l/2;e.strokeStyle=s.multiKeyBackground,e.fillStyle=s.multiKeyBackground,Lu(e,m,v,g),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,Lu(e,m,v,g)}else{e.lineWidth=ke(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;const m=i.leftForLtr(p,u),v=i.leftForLtr(i.xPlus(p,1),u-2),g=vi(a.borderRadius);Object.values(g).some(A=>A!==0)?(e.beginPath(),e.fillStyle=s.multiKeyBackground,wo(e,{x:m,y,w:u,h:l,radius:g}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),wo(e,{x:v,y:y+1,w:u-2,h:l-2,radius:g}),e.fill()):(e.fillStyle=s.multiKeyBackground,e.fillRect(m,y,u,l),e.strokeRect(m,y,u,l),e.fillStyle=a.backgroundColor,e.fillRect(v,y+1,u-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:i}=this,{bodySpacing:s,bodyAlign:a,displayColors:o,boxHeight:l,boxWidth:u,boxPadding:c}=r,f=Ze(r.bodyFont);let p=f.lineHeight,h=0;const y=bi(r.rtl,this.x,this.width),m=function(x){n.fillText(x,y.x(e.x+h),e.y+p/2),e.y+=p+s},v=y.textAlign(a);let g,A,E,j,S,b,w;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,e.x=Ba(this,v,r),n.fillStyle=r.bodyColor,Re(this.beforeBody,m),h=o&&v!=="right"?a==="center"?u/2+c:u+2+c:0,j=0,b=i.length;j<b;++j){for(g=i[j],A=this.labelTextColors[j],n.fillStyle=A,Re(g.before,m),E=g.lines,o&&E.length&&(this._drawColorBox(n,e,j,y,r),p=Math.max(f.lineHeight,l)),S=0,w=E.length;S<w;++S)m(E[S]),p=f.lineHeight;Re(g.after,m)}h=0,p=f.lineHeight,Re(this.afterBody,m),e.y-=s}drawFooter(e,n,r){const i=this.footer,s=i.length;let a,o;if(s){const l=bi(r.rtl,this.x,this.width);for(e.x=Ba(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",a=Ze(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,o=0;o<s;++o)n.fillText(i[o],l.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+r.footerSpacing}}drawBackground(e,n,r,i){const{xAlign:s,yAlign:a}=this,{x:o,y:l}=e,{width:u,height:c}=r,{topLeft:f,topRight:p,bottomLeft:h,bottomRight:y}=vi(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(o+f,l),a==="top"&&this.drawCaret(e,n,r,i),n.lineTo(o+u-p,l),n.quadraticCurveTo(o+u,l,o+u,l+p),a==="center"&&s==="right"&&this.drawCaret(e,n,r,i),n.lineTo(o+u,l+c-y),n.quadraticCurveTo(o+u,l+c,o+u-y,l+c),a==="bottom"&&this.drawCaret(e,n,r,i),n.lineTo(o+h,l+c),n.quadraticCurveTo(o,l+c,o,l+c-h),a==="center"&&s==="left"&&this.drawCaret(e,n,r,i),n.lineTo(o,l+f),n.quadraticCurveTo(o,l,o+f,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,i=r&&r.x,s=r&&r.y;if(i||s){const a=As[e.position].call(this,this._active,this._eventPosition);if(!a)return;const o=this._size=_h(this,e),l=Object.assign({},a,this._size),u=Dh(n,e,l),c=Bh(e,l,u,n);(i._to!==c.x||s._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=o.width,this.height=o.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=ft(n.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&o&&(e.save(),e.globalAlpha=r,this.drawBackground(s,e,i,n),O0(e,n.textDirection),s.y+=a.top,this.drawTitle(s,e,n),this.drawBody(s,e,n),this.drawFooter(s,e,n),P0(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,i=e.map(({datasetIndex:o,index:l})=>{const u=this.chart.getDatasetMeta(o);if(!u)throw new Error("Cannot find a dataset at index "+o);return{datasetIndex:o,element:u.data[l],index:l}}),s=!mo(r,i),a=this._positionChanged(i,n);(s||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,s=this._active||[],a=this._getActiveElements(e,s,n,r),o=this._positionChanged(a,e),l=n||!mo(a,s)||o;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,i){const s=this.options;if(e.type==="mouseout")return[];if(!i)return n.filter(o=>this.chart.data.datasets[o.datasetIndex]&&this.chart.getDatasetMeta(o.datasetIndex).controller.getParsed(o.index)!==void 0);const a=this.chart.getElementsAtEventForMode(e,s.mode,s,r);return s.reverse&&a.reverse(),a}_positionChanged(e,n){const{caretX:r,caretY:i,options:s}=this,a=As[s.position].call(this,e,n);return a!==!1&&(r!==a.x||i!==a.y)}}ce(Bu,"positioners",As);var Sk={id:"tooltip",_element:Bu,positioners:As,afterInit(t,e,n){n&&(t.tooltip=new Bu({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:J0},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Ck=(t,e,n,r)=>(typeof e=="string"?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function kk(t,e,n,r){const i=t.indexOf(e);if(i===-1)return Ck(t,e,n,r);const s=t.lastIndexOf(e);return i!==s?n:i}const jk=(t,e)=>t===null?null:nn(Math.round(t),0,e);function Uh(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Fu extends Vi{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:s}of n)r[i]===s&&r.splice(i,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(_e(e))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===e?n:kk(r,e,Se(n,e),this._addedLabels),jk(n,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const e=this.min,n=this.max,r=this.options.offset,i=[];let s=this.getLabels();s=e===0&&n===s.length-1?s:s.slice(e,n+1),this._valueRange=Math.max(s.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=e;a<=n;a++)i.push({value:a});return i}getLabelForValue(e){return Uh.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}ce(Fu,"id","category"),ce(Fu,"defaults",{ticks:{callback:Uh}});function Ek(t,e){const n=[],{bounds:i,step:s,min:a,max:o,precision:l,count:u,maxTicks:c,maxDigits:f,includeBounds:p}=t,h=s||1,y=c-1,{min:m,max:v}=e,g=!_e(a),A=!_e(o),E=!_e(u),j=(v-m)/(f+1);let S=Hf((v-m)/y/h)*h,b,w,x,N;if(S<1e-14&&!g&&!A)return[{value:m},{value:v}];N=Math.ceil(v/S)-Math.floor(m/S),N>y&&(S=Hf(N*S/y/h)*h),_e(l)||(b=Math.pow(10,l),S=Math.ceil(S*b)/b),i==="ticks"?(w=Math.floor(m/S)*S,x=Math.ceil(v/S)*S):(w=m,x=v),g&&A&&s&&VC((o-a)/s,S/1e3)?(N=Math.round(Math.min((o-a)/S,c)),S=(o-a)/N,w=a,x=o):E?(w=g?a:w,x=A?o:x,N=u-1,S=(x-w)/N):(N=(x-w)/S,Os(N,Math.round(N),S/1e3)?N=Math.round(N):N=Math.ceil(N));const _=Math.max(qf(S),qf(w));b=Math.pow(10,_e(l)?_:l),w=Math.round(w*b)/b,x=Math.round(x*b)/b;let I=0;for(g&&(p&&w!==a?(n.push({value:a}),w<a&&I++,Os(Math.round((w+I*S)*b)/b,a,Hh(a,j,t))&&I++):w<a&&I++);I<N;++I){const T=Math.round((w+I*S)*b)/b;if(A&&T>o)break;n.push({value:T})}return A&&p&&x!==o?n.length&&Os(n[n.length-1].value,o,Hh(o,j,t))?n[n.length-1].value=o:n.push({value:o}):(!A||x===o)&&n.push({value:x}),n}function Hh(t,e,{horizontal:n,minRotation:r}){const i=gr(r),s=(n?Math.sin(i):Math.cos(i))||.001,a=.75*e*(""+t).length;return Math.min(e/s,a)}class zu extends Vi{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return _e(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:s}=this;const a=l=>i=n?i:l,o=l=>s=r?s:l;if(e){const l=Di(i),u=Di(s);l<0&&u<0?o(0):l>0&&u>0&&a(0)}if(i===s){let l=s===0?1:Math.abs(s*.05);o(s+l),e||a(i-l)}this.min=i,this.max=s}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=e,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,a=Ek(i,s);return e.bounds==="ticks"&&KC(a,this,"value"),e.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const e=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const i=(r-n)/Math.max(e.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(e){return x0(e,this.chart.options.locale,this.options.ticks.format)}}class Uu extends zu{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=et(e)?e:0,this.max=et(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,r=gr(this.options.ticks.minRotation),i=(e?Math.sin(r):Math.cos(r))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/i))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}ce(Uu,"id","linear"),ce(Uu,"defaults",{ticks:{callback:Dc.formatters.numeric}});function Hu(t){const e=t.ticks;if(e.display&&t.display){const n=ft(e.backdropPadding);return Se(e.font&&e.font.size,Ge.font.size)+n.height}return 0}function Ok(t,e,n){return n=We(n)?n:[n],{w:g5(t,e.string,n),h:n.length*e.lineHeight}}function qh(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:t<r||t>i?{start:e-n,end:e}:{start:e,end:e+n}}function Pk(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),r=[],i=[],s=t._pointLabels.length,a=t.options.pointLabels,o=a.centerPointLabels?Ke/s:0;for(let l=0;l<s;l++){const u=a.setContext(t.getPointLabelContext(l));i[l]=u.padding;const c=t.getPointPosition(l,t.drawingArea+i[l],o),f=Ze(u.font),p=Ok(t.ctx,f,t._pointLabels[l]);r[l]=p;const h=Gt(t.getIndexAngle(l)+o),y=Math.round(Lc(h)),m=qh(y,c.x,p.w,0,180),v=qh(y,c.y,p.h,90,270);Tk(n,e,h,m,v)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=Lk(t,r,i)}function Tk(t,e,n,r,i){const s=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let o=0,l=0;r.start<e.l?(o=(e.l-r.start)/s,t.l=Math.min(t.l,e.l-o)):r.end>e.r&&(o=(r.end-e.r)/s,t.r=Math.max(t.r,e.r+o)),i.start<e.t?(l=(e.t-i.start)/a,t.t=Math.min(t.t,e.t-l)):i.end>e.b&&(l=(i.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function Ik(t,e,n){const r=t.drawingArea,{extra:i,additionalAngle:s,padding:a,size:o}=n,l=t.getPointPosition(e,r+i+a,s),u=Math.round(Lc(Gt(l.angle+Yt))),c=_k(l.y,o.h,u),f=Nk(u),p=Rk(l.x,o.w,f);return{visible:!0,x:l.x,y:c,textAlign:f,left:p,top:c,right:p+o.w,bottom:c+o.h}}function Mk(t,e){if(!e)return!0;const{left:n,top:r,right:i,bottom:s}=t;return!(Yn({x:n,y:r},e)||Yn({x:n,y:s},e)||Yn({x:i,y:r},e)||Yn({x:i,y:s},e))}function Lk(t,e,n){const r=[],i=t._pointLabels.length,s=t.options,{centerPointLabels:a,display:o}=s.pointLabels,l={extra:Hu(s)/2,additionalAngle:a?Ke/i:0};let u;for(let c=0;c<i;c++){l.padding=n[c],l.size=e[c];const f=Ik(t,c,l);r.push(f),o==="auto"&&(f.visible=Mk(f,u),f.visible&&(u=f))}return r}function Nk(t){return t===0||t===180?"center":t<180?"left":"right"}function Rk(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function _k(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function Dk(t,e,n){const{left:r,top:i,right:s,bottom:a}=n,{backdropColor:o}=e;if(!_e(o)){const l=vi(e.borderRadius),u=ft(e.backdropPadding);t.fillStyle=o;const c=r-u.left,f=i-u.top,p=s-r+u.width,h=a-i+u.height;Object.values(l).some(y=>y!==0)?(t.beginPath(),wo(t,{x:c,y:f,w:p,h,radius:l}),t.fill()):t.fillRect(c,f,p,h)}}function Bk(t,e){const{ctx:n,options:{pointLabels:r}}=t;for(let i=e-1;i>=0;i--){const s=t._pointLabelItems[i];if(!s.visible)continue;const a=r.setContext(t.getPointLabelContext(i));Dk(n,a,s);const o=Ze(a.font),{x:l,y:u,textAlign:c}=s;ii(n,t._pointLabels[i],l,u+o.lineHeight/2,o,{color:a.color,textAlign:c,textBaseline:"middle"})}}function Z0(t,e,n,r){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,Kt);else{let s=t.getPointPosition(0,e);i.moveTo(s.x,s.y);for(let a=1;a<r;a++)s=t.getPointPosition(a,e),i.lineTo(s.x,s.y)}}function Fk(t,e,n,r,i){const s=t.ctx,a=e.circular,{color:o,lineWidth:l}=e;!a&&!r||!o||!l||n<0||(s.save(),s.strokeStyle=o,s.lineWidth=l,s.setLineDash(i.dash||[]),s.lineDashOffset=i.dashOffset,s.beginPath(),Z0(t,n,a,r),s.closePath(),s.stroke(),s.restore())}function zk(t,e,n){return kr(t,{label:n,index:e,type:"pointLabel"})}class Ss extends zu{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=ft(Hu(this.options)/2),n=this.width=this.maxWidth-e.width,r=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+r/2+e.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=et(e)&&!isNaN(e)?e:0,this.max=et(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Hu(this.options))}generateTickLabels(e){zu.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,r)=>{const i=Fe(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?Pk(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,r,i){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,r,i))}getIndexAngle(e){const n=Kt/(this._pointLabels.length||1),r=this.options.startAngle||0;return Gt(e*n+gr(r))}getDistanceFromCenterForValue(e){if(_e(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(_e(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e<n.length){const r=n[e];return zk(this.getContext(),e,r)}}getPointPosition(e,n,r=0){const i=this.getIndexAngle(e)-Yt+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:r,right:i,bottom:s}=this._pointLabelItems[e];return{left:n,top:r,right:i,bottom:s}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const r=this.ctx;r.save(),r.beginPath(),Z0(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:r,grid:i,border:s}=n,a=this._pointLabels.length;let o,l,u;if(n.pointLabels.display&&Bk(this,a),i.display&&this.ticks.forEach((c,f)=>{if(f!==0||f===0&&this.min<0){l=this.getDistanceFromCenterForValue(c.value);const p=this.getContext(f),h=i.setContext(p),y=s.setContext(p);Fk(this,h,l,a,y)}}),r.display){for(e.save(),o=a-1;o>=0;o--){const c=r.setContext(this.getPointLabelContext(o)),{color:f,lineWidth:p}=c;!p||!f||(e.lineWidth=p,e.strokeStyle=f,e.setLineDash(c.borderDash),e.lineDashOffset=c.borderDashOffset,l=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),u=this.getPointPosition(o,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(u.x,u.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let s,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((o,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const u=r.setContext(this.getContext(l)),c=Ze(u.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),u.showLabelBackdrop){e.font=c.string,a=e.measureText(o.label).width,e.fillStyle=u.backdropColor;const f=ft(u.backdropPadding);e.fillRect(-a/2-f.left,-s-c.size/2-f.top,a+f.width,c.size+f.height)}ii(e,o.label,0,-s,c,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),e.restore()}drawTitle(){}}ce(Ss,"id","radialLinear"),ce(Ss,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Dc.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),ce(Ss,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ce(Ss,"descriptors",{angleLines:{_fallback:"grid"}});const Jo={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Et=Object.keys(Jo);function Wh(t,e){return t-e}function Qh(t,e){if(_e(e))return null;const n=t._adapter,{parser:r,round:i,isoWeekday:s}=t._parseOpts;let a=e;return typeof r=="function"&&(a=r(a)),et(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(Xs(s)||s===!0)?n.startOf(a,"isoWeek",s):n.startOf(a,i)),+a)}function Gh(t,e,n,r){const i=Et.length;for(let s=Et.indexOf(t);s<i-1;++s){const a=Jo[Et[s]],o=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-e)/(o*a.size))<=r)return Et[s]}return Et[i-1]}function Uk(t,e,n,r,i){for(let s=Et.length-1;s>=Et.indexOf(n);s--){const a=Et[s];if(Jo[a].common&&t._adapter.diff(i,r,a)>=e-1)return a}return Et[n?Et.indexOf(n):0]}function Hk(t){for(let e=Et.indexOf(t)+1,n=Et.length;e<n;++e)if(Jo[Et[e]].common)return Et[e]}function Yh(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:i}=Nc(n,e),s=n[r]>=e?n[r]:n[i];t[s]=!0}}function qk(t,e,n,r){const i=t._adapter,s=+i.startOf(e[0].value,r),a=e[e.length-1].value;let o,l;for(o=s;o<=a;o=+i.add(o,1,r))l=n[o],l>=0&&(e[l].major=!0);return e}function Vh(t,e,n){const r=[],i={},s=e.length;let a,o;for(a=0;a<s;++a)o=e[a],i[o]=a,r.push({value:o,major:!1});return s===0||!n?r:qk(t,r,i,n)}class Co extends Vi{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const r=e.time||(e.time={}),i=this._adapter=new C6._date(e.adapters.date);i.init(n),Es(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:Qh(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:i,max:s,minDefined:a,maxDefined:o}=this.getUserBounds();function l(u){!a&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!o&&!isNaN(u.max)&&(s=Math.max(s,u.max))}(!a||!o)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=et(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),s=et(s)&&!isNaN(s)?s:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,s-1),this.max=Math.max(i+1,s)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const s=this.min,a=this.max,o=e5(i,s,a);return this._unit=n.unit||(r.autoSkip?Gh(n.minUnit,this.min,this.max,this._getLabelCapacity(s)):Uk(this,o.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Hk(this._unit),this.initOffsets(i),e.reverse&&o.reverse(),Vh(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,i,s;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),e.length===1?n=1-i:n=(this.getDecimalForValue(e[1])-i)/2,s=this.getDecimalForValue(e[e.length-1]),e.length===1?r=s:r=(s-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;n=nn(n,0,a),r=nn(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,i=this.options,s=i.time,a=s.unit||Gh(s.minUnit,n,r,this._getLabelCapacity(n)),o=Se(i.ticks.stepSize,1),l=a==="week"?s.isoWeekday:!1,u=Xs(l)||l===!0,c={};let f=n,p,h;if(u&&(f=+e.startOf(f,"isoWeek",l)),f=+e.startOf(f,u?"day":a),e.diff(r,n,a)>1e5*o)throw new Error(n+" and "+r+" are too far apart with stepSize of "+o+" "+a);const y=i.ticks.source==="data"&&this.getDataTimestamps();for(p=f,h=0;p<r;p=+e.add(p,o,a),h++)Yh(c,p,y);return(p===r||i.bounds==="ticks"||h===1)&&Yh(c,p,y),Object.keys(c).sort(Wh).map(m=>+m)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const i=this.options.time.displayFormats,s=this._unit,a=n||i[s];return this._adapter.format(e,a)}_tickFormatFunction(e,n,r,i){const s=this.options,a=s.ticks.callback;if(a)return Fe(a,[e,n,r],this);const o=s.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&o[l],f=u&&o[u],p=r[n],h=u&&f&&p&&p.major;return this._adapter.format(e,i||(h?f:c))}generateTickLabels(e){let n,r,i;for(n=0,r=e.length;n<r;++n)i=e[n],i.label=this._tickFormatFunction(i.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,i=gr(this.isHorizontal()?n.maxRotation:n.minRotation),s=Math.cos(i),a=Math.sin(i),o=this._resolveTickFontOptions(0).size;return{w:r*s+o*a,h:r*a+o*s}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,s=this._tickFormatFunction(e,0,Vh(this,[e],this._majorUnit),i),a=this._getLabelSize(s),o=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return o>0?o:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)e=e.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)e.push(Qh(this,i[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return n5(e.sort(Wh))}}ce(Co,"id","time"),ce(Co,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Fa(t,e,n){let r=0,i=t.length-1,s,a,o,l;n?(e>=t[r].pos&&e<=t[i].pos&&({lo:r,hi:i}=Fr(t,"pos",e)),{pos:s,time:o}=t[r],{pos:a,time:l}=t[i]):(e>=t[r].time&&e<=t[i].time&&({lo:r,hi:i}=Fr(t,"time",e)),{time:s,pos:o}=t[r],{time:a,pos:l}=t[i]);const u=a-s;return u?o+(l-o)*(e-s)/u:o}class Kh extends Co{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Fa(n,this.min),this._tableRange=Fa(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,i=[],s=[];let a,o,l,u,c;for(a=0,o=e.length;a<o;++a)u=e[a],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,o=i.length;a<o;++a)c=i[a+1],l=i[a-1],u=i[a],Math.round((c+l)/2)!==u&&s.push({time:u,pos:a/(o-1)});return s}_generate(){const e=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,s)=>i-s)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(Fa(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return Fa(this._table,r*this._tableRange+this._minPos,!0)}}ce(Kh,"id","timeseries"),ce(Kh,"defaults",Co.defaults);const $0="label";function Xh(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function Wk(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function eg(t,e){t.labels=e}function tg(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$0;const r=[];t.datasets=e.map(i=>{const s=t.datasets.find(a=>a[n]===i[n]);return!s||!i.data||r.includes(s)?{...i}:(r.push(s),Object.assign(s,i),s)})}function Qk(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$0;const n={labels:[],datasets:[]};return eg(n,t.labels),tg(n,t.datasets,e),n}function Gk(t,e){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:s,type:a,data:o,options:l,plugins:u=[],fallbackContent:c,updateMode:f,...p}=t,h=F.useRef(null),y=F.useRef(null),m=()=>{h.current&&(y.current=new Ko(h.current,{type:a,data:Qk(o,s),options:l&&{...l},plugins:u}),Xh(e,y.current))},v=()=>{Xh(e,null),y.current&&(y.current.destroy(),y.current=null)};return F.useEffect(()=>{!i&&y.current&&l&&Wk(y.current,l)},[i,l]),F.useEffect(()=>{!i&&y.current&&eg(y.current.config.data,o.labels)},[i,o.labels]),F.useEffect(()=>{!i&&y.current&&o.datasets&&tg(y.current.config.data,o.datasets,s)},[i,o.datasets]),F.useEffect(()=>{y.current&&(i?(v(),setTimeout(m)):y.current.update(f))},[i,l,o.labels,o.datasets,f]),F.useEffect(()=>{y.current&&(v(),setTimeout(m))},[a]),F.useEffect(()=>(m(),()=>v()),[]),F.createElement("canvas",{ref:h,role:"img",height:n,width:r,...p},c)}const Yk=F.forwardRef(Gk);function ng(t,e){return Ko.register(e),F.forwardRef((n,r)=>F.createElement(Yk,{...n,ref:r,type:t}))}const Vk=ng("line",eo),Kk=ng("radar",to);Ko.register(Fu,Uu,Ss,br,io,ok,yk,Sk,hk);var qu={elements:{line:{backgroundColor:"rgba(166, 30, 105, 0.2)",borderColor:"rgba(166, 30, 105, 1)",borderWidth:4},point:{backgroundColor:"rgba(166, 30, 105, 1)",borderColor:"rgba(255,255,255, .9)",borderWidth:2,radius:5,hoverRadius:6,hoverBorderWidth:3}},responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{mode:"index",intersect:!1}},interaction:{mode:"nearest",axis:"x",intersect:!1}},Xk=function(e){var n=e.chart.ctx,r=e.chart.chartArea;if(!r)return"rgba(166, 30, 105, 0.1)";var i=(r.left+r.right)/2,s=(r.top+r.bottom)/2,a=Math.min((r.right-r.left)/2,(r.bottom-r.top)/2),o=n.createRadialGradient(i,s,0,i,s,a);return o.addColorStop(0,"rgba(255, 255, 255, 0.4)"),o.addColorStop(.3,"rgba(255, 255, 255, 0.4)"),o.addColorStop(1,"rgba(166, 30, 105, 0.2)"),o};function Jh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Zh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Jh(Object(n),!0).forEach(function(r){Jk(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jh(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Jk(t,e,n){return(e=Zk(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zk(t){var e=$k(t,"string");return zi(e)=="symbol"?e:e+""}function $k(t,e){if(zi(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(zi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zi(t){"@babel/helpers - typeof";return zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zi(t)}function ej(t){var e=new Date(t);return isNaN(e.getTime())?String(t):e.toLocaleString("en-US",{month:"short",day:"numeric"})}var tj=function(){var e,n,r,i,s=er(),a=s.data,o=s.isLoading,l=s.isRefetching,u=a==null?void 0:a.mentions,c=u==null||(e=u.mentionedInNumberOfQueries)===null||e===void 0||(e=e.previous)===null||e===void 0?void 0:e.difference,f=u==null?void 0:u.chart,p=Array.isArray(f==null?void 0:f.labels)?f.labels:f!=null&&f.labels&&zi(f.labels)==="object"?Object.values(f.labels):[],h=p.map(function(g){return ej(String(g))}),y=a==null?void 0:a.numberOfQueries;if(!y){var m=0;Array.isArray(f==null?void 0:f.datasets)&&f.datasets.forEach(function(g){Array.isArray(g==null?void 0:g.data)&&g.data.forEach(function(A){typeof A=="number"&&A>m&&(m=A)})}),y=m+2}var v=Zh(Zh({},qu),{},{responsive:!0,maintainAspectRatio:!1,scales:{x:{display:!0,title:{display:!1,text:"Date"},grid:{display:!1}},y:{display:!0,title:{display:!1,text:"Number of Mentions"},beginAtZero:!0,max:y,ticks:{stepSize:1}}}});return d.jsx(C.Card,{className:"yst-overflow-visible",children:d.jsxs(C.Card.Content,{className:"yst-space-y-4",children:[d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(ya,{title:"Mentions progress",tooltip:"Tracks how your brand mentions have changed over time across the same query set."}),d.jsx(pa,{score:u==null||(n=u.mentionedInNumberOfQueries)===null||n===void 0?void 0:n.value,total:a==null?void 0:a.numberOfQueries,delta:c,deltaSuffix:"since last analysis",suffix:"queries",isLoading:o||l})]}),Array.isArray(f==null||(r=f.datasets)===null||r===void 0?void 0:r.data)&&(f==null||(i=f.datasets)===null||i===void 0?void 0:i.data.length)<2?d.jsx(C.Alert,{variant:"info",children:"One more analysis needed to show more insights."}):d.jsx("div",{className:"yst-h-72",children:d.jsx(Vk,{data:function(){var g={labels:h,datasets:[f==null?void 0:f.datasets]};return g}(),options:v})})]})})},nj=function(){var e,n=er(),r=n.data,i=n.isLoading,s=n.isRefetching;if(i&&!s||(r==null||(e=r.mentions)===null||e===void 0||(e=e.mentionedInNumberOfQueries)===null||e===void 0?void 0:e.value)!==0)return null;var a=[{title:"Activate llms.txt",description:"Make sure AI systems know where to look and which pages matter most.",link:{url:"https://yoast.com/help/enable-llmstxt/",text:"Set up llms.txt in Yoast SEO"}},{title:"Adopt an LLM-friendly content structure",description:"Start with clear definitions or TL;DRs, use subheadings, and format answers so LLMs can lift them directly.",link:{url:"https://yoast.com/yoast-seo-premium-september-9-2025/",text:"Learn how to generate AI summaries"}},{title:"Simplify writing and readability",description:"Use shorter sentences, plain language, and one idea per paragraph. This makes it easier for AI systems to recognize and quote your content."}];return d.jsx(C.Card,{className:"yst-overflow-visible yst-p-8 yst-text-slate-800 md:yst-col-span-2",children:d.jsxs(C.Card.Content,{className:"yst-max-w-2xl",children:[d.jsx(C.Title,{size:"2",className:"yst-mb-2 yst-text-slate-900",children:"We couldn't find your brand in this brand analysis..."}),d.jsx("p",{className:"yst-text-slate-600",children:"This means LLMs may not yet be surfacing your site in answers. Don't worry, here are some steps you can take today to boost your AI visibility:"}),d.jsx("ol",{className:"yst-my-0 yst-list-none yst-divide-y yst-divide-slate-200 [counter-reset:list-counter]",children:a.map(function(o,l){return d.jsx("li",{className:"yst-relative yst-py-4 [counter-increment:list-counter] before:yst-absolute before:yst-left-0 before:yst-font-semibold before:yst-text-slate-800 before:yst-content-[counter(list-counter)'.'] last:yst-pb-0",children:d.jsxs("div",{className:"yst-ml-4 yst-text-slate-600",children:[d.jsx("strong",{className:"yst-font-medium yst-text-slate-800",children:o.title}),d.jsx("br",{}),o.description,o.link&&d.jsxs(d.Fragment,{children:[d.jsx("br",{}),d.jsx("span",{className:"yst-mt-2 yst-block",children:d.jsxs("a",{href:o.link.url,target:"_blank",rel:"noopener noreferrer",className:"yst-font-medium",children:[o.link.text,d.jsx(Hd,{className:"yst-ml-1 yst-inline yst-h-3 yst-w-3"})]})})]})]})},l)})}),d.jsx(Gi,{size:4,className:"yst-pt-0"}),d.jsxs("p",{className:"yst-text-slate-600",children:["Want to go deeper? →"," ",d.jsxs("a",{href:"https://yoast.com/how-to-optimize-content-for-llms/",target:"_blank",rel:"noopener noreferrer",className:"yst-font-medium",children:["Read our full guide on optimizing content for LLMs",d.jsx(Hd,{className:"yst-ml-1 yst-inline yst-h-3 yst-w-3"})]})]})]})})};function za(t){var e=t.value,n=e===void 0?"—":e,r=t.label,i=t.tooltip,s=t.className,a=t.borderBottom,o=a===void 0?!1:a,l=t.borderRight,u=l===void 0?!1:l,c=t.delta,f=t.tooltipPosition,p=f===void 0?"left":f;return d.jsxs("div",{className:ie("yst-relative yst-flex yst-flex-col yst-items-center yst-gap-1 yst-p-4 yst-text-center",o&&"yst-border-b yst-border-slate-200",u&&"yst-border-r yst-border-slate-200",s),children:[d.jsx("p",{className:"yst-text-2xl yst-font-bold yst-text-slate-900",children:n}),d.jsx("p",{className:"yst-text-tiny yst-text-slate-600",children:r}),typeof c=="number"&&d.jsxs("p",{className:ie("yst-flex yst-items-center yst-gap-1 yst-text-tiny yst-font-bold",Us(c)),children:[c>0?d.jsx(Zm,{}):c<0?d.jsx(Jm,{}):null,c>-1e-6&&"+",c]}),i&&d.jsx(Oc,{id:"tooltip-".concat(r.replace(/\s+/g,"-").toLowerCase()),className:"yst-absolute yst-right-2 yst-top-2",position:p,children:i})]})}function rj(t){var e=t.children,n=t.className;return d.jsx("div",{className:ie("yst-grid yst-w-full yst-grid-cols-2 yst-gap-0 yst-rounded-lg",n),children:e})}function ij(t){return t>0?"yst-text-green-600":t<0?"yst-text-red-600":"yst-text-slate-500"}function sj(t){var e=t.current,n=t.previous,r=t.className;if(typeof n!="number")return null;var i=e-n,s=i>0,a=i<0,o="".concat(i>0?"+":"").concat(i.toFixed(1),"%");return d.jsxs("div",{className:ie("yst-flex yst-items-center yst-gap-1 yst-text-tiny yst-font-bold",ij(i),r),"aria-label":s?"Visibility increased by ".concat(o):a?"Visibility decreased by ".concat(o):"No change in visibility",children:[s&&d.jsx(Zm,{className:"yst-w-4 yst-h-4"}),a&&d.jsx(Jm,{className:"yst-w-4 yst-h-4"}),o]})}function Zs(t){"@babel/helpers - typeof";return Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zs(t)}function aj(t,e){return cj(t)||uj(t,e)||lj(t,e)||oj()}function oj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
53
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lj(t,e){if(t){if(typeof t=="string")return $h(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$h(t,e):void 0}}function $h(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function uj(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function cj(t){if(Array.isArray(t))return t}function ep(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ua(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ep(Object(n),!0).forEach(function(r){dj(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ep(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function dj(t,e,n){return(e=fj(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fj(t){var e=hj(t,"string");return Zs(e)=="symbol"?e:e+""}function hj(t,e){if(Zs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Zs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function pj(){var t,e,n,r,i,s,a,o,l,u,c,f,p,h,y,m,v,g,A,E,j,S,b,w=er(),x=w.data,N=w.isLoading,_=x==null||(t=x.scores)===null||t===void 0?void 0:t.standardized,I=(e=x==null||(n=x.mentions)===null||n===void 0||(n=n.mentionedInNumberOfQueries)===null||n===void 0?void 0:n.value)!==null&&e!==void 0?e:0,T=x==null||(r=x.mentions)===null||r===void 0||(r=r.mentionedInNumberOfQueries)===null||r===void 0||(r=r.previous)===null||r===void 0?void 0:r.difference,z=(i=x==null||(s=x.scores)===null||s===void 0||(s=s.standardized)===null||s===void 0||(s=s.citations)===null||s===void 0?void 0:s.value)!==null&&i!==void 0?i:0,L=(a=x==null||(o=x.citations)===null||o===void 0||(o=o.total)===null||o===void 0?void 0:o.value)!==null&&a!==void 0?a:0,P=x==null||(l=x.citations)===null||l===void 0||(l=l.total)===null||l===void 0||(l=l.previous)===null||l===void 0?void 0:l.difference,D=x==null||(u=x.rankings)===null||u===void 0||(u=u.list)===null||u===void 0?void 0:u.find(function(ae){var je;return((je=ae.brand)===null||je===void 0?void 0:je.isSelf)===!0}),B=(c=D==null||(f=D.rank)===null||f===void 0?void 0:f.value)!==null&&c!==void 0?c:"—",V=D==null||(p=D.rank)===null||p===void 0||(p=p.previous)===null||p===void 0?void 0:p.difference;V&&(V=V*-1);var W=(h=_==null||(y=_.visibility)===null||y===void 0?void 0:y.value)!==null&&h!==void 0?h:0,k=_==null||(m=_.visibility)===null||m===void 0||(m=m.previous)===null||m===void 0?void 0:m.value,Q=(v=_==null||(g=_.ranking)===null||g===void 0?void 0:g.value)!==null&&v!==void 0?v:0,H=(A=_==null||(E=_.sentiment)===null||E===void 0?void 0:E.value)!==null&&A!==void 0?A:0,O=(j=_==null||(S=_.mentions)===null||S===void 0?void 0:S.value)!==null&&j!==void 0?j:0,G={labels:["Mentions","Ranking","Citations","Sentiment"],datasets:[{data:[O,Q,z,H],backgroundColor:Xk,pointBackgroundColor:"rgba(166, 30, 105, 1)"}]},Y=Ua(Ua({},qu),{},{plugins:Ua(Ua({},qu.plugins),{},{tooltip:{mode:"point",intersect:!0,callbacks:{label:function(je){var Z=je.label||"",Le=je.parsed.r||0;return"".concat(Z,": ").concat(Le,"%")}}}}),interaction:{mode:"point",intersect:!0},scales:{r:{beginAtZero:!0,min:0,max:100,ticks:{stepSize:20}}}}),X=F.useState(typeof window!="undefined"&&window.innerWidth<800?"top":"left"),ne=aj(X,2),oe=ne[0],he=ne[1];return F.useEffect(function(){function ae(){he(window.innerWidth<800?"top":"left")}return window.addEventListener("resize",ae),function(){return window.removeEventListener("resize",ae)}},[]),d.jsx(C.Card,{className:"yst-overflow-visible md:yst-col-span-2",children:d.jsxs(C.Card.Content,{children:[d.jsx(C.Title,{size:"3",className:"yst-mb-2",children:"AI Visibility Index (AIVI)"}),d.jsx(pa,{score:W,total:100,isLoading:N}),d.jsx(sj,{current:W,previous:k,className:"yst-mb-4"}),d.jsxs("div",{className:"yst-flex yst-flex-col yst-items-center yst-justify-around yst-justify-items-center yst-gap-8 md:yst-flex-row",children:[d.jsxs("div",{className:"yst-radar-chart-container yst-relative yst-aspect-square yst-h-full yst-w-full md:yst-flex md:yst-w-1/2 md:yst-items-center md:yst-justify-center",children:[d.jsx(Kk,{data:G,options:Y}),d.jsx(Oc,{id:"tooltip-radar-chart",className:"yst-absolute yst-right-2 yst-top-2",position:"left",children:"The AI Visibility Index (AIVI) shows how visible your brand is across major AI platforms like ChatGPT and Perplexity, based on mentions, citations, sentiment, and rankings."})]}),d.jsx("div",{className:"yst-mt-6 yst-w-full md:yst-mt-0 md:yst-flex md:yst-w-1/2 md:yst-items-center",children:d.jsxs(rj,{children:[d.jsx(za,{value:I,label:"Mentions",tooltip:"Mentions show how often your brand appears in AI-generated answers to the questions we send to LLMs.",borderBottom:!0,borderRight:!0,delta:T,tooltipPosition:oe}),d.jsx(za,{value:typeof B=="number"&&Number.isFinite(B)&&B>0?d.jsxs(d.Fragment,{children:["#",B,B===1&&" 🏆"]}):"—",label:"Competitor ranking",tooltip:"Ranking shows the position your brand is mentioned in AI-generated answers—whether in a numbered list or the order of appearance in full-text responses.",borderBottom:!0,delta:V}),d.jsx(za,{value:L,label:"Citations",tooltip:"Citations are the source links found in AI-generated answers. They form the basis for mentions, sentiment, and ranking insights.",borderRight:!0,delta:P,tooltipPosition:oe}),d.jsx(za,{value:H?"".concat(H,"%"):"—",label:"Positive sentiment",tooltip:"Sentiment reflects how positively, neutrally, or negatively your brand is mentioned in AI-generated answers, based on the cited sources.",delta:x==null||(b=x.scores)===null||b===void 0||(b=b.standardized)===null||b===void 0||(b=b.sentiment)===null||b===void 0||(b=b.previous)===null||b===void 0?void 0:b.difference})]})})]})]})})}function yj(t,e){return bj(t)||vj(t,e)||gj(t,e)||mj()}function mj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gj(t,e){if(t){if(typeof t=="string")return tp(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tp(t,e):void 0}}function tp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function vj(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function bj(t){if(Array.isArray(t))return t}var Pl=function(){var e=It(),n=e.brandId,r=e.analysisId,i=TA(),s=i.isProduction,a=ht(),o=oi({query:{select:function(L){var P=L.data;return P==null?void 0:P.brands}}}),l=o.data,u=o.isLoading,c=Fo(n,r,{query:{enabled:!!n&&tf(r),select:function(L){var P=L.data;return P==null?void 0:P.analysis}}}),f=c.data,p=c.isLoading,h=Sc(n,{query:{enabled:!!n&&tf(r),select:function(L){var P=L.data;return P==null?void 0:P.analyses}}}),y=h.data,m=h.isLoading,v=f==null?void 0:f.status,g=u||p||m,A=l&&(l==null?void 0:l.length)>0,E=!g&&f&&v===zn.completed,j=F.useState(!1),S=yj(j,2),b=S[0],w=S[1],x=F.useRef(null),N=F.useRef(void 0),_=localStorage.getItem("yst_congratulations_toast_seen")==="true";F.useEffect(function(){return E&&!N.current&&!_&&(x.current=setTimeout(function(){w(!0),localStorage.setItem("yst_congratulations_toast_seen","true")},1e4)),!E&&N.current&&(w(!1),x.current&&(clearTimeout(x.current),x.current=null)),N.current=E,function(){x.current&&(clearTimeout(x.current),x.current=null)}},[E,_]);function I(z){var L=z.children;if(typeof window=="undefined")return null;var P=document.getElementById("tsx-toasts");return P?Uy.createPortal(L,P):null}var T=function(L){var P=L.isVisible,D=L.setIsVisible,B=function(){D(!1)},V=l&&l.length>1||y&&y.length>1;return d.jsxs(C.Toast,{id:"toast",isVisible:P,setIsVisible:function(W){W||D(!1)},children:[d.jsxs("div",{className:"yst-mb-3 yst-flex yst-items-start yst-gap-3",children:[d.jsx(ju,{}),d.jsxs("div",{className:"yst-grow",children:[d.jsx(C.Title,{size:"3",className:"yst-mb-1",children:V?"Congratulations, your analysis is ready!":"Congratulations on completing your first brand analysis!"}),"You've completed your brand analysis. We'd love to hear what you think."]}),d.jsx(C.Button,{variant:"tertiary",onClick:B,children:d.jsx(t0,{})})]}),d.jsxs("div",{className:"yst-flex yst-justify-end yst-gap-4",children:[d.jsx(C.Button,{variant:"tertiary",onClick:B,children:"Dismiss"}),d.jsxs(C.Button,{as:"a",href:"https://www.surveymonkey.com/r/HGSB8DL",target:"_blank",children:["Give feedback",d.jsx(e0,{className:"yst-ml-2"})]})]})]})};return u?d.jsx(Yi,{}):A?d.jsxs("div",{className:"yst-space-y-4",children:[d.jsx(hC,{}),g&&!u&&d.jsxs("div",{children:[d.jsx(C.Title,{size:"2",className:"yst-mb-2",children:"Your brand analysis is loading"}),d.jsx("div",{className:"yst-inline-flex yst-w-full yst-items-center yst-justify-center",children:d.jsx(C.Spinner,{size:"8",variant:"primary",className:"yst-ml-2"})})]}),E&&d.jsxs("div",{className:"yst-space-y-4",children:[d.jsxs("div",{className:"yst-flex yst-items-center yst-justify-between",children:[d.jsx(C.Title,{size:"2",children:"Your brand analysis"}),d.jsxs("div",{className:"yst-flex yst-gap-2",children:[!s&&d.jsx(C.Button,{variant:"secondary",onClick:function(){return a("/brands/".concat(n,"/analysis/").concat(r,"/scan-details"))},children:"Scan details"}),d.jsxs(C.Button,{as:Cr,variant:"secondary",to:"/brands/".concat(n,"/brand-list"),disabled:!n,children:[d.jsx(Gm,{})," Edit brand list"]})]})]}),d.jsxs("div",{className:"yst-grid yst-grid-cols-1 yst-gap-4 md:yst-grid-cols-2",children:[d.jsx(nj,{}),d.jsx(pj,{}),d.jsx(pC,{}),d.jsx(tj,{}),d.jsx(x3,{}),d.jsx(p3,{}),d.jsx($A,{}),d.jsx(w3,{})]}),d.jsx(I,{children:d.jsx(T,{isVisible:b,setIsVisible:w})})]})]}):d.jsx(DA,{})},xj=F.lazy(function(){return Promise.resolve().then(()=>sE)}),wj=F.lazy(function(){return Promise.resolve().then(()=>L9)}),Aj=F.lazy(function(){return Promise.resolve().then(()=>hP)}),Sj=F.lazy(function(){return Promise.resolve().then(()=>mP)}),Cj=F.lazy(function(){return Promise.resolve().then(()=>TP)}),kj=F.lazy(function(){return Promise.resolve().then(()=>KP)}),jj=F.lazy(function(){return Promise.resolve().then(()=>pT)}),Ej=new Gb({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1,staleTime:1e3*60*5},mutations:{retry:!1}}}),Oj=F.lazy(function(){return Promise.resolve({default:function(){return null}})}),Rn=function(){return d.jsx("div",{className:"yst-flex yst-min-h-[200px] yst-items-center yst-justify-center",children:d.jsxs("div",{className:"yst-w-full yst-max-w-md yst-space-y-3",children:[d.jsx(C.SkeletonLoader,{className:"yst-h-8 yst-w-3/4"}),d.jsx(C.SkeletonLoader,{className:"yst-h-6 yst-w-full"}),d.jsx(C.SkeletonLoader,{className:"yst-h-6 yst-w-2/3"})]})})},Pj=function(e){var n=e.hideNav,r=n===void 0?!1:n,i=e.disableLayout,s=i===void 0?!1:i,a=e.DebugInfo;return d.jsx(Qv,{children:d.jsxs(ut,{element:d.jsx(nA,{hideNav:r,disableLayout:s,DebugInfo:a}),children:[d.jsxs(ut,{path:"/",element:d.jsx(_i,{}),children:[d.jsx(ut,{index:!0,element:d.jsxs(F.Suspense,{fallback:d.jsx(Rn,{}),children:[d.jsx(Ln,{title:"AI Brand Insights"}),d.jsx(Pl,{})]})}),d.jsxs(ut,{path:"brands/:brandId",element:d.jsx(Xd,{}),children:[d.jsx(ut,{index:!0,element:d.jsx(Pl,{})}),d.jsx(ut,{path:"brand-list",element:d.jsxs(F.Suspense,{fallback:d.jsx(Rn,{}),children:[d.jsx(Ln,{title:"Brands - AI Brand Insights"}),d.jsx(xj,{})]})}),d.jsxs(ut,{path:"analysis/:analysisId",element:d.jsx(rA,{}),children:[d.jsx(ut,{index:!0,element:d.jsxs(F.Suspense,{fallback:d.jsx(Rn,{}),children:[d.jsx(Ln,{title:"Analysis - AI Brand Insights"}),d.jsx(Pl,{})]})}),d.jsx(ut,{path:"scan-details",element:d.jsxs(F.Suspense,{fallback:d.jsx(Rn,{}),children:[d.jsx(Ln,{title:"Scan details - AI Brand Insights"}),d.jsx(wj,{})]})})]})]}),d.jsxs(ut,{path:"/setup",element:d.jsxs(F.Suspense,{fallback:d.jsx(Rn,{}),children:[d.jsx(Ln,{title:"Setup brand - AI Brand Insights"}),d.jsx(Sj,{})]}),children:[d.jsx(ut,{index:!0,element:d.jsxs(F.Suspense,{fallback:d.jsx(Rn,{}),children:[d.jsx(Ln,{title:"AI Brand Insights"}),d.jsx(Cj,{})]})}),d.jsxs(ut,{path:":brandId",element:d.jsx(Xd,{}),children:[d.jsx(ut,{path:"queries",element:d.jsxs(F.Suspense,{fallback:d.jsx(Rn,{}),children:[d.jsx(Ln,{title:"Setup queries - AI Brand Insights"}),d.jsx(kj,{})]})}),d.jsx(ut,{path:"analysis",element:d.jsxs(F.Suspense,{fallback:d.jsx(Rn,{}),children:[d.jsx(Ln,{title:"Analysis - AI Brand Insights"}),d.jsx(jj,{})]})})]})]})]}),d.jsx(ut,{path:"/settings",element:d.jsxs(F.Suspense,{fallback:d.jsx(Rn,{}),children:[d.jsx(Ln,{title:"Settings - AI Brand Insights"}),d.jsx(Aj,{})]})}),!1]})})},Tj=function(e){var n=e.DebugInfo,r=e.hostAppProps;return d.jsxs(Yb,{client:Ej,children:[d.jsx(fA,{children:d.jsxs(Vx,{hostAppProps:r,children:[d.jsx(Pj,{DebugInfo:n}),d.jsx(hA,{})]})}),d.jsx(F.Suspense,{fallback:null,children:d.jsx(Oj,{initialIsOpen:!1})})]})};function Ij(t){var e=t.subpath,n=e===void 0?"/":e,r=t.onNavigate,i=ht(),s=xt(),a=F.useRef(n),o=F.useRef(null),l=F.useRef(!1),u="".concat(s.pathname).concat(s.search).concat(s.hash),c=F.useCallback(r,[r]);return F.useEffect(function(){if(n===u){a.current=n;return}l.current||n!==a.current&&(a.current=n,o.current=n,l.current=!0,i(n,{replace:!0}),setTimeout(function(){l.current=!1},10))},[n,u,i]),F.useEffect(function(){l.current||u!==n&&u!==o.current&&(o.current=u,c(u))},[u,n,c]),null}function Mj(t,e){return _j(t)||Rj(t,e)||Nj(t,e)||Lj()}function Lj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
55
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nj(t,e){if(t){if(typeof t=="string")return np(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?np(t,e):void 0}}function np(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Rj(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function _j(t){if(Array.isArray(t))return t}var Dj=function(e){var n=e.isRtl,r=n===void 0?!1:n,i=e.className,s=e.style,a=e.token,o=a===void 0?"":a,l=e.apiUrl,u=e.env,c=e.DebugInfo,f=e.basename,p=f===void 0?"/":f,h=e.subpath,y=h===void 0?"/":h,m=e.onNavigate,v=m===void 0?function(){}:m,g=e.onLogout,A=g===void 0?function(){}:g,E=e.onAddSubscription,j=E===void 0?function(){}:E,S=function(T,z){var L=T.endsWith("/")?T.slice(0,-1):T,P=z.startsWith("/")?z:"/".concat(z);return L+P||"/"},b=F.useState(!!(o||l)),w=Mj(b,2),x=w[0],N=w[1],_={onAddSubscription:j,onLogout:A,onNavigate:v,env:u,DebugInfo:c,basename:p,subpath:y};return F.useEffect(function(){l&&zm(l),U1(typeof o!="function"?function(){return o}:o),N(!1)},[l,o]),x?d.jsx("div",{className:i,style:s,children:d.jsx(C.Spinner,{})}):d.jsx("div",{className:i,style:s,children:d.jsxs(qv,{initialEntries:[S(p,y)],basename:p||"/",children:[d.jsx(Ij,{subpath:y,onNavigate:v}),d.jsx(C.Root,{context:{isRtl:r},children:d.jsx(Tj,{DebugInfo:c,hostAppProps:_})})]})})};function rg(t){var e=t.children,n=t.description,r=t.title;return d.jsxs(C.Paper.Header,{children:[r&&d.jsx(C.Title,{className:ie({"yst-mb-3":n||e}),children:r}),n&&(typeof n=="string"?d.jsx("p",{children:n}):n),e]})}function Wu(t){"@babel/helpers - typeof";return Wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wu(t)}function Cs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return zt(A,"_invoke",function(E,j,S){var b,w,x,N=0,_=S||[],I=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(P,D){return b=P,w=0,x=t,T.n=D,a}};function z(L,P){for(w=L,x=P,e=0;!I&&N&&!D&&e<_.length;e++){var D,B=_[e],V=T.p,W=B[2];L>3?(D=W===P)&&(x=B[(w=B[4])?5:(w=3,3)],B[4]=B[5]=t):B[0]<=V&&((D=L<2&&V<B[1])?(w=0,T.v=P,T.n=B[1]):V<W&&(D=L<3||B[0]>P||P>W)&&(B[4]=L,B[5]=P,T.n=W,w=0))}if(D||L>1)return a;throw I=!0,P}return function(L,P,D){if(N>1)throw TypeError("Generator is already running");for(I&&P===1&&z(P,D),w=P,x=D;(e=w<2?t:x)||!I;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(L="next"),e=b[L]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+L+"' method"),w=1);b=t}else if((e=(I=T.n<0)?x:E.call(j,T))!==a)break}catch(B){b=t,w=1,x=B}finally{N=1}}return{value:e,done:I}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(zt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,zt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,zt(f,"constructor",u),zt(u,"constructor",l),l.displayName="GeneratorFunction",zt(u,i,"GeneratorFunction"),zt(f),zt(f,i,"Generator"),zt(f,r,function(){return this}),zt(f,"toString",function(){return"[object Generator]"}),(Cs=function(){return{w:s,m:p}})()}function zt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}zt=function(a,o,l,u){function c(f,p){zt(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},zt(t,e,n,r)}function rp(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function ip(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){rp(s,r,i,a,o,"next",l)}function o(l){rp(s,r,i,a,o,"throw",l)}a(void 0)})}}function Tl(t,e){return Uj(t)||zj(t,e)||Fj(t,e)||Bj()}function Bj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
56
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fj(t,e){if(t){if(typeof t=="string")return sp(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sp(t,e):void 0}}function sp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function zj(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function Uj(t){if(Array.isArray(t))return t}var Hj=function(e){var n=e.isOpen,r=e.onClose,i=e.groupToEdit,s=e.allBrands,a=It(),o=a.brandId,l=a.analysisId,u=F.useState(""),c=Tl(u,2),f=c[0],p=c[1],h=F.useState([]),y=Tl(h,2),m=y[0],v=y[1],g=F.useState(!1),A=Tl(g,2),E=A[0],j=A[1],S=on();F.useEffect(function(){if(n&&i&&i.type==="group"){var W;p(String(i.name||""));var k=((W=i.groupedBrands)===null||W===void 0?void 0:W.map(function(Q){return String(Q.id||"")}))||[];v(k)}},[n,i]);var b=Hm({mutation:{onSuccess:function(){var W=ip(Cs().m(function Q(){return Cs().w(function(H){for(;;)switch(H.n){case 0:return H.n=1,Promise.all([S.invalidateQueries({queryKey:ho(o)}),S.invalidateQueries({queryKey:Gn(o,"latest")}),S.invalidateQueries({queryKey:On(o,"latest")}),S.invalidateQueries({queryKey:Gn(o,l)}),S.invalidateQueries({queryKey:On(o,l)})]);case 1:L();case 2:return H.a(2)}},Q)}));function k(){return W.apply(this,arguments)}return k}(),onError:function(k){console.error("Error creating brand group:",k)}}}),w=b.mutate,x=b.isPending,N=gx({mutation:{onSuccess:function(){var W=ip(Cs().m(function Q(){return Cs().w(function(H){for(;;)switch(H.n){case 0:return H.n=1,Promise.all([S.invalidateQueries({queryKey:ho(o)}),S.invalidateQueries({queryKey:Gn(o,"latest")}),S.invalidateQueries({queryKey:On(o,"latest")}),S.invalidateQueries({queryKey:Gn(o,l)}),S.invalidateQueries({queryKey:On(o,l)})]);case 1:L(),B();case 2:return H.a(2)}},Q)}));function k(){return W.apply(this,arguments)}return k}(),onError:function(k){console.error("Error deleting brand group:",k),window.alert("An error occurred while ungrouping the brands. Please try again later.")}}}),_=N.mutate,I=N.isPending,T=typeof(i==null?void 0:i.id)=="string"&&i.id.length>0||typeof(i==null?void 0:i.id)=="number"&&!isNaN(i.id),z=function(){!f.trim()||!T||w({brandId:o,data:{groupName:f.trim(),brandIds:m}})},L=function(){p(""),v([]),r()},P=function(){return m.map(function(k){if(i&&i.type==="group"){var Q,H=(Q=i.groupedBrands)===null||Q===void 0?void 0:Q.find(function(G){return String(G.id)===k});if(H)return H.name||""}var O=s.find(function(G){return String(G.id)===k});return O?O.type==="group"?"Group: ".concat(O.name):O.name||"":""}).filter(Boolean)},D=function(){j(!0)},B=function(){return j(!1)},V=function(){if(!T){console.error("Invalid groupId provided for ungrouping. groupToEdit?.id: ".concat(i==null?void 0:i.id," (type: ").concat(Wu(i==null?void 0:i.id),")")),B();return}_({brandId:o,brandGroupId:i.id})};return!i||i.type!=="group"?null:d.jsxs(d.Fragment,{children:[d.jsx(C.Modal,{isOpen:n,onClose:E?function(){}:L,as:"div",children:d.jsx(C.Modal.Panel,{children:d.jsxs(C.Modal.Container,{children:[d.jsx(C.Modal.Container.Header,{className:"yst-mb-4",children:d.jsx(C.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Edit brand group"})}),d.jsxs(C.Modal.Container.Content,{className:"yst-mb-8 yst-space-y-4",children:[d.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"Update the group name or ungroup brands by removing their tags."}),d.jsxs("div",{children:[d.jsx("label",{htmlFor:"editGroupName",className:"yst-mb-2 yst-block yst-text-sm yst-font-medium",children:"Group name"}),d.jsx(C.TextInput,{id:"editGroupName",value:f,onChange:function(W){return p(W.target.value)},placeholder:"Enter group name",className:"yst-w-full"})]}),d.jsxs("div",{children:[d.jsx(C.TagField,{readOnly:!0,id:"editGroupedBrands",label:"Grouped brands",tags:P(),onRemoveTag:function(W){if(m.length<2)return j(!0);v(function(k){return k.filter(function(Q,H){return H!==W})})},onAddTag:function(){}}),m.length===0?d.jsx("p",{className:"yst-mt-2 yst-text-sm",children:'Click "Ungroup brands" to remove this group.'}):d.jsx("p",{className:"yst-mt-2 yst-text-sm yst-italic yst-text-gray-500",children:"Note: To add brands to this group, save this group, then use the checkboxes to select this group as well as any additional brands to be grouped."})]})]}),d.jsx(C.Modal.Container.Footer,{children:d.jsxs("div",{className:"yst-flex yst-w-full yst-items-center yst-justify-between",children:[d.jsx("div",{className:"yst-flex yst-justify-start",children:d.jsx(C.Button,{variant:"tertiary",onClick:D,disabled:x||!T,className:"yst-text-red-600",children:"Ungroup brands"})}),d.jsxs("div",{className:"yst-flex yst-justify-end yst-gap-2",children:[d.jsx(C.Button,{variant:"secondary",onClick:L,children:"Cancel"}),d.jsx(C.Button,{variant:"primary",onClick:z,disabled:!f.trim()||x,isLoading:x,children:x?"Saving...":"Save changes"})]})]})})]})})}),d.jsx(Wo,{isOpen:E,onClose:B,onConfirm:V,disabled:!T||I,isLoading:I,title:"Ungroup this brand group?",description:d.jsxs(d.Fragment,{children:[d.jsx("p",{children:"The group will be removed, but the brands inside will remain in your brand list."}),d.jsx("p",{children:"This action cannot be undone. To create a new group with these brands, simply select them and create a new group."})]}),confirmText:"Yes, ungroup"})]})};function Qu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return Ut(A,"_invoke",function(E,j,S){var b,w,x,N=0,_=S||[],I=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(P,D){return b=P,w=0,x=t,T.n=D,a}};function z(L,P){for(w=L,x=P,e=0;!I&&N&&!D&&e<_.length;e++){var D,B=_[e],V=T.p,W=B[2];L>3?(D=W===P)&&(x=B[(w=B[4])?5:(w=3,3)],B[4]=B[5]=t):B[0]<=V&&((D=L<2&&V<B[1])?(w=0,T.v=P,T.n=B[1]):V<W&&(D=L<3||B[0]>P||P>W)&&(B[4]=L,B[5]=P,T.n=W,w=0))}if(D||L>1)return a;throw I=!0,P}return function(L,P,D){if(N>1)throw TypeError("Generator is already running");for(I&&P===1&&z(P,D),w=P,x=D;(e=w<2?t:x)||!I;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(L="next"),e=b[L]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+L+"' method"),w=1);b=t}else if((e=(I=T.n<0)?x:E.call(j,T))!==a)break}catch(B){b=t,w=1,x=B}finally{N=1}}return{value:e,done:I}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(Ut(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,Ut(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,Ut(f,"constructor",u),Ut(u,"constructor",l),l.displayName="GeneratorFunction",Ut(u,i,"GeneratorFunction"),Ut(f),Ut(f,i,"Generator"),Ut(f,r,function(){return this}),Ut(f,"toString",function(){return"[object Generator]"}),(Qu=function(){return{w:s,m:p}})()}function Ut(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}Ut=function(a,o,l,u){function c(f,p){Ut(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},Ut(t,e,n,r)}function ap(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function qj(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){ap(s,r,i,a,o,"next",l)}function o(l){ap(s,r,i,a,o,"throw",l)}a(void 0)})}}function op(t,e){return Yj(t)||Gj(t,e)||Qj(t,e)||Wj()}function Wj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qj(t,e){if(t){if(typeof t=="string")return lp(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lp(t,e):void 0}}function lp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Gj(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function Yj(t){if(Array.isArray(t))return t}var Vj=function(e){var n=e.isOpen,r=e.onClose,i=e.brandId,s=e.brandsToGroup,a=e.onGroupCreated,o=on(),l=It(),u=l.analysisId,c=F.useState(""),f=op(c,2),p=f[0],h=f[1],y=F.useState([]),m=op(y,2),v=m[0],g=m[1];F.useEffect(function(){if(n&&s.length>0){var N,_=(N=s[0])===null||N===void 0?void 0:N.name;h(String(_||"New Group")),g(s.map(function(I){var T;return String((T=I.id)!==null&&T!==void 0?T:"")}))}},[n,s]);var A=Hm({mutation:{onSuccess:function(){var N=qj(Qu().m(function I(){return Qu().w(function(T){for(;;)switch(T.n){case 0:return T.n=1,Promise.all([o.invalidateQueries({queryKey:ho(i)}),o.invalidateQueries({queryKey:Ac(i)}),o.invalidateQueries({queryKey:Gn(i,"latest")}),o.invalidateQueries({queryKey:On(i,"latest")}),o.invalidateQueries({queryKey:Gn(i,u)}),o.invalidateQueries({queryKey:On(i,u)})]);case 1:a==null||a(),S();case 2:return T.a(2)}},I)}));function _(){return N.apply(this,arguments)}return _}(),onError:function(_){console.error("Error creating group:",_)}}}),E=A.mutate,j=A.isPending,S=function(){h(""),g([]),r()},b=function(){if(!(!p.trim()||v.length===0)){var _=v.flatMap(function(I){var T=s.find(function(z){return String(z.id)===I});return T&&T.type==="group"&&Array.isArray(T.groupedBrands)?T.groupedBrands.map(function(z){return String(z.id)}):I});E({brandId:i,data:{groupName:p.trim(),brandIds:_.filter(function(I){return I!==""})}})}},w=function(_){g(function(I){var T=I.filter(function(z){return z!==_});return T.length===0&&S(),T})},x=v.map(function(N){var _=s.find(function(I){return String(I.id)===N});return _?_.type==="group"?"Group: ".concat(_.name):_.name||"":""}).filter(Boolean);return d.jsx(C.Modal,{isOpen:n,onClose:S,children:d.jsx(C.Modal.Panel,{children:d.jsxs(C.Modal.Container,{children:[d.jsx(C.Modal.Container.Header,{children:d.jsx(C.Modal.Title,{children:"Create brand group"})}),d.jsxs(C.Modal.Container.Content,{className:"yst-space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{htmlFor:"groupName",className:"yst-mb-2 yst-block yst-text-sm yst-font-medium",children:"Group name"}),d.jsx(C.TextInput,{id:"groupName",value:p,onChange:function(N){return h(N.target.value)},placeholder:"Enter group name",className:"yst-w-full"})]}),d.jsxs("div",{children:[d.jsx(C.TagField,{readOnly:!0,id:"groupedBrands",label:"Brands in group (".concat(v.length,")"),tags:x,onRemoveTag:function(N){var _=v[N];_&&w(_)},onAddTag:function(){}}),v.length===0&&d.jsx("p",{className:"yst-text-sm yst-italic yst-text-gray-500",children:"No brands selected"})]}),d.jsx("p",{children:"Note: To add brands to this group, save this group, then use the checkboxes to select this group as well as any additional brands to be grouped."})]}),d.jsx(C.Modal.Container.Footer,{className:"yst-pt-4",children:d.jsxs("div",{className:"yst-flex yst-justify-end yst-gap-2",children:[d.jsx(C.Button,{variant:"secondary",onClick:S,disabled:j,children:"Cancel"}),d.jsx(C.Button,{variant:"primary",onClick:b,disabled:!p.trim()||v.length===0||j,children:j?"Saving...":"Save group"})]})})]})})})};function $s(t){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$s(t)}function up(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function cp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?up(Object(n),!0).forEach(function(r){ig(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):up(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ig(t,e,n){return(e=Kj(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Kj(t){var e=Xj(t,"string");return $s(e)=="symbol"?e:e+""}function Xj(t,e){if($s(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if($s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Jj(t){return eE(t)||$j(t)||sg(t)||Zj()}function Zj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
58
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $j(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function eE(t){if(Array.isArray(t))return Gu(t)}function vn(t,e){return rE(t)||nE(t,e)||sg(t,e)||tE()}function tE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
59
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sg(t,e){if(t){if(typeof t=="string")return Gu(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gu(t,e):void 0}}function Gu(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function nE(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function rE(t){if(Array.isArray(t))return t}var iE=function(){var e,n=ht(),r=F.useState(!1),i=vn(r,2),s=i[0],a=i[1],o=F.useState({}),l=vn(o,2),u=l[0],c=l[1],f=F.useState(""),p=vn(f,2),h=p[0],y=p[1],m=F.useState(1),v=vn(m,2),g=v[0],A=v[1],E=F.useState({}),j=vn(E,2),S=j[0],b=j[1],w=F.useState(!1),x=vn(w,2),N=x[0],_=x[1],I=F.useState(!1),T=vn(I,2),z=T[0],L=T[1],P=F.useState(null),D=vn(P,2),B=D[0],V=D[1],W=It(),k=W.brandId;function Q(pe){return String(pe.id)}var H=fx(k,{query:{enabled:!!k}}),O=H.data,G=H.isLoading,Y=10,X=(O==null||(e=O.data)===null||e===void 0?void 0:e.associatedBrands.filter(function(pe){var ye,Ae;return h?((ye=(Ae=pe.name)===null||Ae===void 0?void 0:Ae.toLowerCase())!==null&&ye!==void 0?ye:"").includes(h.toLowerCase()):!0}))||[],ne=Math.ceil(X.length/Y),oe=(g-1)*Y,he=Jj(X).sort(function(pe,ye){return pe.type==="group"&&ye.type!=="group"?-1:pe.type!=="group"&&ye.type==="group"?1:0}),ae=he.slice(oe,oe+Y),je=function(ye){var Ae=X.find(function(U){return Q(U)===ye});Ae&&Ae.type==="group"&&(V(Ae),L(!0))},Z=Object.entries(S).filter(function(pe){var ye=vn(pe,2),Ae=ye[1];return Ae}).map(function(pe){var ye=vn(pe,1),Ae=ye[0];return Ae}),Le=function(){_(!0)},Nt=function(ye){y(ye.target.value),A(1)},at=function(ye){b(function(Ae){return cp(cp({},Ae),{},ig({},ye,!Ae[ye]))})},Ye=function(){n("/")},Xe=function(){b({}),c({}),a(!1)},pn=function(){_(!1)},nt=function(){b({}),A(1),y("")},Tn=function(){L(!1),V(null)},tr=function(ye,Ae){return ye in u?!!u[ye]:!Ae.isHidden},Ue=[{Header:"Brand name",accessor:"name",Cell:function(ye){var Ae=ye.value,U=ye.row;return d.jsx("span",{className:"yst-font-medium yst-text-slate-900",children:d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-2",children:[d.jsx(C.Checkbox,{id:"brand-checkbox-".concat(U.id),checked:!!S[Q(U)],onChange:function(){return at(Q(U))},value:Q(U),label:U.isSelf?d.jsx(zs,{children:Ae}):Ae,name:"brand-checkbox-".concat(U.id),disabled:!tr(Q(U),U)}),U.type==="group"&&d.jsx(EA,{className:"yst-h-4 yst-w-4 yst-text-slate-400"})]})})},LoadingComponent:function(ye){var Ae=ye.id,U=Ae===void 0?"":Ae;return d.jsxs("div",{className:"yst-flex",children:[d.jsx(C.Checkbox,{id:"loading-row-checkbox-".concat(U),value:"loading",label:"",disabled:!0,name:"brand-checkbox-".concat(U)})," ",d.jsx(C.SkeletonLoader,{className:"yst-h-6 yst-w-32",id:"loading-row-skeleton-".concat(U)})]})}},{Header:"Actions",accessor:"id",Cell:function(ye){var Ae=ye.value,U=ye.row;return d.jsx(d.Fragment,{children:U.type==="group"?d.jsxs(C.Button,{variant:"tertiary",size:"small",onClick:function(){return je(String(Ae!=null?Ae:""))},className:"yst-px-0",disabled:!tr(Q(U),U),children:[d.jsx(Gm,{className:"yst-h-4 yst-w-4"}),"Edit group"]}):void 0})},LoadingComponent:function(){return d.jsx(C.SkeletonLoader,{className:"yst-h-6 yst-w-24"})}}];return d.jsxs(C.Paper,{className:"yst-mx-auto yst-max-w-2xl",children:[d.jsx(rg,{title:"Brand list ".concat(""),children:d.jsx("p",{children:"These are the brands found in responses to your example prompts. Group related brands to improve your analysis. You can rename or exclude irrelevant brands, and new brands will be added automatically if they appear in future analysis runs."})}),d.jsxs(C.Paper.Content,{children:[d.jsx("div",{className:"yst-mb-6",children:d.jsx(C.TextInput,{id:"brand-search",label:"Search brands",placeholder:"Search brands",value:h,onChange:Nt})}),d.jsx("div",{className:"yst-mb-6",children:d.jsxs(C.Table,{columns:Ue,className:"yst-w-full",variant:"minimal",children:[d.jsx(C.Table.Head,{children:d.jsx(C.Table.Row,{children:Ue.map(function(pe){return d.jsx(C.Table.Header,{children:pe.Header},pe.accessor)})})}),d.jsx(C.Table.Body,{children:G?[1,2,3].map(function(pe,ye){return d.jsx(C.Table.Row,{children:Ue.map(function(Ae,U){return d.jsx(C.Table.Cell,{children:d.jsx(Ae.LoadingComponent,{id:"skeleton-".concat(ye,"-").concat(U)},Ae.accessor)},"cell-".concat(U))})},ye)}):ae.length===0?d.jsx(C.Table.Row,{children:d.jsx(C.Table.Cell,{colSpan:Ue.length,children:d.jsxs("div",{className:"yst-py-12 yst-text-center",children:[d.jsx("h3",{className:"yst-mt-4 yst-text-lg yst-font-medium yst-text-slate-900",children:"No brands found"}),d.jsx("p",{className:"yst-mt-2 yst-text-sm yst-text-slate-500",children:h?'No brands match "'.concat(h,'". Try a different search term.'):"No brands have been found yet. Run an analysis to discover brands."}),h&&d.jsx(C.Button,{variant:"secondary",size:"small",onClick:function(){y(""),A(1)},className:"yst-mt-4",children:"Clear search"})]})})}):ae.map(function(pe){return d.jsx(C.Table.Row,{children:Ue.map(function(ye){return d.jsx(C.Table.Cell,{children:ye.Cell?ye.Cell({value:pe[ye.accessor],row:pe}):pe[ye.accessor]},ye.accessor)})},pe.id)})})]})}),d.jsxs("div",{className:"yst-flex yst-items-center yst-justify-between",children:[d.jsxs(C.Button,{variant:"secondary",onClick:Le,className:"yst-mb-0 yst-gap-2",disabled:Z.length<2,children:[d.jsx(Sw,{})," Group brands"]}),d.jsx(C.Pagination,{variant:"text",current:g,total:ne,onNavigate:A,className:"yst-flex-row",screenReaderTextPrevious:"Previous page",screenReaderTextNext:"Next page"})]})]}),d.jsx(Ec,{children:d.jsx("div",{className:"yst-flex yst-items-center yst-justify-end yst-gap-4",children:s?d.jsxs(d.Fragment,{children:[d.jsx(C.Button,{variant:"secondary",className:"yst-mb-0",onClick:Xe,children:"Discard changes"}),d.jsx(C.Button,{variant:"primary",className:"yst-mb-0",onClick:Ye,children:"Save changes"})]}):d.jsx(C.Button,{as:Cr,to:"/brands/".concat(k),variant:"tertiary",className:"yst-mb-0",children:"Return to analysis"})})}),d.jsx(Vj,{isOpen:N,onClose:pn,brandId:k,brandsToGroup:X.filter(function(pe){return Z.includes(Q(pe))}),onGroupCreated:nt}),d.jsx(Hj,{isOpen:z,onClose:Tn,groupToEdit:B,allBrands:X})]})};const sE=Object.freeze(Object.defineProperty({__proto__:null,default:iE},Symbol.toStringTag,{value:"Module"}));function Yu(t){var e=t.children,n=t.description,r=t.title;return d.jsxs(C.Card.Header,{className:"yst-h-auto yst-flex-col yst-items-start yst-gap-0 yst-border-b-[1px] yst-border-b-slate-200 yst-bg-white yst-py-8",children:[r&&d.jsx(C.Title,{className:ie({"yst-mb-3":n||e}),children:r}),n&&d.jsx("p",{children:n}),e]})}function aE(t,e){const n={};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const oE=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lE=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uE={};function dp(t,e){return(uE.jsx?lE:oE).test(t)}const cE=/[ \t\n\f\r]/g;function dE(t){return typeof t=="object"?t.type==="text"?fp(t.value):!1:fp(t)}function fp(t){return t.replace(cE,"")===""}class va{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}}va.prototype.normal={};va.prototype.property={};va.prototype.space=void 0;function ag(t,e){const n={},r={};for(const i of t)Object.assign(n,i.property),Object.assign(r,i.normal);return new va(n,r,e)}function Vu(t){return t.toLowerCase()}class Lt{constructor(e,n){this.attribute=n,this.property=e}}Lt.prototype.attribute="";Lt.prototype.booleanish=!1;Lt.prototype.boolean=!1;Lt.prototype.commaOrSpaceSeparated=!1;Lt.prototype.commaSeparated=!1;Lt.prototype.defined=!1;Lt.prototype.mustUseProperty=!1;Lt.prototype.number=!1;Lt.prototype.overloadedBoolean=!1;Lt.prototype.property="";Lt.prototype.spaceSeparated=!1;Lt.prototype.space=void 0;let fE=0;const be=li(),Ve=li(),Ku=li(),K=li(),Be=li(),wi=li(),_t=li();function li(){return 2**++fE}const Xu=Object.freeze(Object.defineProperty({__proto__:null,boolean:be,booleanish:Ve,commaOrSpaceSeparated:_t,commaSeparated:wi,number:K,overloadedBoolean:Ku,spaceSeparated:Be},Symbol.toStringTag,{value:"Module"})),Il=Object.keys(Xu);class Wc extends Lt{constructor(e,n,r,i){let s=-1;if(super(e,n),hp(this,"space",i),typeof r=="number")for(;++s<Il.length;){const a=Il[s];hp(this,Il[s],(r&Xu[a])===Xu[a])}}}Wc.prototype.defined=!0;function hp(t,e,n){n&&(t[e]=n)}function Ki(t){const e={},n={};for(const[r,i]of Object.entries(t.properties)){const s=new Wc(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),e[r]=s,n[Vu(r)]=r,n[Vu(s.attribute)]=r}return new va(e,n,t.space)}const og=Ki({properties:{ariaActiveDescendant:null,ariaAtomic:Ve,ariaAutoComplete:null,ariaBusy:Ve,ariaChecked:Ve,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:Be,ariaCurrent:null,ariaDescribedBy:Be,ariaDetails:null,ariaDisabled:Ve,ariaDropEffect:Be,ariaErrorMessage:null,ariaExpanded:Ve,ariaFlowTo:Be,ariaGrabbed:Ve,ariaHasPopup:null,ariaHidden:Ve,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Be,ariaLevel:K,ariaLive:null,ariaModal:Ve,ariaMultiLine:Ve,ariaMultiSelectable:Ve,ariaOrientation:null,ariaOwns:Be,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:Ve,ariaReadOnly:Ve,ariaRelevant:null,ariaRequired:Ve,ariaRoleDescription:Be,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:Ve,ariaSetSize:K,ariaSort:null,ariaValueMax:K,ariaValueMin:K,ariaValueNow:K,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function lg(t,e){return e in t?t[e]:e}function ug(t,e){return lg(t,e.toLowerCase())}const hE=Ki({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:wi,acceptCharset:Be,accessKey:Be,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:Be,autoFocus:be,autoPlay:be,blocking:Be,capture:null,charSet:null,checked:be,cite:null,className:Be,cols:K,colSpan:null,content:null,contentEditable:Ve,controls:be,controlsList:Be,coords:K|wi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:be,defer:be,dir:null,dirName:null,disabled:be,download:Ku,draggable:Ve,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:Be,height:K,hidden:Ku,high:K,href:null,hrefLang:null,htmlFor:Be,httpEquiv:Be,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:Be,itemRef:Be,itemScope:be,itemType:Be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:be,muted:be,name:null,nonce:null,noModule:be,noValidate:be,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:be,optimum:K,pattern:null,ping:Be,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:Be,required:be,reversed:be,rows:K,rowSpan:K,sandbox:Be,scope:null,scoped:be,seamless:be,selected:be,shadowRootClonable:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:Ve,src:null,srcDoc:null,srcLang:null,srcSet:null,start:K,step:null,style:null,tabIndex:K,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:Ve,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Be,axis:null,background:null,bgColor:null,border:K,borderColor:null,bottomMargin:K,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:be,declare:be,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:Ve,standby:null,summary:null,text:null,topMargin:K,valueType:null,version:null,vAlign:null,vLink:null,vSpace:K,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:be,disableRemotePlayback:be,prefix:null,property:null,results:K,security:null,unselectable:null},space:"html",transform:ug}),pE=Ki({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:_t,accentHeight:K,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:K,amplitude:K,arabicForm:null,ascent:K,attributeName:null,attributeType:null,azimuth:K,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:K,by:null,calcMode:null,capHeight:K,className:Be,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:K,diffuseConstant:K,direction:null,display:null,dur:null,divisor:K,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:K,enableBackground:null,end:null,event:null,exponent:K,externalResourcesRequired:null,fill:null,fillOpacity:K,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:wi,g2:wi,glyphName:wi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:K,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:K,horizOriginX:K,horizOriginY:K,id:null,ideographic:K,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:K,k:K,k1:K,k2:K,k3:K,k4:K,kernelMatrix:_t,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:K,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:K,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:K,overlineThickness:K,paintOrder:null,panose1:null,path:null,pathLength:K,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:K,pointsAtY:K,pointsAtZ:K,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_t,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_t,rev:_t,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_t,requiredFeatures:_t,requiredFonts:_t,requiredFormats:_t,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:K,specularExponent:K,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:K,strikethroughThickness:K,string:null,stroke:null,strokeDashArray:_t,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:K,strokeOpacity:K,strokeWidth:null,style:null,surfaceScale:K,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_t,tabIndex:K,tableValues:null,target:null,targetX:K,targetY:K,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_t,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:K,underlineThickness:K,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:K,values:null,vAlphabetic:K,vMathematical:K,vectorEffect:null,vHanging:K,vIdeographic:K,version:null,vertAdvY:K,vertOriginX:K,vertOriginY:K,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:K,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:lg}),cg=Ki({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),dg=Ki({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ug}),fg=Ki({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),yE={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},mE=/[A-Z]/g,pp=/-[a-z]/g,gE=/^data[-\w.:]+$/i;function vE(t,e){const n=Vu(e);let r=e,i=Lt;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&gE.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(pp,xE);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!pp.test(s)){let a=s.replace(mE,bE);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}i=Wc}return new i(r,e)}function bE(t){return"-"+t.toLowerCase()}function xE(t){return t.charAt(1).toUpperCase()}const wE=ag([og,hE,cg,dg,fg],"html"),Qc=ag([og,pE,cg,dg,fg],"svg");function AE(t){return t.join(" ").trim()}var fi={},Ml,yp;function SE(){if(yp)return Ml;yp=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
60
- `,u="/",c="*",f="",p="comment",h="declaration";function y(v,g){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];g=g||{};var A=1,E=1;function j(L){var P=L.match(e);P&&(A+=P.length);var D=L.lastIndexOf(l);E=~D?L.length-D:E+L.length}function S(){var L={line:A,column:E};return function(P){return P.position=new b(L),N(),P}}function b(L){this.start=L,this.end={line:A,column:E},this.source=g.source}b.prototype.content=v;function w(L){var P=new Error(g.source+":"+A+":"+E+": "+L);if(P.reason=L,P.filename=g.source,P.line=A,P.column=E,P.source=v,!g.silent)throw P}function x(L){var P=L.exec(v);if(P){var D=P[0];return j(D),v=v.slice(D.length),P}}function N(){x(n)}function _(L){var P;for(L=L||[];P=I();)P!==!1&&L.push(P);return L}function I(){var L=S();if(!(u!=v.charAt(0)||c!=v.charAt(1))){for(var P=2;f!=v.charAt(P)&&(c!=v.charAt(P)||u!=v.charAt(P+1));)++P;if(P+=2,f===v.charAt(P-1))return w("End of comment missing");var D=v.slice(2,P-2);return E+=2,j(D),v=v.slice(P),E+=2,L({type:p,comment:D})}}function T(){var L=S(),P=x(r);if(P){if(I(),!x(i))return w("property missing ':'");var D=x(s),B=L({type:h,property:m(P[0].replace(t,f)),value:D?m(D[0].replace(t,f)):f});return x(a),B}}function z(){var L=[];_(L);for(var P;P=T();)P!==!1&&(L.push(P),_(L));return L}return N(),z()}function m(v){return v?v.replace(o,f):f}return Ml=y,Ml}var mp;function CE(){if(mp)return fi;mp=1;var t=fi&&fi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(fi,"__esModule",{value:!0}),fi.default=n;const e=t(SE());function n(r,i){let s=null;if(!r||typeof r!="string")return s;const a=(0,e.default)(r),o=typeof i=="function";return a.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:c}=l;o?i(u,c,l):c&&(s=s||{},s[u]=c)}),s}return fi}var hs={},gp;function kE(){if(gp)return hs;gp=1,Object.defineProperty(hs,"__esModule",{value:!0}),hs.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(u){return!u||n.test(u)||t.test(u)},a=function(u,c){return c.toUpperCase()},o=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),s(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(i,o):u=u.replace(r,o),u.replace(e,a))};return hs.camelCase=l,hs}var ps,vp;function jE(){if(vp)return ps;vp=1;var t=ps&&ps.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},e=t(CE()),n=kE();function r(i,s){var a={};return!i||typeof i!="string"||(0,e.default)(i,function(o,l){o&&l&&(a[(0,n.camelCase)(o,s)]=l)}),a}return r.default=r,ps=r,ps}var EE=jE();const OE=Oo(EE),hg=pg("end"),Gc=pg("start");function pg(t){return e;function e(n){const r=n&&n.position&&n.position[t]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function PE(t){const e=Gc(t),n=hg(t);if(e&&n)return{start:e,end:n}}function Is(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?bp(t.position):"start"in t||"end"in t?bp(t):"line"in t||"column"in t?Ju(t):""}function Ju(t){return xp(t&&t.line)+":"+xp(t&&t.column)}function bp(t){return Ju(t&&t.start)+"-"+Ju(t&&t.end)}function xp(t){return t&&typeof t=="number"?t:1}class pt extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},a=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof e=="string"?i=e:!s.cause&&e&&(a=!0,i=e.message,s.cause=e),!s.ruleId&&!s.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?s.ruleId=r:(s.source=r.slice(0,l),s.ruleId=r.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){const l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=Is(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=a&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}pt.prototype.file="";pt.prototype.name="";pt.prototype.reason="";pt.prototype.message="";pt.prototype.stack="";pt.prototype.column=void 0;pt.prototype.line=void 0;pt.prototype.ancestors=void 0;pt.prototype.cause=void 0;pt.prototype.fatal=void 0;pt.prototype.place=void 0;pt.prototype.ruleId=void 0;pt.prototype.source=void 0;const Yc={}.hasOwnProperty,TE=new Map,IE=/[A-Z]/g,ME=new Set(["table","tbody","thead","tfoot","tr"]),LE=new Set(["td","th"]),yg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function NE(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=HE(n,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=UE(n,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Qc:wE,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},s=mg(i,t,void 0);return s&&typeof s!="string"?s:i.create(t,i.Fragment,{children:s||void 0},void 0)}function mg(t,e,n){if(e.type==="element")return RE(t,e,n);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return _E(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return BE(t,e,n);if(e.type==="mdxjsEsm")return DE(t,e);if(e.type==="root")return FE(t,e,n);if(e.type==="text")return zE(t,e)}function RE(t,e,n){const r=t.schema;let i=r;e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Qc,t.schema=i),t.ancestors.push(e);const s=vg(t,e.tagName,!1),a=qE(t,e);let o=Kc(t,e);return ME.has(e.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!dE(l):!0})),gg(t,a,s,e),Vc(a,o),t.ancestors.pop(),t.schema=r,t.create(e,s,a,n)}function _E(t,e){if(e.data&&e.data.estree&&t.evaluater){const r=e.data.estree.body[0];return r.type,t.evaluater.evaluateExpression(r.expression)}ea(t,e.position)}function DE(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);ea(t,e.position)}function BE(t,e,n){const r=t.schema;let i=r;e.name==="svg"&&r.space==="html"&&(i=Qc,t.schema=i),t.ancestors.push(e);const s=e.name===null?t.Fragment:vg(t,e.name,!0),a=WE(t,e),o=Kc(t,e);return gg(t,a,s,e),Vc(a,o),t.ancestors.pop(),t.schema=r,t.create(e,s,a,n)}function FE(t,e,n){const r={};return Vc(r,Kc(t,e)),t.create(e,t.Fragment,r,n)}function zE(t,e){return e.value}function gg(t,e,n,r){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=r)}function Vc(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function UE(t,e,n){return r;function r(i,s,a,o){const u=Array.isArray(a.children)?n:e;return o?u(s,a,o):u(s,a)}}function HE(t,e){return n;function n(r,i,s,a){const o=Array.isArray(s.children),l=Gc(r);return e(i,s,a,o,{columnNumber:l?l.column-1:void 0,fileName:t,lineNumber:l?l.line:void 0},void 0)}}function qE(t,e){const n={};let r,i;for(i in e.properties)if(i!=="children"&&Yc.call(e.properties,i)){const s=QE(t,i,e.properties[i]);if(s){const[a,o]=s;t.tableCellAlignToStyle&&a==="align"&&typeof o=="string"&&LE.has(e.tagName)?r=o:n[a]=o}}if(r){const s=n.style||(n.style={});s[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function WE(t,e){const n={};for(const r of e.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&t.evaluater){const s=r.data.estree.body[0];s.type;const a=s.expression;a.type;const o=a.properties[0];o.type,Object.assign(n,t.evaluater.evaluateExpression(o.argument))}else ea(t,e.position);else{const i=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&t.evaluater){const o=r.value.data.estree.body[0];o.type,s=t.evaluater.evaluateExpression(o.expression)}else ea(t,e.position);else s=r.value===null?!0:r.value;n[i]=s}return n}function Kc(t,e){const n=[];let r=-1;const i=t.passKeys?new Map:TE;for(;++r<e.children.length;){const s=e.children[r];let a;if(t.passKeys){const l=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(l){const u=i.get(l)||0;a=l+"-"+u,i.set(l,u+1)}}const o=mg(t,s,a);o!==void 0&&n.push(o)}return n}function QE(t,e,n){const r=vE(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?aE(n):AE(n)),r.property==="style"){let i=typeof n=="object"?n:GE(t,String(n));return t.stylePropertyNameCase==="css"&&(i=YE(i)),["style",i]}return[t.elementAttributeNameCase==="react"&&r.space?yE[r.property]||r.property:r.attribute,n]}}function GE(t,e){try{return OE(e,{reactCompat:!0})}catch(n){if(t.ignoreInvalidStyle)return{};const r=n,i=new pt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=yg+"#cannot-parse-style-attribute",i}}function vg(t,e,n){let r;if(!n)r={type:"Literal",value:e};else if(e.includes(".")){const i=e.split(".");let s=-1,a;for(;++s<i.length;){const o=dp(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};a=a?{type:"MemberExpression",object:a,property:o,computed:!!(s&&o.type==="Literal"),optional:!1}:o}r=a}else r=dp(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(r.type==="Literal"){const i=r.value;return Yc.call(t.components,i)?t.components[i]:i}if(t.evaluater)return t.evaluater.evaluateExpression(r);ea(t)}function ea(t,e){const n=new pt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=yg+"#cannot-handle-mdx-estrees-without-createevaluater",n}function YE(t){const e={};let n;for(n in t)Yc.call(t,n)&&(e[VE(n)]=t[n]);return e}function VE(t){let e=t.replace(IE,KE);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function KE(t){return"-"+t.toLowerCase()}const Ll={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},XE={};function JE(t,e){const n=XE,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return bg(t,r,i)}function bg(t,e,n){if(ZE(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return wp(t.children,e,n)}return Array.isArray(t)?wp(t,e,n):""}function wp(t,e,n){const r=[];let i=-1;for(;++i<t.length;)r[i]=bg(t[i],e,n);return r.join("")}function ZE(t){return!!(t&&typeof t=="object")}const Ap=document.createElement("i");function Xc(t){const e="&"+t+";";Ap.innerHTML=e;const n=Ap.textContent;return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function Pn(t,e,n,r){const i=t.length;let s=0,a;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(e,n),t.splice(...a);else for(n&&t.splice(e,n);s<r.length;)a=r.slice(s,s+1e4),a.unshift(e,0),t.splice(...a),s+=1e4,e+=1e4}function tn(t,e){return t.length>0?(Pn(t,t.length,0,e),t):e}const Sp={}.hasOwnProperty;function $E(t){const e={};let n=-1;for(;++n<t.length;)e8(e,t[n]);return e}function e8(t,e){let n;for(n in e){const i=(Sp.call(t,n)?t[n]:void 0)||(t[n]={}),s=e[n];let a;if(s)for(a in s){Sp.call(i,a)||(i[a]=[]);const o=s[a];t8(i[a],Array.isArray(o)?o:o?[o]:[])}}}function t8(t,e){let n=-1;const r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);Pn(t,0,0,r)}function xg(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ai(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const En=jr(/[A-Za-z]/),Vt=jr(/[\dA-Za-z]/),n8=jr(/[#-'*+\--9=?A-Z^-~]/);function Zu(t){return t!==null&&(t<32||t===127)}const $u=jr(/\d/),r8=jr(/[\dA-Fa-f]/),i8=jr(/[!-/:-@[-`{-~]/);function de(t){return t!==null&&t<-2}function Tt(t){return t!==null&&(t<0||t===32)}function Oe(t){return t===-2||t===-1||t===32}const s8=jr(/\p{P}|\p{S}/u),a8=jr(/\s/);function jr(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function Xi(t){const e=[];let n=-1,r=0,i=0;for(;++n<t.length;){const s=t.charCodeAt(n);let a="";if(s===37&&Vt(t.charCodeAt(n+1))&&Vt(t.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){const o=t.charCodeAt(n+1);s<56320&&o>56319&&o<57344?(a=String.fromCharCode(s,o),i=1):a="�"}else a=String.fromCharCode(s);a&&(e.push(t.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return e.join("")+t.slice(r)}function ze(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return a;function a(l){return Oe(l)?(t.enter(n),o(l)):e(l)}function o(l){return Oe(l)&&s++<i?(t.consume(l),o):(t.exit(n),e(l))}}const o8={tokenize:l8};function l8(t){const e=t.attempt(this.parser.constructs.contentInitial,r,i);let n;return e;function r(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),ze(t,e,"linePrefix")}function i(o){return t.enter("paragraph"),s(o)}function s(o){const l=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(o)}function a(o){if(o===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(o);return}return de(o)?(t.consume(o),t.exit("chunkText"),s):(t.consume(o),a)}}const u8={tokenize:c8},Cp={tokenize:d8};function c8(t){const e=this,n=[];let r=0,i,s,a;return o;function o(E){if(r<n.length){const j=n[r];return e.containerState=j[1],t.attempt(j[0].continuation,l,u)(E)}return u(E)}function l(E){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&A();const j=e.events.length;let S=j,b;for(;S--;)if(e.events[S][0]==="exit"&&e.events[S][1].type==="chunkFlow"){b=e.events[S][1].end;break}g(r);let w=j;for(;w<e.events.length;)e.events[w][1].end={...b},w++;return Pn(e.events,S+1,0,e.events.slice(j)),e.events.length=w,u(E)}return o(E)}function u(E){if(r===n.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return y(E);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(Cp,c,f)(E)}function c(E){return i&&A(),g(r),p(E)}function f(E){return e.parser.lazy[e.now().line]=r!==n.length,a=e.now().offset,y(E)}function p(E){return e.containerState={},t.attempt(Cp,h,y)(E)}function h(E){return r++,n.push([e.currentConstruct,e.containerState]),p(E)}function y(E){if(E===null){i&&A(),g(0),t.consume(E);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),m(E)}function m(E){if(E===null){v(t.exit("chunkFlow"),!0),g(0),t.consume(E);return}return de(E)?(t.consume(E),v(t.exit("chunkFlow")),r=0,e.interrupt=void 0,o):(t.consume(E),m)}function v(E,j){const S=e.sliceStream(E);if(j&&S.push(null),E.previous=s,s&&(s.next=E),s=E,i.defineSkip(E.start),i.write(S),e.parser.lazy[E.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<a&&(!i.events[b][1].end||i.events[b][1].end.offset>a))return;const w=e.events.length;let x=w,N,_;for(;x--;)if(e.events[x][0]==="exit"&&e.events[x][1].type==="chunkFlow"){if(N){_=e.events[x][1].end;break}N=!0}for(g(r),b=w;b<e.events.length;)e.events[b][1].end={..._},b++;Pn(e.events,x+1,0,e.events.slice(w)),e.events.length=b}}function g(E){let j=n.length;for(;j-- >E;){const S=n[j];e.containerState=S[1],S[0].exit.call(e,t)}n.length=E}function A(){i.write([null]),s=void 0,i=void 0,e.containerState._closeFlow=void 0}}function d8(t,e,n){return ze(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function kp(t){if(t===null||Tt(t)||a8(t))return 1;if(s8(t))return 2}function Jc(t,e,n){const r=[];let i=-1;for(;++i<t.length;){const s=t[i].resolveAll;s&&!r.includes(s)&&(e=s(e,n),r.push(s))}return e}const ec={name:"attention",resolveAll:f8,tokenize:h8};function f8(t,e){let n=-1,r,i,s,a,o,l,u,c;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(r=n;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&e.sliceSerialize(t[r][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[r][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;l=t[r][1].end.offset-t[r][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const f={...t[r][1].end},p={...t[n][1].start};jp(f,-l),jp(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...t[r][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:p},s={type:l>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},t[r][1].end={...a.start},t[n][1].start={...o.end},u=[],t[r][1].end.offset-t[r][1].start.offset&&(u=tn(u,[["enter",t[r][1],e],["exit",t[r][1],e]])),u=tn(u,[["enter",i,e],["enter",a,e],["exit",a,e],["enter",s,e]]),u=tn(u,Jc(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),u=tn(u,[["exit",s,e],["enter",o,e],["exit",o,e],["exit",i,e]]),t[n][1].end.offset-t[n][1].start.offset?(c=2,u=tn(u,[["enter",t[n][1],e],["exit",t[n][1],e]])):c=0,Pn(t,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function h8(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=kp(r);let s;return a;function a(l){return s=l,t.enter("attentionSequence"),o(l)}function o(l){if(l===s)return t.consume(l),o;const u=t.exit("attentionSequence"),c=kp(l),f=!c||c===2&&i||n.includes(l),p=!i||i===2&&c||n.includes(r);return u._open=!!(s===42?f:f&&(i||!p)),u._close=!!(s===42?p:p&&(c||!f)),e(l)}}function jp(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const p8={name:"autolink",tokenize:y8};function y8(t,e,n){let r=0;return i;function i(h){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(h),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(h){return En(h)?(t.consume(h),a):h===64?n(h):u(h)}function a(h){return h===43||h===45||h===46||Vt(h)?(r=1,o(h)):u(h)}function o(h){return h===58?(t.consume(h),r=0,l):(h===43||h===45||h===46||Vt(h))&&r++<32?(t.consume(h),o):(r=0,u(h))}function l(h){return h===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(h),t.exit("autolinkMarker"),t.exit("autolink"),e):h===null||h===32||h===60||Zu(h)?n(h):(t.consume(h),l)}function u(h){return h===64?(t.consume(h),c):n8(h)?(t.consume(h),u):n(h)}function c(h){return Vt(h)?f(h):n(h)}function f(h){return h===46?(t.consume(h),r=0,c):h===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(h),t.exit("autolinkMarker"),t.exit("autolink"),e):p(h)}function p(h){if((h===45||Vt(h))&&r++<63){const y=h===45?p:f;return t.consume(h),y}return n(h)}}const Zo={partial:!0,tokenize:m8};function m8(t,e,n){return r;function r(s){return Oe(s)?ze(t,i,"linePrefix")(s):i(s)}function i(s){return s===null||de(s)?e(s):n(s)}}const wg={continuation:{tokenize:v8},exit:b8,name:"blockQuote",tokenize:g8};function g8(t,e,n){const r=this;return i;function i(a){if(a===62){const o=r.containerState;return o.open||(t.enter("blockQuote",{_container:!0}),o.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),s}return n(a)}function s(a){return Oe(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(a))}}function v8(t,e,n){const r=this;return i;function i(a){return Oe(a)?ze(t,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return t.attempt(wg,e,n)(a)}}function b8(t){t.exit("blockQuote")}const Ag={name:"characterEscape",tokenize:x8};function x8(t,e,n){return r;function r(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),i}function i(s){return i8(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(s)}}const Sg={name:"characterReference",tokenize:w8};function w8(t,e,n){const r=this;let i=0,s,a;return o;function o(f){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),l}function l(f){return f===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(f),t.exit("characterReferenceMarkerNumeric"),u):(t.enter("characterReferenceValue"),s=31,a=Vt,c(f))}function u(f){return f===88||f===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(f),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,a=r8,c):(t.enter("characterReferenceValue"),s=7,a=$u,c(f))}function c(f){if(f===59&&i){const p=t.exit("characterReferenceValue");return a===Vt&&!Xc(r.sliceSerialize(p))?n(f):(t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return a(f)&&i++<s?(t.consume(f),c):n(f)}}const Ep={partial:!0,tokenize:S8},Op={concrete:!0,name:"codeFenced",tokenize:A8};function A8(t,e,n){const r=this,i={partial:!0,tokenize:S};let s=0,a=0,o;return l;function l(b){return u(b)}function u(b){const w=r.events[r.events.length-1];return s=w&&w[1].type==="linePrefix"?w[2].sliceSerialize(w[1],!0).length:0,o=b,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),c(b)}function c(b){return b===o?(a++,t.consume(b),c):a<3?n(b):(t.exit("codeFencedFenceSequence"),Oe(b)?ze(t,f,"whitespace")(b):f(b))}function f(b){return b===null||de(b)?(t.exit("codeFencedFence"),r.interrupt?e(b):t.check(Ep,m,j)(b)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||de(b)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),f(b)):Oe(b)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ze(t,h,"whitespace")(b)):b===96&&b===o?n(b):(t.consume(b),p)}function h(b){return b===null||de(b)?f(b):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===null||de(b)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),f(b)):b===96&&b===o?n(b):(t.consume(b),y)}function m(b){return t.attempt(i,j,v)(b)}function v(b){return t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),g}function g(b){return s>0&&Oe(b)?ze(t,A,"linePrefix",s+1)(b):A(b)}function A(b){return b===null||de(b)?t.check(Ep,m,j)(b):(t.enter("codeFlowValue"),E(b))}function E(b){return b===null||de(b)?(t.exit("codeFlowValue"),A(b)):(t.consume(b),E)}function j(b){return t.exit("codeFenced"),e(b)}function S(b,w,x){let N=0;return _;function _(P){return b.enter("lineEnding"),b.consume(P),b.exit("lineEnding"),I}function I(P){return b.enter("codeFencedFence"),Oe(P)?ze(b,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):T(P)}function T(P){return P===o?(b.enter("codeFencedFenceSequence"),z(P)):x(P)}function z(P){return P===o?(N++,b.consume(P),z):N>=a?(b.exit("codeFencedFenceSequence"),Oe(P)?ze(b,L,"whitespace")(P):L(P)):x(P)}function L(P){return P===null||de(P)?(b.exit("codeFencedFence"),w(P)):x(P)}}}function S8(t,e,n){const r=this;return i;function i(a){return a===null?n(a):(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),s)}function s(a){return r.parser.lazy[r.now().line]?n(a):e(a)}}const Nl={name:"codeIndented",tokenize:k8},C8={partial:!0,tokenize:j8};function k8(t,e,n){const r=this;return i;function i(u){return t.enter("codeIndented"),ze(t,s,"linePrefix",5)(u)}function s(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):de(u)?t.attempt(C8,a,l)(u):(t.enter("codeFlowValue"),o(u))}function o(u){return u===null||de(u)?(t.exit("codeFlowValue"),a(u)):(t.consume(u),o)}function l(u){return t.exit("codeIndented"),e(u)}}function j8(t,e,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):de(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),i):ze(t,s,"linePrefix",5)(a)}function s(a){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(a):de(a)?i(a):n(a)}}const E8={name:"codeText",previous:P8,resolve:O8,tokenize:T8};function O8(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="codeTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}function P8(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function T8(t,e,n){let r=0,i,s;return a;function a(f){return t.enter("codeText"),t.enter("codeTextSequence"),o(f)}function o(f){return f===96?(t.consume(f),r++,o):(t.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(t.enter("space"),t.consume(f),t.exit("space"),l):f===96?(s=t.enter("codeTextSequence"),i=0,c(f)):de(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),l):(t.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||de(f)?(t.exit("codeTextData"),l(f)):(t.consume(f),u)}function c(f){return f===96?(t.consume(f),i++,c):i===r?(t.exit("codeTextSequence"),t.exit("codeText"),e(f)):(s.type="codeTextData",u(f))}}class I8{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const r=n==null?Number.POSITIVE_INFINITY:n;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){const i=n||0;this.setCursor(Math.trunc(e));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&ys(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),ys(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ys(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);ys(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);ys(this.left,n.reverse())}}}function ys(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function Cg(t){const e={};let n=-1,r,i,s,a,o,l,u;const c=new I8(t);for(;++n<c.length;){for(;n in e;)n=e[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,s=0,s<l.length&&l[s][1].type==="lineEndingBlank"&&(s+=2),s<l.length&&l[s][1].type==="content"))for(;++s<l.length&&l[s][1].type!=="content";)l[s][1].type==="chunkText"&&(l[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,M8(c,n)),n=e[n],u=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(a=c.get(s),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=s);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},o=c.slice(i,n),o.unshift(r),c.splice(i,n-i+1,o))}}return Pn(t,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function M8(t,e){const n=t.get(e)[1],r=t.get(e)[2];let i=e-1;const s=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const o=a.events,l=[],u={};let c,f,p=-1,h=n,y=0,m=0;const v=[m];for(;h;){for(;t.get(++i)[1]!==h;);s.push(i),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),f&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(m=p+1,v.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),p=v.length;p--;){const g=o.slice(v[p],v[p+1]),A=s.pop();l.push([A,A+g.length-1]),t.splice(A,2,g)}for(l.reverse(),p=-1;++p<l.length;)u[y+l[p][0]]=y+l[p][1],y+=l[p][1]-l[p][0]-1;return u}const L8={resolve:R8,tokenize:_8},N8={partial:!0,tokenize:D8};function R8(t){return Cg(t),t}function _8(t,e){let n;return r;function r(o){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?s(o):de(o)?t.check(N8,a,s)(o):(t.consume(o),i)}function s(o){return t.exit("chunkContent"),t.exit("content"),e(o)}function a(o){return t.consume(o),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function D8(t,e,n){const r=this;return i;function i(a){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),ze(t,s,"linePrefix")}function s(a){if(a===null||de(a))return n(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(a):t.interrupt(r.parser.constructs.flow,n,e)(a)}}function kg(t,e,n,r,i,s,a,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(g){return g===60?(t.enter(r),t.enter(i),t.enter(s),t.consume(g),t.exit(s),p):g===null||g===32||g===41||Zu(g)?n(g):(t.enter(r),t.enter(a),t.enter(o),t.enter("chunkString",{contentType:"string"}),m(g))}function p(g){return g===62?(t.enter(s),t.consume(g),t.exit(s),t.exit(i),t.exit(r),e):(t.enter(o),t.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===62?(t.exit("chunkString"),t.exit(o),p(g)):g===null||g===60||de(g)?n(g):(t.consume(g),g===92?y:h)}function y(g){return g===60||g===62||g===92?(t.consume(g),h):h(g)}function m(g){return!c&&(g===null||g===41||Tt(g))?(t.exit("chunkString"),t.exit(o),t.exit(a),t.exit(r),e(g)):c<u&&g===40?(t.consume(g),c++,m):g===41?(t.consume(g),c--,m):g===null||g===32||g===40||Zu(g)?n(g):(t.consume(g),g===92?v:m)}function v(g){return g===40||g===41||g===92?(t.consume(g),m):m(g)}}function jg(t,e,n,r,i,s){const a=this;let o=0,l;return u;function u(h){return t.enter(r),t.enter(i),t.consume(h),t.exit(i),t.enter(s),c}function c(h){return o>999||h===null||h===91||h===93&&!l||h===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):h===93?(t.exit(s),t.enter(i),t.consume(h),t.exit(i),t.exit(r),e):de(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||de(h)||o++>999?(t.exit("chunkString"),c(h)):(t.consume(h),l||(l=!Oe(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(t.consume(h),o++,f):f(h)}}function Eg(t,e,n,r,i,s){let a;return o;function o(p){return p===34||p===39||p===40?(t.enter(r),t.enter(i),t.consume(p),t.exit(i),a=p===40?41:p,l):n(p)}function l(p){return p===a?(t.enter(i),t.consume(p),t.exit(i),t.exit(r),e):(t.enter(s),u(p))}function u(p){return p===a?(t.exit(s),l(a)):p===null?n(p):de(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),ze(t,u,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===a||p===null||de(p)?(t.exit("chunkString"),u(p)):(t.consume(p),p===92?f:c)}function f(p){return p===a||p===92?(t.consume(p),c):c(p)}}function Ms(t,e){let n;return r;function r(i){return de(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):Oe(i)?ze(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}const B8={name:"definition",tokenize:z8},F8={partial:!0,tokenize:U8};function z8(t,e,n){const r=this;let i;return s;function s(h){return t.enter("definition"),a(h)}function a(h){return jg.call(r,t,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return i=Ai(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(t.enter("definitionMarker"),t.consume(h),t.exit("definitionMarker"),l):n(h)}function l(h){return Tt(h)?Ms(t,u)(h):u(h)}function u(h){return kg(t,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return t.attempt(F8,f,f)(h)}function f(h){return Oe(h)?ze(t,p,"whitespace")(h):p(h)}function p(h){return h===null||de(h)?(t.exit("definition"),r.parser.defined.push(i),e(h)):n(h)}}function U8(t,e,n){return r;function r(o){return Tt(o)?Ms(t,i)(o):n(o)}function i(o){return Eg(t,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function s(o){return Oe(o)?ze(t,a,"whitespace")(o):a(o)}function a(o){return o===null||de(o)?e(o):n(o)}}const H8={name:"hardBreakEscape",tokenize:q8};function q8(t,e,n){return r;function r(s){return t.enter("hardBreakEscape"),t.consume(s),i}function i(s){return de(s)?(t.exit("hardBreakEscape"),e(s)):n(s)}}const W8={name:"headingAtx",resolve:Q8,tokenize:G8};function Q8(t,e){let n=t.length-2,r=3,i,s;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},s={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},Pn(t,r,n-r+1,[["enter",i,e],["enter",s,e],["exit",s,e],["exit",i,e]])),t}function G8(t,e,n){let r=0;return i;function i(c){return t.enter("atxHeading"),s(c)}function s(c){return t.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&r++<6?(t.consume(c),a):c===null||Tt(c)?(t.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(t.enter("atxHeadingSequence"),l(c)):c===null||de(c)?(t.exit("atxHeading"),e(c)):Oe(c)?ze(t,o,"whitespace")(c):(t.enter("atxHeadingText"),u(c))}function l(c){return c===35?(t.consume(c),l):(t.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||Tt(c)?(t.exit("atxHeadingText"),o(c)):(t.consume(c),u)}}const Y8=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Pp=["pre","script","style","textarea"],V8={concrete:!0,name:"htmlFlow",resolveTo:J8,tokenize:Z8},K8={partial:!0,tokenize:eO},X8={partial:!0,tokenize:$8};function J8(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function Z8(t,e,n){const r=this;let i,s,a,o,l;return u;function u(O){return c(O)}function c(O){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(O),f}function f(O){return O===33?(t.consume(O),p):O===47?(t.consume(O),s=!0,m):O===63?(t.consume(O),i=3,r.interrupt?e:k):En(O)?(t.consume(O),a=String.fromCharCode(O),v):n(O)}function p(O){return O===45?(t.consume(O),i=2,h):O===91?(t.consume(O),i=5,o=0,y):En(O)?(t.consume(O),i=4,r.interrupt?e:k):n(O)}function h(O){return O===45?(t.consume(O),r.interrupt?e:k):n(O)}function y(O){const G="CDATA[";return O===G.charCodeAt(o++)?(t.consume(O),o===G.length?r.interrupt?e:T:y):n(O)}function m(O){return En(O)?(t.consume(O),a=String.fromCharCode(O),v):n(O)}function v(O){if(O===null||O===47||O===62||Tt(O)){const G=O===47,Y=a.toLowerCase();return!G&&!s&&Pp.includes(Y)?(i=1,r.interrupt?e(O):T(O)):Y8.includes(a.toLowerCase())?(i=6,G?(t.consume(O),g):r.interrupt?e(O):T(O)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(O):s?A(O):E(O))}return O===45||Vt(O)?(t.consume(O),a+=String.fromCharCode(O),v):n(O)}function g(O){return O===62?(t.consume(O),r.interrupt?e:T):n(O)}function A(O){return Oe(O)?(t.consume(O),A):_(O)}function E(O){return O===47?(t.consume(O),_):O===58||O===95||En(O)?(t.consume(O),j):Oe(O)?(t.consume(O),E):_(O)}function j(O){return O===45||O===46||O===58||O===95||Vt(O)?(t.consume(O),j):S(O)}function S(O){return O===61?(t.consume(O),b):Oe(O)?(t.consume(O),S):E(O)}function b(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(t.consume(O),l=O,w):Oe(O)?(t.consume(O),b):x(O)}function w(O){return O===l?(t.consume(O),l=null,N):O===null||de(O)?n(O):(t.consume(O),w)}function x(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||Tt(O)?S(O):(t.consume(O),x)}function N(O){return O===47||O===62||Oe(O)?E(O):n(O)}function _(O){return O===62?(t.consume(O),I):n(O)}function I(O){return O===null||de(O)?T(O):Oe(O)?(t.consume(O),I):n(O)}function T(O){return O===45&&i===2?(t.consume(O),D):O===60&&i===1?(t.consume(O),B):O===62&&i===4?(t.consume(O),Q):O===63&&i===3?(t.consume(O),k):O===93&&i===5?(t.consume(O),W):de(O)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(K8,H,z)(O)):O===null||de(O)?(t.exit("htmlFlowData"),z(O)):(t.consume(O),T)}function z(O){return t.check(X8,L,H)(O)}function L(O){return t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),P}function P(O){return O===null||de(O)?z(O):(t.enter("htmlFlowData"),T(O))}function D(O){return O===45?(t.consume(O),k):T(O)}function B(O){return O===47?(t.consume(O),a="",V):T(O)}function V(O){if(O===62){const G=a.toLowerCase();return Pp.includes(G)?(t.consume(O),Q):T(O)}return En(O)&&a.length<8?(t.consume(O),a+=String.fromCharCode(O),V):T(O)}function W(O){return O===93?(t.consume(O),k):T(O)}function k(O){return O===62?(t.consume(O),Q):O===45&&i===2?(t.consume(O),k):T(O)}function Q(O){return O===null||de(O)?(t.exit("htmlFlowData"),H(O)):(t.consume(O),Q)}function H(O){return t.exit("htmlFlow"),e(O)}}function $8(t,e,n){const r=this;return i;function i(a){return de(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),s):n(a)}function s(a){return r.parser.lazy[r.now().line]?n(a):e(a)}}function eO(t,e,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(Zo,e,n)}}const tO={name:"htmlText",tokenize:nO};function nO(t,e,n){const r=this;let i,s,a;return o;function o(k){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(k),l}function l(k){return k===33?(t.consume(k),u):k===47?(t.consume(k),S):k===63?(t.consume(k),E):En(k)?(t.consume(k),x):n(k)}function u(k){return k===45?(t.consume(k),c):k===91?(t.consume(k),s=0,y):En(k)?(t.consume(k),A):n(k)}function c(k){return k===45?(t.consume(k),h):n(k)}function f(k){return k===null?n(k):k===45?(t.consume(k),p):de(k)?(a=f,B(k)):(t.consume(k),f)}function p(k){return k===45?(t.consume(k),h):f(k)}function h(k){return k===62?D(k):k===45?p(k):f(k)}function y(k){const Q="CDATA[";return k===Q.charCodeAt(s++)?(t.consume(k),s===Q.length?m:y):n(k)}function m(k){return k===null?n(k):k===93?(t.consume(k),v):de(k)?(a=m,B(k)):(t.consume(k),m)}function v(k){return k===93?(t.consume(k),g):m(k)}function g(k){return k===62?D(k):k===93?(t.consume(k),g):m(k)}function A(k){return k===null||k===62?D(k):de(k)?(a=A,B(k)):(t.consume(k),A)}function E(k){return k===null?n(k):k===63?(t.consume(k),j):de(k)?(a=E,B(k)):(t.consume(k),E)}function j(k){return k===62?D(k):E(k)}function S(k){return En(k)?(t.consume(k),b):n(k)}function b(k){return k===45||Vt(k)?(t.consume(k),b):w(k)}function w(k){return de(k)?(a=w,B(k)):Oe(k)?(t.consume(k),w):D(k)}function x(k){return k===45||Vt(k)?(t.consume(k),x):k===47||k===62||Tt(k)?N(k):n(k)}function N(k){return k===47?(t.consume(k),D):k===58||k===95||En(k)?(t.consume(k),_):de(k)?(a=N,B(k)):Oe(k)?(t.consume(k),N):D(k)}function _(k){return k===45||k===46||k===58||k===95||Vt(k)?(t.consume(k),_):I(k)}function I(k){return k===61?(t.consume(k),T):de(k)?(a=I,B(k)):Oe(k)?(t.consume(k),I):N(k)}function T(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(t.consume(k),i=k,z):de(k)?(a=T,B(k)):Oe(k)?(t.consume(k),T):(t.consume(k),L)}function z(k){return k===i?(t.consume(k),i=void 0,P):k===null?n(k):de(k)?(a=z,B(k)):(t.consume(k),z)}function L(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||Tt(k)?N(k):(t.consume(k),L)}function P(k){return k===47||k===62||Tt(k)?N(k):n(k)}function D(k){return k===62?(t.consume(k),t.exit("htmlTextData"),t.exit("htmlText"),e):n(k)}function B(k){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),V}function V(k){return Oe(k)?ze(t,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):W(k)}function W(k){return t.enter("htmlTextData"),a(k)}}const Zc={name:"labelEnd",resolveAll:aO,resolveTo:oO,tokenize:lO},rO={tokenize:uO},iO={tokenize:cO},sO={tokenize:dO};function aO(t){let e=-1;const n=[];for(;++e<t.length;){const r=t[e][1];if(n.push(t[e]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",e+=i}}return t.length!==n.length&&Pn(t,0,t.length,n),t}function oO(t,e){let n=t.length,r=0,i,s,a,o;for(;n--;)if(i=t[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(t[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},u={type:"label",start:{...t[s][1].start},end:{...t[a][1].end}},c={type:"labelText",start:{...t[s+r+2][1].end},end:{...t[a-2][1].start}};return o=[["enter",l,e],["enter",u,e]],o=tn(o,t.slice(s+1,s+r+3)),o=tn(o,[["enter",c,e]]),o=tn(o,Jc(e.parser.constructs.insideSpan.null,t.slice(s+r+4,a-3),e)),o=tn(o,[["exit",c,e],t[a-2],t[a-1],["exit",u,e]]),o=tn(o,t.slice(a+1)),o=tn(o,[["exit",l,e]]),Pn(t,s,t.length,o),t}function lO(t,e,n){const r=this;let i=r.events.length,s,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return o;function o(p){return s?s._inactive?f(p):(a=r.parser.defined.includes(Ai(r.sliceSerialize({start:s.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelEnd"),l):n(p)}function l(p){return p===40?t.attempt(rO,c,a?c:f)(p):p===91?t.attempt(iO,c,a?u:f)(p):a?c(p):f(p)}function u(p){return t.attempt(sO,c,f)(p)}function c(p){return e(p)}function f(p){return s._balanced=!0,n(p)}}function uO(t,e,n){return r;function r(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),i}function i(f){return Tt(f)?Ms(t,s)(f):s(f)}function s(f){return f===41?c(f):kg(t,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function a(f){return Tt(f)?Ms(t,l)(f):c(f)}function o(f){return n(f)}function l(f){return f===34||f===39||f===40?Eg(t,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return Tt(f)?Ms(t,c)(f):c(f)}function c(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),e):n(f)}}function cO(t,e,n){const r=this;return i;function i(o){return jg.call(r,t,s,a,"reference","referenceMarker","referenceString")(o)}function s(o){return r.parser.defined.includes(Ai(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(o):n(o)}function a(o){return n(o)}}function dO(t,e,n){return r;function r(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),i}function i(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),e):n(s)}}const fO={name:"labelStartImage",resolveAll:Zc.resolveAll,tokenize:hO};function hO(t,e,n){const r=this;return i;function i(o){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(o),t.exit("labelImageMarker"),s}function s(o){return o===91?(t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelImage"),a):n(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):e(o)}}const pO={name:"labelStartLink",resolveAll:Zc.resolveAll,tokenize:yO};function yO(t,e,n){const r=this;return i;function i(a){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelLink"),s}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):e(a)}}const Rl={name:"lineEnding",tokenize:mO};function mO(t,e){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),ze(t,e,"linePrefix")}}const so={name:"thematicBreak",tokenize:gO};function gO(t,e,n){let r=0,i;return s;function s(u){return t.enter("thematicBreak"),a(u)}function a(u){return i=u,o(u)}function o(u){return u===i?(t.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||de(u))?(t.exit("thematicBreak"),e(u)):n(u)}function l(u){return u===i?(t.consume(u),r++,l):(t.exit("thematicBreakSequence"),Oe(u)?ze(t,o,"whitespace")(u):o(u))}}const Ct={continuation:{tokenize:wO},exit:SO,name:"list",tokenize:xO},vO={partial:!0,tokenize:CO},bO={partial:!0,tokenize:AO};function xO(t,e,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return o;function o(h){const y=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:$u(h)){if(r.containerState.type||(r.containerState.type=y,t.enter(y,{_container:!0})),y==="listUnordered")return t.enter("listItemPrefix"),h===42||h===45?t.check(so,n,u)(h):u(h);if(!r.interrupt||h===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),l(h)}return n(h)}function l(h){return $u(h)&&++a<10?(t.consume(h),l):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(t.exit("listItemValue"),u(h)):n(h)}function u(h){return t.enter("listItemMarker"),t.consume(h),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,t.check(Zo,r.interrupt?n:c,t.attempt(vO,p,f))}function c(h){return r.containerState.initialBlankLine=!0,s++,p(h)}function f(h){return Oe(h)?(t.enter("listItemPrefixWhitespace"),t.consume(h),t.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=s+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(h)}}function wO(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(Zo,i,s);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ze(t,e,"listItemIndent",r.containerState.size+1)(o)}function s(o){return r.containerState.furtherBlankLines||!Oe(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(bO,e,a)(o))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ze(t,t.attempt(Ct,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function AO(t,e,n){const r=this;return ze(t,i,"listItemIndent",r.containerState.size+1);function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?e(s):n(s)}}function SO(t){t.exit(this.containerState.type)}function CO(t,e,n){const r=this;return ze(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const a=r.events[r.events.length-1];return!Oe(s)&&a&&a[1].type==="listItemPrefixWhitespace"?e(s):n(s)}}const Tp={name:"setextUnderline",resolveTo:kO,tokenize:jO};function kO(t,e){let n=t.length,r,i,s;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(i=n)}else t[n][1].type==="content"&&t.splice(n,1),!s&&t[n][1].type==="definition"&&(s=n);const a={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[i][1].type="setextHeadingText",s?(t.splice(i,0,["enter",a,e]),t.splice(s+1,0,["exit",t[r][1],e]),t[r][1].end={...t[s][1].end}):t[r][1]=a,t.push(["exit",a,e]),t}function jO(t,e,n){const r=this;let i;return s;function s(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(t.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return t.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(t.consume(u),o):(t.exit("setextHeadingLineSequence"),Oe(u)?ze(t,l,"lineSuffix")(u):l(u))}function l(u){return u===null||de(u)?(t.exit("setextHeadingLine"),e(u)):n(u)}}const EO={tokenize:OO};function OO(t){const e=this,n=t.attempt(Zo,r,t.attempt(this.parser.constructs.flowInitial,i,ze(t,t.attempt(this.parser.constructs.flow,i,t.attempt(L8,i)),"linePrefix")));return n;function r(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function i(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e.currentConstruct=void 0,n}}const PO={resolveAll:Pg()},TO=Og("string"),IO=Og("text");function Og(t){return{resolveAll:Pg(t==="text"?MO:void 0),tokenize:e};function e(n){const r=this,i=this.parser.constructs[t],s=n.attempt(i,a,o);return a;function a(c){return u(c)?s(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),s(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let p=-1;if(f)for(;++p<f.length;){const h=f[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Pg(t){return e;function e(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return t?t(n,r):n}}function MO(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const r=t[n-1][1],i=e.sliceStream(r);let s=i.length,a=-1,o=0,l;for(;s--;){const u=i[s];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(u===-2)l=!0,o++;else if(u!==-1){s++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(o=0),o){const u={type:n===t.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(t.splice(n,0,["enter",u,e],["exit",u,e]),n+=2)}n++}return t}const LO={42:Ct,43:Ct,45:Ct,48:Ct,49:Ct,50:Ct,51:Ct,52:Ct,53:Ct,54:Ct,55:Ct,56:Ct,57:Ct,62:wg},NO={91:B8},RO={[-2]:Nl,[-1]:Nl,32:Nl},_O={35:W8,42:so,45:[Tp,so],60:V8,61:Tp,95:so,96:Op,126:Op},DO={38:Sg,92:Ag},BO={[-5]:Rl,[-4]:Rl,[-3]:Rl,33:fO,38:Sg,42:ec,60:[p8,tO],91:pO,92:[H8,Ag],93:Zc,95:ec,96:E8},FO={null:[ec,PO]},zO={null:[42,95]},UO={null:[]},HO=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:zO,contentInitial:NO,disable:UO,document:LO,flow:_O,flowInitial:RO,insideSpan:FO,string:DO,text:BO},Symbol.toStringTag,{value:"Module"}));function qO(t,e,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let a=[],o=[];const l={attempt:w(S),check:w(b),consume:A,enter:E,exit:j,interrupt:w(b,{interrupt:!0})},u={code:null,containerState:{},defineSkip:m,events:[],now:y,parser:t,previous:null,sliceSerialize:p,sliceStream:h,write:f};let c=e.tokenize.call(u,l);return e.resolveAll&&s.push(e),u;function f(I){return a=tn(a,I),v(),a[a.length-1]!==null?[]:(x(e,0),u.events=Jc(s,u.events,u),u.events)}function p(I,T){return QO(h(I),T)}function h(I){return WO(a,I)}function y(){const{_bufferIndex:I,_index:T,line:z,column:L,offset:P}=r;return{_bufferIndex:I,_index:T,line:z,column:L,offset:P}}function m(I){i[I.line]=I.column,_()}function v(){let I;for(;r._index<a.length;){const T=a[r._index];if(typeof T=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<T.length;)g(T.charCodeAt(r._bufferIndex));else g(T)}}function g(I){c=c(I)}function A(I){de(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,_()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=I}function E(I,T){const z=T||{};return z.type=I,z.start=y(),u.events.push(["enter",z,u]),o.push(z),z}function j(I){const T=o.pop();return T.end=y(),u.events.push(["exit",T,u]),T}function S(I,T){x(I,T.from)}function b(I,T){T.restore()}function w(I,T){return z;function z(L,P,D){let B,V,W,k;return Array.isArray(L)?H(L):"tokenize"in L?H([L]):Q(L);function Q(X){return ne;function ne(oe){const he=oe!==null&&X[oe],ae=oe!==null&&X.null,je=[...Array.isArray(he)?he:he?[he]:[],...Array.isArray(ae)?ae:ae?[ae]:[]];return H(je)(oe)}}function H(X){return B=X,V=0,X.length===0?D:O(X[V])}function O(X){return ne;function ne(oe){return k=N(),W=X,X.partial||(u.currentConstruct=X),X.name&&u.parser.constructs.disable.null.includes(X.name)?Y():X.tokenize.call(T?Object.assign(Object.create(u),T):u,l,G,Y)(oe)}}function G(X){return I(W,k),P}function Y(X){return k.restore(),++V<B.length?O(B[V]):D}}}function x(I,T){I.resolveAll&&!s.includes(I)&&s.push(I),I.resolve&&Pn(u.events,T,u.events.length-T,I.resolve(u.events.slice(T),u)),I.resolveTo&&(u.events=I.resolveTo(u.events,u))}function N(){const I=y(),T=u.previous,z=u.currentConstruct,L=u.events.length,P=Array.from(o);return{from:L,restore:D};function D(){r=I,u.previous=T,u.currentConstruct=z,u.events.length=L,o=P,_()}}function _(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function WO(t,e){const n=e.start._index,r=e.start._bufferIndex,i=e.end._index,s=e.end._bufferIndex;let a;if(n===i)a=[t[n].slice(r,s)];else{if(a=t.slice(n,i),r>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(r):a.shift()}s>0&&a.push(t[i].slice(0,s))}return a}function QO(t,e){let n=-1;const r=[];let i;for(;++n<t.length;){const s=t[n];let a;if(typeof s=="string")a=s;else switch(s){case-5:{a="\r";break}case-4:{a=`
52
+ `):t}function K4(t,e){const{element:n,datasetIndex:r,index:i}=e,s=t.getDatasetMeta(r).controller,{label:a,value:o}=s.getLabelAndValue(i);return{chart:t,label:a,parsed:s.getParsed(i),raw:t.data.datasets[r].data[i],formattedValue:o,dataset:s.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Kh(t,e){const n=t.chart.ctx,{body:r,footer:i,title:s}=t,{boxWidth:a,boxHeight:o}=e,l=Ze(e.bodyFont),u=Ze(e.titleFont),c=Ze(e.footerFont),f=s.length,p=i.length,h=r.length,y=dt(e.padding);let m=y.height,v=0,g=r.reduce((C,S)=>C+S.before.length+S.lines.length+S.after.length,0);if(g+=t.beforeBody.length+t.afterBody.length,f&&(m+=f*u.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),g){const C=e.displayColors?Math.max(o,l.lineHeight):l.lineHeight;m+=h*C+(g-h)*l.lineHeight+(g-1)*e.bodySpacing}p&&(m+=e.footerMarginTop+p*c.lineHeight+(p-1)*e.footerSpacing);let A=0;const E=function(C){v=Math.max(v,n.measureText(C).width+A)};return n.save(),n.font=u.string,Re(t.title,E),n.font=l.string,Re(t.beforeBody.concat(t.afterBody),E),A=e.displayColors?a+2+e.boxPadding:0,Re(r,C=>{Re(C.before,E),Re(C.lines,E),Re(C.after,E)}),A=0,n.font=c.string,Re(t.footer,E),n.restore(),v+=y.width,{width:v,height:m}}function X4(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function J4(t,e,n,r){const{x:i,width:s}=r,a=n.caretSize+n.caretPadding;if(t==="left"&&i+s+a>e.width||t==="right"&&i-s-a<0)return!0}function Z4(t,e,n,r){const{x:i,width:s}=n,{width:a,chartArea:{left:o,right:l}}=t;let u="center";return r==="center"?u=i<=(o+l)/2?"left":"right":i<=s/2?u="left":i>=a-s/2&&(u="right"),J4(u,t,e,n)&&(u="center"),u}function Xh(t,e,n){const r=n.yAlign||e.yAlign||X4(t,n);return{xAlign:n.xAlign||e.xAlign||Z4(t,e,n,r),yAlign:r}}function $4(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function ej(t,e,n){let{y:r,height:i}=t;return e==="top"?r+=n:e==="bottom"?r-=i+n:r-=i/2,r}function Jh(t,e,n,r){const{caretSize:i,caretPadding:s,cornerRadius:a}=t,{xAlign:o,yAlign:l}=n,u=i+s,{topLeft:c,topRight:f,bottomLeft:p,bottomRight:h}=Ai(a);let y=$4(e,o);const m=ej(e,l,u);return l==="center"?o==="left"?y+=u:o==="right"&&(y-=u):o==="left"?y-=Math.max(c,p)+i:o==="right"&&(y+=Math.max(f,h)+i),{x:nn(y,0,r.width-e.width),y:nn(m,0,r.height-e.height)}}function Fa(t,e,n){const r=dt(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function Zh(t){return wn([],qn(t))}function tj(t,e,n){return Er(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function $h(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const mg={beforeTitle:Bn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:Bn,beforeBody:Bn,beforeLabel:Bn,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return _e(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Bn,afterBody:Bn,beforeFooter:Bn,footer:Bn,afterFooter:Bn};function wt(t,e,n,r){const i=t[e].call(n,r);return typeof i=="undefined"?mg[e].call(n,r):i}class qu extends tr{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,s=new $0(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=tj(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,i=wt(r,"beforeTitle",this,e),s=wt(r,"title",this,e),a=wt(r,"afterTitle",this,e);let o=[];return o=wn(o,qn(i)),o=wn(o,qn(s)),o=wn(o,qn(a)),o}getBeforeBody(e,n){return Zh(wt(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,i=[];return Re(e,s=>{const a={before:[],lines:[],after:[]},o=$h(r,s);wn(a.before,qn(wt(o,"beforeLabel",this,s))),wn(a.lines,wt(o,"label",this,s)),wn(a.after,qn(wt(o,"afterLabel",this,s))),i.push(a)}),i}getAfterBody(e,n){return Zh(wt(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,i=wt(r,"beforeFooter",this,e),s=wt(r,"footer",this,e),a=wt(r,"afterFooter",this,e);let o=[];return o=wn(o,qn(i)),o=wn(o,qn(s)),o=wn(o,qn(a)),o}_createItems(e){const n=this._active,r=this.chart.data,i=[],s=[],a=[];let o=[],l,u;for(l=0,u=n.length;l<u;++l)o.push(K4(this.chart,n[l]));return e.filter&&(o=o.filter((c,f,p)=>e.filter(c,f,p,r))),e.itemSort&&(o=o.sort((c,f)=>e.itemSort(c,f,r))),Re(o,c=>{const f=$h(e.callbacks,c);i.push(wt(f,"labelColor",this,c)),s.push(wt(f,"labelPointStyle",this,c)),a.push(wt(f,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=s,this.labelTextColors=a,this.dataPoints=o,o}update(e,n){const r=this.options.setContext(this.getContext()),i=this._active;let s,a=[];if(!i.length)this.opacity!==0&&(s={opacity:0});else{const o=Cs[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=Kh(this,r),u=Object.assign({},o,l),c=Xh(this.chart,r,u),f=Jh(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,s={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:o.x,caretY:o.y}}this._tooltipItems=a,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,i){const s=this.getCaretPosition(e,r,i);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(e,n,r){const{xAlign:i,yAlign:s}=this,{caretSize:a,cornerRadius:o}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:f}=Ai(o),{x:p,y:h}=e,{width:y,height:m}=n;let v,g,A,E,C,S;return s==="center"?(C=h+m/2,i==="left"?(v=p,g=v-a,E=C+a,S=C-a):(v=p+y,g=v+a,E=C-a,S=C+a),A=v):(i==="left"?g=p+Math.max(l,c)+a:i==="right"?g=p+y-Math.max(u,f)-a:g=this.caretX,s==="top"?(E=h,C=E-a,v=g-a,A=g+a):(E=h+m,C=E+a,v=g+a,A=g-a),S=E),{x1:v,x2:g,x3:A,y1:E,y2:C,y3:S}}drawTitle(e,n,r){const i=this.title,s=i.length;let a,o,l;if(s){const u=Si(r.rtl,this.x,this.width);for(e.x=Fa(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",a=Ze(r.titleFont),o=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;l<s;++l)n.fillText(i[l],u.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+o,l+1===s&&(e.y+=r.titleMarginBottom-o)}}_drawColorBox(e,n,r,i,s){const a=this.labelColors[r],o=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=s,c=Ze(s.bodyFont),f=Fa(this,"left",s),p=i.x(f),h=l<c.lineHeight?(c.lineHeight-l)/2:0,y=n.y+h;if(s.usePointStyle){const m={radius:Math.min(u,l)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},v=i.leftForLtr(p,u)+u/2,g=y+l/2;e.strokeStyle=s.multiKeyBackground,e.fillStyle=s.multiKeyBackground,Bu(e,m,v,g),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,Bu(e,m,v,g)}else{e.lineWidth=Ee(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;const m=i.leftForLtr(p,u),v=i.leftForLtr(i.xPlus(p,1),u-2),g=Ai(a.borderRadius);Object.values(g).some(A=>A!==0)?(e.beginPath(),e.fillStyle=s.multiKeyBackground,So(e,{x:m,y,w:u,h:l,radius:g}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),So(e,{x:v,y:y+1,w:u-2,h:l-2,radius:g}),e.fill()):(e.fillStyle=s.multiKeyBackground,e.fillRect(m,y,u,l),e.strokeRect(m,y,u,l),e.fillStyle=a.backgroundColor,e.fillRect(v,y+1,u-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:i}=this,{bodySpacing:s,bodyAlign:a,displayColors:o,boxHeight:l,boxWidth:u,boxPadding:c}=r,f=Ze(r.bodyFont);let p=f.lineHeight,h=0;const y=Si(r.rtl,this.x,this.width),m=function(x){n.fillText(x,y.x(e.x+h),e.y+p/2),e.y+=p+s},v=y.textAlign(a);let g,A,E,C,S,b,w;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,e.x=Fa(this,v,r),n.fillStyle=r.bodyColor,Re(this.beforeBody,m),h=o&&v!=="right"?a==="center"?u/2+c:u+2+c:0,C=0,b=i.length;C<b;++C){for(g=i[C],A=this.labelTextColors[C],n.fillStyle=A,Re(g.before,m),E=g.lines,o&&E.length&&(this._drawColorBox(n,e,C,y,r),p=Math.max(f.lineHeight,l)),S=0,w=E.length;S<w;++S)m(E[S]),p=f.lineHeight;Re(g.after,m)}h=0,p=f.lineHeight,Re(this.afterBody,m),e.y-=s}drawFooter(e,n,r){const i=this.footer,s=i.length;let a,o;if(s){const l=Si(r.rtl,this.x,this.width);for(e.x=Fa(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",a=Ze(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,o=0;o<s;++o)n.fillText(i[o],l.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+r.footerSpacing}}drawBackground(e,n,r,i){const{xAlign:s,yAlign:a}=this,{x:o,y:l}=e,{width:u,height:c}=r,{topLeft:f,topRight:p,bottomLeft:h,bottomRight:y}=Ai(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(o+f,l),a==="top"&&this.drawCaret(e,n,r,i),n.lineTo(o+u-p,l),n.quadraticCurveTo(o+u,l,o+u,l+p),a==="center"&&s==="right"&&this.drawCaret(e,n,r,i),n.lineTo(o+u,l+c-y),n.quadraticCurveTo(o+u,l+c,o+u-y,l+c),a==="bottom"&&this.drawCaret(e,n,r,i),n.lineTo(o+h,l+c),n.quadraticCurveTo(o,l+c,o,l+c-h),a==="center"&&s==="left"&&this.drawCaret(e,n,r,i),n.lineTo(o,l+f),n.quadraticCurveTo(o,l,o+f,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,i=r&&r.x,s=r&&r.y;if(i||s){const a=Cs[e.position].call(this,this._active,this._eventPosition);if(!a)return;const o=this._size=Kh(this,e),l=Object.assign({},a,this._size),u=Xh(n,e,l),c=Jh(e,l,u,n);(i._to!==c.x||s._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=o.width,this.height=o.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=dt(n.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&o&&(e.save(),e.globalAlpha=r,this.drawBackground(s,e,i,n),Y0(e,n.textDirection),s.y+=a.top,this.drawTitle(s,e,n),this.drawBody(s,e,n),this.drawFooter(s,e,n),V0(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,i=e.map(({datasetIndex:o,index:l})=>{const u=this.chart.getDatasetMeta(o);if(!u)throw new Error("Cannot find a dataset at index "+o);return{datasetIndex:o,element:u.data[l],index:l}}),s=!vo(r,i),a=this._positionChanged(i,n);(s||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,s=this._active||[],a=this._getActiveElements(e,s,n,r),o=this._positionChanged(a,e),l=n||!vo(a,s)||o;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,i){const s=this.options;if(e.type==="mouseout")return[];if(!i)return n.filter(o=>this.chart.data.datasets[o.datasetIndex]&&this.chart.getDatasetMeta(o.datasetIndex).controller.getParsed(o.index)!==void 0);const a=this.chart.getElementsAtEventForMode(e,s.mode,s,r);return s.reverse&&a.reverse(),a}_positionChanged(e,n){const{caretX:r,caretY:i,options:s}=this,a=Cs[s.position].call(this,e,n);return a!==!1&&(r!==a.x||i!==a.y)}}de(qu,"positioners",Cs);var nj={id:"tooltip",_element:qu,positioners:Cs,afterInit(t,e,n){n&&(t.tooltip=new qu({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:mg},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const rj=(t,e,n,r)=>(typeof e=="string"?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function ij(t,e,n,r){const i=t.indexOf(e);if(i===-1)return rj(t,e,n,r);const s=t.lastIndexOf(e);return i!==s?n:i}const sj=(t,e)=>t===null?null:nn(Math.round(t),0,e);function ep(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Wu extends $i{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:s}of n)r[i]===s&&r.splice(i,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(_e(e))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===e?n:ij(r,e,Se(n,e),this._addedLabels),sj(n,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const e=this.min,n=this.max,r=this.options.offset,i=[];let s=this.getLabels();s=e===0&&n===s.length-1?s:s.slice(e,n+1),this._valueRange=Math.max(s.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=e;a<=n;a++)i.push({value:a});return i}getLabelForValue(e){return ep.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}de(Wu,"id","category"),de(Wu,"defaults",{ticks:{callback:ep}});function aj(t,e){const n=[],{bounds:i,step:s,min:a,max:o,precision:l,count:u,maxTicks:c,maxDigits:f,includeBounds:p}=t,h=s||1,y=c-1,{min:m,max:v}=e,g=!_e(a),A=!_e(o),E=!_e(u),C=(v-m)/(f+1);let S=th((v-m)/y/h)*h,b,w,x,N;if(S<1e-14&&!g&&!A)return[{value:m},{value:v}];N=Math.ceil(v/S)-Math.floor(m/S),N>y&&(S=th(N*S/y/h)*h),_e(l)||(b=Math.pow(10,l),S=Math.ceil(S*b)/b),i==="ticks"?(w=Math.floor(m/S)*S,x=Math.ceil(v/S)*S):(w=m,x=v),g&&A&&s&&E5((o-a)/s,S/1e3)?(N=Math.round(Math.min((o-a)/S,c)),S=(o-a)/N,w=a,x=o):E?(w=g?a:w,x=A?o:x,N=u-1,S=(x-w)/N):(N=(x-w)/S,Ts(N,Math.round(N),S/1e3)?N=Math.round(N):N=Math.ceil(N));const D=Math.max(nh(S),nh(w));b=Math.pow(10,_e(l)?D:l),w=Math.round(w*b)/b,x=Math.round(x*b)/b;let M=0;for(g&&(p&&w!==a?(n.push({value:a}),w<a&&M++,Ts(Math.round((w+M*S)*b)/b,a,tp(a,C,t))&&M++):w<a&&M++);M<N;++M){const T=Math.round((w+M*S)*b)/b;if(A&&T>o)break;n.push({value:T})}return A&&p&&x!==o?n.length&&Ts(n[n.length-1].value,o,tp(o,C,t))?n[n.length-1].value=o:n.push({value:o}):(!A||x===o)&&n.push({value:x}),n}function tp(t,e,{horizontal:n,minRotation:r}){const i=br(r),s=(n?Math.sin(i):Math.cos(i))||.001,a=.75*e*(""+t).length;return Math.min(e/s,a)}class Gu extends $i{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return _e(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:s}=this;const a=l=>i=n?i:l,o=l=>s=r?s:l;if(e){const l=Ui(i),u=Ui(s);l<0&&u<0?o(0):l>0&&u>0&&a(0)}if(i===s){let l=s===0?1:Math.abs(s*.05);o(s+l),e||a(i-l)}this.min=i,this.max=s}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=e,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,a=aj(i,s);return e.bounds==="ticks"&&O5(a,this,"value"),e.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const e=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const i=(r-n)/Math.max(e.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(e){return F0(e,this.chart.options.locale,this.options.ticks.format)}}class Qu extends Gu{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=rt(e)?e:0,this.max=rt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,r=br(this.options.ticks.minRotation),i=(e?Math.sin(r):Math.cos(r))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/i))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}de(Qu,"id","linear"),de(Qu,"defaults",{ticks:{callback:qc.formatters.numeric}});function Yu(t){const e=t.ticks;if(e.display&&t.display){const n=dt(e.backdropPadding);return Se(e.font&&e.font.size,Qe.font.size)+n.height}return 0}function oj(t,e,n){return n=We(n)?n:[n],{w:X5(t,e.string,n),h:n.length*e.lineHeight}}function np(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:t<r||t>i?{start:e-n,end:e}:{start:e,end:e+n}}function lj(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),r=[],i=[],s=t._pointLabels.length,a=t.options.pointLabels,o=a.centerPointLabels?Ke/s:0;for(let l=0;l<s;l++){const u=a.setContext(t.getPointLabelContext(l));i[l]=u.padding;const c=t.getPointPosition(l,t.drawingArea+i[l],o),f=Ze(u.font),p=oj(t.ctx,f,t._pointLabels[l]);r[l]=p;const h=Gt(t.getIndexAngle(l)+o),y=Math.round(Fc(h)),m=np(y,c.x,p.w,0,180),v=np(y,c.y,p.h,90,270);uj(n,e,h,m,v)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=fj(t,r,i)}function uj(t,e,n,r,i){const s=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let o=0,l=0;r.start<e.l?(o=(e.l-r.start)/s,t.l=Math.min(t.l,e.l-o)):r.end>e.r&&(o=(r.end-e.r)/s,t.r=Math.max(t.r,e.r+o)),i.start<e.t?(l=(e.t-i.start)/a,t.t=Math.min(t.t,e.t-l)):i.end>e.b&&(l=(i.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function cj(t,e,n){const r=t.drawingArea,{extra:i,additionalAngle:s,padding:a,size:o}=n,l=t.getPointPosition(e,r+i+a,s),u=Math.round(Fc(Gt(l.angle+Qt))),c=yj(l.y,o.h,u),f=hj(u),p=pj(l.x,o.w,f);return{visible:!0,x:l.x,y:c,textAlign:f,left:p,top:c,right:p+o.w,bottom:c+o.h}}function dj(t,e){if(!e)return!0;const{left:n,top:r,right:i,bottom:s}=t;return!(Jn({x:n,y:r},e)||Jn({x:n,y:s},e)||Jn({x:i,y:r},e)||Jn({x:i,y:s},e))}function fj(t,e,n){const r=[],i=t._pointLabels.length,s=t.options,{centerPointLabels:a,display:o}=s.pointLabels,l={extra:Yu(s)/2,additionalAngle:a?Ke/i:0};let u;for(let c=0;c<i;c++){l.padding=n[c],l.size=e[c];const f=cj(t,c,l);r.push(f),o==="auto"&&(f.visible=dj(f,u),f.visible&&(u=f))}return r}function hj(t){return t===0||t===180?"center":t<180?"left":"right"}function pj(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function yj(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function mj(t,e,n){const{left:r,top:i,right:s,bottom:a}=n,{backdropColor:o}=e;if(!_e(o)){const l=Ai(e.borderRadius),u=dt(e.backdropPadding);t.fillStyle=o;const c=r-u.left,f=i-u.top,p=s-r+u.width,h=a-i+u.height;Object.values(l).some(y=>y!==0)?(t.beginPath(),So(t,{x:c,y:f,w:p,h,radius:l}),t.fill()):t.fillRect(c,f,p,h)}}function gj(t,e){const{ctx:n,options:{pointLabels:r}}=t;for(let i=e-1;i>=0;i--){const s=t._pointLabelItems[i];if(!s.visible)continue;const a=r.setContext(t.getPointLabelContext(i));mj(n,a,s);const o=Ze(a.font),{x:l,y:u,textAlign:c}=s;si(n,t._pointLabels[i],l,u+o.lineHeight/2,o,{color:a.color,textAlign:c,textBaseline:"middle"})}}function gg(t,e,n,r){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,Vt);else{let s=t.getPointPosition(0,e);i.moveTo(s.x,s.y);for(let a=1;a<r;a++)s=t.getPointPosition(a,e),i.lineTo(s.x,s.y)}}function vj(t,e,n,r,i){const s=t.ctx,a=e.circular,{color:o,lineWidth:l}=e;!a&&!r||!o||!l||n<0||(s.save(),s.strokeStyle=o,s.lineWidth=l,s.setLineDash(i.dash||[]),s.lineDashOffset=i.dashOffset,s.beginPath(),gg(t,n,a,r),s.closePath(),s.stroke(),s.restore())}function bj(t,e,n){return Er(t,{label:n,index:e,type:"pointLabel"})}class ks extends Gu{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=dt(Yu(this.options)/2),n=this.width=this.maxWidth-e.width,r=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+r/2+e.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=rt(e)&&!isNaN(e)?e:0,this.max=rt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Yu(this.options))}generateTickLabels(e){Gu.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,r)=>{const i=Be(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?lj(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,r,i){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,r,i))}getIndexAngle(e){const n=Vt/(this._pointLabels.length||1),r=this.options.startAngle||0;return Gt(e*n+br(r))}getDistanceFromCenterForValue(e){if(_e(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(_e(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e<n.length){const r=n[e];return bj(this.getContext(),e,r)}}getPointPosition(e,n,r=0){const i=this.getIndexAngle(e)-Qt+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:r,right:i,bottom:s}=this._pointLabelItems[e];return{left:n,top:r,right:i,bottom:s}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const r=this.ctx;r.save(),r.beginPath(),gg(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:r,grid:i,border:s}=n,a=this._pointLabels.length;let o,l,u;if(n.pointLabels.display&&gj(this,a),i.display&&this.ticks.forEach((c,f)=>{if(f!==0||f===0&&this.min<0){l=this.getDistanceFromCenterForValue(c.value);const p=this.getContext(f),h=i.setContext(p),y=s.setContext(p);vj(this,h,l,a,y)}}),r.display){for(e.save(),o=a-1;o>=0;o--){const c=r.setContext(this.getPointLabelContext(o)),{color:f,lineWidth:p}=c;!p||!f||(e.lineWidth=p,e.strokeStyle=f,e.setLineDash(c.borderDash),e.lineDashOffset=c.borderDashOffset,l=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),u=this.getPointPosition(o,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(u.x,u.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let s,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((o,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const u=r.setContext(this.getContext(l)),c=Ze(u.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),u.showLabelBackdrop){e.font=c.string,a=e.measureText(o.label).width,e.fillStyle=u.backdropColor;const f=dt(u.backdropPadding);e.fillRect(-a/2-f.left,-s-c.size/2-f.top,a+f.width,c.size+f.height)}si(e,o.label,0,-s,c,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),e.restore()}drawTitle(){}}de(ks,"id","radialLinear"),de(ks,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:qc.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),de(ks,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),de(ks,"descriptors",{angleLines:{_fallback:"grid"}});const el={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},kt=Object.keys(el);function rp(t,e){return t-e}function ip(t,e){if(_e(e))return null;const n=t._adapter,{parser:r,round:i,isoWeekday:s}=t._parseOpts;let a=e;return typeof r=="function"&&(a=r(a)),rt(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(Js(s)||s===!0)?n.startOf(a,"isoWeek",s):n.startOf(a,i)),+a)}function sp(t,e,n,r){const i=kt.length;for(let s=kt.indexOf(t);s<i-1;++s){const a=el[kt[s]],o=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-e)/(o*a.size))<=r)return kt[s]}return kt[i-1]}function xj(t,e,n,r,i){for(let s=kt.length-1;s>=kt.indexOf(n);s--){const a=kt[s];if(el[a].common&&t._adapter.diff(i,r,a)>=e-1)return a}return kt[n?kt.indexOf(n):0]}function wj(t){for(let e=kt.indexOf(t)+1,n=kt.length;e<n;++e)if(el[kt[e]].common)return kt[e]}function ap(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:i}=zc(n,e),s=n[r]>=e?n[r]:n[i];t[s]=!0}}function Aj(t,e,n,r){const i=t._adapter,s=+i.startOf(e[0].value,r),a=e[e.length-1].value;let o,l;for(o=s;o<=a;o=+i.add(o,1,r))l=n[o],l>=0&&(e[l].major=!0);return e}function op(t,e,n){const r=[],i={},s=e.length;let a,o;for(a=0;a<s;++a)o=e[a],i[o]=a,r.push({value:o,major:!1});return s===0||!n?r:Aj(t,r,i,n)}class jo extends $i{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const r=e.time||(e.time={}),i=this._adapter=new rk._date(e.adapters.date);i.init(n),Ps(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:ip(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:i,max:s,minDefined:a,maxDefined:o}=this.getUserBounds();function l(u){!a&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!o&&!isNaN(u.max)&&(s=Math.max(s,u.max))}(!a||!o)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=rt(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),s=rt(s)&&!isNaN(s)?s:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,s-1),this.max=Math.max(i+1,s)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const s=this.min,a=this.max,o=L5(i,s,a);return this._unit=n.unit||(r.autoSkip?sp(n.minUnit,this.min,this.max,this._getLabelCapacity(s)):xj(this,o.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:wj(this._unit),this.initOffsets(i),e.reverse&&o.reverse(),op(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,i,s;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),e.length===1?n=1-i:n=(this.getDecimalForValue(e[1])-i)/2,s=this.getDecimalForValue(e[e.length-1]),e.length===1?r=s:r=(s-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;n=nn(n,0,a),r=nn(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,i=this.options,s=i.time,a=s.unit||sp(s.minUnit,n,r,this._getLabelCapacity(n)),o=Se(i.ticks.stepSize,1),l=a==="week"?s.isoWeekday:!1,u=Js(l)||l===!0,c={};let f=n,p,h;if(u&&(f=+e.startOf(f,"isoWeek",l)),f=+e.startOf(f,u?"day":a),e.diff(r,n,a)>1e5*o)throw new Error(n+" and "+r+" are too far apart with stepSize of "+o+" "+a);const y=i.ticks.source==="data"&&this.getDataTimestamps();for(p=f,h=0;p<r;p=+e.add(p,o,a),h++)ap(c,p,y);return(p===r||i.bounds==="ticks"||h===1)&&ap(c,p,y),Object.keys(c).sort(rp).map(m=>+m)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const i=this.options.time.displayFormats,s=this._unit,a=n||i[s];return this._adapter.format(e,a)}_tickFormatFunction(e,n,r,i){const s=this.options,a=s.ticks.callback;if(a)return Be(a,[e,n,r],this);const o=s.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&o[l],f=u&&o[u],p=r[n],h=u&&f&&p&&p.major;return this._adapter.format(e,i||(h?f:c))}generateTickLabels(e){let n,r,i;for(n=0,r=e.length;n<r;++n)i=e[n],i.label=this._tickFormatFunction(i.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,i=br(this.isHorizontal()?n.maxRotation:n.minRotation),s=Math.cos(i),a=Math.sin(i),o=this._resolveTickFontOptions(0).size;return{w:r*s+o*a,h:r*a+o*s}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,s=this._tickFormatFunction(e,0,op(this,[e],this._majorUnit),i),a=this._getLabelSize(s),o=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return o>0?o:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)e=e.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)e.push(ip(this,i[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return R5(e.sort(rp))}}de(jo,"id","time"),de(jo,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function za(t,e,n){let r=0,i=t.length-1,s,a,o,l;n?(e>=t[r].pos&&e<=t[i].pos&&({lo:r,hi:i}=zr(t,"pos",e)),{pos:s,time:o}=t[r],{pos:a,time:l}=t[i]):(e>=t[r].time&&e<=t[i].time&&({lo:r,hi:i}=zr(t,"time",e)),{time:s,pos:o}=t[r],{time:a,pos:l}=t[i]);const u=a-s;return u?o+(l-o)*(e-s)/u:o}class lp extends jo{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=za(n,this.min),this._tableRange=za(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,i=[],s=[];let a,o,l,u,c;for(a=0,o=e.length;a<o;++a)u=e[a],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,o=i.length;a<o;++a)c=i[a+1],l=i[a-1],u=i[a],Math.round((c+l)/2)!==u&&s.push({time:u,pos:a/(o-1)});return s}_generate(){const e=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,s)=>i-s)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(za(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return za(this._table,r*this._tableRange+this._minPos,!0)}}de(lp,"id","timeseries"),de(lp,"defaults",jo.defaults);const vg="label";function up(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function Sj(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function bg(t,e){t.labels=e}function xg(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vg;const r=[];t.datasets=e.map(i=>{const s=t.datasets.find(a=>a[n]===i[n]);return!s||!i.data||r.includes(s)?{...i}:(r.push(s),Object.assign(s,i),s)})}function Cj(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vg;const n={labels:[],datasets:[]};return bg(n,t.labels),xg(n,t.datasets,e),n}function kj(t,e){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:s,type:a,data:o,options:l,plugins:u=[],fallbackContent:c,updateMode:f,...p}=t,h=F.useRef(null),y=F.useRef(null),m=()=>{h.current&&(y.current=new Zo(h.current,{type:a,data:Cj(o,s),options:l&&{...l},plugins:u}),up(e,y.current))},v=()=>{up(e,null),y.current&&(y.current.destroy(),y.current=null)};return F.useEffect(()=>{!i&&y.current&&l&&Sj(y.current,l)},[i,l]),F.useEffect(()=>{!i&&y.current&&bg(y.current.config.data,o.labels)},[i,o.labels]),F.useEffect(()=>{!i&&y.current&&o.datasets&&xg(y.current.config.data,o.datasets,s)},[i,o.datasets]),F.useEffect(()=>{y.current&&(i?(v(),setTimeout(m)):y.current.update(f))},[i,l,o.labels,o.datasets,f]),F.useEffect(()=>{y.current&&(v(),setTimeout(m))},[a]),F.useEffect(()=>(m(),()=>v()),[]),F.createElement("canvas",{ref:h,role:"img",height:n,width:r,...p},c)}const jj=F.forwardRef(kj);function wg(t,e){return Zo.register(e),F.forwardRef((n,r)=>F.createElement(jj,{...n,ref:r,type:t}))}const Ej=wg("line",to),Oj=wg("radar",no);Zo.register(Wu,Qu,ks,wr,so,z4,V4,nj,Q4);var Vu={elements:{line:{backgroundColor:"rgba(166, 30, 105, 0.2)",borderColor:"rgba(166, 30, 105, 1)",borderWidth:4},point:{backgroundColor:"rgba(166, 30, 105, 1)",borderColor:"rgba(255,255,255, .9)",borderWidth:2,radius:5,hoverRadius:6,hoverBorderWidth:3}},responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{mode:"index",intersect:!1}},interaction:{mode:"nearest",axis:"x",intersect:!1}},Pj=function(e){var n=e.chart.ctx,r=e.chart.chartArea;if(!r)return"rgba(166, 30, 105, 0.1)";var i=(r.left+r.right)/2,s=(r.top+r.bottom)/2,a=Math.min((r.right-r.left)/2,(r.bottom-r.top)/2),o=n.createRadialGradient(i,s,0,i,s,a);return o.addColorStop(0,"rgba(255, 255, 255, 0.4)"),o.addColorStop(.3,"rgba(255, 255, 255, 0.4)"),o.addColorStop(1,"rgba(166, 30, 105, 0.2)"),o};function cp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function dp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cp(Object(n),!0).forEach(function(r){Tj(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cp(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Tj(t,e,n){return(e=Ij(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ij(t){var e=Mj(t,"string");return Wi(e)=="symbol"?e:e+""}function Mj(t,e){if(Wi(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Wi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Wi(t){"@babel/helpers - typeof";return Wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wi(t)}function Lj(t){var e=new Date(t);return isNaN(e.getTime())?String(t):e.toLocaleString("en-US",{month:"short",day:"numeric"})}var Nj=function(){var e,n,r,i,s=rr(),a=s.data,o=s.isLoading,l=s.isRefetching,u=a==null?void 0:a.mentions,c=u==null||(e=u.mentionedInNumberOfQueries)===null||e===void 0||(e=e.previous)===null||e===void 0?void 0:e.difference,f=u==null?void 0:u.chart,p=Array.isArray(f==null?void 0:f.labels)?f.labels:f!=null&&f.labels&&Wi(f.labels)==="object"?Object.values(f.labels):[],h=p.map(function(g){return Lj(String(g))}),y=a==null?void 0:a.numberOfQueries;if(!y){var m=0;Array.isArray(f==null?void 0:f.datasets)&&f.datasets.forEach(function(g){Array.isArray(g==null?void 0:g.data)&&g.data.forEach(function(A){typeof A=="number"&&A>m&&(m=A)})}),y=m+2}var v=dp(dp({},Vu),{},{responsive:!0,maintainAspectRatio:!1,scales:{x:{display:!0,title:{display:!1,text:"Date"},grid:{display:!1}},y:{display:!0,title:{display:!1,text:"Number of Mentions"},beginAtZero:!0,max:y,ticks:{stepSize:1}}}});return d.jsx(k.Card,{className:"yst-overflow-visible",children:d.jsxs(k.Card.Content,{className:"yst-space-y-4",children:[d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(ma,{title:"Mentions progress",tooltip:"Tracks how your brand mentions have changed over time across the same query set."}),d.jsx(ya,{score:u==null||(n=u.mentionedInNumberOfQueries)===null||n===void 0?void 0:n.value,total:a==null?void 0:a.numberOfQueries,delta:c,deltaSuffix:"since last analysis",suffix:"queries",isLoading:o||l})]}),Array.isArray(f==null||(r=f.datasets)===null||r===void 0?void 0:r.data)&&(f==null||(i=f.datasets)===null||i===void 0?void 0:i.data.length)<2?d.jsx(k.Alert,{variant:"info",children:"One more analysis needed to show more insights."}):d.jsx("div",{className:"yst-h-72",children:d.jsx(Ej,{data:function(){var g={labels:h,datasets:[f==null?void 0:f.datasets]};return g}(),options:v})})]})})},Rj=function(){var e,n=rr(),r=n.data,i=n.isLoading,s=n.isRefetching;if(i&&!s||(r==null||(e=r.mentions)===null||e===void 0||(e=e.mentionedInNumberOfQueries)===null||e===void 0?void 0:e.value)!==0)return null;var a=[{title:"Activate llms.txt",description:"Make sure AI systems know where to look and which pages matter most.",link:{url:"https://yoast.com/help/enable-llmstxt/",text:"Set up llms.txt in Yoast SEO"}},{title:"Adopt an LLM-friendly content structure",description:"Start with clear definitions or TL;DRs, use subheadings, and format answers so LLMs can lift them directly.",link:{url:"https://yoast.com/yoast-seo-premium-september-9-2025/",text:"Learn how to generate AI summaries"}},{title:"Simplify writing and readability",description:"Use shorter sentences, plain language, and one idea per paragraph. This makes it easier for AI systems to recognize and quote your content."}];return d.jsx(k.Card,{className:"yst-overflow-visible yst-p-8 yst-text-slate-800 md:yst-col-span-2",children:d.jsxs(k.Card.Content,{className:"yst-max-w-2xl",children:[d.jsx(k.Title,{size:"2",className:"yst-mb-2 yst-text-slate-900",children:"We couldn't find your brand in this brand analysis..."}),d.jsx("p",{className:"yst-text-slate-600",children:"This means LLMs may not yet be surfacing your site in answers. Don't worry, here are some steps you can take today to boost your AI visibility:"}),d.jsx("ol",{className:"yst-my-0 yst-list-none yst-divide-y yst-divide-slate-200 [counter-reset:list-counter]",children:a.map(function(o,l){return d.jsx("li",{className:"yst-relative yst-py-4 [counter-increment:list-counter] before:yst-absolute before:yst-left-0 before:yst-font-semibold before:yst-text-slate-800 before:yst-content-[counter(list-counter)'.'] last:yst-pb-0",children:d.jsxs("div",{className:"yst-ml-4 yst-text-slate-600",children:[d.jsx("strong",{className:"yst-font-medium yst-text-slate-800",children:o.title}),d.jsx("br",{}),o.description,o.link&&d.jsxs(d.Fragment,{children:[d.jsx("br",{}),d.jsx("span",{className:"yst-mt-2 yst-block",children:d.jsxs("a",{href:o.link.url,target:"_blank",rel:"noopener noreferrer",className:"yst-font-medium",children:[o.link.text,d.jsx(Zd,{className:"yst-ml-1 yst-inline yst-h-3 yst-w-3"})]})})]})]})},l)})}),d.jsx(Xi,{size:4,className:"yst-pt-0"}),d.jsxs("p",{className:"yst-text-slate-600",children:["Want to go deeper? →"," ",d.jsxs("a",{href:"https://yoast.com/how-to-optimize-content-for-llms/",target:"_blank",rel:"noopener noreferrer",className:"yst-font-medium",children:["Read our full guide on optimizing content for LLMs",d.jsx(Zd,{className:"yst-ml-1 yst-inline yst-h-3 yst-w-3"})]})]})]})})};function Ua(t){var e=t.value,n=e===void 0?"—":e,r=t.label,i=t.tooltip,s=t.className,a=t.borderBottom,o=a===void 0?!1:a,l=t.borderRight,u=l===void 0?!1:l,c=t.delta,f=t.tooltipPosition,p=f===void 0?"left":f;return d.jsxs("div",{className:le("yst-relative yst-flex yst-flex-col yst-items-center yst-gap-1 yst-p-4 yst-text-center",o&&"yst-border-b yst-border-slate-200",u&&"yst-border-r yst-border-slate-200",s),children:[d.jsx("p",{className:"yst-text-2xl yst-font-bold yst-text-slate-900",children:n}),d.jsx("p",{className:"yst-text-tiny yst-text-slate-600",children:r}),typeof c=="number"&&d.jsxs("p",{className:le("yst-flex yst-items-center yst-gap-1 yst-text-tiny yst-font-bold",yo(c)),children:[c>0?d.jsx(d0,{}):c<0?d.jsx(c0,{}):null,c>-1e-6&&"+",c]}),i&&d.jsx(Lc,{id:"tooltip-".concat(r.replace(/\s+/g,"-").toLowerCase()),className:"yst-absolute yst-right-2 yst-top-2",position:p,children:i})]})}function _j(t){var e=t.children,n=t.className;return d.jsx("div",{className:le("yst-grid yst-w-full yst-grid-cols-2 yst-gap-0 yst-rounded-lg",n),children:e})}function Dj(t){return t>0?"yst-text-green-600":t<0?"yst-text-red-600":"yst-text-slate-500"}function Bj(t){var e=t.current,n=t.previous,r=t.className;if(typeof n!="number")return null;var i=e-n,s=i>0,a=i<0,o="".concat(i>0?"+":"").concat(i.toFixed(1),"%");return d.jsxs("div",{className:le("yst-flex yst-items-center yst-gap-1 yst-text-tiny yst-font-bold",Dj(i),r),"aria-label":s?"Visibility increased by ".concat(o):a?"Visibility decreased by ".concat(o):"No change in visibility",children:[s&&d.jsx(d0,{className:"yst-w-4 yst-h-4"}),a&&d.jsx(c0,{className:"yst-w-4 yst-h-4"}),o]})}function $s(t){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$s(t)}function Fj(t,e){return qj(t)||Hj(t,e)||Uj(t,e)||zj()}function zj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
53
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uj(t,e){if(t){if(typeof t=="string")return fp(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fp(t,e):void 0}}function fp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Hj(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function qj(t){if(Array.isArray(t))return t}function hp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ha(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hp(Object(n),!0).forEach(function(r){Wj(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Wj(t,e,n){return(e=Gj(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gj(t){var e=Qj(t,"string");return $s(e)=="symbol"?e:e+""}function Qj(t,e){if($s(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if($s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Yj(){var t,e,n,r,i,s,a,o,l,u,c,f,p,h,y,m,v,g,A,E,C,S,b,w=rr(),x=w.data,N=w.isLoading,D=x==null||(t=x.scores)===null||t===void 0?void 0:t.standardized,M=(e=x==null||(n=x.mentions)===null||n===void 0||(n=n.mentionedInNumberOfQueries)===null||n===void 0?void 0:n.value)!==null&&e!==void 0?e:0,T=x==null||(r=x.mentions)===null||r===void 0||(r=r.mentionedInNumberOfQueries)===null||r===void 0||(r=r.previous)===null||r===void 0?void 0:r.difference,z=(i=x==null||(s=x.scores)===null||s===void 0||(s=s.standardized)===null||s===void 0||(s=s.citations)===null||s===void 0?void 0:s.value)!==null&&i!==void 0?i:0,I=(a=x==null||(o=x.citations)===null||o===void 0||(o=o.total)===null||o===void 0?void 0:o.value)!==null&&a!==void 0?a:0,O=x==null||(l=x.citations)===null||l===void 0||(l=l.total)===null||l===void 0||(l=l.previous)===null||l===void 0?void 0:l.difference,B=x==null||(u=x.rankings)===null||u===void 0||(u=u.list)===null||u===void 0?void 0:u.find(function(ie){var Oe;return((Oe=ie.brand)===null||Oe===void 0?void 0:Oe.isSelf)===!0}),R=(c=B==null||(f=B.rank)===null||f===void 0?void 0:f.value)!==null&&c!==void 0?c:"—",Y=B==null||(p=B.rank)===null||p===void 0||(p=p.previous)===null||p===void 0?void 0:p.difference;Y&&(Y=Y*-1);var Q=(h=D==null||(y=D.visibility)===null||y===void 0?void 0:y.value)!==null&&h!==void 0?h:0,j=D==null||(m=D.visibility)===null||m===void 0||(m=m.previous)===null||m===void 0?void 0:m.value,W=(v=D==null||(g=D.ranking)===null||g===void 0?void 0:g.value)!==null&&v!==void 0?v:0,q=(A=D==null||(E=D.sentiment)===null||E===void 0?void 0:E.value)!==null&&A!==void 0?A:0,P=(C=D==null||(S=D.mentions)===null||S===void 0?void 0:S.value)!==null&&C!==void 0?C:0,G={labels:["Mentions","Ranking","Citations","Sentiment"],datasets:[{data:[P,W,z,q],backgroundColor:Pj,pointBackgroundColor:"rgba(166, 30, 105, 1)"}]},J=Ha(Ha({},Vu),{},{plugins:Ha(Ha({},Vu.plugins),{},{tooltip:{mode:"point",intersect:!0,callbacks:{label:function(Oe){var $=Oe.label||"",Ue=Oe.parsed.r||0;return"".concat($,": ").concat(Ue,"%")}}}}),interaction:{mode:"point",intersect:!0},scales:{r:{beginAtZero:!0,min:0,max:100,ticks:{stepSize:20}}}}),K=F.useState(typeof window!="undefined"&&window.innerWidth<800?"top":"left"),Z=Fj(K,2),oe=Z[0],ue=Z[1];return F.useEffect(function(){function ie(){ue(window.innerWidth<800?"top":"left")}return window.addEventListener("resize",ie),function(){return window.removeEventListener("resize",ie)}},[]),d.jsx(k.Card,{className:"yst-overflow-visible md:yst-col-span-2",children:d.jsxs(k.Card.Content,{children:[d.jsx(k.Title,{size:"3",className:"yst-mb-2",children:"AI Visibility Index (AIVI)"}),d.jsx(ya,{score:Q,total:100,isLoading:N}),d.jsx(Bj,{current:Q,previous:j,className:"yst-mb-4"}),d.jsxs("div",{className:"yst-flex yst-flex-col yst-items-center yst-justify-around yst-justify-items-center yst-gap-8 md:yst-flex-row",children:[d.jsxs("div",{className:"yst-radar-chart-container yst-relative yst-aspect-square yst-h-full yst-w-full md:yst-flex md:yst-w-1/2 md:yst-items-center md:yst-justify-center",children:[d.jsx(Oj,{data:G,options:J}),d.jsx(Lc,{id:"tooltip-radar-chart",className:"yst-absolute yst-right-2 yst-top-2",position:"left",children:"The AI Visibility Index (AIVI) shows how visible your brand is across major AI platforms like ChatGPT and Perplexity, based on mentions, citations, sentiment, and rankings."})]}),d.jsx("div",{className:"yst-mt-6 yst-w-full md:yst-mt-0 md:yst-flex md:yst-w-1/2 md:yst-items-center",children:d.jsxs(_j,{children:[d.jsx(Ua,{value:M,label:"Mentions",tooltip:"Mentions show how often your brand appears in AI-generated answers to the questions we send to LLMs.",borderBottom:!0,borderRight:!0,delta:T,tooltipPosition:oe}),d.jsx(Ua,{value:typeof R=="number"&&Number.isFinite(R)&&R>0?d.jsxs(d.Fragment,{children:["#",R,R===1&&" 🏆"]}):"—",label:"Competitor ranking",tooltip:"Ranking shows the position your brand is mentioned in AI-generated answers—whether in a numbered list or the order of appearance in full-text responses.",borderBottom:!0,delta:Y}),d.jsx(Ua,{value:I,label:"Citations",tooltip:"Citations are the source links found in AI-generated answers. They form the basis for mentions, sentiment, and ranking insights.",borderRight:!0,delta:O,tooltipPosition:oe}),d.jsx(Ua,{value:q?"".concat(q,"%"):"—",label:"Positive sentiment",tooltip:"Sentiment reflects how positively, neutrally, or negatively your brand is mentioned in AI-generated answers, based on the cited sources.",delta:x==null||(b=x.scores)===null||b===void 0||(b=b.standardized)===null||b===void 0||(b=b.sentiment)===null||b===void 0||(b=b.previous)===null||b===void 0?void 0:b.difference})]})})]})]})})}function Vj(t,e){return Zj(t)||Jj(t,e)||Xj(t,e)||Kj()}function Kj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xj(t,e){if(t){if(typeof t=="string")return pp(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pp(t,e):void 0}}function pp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Jj(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function Zj(t){if(Array.isArray(t))return t}var Ml=function(){var e=Tt(),n=e.brandId,r=e.analysisId,i=aS(),s=i.isProduction,a=ft(),o=li({query:{select:function(I){var O=I.data;return O==null?void 0:O.brands}}}),l=o.data,u=o.isLoading,c=Ho(n,r,{query:{enabled:!!n&&ff(r),select:function(I){var O=I.data;return O==null?void 0:O.analysis}}}),f=c.data,p=c.isLoading,h=Ec(n,{query:{enabled:!!n&&ff(r),select:function(I){var O=I.data;return O==null?void 0:O.analyses}}}),y=h.data,m=h.isLoading,v=f==null?void 0:f.status,g=u||p||m,A=l&&(l==null?void 0:l.length)>0,E=!g&&f&&v===An.completed,C=F.useState(!1),S=Vj(C,2),b=S[0],w=S[1],x=F.useRef(null),N=F.useRef(void 0),D=localStorage.getItem("yst_congratulations_toast_seen")==="true";F.useEffect(function(){return E&&!N.current&&!D&&(x.current=setTimeout(function(){w(!0),localStorage.setItem("yst_congratulations_toast_seen","true")},1e4)),!E&&N.current&&(w(!1),x.current&&(clearTimeout(x.current),x.current=null)),N.current=E,function(){x.current&&(clearTimeout(x.current),x.current=null)}},[E,D]);function M(z){var I=z.children;if(typeof window=="undefined")return null;var O=document.getElementById("tsx-toasts");return O?em.createPortal(I,O):null}var T=function(I){var O=I.isVisible,B=I.setIsVisible,R=function(){B(!1)},Y=l&&l.length>1||y&&y.length>1;return d.jsxs(k.Toast,{id:"toast",isVisible:O,setIsVisible:function(Q){Q||B(!1)},children:[d.jsxs("div",{className:"yst-mb-3 yst-flex yst-items-start yst-gap-3",children:[d.jsx(Pu,{}),d.jsxs("div",{className:"yst-grow",children:[d.jsx(k.Title,{size:"3",className:"yst-mb-1",children:Y?"Congratulations, your analysis is ready!":"Congratulations on completing your first brand analysis!"}),"You've completed your brand analysis. We'd love to hear what you think."]}),d.jsx(k.Button,{variant:"tertiary",onClick:R,children:d.jsx(Ic,{})})]}),d.jsxs("div",{className:"yst-flex yst-justify-end yst-gap-4",children:[d.jsx(k.Button,{variant:"tertiary",onClick:R,children:"Dismiss"}),d.jsxs(k.Button,{as:"a",href:"https://www.surveymonkey.com/r/HGSB8DL",target:"_blank",children:["Give feedback",d.jsx(h0,{className:"yst-ml-2"})]})]})]})};return u?d.jsx(Ji,{}):A?d.jsxs("div",{className:"yst-space-y-4",children:[d.jsx(QC,{}),g&&!u&&d.jsxs("div",{children:[d.jsx(k.Title,{size:"2",className:"yst-mb-2",children:"Your brand analysis is loading"}),d.jsx("div",{className:"yst-inline-flex yst-w-full yst-items-center yst-justify-center",children:d.jsx(k.Spinner,{size:"8",variant:"primary",className:"yst-ml-2"})})]}),E&&d.jsxs("div",{className:"yst-space-y-4",children:[d.jsxs("div",{className:"yst-flex yst-items-center yst-justify-between",children:[d.jsx(k.Title,{size:"2",children:"Your brand analysis"}),d.jsxs("div",{className:"yst-flex yst-gap-2",children:[!s&&d.jsx(k.Button,{variant:"secondary",onClick:function(){return a("/brands/".concat(n,"/analysis/").concat(r,"/scan-details"))},children:"Scan details"}),d.jsxs(k.Button,{as:jr,variant:"secondary",to:"/brands/".concat(n,"/brand-list"),disabled:!n,children:[d.jsx(s0,{})," Edit brand list"]})]})]}),d.jsxs("div",{className:"yst-grid yst-grid-cols-1 yst-gap-4 md:yst-grid-cols-2",children:[d.jsx(Rj,{}),d.jsx(Yj,{}),d.jsx(YC,{}),d.jsx(Nj,{}),d.jsx(KS,{}),d.jsx(qS,{}),d.jsx(PS,{}),d.jsx(XS,{})]}),d.jsx(M,{children:d.jsx(T,{isVisible:b,setIsVisible:w})})]})]}):d.jsx(hS,{})},$j=F.lazy(function(){return Promise.resolve().then(()=>BE)}),eE=F.lazy(function(){return Promise.resolve().then(()=>fP)}),tE=F.lazy(function(){return Promise.resolve().then(()=>QP)}),nE=F.lazy(function(){return Promise.resolve().then(()=>KP)}),rE=F.lazy(function(){return Promise.resolve().then(()=>uT)}),iE=F.lazy(function(){return Promise.resolve().then(()=>OT)}),sE=F.lazy(function(){return Promise.resolve().then(()=>YT)}),aE=new g2({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1,staleTime:1e3*60*5},mutations:{retry:!1}}}),oE=F.lazy(function(){return Promise.resolve({default:function(){return null}})}),Fn=function(){return d.jsx("div",{className:"yst-flex yst-min-h-[200px] yst-items-center yst-justify-center",children:d.jsxs("div",{className:"yst-w-full yst-max-w-md yst-space-y-3",children:[d.jsx(k.SkeletonLoader,{className:"yst-h-8 yst-w-3/4"}),d.jsx(k.SkeletonLoader,{className:"yst-h-6 yst-w-full"}),d.jsx(k.SkeletonLoader,{className:"yst-h-6 yst-w-2/3"})]})})},lE=function(e){var n=e.hideNav,r=n===void 0?!1:n,i=e.disableLayout,s=i===void 0?!1:i,a=e.DebugInfo;return d.jsx(mb,{children:d.jsxs(lt,{element:d.jsx(TA,{hideNav:r,disableLayout:s,DebugInfo:a}),children:[d.jsxs(lt,{path:"/",element:d.jsx(zi,{}),children:[d.jsx(lt,{index:!0,element:d.jsxs(F.Suspense,{fallback:d.jsx(Fn,{}),children:[d.jsx(Dn,{title:"AI Brand Insights"}),d.jsx(Ml,{})]})}),d.jsxs(lt,{path:"brands/:brandId",element:d.jsx(of,{}),children:[d.jsx(lt,{index:!0,element:d.jsx(Ml,{})}),d.jsx(lt,{path:"brand-list",element:d.jsxs(F.Suspense,{fallback:d.jsx(Fn,{}),children:[d.jsx(Dn,{title:"Brands - AI Brand Insights"}),d.jsx($j,{})]})}),d.jsxs(lt,{path:"analysis/:analysisId",element:d.jsx(IA,{}),children:[d.jsx(lt,{index:!0,element:d.jsxs(F.Suspense,{fallback:d.jsx(Fn,{}),children:[d.jsx(Dn,{title:"Analysis - AI Brand Insights"}),d.jsx(Ml,{})]})}),d.jsx(lt,{path:"scan-details",element:d.jsxs(F.Suspense,{fallback:d.jsx(Fn,{}),children:[d.jsx(Dn,{title:"Scan details - AI Brand Insights"}),d.jsx(eE,{})]})})]})]}),d.jsxs(lt,{path:"/setup",element:d.jsxs(F.Suspense,{fallback:d.jsx(Fn,{}),children:[d.jsx(Dn,{title:"Setup brand - AI Brand Insights"}),d.jsx(nE,{})]}),children:[d.jsx(lt,{index:!0,element:d.jsxs(F.Suspense,{fallback:d.jsx(Fn,{}),children:[d.jsx(Dn,{title:"AI Brand Insights"}),d.jsx(rE,{})]})}),d.jsxs(lt,{path:":brandId",element:d.jsx(of,{}),children:[d.jsx(lt,{path:"queries",element:d.jsxs(F.Suspense,{fallback:d.jsx(Fn,{}),children:[d.jsx(Dn,{title:"Setup queries - AI Brand Insights"}),d.jsx(iE,{})]})}),d.jsx(lt,{path:"analysis",element:d.jsxs(F.Suspense,{fallback:d.jsx(Fn,{}),children:[d.jsx(Dn,{title:"Analysis - AI Brand Insights"}),d.jsx(sE,{})]})})]})]})]}),d.jsx(lt,{path:"/settings",element:d.jsxs(F.Suspense,{fallback:d.jsx(Fn,{}),children:[d.jsx(Dn,{title:"Settings - AI Brand Insights"}),d.jsx(tE,{})]})}),!1]})})},uE=function(e){var n=e.DebugInfo,r=e.hostAppProps;return d.jsxs(v2,{client:aE,children:[d.jsx(zA,{children:d.jsxs(Aw,{hostAppProps:r,children:[d.jsx(lE,{DebugInfo:n}),d.jsx(UA,{})]})}),d.jsx(F.Suspense,{fallback:null,children:d.jsx(oE,{initialIsOpen:!1})})]})};function cE(t){var e=t.subpath,n=e===void 0?"/":e,r=t.onNavigate,i=ft(),s=vt(),a=F.useRef(n),o=F.useRef(null),l=F.useRef(!1),u="".concat(s.pathname).concat(s.search).concat(s.hash),c=F.useCallback(r,[r]);return F.useEffect(function(){if(n===u){a.current=n;return}l.current||n!==a.current&&(a.current=n,o.current=n,l.current=!0,i(n,{replace:!0}),setTimeout(function(){l.current=!1},10))},[n,u,i]),F.useEffect(function(){l.current||u!==n&&u!==o.current&&(o.current=u,c(u))},[u,n,c]),null}function dE(t,e){return yE(t)||pE(t,e)||hE(t,e)||fE()}function fE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
55
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hE(t,e){if(t){if(typeof t=="string")return yp(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yp(t,e):void 0}}function yp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function pE(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function yE(t){if(Array.isArray(t))return t}var mE=function(e){var n=e.isRtl,r=n===void 0?!1:n,i=e.className,s=e.style,a=e.token,o=a===void 0?"":a,l=e.apiUrl,u=e.env,c=e.DebugInfo,f=e.basename,p=f===void 0?"/":f,h=e.subpath,y=h===void 0?"/":h,m=e.onNavigate,v=m===void 0?function(){}:m,g=e.onLogout,A=g===void 0?function(){}:g,E=e.onAddSubscription,C=E===void 0?function(){}:E,S=function(T,z){var I=T.endsWith("/")?T.slice(0,-1):T,O=z.startsWith("/")?z:"/".concat(z);return I+O||"/"},b=F.useState(!!(o||l)),w=dE(b,2),x=w[0],N=w[1],D={onAddSubscription:C,onLogout:A,onNavigate:v,env:u,DebugInfo:c,basename:p,subpath:y};return F.useEffect(function(){l&&$m(l),fx(typeof o!="function"?function(){return o}:o),N(!1)},[l,o]),x?d.jsx("div",{className:i,style:s,children:d.jsx(k.Spinner,{})}):d.jsx("div",{className:i,style:s,children:d.jsxs(pb,{initialEntries:[S(p,y)],basename:p||"/",children:[d.jsx(cE,{subpath:y,onNavigate:v}),d.jsx(k.Root,{context:{isRtl:r},children:d.jsx(uE,{DebugInfo:c,hostAppProps:D})})]})})};function Ag(t){var e=t.children,n=t.description,r=t.title;return d.jsxs(k.Paper.Header,{children:[r&&d.jsx(k.Title,{className:le({"yst-mb-3":n||e}),children:r}),n&&(typeof n=="string"?d.jsx("p",{children:n}):n),e]})}function Ku(t){"@babel/helpers - typeof";return Ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ku(t)}function js(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return Ft(A,"_invoke",function(E,C,S){var b,w,x,N=0,D=S||[],M=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(O,B){return b=O,w=0,x=t,T.n=B,a}};function z(I,O){for(w=I,x=O,e=0;!M&&N&&!B&&e<D.length;e++){var B,R=D[e],Y=T.p,Q=R[2];I>3?(B=Q===O)&&(x=R[(w=R[4])?5:(w=3,3)],R[4]=R[5]=t):R[0]<=Y&&((B=I<2&&Y<R[1])?(w=0,T.v=O,T.n=R[1]):Y<Q&&(B=I<3||R[0]>O||O>Q)&&(R[4]=I,R[5]=O,T.n=Q,w=0))}if(B||I>1)return a;throw M=!0,O}return function(I,O,B){if(N>1)throw TypeError("Generator is already running");for(M&&O===1&&z(O,B),w=O,x=B;(e=w<2?t:x)||!M;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(I="next"),e=b[I]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+I+"' method"),w=1);b=t}else if((e=(M=T.n<0)?x:E.call(C,T))!==a)break}catch(R){b=t,w=1,x=R}finally{N=1}}return{value:e,done:M}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(Ft(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,Ft(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,Ft(f,"constructor",u),Ft(u,"constructor",l),l.displayName="GeneratorFunction",Ft(u,i,"GeneratorFunction"),Ft(f),Ft(f,i,"Generator"),Ft(f,r,function(){return this}),Ft(f,"toString",function(){return"[object Generator]"}),(js=function(){return{w:s,m:p}})()}function Ft(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}Ft=function(a,o,l,u){function c(f,p){Ft(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},Ft(t,e,n,r)}function mp(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function gp(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){mp(s,r,i,a,o,"next",l)}function o(l){mp(s,r,i,a,o,"throw",l)}a(void 0)})}}function Ll(t,e){return xE(t)||bE(t,e)||vE(t,e)||gE()}function gE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
56
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vE(t,e){if(t){if(typeof t=="string")return vp(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vp(t,e):void 0}}function vp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function bE(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function xE(t){if(Array.isArray(t))return t}var wE=function(e){var n=e.isOpen,r=e.onClose,i=e.groupToEdit,s=e.allBrands,a=Tt(),o=a.brandId,l=a.analysisId,u=F.useState(""),c=Ll(u,2),f=c[0],p=c[1],h=F.useState([]),y=Ll(h,2),m=y[0],v=y[1],g=F.useState(!1),A=Ll(g,2),E=A[0],C=A[1],S=Kt();F.useEffect(function(){if(n&&i&&i.type==="group"){var Q;p(String(i.name||""));var j=((Q=i.groupedBrands)===null||Q===void 0?void 0:Q.map(function(W){return String(W.id||"")}))||[];v(j)}},[n,i]);var b=t0({mutation:{onSuccess:function(){var Q=gp(js().m(function W(){return js().w(function(q){for(;;)switch(q.n){case 0:return q.n=1,Promise.all([S.invalidateQueries({queryKey:po(o)}),S.invalidateQueries({queryKey:Kn(o,"latest")}),S.invalidateQueries({queryKey:fn(o,"latest")}),S.invalidateQueries({queryKey:Kn(o,l)}),S.invalidateQueries({queryKey:fn(o,l)})]);case 1:I();case 2:return q.a(2)}},W)}));function j(){return Q.apply(this,arguments)}return j}(),onError:function(j){console.error("Error creating brand group:",j)}}}),w=b.mutate,x=b.isPending,N=Gx({mutation:{onSuccess:function(){var Q=gp(js().m(function W(){return js().w(function(q){for(;;)switch(q.n){case 0:return q.n=1,Promise.all([S.invalidateQueries({queryKey:po(o)}),S.invalidateQueries({queryKey:Kn(o,"latest")}),S.invalidateQueries({queryKey:fn(o,"latest")}),S.invalidateQueries({queryKey:Kn(o,l)}),S.invalidateQueries({queryKey:fn(o,l)})]);case 1:I(),R();case 2:return q.a(2)}},W)}));function j(){return Q.apply(this,arguments)}return j}(),onError:function(j){console.error("Error deleting brand group:",j),window.alert("An error occurred while ungrouping the brands. Please try again later.")}}}),D=N.mutate,M=N.isPending,T=typeof(i==null?void 0:i.id)=="string"&&i.id.length>0||typeof(i==null?void 0:i.id)=="number"&&!isNaN(i.id),z=function(){!f.trim()||!T||w({brandId:o,data:{groupName:f.trim(),brandIds:m}})},I=function(){p(""),v([]),r()},O=function(){return m.map(function(j){if(i&&i.type==="group"){var W,q=(W=i.groupedBrands)===null||W===void 0?void 0:W.find(function(G){return String(G.id)===j});if(q)return q.name||""}var P=s.find(function(G){return String(G.id)===j});return P?P.type==="group"?"Group: ".concat(P.name):P.name||"":""}).filter(Boolean)},B=function(){C(!0)},R=function(){return C(!1)},Y=function(){if(!T){console.error("Invalid groupId provided for ungrouping. groupToEdit?.id: ".concat(i==null?void 0:i.id," (type: ").concat(Ku(i==null?void 0:i.id),")")),R();return}D({brandId:o,brandGroupId:i.id})};return!i||i.type!=="group"?null:d.jsxs(d.Fragment,{children:[d.jsx(k.Modal,{isOpen:n,onClose:E?function(){}:I,as:"div",children:d.jsx(k.Modal.Panel,{children:d.jsxs(k.Modal.Container,{children:[d.jsx(k.Modal.Container.Header,{className:"yst-mb-4",children:d.jsx(k.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Edit brand group"})}),d.jsxs(k.Modal.Container.Content,{className:"yst-mb-8 yst-space-y-4",children:[d.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"Update the group name or ungroup brands by removing their tags."}),d.jsxs("div",{children:[d.jsx("label",{htmlFor:"editGroupName",className:"yst-mb-2 yst-block yst-text-sm yst-font-medium",children:"Group name"}),d.jsx(k.TextInput,{id:"editGroupName",value:f,onChange:function(Q){return p(Q.target.value)},placeholder:"Enter group name",className:"yst-w-full"})]}),d.jsxs("div",{children:[d.jsx(k.TagField,{readOnly:!0,id:"editGroupedBrands",label:"Grouped brands",tags:O(),onRemoveTag:function(Q){if(m.length<2)return C(!0);v(function(j){return j.filter(function(W,q){return q!==Q})})},onAddTag:function(){}}),m.length===0?d.jsx("p",{className:"yst-mt-2 yst-text-sm",children:'Click "Ungroup brands" to remove this group.'}):d.jsx("p",{className:"yst-mt-2 yst-text-sm yst-italic yst-text-gray-500",children:"Note: To add brands to this group, save this group, then use the checkboxes to select this group as well as any additional brands to be grouped."})]})]}),d.jsx(k.Modal.Container.Footer,{children:d.jsxs("div",{className:"yst-flex yst-w-full yst-items-center yst-justify-between",children:[d.jsx("div",{className:"yst-flex yst-justify-start",children:d.jsx(k.Button,{variant:"tertiary",onClick:B,disabled:x||!T,className:"yst-text-red-600",children:"Ungroup brands"})}),d.jsxs("div",{className:"yst-flex yst-justify-end yst-gap-2",children:[d.jsx(k.Button,{variant:"secondary",onClick:I,children:"Cancel"}),d.jsx(k.Button,{variant:"primary",onClick:z,disabled:!f.trim()||x,isLoading:x,children:x?"Saving...":"Save changes"})]})]})})]})})}),d.jsx(Yo,{isOpen:E,onClose:R,onConfirm:Y,disabled:!T||M,isLoading:M,title:"Ungroup this brand group?",description:d.jsxs(d.Fragment,{children:[d.jsx("p",{children:"The group will be removed, but the brands inside will remain in your brand list."}),d.jsx("p",{children:"This action cannot be undone. To create a new group with these brands, simply select them and create a new group."})]}),confirmText:"Yes, ungroup"})]})};function Xu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return zt(A,"_invoke",function(E,C,S){var b,w,x,N=0,D=S||[],M=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(O,B){return b=O,w=0,x=t,T.n=B,a}};function z(I,O){for(w=I,x=O,e=0;!M&&N&&!B&&e<D.length;e++){var B,R=D[e],Y=T.p,Q=R[2];I>3?(B=Q===O)&&(x=R[(w=R[4])?5:(w=3,3)],R[4]=R[5]=t):R[0]<=Y&&((B=I<2&&Y<R[1])?(w=0,T.v=O,T.n=R[1]):Y<Q&&(B=I<3||R[0]>O||O>Q)&&(R[4]=I,R[5]=O,T.n=Q,w=0))}if(B||I>1)return a;throw M=!0,O}return function(I,O,B){if(N>1)throw TypeError("Generator is already running");for(M&&O===1&&z(O,B),w=O,x=B;(e=w<2?t:x)||!M;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(I="next"),e=b[I]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+I+"' method"),w=1);b=t}else if((e=(M=T.n<0)?x:E.call(C,T))!==a)break}catch(R){b=t,w=1,x=R}finally{N=1}}return{value:e,done:M}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(zt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,zt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,zt(f,"constructor",u),zt(u,"constructor",l),l.displayName="GeneratorFunction",zt(u,i,"GeneratorFunction"),zt(f),zt(f,i,"Generator"),zt(f,r,function(){return this}),zt(f,"toString",function(){return"[object Generator]"}),(Xu=function(){return{w:s,m:p}})()}function zt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}zt=function(a,o,l,u){function c(f,p){zt(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},zt(t,e,n,r)}function bp(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function AE(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){bp(s,r,i,a,o,"next",l)}function o(l){bp(s,r,i,a,o,"throw",l)}a(void 0)})}}function xp(t,e){return jE(t)||kE(t,e)||CE(t,e)||SE()}function SE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CE(t,e){if(t){if(typeof t=="string")return wp(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wp(t,e):void 0}}function wp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function kE(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function jE(t){if(Array.isArray(t))return t}var EE=function(e){var n=e.isOpen,r=e.onClose,i=e.brandId,s=e.brandsToGroup,a=e.onGroupCreated,o=Kt(),l=Tt(),u=l.analysisId,c=F.useState(""),f=xp(c,2),p=f[0],h=f[1],y=F.useState([]),m=xp(y,2),v=m[0],g=m[1];F.useEffect(function(){if(n&&s.length>0){var N,D=(N=s[0])===null||N===void 0?void 0:N.name;h(String(D||"New Group")),g(s.map(function(M){var T;return String((T=M.id)!==null&&T!==void 0?T:"")}))}},[n,s]);var A=t0({mutation:{onSuccess:function(){var N=AE(Xu().m(function M(){return Xu().w(function(T){for(;;)switch(T.n){case 0:return T.n=1,Promise.all([o.invalidateQueries({queryKey:po(i)}),o.invalidateQueries({queryKey:Uo(i)}),o.invalidateQueries({queryKey:Kn(i,"latest")}),o.invalidateQueries({queryKey:fn(i,"latest")}),o.invalidateQueries({queryKey:Kn(i,u)}),o.invalidateQueries({queryKey:fn(i,u)})]);case 1:a==null||a(),S();case 2:return T.a(2)}},M)}));function D(){return N.apply(this,arguments)}return D}(),onError:function(D){console.error("Error creating group:",D)}}}),E=A.mutate,C=A.isPending,S=function(){h(""),g([]),r()},b=function(){if(!(!p.trim()||v.length===0)){var D=v.flatMap(function(M){var T=s.find(function(z){return String(z.id)===M});return T&&T.type==="group"&&Array.isArray(T.groupedBrands)?T.groupedBrands.map(function(z){return String(z.id)}):M});E({brandId:i,data:{groupName:p.trim(),brandIds:D.filter(function(M){return M!==""})}})}},w=function(D){g(function(M){var T=M.filter(function(z){return z!==D});return T.length===0&&S(),T})},x=v.map(function(N){var D=s.find(function(M){return String(M.id)===N});return D?D.type==="group"?"Group: ".concat(D.name):D.name||"":""}).filter(Boolean);return d.jsx(k.Modal,{isOpen:n,onClose:S,children:d.jsx(k.Modal.Panel,{children:d.jsxs(k.Modal.Container,{children:[d.jsx(k.Modal.Container.Header,{children:d.jsx(k.Modal.Title,{children:"Create brand group"})}),d.jsxs(k.Modal.Container.Content,{className:"yst-space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{htmlFor:"groupName",className:"yst-mb-2 yst-block yst-text-sm yst-font-medium",children:"Group name"}),d.jsx(k.TextInput,{id:"groupName",value:p,onChange:function(N){return h(N.target.value)},placeholder:"Enter group name",className:"yst-w-full"})]}),d.jsxs("div",{children:[d.jsx(k.TagField,{readOnly:!0,id:"groupedBrands",label:"Brands in group (".concat(v.length,")"),tags:x,onRemoveTag:function(N){var D=v[N];D&&w(D)},onAddTag:function(){}}),v.length===0&&d.jsx("p",{className:"yst-text-sm yst-italic yst-text-gray-500",children:"No brands selected"})]}),d.jsx("p",{children:"Note: To add brands to this group, save this group, then use the checkboxes to select this group as well as any additional brands to be grouped."})]}),d.jsx(k.Modal.Container.Footer,{className:"yst-pt-4",children:d.jsxs("div",{className:"yst-flex yst-justify-end yst-gap-2",children:[d.jsx(k.Button,{variant:"secondary",onClick:S,disabled:C,children:"Cancel"}),d.jsx(k.Button,{variant:"primary",onClick:b,disabled:!p.trim()||v.length===0||C,children:C?"Saving...":"Save group"})]})})]})})})};function ea(t){"@babel/helpers - typeof";return ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ea(t)}function Ap(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Sp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ap(Object(n),!0).forEach(function(r){Sg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ap(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Sg(t,e,n){return(e=OE(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function OE(t){var e=PE(t,"string");return ea(e)=="symbol"?e:e+""}function PE(t,e){if(ea(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ea(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function TE(t){return LE(t)||ME(t)||Cg(t)||IE()}function IE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
58
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ME(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function LE(t){if(Array.isArray(t))return Ju(t)}function xn(t,e){return _E(t)||RE(t,e)||Cg(t,e)||NE()}function NE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
59
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cg(t,e){if(t){if(typeof t=="string")return Ju(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ju(t,e):void 0}}function Ju(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function RE(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function _E(t){if(Array.isArray(t))return t}var DE=function(){var e,n=ft(),r=F.useState(!1),i=xn(r,2),s=i[0],a=i[1],o=F.useState({}),l=xn(o,2),u=l[0],c=l[1],f=F.useState(""),p=xn(f,2),h=p[0],y=p[1],m=F.useState(1),v=xn(m,2),g=v[0],A=v[1],E=F.useState({}),C=xn(E,2),S=C[0],b=C[1],w=F.useState(!1),x=xn(w,2),N=x[0],D=x[1],M=F.useState(!1),T=xn(M,2),z=T[0],I=T[1],O=F.useState(null),B=xn(O,2),R=B[0],Y=B[1],Q=Tt(),j=Q.brandId;function W(pe){return String(pe.id)}var q=zx(j,{query:{enabled:!!j}}),P=q.data,G=q.isLoading,J=10,K=(P==null||(e=P.data)===null||e===void 0?void 0:e.associatedBrands.filter(function(pe){var ye,me;return h?((ye=(me=pe.name)===null||me===void 0?void 0:me.toLowerCase())!==null&&ye!==void 0?ye:"").includes(h.toLowerCase()):!0}))||[],Z=Math.ceil(K.length/J),oe=(g-1)*J,ue=TE(K).sort(function(pe,ye){return pe.type==="group"&&ye.type!=="group"?-1:pe.type!=="group"&&ye.type==="group"?1:0}),ie=ue.slice(oe,oe+J),Oe=function(ye){var me=K.find(function(U){return W(U)===ye});me&&me.type==="group"&&(Y(me),I(!0))},$=Object.entries(S).filter(function(pe){var ye=xn(pe,2),me=ye[1];return me}).map(function(pe){var ye=xn(pe,1),me=ye[0];return me}),Ue=function(){D(!0)},Mt=function(ye){y(ye.target.value),A(1)},st=function(ye){b(function(me){return Sp(Sp({},me),{},Sg({},ye,!me[ye]))})},Ye=function(){n("/")},et=function(){b({}),c({}),a(!1)},yn=function(){D(!1)},at=function(){b({}),A(1),y("")},Ln=function(){I(!1),Y(null)},Nn=function(ye,me){return ye in u?!!u[ye]:!me.isHidden},ze=[{Header:"Brand name",accessor:"name",Cell:function(ye){var me=ye.value,U=ye.row;return d.jsx("span",{className:"yst-font-medium yst-text-slate-900",children:d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-2",children:[d.jsx(k.Checkbox,{id:"brand-checkbox-".concat(U.id),checked:!!S[W(U)],onChange:function(){return st(W(U))},value:W(U),label:U.isSelf?d.jsx(Hs,{children:me}):me,name:"brand-checkbox-".concat(U.id),disabled:!Nn(W(U),U)}),U.type==="group"&&d.jsx(tS,{className:"yst-h-4 yst-w-4 yst-text-slate-400"})]})})},LoadingComponent:function(ye){var me=ye.id,U=me===void 0?"":me;return d.jsxs("div",{className:"yst-flex",children:[d.jsx(k.Checkbox,{id:"loading-row-checkbox-".concat(U),value:"loading",label:"",disabled:!0,name:"brand-checkbox-".concat(U)})," ",d.jsx(k.SkeletonLoader,{className:"yst-h-6 yst-w-32",id:"loading-row-skeleton-".concat(U)})]})}},{Header:"Actions",accessor:"id",Cell:function(ye){var me=ye.value,U=ye.row;return d.jsx(d.Fragment,{children:U.type==="group"?d.jsxs(k.Button,{variant:"tertiary",size:"small",onClick:function(){return Oe(String(me!=null?me:""))},className:"yst-px-0",disabled:!Nn(W(U),U),children:[d.jsx(s0,{className:"yst-h-4 yst-w-4"}),"Edit group"]}):void 0})},LoadingComponent:function(){return d.jsx(k.SkeletonLoader,{className:"yst-h-6 yst-w-24"})}}];return d.jsxs(k.Paper,{className:"yst-mx-auto yst-max-w-2xl",children:[d.jsx(Ag,{title:"Brand list ".concat(""),children:d.jsx("p",{children:"These are the brands found in responses to your example prompts. Group related brands to improve your analysis. You can rename or exclude irrelevant brands, and new brands will be added automatically if they appear in future analysis runs."})}),d.jsxs(k.Paper.Content,{children:[d.jsx("div",{className:"yst-mb-6",children:d.jsx(k.TextInput,{id:"brand-search",label:"Search brands",placeholder:"Search brands",value:h,onChange:Mt})}),d.jsx("div",{className:"yst-mb-6",children:d.jsxs(k.Table,{columns:ze,className:"yst-w-full",variant:"minimal",children:[d.jsx(k.Table.Head,{children:d.jsx(k.Table.Row,{children:ze.map(function(pe){return d.jsx(k.Table.Header,{children:pe.Header},pe.accessor)})})}),d.jsx(k.Table.Body,{children:G?[1,2,3].map(function(pe,ye){return d.jsx(k.Table.Row,{children:ze.map(function(me,U){return d.jsx(k.Table.Cell,{children:d.jsx(me.LoadingComponent,{id:"skeleton-".concat(ye,"-").concat(U)},me.accessor)},"cell-".concat(U))})},ye)}):ie.length===0?d.jsx(k.Table.Row,{children:d.jsx(k.Table.Cell,{colSpan:ze.length,children:d.jsxs("div",{className:"yst-py-12 yst-text-center",children:[d.jsx("h3",{className:"yst-mt-4 yst-text-lg yst-font-medium yst-text-slate-900",children:"No brands found"}),d.jsx("p",{className:"yst-mt-2 yst-text-sm yst-text-slate-500",children:h?'No brands match "'.concat(h,'". Try a different search term.'):"No brands have been found yet. Run an analysis to discover brands."}),h&&d.jsx(k.Button,{variant:"secondary",size:"small",onClick:function(){y(""),A(1)},className:"yst-mt-4",children:"Clear search"})]})})}):ie.map(function(pe){return d.jsx(k.Table.Row,{children:ze.map(function(ye){return d.jsx(k.Table.Cell,{children:ye.Cell?ye.Cell({value:pe[ye.accessor],row:pe}):pe[ye.accessor]},ye.accessor)})},pe.id)})})]})}),d.jsxs("div",{className:"yst-flex yst-items-center yst-justify-between",children:[d.jsxs(k.Button,{variant:"secondary",onClick:Ue,className:"yst-mb-0 yst-gap-2",disabled:$.length<2,children:[d.jsx(Jw,{})," Group brands"]}),d.jsx(k.Pagination,{variant:"text",current:g,total:Z,onNavigate:A,className:"yst-flex-row",screenReaderTextPrevious:"Previous page",screenReaderTextNext:"Next page"})]})]}),d.jsx(Mc,{children:d.jsx("div",{className:"yst-flex yst-items-center yst-justify-end yst-gap-4",children:s?d.jsxs(d.Fragment,{children:[d.jsx(k.Button,{variant:"secondary",className:"yst-mb-0",onClick:et,children:"Discard changes"}),d.jsx(k.Button,{variant:"primary",className:"yst-mb-0",onClick:Ye,children:"Save changes"})]}):d.jsx(k.Button,{as:jr,to:"/brands/".concat(j),variant:"tertiary",className:"yst-mb-0",children:"Return to analysis"})})}),d.jsx(EE,{isOpen:N,onClose:yn,brandId:j,brandsToGroup:K.filter(function(pe){return $.includes(W(pe))}),onGroupCreated:at}),d.jsx(wE,{isOpen:z,onClose:Ln,groupToEdit:R,allBrands:K})]})};const BE=Object.freeze(Object.defineProperty({__proto__:null,default:DE},Symbol.toStringTag,{value:"Module"}));function Zu(t){var e=t.children,n=t.description,r=t.title;return d.jsxs(k.Card.Header,{className:"yst-h-auto yst-flex-col yst-items-start yst-gap-0 yst-border-b-[1px] yst-border-b-slate-200 yst-bg-white yst-py-8",children:[r&&d.jsx(k.Title,{className:le({"yst-mb-3":n||e}),children:r}),n&&d.jsx("p",{children:n}),e]})}function FE(t,e){const n={};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const zE=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,UE=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HE={};function Cp(t,e){return(HE.jsx?UE:zE).test(t)}const qE=/[ \t\n\f\r]/g;function WE(t){return typeof t=="object"?t.type==="text"?kp(t.value):!1:kp(t)}function kp(t){return t.replace(qE,"")===""}class va{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}}va.prototype.normal={};va.prototype.property={};va.prototype.space=void 0;function kg(t,e){const n={},r={};for(const i of t)Object.assign(n,i.property),Object.assign(r,i.normal);return new va(n,r,e)}function $u(t){return t.toLowerCase()}class It{constructor(e,n){this.attribute=n,this.property=e}}It.prototype.attribute="";It.prototype.booleanish=!1;It.prototype.boolean=!1;It.prototype.commaOrSpaceSeparated=!1;It.prototype.commaSeparated=!1;It.prototype.defined=!1;It.prototype.mustUseProperty=!1;It.prototype.number=!1;It.prototype.overloadedBoolean=!1;It.prototype.property="";It.prototype.spaceSeparated=!1;It.prototype.space=void 0;let GE=0;const xe=ui(),Ve=ui(),ec=ui(),V=ui(),De=ui(),ki=ui(),Nt=ui();function ui(){return 2**++GE}const tc=Object.freeze(Object.defineProperty({__proto__:null,boolean:xe,booleanish:Ve,commaOrSpaceSeparated:Nt,commaSeparated:ki,number:V,overloadedBoolean:ec,spaceSeparated:De},Symbol.toStringTag,{value:"Module"})),Nl=Object.keys(tc);class Xc extends It{constructor(e,n,r,i){let s=-1;if(super(e,n),jp(this,"space",i),typeof r=="number")for(;++s<Nl.length;){const a=Nl[s];jp(this,Nl[s],(r&tc[a])===tc[a])}}}Xc.prototype.defined=!0;function jp(t,e,n){n&&(t[e]=n)}function es(t){const e={},n={};for(const[r,i]of Object.entries(t.properties)){const s=new Xc(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),e[r]=s,n[$u(r)]=r,n[$u(s.attribute)]=r}return new va(e,n,t.space)}const jg=es({properties:{ariaActiveDescendant:null,ariaAtomic:Ve,ariaAutoComplete:null,ariaBusy:Ve,ariaChecked:Ve,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:De,ariaCurrent:null,ariaDescribedBy:De,ariaDetails:null,ariaDisabled:Ve,ariaDropEffect:De,ariaErrorMessage:null,ariaExpanded:Ve,ariaFlowTo:De,ariaGrabbed:Ve,ariaHasPopup:null,ariaHidden:Ve,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:De,ariaLevel:V,ariaLive:null,ariaModal:Ve,ariaMultiLine:Ve,ariaMultiSelectable:Ve,ariaOrientation:null,ariaOwns:De,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:Ve,ariaReadOnly:Ve,ariaRelevant:null,ariaRequired:Ve,ariaRoleDescription:De,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:Ve,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function Eg(t,e){return e in t?t[e]:e}function Og(t,e){return Eg(t,e.toLowerCase())}const QE=es({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ki,acceptCharset:De,accessKey:De,action:null,allow:null,allowFullScreen:xe,allowPaymentRequest:xe,allowUserMedia:xe,alt:null,as:null,async:xe,autoCapitalize:null,autoComplete:De,autoFocus:xe,autoPlay:xe,blocking:De,capture:null,charSet:null,checked:xe,cite:null,className:De,cols:V,colSpan:null,content:null,contentEditable:Ve,controls:xe,controlsList:De,coords:V|ki,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xe,defer:xe,dir:null,dirName:null,disabled:xe,download:ec,draggable:Ve,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xe,formTarget:null,headers:De,height:V,hidden:ec,high:V,href:null,hrefLang:null,htmlFor:De,httpEquiv:De,id:null,imageSizes:null,imageSrcSet:null,inert:xe,inputMode:null,integrity:null,is:null,isMap:xe,itemId:null,itemProp:De,itemRef:De,itemScope:xe,itemType:De,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xe,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:xe,muted:xe,name:null,nonce:null,noModule:xe,noValidate:xe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:xe,optimum:V,pattern:null,ping:De,placeholder:null,playsInline:xe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xe,referrerPolicy:null,rel:De,required:xe,reversed:xe,rows:V,rowSpan:V,sandbox:De,scope:null,scoped:xe,seamless:xe,selected:xe,shadowRootClonable:xe,shadowRootDelegatesFocus:xe,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:Ve,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:xe,useMap:null,value:Ve,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:De,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xe,declare:xe,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:xe,noHref:xe,noShade:xe,noWrap:xe,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:Ve,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:xe,disableRemotePlayback:xe,prefix:null,property:null,results:V,security:null,unselectable:null},space:"html",transform:Og}),YE=es({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Nt,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:De,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:xe,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ki,g2:ki,glyphName:ki,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:Nt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:De,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Nt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Nt,rev:Nt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Nt,requiredFeatures:Nt,requiredFonts:Nt,requiredFormats:Nt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:Nt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Nt,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Nt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Eg}),Pg=es({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),Tg=es({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Og}),Ig=es({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),VE={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},KE=/[A-Z]/g,Ep=/-[a-z]/g,XE=/^data[-\w.:]+$/i;function JE(t,e){const n=$u(e);let r=e,i=It;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&XE.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(Ep,$E);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!Ep.test(s)){let a=s.replace(KE,ZE);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}i=Xc}return new i(r,e)}function ZE(t){return"-"+t.toLowerCase()}function $E(t){return t.charAt(1).toUpperCase()}const e8=kg([jg,QE,Pg,Tg,Ig],"html"),Jc=kg([jg,YE,Pg,Tg,Ig],"svg");function t8(t){return t.join(" ").trim()}var mi={},Rl,Op;function n8(){if(Op)return Rl;Op=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
60
+ `,u="/",c="*",f="",p="comment",h="declaration";function y(v,g){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];g=g||{};var A=1,E=1;function C(I){var O=I.match(e);O&&(A+=O.length);var B=I.lastIndexOf(l);E=~B?I.length-B:E+I.length}function S(){var I={line:A,column:E};return function(O){return O.position=new b(I),N(),O}}function b(I){this.start=I,this.end={line:A,column:E},this.source=g.source}b.prototype.content=v;function w(I){var O=new Error(g.source+":"+A+":"+E+": "+I);if(O.reason=I,O.filename=g.source,O.line=A,O.column=E,O.source=v,!g.silent)throw O}function x(I){var O=I.exec(v);if(O){var B=O[0];return C(B),v=v.slice(B.length),O}}function N(){x(n)}function D(I){var O;for(I=I||[];O=M();)O!==!1&&I.push(O);return I}function M(){var I=S();if(!(u!=v.charAt(0)||c!=v.charAt(1))){for(var O=2;f!=v.charAt(O)&&(c!=v.charAt(O)||u!=v.charAt(O+1));)++O;if(O+=2,f===v.charAt(O-1))return w("End of comment missing");var B=v.slice(2,O-2);return E+=2,C(B),v=v.slice(O),E+=2,I({type:p,comment:B})}}function T(){var I=S(),O=x(r);if(O){if(M(),!x(i))return w("property missing ':'");var B=x(s),R=I({type:h,property:m(O[0].replace(t,f)),value:B?m(B[0].replace(t,f)):f});return x(a),R}}function z(){var I=[];D(I);for(var O;O=T();)O!==!1&&(I.push(O),D(I));return I}return N(),z()}function m(v){return v?v.replace(o,f):f}return Rl=y,Rl}var Pp;function r8(){if(Pp)return mi;Pp=1;var t=mi&&mi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(mi,"__esModule",{value:!0}),mi.default=n;const e=t(n8());function n(r,i){let s=null;if(!r||typeof r!="string")return s;const a=(0,e.default)(r),o=typeof i=="function";return a.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:c}=l;o?i(u,c,l):c&&(s=s||{},s[u]=c)}),s}return mi}var ys={},Tp;function i8(){if(Tp)return ys;Tp=1,Object.defineProperty(ys,"__esModule",{value:!0}),ys.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(u){return!u||n.test(u)||t.test(u)},a=function(u,c){return c.toUpperCase()},o=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),s(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(i,o):u=u.replace(r,o),u.replace(e,a))};return ys.camelCase=l,ys}var ms,Ip;function s8(){if(Ip)return ms;Ip=1;var t=ms&&ms.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},e=t(r8()),n=i8();function r(i,s){var a={};return!i||typeof i!="string"||(0,e.default)(i,function(o,l){o&&l&&(a[(0,n.camelCase)(o,s)]=l)}),a}return r.default=r,ms=r,ms}var a8=s8();const o8=To(a8),Mg=Lg("end"),Zc=Lg("start");function Lg(t){return e;function e(n){const r=n&&n.position&&n.position[t]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function l8(t){const e=Zc(t),n=Mg(t);if(e&&n)return{start:e,end:n}}function Ls(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Mp(t.position):"start"in t||"end"in t?Mp(t):"line"in t||"column"in t?nc(t):""}function nc(t){return Lp(t&&t.line)+":"+Lp(t&&t.column)}function Mp(t){return nc(t&&t.start)+"-"+nc(t&&t.end)}function Lp(t){return t&&typeof t=="number"?t:1}class ht extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},a=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof e=="string"?i=e:!s.cause&&e&&(a=!0,i=e.message,s.cause=e),!s.ruleId&&!s.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?s.ruleId=r:(s.source=r.slice(0,l),s.ruleId=r.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){const l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=Ls(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=a&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ht.prototype.file="";ht.prototype.name="";ht.prototype.reason="";ht.prototype.message="";ht.prototype.stack="";ht.prototype.column=void 0;ht.prototype.line=void 0;ht.prototype.ancestors=void 0;ht.prototype.cause=void 0;ht.prototype.fatal=void 0;ht.prototype.place=void 0;ht.prototype.ruleId=void 0;ht.prototype.source=void 0;const $c={}.hasOwnProperty,u8=new Map,c8=/[A-Z]/g,d8=new Set(["table","tbody","thead","tfoot","tr"]),f8=new Set(["td","th"]),Ng="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function h8(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=w8(n,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=x8(n,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Jc:e8,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},s=Rg(i,t,void 0);return s&&typeof s!="string"?s:i.create(t,i.Fragment,{children:s||void 0},void 0)}function Rg(t,e,n){if(e.type==="element")return p8(t,e,n);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return y8(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return g8(t,e,n);if(e.type==="mdxjsEsm")return m8(t,e);if(e.type==="root")return v8(t,e,n);if(e.type==="text")return b8(t,e)}function p8(t,e,n){const r=t.schema;let i=r;e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Jc,t.schema=i),t.ancestors.push(e);const s=Dg(t,e.tagName,!1),a=A8(t,e);let o=td(t,e);return d8.has(e.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!WE(l):!0})),_g(t,a,s,e),ed(a,o),t.ancestors.pop(),t.schema=r,t.create(e,s,a,n)}function y8(t,e){if(e.data&&e.data.estree&&t.evaluater){const r=e.data.estree.body[0];return r.type,t.evaluater.evaluateExpression(r.expression)}ta(t,e.position)}function m8(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);ta(t,e.position)}function g8(t,e,n){const r=t.schema;let i=r;e.name==="svg"&&r.space==="html"&&(i=Jc,t.schema=i),t.ancestors.push(e);const s=e.name===null?t.Fragment:Dg(t,e.name,!0),a=S8(t,e),o=td(t,e);return _g(t,a,s,e),ed(a,o),t.ancestors.pop(),t.schema=r,t.create(e,s,a,n)}function v8(t,e,n){const r={};return ed(r,td(t,e)),t.create(e,t.Fragment,r,n)}function b8(t,e){return e.value}function _g(t,e,n,r){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=r)}function ed(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function x8(t,e,n){return r;function r(i,s,a,o){const u=Array.isArray(a.children)?n:e;return o?u(s,a,o):u(s,a)}}function w8(t,e){return n;function n(r,i,s,a){const o=Array.isArray(s.children),l=Zc(r);return e(i,s,a,o,{columnNumber:l?l.column-1:void 0,fileName:t,lineNumber:l?l.line:void 0},void 0)}}function A8(t,e){const n={};let r,i;for(i in e.properties)if(i!=="children"&&$c.call(e.properties,i)){const s=C8(t,i,e.properties[i]);if(s){const[a,o]=s;t.tableCellAlignToStyle&&a==="align"&&typeof o=="string"&&f8.has(e.tagName)?r=o:n[a]=o}}if(r){const s=n.style||(n.style={});s[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function S8(t,e){const n={};for(const r of e.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&t.evaluater){const s=r.data.estree.body[0];s.type;const a=s.expression;a.type;const o=a.properties[0];o.type,Object.assign(n,t.evaluater.evaluateExpression(o.argument))}else ta(t,e.position);else{const i=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&t.evaluater){const o=r.value.data.estree.body[0];o.type,s=t.evaluater.evaluateExpression(o.expression)}else ta(t,e.position);else s=r.value===null?!0:r.value;n[i]=s}return n}function td(t,e){const n=[];let r=-1;const i=t.passKeys?new Map:u8;for(;++r<e.children.length;){const s=e.children[r];let a;if(t.passKeys){const l=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(l){const u=i.get(l)||0;a=l+"-"+u,i.set(l,u+1)}}const o=Rg(t,s,a);o!==void 0&&n.push(o)}return n}function C8(t,e,n){const r=JE(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?FE(n):t8(n)),r.property==="style"){let i=typeof n=="object"?n:k8(t,String(n));return t.stylePropertyNameCase==="css"&&(i=j8(i)),["style",i]}return[t.elementAttributeNameCase==="react"&&r.space?VE[r.property]||r.property:r.attribute,n]}}function k8(t,e){try{return o8(e,{reactCompat:!0})}catch(n){if(t.ignoreInvalidStyle)return{};const r=n,i=new ht("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=Ng+"#cannot-parse-style-attribute",i}}function Dg(t,e,n){let r;if(!n)r={type:"Literal",value:e};else if(e.includes(".")){const i=e.split(".");let s=-1,a;for(;++s<i.length;){const o=Cp(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};a=a?{type:"MemberExpression",object:a,property:o,computed:!!(s&&o.type==="Literal"),optional:!1}:o}r=a}else r=Cp(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(r.type==="Literal"){const i=r.value;return $c.call(t.components,i)?t.components[i]:i}if(t.evaluater)return t.evaluater.evaluateExpression(r);ta(t)}function ta(t,e){const n=new ht("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=Ng+"#cannot-handle-mdx-estrees-without-createevaluater",n}function j8(t){const e={};let n;for(n in t)$c.call(t,n)&&(e[E8(n)]=t[n]);return e}function E8(t){let e=t.replace(c8,O8);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function O8(t){return"-"+t.toLowerCase()}const _l={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},P8={};function T8(t,e){const n=P8,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Bg(t,r,i)}function Bg(t,e,n){if(I8(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return Np(t.children,e,n)}return Array.isArray(t)?Np(t,e,n):""}function Np(t,e,n){const r=[];let i=-1;for(;++i<t.length;)r[i]=Bg(t[i],e,n);return r.join("")}function I8(t){return!!(t&&typeof t=="object")}const Rp=document.createElement("i");function nd(t){const e="&"+t+";";Rp.innerHTML=e;const n=Rp.textContent;return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function In(t,e,n,r){const i=t.length;let s=0,a;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(e,n),t.splice(...a);else for(n&&t.splice(e,n);s<r.length;)a=r.slice(s,s+1e4),a.unshift(e,0),t.splice(...a),s+=1e4,e+=1e4}function tn(t,e){return t.length>0?(In(t,t.length,0,e),t):e}const _p={}.hasOwnProperty;function M8(t){const e={};let n=-1;for(;++n<t.length;)L8(e,t[n]);return e}function L8(t,e){let n;for(n in e){const i=(_p.call(t,n)?t[n]:void 0)||(t[n]={}),s=e[n];let a;if(s)for(a in s){_p.call(i,a)||(i[a]=[]);const o=s[a];N8(i[a],Array.isArray(o)?o:o?[o]:[])}}}function N8(t,e){let n=-1;const r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);In(t,0,0,r)}function Fg(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ji(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Tn=Or(/[A-Za-z]/),Yt=Or(/[\dA-Za-z]/),R8=Or(/[#-'*+\--9=?A-Z^-~]/);function rc(t){return t!==null&&(t<32||t===127)}const ic=Or(/\d/),_8=Or(/[\dA-Fa-f]/),D8=Or(/[!-/:-@[-`{-~]/);function fe(t){return t!==null&&t<-2}function Ot(t){return t!==null&&(t<0||t===32)}function Te(t){return t===-2||t===-1||t===32}const B8=Or(/\p{P}|\p{S}/u),F8=Or(/\s/);function Or(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function ts(t){const e=[];let n=-1,r=0,i=0;for(;++n<t.length;){const s=t.charCodeAt(n);let a="";if(s===37&&Yt(t.charCodeAt(n+1))&&Yt(t.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){const o=t.charCodeAt(n+1);s<56320&&o>56319&&o<57344?(a=String.fromCharCode(s,o),i=1):a="�"}else a=String.fromCharCode(s);a&&(e.push(t.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return e.join("")+t.slice(r)}function Fe(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return a;function a(l){return Te(l)?(t.enter(n),o(l)):e(l)}function o(l){return Te(l)&&s++<i?(t.consume(l),o):(t.exit(n),e(l))}}const z8={tokenize:U8};function U8(t){const e=t.attempt(this.parser.constructs.contentInitial,r,i);let n;return e;function r(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),Fe(t,e,"linePrefix")}function i(o){return t.enter("paragraph"),s(o)}function s(o){const l=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(o)}function a(o){if(o===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(o);return}return fe(o)?(t.consume(o),t.exit("chunkText"),s):(t.consume(o),a)}}const H8={tokenize:q8},Dp={tokenize:W8};function q8(t){const e=this,n=[];let r=0,i,s,a;return o;function o(E){if(r<n.length){const C=n[r];return e.containerState=C[1],t.attempt(C[0].continuation,l,u)(E)}return u(E)}function l(E){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&A();const C=e.events.length;let S=C,b;for(;S--;)if(e.events[S][0]==="exit"&&e.events[S][1].type==="chunkFlow"){b=e.events[S][1].end;break}g(r);let w=C;for(;w<e.events.length;)e.events[w][1].end={...b},w++;return In(e.events,S+1,0,e.events.slice(C)),e.events.length=w,u(E)}return o(E)}function u(E){if(r===n.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return y(E);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(Dp,c,f)(E)}function c(E){return i&&A(),g(r),p(E)}function f(E){return e.parser.lazy[e.now().line]=r!==n.length,a=e.now().offset,y(E)}function p(E){return e.containerState={},t.attempt(Dp,h,y)(E)}function h(E){return r++,n.push([e.currentConstruct,e.containerState]),p(E)}function y(E){if(E===null){i&&A(),g(0),t.consume(E);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),m(E)}function m(E){if(E===null){v(t.exit("chunkFlow"),!0),g(0),t.consume(E);return}return fe(E)?(t.consume(E),v(t.exit("chunkFlow")),r=0,e.interrupt=void 0,o):(t.consume(E),m)}function v(E,C){const S=e.sliceStream(E);if(C&&S.push(null),E.previous=s,s&&(s.next=E),s=E,i.defineSkip(E.start),i.write(S),e.parser.lazy[E.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<a&&(!i.events[b][1].end||i.events[b][1].end.offset>a))return;const w=e.events.length;let x=w,N,D;for(;x--;)if(e.events[x][0]==="exit"&&e.events[x][1].type==="chunkFlow"){if(N){D=e.events[x][1].end;break}N=!0}for(g(r),b=w;b<e.events.length;)e.events[b][1].end={...D},b++;In(e.events,x+1,0,e.events.slice(w)),e.events.length=b}}function g(E){let C=n.length;for(;C-- >E;){const S=n[C];e.containerState=S[1],S[0].exit.call(e,t)}n.length=E}function A(){i.write([null]),s=void 0,i=void 0,e.containerState._closeFlow=void 0}}function W8(t,e,n){return Fe(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Bp(t){if(t===null||Ot(t)||F8(t))return 1;if(B8(t))return 2}function rd(t,e,n){const r=[];let i=-1;for(;++i<t.length;){const s=t[i].resolveAll;s&&!r.includes(s)&&(e=s(e,n),r.push(s))}return e}const sc={name:"attention",resolveAll:G8,tokenize:Q8};function G8(t,e){let n=-1,r,i,s,a,o,l,u,c;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(r=n;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&e.sliceSerialize(t[r][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[r][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;l=t[r][1].end.offset-t[r][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const f={...t[r][1].end},p={...t[n][1].start};Fp(f,-l),Fp(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...t[r][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:p},s={type:l>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},t[r][1].end={...a.start},t[n][1].start={...o.end},u=[],t[r][1].end.offset-t[r][1].start.offset&&(u=tn(u,[["enter",t[r][1],e],["exit",t[r][1],e]])),u=tn(u,[["enter",i,e],["enter",a,e],["exit",a,e],["enter",s,e]]),u=tn(u,rd(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),u=tn(u,[["exit",s,e],["enter",o,e],["exit",o,e],["exit",i,e]]),t[n][1].end.offset-t[n][1].start.offset?(c=2,u=tn(u,[["enter",t[n][1],e],["exit",t[n][1],e]])):c=0,In(t,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function Q8(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Bp(r);let s;return a;function a(l){return s=l,t.enter("attentionSequence"),o(l)}function o(l){if(l===s)return t.consume(l),o;const u=t.exit("attentionSequence"),c=Bp(l),f=!c||c===2&&i||n.includes(l),p=!i||i===2&&c||n.includes(r);return u._open=!!(s===42?f:f&&(i||!p)),u._close=!!(s===42?p:p&&(c||!f)),e(l)}}function Fp(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const Y8={name:"autolink",tokenize:V8};function V8(t,e,n){let r=0;return i;function i(h){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(h),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(h){return Tn(h)?(t.consume(h),a):h===64?n(h):u(h)}function a(h){return h===43||h===45||h===46||Yt(h)?(r=1,o(h)):u(h)}function o(h){return h===58?(t.consume(h),r=0,l):(h===43||h===45||h===46||Yt(h))&&r++<32?(t.consume(h),o):(r=0,u(h))}function l(h){return h===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(h),t.exit("autolinkMarker"),t.exit("autolink"),e):h===null||h===32||h===60||rc(h)?n(h):(t.consume(h),l)}function u(h){return h===64?(t.consume(h),c):R8(h)?(t.consume(h),u):n(h)}function c(h){return Yt(h)?f(h):n(h)}function f(h){return h===46?(t.consume(h),r=0,c):h===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(h),t.exit("autolinkMarker"),t.exit("autolink"),e):p(h)}function p(h){if((h===45||Yt(h))&&r++<63){const y=h===45?p:f;return t.consume(h),y}return n(h)}}const tl={partial:!0,tokenize:K8};function K8(t,e,n){return r;function r(s){return Te(s)?Fe(t,i,"linePrefix")(s):i(s)}function i(s){return s===null||fe(s)?e(s):n(s)}}const zg={continuation:{tokenize:J8},exit:Z8,name:"blockQuote",tokenize:X8};function X8(t,e,n){const r=this;return i;function i(a){if(a===62){const o=r.containerState;return o.open||(t.enter("blockQuote",{_container:!0}),o.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),s}return n(a)}function s(a){return Te(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(a))}}function J8(t,e,n){const r=this;return i;function i(a){return Te(a)?Fe(t,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return t.attempt(zg,e,n)(a)}}function Z8(t){t.exit("blockQuote")}const Ug={name:"characterEscape",tokenize:$8};function $8(t,e,n){return r;function r(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),i}function i(s){return D8(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(s)}}const Hg={name:"characterReference",tokenize:eO};function eO(t,e,n){const r=this;let i=0,s,a;return o;function o(f){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),l}function l(f){return f===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(f),t.exit("characterReferenceMarkerNumeric"),u):(t.enter("characterReferenceValue"),s=31,a=Yt,c(f))}function u(f){return f===88||f===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(f),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,a=_8,c):(t.enter("characterReferenceValue"),s=7,a=ic,c(f))}function c(f){if(f===59&&i){const p=t.exit("characterReferenceValue");return a===Yt&&!nd(r.sliceSerialize(p))?n(f):(t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return a(f)&&i++<s?(t.consume(f),c):n(f)}}const zp={partial:!0,tokenize:nO},Up={concrete:!0,name:"codeFenced",tokenize:tO};function tO(t,e,n){const r=this,i={partial:!0,tokenize:S};let s=0,a=0,o;return l;function l(b){return u(b)}function u(b){const w=r.events[r.events.length-1];return s=w&&w[1].type==="linePrefix"?w[2].sliceSerialize(w[1],!0).length:0,o=b,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),c(b)}function c(b){return b===o?(a++,t.consume(b),c):a<3?n(b):(t.exit("codeFencedFenceSequence"),Te(b)?Fe(t,f,"whitespace")(b):f(b))}function f(b){return b===null||fe(b)?(t.exit("codeFencedFence"),r.interrupt?e(b):t.check(zp,m,C)(b)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||fe(b)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),f(b)):Te(b)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Fe(t,h,"whitespace")(b)):b===96&&b===o?n(b):(t.consume(b),p)}function h(b){return b===null||fe(b)?f(b):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===null||fe(b)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),f(b)):b===96&&b===o?n(b):(t.consume(b),y)}function m(b){return t.attempt(i,C,v)(b)}function v(b){return t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),g}function g(b){return s>0&&Te(b)?Fe(t,A,"linePrefix",s+1)(b):A(b)}function A(b){return b===null||fe(b)?t.check(zp,m,C)(b):(t.enter("codeFlowValue"),E(b))}function E(b){return b===null||fe(b)?(t.exit("codeFlowValue"),A(b)):(t.consume(b),E)}function C(b){return t.exit("codeFenced"),e(b)}function S(b,w,x){let N=0;return D;function D(O){return b.enter("lineEnding"),b.consume(O),b.exit("lineEnding"),M}function M(O){return b.enter("codeFencedFence"),Te(O)?Fe(b,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):T(O)}function T(O){return O===o?(b.enter("codeFencedFenceSequence"),z(O)):x(O)}function z(O){return O===o?(N++,b.consume(O),z):N>=a?(b.exit("codeFencedFenceSequence"),Te(O)?Fe(b,I,"whitespace")(O):I(O)):x(O)}function I(O){return O===null||fe(O)?(b.exit("codeFencedFence"),w(O)):x(O)}}}function nO(t,e,n){const r=this;return i;function i(a){return a===null?n(a):(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),s)}function s(a){return r.parser.lazy[r.now().line]?n(a):e(a)}}const Dl={name:"codeIndented",tokenize:iO},rO={partial:!0,tokenize:sO};function iO(t,e,n){const r=this;return i;function i(u){return t.enter("codeIndented"),Fe(t,s,"linePrefix",5)(u)}function s(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):fe(u)?t.attempt(rO,a,l)(u):(t.enter("codeFlowValue"),o(u))}function o(u){return u===null||fe(u)?(t.exit("codeFlowValue"),a(u)):(t.consume(u),o)}function l(u){return t.exit("codeIndented"),e(u)}}function sO(t,e,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):fe(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),i):Fe(t,s,"linePrefix",5)(a)}function s(a){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(a):fe(a)?i(a):n(a)}}const aO={name:"codeText",previous:lO,resolve:oO,tokenize:uO};function oO(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="codeTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}function lO(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function uO(t,e,n){let r=0,i,s;return a;function a(f){return t.enter("codeText"),t.enter("codeTextSequence"),o(f)}function o(f){return f===96?(t.consume(f),r++,o):(t.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(t.enter("space"),t.consume(f),t.exit("space"),l):f===96?(s=t.enter("codeTextSequence"),i=0,c(f)):fe(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),l):(t.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||fe(f)?(t.exit("codeTextData"),l(f)):(t.consume(f),u)}function c(f){return f===96?(t.consume(f),i++,c):i===r?(t.exit("codeTextSequence"),t.exit("codeText"),e(f)):(s.type="codeTextData",u(f))}}class cO{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const r=n==null?Number.POSITIVE_INFINITY:n;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){const i=n||0;this.setCursor(Math.trunc(e));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&gs(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),gs(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),gs(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);gs(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);gs(this.left,n.reverse())}}}function gs(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function qg(t){const e={};let n=-1,r,i,s,a,o,l,u;const c=new cO(t);for(;++n<c.length;){for(;n in e;)n=e[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,s=0,s<l.length&&l[s][1].type==="lineEndingBlank"&&(s+=2),s<l.length&&l[s][1].type==="content"))for(;++s<l.length&&l[s][1].type!=="content";)l[s][1].type==="chunkText"&&(l[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,dO(c,n)),n=e[n],u=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(a=c.get(s),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=s);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},o=c.slice(i,n),o.unshift(r),c.splice(i,n-i+1,o))}}return In(t,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function dO(t,e){const n=t.get(e)[1],r=t.get(e)[2];let i=e-1;const s=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const o=a.events,l=[],u={};let c,f,p=-1,h=n,y=0,m=0;const v=[m];for(;h;){for(;t.get(++i)[1]!==h;);s.push(i),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),f&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(m=p+1,v.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),p=v.length;p--;){const g=o.slice(v[p],v[p+1]),A=s.pop();l.push([A,A+g.length-1]),t.splice(A,2,g)}for(l.reverse(),p=-1;++p<l.length;)u[y+l[p][0]]=y+l[p][1],y+=l[p][1]-l[p][0]-1;return u}const fO={resolve:pO,tokenize:yO},hO={partial:!0,tokenize:mO};function pO(t){return qg(t),t}function yO(t,e){let n;return r;function r(o){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?s(o):fe(o)?t.check(hO,a,s)(o):(t.consume(o),i)}function s(o){return t.exit("chunkContent"),t.exit("content"),e(o)}function a(o){return t.consume(o),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function mO(t,e,n){const r=this;return i;function i(a){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Fe(t,s,"linePrefix")}function s(a){if(a===null||fe(a))return n(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(a):t.interrupt(r.parser.constructs.flow,n,e)(a)}}function Wg(t,e,n,r,i,s,a,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(g){return g===60?(t.enter(r),t.enter(i),t.enter(s),t.consume(g),t.exit(s),p):g===null||g===32||g===41||rc(g)?n(g):(t.enter(r),t.enter(a),t.enter(o),t.enter("chunkString",{contentType:"string"}),m(g))}function p(g){return g===62?(t.enter(s),t.consume(g),t.exit(s),t.exit(i),t.exit(r),e):(t.enter(o),t.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===62?(t.exit("chunkString"),t.exit(o),p(g)):g===null||g===60||fe(g)?n(g):(t.consume(g),g===92?y:h)}function y(g){return g===60||g===62||g===92?(t.consume(g),h):h(g)}function m(g){return!c&&(g===null||g===41||Ot(g))?(t.exit("chunkString"),t.exit(o),t.exit(a),t.exit(r),e(g)):c<u&&g===40?(t.consume(g),c++,m):g===41?(t.consume(g),c--,m):g===null||g===32||g===40||rc(g)?n(g):(t.consume(g),g===92?v:m)}function v(g){return g===40||g===41||g===92?(t.consume(g),m):m(g)}}function Gg(t,e,n,r,i,s){const a=this;let o=0,l;return u;function u(h){return t.enter(r),t.enter(i),t.consume(h),t.exit(i),t.enter(s),c}function c(h){return o>999||h===null||h===91||h===93&&!l||h===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):h===93?(t.exit(s),t.enter(i),t.consume(h),t.exit(i),t.exit(r),e):fe(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||fe(h)||o++>999?(t.exit("chunkString"),c(h)):(t.consume(h),l||(l=!Te(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(t.consume(h),o++,f):f(h)}}function Qg(t,e,n,r,i,s){let a;return o;function o(p){return p===34||p===39||p===40?(t.enter(r),t.enter(i),t.consume(p),t.exit(i),a=p===40?41:p,l):n(p)}function l(p){return p===a?(t.enter(i),t.consume(p),t.exit(i),t.exit(r),e):(t.enter(s),u(p))}function u(p){return p===a?(t.exit(s),l(a)):p===null?n(p):fe(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),Fe(t,u,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===a||p===null||fe(p)?(t.exit("chunkString"),u(p)):(t.consume(p),p===92?f:c)}function f(p){return p===a||p===92?(t.consume(p),c):c(p)}}function Ns(t,e){let n;return r;function r(i){return fe(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):Te(i)?Fe(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}const gO={name:"definition",tokenize:bO},vO={partial:!0,tokenize:xO};function bO(t,e,n){const r=this;let i;return s;function s(h){return t.enter("definition"),a(h)}function a(h){return Gg.call(r,t,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return i=ji(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(t.enter("definitionMarker"),t.consume(h),t.exit("definitionMarker"),l):n(h)}function l(h){return Ot(h)?Ns(t,u)(h):u(h)}function u(h){return Wg(t,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return t.attempt(vO,f,f)(h)}function f(h){return Te(h)?Fe(t,p,"whitespace")(h):p(h)}function p(h){return h===null||fe(h)?(t.exit("definition"),r.parser.defined.push(i),e(h)):n(h)}}function xO(t,e,n){return r;function r(o){return Ot(o)?Ns(t,i)(o):n(o)}function i(o){return Qg(t,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function s(o){return Te(o)?Fe(t,a,"whitespace")(o):a(o)}function a(o){return o===null||fe(o)?e(o):n(o)}}const wO={name:"hardBreakEscape",tokenize:AO};function AO(t,e,n){return r;function r(s){return t.enter("hardBreakEscape"),t.consume(s),i}function i(s){return fe(s)?(t.exit("hardBreakEscape"),e(s)):n(s)}}const SO={name:"headingAtx",resolve:CO,tokenize:kO};function CO(t,e){let n=t.length-2,r=3,i,s;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},s={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},In(t,r,n-r+1,[["enter",i,e],["enter",s,e],["exit",s,e],["exit",i,e]])),t}function kO(t,e,n){let r=0;return i;function i(c){return t.enter("atxHeading"),s(c)}function s(c){return t.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&r++<6?(t.consume(c),a):c===null||Ot(c)?(t.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(t.enter("atxHeadingSequence"),l(c)):c===null||fe(c)?(t.exit("atxHeading"),e(c)):Te(c)?Fe(t,o,"whitespace")(c):(t.enter("atxHeadingText"),u(c))}function l(c){return c===35?(t.consume(c),l):(t.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||Ot(c)?(t.exit("atxHeadingText"),o(c)):(t.consume(c),u)}}const jO=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Hp=["pre","script","style","textarea"],EO={concrete:!0,name:"htmlFlow",resolveTo:TO,tokenize:IO},OO={partial:!0,tokenize:LO},PO={partial:!0,tokenize:MO};function TO(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function IO(t,e,n){const r=this;let i,s,a,o,l;return u;function u(P){return c(P)}function c(P){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(P),f}function f(P){return P===33?(t.consume(P),p):P===47?(t.consume(P),s=!0,m):P===63?(t.consume(P),i=3,r.interrupt?e:j):Tn(P)?(t.consume(P),a=String.fromCharCode(P),v):n(P)}function p(P){return P===45?(t.consume(P),i=2,h):P===91?(t.consume(P),i=5,o=0,y):Tn(P)?(t.consume(P),i=4,r.interrupt?e:j):n(P)}function h(P){return P===45?(t.consume(P),r.interrupt?e:j):n(P)}function y(P){const G="CDATA[";return P===G.charCodeAt(o++)?(t.consume(P),o===G.length?r.interrupt?e:T:y):n(P)}function m(P){return Tn(P)?(t.consume(P),a=String.fromCharCode(P),v):n(P)}function v(P){if(P===null||P===47||P===62||Ot(P)){const G=P===47,J=a.toLowerCase();return!G&&!s&&Hp.includes(J)?(i=1,r.interrupt?e(P):T(P)):jO.includes(a.toLowerCase())?(i=6,G?(t.consume(P),g):r.interrupt?e(P):T(P)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(P):s?A(P):E(P))}return P===45||Yt(P)?(t.consume(P),a+=String.fromCharCode(P),v):n(P)}function g(P){return P===62?(t.consume(P),r.interrupt?e:T):n(P)}function A(P){return Te(P)?(t.consume(P),A):D(P)}function E(P){return P===47?(t.consume(P),D):P===58||P===95||Tn(P)?(t.consume(P),C):Te(P)?(t.consume(P),E):D(P)}function C(P){return P===45||P===46||P===58||P===95||Yt(P)?(t.consume(P),C):S(P)}function S(P){return P===61?(t.consume(P),b):Te(P)?(t.consume(P),S):E(P)}function b(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(t.consume(P),l=P,w):Te(P)?(t.consume(P),b):x(P)}function w(P){return P===l?(t.consume(P),l=null,N):P===null||fe(P)?n(P):(t.consume(P),w)}function x(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||Ot(P)?S(P):(t.consume(P),x)}function N(P){return P===47||P===62||Te(P)?E(P):n(P)}function D(P){return P===62?(t.consume(P),M):n(P)}function M(P){return P===null||fe(P)?T(P):Te(P)?(t.consume(P),M):n(P)}function T(P){return P===45&&i===2?(t.consume(P),B):P===60&&i===1?(t.consume(P),R):P===62&&i===4?(t.consume(P),W):P===63&&i===3?(t.consume(P),j):P===93&&i===5?(t.consume(P),Q):fe(P)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(OO,q,z)(P)):P===null||fe(P)?(t.exit("htmlFlowData"),z(P)):(t.consume(P),T)}function z(P){return t.check(PO,I,q)(P)}function I(P){return t.enter("lineEnding"),t.consume(P),t.exit("lineEnding"),O}function O(P){return P===null||fe(P)?z(P):(t.enter("htmlFlowData"),T(P))}function B(P){return P===45?(t.consume(P),j):T(P)}function R(P){return P===47?(t.consume(P),a="",Y):T(P)}function Y(P){if(P===62){const G=a.toLowerCase();return Hp.includes(G)?(t.consume(P),W):T(P)}return Tn(P)&&a.length<8?(t.consume(P),a+=String.fromCharCode(P),Y):T(P)}function Q(P){return P===93?(t.consume(P),j):T(P)}function j(P){return P===62?(t.consume(P),W):P===45&&i===2?(t.consume(P),j):T(P)}function W(P){return P===null||fe(P)?(t.exit("htmlFlowData"),q(P)):(t.consume(P),W)}function q(P){return t.exit("htmlFlow"),e(P)}}function MO(t,e,n){const r=this;return i;function i(a){return fe(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),s):n(a)}function s(a){return r.parser.lazy[r.now().line]?n(a):e(a)}}function LO(t,e,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(tl,e,n)}}const NO={name:"htmlText",tokenize:RO};function RO(t,e,n){const r=this;let i,s,a;return o;function o(j){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(j),l}function l(j){return j===33?(t.consume(j),u):j===47?(t.consume(j),S):j===63?(t.consume(j),E):Tn(j)?(t.consume(j),x):n(j)}function u(j){return j===45?(t.consume(j),c):j===91?(t.consume(j),s=0,y):Tn(j)?(t.consume(j),A):n(j)}function c(j){return j===45?(t.consume(j),h):n(j)}function f(j){return j===null?n(j):j===45?(t.consume(j),p):fe(j)?(a=f,R(j)):(t.consume(j),f)}function p(j){return j===45?(t.consume(j),h):f(j)}function h(j){return j===62?B(j):j===45?p(j):f(j)}function y(j){const W="CDATA[";return j===W.charCodeAt(s++)?(t.consume(j),s===W.length?m:y):n(j)}function m(j){return j===null?n(j):j===93?(t.consume(j),v):fe(j)?(a=m,R(j)):(t.consume(j),m)}function v(j){return j===93?(t.consume(j),g):m(j)}function g(j){return j===62?B(j):j===93?(t.consume(j),g):m(j)}function A(j){return j===null||j===62?B(j):fe(j)?(a=A,R(j)):(t.consume(j),A)}function E(j){return j===null?n(j):j===63?(t.consume(j),C):fe(j)?(a=E,R(j)):(t.consume(j),E)}function C(j){return j===62?B(j):E(j)}function S(j){return Tn(j)?(t.consume(j),b):n(j)}function b(j){return j===45||Yt(j)?(t.consume(j),b):w(j)}function w(j){return fe(j)?(a=w,R(j)):Te(j)?(t.consume(j),w):B(j)}function x(j){return j===45||Yt(j)?(t.consume(j),x):j===47||j===62||Ot(j)?N(j):n(j)}function N(j){return j===47?(t.consume(j),B):j===58||j===95||Tn(j)?(t.consume(j),D):fe(j)?(a=N,R(j)):Te(j)?(t.consume(j),N):B(j)}function D(j){return j===45||j===46||j===58||j===95||Yt(j)?(t.consume(j),D):M(j)}function M(j){return j===61?(t.consume(j),T):fe(j)?(a=M,R(j)):Te(j)?(t.consume(j),M):N(j)}function T(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(t.consume(j),i=j,z):fe(j)?(a=T,R(j)):Te(j)?(t.consume(j),T):(t.consume(j),I)}function z(j){return j===i?(t.consume(j),i=void 0,O):j===null?n(j):fe(j)?(a=z,R(j)):(t.consume(j),z)}function I(j){return j===null||j===34||j===39||j===60||j===61||j===96?n(j):j===47||j===62||Ot(j)?N(j):(t.consume(j),I)}function O(j){return j===47||j===62||Ot(j)?N(j):n(j)}function B(j){return j===62?(t.consume(j),t.exit("htmlTextData"),t.exit("htmlText"),e):n(j)}function R(j){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(j),t.exit("lineEnding"),Y}function Y(j){return Te(j)?Fe(t,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):Q(j)}function Q(j){return t.enter("htmlTextData"),a(j)}}const id={name:"labelEnd",resolveAll:FO,resolveTo:zO,tokenize:UO},_O={tokenize:HO},DO={tokenize:qO},BO={tokenize:WO};function FO(t){let e=-1;const n=[];for(;++e<t.length;){const r=t[e][1];if(n.push(t[e]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",e+=i}}return t.length!==n.length&&In(t,0,t.length,n),t}function zO(t,e){let n=t.length,r=0,i,s,a,o;for(;n--;)if(i=t[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(t[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},u={type:"label",start:{...t[s][1].start},end:{...t[a][1].end}},c={type:"labelText",start:{...t[s+r+2][1].end},end:{...t[a-2][1].start}};return o=[["enter",l,e],["enter",u,e]],o=tn(o,t.slice(s+1,s+r+3)),o=tn(o,[["enter",c,e]]),o=tn(o,rd(e.parser.constructs.insideSpan.null,t.slice(s+r+4,a-3),e)),o=tn(o,[["exit",c,e],t[a-2],t[a-1],["exit",u,e]]),o=tn(o,t.slice(a+1)),o=tn(o,[["exit",l,e]]),In(t,s,t.length,o),t}function UO(t,e,n){const r=this;let i=r.events.length,s,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return o;function o(p){return s?s._inactive?f(p):(a=r.parser.defined.includes(ji(r.sliceSerialize({start:s.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelEnd"),l):n(p)}function l(p){return p===40?t.attempt(_O,c,a?c:f)(p):p===91?t.attempt(DO,c,a?u:f)(p):a?c(p):f(p)}function u(p){return t.attempt(BO,c,f)(p)}function c(p){return e(p)}function f(p){return s._balanced=!0,n(p)}}function HO(t,e,n){return r;function r(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),i}function i(f){return Ot(f)?Ns(t,s)(f):s(f)}function s(f){return f===41?c(f):Wg(t,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function a(f){return Ot(f)?Ns(t,l)(f):c(f)}function o(f){return n(f)}function l(f){return f===34||f===39||f===40?Qg(t,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return Ot(f)?Ns(t,c)(f):c(f)}function c(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),e):n(f)}}function qO(t,e,n){const r=this;return i;function i(o){return Gg.call(r,t,s,a,"reference","referenceMarker","referenceString")(o)}function s(o){return r.parser.defined.includes(ji(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(o):n(o)}function a(o){return n(o)}}function WO(t,e,n){return r;function r(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),i}function i(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),e):n(s)}}const GO={name:"labelStartImage",resolveAll:id.resolveAll,tokenize:QO};function QO(t,e,n){const r=this;return i;function i(o){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(o),t.exit("labelImageMarker"),s}function s(o){return o===91?(t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelImage"),a):n(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):e(o)}}const YO={name:"labelStartLink",resolveAll:id.resolveAll,tokenize:VO};function VO(t,e,n){const r=this;return i;function i(a){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelLink"),s}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):e(a)}}const Bl={name:"lineEnding",tokenize:KO};function KO(t,e){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),Fe(t,e,"linePrefix")}}const ao={name:"thematicBreak",tokenize:XO};function XO(t,e,n){let r=0,i;return s;function s(u){return t.enter("thematicBreak"),a(u)}function a(u){return i=u,o(u)}function o(u){return u===i?(t.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||fe(u))?(t.exit("thematicBreak"),e(u)):n(u)}function l(u){return u===i?(t.consume(u),r++,l):(t.exit("thematicBreakSequence"),Te(u)?Fe(t,o,"whitespace")(u):o(u))}}const At={continuation:{tokenize:e7},exit:n7,name:"list",tokenize:$O},JO={partial:!0,tokenize:r7},ZO={partial:!0,tokenize:t7};function $O(t,e,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return o;function o(h){const y=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:ic(h)){if(r.containerState.type||(r.containerState.type=y,t.enter(y,{_container:!0})),y==="listUnordered")return t.enter("listItemPrefix"),h===42||h===45?t.check(ao,n,u)(h):u(h);if(!r.interrupt||h===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),l(h)}return n(h)}function l(h){return ic(h)&&++a<10?(t.consume(h),l):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(t.exit("listItemValue"),u(h)):n(h)}function u(h){return t.enter("listItemMarker"),t.consume(h),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,t.check(tl,r.interrupt?n:c,t.attempt(JO,p,f))}function c(h){return r.containerState.initialBlankLine=!0,s++,p(h)}function f(h){return Te(h)?(t.enter("listItemPrefixWhitespace"),t.consume(h),t.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=s+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(h)}}function e7(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(tl,i,s);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Fe(t,e,"listItemIndent",r.containerState.size+1)(o)}function s(o){return r.containerState.furtherBlankLines||!Te(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(ZO,e,a)(o))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Fe(t,t.attempt(At,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function t7(t,e,n){const r=this;return Fe(t,i,"listItemIndent",r.containerState.size+1);function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?e(s):n(s)}}function n7(t){t.exit(this.containerState.type)}function r7(t,e,n){const r=this;return Fe(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const a=r.events[r.events.length-1];return!Te(s)&&a&&a[1].type==="listItemPrefixWhitespace"?e(s):n(s)}}const qp={name:"setextUnderline",resolveTo:i7,tokenize:s7};function i7(t,e){let n=t.length,r,i,s;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(i=n)}else t[n][1].type==="content"&&t.splice(n,1),!s&&t[n][1].type==="definition"&&(s=n);const a={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[i][1].type="setextHeadingText",s?(t.splice(i,0,["enter",a,e]),t.splice(s+1,0,["exit",t[r][1],e]),t[r][1].end={...t[s][1].end}):t[r][1]=a,t.push(["exit",a,e]),t}function s7(t,e,n){const r=this;let i;return s;function s(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(t.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return t.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(t.consume(u),o):(t.exit("setextHeadingLineSequence"),Te(u)?Fe(t,l,"lineSuffix")(u):l(u))}function l(u){return u===null||fe(u)?(t.exit("setextHeadingLine"),e(u)):n(u)}}const a7={tokenize:o7};function o7(t){const e=this,n=t.attempt(tl,r,t.attempt(this.parser.constructs.flowInitial,i,Fe(t,t.attempt(this.parser.constructs.flow,i,t.attempt(fO,i)),"linePrefix")));return n;function r(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function i(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e.currentConstruct=void 0,n}}const l7={resolveAll:Vg()},u7=Yg("string"),c7=Yg("text");function Yg(t){return{resolveAll:Vg(t==="text"?d7:void 0),tokenize:e};function e(n){const r=this,i=this.parser.constructs[t],s=n.attempt(i,a,o);return a;function a(c){return u(c)?s(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),s(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let p=-1;if(f)for(;++p<f.length;){const h=f[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Vg(t){return e;function e(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return t?t(n,r):n}}function d7(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const r=t[n-1][1],i=e.sliceStream(r);let s=i.length,a=-1,o=0,l;for(;s--;){const u=i[s];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(u===-2)l=!0,o++;else if(u!==-1){s++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(o=0),o){const u={type:n===t.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(t.splice(n,0,["enter",u,e],["exit",u,e]),n+=2)}n++}return t}const f7={42:At,43:At,45:At,48:At,49:At,50:At,51:At,52:At,53:At,54:At,55:At,56:At,57:At,62:zg},h7={91:gO},p7={[-2]:Dl,[-1]:Dl,32:Dl},y7={35:SO,42:ao,45:[qp,ao],60:EO,61:qp,95:ao,96:Up,126:Up},m7={38:Hg,92:Ug},g7={[-5]:Bl,[-4]:Bl,[-3]:Bl,33:GO,38:Hg,42:sc,60:[Y8,NO],91:YO,92:[wO,Ug],93:id,95:sc,96:aO},v7={null:[sc,l7]},b7={null:[42,95]},x7={null:[]},w7=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:b7,contentInitial:h7,disable:x7,document:f7,flow:y7,flowInitial:p7,insideSpan:v7,string:m7,text:g7},Symbol.toStringTag,{value:"Module"}));function A7(t,e,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let a=[],o=[];const l={attempt:w(S),check:w(b),consume:A,enter:E,exit:C,interrupt:w(b,{interrupt:!0})},u={code:null,containerState:{},defineSkip:m,events:[],now:y,parser:t,previous:null,sliceSerialize:p,sliceStream:h,write:f};let c=e.tokenize.call(u,l);return e.resolveAll&&s.push(e),u;function f(M){return a=tn(a,M),v(),a[a.length-1]!==null?[]:(x(e,0),u.events=rd(s,u.events,u),u.events)}function p(M,T){return C7(h(M),T)}function h(M){return S7(a,M)}function y(){const{_bufferIndex:M,_index:T,line:z,column:I,offset:O}=r;return{_bufferIndex:M,_index:T,line:z,column:I,offset:O}}function m(M){i[M.line]=M.column,D()}function v(){let M;for(;r._index<a.length;){const T=a[r._index];if(typeof T=="string")for(M=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===M&&r._bufferIndex<T.length;)g(T.charCodeAt(r._bufferIndex));else g(T)}}function g(M){c=c(M)}function A(M){fe(M)?(r.line++,r.column=1,r.offset+=M===-3?2:1,D()):M!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=M}function E(M,T){const z=T||{};return z.type=M,z.start=y(),u.events.push(["enter",z,u]),o.push(z),z}function C(M){const T=o.pop();return T.end=y(),u.events.push(["exit",T,u]),T}function S(M,T){x(M,T.from)}function b(M,T){T.restore()}function w(M,T){return z;function z(I,O,B){let R,Y,Q,j;return Array.isArray(I)?q(I):"tokenize"in I?q([I]):W(I);function W(K){return Z;function Z(oe){const ue=oe!==null&&K[oe],ie=oe!==null&&K.null,Oe=[...Array.isArray(ue)?ue:ue?[ue]:[],...Array.isArray(ie)?ie:ie?[ie]:[]];return q(Oe)(oe)}}function q(K){return R=K,Y=0,K.length===0?B:P(K[Y])}function P(K){return Z;function Z(oe){return j=N(),Q=K,K.partial||(u.currentConstruct=K),K.name&&u.parser.constructs.disable.null.includes(K.name)?J():K.tokenize.call(T?Object.assign(Object.create(u),T):u,l,G,J)(oe)}}function G(K){return M(Q,j),O}function J(K){return j.restore(),++Y<R.length?P(R[Y]):B}}}function x(M,T){M.resolveAll&&!s.includes(M)&&s.push(M),M.resolve&&In(u.events,T,u.events.length-T,M.resolve(u.events.slice(T),u)),M.resolveTo&&(u.events=M.resolveTo(u.events,u))}function N(){const M=y(),T=u.previous,z=u.currentConstruct,I=u.events.length,O=Array.from(o);return{from:I,restore:B};function B(){r=M,u.previous=T,u.currentConstruct=z,u.events.length=I,o=O,D()}}function D(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function S7(t,e){const n=e.start._index,r=e.start._bufferIndex,i=e.end._index,s=e.end._bufferIndex;let a;if(n===i)a=[t[n].slice(r,s)];else{if(a=t.slice(n,i),r>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(r):a.shift()}s>0&&a.push(t[i].slice(0,s))}return a}function C7(t,e){let n=-1;const r=[];let i;for(;++n<t.length;){const s=t[n];let a;if(typeof s=="string")a=s;else switch(s){case-5:{a="\r";break}case-4:{a=`
61
61
  `;break}case-3:{a=`\r
62
- `;break}case-2:{a=e?" ":" ";break}case-1:{if(!e&&i)continue;a=" ";break}default:a=String.fromCharCode(s)}i=s===-2,r.push(a)}return r.join("")}function GO(t){const r={constructs:$E([HO,...(t||{}).extensions||[]]),content:i(o8),defined:[],document:i(u8),flow:i(EO),lazy:{},string:i(TO),text:i(IO)};return r;function i(s){return a;function a(o){return qO(r,s,o)}}}function YO(t){for(;!Cg(t););return t}const Ip=/[\0\t\n\r]/g;function VO(){let t=1,e="",n=!0,r;return i;function i(s,a,o){const l=[];let u,c,f,p,h;for(s=e+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),f=0,e="",n&&(s.charCodeAt(0)===65279&&f++,n=void 0);f<s.length;){if(Ip.lastIndex=f,u=Ip.exec(s),p=u&&u.index!==void 0?u.index:s.length,h=s.charCodeAt(p),!u){e=s.slice(f);break}if(h===10&&f===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<p&&(l.push(s.slice(f,p)),t+=p-f),h){case 0:{l.push(65533),t++;break}case 9:{for(c=Math.ceil(t/4)*4,l.push(-2);t++<c;)l.push(-1);break}case 10:{l.push(-4),t=1;break}default:r=!0,t=1}f=p+1}return o&&(r&&l.push(-5),e&&l.push(e),l.push(null)),l}}const KO=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function XO(t){return t.replace(KO,JO)}function JO(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return xg(n.slice(s?2:1),s?16:10)}return Xc(n)||t}const Tg={}.hasOwnProperty;function ZO(t,e,n){return typeof e!="string"&&(n=e,e=void 0),$O(n)(YO(GO(n).document().write(VO()(t,e,!0))))}function $O(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(nt),autolinkProtocol:N,autolinkEmail:N,atxHeading:s(at),blockQuote:s(ae),characterEscape:N,characterReference:N,codeFenced:s(je),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(je,a),codeText:s(Z,a),codeTextData:N,data:N,codeFlowValue:N,definition:s(Le),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(Nt),hardBreakEscape:s(Ye),hardBreakTrailing:s(Ye),htmlFlow:s(Xe,a),htmlFlowData:N,htmlText:s(Xe,a),htmlTextData:N,image:s(pn),label:a,link:s(nt),listItem:s(tr),listItemValue:p,listOrdered:s(Tn,f),listUnordered:s(Tn),paragraph:s(Ue),reference:O,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(at),strong:s(pe),thematicBreak:s(Ae)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:he,autolinkProtocol:oe,blockQuote:l(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:Y,characterReferenceMarkerNumeric:Y,characterReferenceValue:X,characterReference:ne,codeFenced:l(v),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:y,codeFlowValue:_,codeIndented:l(g),codeText:l(P),codeTextData:_,data:_,definition:l(),definitionDestinationString:j,definitionLabelString:A,definitionTitleString:E,emphasis:l(),hardBreakEscape:l(T),hardBreakTrailing:l(T),htmlFlow:l(z),htmlFlowData:_,htmlText:l(L),htmlTextData:_,image:l(B),label:W,labelText:V,lineEnding:I,link:l(D),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:G,resourceDestinationString:k,resourceTitleString:Q,resource:H,setextHeading:l(x),setextHeadingLineSequence:w,setextHeadingText:b,strong:l(),thematicBreak:l()}};Ig(e,(t||{}).mdastExtensions||[]);const n={};return r;function r(U){let J={type:"root",children:[]};const ue={stack:[J],tokenStack:[],config:e,enter:o,exit:u,buffer:a,resume:c,data:n},ge=[];let Ee=-1;for(;++Ee<U.length;)if(U[Ee][1].type==="listOrdered"||U[Ee][1].type==="listUnordered")if(U[Ee][0]==="enter")ge.push(Ee);else{const rt=ge.pop();Ee=i(U,rt,Ee)}for(Ee=-1;++Ee<U.length;){const rt=e[U[Ee][0]];Tg.call(rt,U[Ee][1].type)&&rt[U[Ee][1].type].call(Object.assign({sliceSerialize:U[Ee][2].sliceSerialize},ue),U[Ee][1])}if(ue.tokenStack.length>0){const rt=ue.tokenStack[ue.tokenStack.length-1];(rt[1]||Mp).call(ue,void 0,rt[0])}for(J.position={start:ir(U.length>0?U[0][1].start:{line:1,column:1,offset:0}),end:ir(U.length>0?U[U.length-2][1].end:{line:1,column:1,offset:0})},Ee=-1;++Ee<e.transforms.length;)J=e.transforms[Ee](J)||J;return J}function i(U,J,ue){let ge=J-1,Ee=-1,rt=!1,it,yt,In,wt;for(;++ge<=ue;){const st=U[ge];switch(st[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{st[0]==="enter"?Ee++:Ee--,wt=void 0;break}case"lineEndingBlank":{st[0]==="enter"&&(it&&!wt&&!Ee&&!In&&(In=ge),wt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:wt=void 0}if(!Ee&&st[0]==="enter"&&st[1].type==="listItemPrefix"||Ee===-1&&st[0]==="exit"&&(st[1].type==="listUnordered"||st[1].type==="listOrdered")){if(it){let ln=ge;for(yt=void 0;ln--;){const At=U[ln];if(At[1].type==="lineEnding"||At[1].type==="lineEndingBlank"){if(At[0]==="exit")continue;yt&&(U[yt][1].type="lineEndingBlank",rt=!0),At[1].type="lineEnding",yt=ln}else if(!(At[1].type==="linePrefix"||At[1].type==="blockQuotePrefix"||At[1].type==="blockQuotePrefixWhitespace"||At[1].type==="blockQuoteMarker"||At[1].type==="listItemIndent"))break}In&&(!yt||In<yt)&&(it._spread=!0),it.end=Object.assign({},yt?U[yt][1].start:st[1].end),U.splice(yt||ge,0,["exit",it,st[2]]),ge++,ue++}if(st[1].type==="listItemPrefix"){const ln={type:"listItem",_spread:!1,start:Object.assign({},st[1].start),end:void 0};it=ln,U.splice(ge,0,["enter",ln,st[2]]),ge++,ue++,In=void 0,wt=!0}}}return U[J][1]._spread=rt,ue}function s(U,J){return ue;function ue(ge){o.call(this,U(ge),ge),J&&J.call(this,ge)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(U,J,ue){this.stack[this.stack.length-1].children.push(U),this.stack.push(U),this.tokenStack.push([J,ue||void 0]),U.position={start:ir(J.start),end:void 0}}function l(U){return J;function J(ue){U&&U.call(this,ue),u.call(this,ue)}}function u(U,J){const ue=this.stack.pop(),ge=this.tokenStack.pop();if(ge)ge[0].type!==U.type&&(J?J.call(this,U,ge[0]):(ge[1]||Mp).call(this,U,ge[0]));else throw new Error("Cannot close `"+U.type+"` ("+Is({start:U.start,end:U.end})+"): it’s not open");ue.position.end=ir(U.end)}function c(){return JE(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(U){if(this.data.expectingFirstListItemValue){const J=this.stack[this.stack.length-2];J.start=Number.parseInt(this.sliceSerialize(U),10),this.data.expectingFirstListItemValue=void 0}}function h(){const U=this.resume(),J=this.stack[this.stack.length-1];J.lang=U}function y(){const U=this.resume(),J=this.stack[this.stack.length-1];J.meta=U}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const U=this.resume(),J=this.stack[this.stack.length-1];J.value=U.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const U=this.resume(),J=this.stack[this.stack.length-1];J.value=U.replace(/(\r?\n|\r)$/g,"")}function A(U){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.label=J,ue.identifier=Ai(this.sliceSerialize(U)).toLowerCase()}function E(){const U=this.resume(),J=this.stack[this.stack.length-1];J.title=U}function j(){const U=this.resume(),J=this.stack[this.stack.length-1];J.url=U}function S(U){const J=this.stack[this.stack.length-1];if(!J.depth){const ue=this.sliceSerialize(U).length;J.depth=ue}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function w(U){const J=this.stack[this.stack.length-1];J.depth=this.sliceSerialize(U).codePointAt(0)===61?1:2}function x(){this.data.setextHeadingSlurpLineEnding=void 0}function N(U){const ue=this.stack[this.stack.length-1].children;let ge=ue[ue.length-1];(!ge||ge.type!=="text")&&(ge=ye(),ge.position={start:ir(U.start),end:void 0},ue.push(ge)),this.stack.push(ge)}function _(U){const J=this.stack.pop();J.value+=this.sliceSerialize(U),J.position.end=ir(U.end)}function I(U){const J=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ue=J.children[J.children.length-1];ue.position.end=ir(U.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(J.type)&&(N.call(this,U),_.call(this,U))}function T(){this.data.atHardBreak=!0}function z(){const U=this.resume(),J=this.stack[this.stack.length-1];J.value=U}function L(){const U=this.resume(),J=this.stack[this.stack.length-1];J.value=U}function P(){const U=this.resume(),J=this.stack[this.stack.length-1];J.value=U}function D(){const U=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";U.type+="Reference",U.referenceType=J,delete U.url,delete U.title}else delete U.identifier,delete U.label;this.data.referenceType=void 0}function B(){const U=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";U.type+="Reference",U.referenceType=J,delete U.url,delete U.title}else delete U.identifier,delete U.label;this.data.referenceType=void 0}function V(U){const J=this.sliceSerialize(U),ue=this.stack[this.stack.length-2];ue.label=XO(J),ue.identifier=Ai(J).toLowerCase()}function W(){const U=this.stack[this.stack.length-1],J=this.resume(),ue=this.stack[this.stack.length-1];if(this.data.inReference=!0,ue.type==="link"){const ge=U.children;ue.children=ge}else ue.alt=J}function k(){const U=this.resume(),J=this.stack[this.stack.length-1];J.url=U}function Q(){const U=this.resume(),J=this.stack[this.stack.length-1];J.title=U}function H(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function G(U){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.label=J,ue.identifier=Ai(this.sliceSerialize(U)).toLowerCase(),this.data.referenceType="full"}function Y(U){this.data.characterReferenceType=U.type}function X(U){const J=this.sliceSerialize(U),ue=this.data.characterReferenceType;let ge;ue?(ge=xg(J,ue==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ge=Xc(J);const Ee=this.stack[this.stack.length-1];Ee.value+=ge}function ne(U){const J=this.stack.pop();J.position.end=ir(U.end)}function oe(U){_.call(this,U);const J=this.stack[this.stack.length-1];J.url=this.sliceSerialize(U)}function he(U){_.call(this,U);const J=this.stack[this.stack.length-1];J.url="mailto:"+this.sliceSerialize(U)}function ae(){return{type:"blockquote",children:[]}}function je(){return{type:"code",lang:null,meta:null,value:""}}function Z(){return{type:"inlineCode",value:""}}function Le(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Nt(){return{type:"emphasis",children:[]}}function at(){return{type:"heading",depth:0,children:[]}}function Ye(){return{type:"break"}}function Xe(){return{type:"html",value:""}}function pn(){return{type:"image",title:null,url:"",alt:null}}function nt(){return{type:"link",title:null,url:"",children:[]}}function Tn(U){return{type:"list",ordered:U.type==="listOrdered",start:null,spread:U._spread,children:[]}}function tr(U){return{type:"listItem",spread:U._spread,checked:null,children:[]}}function Ue(){return{type:"paragraph",children:[]}}function pe(){return{type:"strong",children:[]}}function ye(){return{type:"text",value:""}}function Ae(){return{type:"thematicBreak"}}}function ir(t){return{line:t.line,column:t.column,offset:t.offset}}function Ig(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?Ig(t,r):e7(t,r)}}function e7(t,e){let n;for(n in e)if(Tg.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}function Mp(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Is({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Is({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Is({start:e.start,end:e.end})+") is still open")}function t7(t){const e=this;e.parser=n;function n(r){return ZO(r,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function n7(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}function r7(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
63
- `}]}function i7(t,e){const n=e.value?e.value+`
64
- `:"",r={};e.lang&&(r.className=["language-"+e.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return e.meta&&(i.data={meta:e.meta}),t.patch(e,i),i=t.applyData(e,i),i={type:"element",tagName:"pre",properties:{},children:[i]},t.patch(e,i),i}function s7(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function a7(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function o7(t,e){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=String(e.identifier).toUpperCase(),i=Xi(r.toLowerCase()),s=t.footnoteOrder.indexOf(r);let a,o=t.footnoteCounts.get(r);o===void 0?(o=0,t.footnoteOrder.push(r),a=t.footnoteOrder.length):a=s+1,o+=1,t.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};t.patch(e,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return t.patch(e,u),t.applyData(e,u)}function l7(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function u7(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}}function Mg(t,e){const n=e.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+r}];const i=t.all(e),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function c7(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return Mg(t,e);const i={src:Xi(r.url||""),alt:e.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return t.patch(e,s),t.applyData(e,s)}function d7(t,e){const n={src:Xi(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,r),t.applyData(e,r)}function f7(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,r),t.applyData(e,r)}function h7(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return Mg(t,e);const i={href:Xi(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:t.all(e)};return t.patch(e,s),t.applyData(e,s)}function p7(t,e){const n={href:Xi(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function y7(t,e,n){const r=t.all(e),i=n?m7(n):Lg(e),s={},a=[];if(typeof e.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const c=r[o];(i||o!==0||c.type!=="element"||c.tagName!=="p")&&a.push({type:"text",value:`
62
+ `;break}case-2:{a=e?" ":" ";break}case-1:{if(!e&&i)continue;a=" ";break}default:a=String.fromCharCode(s)}i=s===-2,r.push(a)}return r.join("")}function k7(t){const r={constructs:M8([w7,...(t||{}).extensions||[]]),content:i(z8),defined:[],document:i(H8),flow:i(a7),lazy:{},string:i(u7),text:i(c7)};return r;function i(s){return a;function a(o){return A7(r,s,o)}}}function j7(t){for(;!qg(t););return t}const Wp=/[\0\t\n\r]/g;function E7(){let t=1,e="",n=!0,r;return i;function i(s,a,o){const l=[];let u,c,f,p,h;for(s=e+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),f=0,e="",n&&(s.charCodeAt(0)===65279&&f++,n=void 0);f<s.length;){if(Wp.lastIndex=f,u=Wp.exec(s),p=u&&u.index!==void 0?u.index:s.length,h=s.charCodeAt(p),!u){e=s.slice(f);break}if(h===10&&f===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<p&&(l.push(s.slice(f,p)),t+=p-f),h){case 0:{l.push(65533),t++;break}case 9:{for(c=Math.ceil(t/4)*4,l.push(-2);t++<c;)l.push(-1);break}case 10:{l.push(-4),t=1;break}default:r=!0,t=1}f=p+1}return o&&(r&&l.push(-5),e&&l.push(e),l.push(null)),l}}const O7=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function P7(t){return t.replace(O7,T7)}function T7(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return Fg(n.slice(s?2:1),s?16:10)}return nd(n)||t}const Kg={}.hasOwnProperty;function I7(t,e,n){return typeof e!="string"&&(n=e,e=void 0),M7(n)(j7(k7(n).document().write(E7()(t,e,!0))))}function M7(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(at),autolinkProtocol:N,autolinkEmail:N,atxHeading:s(st),blockQuote:s(ie),characterEscape:N,characterReference:N,codeFenced:s(Oe),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(Oe,a),codeText:s($,a),codeTextData:N,data:N,codeFlowValue:N,definition:s(Ue),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(Mt),hardBreakEscape:s(Ye),hardBreakTrailing:s(Ye),htmlFlow:s(et,a),htmlFlowData:N,htmlText:s(et,a),htmlTextData:N,image:s(yn),label:a,link:s(at),listItem:s(Nn),listItemValue:p,listOrdered:s(Ln,f),listUnordered:s(Ln),paragraph:s(ze),reference:P,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(st),strong:s(pe),thematicBreak:s(me)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:ue,autolinkProtocol:oe,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:K,characterReference:Z,codeFenced:l(v),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:y,codeFlowValue:D,codeIndented:l(g),codeText:l(O),codeTextData:D,data:D,definition:l(),definitionDestinationString:C,definitionLabelString:A,definitionTitleString:E,emphasis:l(),hardBreakEscape:l(T),hardBreakTrailing:l(T),htmlFlow:l(z),htmlFlowData:D,htmlText:l(I),htmlTextData:D,image:l(R),label:Q,labelText:Y,lineEnding:M,link:l(B),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:G,resourceDestinationString:j,resourceTitleString:W,resource:q,setextHeading:l(x),setextHeadingLineSequence:w,setextHeadingText:b,strong:l(),thematicBreak:l()}};Xg(e,(t||{}).mdastExtensions||[]);const n={};return r;function r(U){let X={type:"root",children:[]};const ce={stack:[X],tokenStack:[],config:e,enter:o,exit:u,buffer:a,resume:c,data:n},ve=[];let Pe=-1;for(;++Pe<U.length;)if(U[Pe][1].type==="listOrdered"||U[Pe][1].type==="listUnordered")if(U[Pe][0]==="enter")ve.push(Pe);else{const tt=ve.pop();Pe=i(U,tt,Pe)}for(Pe=-1;++Pe<U.length;){const tt=e[U[Pe][0]];Kg.call(tt,U[Pe][1].type)&&tt[U[Pe][1].type].call(Object.assign({sliceSerialize:U[Pe][2].sliceSerialize},ce),U[Pe][1])}if(ce.tokenStack.length>0){const tt=ce.tokenStack[ce.tokenStack.length-1];(tt[1]||Gp).call(ce,void 0,tt[0])}for(X.position={start:ar(U.length>0?U[0][1].start:{line:1,column:1,offset:0}),end:ar(U.length>0?U[U.length-2][1].end:{line:1,column:1,offset:0})},Pe=-1;++Pe<e.transforms.length;)X=e.transforms[Pe](X)||X;return X}function i(U,X,ce){let ve=X-1,Pe=-1,tt=!1,Xt,xt,Rn,mn;for(;++ve<=ce;){const it=U[ve];switch(it[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{it[0]==="enter"?Pe++:Pe--,mn=void 0;break}case"lineEndingBlank":{it[0]==="enter"&&(Xt&&!mn&&!Pe&&!Rn&&(Rn=ve),mn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:mn=void 0}if(!Pe&&it[0]==="enter"&&it[1].type==="listItemPrefix"||Pe===-1&&it[0]==="exit"&&(it[1].type==="listUnordered"||it[1].type==="listOrdered")){if(Xt){let on=ve;for(xt=void 0;on--;){const Xe=U[on];if(Xe[1].type==="lineEnding"||Xe[1].type==="lineEndingBlank"){if(Xe[0]==="exit")continue;xt&&(U[xt][1].type="lineEndingBlank",tt=!0),Xe[1].type="lineEnding",xt=on}else if(!(Xe[1].type==="linePrefix"||Xe[1].type==="blockQuotePrefix"||Xe[1].type==="blockQuotePrefixWhitespace"||Xe[1].type==="blockQuoteMarker"||Xe[1].type==="listItemIndent"))break}Rn&&(!xt||Rn<xt)&&(Xt._spread=!0),Xt.end=Object.assign({},xt?U[xt][1].start:it[1].end),U.splice(xt||ve,0,["exit",Xt,it[2]]),ve++,ce++}if(it[1].type==="listItemPrefix"){const on={type:"listItem",_spread:!1,start:Object.assign({},it[1].start),end:void 0};Xt=on,U.splice(ve,0,["enter",on,it[2]]),ve++,ce++,Rn=void 0,mn=!0}}}return U[X][1]._spread=tt,ce}function s(U,X){return ce;function ce(ve){o.call(this,U(ve),ve),X&&X.call(this,ve)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(U,X,ce){this.stack[this.stack.length-1].children.push(U),this.stack.push(U),this.tokenStack.push([X,ce||void 0]),U.position={start:ar(X.start),end:void 0}}function l(U){return X;function X(ce){U&&U.call(this,ce),u.call(this,ce)}}function u(U,X){const ce=this.stack.pop(),ve=this.tokenStack.pop();if(ve)ve[0].type!==U.type&&(X?X.call(this,U,ve[0]):(ve[1]||Gp).call(this,U,ve[0]));else throw new Error("Cannot close `"+U.type+"` ("+Ls({start:U.start,end:U.end})+"): it’s not open");ce.position.end=ar(U.end)}function c(){return T8(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(U){if(this.data.expectingFirstListItemValue){const X=this.stack[this.stack.length-2];X.start=Number.parseInt(this.sliceSerialize(U),10),this.data.expectingFirstListItemValue=void 0}}function h(){const U=this.resume(),X=this.stack[this.stack.length-1];X.lang=U}function y(){const U=this.resume(),X=this.stack[this.stack.length-1];X.meta=U}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const U=this.resume(),X=this.stack[this.stack.length-1];X.value=U.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const U=this.resume(),X=this.stack[this.stack.length-1];X.value=U.replace(/(\r?\n|\r)$/g,"")}function A(U){const X=this.resume(),ce=this.stack[this.stack.length-1];ce.label=X,ce.identifier=ji(this.sliceSerialize(U)).toLowerCase()}function E(){const U=this.resume(),X=this.stack[this.stack.length-1];X.title=U}function C(){const U=this.resume(),X=this.stack[this.stack.length-1];X.url=U}function S(U){const X=this.stack[this.stack.length-1];if(!X.depth){const ce=this.sliceSerialize(U).length;X.depth=ce}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function w(U){const X=this.stack[this.stack.length-1];X.depth=this.sliceSerialize(U).codePointAt(0)===61?1:2}function x(){this.data.setextHeadingSlurpLineEnding=void 0}function N(U){const ce=this.stack[this.stack.length-1].children;let ve=ce[ce.length-1];(!ve||ve.type!=="text")&&(ve=ye(),ve.position={start:ar(U.start),end:void 0},ce.push(ve)),this.stack.push(ve)}function D(U){const X=this.stack.pop();X.value+=this.sliceSerialize(U),X.position.end=ar(U.end)}function M(U){const X=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ce=X.children[X.children.length-1];ce.position.end=ar(U.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(X.type)&&(N.call(this,U),D.call(this,U))}function T(){this.data.atHardBreak=!0}function z(){const U=this.resume(),X=this.stack[this.stack.length-1];X.value=U}function I(){const U=this.resume(),X=this.stack[this.stack.length-1];X.value=U}function O(){const U=this.resume(),X=this.stack[this.stack.length-1];X.value=U}function B(){const U=this.stack[this.stack.length-1];if(this.data.inReference){const X=this.data.referenceType||"shortcut";U.type+="Reference",U.referenceType=X,delete U.url,delete U.title}else delete U.identifier,delete U.label;this.data.referenceType=void 0}function R(){const U=this.stack[this.stack.length-1];if(this.data.inReference){const X=this.data.referenceType||"shortcut";U.type+="Reference",U.referenceType=X,delete U.url,delete U.title}else delete U.identifier,delete U.label;this.data.referenceType=void 0}function Y(U){const X=this.sliceSerialize(U),ce=this.stack[this.stack.length-2];ce.label=P7(X),ce.identifier=ji(X).toLowerCase()}function Q(){const U=this.stack[this.stack.length-1],X=this.resume(),ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,ce.type==="link"){const ve=U.children;ce.children=ve}else ce.alt=X}function j(){const U=this.resume(),X=this.stack[this.stack.length-1];X.url=U}function W(){const U=this.resume(),X=this.stack[this.stack.length-1];X.title=U}function q(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function G(U){const X=this.resume(),ce=this.stack[this.stack.length-1];ce.label=X,ce.identifier=ji(this.sliceSerialize(U)).toLowerCase(),this.data.referenceType="full"}function J(U){this.data.characterReferenceType=U.type}function K(U){const X=this.sliceSerialize(U),ce=this.data.characterReferenceType;let ve;ce?(ve=Fg(X,ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ve=nd(X);const Pe=this.stack[this.stack.length-1];Pe.value+=ve}function Z(U){const X=this.stack.pop();X.position.end=ar(U.end)}function oe(U){D.call(this,U);const X=this.stack[this.stack.length-1];X.url=this.sliceSerialize(U)}function ue(U){D.call(this,U);const X=this.stack[this.stack.length-1];X.url="mailto:"+this.sliceSerialize(U)}function ie(){return{type:"blockquote",children:[]}}function Oe(){return{type:"code",lang:null,meta:null,value:""}}function $(){return{type:"inlineCode",value:""}}function Ue(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Mt(){return{type:"emphasis",children:[]}}function st(){return{type:"heading",depth:0,children:[]}}function Ye(){return{type:"break"}}function et(){return{type:"html",value:""}}function yn(){return{type:"image",title:null,url:"",alt:null}}function at(){return{type:"link",title:null,url:"",children:[]}}function Ln(U){return{type:"list",ordered:U.type==="listOrdered",start:null,spread:U._spread,children:[]}}function Nn(U){return{type:"listItem",spread:U._spread,checked:null,children:[]}}function ze(){return{type:"paragraph",children:[]}}function pe(){return{type:"strong",children:[]}}function ye(){return{type:"text",value:""}}function me(){return{type:"thematicBreak"}}}function ar(t){return{line:t.line,column:t.column,offset:t.offset}}function Xg(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?Xg(t,r):L7(t,r)}}function L7(t,e){let n;for(n in e)if(Kg.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}function Gp(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Ls({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Ls({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Ls({start:e.start,end:e.end})+") is still open")}function N7(t){const e=this;e.parser=n;function n(r){return I7(r,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function R7(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}function _7(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
63
+ `}]}function D7(t,e){const n=e.value?e.value+`
64
+ `:"",r={};e.lang&&(r.className=["language-"+e.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return e.meta&&(i.data={meta:e.meta}),t.patch(e,i),i=t.applyData(e,i),i={type:"element",tagName:"pre",properties:{},children:[i]},t.patch(e,i),i}function B7(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function F7(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function z7(t,e){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=String(e.identifier).toUpperCase(),i=ts(r.toLowerCase()),s=t.footnoteOrder.indexOf(r);let a,o=t.footnoteCounts.get(r);o===void 0?(o=0,t.footnoteOrder.push(r),a=t.footnoteOrder.length):a=s+1,o+=1,t.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};t.patch(e,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return t.patch(e,u),t.applyData(e,u)}function U7(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function H7(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}}function Jg(t,e){const n=e.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+r}];const i=t.all(e),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function q7(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return Jg(t,e);const i={src:ts(r.url||""),alt:e.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return t.patch(e,s),t.applyData(e,s)}function W7(t,e){const n={src:ts(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,r),t.applyData(e,r)}function G7(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,r),t.applyData(e,r)}function Q7(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return Jg(t,e);const i={href:ts(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:t.all(e)};return t.patch(e,s),t.applyData(e,s)}function Y7(t,e){const n={href:ts(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function V7(t,e,n){const r=t.all(e),i=n?K7(n):Zg(e),s={},a=[];if(typeof e.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const c=r[o];(i||o!==0||c.type!=="element"||c.tagName!=="p")&&a.push({type:"text",value:`
65
65
  `}),c.type==="element"&&c.tagName==="p"&&!i?a.push(...c.children):a.push(c)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
66
- `});const u={type:"element",tagName:"li",properties:s,children:a};return t.patch(e,u),t.applyData(e,u)}function m7(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const n=t.children;let r=-1;for(;!e&&++r<n.length;)e=Lg(n[r])}return e}function Lg(t){const e=t.spread;return e==null?t.children.length>1:e}function g7(t,e){const n={},r=t.all(e);let i=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,s),t.applyData(e,s)}function v7(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function b7(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}function x7(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function w7(t,e){const n=t.all(e),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},o=Gc(e.children[1]),l=hg(e.children[e.children.length-1]);o&&l&&(a.position={start:o,end:l}),i.push(a)}const s={type:"element",tagName:"table",properties:{},children:t.wrap(i,!0)};return t.patch(e,s),t.applyData(e,s)}function A7(t,e,n){const r=n?n.children:void 0,s=(r?r.indexOf(e):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,o=a?a.length:e.children.length;let l=-1;const u=[];for(;++l<o;){const f=e.children[l],p={},h=a?a[l]:void 0;h&&(p.align=h);let y={type:"element",tagName:s,properties:p,children:[]};f&&(y.children=t.all(f),t.patch(f,y),y=t.applyData(f,y)),u.push(y)}const c={type:"element",tagName:"tr",properties:{},children:t.wrap(u,!0)};return t.patch(e,c),t.applyData(e,c)}function S7(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}const Lp=9,Np=32;function C7(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),i=0;const s=[];for(;r;)s.push(Rp(e.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(e);return s.push(Rp(e.slice(i),i>0,!1)),s.join("")}function Rp(t,e,n){let r=0,i=t.length;if(e){let s=t.codePointAt(r);for(;s===Lp||s===Np;)r++,s=t.codePointAt(r)}if(n){let s=t.codePointAt(i-1);for(;s===Lp||s===Np;)i--,s=t.codePointAt(i-1)}return i>r?t.slice(r,i):""}function k7(t,e){const n={type:"text",value:C7(String(e.value))};return t.patch(e,n),t.applyData(e,n)}function j7(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}const E7={blockquote:n7,break:r7,code:i7,delete:s7,emphasis:a7,footnoteReference:o7,heading:l7,html:u7,imageReference:c7,image:d7,inlineCode:f7,linkReference:h7,link:p7,listItem:y7,list:g7,paragraph:v7,root:b7,strong:x7,table:w7,tableCell:S7,tableRow:A7,text:k7,thematicBreak:j7,toml:Ha,yaml:Ha,definition:Ha,footnoteDefinition:Ha};function Ha(){}const Ng=-1,$o=0,Ls=1,ko=2,$c=3,ed=4,td=5,nd=6,Rg=7,_g=8,_p=typeof self=="object"?self:globalThis,O7=(t,e)=>{const n=(i,s)=>(t.set(s,i),i),r=i=>{if(t.has(i))return t.get(i);const[s,a]=e[i];switch(s){case $o:case Ng:return n(a,i);case Ls:{const o=n([],i);for(const l of a)o.push(r(l));return o}case ko:{const o=n({},i);for(const[l,u]of a)o[r(l)]=r(u);return o}case $c:return n(new Date(a),i);case ed:{const{source:o,flags:l}=a;return n(new RegExp(o,l),i)}case td:{const o=n(new Map,i);for(const[l,u]of a)o.set(r(l),r(u));return o}case nd:{const o=n(new Set,i);for(const l of a)o.add(r(l));return o}case Rg:{const{name:o,message:l}=a;return n(new _p[o](l),i)}case _g:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:o}=new Uint8Array(a);return n(new DataView(o),a)}}return n(new _p[s](a),i)};return r},Dp=t=>O7(new Map,t)(0),hi="",{toString:P7}={},{keys:T7}=Object,ms=t=>{const e=typeof t;if(e!=="object"||!t)return[$o,e];const n=P7.call(t).slice(8,-1);switch(n){case"Array":return[Ls,hi];case"Object":return[ko,hi];case"Date":return[$c,hi];case"RegExp":return[ed,hi];case"Map":return[td,hi];case"Set":return[nd,hi];case"DataView":return[Ls,n]}return n.includes("Array")?[Ls,n]:n.includes("Error")?[Rg,n]:[ko,n]},qa=([t,e])=>t===$o&&(e==="function"||e==="symbol"),I7=(t,e,n,r)=>{const i=(a,o)=>{const l=r.push(a)-1;return n.set(o,l),l},s=a=>{if(n.has(a))return n.get(a);let[o,l]=ms(a);switch(o){case $o:{let c=a;switch(l){case"bigint":o=_g,c=a.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([Ng],a)}return i([o,c],a)}case Ls:{if(l){let p=a;return l==="DataView"?p=new Uint8Array(a.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(a)),i([l,[...p]],a)}const c=[],f=i([o,c],a);for(const p of a)c.push(s(p));return f}case ko:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(e&&"toJSON"in a)return s(a.toJSON());const c=[],f=i([o,c],a);for(const p of T7(a))(t||!qa(ms(a[p])))&&c.push([s(p),s(a[p])]);return f}case $c:return i([o,a.toISOString()],a);case ed:{const{source:c,flags:f}=a;return i([o,{source:c,flags:f}],a)}case td:{const c=[],f=i([o,c],a);for(const[p,h]of a)(t||!(qa(ms(p))||qa(ms(h))))&&c.push([s(p),s(h)]);return f}case nd:{const c=[],f=i([o,c],a);for(const p of a)(t||!qa(ms(p)))&&c.push(s(p));return f}}const{message:u}=a;return i([o,{name:l,message:u}],a)};return s},Bp=(t,{json:e,lossy:n}={})=>{const r=[];return I7(!(e||n),!!e,new Map,r)(t),r},jo=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?Dp(Bp(t,e)):structuredClone(t):(t,e)=>Dp(Bp(t,e));function M7(t,e){const n=[{type:"text",value:"↩"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function L7(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function N7(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||M7,r=t.options.footnoteBackLabel||L7,i=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",a=t.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<t.footnoteOrder.length;){const u=t.footnoteById.get(t.footnoteOrder[l]);if(!u)continue;const c=t.all(u),f=String(u.identifier).toUpperCase(),p=Xi(f.toLowerCase());let h=0;const y=[],m=t.footnoteCounts.get(f);for(;m!==void 0&&++h<=m;){y.length>0&&y.push({type:"text",value:" "});let A=typeof n=="string"?n:n(l,h);typeof A=="string"&&(A={type:"text",value:A}),y.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const v=c[c.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const A=v.children[v.children.length-1];A&&A.type==="text"?A.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...y)}else c.push(...y);const g={type:"element",tagName:"li",properties:{id:e+"fn-"+p},children:t.wrap(c,!0)};t.patch(u,g),o.push(g)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...jo(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
66
+ `});const u={type:"element",tagName:"li",properties:s,children:a};return t.patch(e,u),t.applyData(e,u)}function K7(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const n=t.children;let r=-1;for(;!e&&++r<n.length;)e=Zg(n[r])}return e}function Zg(t){const e=t.spread;return e==null?t.children.length>1:e}function X7(t,e){const n={},r=t.all(e);let i=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,s),t.applyData(e,s)}function J7(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function Z7(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}function $7(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function e9(t,e){const n=t.all(e),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},o=Zc(e.children[1]),l=Mg(e.children[e.children.length-1]);o&&l&&(a.position={start:o,end:l}),i.push(a)}const s={type:"element",tagName:"table",properties:{},children:t.wrap(i,!0)};return t.patch(e,s),t.applyData(e,s)}function t9(t,e,n){const r=n?n.children:void 0,s=(r?r.indexOf(e):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,o=a?a.length:e.children.length;let l=-1;const u=[];for(;++l<o;){const f=e.children[l],p={},h=a?a[l]:void 0;h&&(p.align=h);let y={type:"element",tagName:s,properties:p,children:[]};f&&(y.children=t.all(f),t.patch(f,y),y=t.applyData(f,y)),u.push(y)}const c={type:"element",tagName:"tr",properties:{},children:t.wrap(u,!0)};return t.patch(e,c),t.applyData(e,c)}function n9(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}const Qp=9,Yp=32;function r9(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),i=0;const s=[];for(;r;)s.push(Vp(e.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(e);return s.push(Vp(e.slice(i),i>0,!1)),s.join("")}function Vp(t,e,n){let r=0,i=t.length;if(e){let s=t.codePointAt(r);for(;s===Qp||s===Yp;)r++,s=t.codePointAt(r)}if(n){let s=t.codePointAt(i-1);for(;s===Qp||s===Yp;)i--,s=t.codePointAt(i-1)}return i>r?t.slice(r,i):""}function i9(t,e){const n={type:"text",value:r9(String(e.value))};return t.patch(e,n),t.applyData(e,n)}function s9(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}const a9={blockquote:R7,break:_7,code:D7,delete:B7,emphasis:F7,footnoteReference:z7,heading:U7,html:H7,imageReference:q7,image:W7,inlineCode:G7,linkReference:Q7,link:Y7,listItem:V7,list:X7,paragraph:J7,root:Z7,strong:$7,table:e9,tableCell:n9,tableRow:t9,text:i9,thematicBreak:s9,toml:qa,yaml:qa,definition:qa,footnoteDefinition:qa};function qa(){}const $g=-1,nl=0,Rs=1,Eo=2,sd=3,ad=4,od=5,ld=6,ev=7,tv=8,Kp=typeof self=="object"?self:globalThis,o9=(t,e)=>{const n=(i,s)=>(t.set(s,i),i),r=i=>{if(t.has(i))return t.get(i);const[s,a]=e[i];switch(s){case nl:case $g:return n(a,i);case Rs:{const o=n([],i);for(const l of a)o.push(r(l));return o}case Eo:{const o=n({},i);for(const[l,u]of a)o[r(l)]=r(u);return o}case sd:return n(new Date(a),i);case ad:{const{source:o,flags:l}=a;return n(new RegExp(o,l),i)}case od:{const o=n(new Map,i);for(const[l,u]of a)o.set(r(l),r(u));return o}case ld:{const o=n(new Set,i);for(const l of a)o.add(r(l));return o}case ev:{const{name:o,message:l}=a;return n(new Kp[o](l),i)}case tv:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:o}=new Uint8Array(a);return n(new DataView(o),a)}}return n(new Kp[s](a),i)};return r},Xp=t=>o9(new Map,t)(0),gi="",{toString:l9}={},{keys:u9}=Object,vs=t=>{const e=typeof t;if(e!=="object"||!t)return[nl,e];const n=l9.call(t).slice(8,-1);switch(n){case"Array":return[Rs,gi];case"Object":return[Eo,gi];case"Date":return[sd,gi];case"RegExp":return[ad,gi];case"Map":return[od,gi];case"Set":return[ld,gi];case"DataView":return[Rs,n]}return n.includes("Array")?[Rs,n]:n.includes("Error")?[ev,n]:[Eo,n]},Wa=([t,e])=>t===nl&&(e==="function"||e==="symbol"),c9=(t,e,n,r)=>{const i=(a,o)=>{const l=r.push(a)-1;return n.set(o,l),l},s=a=>{if(n.has(a))return n.get(a);let[o,l]=vs(a);switch(o){case nl:{let c=a;switch(l){case"bigint":o=tv,c=a.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([$g],a)}return i([o,c],a)}case Rs:{if(l){let p=a;return l==="DataView"?p=new Uint8Array(a.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(a)),i([l,[...p]],a)}const c=[],f=i([o,c],a);for(const p of a)c.push(s(p));return f}case Eo:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(e&&"toJSON"in a)return s(a.toJSON());const c=[],f=i([o,c],a);for(const p of u9(a))(t||!Wa(vs(a[p])))&&c.push([s(p),s(a[p])]);return f}case sd:return i([o,a.toISOString()],a);case ad:{const{source:c,flags:f}=a;return i([o,{source:c,flags:f}],a)}case od:{const c=[],f=i([o,c],a);for(const[p,h]of a)(t||!(Wa(vs(p))||Wa(vs(h))))&&c.push([s(p),s(h)]);return f}case ld:{const c=[],f=i([o,c],a);for(const p of a)(t||!Wa(vs(p)))&&c.push(s(p));return f}}const{message:u}=a;return i([o,{name:l,message:u}],a)};return s},Jp=(t,{json:e,lossy:n}={})=>{const r=[];return c9(!(e||n),!!e,new Map,r)(t),r},Oo=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?Xp(Jp(t,e)):structuredClone(t):(t,e)=>Xp(Jp(t,e));function d9(t,e){const n=[{type:"text",value:"↩"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function f9(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function h9(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||d9,r=t.options.footnoteBackLabel||f9,i=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",a=t.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<t.footnoteOrder.length;){const u=t.footnoteById.get(t.footnoteOrder[l]);if(!u)continue;const c=t.all(u),f=String(u.identifier).toUpperCase(),p=ts(f.toLowerCase());let h=0;const y=[],m=t.footnoteCounts.get(f);for(;m!==void 0&&++h<=m;){y.length>0&&y.push({type:"text",value:" "});let A=typeof n=="string"?n:n(l,h);typeof A=="string"&&(A={type:"text",value:A}),y.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const v=c[c.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const A=v.children[v.children.length-1];A&&A.type==="text"?A.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...y)}else c.push(...y);const g={type:"element",tagName:"li",properties:{id:e+"fn-"+p},children:t.wrap(c,!0)};t.patch(u,g),o.push(g)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Oo(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
67
67
  `},{type:"element",tagName:"ol",properties:{},children:t.wrap(o,!0)},{type:"text",value:`
68
- `}]}}const Dg=function(t){if(t==null)return B7;if(typeof t=="function")return el(t);if(typeof t=="object")return Array.isArray(t)?R7(t):_7(t);if(typeof t=="string")return D7(t);throw new Error("Expected function, string, or object as test")};function R7(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=Dg(t[n]);return el(r);function r(...i){let s=-1;for(;++s<e.length;)if(e[s].apply(this,i))return!0;return!1}}function _7(t){const e=t;return el(n);function n(r){const i=r;let s;for(s in t)if(i[s]!==e[s])return!1;return!0}}function D7(t){return el(e);function e(n){return n&&n.type===t}}function el(t){return e;function e(n,r,i){return!!(F7(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function B7(){return!0}function F7(t){return t!==null&&typeof t=="object"&&"type"in t}const Bg=[],z7=!0,Fp=!1,U7="skip";function H7(t,e,n,r){let i;typeof e=="function"&&typeof n!="function"?(r=n,n=e):i=e;const s=Dg(i),a=r?-1:1;o(t,void 0,[])();function o(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=Bg,y,m,v;if((!e||s(l,u,c[c.length-1]||void 0))&&(h=q7(n(l,c)),h[0]===Fp))return h;if("children"in l&&l.children){const g=l;if(g.children&&h[0]!==U7)for(m=(r?g.children.length:-1)+a,v=c.concat(g);m>-1&&m<g.children.length;){const A=g.children[m];if(y=o(A,m,v)(),y[0]===Fp)return y;m=typeof y[1]=="number"?y[1]:m+a}}return h}}}function q7(t){return Array.isArray(t)?t:typeof t=="number"?[z7,t]:t==null?Bg:[t]}function Fg(t,e,n,r){let i,s,a;typeof e=="function"&&typeof n!="function"?(s=void 0,a=e,i=n):(s=e,a=n,i=r),H7(t,s,o,i);function o(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return a(l,f,c)}}const tc={}.hasOwnProperty,W7={};function Q7(t,e){const n=e||W7,r=new Map,i=new Map,s=new Map,a={...E7,...n.handlers},o={all:u,applyData:Y7,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:a,one:l,options:n,patch:G7,wrap:K7};return Fg(t,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?r:i,p=String(c.identifier).toUpperCase();f.has(p)||f.set(p,c)}}),o;function l(c,f){const p=c.type,h=o.handlers[p];if(tc.call(o.handlers,p)&&h)return h(o,c,f);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in c){const{children:m,...v}=c,g=jo(v);return g.children=o.all(c),g}return jo(c)}return(o.options.unknownHandler||V7)(o,c,f)}function u(c){const f=[];if("children"in c){const p=c.children;let h=-1;for(;++h<p.length;){const y=o.one(p[h],c);if(y){if(h&&p[h-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=zp(y.value)),!Array.isArray(y)&&y.type==="element")){const m=y.children[0];m&&m.type==="text"&&(m.value=zp(m.value))}Array.isArray(y)?f.push(...y):f.push(y)}}}return f}}function G7(t,e){t.position&&(e.position=PE(t))}function Y7(t,e){let n=e;if(t&&t.data){const r=t.data.hName,i=t.data.hChildren,s=t.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&s&&Object.assign(n.properties,jo(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function V7(t,e){const n=e.data||{},r="value"in e&&!(tc.call(n,"hProperties")||tc.call(n,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function K7(t,e){const n=[];let r=-1;for(e&&n.push({type:"text",value:`
68
+ `}]}}const nv=function(t){if(t==null)return g9;if(typeof t=="function")return rl(t);if(typeof t=="object")return Array.isArray(t)?p9(t):y9(t);if(typeof t=="string")return m9(t);throw new Error("Expected function, string, or object as test")};function p9(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=nv(t[n]);return rl(r);function r(...i){let s=-1;for(;++s<e.length;)if(e[s].apply(this,i))return!0;return!1}}function y9(t){const e=t;return rl(n);function n(r){const i=r;let s;for(s in t)if(i[s]!==e[s])return!1;return!0}}function m9(t){return rl(e);function e(n){return n&&n.type===t}}function rl(t){return e;function e(n,r,i){return!!(v9(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function g9(){return!0}function v9(t){return t!==null&&typeof t=="object"&&"type"in t}const rv=[],b9=!0,Zp=!1,x9="skip";function w9(t,e,n,r){let i;typeof e=="function"&&typeof n!="function"?(r=n,n=e):i=e;const s=nv(i),a=r?-1:1;o(t,void 0,[])();function o(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=rv,y,m,v;if((!e||s(l,u,c[c.length-1]||void 0))&&(h=A9(n(l,c)),h[0]===Zp))return h;if("children"in l&&l.children){const g=l;if(g.children&&h[0]!==x9)for(m=(r?g.children.length:-1)+a,v=c.concat(g);m>-1&&m<g.children.length;){const A=g.children[m];if(y=o(A,m,v)(),y[0]===Zp)return y;m=typeof y[1]=="number"?y[1]:m+a}}return h}}}function A9(t){return Array.isArray(t)?t:typeof t=="number"?[b9,t]:t==null?rv:[t]}function iv(t,e,n,r){let i,s,a;typeof e=="function"&&typeof n!="function"?(s=void 0,a=e,i=n):(s=e,a=n,i=r),w9(t,s,o,i);function o(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return a(l,f,c)}}const ac={}.hasOwnProperty,S9={};function C9(t,e){const n=e||S9,r=new Map,i=new Map,s=new Map,a={...a9,...n.handlers},o={all:u,applyData:j9,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:a,one:l,options:n,patch:k9,wrap:O9};return iv(t,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?r:i,p=String(c.identifier).toUpperCase();f.has(p)||f.set(p,c)}}),o;function l(c,f){const p=c.type,h=o.handlers[p];if(ac.call(o.handlers,p)&&h)return h(o,c,f);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in c){const{children:m,...v}=c,g=Oo(v);return g.children=o.all(c),g}return Oo(c)}return(o.options.unknownHandler||E9)(o,c,f)}function u(c){const f=[];if("children"in c){const p=c.children;let h=-1;for(;++h<p.length;){const y=o.one(p[h],c);if(y){if(h&&p[h-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=$p(y.value)),!Array.isArray(y)&&y.type==="element")){const m=y.children[0];m&&m.type==="text"&&(m.value=$p(m.value))}Array.isArray(y)?f.push(...y):f.push(y)}}}return f}}function k9(t,e){t.position&&(e.position=l8(t))}function j9(t,e){let n=e;if(t&&t.data){const r=t.data.hName,i=t.data.hChildren,s=t.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&s&&Object.assign(n.properties,Oo(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function E9(t,e){const n=e.data||{},r="value"in e&&!(ac.call(n,"hProperties")||ac.call(n,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function O9(t,e){const n=[];let r=-1;for(e&&n.push({type:"text",value:`
69
69
  `});++r<t.length;)r&&n.push({type:"text",value:`
70
70
  `}),n.push(t[r]);return e&&t.length>0&&n.push({type:"text",value:`
71
- `}),n}function zp(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}function Up(t,e){const n=Q7(t,e),r=n.one(t,void 0),i=N7(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
72
- `},i),s}function X7(t,e){return t&&"run"in t?async function(n,r){const i=Up(n,{file:r,...e});await t.run(i,r)}:function(n,r){return Up(n,{file:r,...t||e})}}function Hp(t){if(t)throw t}var _l,qp;function J7(){if(qp)return _l;qp=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):e.call(u)==="[object Array]"},s=function(u){if(!u||e.call(u)!=="[object Object]")return!1;var c=t.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&t.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var p;for(p in u);return typeof p=="undefined"||t.call(u,p)},a=function(u,c){n&&c.name==="__proto__"?n(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},o=function(u,c){if(c==="__proto__")if(t.call(u,c)){if(r)return r(u,c).value}else return;return u[c]};return _l=function l(){var u,c,f,p,h,y,m=arguments[0],v=1,g=arguments.length,A=!1;for(typeof m=="boolean"&&(A=m,m=arguments[1]||{},v=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});v<g;++v)if(u=arguments[v],u!=null)for(c in u)f=o(m,c),p=o(u,c),m!==p&&(A&&p&&(s(p)||(h=i(p)))?(h?(h=!1,y=f&&i(f)?f:[]):y=f&&s(f)?f:{},a(m,{name:c,newValue:l(A,y,p)})):typeof p!="undefined"&&a(m,{name:c,newValue:p}));return m},_l}var Z7=J7();const Dl=Oo(Z7);function nc(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function $7(){const t=[],e={run:n,use:r};return e;function n(...i){let s=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...i);function o(l,...u){const c=t[++s];let f=-1;if(l){a(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?e9(c,o)(...u):a(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function e9(t,e){let n;return r;function r(...a){const o=t.length>a.length;let l;o&&a.push(i);try{l=t.apply(this,a)}catch(u){const c=u;if(o&&n)throw c;return i(c)}o||(l&&l.then&&typeof l.then=="function"?l.then(s,i):l instanceof Error?i(l):s(l))}function i(a,...o){n||(n=!0,e(a,...o))}function s(a){i(null,a)}}const wn={basename:t9,dirname:n9,extname:r9,join:i9,sep:"/"};function t9(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');ba(t);let n=0,r=-1,i=t.length,s;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":t.slice(n,r)}if(e===t)return"";let a=-1,o=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(s){n=i+1;break}}else a<0&&(s=!0,a=i+1),o>-1&&(t.codePointAt(i)===e.codePointAt(o--)?o<0&&(r=i):(o=-1,r=a));return n===r?r=a:r<0&&(r=t.length),t.slice(n,r)}function n9(t){if(ba(t),t.length===0)return".";let e=-1,n=t.length,r;for(;--n;)if(t.codePointAt(n)===47){if(r){e=n;break}}else r||(r=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function r9(t){ba(t);let e=t.length,n=-1,r=0,i=-1,s=0,a;for(;e--;){const o=t.codePointAt(e);if(o===47){if(a){r=e+1;break}continue}n<0&&(a=!0,n=e+1),o===46?i<0?i=e:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":t.slice(i,n)}function i9(...t){let e=-1,n;for(;++e<t.length;)ba(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":s9(n)}function s9(t){ba(t);const e=t.codePointAt(0)===47;let n=a9(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function a9(t,e){let n="",r=0,i=-1,s=0,a=-1,o,l;for(;++a<=t.length;){if(a<t.length)o=t.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(i===a-1||s===1))if(i!==a-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,s=0;continue}}else if(n.length>0){n="",r=0,i=a,s=0;continue}}e&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+t.slice(i+1,a):n=t.slice(i+1,a),r=a-i-1;i=a,s=0}else o===46&&s>-1?s++:s=-1}return n}function ba(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const o9={cwd:l9};function l9(){return"/"}function rc(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function u9(t){if(typeof t=="string")t=new URL(t);else if(!rc(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return c9(t)}function c9(t){if(t.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const e=t.pathname;let n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){const r=e.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(e)}const Bl=["history","path","basename","stem","extname","dirname"];class zg{constructor(e){let n;e?rc(e)?n={path:e}:typeof e=="string"||d9(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":o9.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Bl.length;){const s=Bl[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)Bl.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?wn.basename(this.path):void 0}set basename(e){zl(e,"basename"),Fl(e,"basename"),this.path=wn.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?wn.dirname(this.path):void 0}set dirname(e){Wp(this.basename,"dirname"),this.path=wn.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?wn.extname(this.path):void 0}set extname(e){if(Fl(e,"extname"),Wp(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=wn.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){rc(e)&&(e=u9(e)),zl(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?wn.basename(this.path,this.extname):void 0}set stem(e){zl(e,"stem"),Fl(e,"stem"),this.path=wn.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){const i=this.message(e,n,r);throw i.fatal=!0,i}info(e,n,r){const i=this.message(e,n,r);return i.fatal=void 0,i}message(e,n,r){const i=new pt(e,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function Fl(t,e){if(t&&t.includes(wn.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+wn.sep+"`")}function zl(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function Wp(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function d9(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const f9=function(t){const r=this.constructor.prototype,i=r[t],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s},h9={}.hasOwnProperty;class rd extends f9{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=$7()}copy(){const e=new rd;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];e.use(...r)}return e.data(Dl(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(ql("data",this.frozen),this.namespace[e]=n,this):h9.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ql("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(e,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=Wa(e),r=this.parser||this.Parser;return Ul("parse",r),r(String(n),n)}process(e,n){const r=this;return this.freeze(),Ul("process",this.parser||this.Parser),Hl("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,a){const o=Wa(e),l=r.parse(o);r.run(l,o,function(c,f,p){if(c||!f||!p)return u(c);const h=f,y=r.stringify(h,p);m9(y)?p.value=y:p.result=y,u(c,p)});function u(c,f){c||!f?a(c):s?s(f):n(void 0,f)}}}processSync(e){let n=!1,r;return this.freeze(),Ul("processSync",this.parser||this.Parser),Hl("processSync",this.compiler||this.Compiler),this.process(e,i),Gp("processSync","process",n),r;function i(s,a){n=!0,Hp(s),r=a}}run(e,n,r){Qp(e),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(a,o){const l=Wa(n);i.run(e,l,u);function u(c,f,p){const h=f||e;c?o(c):a?a(h):r(void 0,h,p)}}}runSync(e,n){let r=!1,i;return this.run(e,n,s),Gp("runSync","run",r),i;function s(a,o){Hp(a),i=o,r=!0}}stringify(e,n){this.freeze();const r=Wa(n),i=this.compiler||this.Compiler;return Hl("stringify",i),Qp(e),i(e,r)}use(e,...n){const r=this.attachers,i=this.namespace;if(ql("use",this.frozen),e!=null)if(typeof e=="function")l(e,n);else if(typeof e=="object")Array.isArray(e)?o(e):a(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function s(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else a(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function a(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(i.settings=Dl(!0,i.settings,u.settings))}function o(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];s(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,p=-1;for(;++f<r.length;)if(r[f][0]===u){p=f;break}if(p===-1)r.push([u,...c]);else if(c.length>0){let[h,...y]=c;const m=r[p][1];nc(m)&&nc(h)&&(h=Dl(!0,m,h)),r[p]=[u,h,...y]}}}}const p9=new rd().freeze();function Ul(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Hl(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function ql(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Qp(t){if(!nc(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Gp(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Wa(t){return y9(t)?t:new zg(t)}function y9(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function m9(t){return typeof t=="string"||g9(t)}function g9(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const v9="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Yp=[],Vp={allowDangerousHtml:!0},b9=/^(https?|ircs?|mailto|xmpp)$/i,x9=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function w9(t){const e=A9(t),n=S9(t);return C9(e.runSync(e.parse(n),n),t)}function A9(t){const e=t.rehypePlugins||Yp,n=t.remarkPlugins||Yp,r=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Vp}:Vp;return p9().use(t7).use(n).use(X7,r).use(e)}function S9(t){const e=t.children||"",n=new zg;return typeof e=="string"&&(n.value=e),n}function C9(t,e){const n=e.allowedElements,r=e.allowElement,i=e.components,s=e.disallowedElements,a=e.skipHtml,o=e.unwrapDisallowed,l=e.urlTransform||k9;for(const c of x9)Object.hasOwn(e,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+v9+c.id,void 0);return Fg(t,u),NE(t,{Fragment:d.Fragment,components:i,ignoreInvalidStyle:!0,jsx:d.jsx,jsxs:d.jsxs,passKeys:!0,passNode:!0});function u(c,f,p){if(c.type==="raw"&&p&&typeof f=="number")return a?p.children.splice(f,1):p.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let h;for(h in Ll)if(Object.hasOwn(Ll,h)&&Object.hasOwn(c.properties,h)){const y=c.properties[h],m=Ll[h];(m===null||m.includes(c.tagName))&&(c.properties[h]=l(String(y||""),h,c))}}if(c.type==="element"){let h=n?!n.includes(c.tagName):s?s.includes(c.tagName):!1;if(!h&&r&&typeof f=="number"&&(h=!r(c,f,p)),h&&p&&typeof f=="number")return o&&c.children?p.children.splice(f,1,...c.children):p.children.splice(f,1),f}}}function k9(t){const e=t.indexOf(":"),n=t.indexOf("?"),r=t.indexOf("#"),i=t.indexOf("/");return e===-1||i!==-1&&e>i||n!==-1&&e>n||r!==-1&&e>r||b9.test(t.slice(0,e))?t:""}function Wl(t,e){return P9(t)||O9(t,e)||E9(t,e)||j9()}function j9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
73
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E9(t,e){if(t){if(typeof t=="string")return Kp(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kp(t,e):void 0}}function Kp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function O9(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function P9(t){if(Array.isArray(t))return t}var T9=function(e){var n=e.queryResult,r=F.useState(null),i=Wl(r,2),s=i[0],a=i[1],o=F.useState(null),l=Wl(o,2),u=l[0],c=l[1],f=F.useState(null),p=Wl(f,2),h=p[0],y=p[1],m=F.useRef(null),v=n.response||"No response available",g=F.useMemo(function(){return n.mentionedBrands||[]},[n.mentionedBrands]),A=n.citations||[],E=n.sentiments||[],j=u!==null?u:s,S=F.useMemo(function(){if(j===null)return v;var x=g.find(function(N){return N.id===j});return x?v.replaceAll(x.name,"**".concat(x.name,"**")):v},[v,j,g]),b=function(N){c(u===N?null:N)};F.useEffect(function(){if(m.current&&j!==null){var x=m.current.scrollHeight;(h===null||x>h)&&y(x)}},[j,S,h]);var w=Array.from(new Map(g.map(function(x){return[x.id,x]})).values());return d.jsx(C.Card,{className:"yst-mb-4",children:d.jsx(C.Card.Content,{className:"yst-p-4",children:d.jsxs("details",{className:"yst-group",children:[d.jsxs("summary",{className:"yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden",children:[d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(C.Title,{size:"3",className:"yst-mb-2",children:n.query}),d.jsxs("div",{className:"yst-flex yst-gap-4 yst-text-sm yst-text-gray-600",children:[g.length>0&&d.jsxs("span",{children:[w.length," brand",w.length!==1?"s":""]}),A.length>0&&d.jsxs("span",{children:[A.length," citation",A.length!==1?"s":""]}),E.length>0&&d.jsxs("span",{children:[E.length," sentiment",E.length!==1?"s":""]})]})]}),d.jsx("div",{className:"yst-text-gray-500 group-open:yst-rotate-90 yst-transition-transform",children:"▶"})]}),d.jsxs("div",{className:"yst-mt-6 yst-flex yst-flex-col yst-gap-6",children:[d.jsxs("details",{className:"yst-border-t yst-pt-4",children:[d.jsxs("summary",{className:"yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2",children:[d.jsx("span",{children:"AI Response"}),d.jsx("span",{className:"yst-text-gray-500",children:"▶"})]}),d.jsx("div",{className:"yst-mt-2",children:d.jsx("div",{className:"yst-rounded-lg yst-border yst-border-gray-300 yst-bg-gray-50 yst-p-4",children:d.jsx("div",{ref:m,className:"yst-text-sm yst-text-gray-700 [&_p]:yst-mb-4 [&_ul]:yst-list-disc [&_ul]:yst-ml-6 [&_ul]:yst-mb-4 [&_ol]:yst-list-decimal [&_ol]:yst-ml-6 [&_ol]:yst-mb-4 [&_li]:yst-mb-1 [&_h1]:yst-text-xl [&_h1]:yst-font-bold [&_h1]:yst-mb-2 [&_h2]:yst-text-lg [&_h2]:yst-font-bold [&_h2]:yst-mb-2 [&_h3]:yst-font-bold [&_h3]:yst-mb-2 [&_code]:yst-bg-white [&_code]:yst-px-1 [&_code]:yst-rounded [&_pre]:yst-bg-white [&_pre]:yst-p-3 [&_pre]:yst-rounded [&_pre]:yst-mb-4 [&_pre]:yst-overflow-x-auto [&_p:last-child]:yst-mb-0 [&_ul:last-child]:yst-mb-0 [&_ol:last-child]:yst-mb-0 [&_strong]:yst-bg-yellow-200 [&_strong]:yst-rounded [&_strong]:yst-px-1",style:h!==null?{height:"".concat(h,"px")}:void 0,children:d.jsx(w9,{children:S})})})})]}),g.length>0&&d.jsxs("details",{className:"yst-border-t yst-pt-4",children:[d.jsxs("summary",{className:"yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2",children:[d.jsxs("span",{children:["Brands (",w.length,")"]}),d.jsx("span",{className:"yst-text-gray-500",children:"▶"})]}),d.jsxs("div",{className:"yst-mt-2 yst-space-y-4",children:[d.jsxs("div",{children:[d.jsx("p",{className:"yst-mb-2 yst-text-sm yst-font-medium",children:"Mentioned brands:"}),d.jsx("div",{className:"yst-flex yst-flex-wrap yst-gap-2",children:w.map(function(x){return d.jsx(C.Badge,{variant:x.isSelf?"info":"plain",className:"yst-cursor-pointer yst-transition-colors ".concat(j===x.id?"yst-ring-2 yst-ring-yellow-400":""),onMouseEnter:function(){return a(x.id)},onMouseLeave:function(){return a(null)},onClick:function(){return b(x.id)},children:x.name},x.id)})})]}),d.jsxs("div",{children:[d.jsx("p",{className:"yst-mb-2 yst-text-sm yst-font-medium",children:"Brand ranking:"}),d.jsx("ol",{className:"yst-list-decimal yst-list-inside yst-space-y-3",children:g.sort(function(x,N){return x.rank-N.rank}).map(function(x){return d.jsxs("li",{className:"yst-text-sm",children:[d.jsx(C.Badge,{variant:x.isSelf?"info":"plain",className:"yst-cursor-pointer yst-transition-colors ".concat(j===x.id?"yst-ring-2 yst-ring-yellow-400":""),onMouseEnter:function(){return a(x.id)},onMouseLeave:function(){return a(null)},onClick:function(){return b(x.id)},children:x.name}),d.jsxs("p",{className:"yst-ml-6 yst-mt-1 yst-text-sm yst-text-gray-600 yst-italic",children:['"',x.context,'"']})]},"".concat(x.id,"-").concat(x.rank))})})]})]})]}),A.length>0&&d.jsxs("details",{className:"yst-border-t yst-pt-4",children:[d.jsxs("summary",{className:"yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2",children:[d.jsxs("span",{children:["Citations (",A.length,")"]}),d.jsx("span",{className:"yst-text-gray-500",children:"▶"})]}),d.jsx("div",{className:"yst-mt-2",children:d.jsxs(C.Table,{children:[d.jsx(C.Table.Head,{children:d.jsxs(C.Table.Row,{children:[d.jsx(C.Table.Header,{children:"Rank"}),d.jsx(C.Table.Header,{children:"Domain"}),d.jsx(C.Table.Header,{children:"URL"}),d.jsx(C.Table.Header,{children:"Associated brands"})]})}),d.jsx(C.Table.Body,{children:A.sort(function(x,N){return x.rank-N.rank}).map(function(x,N){return d.jsxs(C.Table.Row,{children:[d.jsxs(C.Table.Cell,{children:["#",x.rank]}),d.jsx(C.Table.Cell,{children:x.rootDomain}),d.jsx(C.Table.Cell,{children:d.jsx(C.Link,{href:x.url,target:"_blank",rel:"noopener noreferrer",children:x.url})}),d.jsx(C.Table.Cell,{children:x.associatedBrands.length>0?d.jsx("div",{className:"yst-flex yst-flex-wrap yst-gap-1",children:x.associatedBrands.map(function(_){return d.jsx(C.Badge,{variant:_.isSelf?"info":"plain",className:"yst-cursor-pointer yst-transition-colors ".concat(j===_.id?"yst-ring-2 yst-ring-yellow-400":""),onMouseEnter:function(){return a(_.id)},onMouseLeave:function(){return a(null)},onClick:function(){return b(_.id)},children:_.name},_.id)})}):d.jsx("span",{className:"yst-text-gray-500",children:"None"})})]},"".concat(x.url,"-").concat(N))})})]})})]}),E.length>0&&d.jsxs("details",{className:"yst-border-t yst-pt-4",children:[d.jsxs("summary",{className:"yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2",children:[d.jsxs("span",{children:["Sentiment Analysis (",E.length,")"]}),d.jsx("span",{className:"yst-text-gray-500",children:"▶"})]}),d.jsx("div",{className:"yst-mt-2 yst-flex yst-flex-col yst-gap-4",children:E.map(function(x){return d.jsxs("div",{className:"yst-rounded-lg yst-border yst-border-gray-300 yst-p-4",children:[d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-3 yst-mb-3",children:[d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-2",children:[d.jsx("span",{className:"yst-text-sm yst-font-semibold",children:"Score:"}),d.jsx(C.Badge,{variant:x.score>.3?"success":x.score<-.3?"error":"plain",children:x.score.toFixed(2)})]}),d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-2",children:[d.jsx("span",{className:"yst-text-sm yst-font-semibold",children:"Confidence:"}),d.jsxs(C.Badge,{variant:"plain",children:[(x.confidence*100).toFixed(0),"%"]})]})]}),x.brands.length>0&&d.jsxs("div",{className:"yst-mb-3",children:[d.jsx("span",{className:"yst-text-sm yst-font-semibold yst-mb-1 yst-block",children:"Brands:"}),d.jsx("div",{className:"yst-flex yst-flex-wrap yst-gap-1",children:x.brands.map(function(N){return d.jsx(C.Badge,{variant:N.isSelf?"info":"plain",className:"yst-cursor-pointer yst-transition-colors ".concat(j===N.id?"yst-ring-2 yst-ring-yellow-400":""),onMouseEnter:function(){return a(N.id)},onMouseLeave:function(){return a(null)},onClick:function(){return b(N.id)},children:N.name},N.id)})})]}),x.keywords.length>0&&d.jsxs("div",{children:[d.jsx("span",{className:"yst-text-sm yst-font-semibold yst-mb-1 yst-block",children:"Keywords:"}),d.jsx("div",{className:"yst-flex yst-flex-wrap yst-gap-2",children:x.keywords.map(function(N,_){return d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-1 yst-rounded yst-bg-gray-100 yst-px-2 yst-py-1",children:[d.jsx("span",{className:"yst-text-sm",children:N.keyword}),d.jsx(C.Badge,{variant:N.isPositive?"success":N.isNegative?"error":"plain",children:N.sentiment.toFixed(2)})]},_)})})]})]},x.id)})})]}),n.rawResponse&&d.jsxs("details",{className:"yst-border-t yst-pt-4",children:[d.jsxs("summary",{className:"yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2",children:[d.jsx("span",{children:"Raw Response"}),d.jsx("span",{className:"yst-text-gray-500",children:"▶"})]}),d.jsx("div",{className:"yst-mt-2",children:d.jsx("pre",{className:"yst-rounded-lg yst-border yst-border-gray-300 yst-bg-gray-50 yst-p-4 yst-text-xs yst-overflow-x-auto yst-max-h-96 yst-overflow-y-auto",children:JSON.stringify(n.rawResponse,null,2)})})]})]})]})})})},I9=function(){var e=It(),n=e.brandId,r=e.analysisId,i=ht(),s=Bs(n,{query:{enabled:!!n,select:function(y){var m=y.data;return m}}}),a=s.data,o=s.isLoading,l=Fo(n,r,{query:{enabled:!!n&&!!r,select:function(y){var m=y.data;return m==null?void 0:m.analysis}}}),u=l.data,c=l.isLoading,f=o||c,p=u&&u.status===zn.completed;return f?d.jsx(Yi,{}):p?d.jsxs(C.Card,{children:[d.jsx(Yu,{title:"Scan details",children:d.jsx(C.Button,{variant:"secondary",onClick:function(){return i("/brands/".concat(n,"/analysis/").concat(r))},children:"Back to analysis results"})}),u.scans.map(function(h){return d.jsx(M9,{brandId:n,analysisId:r,scanId:h.id,provider:h.aiProvider?String(h.aiProvider):"Unknown",scanFinishedAt:h.finishedAt,brandName:a==null?void 0:a.name},h.id)})]}):d.jsxs(C.Card,{children:[d.jsx(Yu,{title:"Scan details"}),d.jsx(C.Card.Content,{children:d.jsx("p",{children:"No completed analysis found. Please run an analysis first."})})]})},M9=function(e){var n=e.brandId,r=e.analysisId,i=e.scanId,s=e.provider,a=e.scanFinishedAt,o=e.brandName,l=ax(n,r,i,{query:{enabled:!!n&&!!r&&!!i,select:function(h){var y=h.data;return y}}}),u=l.data,c=l.isLoading;if(c)return d.jsx(Yi,{});var f=(u==null?void 0:u.queryResults)||[];return f.length===0?null:d.jsx(C.Card,{className:"yst-mb-4",children:d.jsxs(C.Card.Content,{children:[d.jsxs("p",{className:"yst-mb-8",children:[o," - Scan performed on:"," ",d.jsx(C.Badge,{children:a?Br(new Date(a),"yyyy-MM-dd HH:mm:ss"):"In progress"})," ","- AI Platform:"," ",d.jsx(C.Badge,{className:"yst-bg-green-100 yst-text-green-800",children:s})]}),f.map(function(p){return d.jsx(T9,{queryResult:p},p.id)})]})},i)};const L9=Object.freeze(Object.defineProperty({__proto__:null,default:I9},Symbol.toStringTag,{value:"Module"}));var N9=function(){var e=It(),n=e.hostAppProps.basename,r=F.useCallback(function(a){if(!n||!a.startsWith(n))return a;var o=a.slice(n.length);return o||"/"},[n]),i=F.useCallback(function(a){if(!n)return a;var o=a.startsWith("/")?a:"/".concat(a);return"".concat(n).concat(o)},[n]),s=F.useCallback(function(a){return n?a.startsWith(n):a.startsWith("/")&&!a.startsWith("//")},[n]);return{basename:n||"",stripBasename:r,addBasename:i,isWithinBasename:s}};function Ql(t,e){return B9(t)||D9(t,e)||_9(t,e)||R9()}function R9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
74
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _9(t,e){if(t){if(typeof t=="string")return Xp(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xp(t,e):void 0}}function Xp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function D9(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function B9(t){if(Array.isArray(t))return t}var F9=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.shouldBlock,r=n===void 0?!0:n,i=e.onConfirmLeave,s=e.onCancelLeave,a=ht(),o=N9(),l=o.basename,u=o.stripBasename,c=F.useState(!1),f=Ql(c,2),p=f[0],h=f[1],y=F.useState(null),m=Ql(y,2),v=m[0],g=m[1],A=F.useState(!1),E=Ql(A,2),j=E[0],S=E[1],b=F.useRef(!1);F.useEffect(function(){if(!(!r||j)){var I=function(z){var L=z.target,P=L.closest("a");if(P){var D=P.getAttribute("href");if(D&&D.startsWith("/")&&!D.startsWith("//")){var B=window.location.pathname,V=u(D),W=u(B);V!==W&&(z.preventDefault(),z.stopPropagation(),g(V),h(!0))}}};return document.addEventListener("click",I,!0),function(){return document.removeEventListener("click",I,!0)}}},[r,u,j]),F.useEffect(function(){if(!(!r||j)){b.current=!1;var I=function(){if(!b.current){b.current=!0;return}g(-1),h(!0);var L=window.location.href;window.history.pushState({blockerActive:!0},"",L)};window.addEventListener("popstate",I);var T=setTimeout(function(){var z=window.location.href;window.history.pushState({blockerActive:!0},"",z),b.current=!0},50);return function(){var z;clearTimeout(T),window.removeEventListener("popstate",I),b.current&&(z=window.history.state)!==null&&z!==void 0&&z.blockerActive&&window.history.back()}}},[r,j]),F.useEffect(function(){if(r){var I=function(z){z.preventDefault(),z.returnValue=""};return window.addEventListener("beforeunload",I),function(){return window.removeEventListener("beforeunload",I)}}},[r]);var w=F.useCallback(function(I){if(typeof I=="number")a(I);else{var T=l&&I.startsWith(l)?u(I):I;a(T)}},[a,u,l]),x=F.useCallback(function(){v!==null&&(h(!1),S(!0),i==null||i(),setTimeout(function(){if(v===-1){var I;(I=window.history.state)!==null&&I!==void 0&&I.blockerActive?(window.history.back(),setTimeout(function(){window.history.back()},10)):window.history.back()}else w(v);g(null),setTimeout(function(){return S(!1)},100)},0))},[v,w,i]),N=F.useCallback(function(){h(!1),g(null),s==null||s()},[s]),_=F.useCallback(function(I){r?(g(I),h(!0)):w(I)},[r,w]);return{showModal:p,pendingNavigation:v,confirmLeave:x,cancelLeave:N,navigateAway:_}};function z9(t,e){return W9(t)||q9(t,e)||H9(t,e)||U9()}function U9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
75
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H9(t,e){if(t){if(typeof t=="string")return Jp(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jp(t,e):void 0}}function Jp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function q9(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function W9(t){if(Array.isArray(t))return t}var Q9=function(e){var n=e.isOpen,r=e.onClose,i=on(),s=jc(),a=F.useState(""),o=z9(a,2),l=o[0],u=o[1],c=Ux({mutation:{onSettled:function(){i.clear()},onSuccess:function(){r(),s("Successfully deleted all data.",{variant:"success"})},onError:function(){i.clear(),s("Failed to delete all data. Please try again later.",{variant:"error"})}}}),f=c.mutate,p=c.isPending;return F.useEffect(function(){n&&u("")},[n]),d.jsx(Wo,{isOpen:n,onClose:r,onConfirm:function(){f()},isLoading:p,disabled:l!=="DELETE ALL",title:"Delete all data?",description:d.jsxs(d.Fragment,{children:[d.jsx("p",{children:"This will permanently erase all brands, analysis results, and queries from your account."}),d.jsx("p",{children:"This action cannot be undone."}),d.jsx(C.TextField,{id:"delete-all-confirmation",label:"To confirm, please type DELETE ALL:",value:l,onChange:function(h){return u(h.target.value)}}),d.jsx("p",{children:d.jsx("em",{children:"This is to make sure you understand this action is permanent."})})]}),confirmText:"Yes, delete all data",cancelText:"No, go back"})};function ic(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return Ht(A,"_invoke",function(E,j,S){var b,w,x,N=0,_=S||[],I=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(P,D){return b=P,w=0,x=t,T.n=D,a}};function z(L,P){for(w=L,x=P,e=0;!I&&N&&!D&&e<_.length;e++){var D,B=_[e],V=T.p,W=B[2];L>3?(D=W===P)&&(x=B[(w=B[4])?5:(w=3,3)],B[4]=B[5]=t):B[0]<=V&&((D=L<2&&V<B[1])?(w=0,T.v=P,T.n=B[1]):V<W&&(D=L<3||B[0]>P||P>W)&&(B[4]=L,B[5]=P,T.n=W,w=0))}if(D||L>1)return a;throw I=!0,P}return function(L,P,D){if(N>1)throw TypeError("Generator is already running");for(I&&P===1&&z(P,D),w=P,x=D;(e=w<2?t:x)||!I;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(L="next"),e=b[L]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+L+"' method"),w=1);b=t}else if((e=(I=T.n<0)?x:E.call(j,T))!==a)break}catch(B){b=t,w=1,x=B}finally{N=1}}return{value:e,done:I}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(Ht(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,Ht(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,Ht(f,"constructor",u),Ht(u,"constructor",l),l.displayName="GeneratorFunction",Ht(u,i,"GeneratorFunction"),Ht(f),Ht(f,i,"Generator"),Ht(f,r,function(){return this}),Ht(f,"toString",function(){return"[object Generator]"}),(ic=function(){return{w:s,m:p}})()}function Ht(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}Ht=function(a,o,l,u){function c(f,p){Ht(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},Ht(t,e,n,r)}function Zp(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function G9(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){Zp(s,r,i,a,o,"next",l)}function o(l){Zp(s,r,i,a,o,"throw",l)}a(void 0)})}}function Y9(t,e){return J9(t)||X9(t,e)||K9(t,e)||V9()}function V9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
76
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K9(t,e){if(t){if(typeof t=="string")return $p(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$p(t,e):void 0}}function $p(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function X9(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function J9(t){if(Array.isArray(t))return t}var Z9=function(e){var n=e.isOpen,r=e.brandId,i=e.onClose,s=e.brandName,a=on(),o=jc(),l=F.useState(""),u=Y9(l,2),c=u[0],f=u[1],p=Ex({mutation:{onSuccess:function(){var m=G9(ic().m(function g(){return ic().w(function(A){for(;;)switch(A.n){case 0:return A.n=1,Promise.all([a.invalidateQueries({queryKey:jn()}),a.invalidateQueries({queryKey:Uo()})]);case 1:o("Brand deleted successfully",{variant:"success"}),i();case 2:return A.a(2)}},g)}));function v(){return m.apply(this,arguments)}return v}(),onError:function(v){var g=v instanceof Error?v.message:"Please try again later.";o("Failed to delete brand. ".concat(g),{variant:"error"})}}}),h=p.mutate,y=p.isPending;return F.useEffect(function(){n&&f("")},[n]),d.jsx(Wo,{isOpen:n,onClose:i,onConfirm:function(){if(!s){console.error("Brand name is required for deletion confirmation");return}h({brandId:r})},isLoading:y,disabled:c.toLowerCase()!==(s==null?void 0:s.toLowerCase()),title:"Delete brand?",description:d.jsxs(d.Fragment,{children:[d.jsx("p",{children:"This will permanently delete all data associated with this brand, including past analyses and query history."}),d.jsx("p",{children:"This action cannot be undone."}),d.jsx(C.TextField,{id:"delete-modal-brand-name-confirmation",label:"To confirm, please type your brand name ".concat(s,":"),value:c,onChange:function(m){return f(m.target.value)}}),d.jsx("p",{children:d.jsx("em",{children:"This is to make sure you understand this action is permanent."})})]}),confirmText:"Yes, delete brand",cancelText:"No, go back"})};function ta(t){"@babel/helpers - typeof";return ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ta(t)}function ks(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return qt(A,"_invoke",function(E,j,S){var b,w,x,N=0,_=S||[],I=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(P,D){return b=P,w=0,x=t,T.n=D,a}};function z(L,P){for(w=L,x=P,e=0;!I&&N&&!D&&e<_.length;e++){var D,B=_[e],V=T.p,W=B[2];L>3?(D=W===P)&&(x=B[(w=B[4])?5:(w=3,3)],B[4]=B[5]=t):B[0]<=V&&((D=L<2&&V<B[1])?(w=0,T.v=P,T.n=B[1]):V<W&&(D=L<3||B[0]>P||P>W)&&(B[4]=L,B[5]=P,T.n=W,w=0))}if(D||L>1)return a;throw I=!0,P}return function(L,P,D){if(N>1)throw TypeError("Generator is already running");for(I&&P===1&&z(P,D),w=P,x=D;(e=w<2?t:x)||!I;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(L="next"),e=b[L]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+L+"' method"),w=1);b=t}else if((e=(I=T.n<0)?x:E.call(j,T))!==a)break}catch(B){b=t,w=1,x=B}finally{N=1}}return{value:e,done:I}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(qt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,qt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,qt(f,"constructor",u),qt(u,"constructor",l),l.displayName="GeneratorFunction",qt(u,i,"GeneratorFunction"),qt(f),qt(f,i,"Generator"),qt(f,r,function(){return this}),qt(f,"toString",function(){return"[object Generator]"}),(ks=function(){return{w:s,m:p}})()}function qt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}qt=function(a,o,l,u){function c(f,p){qt(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},qt(t,e,n,r)}function ey(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function sr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ey(Object(n),!0).forEach(function(r){$9(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ey(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function $9(t,e,n){return(e=eP(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eP(t){var e=tP(t,"string");return ta(e)=="symbol"?e:e+""}function tP(t,e){if(ta(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ta(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ty(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function ny(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){ty(s,r,i,a,o,"next",l)}function o(l){ty(s,r,i,a,o,"throw",l)}a(void 0)})}}function nP(t,e){return aP(t)||sP(t,e)||iP(t,e)||rP()}function rP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
77
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iP(t,e){if(t){if(typeof t=="string")return ry(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ry(t,e):void 0}}function ry(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function sP(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function aP(t){if(Array.isArray(t))return t}var oP=function(e){var n,r,i=e.brand,s=e.isLast,a=e.onDelete,o=i.id,l=It(),u=l.hostAppProps,c=l.analysisId,f=u.onAddSubscription,p=ht(),h=ha(),y=h.setBrandId,m=F.useState(!1),v=nP(m,2),g=v[0],A=v[1],E=on(),j=fa({query:{select:function(P){var D=P.data;return D},staleTime:5*1e3,refetchOnWindowFocus:!0,refetchInterval:30*1e3}}),S=j.data,b=qm({mutation:{onMutate:function(){var L=ny(ks().m(function D(B){var V,W,k;return ks().w(function(Q){for(;;)switch(Q.n){case 0:return V=B.brandId,W=B.data,Q.n=1,E.cancelQueries({queryKey:jn()});case 1:return k=E.getQueryData(jn()),E.setQueryData(jn(),function(H){var O,G;return H&&sr(sr({},H),{},{data:sr(sr({},H.data),{},{brands:((O=(G=H.data)===null||G===void 0?void 0:G.brands)!==null&&O!==void 0?O:[]).map(function(Y){return Y.id===V?sr(sr({},Y),{},{settings:sr(sr({},Y.settings),{},{enableAutomaticAnalysis:W.enableAutomaticAnalysis})}):Y})})})}),Q.a(2,{previous:k})}},D)}));function P(D){return L.apply(this,arguments)}return P}(),onSuccess:function(){if(i&&i.settings&&i.settings.enableAutomaticAnalysis===!1)return A(!1);A(!T)},onError:function(P,D,B){B!=null&&B.previous&&E.setQueryData(jn(),B.previous)},onSettled:function(){var L=ny(ks().m(function D(){return ks().w(function(B){for(;;)switch(B.n){case 0:return B.n=1,Promise.all([E.invalidateQueries({queryKey:jn()}),E.invalidateQueries({queryKey:Uo()}),E.invalidateQueries({queryKey:zo(o)}),E.invalidateQueries({queryKey:Gn(o,"latest")}),E.invalidateQueries({queryKey:On(o,"latest")}),E.invalidateQueries({queryKey:Gn(o,c)}),E.invalidateQueries({queryKey:On(o,c)})]);case 1:return B.a(2)}},D)}));function P(){return L.apply(this,arguments)}return P}()}}),w=b.mutate,x=b.isPending,N=function(P){w({brandId:o,data:{enableAutomaticAnalysis:P}})},_=function(P){if(P){if(!I)return A(!0);if(!T)return N(!0);A(!0)}else N(!1)},I=Number(S==null?void 0:S.maxNumberOfActiveBrands)-Number(S==null?void 0:S.numberOfActiveBrands)>0||!!(i!=null&&(n=i.settings)!==null&&n!==void 0&&n.enableAutomaticAnalysis),T=c0(i==null?void 0:i.firstNextAnalysisOpportunity),z=(i==null?void 0:i.setupStatus)==="pendingQuerySelection";return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:ie("yst-flex yst-max-w-2xl yst-flex-1 yst-flex-row yst-items-center yst-justify-start yst-gap-4 yst-py-4 yst-text-slate-800",{"yst-border-b-[1px] yst-border-b-slate-200":!s}),children:[d.jsx(C.Toggle,{id:"toggle-brand-".concat(i==null?void 0:i.id),checked:i==null||(r=i.settings)===null||r===void 0?void 0:r.enableAutomaticAnalysis,screenReaderLabel:"Enable or disable automatic analysis for this brand",onChange:_,disabled:(i==null?void 0:i.id)==="loading"||x}),d.jsxs("div",{className:"yst-font-medium",children:[(i==null?void 0:i.id)==="loading"?d.jsx(C.SkeletonLoader,{className:"yst-h-6 yst-w-32"}):i==null?void 0:i.name,z&&d.jsx("div",{children:d.jsx(C.Link,{variant:"primary",onClick:function(){i.id?(y(i.id),p("/setup/".concat(i.id,"/queries"))):console.error("Brand ID is missing.")},children:"Finish setup"})}),(i==null?void 0:i.nextScheduledAnalysis)&&d.jsxs("div",{className:"yst-font-normal yst-italic yst-text-slate-500",children:["Next analysis:"," ",Ou(i.nextScheduledAnalysis)]})]}),d.jsx("div",{className:"yst-ml-auto yst-flex yst-flex-row yst-items-center yst-justify-end yst-gap-2 yst-text-slate-800",children:(i==null?void 0:i.id)==="loading"?d.jsx(C.SkeletonLoader,{className:"yst-h-6 yst-w-24"}):d.jsxs(C.Button,{size:"small",variant:"tertiary",className:"yst-text-red-600 hover:yst-text-red-700",onClick:function(){i!=null&&i.id&&a(i.id)},disabled:(i==null?void 0:i.id)==="loading",children:[d.jsx(Cc,{})," Delete brand"]})})]}),d.jsx(C.Modal,{isOpen:g,onClose:function(){return A(!1)},position:"center",as:"div",className:ie({"yst-mx-auto yst-max-w-xl":I}),children:I?d.jsx(C.Modal.Panel,{children:T?d.jsxs(d.Fragment,{children:[d.jsx(C.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(C.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Start brand analysis now?"})}),d.jsxs(C.Modal.Container.Content,{className:"yst-mb-4 yst-space-y-3",children:[d.jsx("p",{children:"Activating this brand will immediately start a new analysis."}),d.jsx("p",{children:"This will use one of your weekly analyses included in your subscription."})]}),d.jsxs(C.Modal.Container.Footer,{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-2",children:[d.jsx(C.Button,{variant:"secondary",onClick:function(){return A(!1)},children:"Cancel"}),d.jsx(C.Button,{variant:"primary",onClick:function(){N(!0)},isLoading:x,children:"Yes, start analysis"})]})]}):d.jsxs(d.Fragment,{children:[d.jsx(C.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(C.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Automatic analysis enabled"})}),d.jsxs(C.Modal.Container.Content,{className:"yst-mb-4 yst-space-y-3",children:[d.jsx("p",{children:"You've turned on the weekly automatic analysis for this brand."}),d.jsxs("p",{children:["The next analysis will run on"," ",d.jsx("span",{className:"yst-font-medium",children:Ou(i==null?void 0:i.nextScheduledAnalysis)||"the next analysis cycle"}),"."]})]}),d.jsx(C.Modal.Container.Footer,{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-2",children:d.jsx(C.Button,{variant:"primary",onClick:function(){return A(!1)},children:"Got it"})})]})}):d.jsxs(C.Modal.Panel,{className:"yst-flex yst-max-w-96 yst-flex-col yst-gap-6",children:[d.jsx("div",{className:"yst-flex yst-justify-center",children:d.jsx("div",{className:"yst-flex yst-h-12 yst-w-12 yst-items-center yst-justify-center yst-rounded-full yst-bg-amber-200",children:d.jsx(kA,{className:"yst-h-6 yst-w-6 yst-text-amber-900"})})}),d.jsx("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(C.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(C.Modal.Title,{as:"h3",className:"yst-text-center yst-text-lg yst-font-medium",children:"You've reached your active brand limit"})}),d.jsx(C.Modal.Container.Content,{children:d.jsx("p",{className:"yst-text-center",children:"Each subscription lets you activate 1 brand. Add another subscription or deactivate an existing brand to activate this brand."})})]})}),d.jsx(C.Modal.Container.Footer,{children:d.jsxs("div",{className:"yst-flex yst-flex-col yst-justify-stretch yst-gap-2",children:[f&&d.jsxs(C.Button,{variant:"upsell",className:"yst-flex yst-gap-1",onClick:f,children:[d.jsx(Ym,{}),"Add a subscription"]}),d.jsx(C.Button,{variant:"tertiary",className:"",onClick:function(){return A(!1)},children:"Manage active brands"})]})})]})})]})},iy,sy,ay;function Gl(t,e){return dP(t)||cP(t,e)||uP(t,e)||lP()}function lP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
78
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uP(t,e){if(t){if(typeof t=="string")return oy(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oy(t,e):void 0}}function oy(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function cP(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function dP(t){if(Array.isArray(t))return t}function id(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var ly=ma(iy||(iy=id(["xl:yst-w-1/3"]))),uy=ma(sy||(sy=id(["xl:yst-w-2/3"]))),cy=ma(ay||(ay=id(["yst-flex yst-flex-col yst-gap-8 xl:yst-flex-row"]))),fP=function(){var e,n,r,i,s=F.useState(!1),a=Gl(s,2),o=a[0],l=a[1],u=F.useState(!1),c=Gl(u,2),f=c[0],p=c[1],h=F.useState(null),y=Gl(h,2),m=y[0],v=y[1],g=fa({query:{select:function(w){var x=w.data;return x}}}),A=g.data,E=oi({query:{select:function(w){var x=w.data;return x==null?void 0:x.brands},staleTime:5*1e3,refetchOnWindowFocus:!0,refetchInterval:30*1e3}}),j=E.data,S=j==null?void 0:j.find(function(b){return b.id===m});return d.jsxs("form",{children:[d.jsxs(C.Card,{children:[d.jsx(Yu,{title:"Settings",description:"Manage your brand settings and data. You can update analysis preferences or delete brands from your account."}),d.jsxs(C.Card.Content,{children:[d.jsxs(cy,{children:[d.jsxs(ly,{className:"yst-space-y-2",children:[d.jsx(C.Title,{size:"4",children:"Brands"}),d.jsxs("p",{children:["You have"," ",d.jsxs("b",{className:"yst-font-semibold yst-text-slate-800",children:[(e=A==null?void 0:A.activeSubscriptions)!==null&&e!==void 0?e:"—"," subscription(s)"]}),". This gives you up to"," ",d.jsxs("b",{className:"yst-font-semibold yst-text-slate-800",children:[(n=A==null?void 0:A.maxNumberOfActiveBrands)!==null&&n!==void 0?n:"—"," active brand(s)"]}),", for which we’ll automatically run a weekly analysis."]}),d.jsx("p",{children:"You can activate or deactivate brands anytime, or permanently delete a brand and all its data."})]}),d.jsxs(uy,{children:[j&&d.jsxs("p",{className:"yst-flex yst-w-full yst-max-w-2xl yst-flex-1 yst-flex-row yst-items-center yst-justify-start yst-gap-2 yst-border-b-[1px] yst-border-b-slate-200 yst-py-4 yst-font-medium yst-text-slate-800",children:["Active brands: ",(r=A==null?void 0:A.numberOfActiveBrands)!==null&&r!==void 0?r:"—"," of"," ",(i=A==null?void 0:A.maxNumberOfActiveBrands)!==null&&i!==void 0?i:"—"]}),j&&j.length===0&&d.jsxs("p",{className:"yst-mt-4 yst-text-slate-500",children:["No brands found. Please"," ",d.jsx(C.Link,{as:Cr,to:"/setup",children:"add a brand"})," ","to start analyzing."]}),(j!=null?j:[{id:"loading",name:"Loading..."}]).map(function(b,w,x){return d.jsx(oP,{brand:b,isLast:w===x.length-1,onDelete:function(N){v(N),l(!0)}},b.id)})]})]}),d.jsx(Gi,{}),d.jsxs(cy,{children:[d.jsxs(ly,{className:"yst-space-y-2",children:[d.jsx(C.Title,{size:"4",children:"Delete all data"}),d.jsx("p",{children:"Permanently delete all brands, analysis results, and query history from your account."})]}),d.jsxs(uy,{className:"yst-space-y-4",children:[d.jsxs(C.Button,{variant:"error",onClick:function(){p(!0)},disabled:(j==null?void 0:j.length)===0,children:[d.jsx(Cc,{})," Delete all data"]}),d.jsx("p",{children:d.jsxs("i",{children:[d.jsx("b",{children:"Note:"})," This will erase everything and cannot be reversed."]})})]})]})]})]}),d.jsx(Z9,{isOpen:o,onClose:function(){l(!1),v(null)},brandId:m||"",brandName:S==null?void 0:S.name}),d.jsx(Q9,{isOpen:f,onClose:function(){p(!1)}})]})};const hP=Object.freeze(Object.defineProperty({__proto__:null,default:fP},Symbol.toStringTag,{value:"Module"}));function Eo(t){"@babel/helpers - typeof";return Eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eo(t)}var sc=[{path:"/setup",id:1,title:"Brand & location info",description:"Enter a few basic details about your brand so we can generate relevant queries people might use in AI platforms like ChatGPT and Perplexity. This helps us analyze how visible your brand is in their responses."},{path:"/setup/:brandId/queries",id:2,title:"Queries",description:"Review the queries we've generated from your brand info. These are phrases people might type into AI platforms that could trigger your brand to appear."},{path:"/setup/:brandId/analysis",id:3,title:"Analysis",description:"We're checking how your brand shows up in AI. Your queries will now be tested in ChatGPT, Perplexity and Gemini. This process should take around 5 minutes."}],pP=function(e){return sc.find(function(n){return!!Ri(n.path,e)})||sc[0]};function yP(){var t=xt(),e=pP(t.pathname);return d.jsxs(C.Paper,{className:"yst-mx-auto yst-max-w-2xl",children:[d.jsx(rg,{title:d.jsx(Ug,{currentStep:e,steps:sc}),description:e.description}),d.jsx(C.Paper.Content,{children:d.jsx(_i,{})})]})}var Ug=function(e){var n=e.title,r=e.currentStep,i=e.steps;return d.jsxs("span",{className:"yst-inline-flex yst-flex-row yst-gap-4",children:[d.jsxs("span",{className:"yst-tracking-[.2em] yst-text-slate-400",children:[d.jsx("span",{className:"yst-text-slate-900",children:Eo(r)==="object"?r.id:r}),"/",Array.isArray(i)?i.length:i]}),d.jsx("span",{children:Eo(r)==="object"?r.title:n||"Step ".concat(r)})]})};const mP=Object.freeze(Object.defineProperty({__proto__:null,SetupPaperTitle:Ug,default:yP},Symbol.toStringTag,{value:"Module"}));var Hg=function(e){var n=e.onBack,r=e.variant,i=r===void 0?"ai":r,s=e.buttonText,a=e.onButtonClick,o=e.isButtonDisabled,l=o===void 0?!1:o,u=e.isLoading,c=u===void 0?!1:u;return d.jsx(Ec,{nestedInPaperContent:!0,children:d.jsxs("div",{className:ie({"yst-flex yst-flex-1 yst-flex-col yst-items-start yst-justify-between yst-gap-4 md:yst-flex-row md:yst-items-center md:yst-justify-between":n}),children:[n&&d.jsx(C.Button,{variant:"tertiary",onClick:n,className:"yst-no-underline",children:"← Back"}),d.jsx("div",{className:ie("yst-flex yst-flex-col yst-items-stretch yst-gap-4 md:yst-flex-row md:yst-items-center md:yst-justify-end"),children:d.jsxs(C.Button,{onClick:a,variant:i==="ai"?"primary":i,style:i==="ai"?{background:"linear-gradient(102deg, #A61E69 0%, #6366F1 100%)",color:"#fff"}:{},disabled:l,type:"submit",isLoading:c,children:[i==="ai"&&d.jsx(Vm,{}),s]})})]})})},gP=[{value:"US",label:"United States"},{value:"GB",label:"United Kingdom"},{value:"CA",label:"Canada"},{value:"AU",label:"Australia"},{value:"DE",label:"Germany"},{value:"FR",label:"France"},{value:"NL",label:"Netherlands"}],vP=[{value:"AF",label:"Afghanistan"},{value:"AX",label:"Åland Islands"},{value:"AL",label:"Albania"},{value:"DZ",label:"Algeria"},{value:"AS",label:"American Samoa"},{value:"AD",label:"Andorra"},{value:"AO",label:"Angola"},{value:"AI",label:"Anguilla"},{value:"AQ",label:"Antarctica"},{value:"AG",label:"Antigua and Barbuda"},{value:"AR",label:"Argentina"},{value:"AM",label:"Armenia"},{value:"AW",label:"Aruba"},{value:"AT",label:"Austria"},{value:"AZ",label:"Azerbaijan"},{value:"BS",label:"Bahamas"},{value:"BH",label:"Bahrain"},{value:"BD",label:"Bangladesh"},{value:"BB",label:"Barbados"},{value:"BY",label:"Belarus"},{value:"BE",label:"Belgium"},{value:"PW",label:"Belau"},{value:"BZ",label:"Belize"},{value:"BJ",label:"Benin"},{value:"BM",label:"Bermuda"},{value:"BT",label:"Bhutan"},{value:"BO",label:"Bolivia"},{value:"BQ",label:"Bonaire, Saint Eustatius and Saba"},{value:"BA",label:"Bosnia and Herzegovina"},{value:"BW",label:"Botswana"},{value:"BV",label:"Bouvet Island"},{value:"BR",label:"Brazil"},{value:"IO",label:"British Indian Ocean Territory"},{value:"BN",label:"Brunei"},{value:"BG",label:"Bulgaria"},{value:"BF",label:"Burkina Faso"},{value:"BI",label:"Burundi"},{value:"KH",label:"Cambodia"},{value:"CM",label:"Cameroon"},{value:"CV",label:"Cape Verde"},{value:"KY",label:"Cayman Islands"},{value:"CF",label:"Central African Republic"},{value:"TD",label:"Chad"},{value:"CL",label:"Chile"},{value:"CN",label:"China"},{value:"CX",label:"Christmas Island"},{value:"CC",label:"Cocos (Keeling) Islands"},{value:"CO",label:"Colombia"},{value:"KM",label:"Comoros"},{value:"CG",label:"Congo (Brazzaville)"},{value:"CD",label:"Congo (Kinshasa)"},{value:"CK",label:"Cook Islands"},{value:"CR",label:"Costa Rica"},{value:"HR",label:"Croatia"},{value:"CU",label:"Cuba"},{value:"CW",label:"Curaçao"},{value:"CY",label:"Cyprus"},{value:"CZ",label:"Czech Republic"},{value:"DK",label:"Denmark"},{value:"DJ",label:"Djibouti"},{value:"DM",label:"Dominica"},{value:"DO",label:"Dominican Republic"},{value:"EC",label:"Ecuador"},{value:"EG",label:"Egypt"},{value:"SV",label:"El Salvador"},{value:"GQ",label:"Equatorial Guinea"},{value:"ER",label:"Eritrea"},{value:"EE",label:"Estonia"},{value:"ET",label:"Ethiopia"},{value:"FK",label:"Falkland Islands"},{value:"FO",label:"Faroe Islands"},{value:"FJ",label:"Fiji"},{value:"FI",label:"Finland"},{value:"GF",label:"French Guiana"},{value:"PF",label:"French Polynesia"},{value:"TF",label:"French Southern Territories"},{value:"GA",label:"Gabon"},{value:"GM",label:"Gambia"},{value:"GE",label:"Georgia"},{value:"GH",label:"Ghana"},{value:"GI",label:"Gibraltar"},{value:"GR",label:"Greece"},{value:"GL",label:"Greenland"},{value:"GD",label:"Grenada"},{value:"GP",label:"Guadeloupe"},{value:"GU",label:"Guam"},{value:"GT",label:"Guatemala"},{value:"GG",label:"Guernsey"},{value:"GN",label:"Guinea"},{value:"GW",label:"Guinea-Bissau"},{value:"GY",label:"Guyana"},{value:"HT",label:"Haiti"},{value:"HM",label:"Heard Island and McDonald Islands"},{value:"HN",label:"Honduras"},{value:"HK",label:"Hong Kong"},{value:"HU",label:"Hungary"},{value:"IS",label:"Iceland"},{value:"IN",label:"India"},{value:"ID",label:"Indonesia"},{value:"IR",label:"Iran"},{value:"IQ",label:"Iraq"},{value:"IE",label:"Ireland"},{value:"IM",label:"Isle of Man"},{value:"IL",label:"Israel"},{value:"IT",label:"Italy"},{value:"CI",label:"Ivory Coast"},{value:"JM",label:"Jamaica"},{value:"JP",label:"Japan"},{value:"JE",label:"Jersey"},{value:"JO",label:"Jordan"},{value:"KZ",label:"Kazakhstan"},{value:"KE",label:"Kenya"},{value:"KI",label:"Kiribati"},{value:"XK",label:"Kosovo"},{value:"KW",label:"Kuwait"},{value:"KG",label:"Kyrgyzstan"},{value:"LA",label:"Laos"},{value:"LV",label:"Latvia"},{value:"LB",label:"Lebanon"},{value:"LS",label:"Lesotho"},{value:"LR",label:"Liberia"},{value:"LY",label:"Libya"},{value:"LI",label:"Liechtenstein"},{value:"LT",label:"Lithuania"},{value:"LU",label:"Luxembourg"},{value:"MO",label:"Macao"},{value:"MK",label:"North Macedonia"},{value:"MG",label:"Madagascar"},{value:"MW",label:"Malawi"},{value:"MY",label:"Malaysia"},{value:"MV",label:"Maldives"},{value:"ML",label:"Mali"},{value:"MT",label:"Malta"},{value:"MH",label:"Marshall Islands"},{value:"MQ",label:"Martinique"},{value:"MR",label:"Mauritania"},{value:"MU",label:"Mauritius"},{value:"YT",label:"Mayotte"},{value:"MX",label:"Mexico"},{value:"FM",label:"Micronesia"},{value:"MD",label:"Moldova"},{value:"MC",label:"Monaco"},{value:"MN",label:"Mongolia"},{value:"ME",label:"Montenegro"},{value:"MS",label:"Montserrat"},{value:"MA",label:"Morocco"},{value:"MZ",label:"Mozambique"},{value:"MM",label:"Myanmar"},{value:"NA",label:"Namibia"},{value:"NR",label:"Nauru"},{value:"NP",label:"Nepal"},{value:"NC",label:"New Caledonia"},{value:"NZ",label:"New Zealand"},{value:"NI",label:"Nicaragua"},{value:"NE",label:"Niger"},{value:"NG",label:"Nigeria"},{value:"NU",label:"Niue"},{value:"NF",label:"Norfolk Island"},{value:"MP",label:"Northern Mariana Islands"},{value:"KP",label:"North Korea"},{value:"NO",label:"Norway"},{value:"OM",label:"Oman"},{value:"PK",label:"Pakistan"},{value:"PS",label:"Palestinian Territory"},{value:"PA",label:"Panama"},{value:"PG",label:"Papua New Guinea"},{value:"PY",label:"Paraguay"},{value:"PE",label:"Peru"},{value:"PH",label:"Philippines"},{value:"PN",label:"Pitcairn"},{value:"PL",label:"Poland"},{value:"PT",label:"Portugal"},{value:"PR",label:"Puerto Rico"},{value:"QA",label:"Qatar"},{value:"RE",label:"Reunion"},{value:"RO",label:"Romania"},{value:"RU",label:"Russia"},{value:"RW",label:"Rwanda"},{value:"BL",label:"Saint Barthélemy"},{value:"SH",label:"Saint Helena"},{value:"KN",label:"Saint Kitts and Nevis"},{value:"LC",label:"Saint Lucia"},{value:"MF",label:"Saint Martin (French part)"},{value:"SX",label:"Saint Martin (Dutch part)"},{value:"PM",label:"Saint Pierre and Miquelon"},{value:"VC",label:"Saint Vincent and the Grenadines"},{value:"SM",label:"San Marino"},{value:"ST",label:"São Tomé and Príncipe"},{value:"SA",label:"Saudi Arabia"},{value:"SN",label:"Senegal"},{value:"RS",label:"Serbia"},{value:"SC",label:"Seychelles"},{value:"SL",label:"Sierra Leone"},{value:"SG",label:"Singapore"},{value:"SK",label:"Slovakia"},{value:"SI",label:"Slovenia"},{value:"SB",label:"Solomon Islands"},{value:"SO",label:"Somalia"},{value:"ZA",label:"South Africa"},{value:"GS",label:"South Georgia/Sandwich Islands"},{value:"KR",label:"South Korea"},{value:"SS",label:"South Sudan"},{value:"ES",label:"Spain"},{value:"LK",label:"Sri Lanka"},{value:"SD",label:"Sudan"},{value:"SR",label:"Suriname"},{value:"SJ",label:"Svalbard and Jan Mayen"},{value:"SZ",label:"Eswatini"},{value:"SE",label:"Sweden"},{value:"CH",label:"Switzerland"},{value:"SY",label:"Syria"},{value:"TW",label:"Taiwan"},{value:"TJ",label:"Tajikistan"},{value:"TZ",label:"Tanzania"},{value:"TH",label:"Thailand"},{value:"TL",label:"Timor-Leste"},{value:"TG",label:"Togo"},{value:"TK",label:"Tokelau"},{value:"TO",label:"Tonga"},{value:"TT",label:"Trinidad and Tobago"},{value:"TN",label:"Tunisia"},{value:"TR",label:"Turkey"},{value:"TM",label:"Turkmenistan"},{value:"TC",label:"Turks and Caicos Islands"},{value:"TV",label:"Tuvalu"},{value:"UG",label:"Uganda"},{value:"UA",label:"Ukraine"},{value:"AE",label:"United Arab Emirates"},{value:"UM",label:"United States (US) Minor Outlying Islands"},{value:"UY",label:"Uruguay"},{value:"UZ",label:"Uzbekistan"},{value:"VU",label:"Vanuatu"},{value:"VA",label:"Vatican"},{value:"VE",label:"Venezuela"},{value:"VN",label:"Vietnam"},{value:"VG",label:"Virgin Islands (British)"},{value:"VI",label:"Virgin Islands (US)"},{value:"WF",label:"Wallis and Futuna"},{value:"EH",label:"Western Sahara"},{value:"WS",label:"Samoa"},{value:"YE",label:"Yemen"},{value:"ZM",label:"Zambia"},{value:"ZW",label:"Zimbabwe"}],Yl=[].concat(gP,vP,[{value:"OTHER",label:"Other"}]),bP=[{value:"en",label:"English"},{value:"es",label:"Spanish"},{value:"fr",label:"French"},{value:"de",label:"German"},{value:"zh-Hans",label:"Chinese (Simplified)"},{value:"ja",label:"Japanese"}],xP=[{value:"af",label:"Afrikaans"},{value:"sq",label:"Albanian"},{value:"am",label:"Amharic"},{value:"ar",label:"Arabic"},{value:"hy",label:"Armenian"},{value:"az",label:"Azerbaijani"},{value:"be",label:"Belarusian"},{value:"bn",label:"Bengali"},{value:"bs",label:"Bosnian"},{value:"bg",label:"Bulgarian"},{value:"my",label:"Burmese"},{value:"yue",label:"Cantonese"},{value:"ca",label:"Catalan"},{value:"zh-Hant",label:"Chinese (Traditional)"},{value:"hr",label:"Croatian"},{value:"cs",label:"Czech"},{value:"da",label:"Danish"},{value:"nl",label:"Dutch"},{value:"et",label:"Estonian"},{value:"fil",label:"Filipino"},{value:"fi",label:"Finnish"},{value:"ka",label:"Georgian"},{value:"el",label:"Greek"},{value:"gu",label:"Gujarati"},{value:"ht",label:"Haitian Creole"},{value:"he",label:"Hebrew"},{value:"hi",label:"Hindi"},{value:"hu",label:"Hungarian"},{value:"is",label:"Icelandic"},{value:"id",label:"Indonesian"},{value:"it",label:"Italian"},{value:"kn",label:"Kannada"},{value:"kk",label:"Kazakh"},{value:"km",label:"Khmer"},{value:"ko",label:"Korean"},{value:"ku",label:"Kurdish (Kurmanji)"},{value:"ckb",label:"Kurdish (Sorani)"},{value:"ky",label:"Kyrgyz"},{value:"lv",label:"Latvian"},{value:"lt",label:"Lithuanian"},{value:"mk",label:"Macedonian"},{value:"ms",label:"Malay"},{value:"ml",label:"Malayalam"},{value:"mr",label:"Marathi"},{value:"mn",label:"Mongolian"},{value:"ne",label:"Nepali"},{value:"no",label:"Norwegian"},{value:"ps",label:"Pashto"},{value:"fa",label:"Persian"},{value:"pl",label:"Polish"},{value:"pt",label:"Portuguese"},{value:"pa",label:"Punjabi"},{value:"ro",label:"Romanian"},{value:"ru",label:"Russian"},{value:"sr",label:"Serbian"},{value:"si",label:"Sinhala"},{value:"sk",label:"Slovak"},{value:"sl",label:"Slovenian"},{value:"so",label:"Somali"},{value:"sw",label:"Swahili"},{value:"sv",label:"Swedish"},{value:"tg",label:"Tajik"},{value:"ta",label:"Tamil"},{value:"te",label:"Telugu"},{value:"th",label:"Thai"},{value:"tr",label:"Turkish"},{value:"uk",label:"Ukrainian"},{value:"ur",label:"Urdu"},{value:"uz",label:"Uzbek"},{value:"vi",label:"Vietnamese"},{value:"xh",label:"Xhosa"},{value:"zu",label:"Zulu"}],wP=[].concat(bP,xP);function Ar(t){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(t)}function dy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function fy(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dy(Object(n),!0).forEach(function(r){qg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dy(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function qg(t,e,n){return(e=AP(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function AP(t){var e=SP(t,"string");return Ar(e)=="symbol"?e:e+""}function SP(t,e){if(Ar(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ar(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ac(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return Wt(A,"_invoke",function(E,j,S){var b,w,x,N=0,_=S||[],I=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(P,D){return b=P,w=0,x=t,T.n=D,a}};function z(L,P){for(w=L,x=P,e=0;!I&&N&&!D&&e<_.length;e++){var D,B=_[e],V=T.p,W=B[2];L>3?(D=W===P)&&(x=B[(w=B[4])?5:(w=3,3)],B[4]=B[5]=t):B[0]<=V&&((D=L<2&&V<B[1])?(w=0,T.v=P,T.n=B[1]):V<W&&(D=L<3||B[0]>P||P>W)&&(B[4]=L,B[5]=P,T.n=W,w=0))}if(D||L>1)return a;throw I=!0,P}return function(L,P,D){if(N>1)throw TypeError("Generator is already running");for(I&&P===1&&z(P,D),w=P,x=D;(e=w<2?t:x)||!I;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(L="next"),e=b[L]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+L+"' method"),w=1);b=t}else if((e=(I=T.n<0)?x:E.call(j,T))!==a)break}catch(B){b=t,w=1,x=B}finally{N=1}}return{value:e,done:I}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(Wt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,Wt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,Wt(f,"constructor",u),Wt(u,"constructor",l),l.displayName="GeneratorFunction",Wt(u,i,"GeneratorFunction"),Wt(f),Wt(f,i,"Generator"),Wt(f,r,function(){return this}),Wt(f,"toString",function(){return"[object Generator]"}),(ac=function(){return{w:s,m:p}})()}function Wt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}Wt=function(a,o,l,u){function c(f,p){Wt(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},Wt(t,e,n,r)}function hy(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function CP(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){hy(s,r,i,a,o,"next",l)}function o(l){hy(s,r,i,a,o,"throw",l)}a(void 0)})}}function pi(t,e){return OP(t)||EP(t,e)||jP(t,e)||kP()}function kP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
79
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jP(t,e){if(t){if(typeof t=="string")return py(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?py(t,e):void 0}}function py(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function EP(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function OP(t){if(Array.isArray(t))return t}var PP=function(){var e=ht(),n=ha(),r=on(),i=F.useState(),s=pi(i,2),a=s[0],o=s[1],l=F.useState(!1),u=pi(l,2),c=u[0],f=u[1],p=F.useState({name:"",url:"",description:"",language:"en",isLocal:!1,country:void 0,region:""}),h=pi(p,2),y=h[0],m=h[1],v=F.useState(null),g=pi(v,2),A=g[0],E=g[1],j=F.useState(""),S=pi(j,2),b=S[0],w=S[1],x=F.useMemo(function(){var H;if(!y.country)return"";var O=Yl.find(function(G){return G.value===y.country});return(H=O==null?void 0:O.label)!==null&&H!==void 0?H:""},[y.country]),N=F.useMemo(function(){var H=b.trim().toLowerCase();return H?Yl.filter(function(O){var G=O.label.toLowerCase().includes(H),Y=O.value.toLowerCase().includes(H);return G||Y}):Yl},[b]),_=Ax({mutation:{onSuccess:function(){var H=CP(ac().m(function G(Y){var X;return ac().w(function(ne){for(;;)switch(ne.n){case 0:return X=Y.data.id,ne.n=1,Promise.all([r.invalidateQueries({queryKey:Uo()}),r.invalidateQueries({queryKey:jn()})]);case 1:X&&n.setBrandId(X),Y!=null&&Y.status&&Y.status>=200&&Y.status<300&&X&&(n.setBrandId(X),o(X));case 2:return ne.a(2)}},G)}));function O(G){return H.apply(this,arguments)}return O}(),onError:function(){f(!1)}}}),I=_.mutate,T=_.isPending,z=_.error,L=oi({query:{enabled:!!a,select:function(O){var G=O.data;return G==null?void 0:G.brands},refetchInterval:function(O){var G;return((O==null||(G=O.state)===null||G===void 0||(G=G.data)===null||G===void 0||(G=G.data)===null||G===void 0?void 0:G.brands)||[]).find(function(Y){return Y.id===a})?!1:2*1e3}}}),P=L.data;F.useEffect(function(){a&&P!==null&&P!==void 0&&P.find(function(H){return H.id===a})&&e("/setup/".concat(a,"/queries"),{replace:!0})},[a,P,e]);var D=function(O,G){m(function(Y){return fy(fy({},Y),{},qg({},O,G))})},B=function(O){w(O.target.value)},V=function(O){D("country",O!=null?O:void 0),w("")},W=function(O){if(O.preventDefault(),E(null),y.description.length>250){E("Your brand description is too long. Please keep it within the 250-character limit."),f(!1);return}f(!0);var G=y.url;G&&!/^https?:\/\//i.test(G)&&(G="https://".concat(G)),I({data:{name:y.name,url:G,description:y.description,focusLanguage:y.language,country:y.country,region:y.region,city:y.city}})};function k(H){return Ar(H)==="object"&&H!==null&&"response"in H&&Ar(H.response)==="object"&&H.response!==void 0&&"data"in H.response}var Q=k(z)?z.response.data.errors:void 0;return d.jsxs("form",{onSubmit:W,children:[d.jsxs("div",{className:"yst-space-y-6",children:[d.jsx(C.Title,{size:"2",children:"Brand info"}),!!z&&d.jsx(C.Alert,{variant:"error",title:"Error",isVisible:!!z,children:d.jsx("ul",{children:Q&&Ar(Q)==="object"?Object.entries(Q).flatMap(function(H){var O=pi(H,2),G=O[0],Y=O[1];return Array.isArray(Y)?Y.map(function(X,ne){return d.jsx("li",{children:X},"".concat(G,"-").concat(ne))}):null}):"There was an error creating the brand."})}),A&&d.jsx(C.Alert,{variant:"error",title:"Error",isVisible:!!A,children:d.jsx("ul",{children:d.jsx("li",{children:"Your brand description is too long. Please keep it within the 250-character limit."})})}),d.jsx(C.TextField,{id:"name",label:"Brand name",value:y.name,onChange:function(H){return D("name",H.target.value)},maxLength:255}),d.jsx(C.TextField,{id:"url",label:"Website URL (optional)",placeholder:"Example: https://yourwebsite.com",value:y.url,maxLength:247,onChange:function(H){return D("url",H.target.value)}}),d.jsxs("div",{id:"brand-description-textarea",children:[d.jsx(C.TextareaField,{id:"brand-description",label:"Brand description",value:y.description,onChange:function(H){var O=H.target.value;D("description",O)},...y.description.length>250?{validation:{variant:"error",message:"Your brand description is too long. Please keep it within the 250-character limit."}}:{},placeholder:"e.g. We design eco-friendly yoga mats for busy professionals who want sustainable gear that’s durable, stylish and kind to the planet."}),d.jsxs("div",{className:"yst-mt-1 yst-flex",children:[d.jsxs("div",{className:"yst-flex-grow yst-flex-col",children:[y.description.length>250&&d.jsx("div",{className:"yst-mb-2 yst-text-red-500",children:"Your brand description is too long. Please keep it within the 250-character limit."}),"Tell us about your brand: what you do, who it’s for and what makes it special."]}),d.jsxs("div",{className:ie("yst-ml-6 yst-mt-[-4px] yst-text-xs",{"yst-text-slate-500":y.description.length<=250,"yst-text-red-500":y.description.length>250}),children:[y.description.length,"/250"]})]})]}),d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(C.Select,{className:"yst-max-w-sm",id:"language-select",label:"Target language",value:y.language,onChange:function(H){return D("language",H)},options:wP.map(function(H){return{label:H.label,value:H.value}})}),d.jsx("p",{children:"The main language your brand uses to communicate or create content."})]})]}),d.jsx(Gi,{}),d.jsxs("div",{className:"yst-space-y-6",children:[d.jsx(C.Title,{size:"2",children:"Location info"}),d.jsx("p",{children:"Specify a location (optional) or leave it blank for a global analysis."}),d.jsx(C.Autocomplete,{className:"yst-max-w-sm",id:"country-select",label:"Target country (optional)",labelProps:{className:"yst-font-medium yst-text-slate-800"},value:y.country||null,nullable:!0,placeholder:"Search countries...",onQueryChange:B,onChange:V,selectedLabel:x,children:N.map(function(H){return d.jsx(C.Autocomplete.Option,{value:H.value,children:H.label},H.value)})}),y.country&&d.jsxs(d.Fragment,{children:[d.jsx(C.TextField,{id:"region",label:"Target region (optional)",value:y.region,onChange:function(H){return D("region",H.target.value)},description:`Enter a region to narrow down the analysis. For
80
- example: Southern France, Europe or the Pacific Northwest.`,maxLength:255}),d.jsx(C.TextField,{id:"city",label:"Target city (optional)",value:y.city,onChange:function(H){return D("city",H.target.value)},description:`Enter a city to narrow down the analysis. For
81
- example: Paris or Los Angeles.`,maxLength:255})]})]}),d.jsx(Hg,{onBack:function(){return e(-1)},buttonText:"Generate queries",isButtonDisabled:T||!!a||c,isLoading:T||!!a})]})};const TP=Object.freeze(Object.defineProperty({__proto__:null,default:PP},Symbol.toStringTag,{value:"Module"})),yy=t=>M.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},M.createElement("path",{d:"M3.33284 2V4.66667M1.99951 3.33333H4.66618M3.99951 11.3333V14M2.66618 12.6667H5.33284M8.66618 2L10.19 6.57143L13.9995 8L10.19 9.42857L8.66618 14L7.14237 9.42857L3.33284 8L7.14237 6.57143L8.66618 2Z",stroke:"url(#paint0_linear_3891_2757)",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),M.createElement("defs",null,M.createElement("linearGradient",{id:"paint0_linear_3891_2757",x1:1.99951,y1:2,x2:15.3308,y2:3.72773,gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#A61E69"}),M.createElement("stop",{offset:1,stopColor:"#6366F1"}))));function na(t){"@babel/helpers - typeof";return na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},na(t)}function IP(t){return NP(t)||LP(t)||Wg(t)||MP()}function MP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
82
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LP(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function NP(t){if(Array.isArray(t))return lc(t)}function my(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Zt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?my(Object(n),!0).forEach(function(r){RP(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):my(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function RP(t,e,n){return(e=_P(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _P(t){var e=DP(t,"string");return na(e)=="symbol"?e:e+""}function DP(t,e){if(na(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(na(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function oc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return Qt(A,"_invoke",function(E,j,S){var b,w,x,N=0,_=S||[],I=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(P,D){return b=P,w=0,x=t,T.n=D,a}};function z(L,P){for(w=L,x=P,e=0;!I&&N&&!D&&e<_.length;e++){var D,B=_[e],V=T.p,W=B[2];L>3?(D=W===P)&&(x=B[(w=B[4])?5:(w=3,3)],B[4]=B[5]=t):B[0]<=V&&((D=L<2&&V<B[1])?(w=0,T.v=P,T.n=B[1]):V<W&&(D=L<3||B[0]>P||P>W)&&(B[4]=L,B[5]=P,T.n=W,w=0))}if(D||L>1)return a;throw I=!0,P}return function(L,P,D){if(N>1)throw TypeError("Generator is already running");for(I&&P===1&&z(P,D),w=P,x=D;(e=w<2?t:x)||!I;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(L="next"),e=b[L]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+L+"' method"),w=1);b=t}else if((e=(I=T.n<0)?x:E.call(j,T))!==a)break}catch(B){b=t,w=1,x=B}finally{N=1}}return{value:e,done:I}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(Qt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,Qt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,Qt(f,"constructor",u),Qt(u,"constructor",l),l.displayName="GeneratorFunction",Qt(u,i,"GeneratorFunction"),Qt(f),Qt(f,i,"Generator"),Qt(f,r,function(){return this}),Qt(f,"toString",function(){return"[object Generator]"}),(oc=function(){return{w:s,m:p}})()}function Qt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}Qt=function(a,o,l,u){function c(f,p){Qt(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},Qt(t,e,n,r)}function gy(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function BP(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){gy(s,r,i,a,o,"next",l)}function o(l){gy(s,r,i,a,o,"throw",l)}a(void 0)})}}function _n(t,e){return UP(t)||zP(t,e)||Wg(t,e)||FP()}function FP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
83
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wg(t,e){if(t){if(typeof t=="string")return lc(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lc(t,e):void 0}}function lc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function zP(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function UP(t){if(Array.isArray(t))return t}var mi=5,js="Generating...",HP="Re-generating...",qP=100,WP=800,QP=["******************************","***********************","*******************************************************","***********************************************","***************************************************************","*******************************************************","*******************************************************","***********************************************"],GP=Array.from({length:mi},function(t,e){return{id:"query-".concat(e),text:js,isRegenerating:!0}}),YP=function(){return Array.from({length:mi},function(e,n){return{id:"query-".concat(n),text:"",isRegenerating:!1}})},VP=function(){var e,n,r,i=To(),s=i.brandId,a="/setup/".concat(s,"/analysis"),o=ht(),l=on(),u=jc(),c=F.useRef(!1),f=F.useState(GP),p=_n(f,2),h=p[0],y=p[1],m=F.useState(!1),v=_n(m,2),g=v[0],A=v[1],E=F.useState([]),j=_n(E,2),S=j[0],b=j[1],w=F.useState([]),x=_n(w,2),N=x[0],_=x[1],I=F.useState(!1),T=_n(I,2),z=T[0],L=T[1],P=F.useState(null),D=_n(P,2),B=D[0],V=D[1],W=F.useState(!1),k=_n(W,2),Q=k[0],H=k[1],O=F9({shouldBlock:!0}),G=O.showModal,Y=O.confirmLeave,X=O.cancelLeave,ne=F.useState(!1),oe=_n(ne,2),he=oe[0],ae=oe[1],je=F.useState(null),Z=_n(je,2),Le=Z[0],Nt=Z[1],at=_x(s||"",{query:{enabled:!!s}}),Ye=at.data,Xe=at.isRefetching,pn=at.error,nt=at.isError,Tn=at.refetch,tr=Bs(s||"",{query:{enabled:!!s}}),Ue=tr.data,pe=F.useCallback(function(ee){var te;if(!(Ue!=null&&(te=Ue.data)!==null&&te!==void 0&&te.name))return!1;var fe=Ue.data.name.toLowerCase().trim();return fe?ee.toLowerCase().includes(fe):!1},[Ue==null||(e=Ue.data)===null||e===void 0?void 0:e.name]),ye=F.useCallback(function(){return h.some(function(ee){return pe(ee.text)})},[h,pe]),Ae=function(){H(!1)},U=function(){H(!1),s&&Ee({brandId:s,data:{queries:h.map(function(te){return te.text})}})},J=function(){H(!1);var te=h.findIndex(function(fe){return pe(fe.text)});te!==-1&&setTimeout(function(){var fe=document.getElementById("query-text-".concat(te));fe&&(fe.focus(),fe.select())},qP)};function ue(ee){var te,fe,me,De="Moderation error: one or more queries flagged by OpenAI moderation endpoint.",ot=ee==null||(te=ee.response)===null||te===void 0||(te=te.data)===null||te===void 0?void 0:te.flagged_queries;return(ee==null||(fe=ee.response)===null||fe===void 0?void 0:fe.status)===422&&(ee==null||(me=ee.response)===null||me===void 0||(me=me.data)===null||me===void 0?void 0:me.error)===De&&Array.isArray(ot)?{flaggedQueries:ot}:null}var ge=Mx({mutation:{onSuccess:function(){var ee=BP(oc().m(function fe(me){return oc().w(function(De){for(;;)switch(De.n){case 0:if(V(null),!(me!=null&&me.status&&me.status>=200&&me.status<300)){De.n=2;break}return De.n=1,Promise.all([l.invalidateQueries({queryKey:zo(s||"")}),l.invalidateQueries({queryKey:jn()})]);case 1:o(a);case 2:return De.a(2)}},fe)}));function te(fe){return ee.apply(this,arguments)}return te}(),onError:function(te){var fe,me,De=ue(te);if(De){Nt({flaggedQueries:De.flaggedQueries});return}if((te==null||(fe=te.response)===null||fe===void 0||(fe=fe.data)===null||fe===void 0?void 0:fe.message)==="Cannot update queries for a brand that has existing analyses."){o(a,{replace:!0});return}var ot=(te==null||(me=te.response)===null||me===void 0||(me=me.data)===null||me===void 0?void 0:me.message)||(te==null?void 0:te.message)||"An unexpected error occurred.";V(ot)}}}),Ee=ge.mutate,rt=ge.isPending;F.useEffect(function(){s||o("/setup",{replace:!0})},[s,o,u]),F.useEffect(function(){var ee;!(Ue!=null&&(ee=Ue.data)!==null&&ee!==void 0&&ee.setupStatus)||c.current||(c.current=!0,Ue.data.setupStatus!=="pendingQuerySelection"&&(u("Queries cannot be changed for a brand with a pending analysis.",{variant:"warning"}),o(a,{replace:!0})))},[Ue==null||(n=Ue.data)===null||n===void 0?void 0:n.setupStatus,s,o,a,u]),F.useEffect(function(){var ee;if(Ye!=null&&(ee=Ye.data)!==null&&ee!==void 0&&ee.queries&&Array.isArray(Ye.data.queries)){var te=Ye.data.queries.slice(0,mi),fe=te.map(function(De,ot){return{id:"query-".concat(ot),text:De,isRegenerating:!1}});y(fe),_(Ye.data.queries.slice(mi))}else if(nt){var me=YP();y(me),_([])}},[Ye,nt]);var it=F.useCallback(function(ee){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;setTimeout(function(){y(function(fe){return fe.map(function(me,De){var ot=S.indexOf(De.toString());return ot>=0&&ee[ot]?Zt(Zt({},me),{},{text:ee[ot],isRegenerating:!1}):Zt(Zt({},me),{},{isRegenerating:!1})})}),b([]),L(!1),A(!1),te&&_(function(fe){var me=new Set(ee);return fe.filter(function(De){return!me.has(De)})})},WP)},[S]);F.useEffect(function(){if(z&&!Xe){var ee;if(Ye!=null&&(ee=Ye.data)!==null&&ee!==void 0&&ee.queries&&Array.isArray(Ye.data.queries)){var te=Ye.data.queries.slice(0,mi),fe=S.map(Number);y(function(me){return me.map(function(De,ot){var nr=fe.indexOf(ot);return Zt(Zt({},De),{},{text:nr>=0&&te[nr]?te[nr]:De.text,isRegenerating:!1})})}),b([]),L(!1),A(!1)}else nt&&(y(function(me){return me.map(function(De){return Zt(Zt({},De),{},{isRegenerating:!1})})}),b([]),L(!1),A(!1))}},[Ye,Xe,z,S,nt]);var yt=F.useCallback(function(ee,te){var fe=new Set(te);return N.filter(function(me){return!fe.has(me)}).slice(0,ee)},[N]),In=F.useMemo(function(){return Xe||h.length===0||h.some(function(ee){return ee.isRegenerating||ee.text===js&&!nt||ee.text.trim()===""})||g},[Xe,h,g,nt]),wt=Xe||h.some(function(ee){return ee.text===js})&&!nt,st=F.useCallback(function(ee){var te=ee.toString();b(function(fe){return fe.includes(te)?fe.filter(function(me){return me!==te}):[].concat(IP(fe),[te])})},[]),ln=F.useCallback(function(ee,te){y(function(fe){return fe.map(function(me,De){return De===ee?Zt(Zt({},me),{},{text:te}):me})})},[]),At=function(){A(!g),b([])},Ji=F.useCallback(function(){if(!(Xe||S.length===0)){y(function(De){return De.map(function(ot,nr){return Zt(Zt({},ot),{},{isRegenerating:S.includes(nr.toString())})})});var ee=h.map(function(De){return De.text}),te=S.length,fe=yt(te,ee),me=fe.length>=te;me?it(fe,!0):(L(!0),Tn())}},[Xe,S,Tn,h,yt,it]),tl=F.useCallback(function(ee){if(ee.preventDefault(),Nt(null),!!s){if(ye()){H(!0);return}Ee({brandId:s,data:{queries:h.map(function(te){return te.text})}})}},[s,h,Ee,ye]),Zi=function(){ae(!0)};return d.jsxs("div",{children:[Le&&d.jsxs(C.Alert,{className:"yst-mb-4",variant:"error",children:[d.jsx("strong",{children:"Moderation Error"}),d.jsxs("div",{className:"yst-mt-2",children:[d.jsx("span",{children:"Some of your queries include content that our AI moderation system can’t process."}),d.jsx("br",{}),d.jsx("span",{children:"These queries were flagged and won’t be saved:"}),d.jsx("ul",{className:"yst-ml-4 yst-list-disc",children:Le.flaggedQueries.map(function(ee,te){return d.jsx("li",{children:ee.query},te)})}),d.jsx("br",{}),d.jsx("span",{children:"Edit or replace them to continue."})]})]}),B&&d.jsx(C.Alert,{className:"yst-mb-4",variant:"error",children:B}),d.jsxs("form",{onSubmit:tl,children:[d.jsxs("div",{className:"yst-mb-8",children:[d.jsx(C.Title,{size:"2",className:"yst-mb-2",children:"Your queries"}),d.jsxs("div",{className:"yst-space-y-4",children:[d.jsx("p",{children:"You can edit your queries or regenerate new ones with AI."}),d.jsx("div",{className:ie("yst-flex yst-gap-2",g?"yst-justify-end":"yst-justify-start"),children:g?d.jsxs(d.Fragment,{children:[d.jsx(C.Button,{size:"small",variant:"secondary",onClick:At,children:"Done"}),d.jsxs(C.Button,{variant:"secondary",size:"small",onClick:Ji,className:"yst-gap-1",isLoading:Xe||z,disabled:z||Xe||S.length===0,children:[d.jsx(yy,{"aria-hidden":"true"}),"Regenerate selected queries"]})]}):d.jsxs(C.Button,{size:"small",variant:"secondary",onClick:At,disabled:wt||nt,children:[d.jsx(uw,{}),"Select queries to regenerate"]})})]})]}),d.jsx("div",{className:"yst-mb-8",children:h.length===0?QP.map(function(ee,te){return d.jsx("div",{className:ie("yst-mb-4 yst-cursor-pointer yst-rounded yst-border yst-border-slate-300 yst-p-3 yst-transition-colors","yst-bg-white"),children:d.jsx(C.SkeletonLoader,{children:ee||"Example placeholder query for demonstration purposes."})},"placeholder-query-".concat(te))}):h.slice(0,mi).map(function(ee,te){var fe=ee.isRegenerating?ee.text===js?js:HP:ee.text;return d.jsx("div",{className:ie("yst-mb-4"),children:d.jsxs("div",{className:"yst-flex yst-gap-2",children:[g&&d.jsx("div",{className:"yst-flex yst-items-center",children:d.jsx(C.Checkbox,{id:"query-regenerate-".concat(te),name:"query-regenerate-".concat(te),value:te.toString(),checked:S.includes(te.toString()),onChange:function(){return st(te)},disabled:Xe})}),d.jsx("div",{className:"yst-flex-1",children:d.jsx(C.TextField,{id:"query-text-".concat(te),label:"Query ".concat(te+1),type:"text",value:fe,onChange:function(me){ee.isRegenerating||ln(te,me.target.value)},placeholder:"Enter your query...",className:"yst-w-full",disabled:ee.isRegenerating,required:!0,minLength:3,maxLength:255,validation:pe(ee.text)?{variant:"warning",message:"For more accurate insights, avoid using your brand name in the query."}:void 0})})]})},ee.id)})}),d.jsx(Hg,{buttonText:"Run analysis (~ 5 minutes)",isButtonDisabled:In,isLoading:rt})]}),d.jsx(C.Modal,{isOpen:nt&&R1(pn)&&(pn==null||(r=pn.response)===null||r===void 0?void 0:r.status)===429&&!he,onClose:Zi,position:"center",as:"div",children:d.jsx(C.Modal.Panel,{children:d.jsxs("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:[d.jsx("div",{children:d.jsx("span",{className:"yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-red-100",children:d.jsx($a,{className:"yst-h-6 yst-w-6 yst-text-red-600"})})}),d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(C.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(C.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Query regeneration limit reached"})}),d.jsx(C.Modal.Container.Content,{className:"yst-mb-6 yst-space-y-3",children:d.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"You’ve used all your query regenerations for this brand analysis, but you can still edit your queries manually."})}),d.jsx(C.Modal.Container.Footer,{className:"yst-flex yst-justify-end yst-gap-3",children:d.jsx(C.Button,{variant:"primary",onClick:Zi,children:"Edit queries manually"})})]})]})})}),d.jsx(C.Modal,{isOpen:Q,onClose:Ae,position:"center",as:"div",children:d.jsx(C.Modal.Panel,{children:d.jsxs("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:[d.jsx("div",{children:d.jsx("span",{className:"yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-amber-100",children:d.jsx($a,{className:"yst-h-6 yst-w-6 yst-text-amber-600"})})}),d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(C.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(C.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Brand name detected in your queries"})}),d.jsxs(C.Modal.Container.Content,{className:"yst-mb-6 yst-space-y-3",children:[d.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"We found your brand name in one or more of your queries. Using your brand name in queries often show more mentions and more positive sentiment, which can skew your results."}),d.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"For more balanced results, remove your brand name or make the queries more general."})]}),d.jsxs(C.Modal.Container.Footer,{className:"yst-flex yst-justify-end yst-gap-3",children:[d.jsxs(C.Button,{onClick:U,variant:"secondary",disabled:rt,isLoading:rt,children:[d.jsx(yy,{}),"Run analysis anyway"]}),d.jsx(C.Button,{variant:"primary",onClick:J,children:"Review and edit queries"})]})]})]})})}),d.jsx(C.Modal,{isOpen:G,onClose:X,position:"center",as:"div",children:d.jsx(C.Modal.Panel,{children:d.jsxs("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:[d.jsx("div",{children:d.jsx("span",{className:"yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-amber-100",children:d.jsx($a,{className:"yst-h-6 yst-w-6 yst-text-amber-600"})})}),d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(C.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(C.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Leave this page?"})}),d.jsx(C.Modal.Container.Content,{className:"yst-mb-6",children:d.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"You have unsaved changes. Finish setting up your brand to save your queries. Leaving this page will discard your queries."})}),d.jsxs(C.Modal.Container.Footer,{className:"yst-flex yst-justify-end yst-gap-3",children:[d.jsx(C.Button,{onClick:X,variant:"secondary",children:"No, stay on page"}),d.jsx(C.Button,{variant:"primary",onClick:Y,children:"Yes, discard queries"})]})]})]})})})]})};const KP=Object.freeze(Object.defineProperty({__proto__:null,default:VP},Symbol.toStringTag,{value:"Module"}));var Qa={exports:{}},Ga={exports:{}},Te={};/** @license React v16.13.1
71
+ `}),n}function $p(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}function ey(t,e){const n=C9(t,e),r=n.one(t,void 0),i=h9(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
72
+ `},i),s}function P9(t,e){return t&&"run"in t?async function(n,r){const i=ey(n,{file:r,...e});await t.run(i,r)}:function(n,r){return ey(n,{file:r,...t||e})}}function ty(t){if(t)throw t}var Fl,ny;function T9(){if(ny)return Fl;ny=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):e.call(u)==="[object Array]"},s=function(u){if(!u||e.call(u)!=="[object Object]")return!1;var c=t.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&t.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var p;for(p in u);return typeof p=="undefined"||t.call(u,p)},a=function(u,c){n&&c.name==="__proto__"?n(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},o=function(u,c){if(c==="__proto__")if(t.call(u,c)){if(r)return r(u,c).value}else return;return u[c]};return Fl=function l(){var u,c,f,p,h,y,m=arguments[0],v=1,g=arguments.length,A=!1;for(typeof m=="boolean"&&(A=m,m=arguments[1]||{},v=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});v<g;++v)if(u=arguments[v],u!=null)for(c in u)f=o(m,c),p=o(u,c),m!==p&&(A&&p&&(s(p)||(h=i(p)))?(h?(h=!1,y=f&&i(f)?f:[]):y=f&&s(f)?f:{},a(m,{name:c,newValue:l(A,y,p)})):typeof p!="undefined"&&a(m,{name:c,newValue:p}));return m},Fl}var I9=T9();const zl=To(I9);function oc(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function M9(){const t=[],e={run:n,use:r};return e;function n(...i){let s=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...i);function o(l,...u){const c=t[++s];let f=-1;if(l){a(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?L9(c,o)(...u):a(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function L9(t,e){let n;return r;function r(...a){const o=t.length>a.length;let l;o&&a.push(i);try{l=t.apply(this,a)}catch(u){const c=u;if(o&&n)throw c;return i(c)}o||(l&&l.then&&typeof l.then=="function"?l.then(s,i):l instanceof Error?i(l):s(l))}function i(a,...o){n||(n=!0,e(a,...o))}function s(a){i(null,a)}}const Cn={basename:N9,dirname:R9,extname:_9,join:D9,sep:"/"};function N9(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');ba(t);let n=0,r=-1,i=t.length,s;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":t.slice(n,r)}if(e===t)return"";let a=-1,o=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(s){n=i+1;break}}else a<0&&(s=!0,a=i+1),o>-1&&(t.codePointAt(i)===e.codePointAt(o--)?o<0&&(r=i):(o=-1,r=a));return n===r?r=a:r<0&&(r=t.length),t.slice(n,r)}function R9(t){if(ba(t),t.length===0)return".";let e=-1,n=t.length,r;for(;--n;)if(t.codePointAt(n)===47){if(r){e=n;break}}else r||(r=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function _9(t){ba(t);let e=t.length,n=-1,r=0,i=-1,s=0,a;for(;e--;){const o=t.codePointAt(e);if(o===47){if(a){r=e+1;break}continue}n<0&&(a=!0,n=e+1),o===46?i<0?i=e:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":t.slice(i,n)}function D9(...t){let e=-1,n;for(;++e<t.length;)ba(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":B9(n)}function B9(t){ba(t);const e=t.codePointAt(0)===47;let n=F9(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function F9(t,e){let n="",r=0,i=-1,s=0,a=-1,o,l;for(;++a<=t.length;){if(a<t.length)o=t.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(i===a-1||s===1))if(i!==a-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,s=0;continue}}else if(n.length>0){n="",r=0,i=a,s=0;continue}}e&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+t.slice(i+1,a):n=t.slice(i+1,a),r=a-i-1;i=a,s=0}else o===46&&s>-1?s++:s=-1}return n}function ba(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const z9={cwd:U9};function U9(){return"/"}function lc(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function H9(t){if(typeof t=="string")t=new URL(t);else if(!lc(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return q9(t)}function q9(t){if(t.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const e=t.pathname;let n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){const r=e.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(e)}const Ul=["history","path","basename","stem","extname","dirname"];class sv{constructor(e){let n;e?lc(e)?n={path:e}:typeof e=="string"||W9(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":z9.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ul.length;){const s=Ul[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)Ul.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Cn.basename(this.path):void 0}set basename(e){ql(e,"basename"),Hl(e,"basename"),this.path=Cn.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Cn.dirname(this.path):void 0}set dirname(e){ry(this.basename,"dirname"),this.path=Cn.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Cn.extname(this.path):void 0}set extname(e){if(Hl(e,"extname"),ry(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Cn.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){lc(e)&&(e=H9(e)),ql(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Cn.basename(this.path,this.extname):void 0}set stem(e){ql(e,"stem"),Hl(e,"stem"),this.path=Cn.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){const i=this.message(e,n,r);throw i.fatal=!0,i}info(e,n,r){const i=this.message(e,n,r);return i.fatal=void 0,i}message(e,n,r){const i=new ht(e,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function Hl(t,e){if(t&&t.includes(Cn.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Cn.sep+"`")}function ql(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function ry(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function W9(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const G9=function(t){const r=this.constructor.prototype,i=r[t],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s},Q9={}.hasOwnProperty;class ud extends G9{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=M9()}copy(){const e=new ud;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];e.use(...r)}return e.data(zl(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(Ql("data",this.frozen),this.namespace[e]=n,this):Q9.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Ql("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(e,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=Ga(e),r=this.parser||this.Parser;return Wl("parse",r),r(String(n),n)}process(e,n){const r=this;return this.freeze(),Wl("process",this.parser||this.Parser),Gl("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,a){const o=Ga(e),l=r.parse(o);r.run(l,o,function(c,f,p){if(c||!f||!p)return u(c);const h=f,y=r.stringify(h,p);K9(y)?p.value=y:p.result=y,u(c,p)});function u(c,f){c||!f?a(c):s?s(f):n(void 0,f)}}}processSync(e){let n=!1,r;return this.freeze(),Wl("processSync",this.parser||this.Parser),Gl("processSync",this.compiler||this.Compiler),this.process(e,i),sy("processSync","process",n),r;function i(s,a){n=!0,ty(s),r=a}}run(e,n,r){iy(e),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(a,o){const l=Ga(n);i.run(e,l,u);function u(c,f,p){const h=f||e;c?o(c):a?a(h):r(void 0,h,p)}}}runSync(e,n){let r=!1,i;return this.run(e,n,s),sy("runSync","run",r),i;function s(a,o){ty(a),i=o,r=!0}}stringify(e,n){this.freeze();const r=Ga(n),i=this.compiler||this.Compiler;return Gl("stringify",i),iy(e),i(e,r)}use(e,...n){const r=this.attachers,i=this.namespace;if(Ql("use",this.frozen),e!=null)if(typeof e=="function")l(e,n);else if(typeof e=="object")Array.isArray(e)?o(e):a(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function s(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else a(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function a(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(i.settings=zl(!0,i.settings,u.settings))}function o(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];s(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,p=-1;for(;++f<r.length;)if(r[f][0]===u){p=f;break}if(p===-1)r.push([u,...c]);else if(c.length>0){let[h,...y]=c;const m=r[p][1];oc(m)&&oc(h)&&(h=zl(!0,m,h)),r[p]=[u,h,...y]}}}}const Y9=new ud().freeze();function Wl(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Gl(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Ql(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function iy(t){if(!oc(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function sy(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Ga(t){return V9(t)?t:new sv(t)}function V9(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function K9(t){return typeof t=="string"||X9(t)}function X9(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const J9="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ay=[],oy={allowDangerousHtml:!0},Z9=/^(https?|ircs?|mailto|xmpp)$/i,$9=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function eP(t){const e=tP(t),n=nP(t);return rP(e.runSync(e.parse(n),n),t)}function tP(t){const e=t.rehypePlugins||ay,n=t.remarkPlugins||ay,r=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...oy}:oy;return Y9().use(N7).use(n).use(P9,r).use(e)}function nP(t){const e=t.children||"",n=new sv;return typeof e=="string"&&(n.value=e),n}function rP(t,e){const n=e.allowedElements,r=e.allowElement,i=e.components,s=e.disallowedElements,a=e.skipHtml,o=e.unwrapDisallowed,l=e.urlTransform||iP;for(const c of $9)Object.hasOwn(e,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+J9+c.id,void 0);return iv(t,u),h8(t,{Fragment:d.Fragment,components:i,ignoreInvalidStyle:!0,jsx:d.jsx,jsxs:d.jsxs,passKeys:!0,passNode:!0});function u(c,f,p){if(c.type==="raw"&&p&&typeof f=="number")return a?p.children.splice(f,1):p.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let h;for(h in _l)if(Object.hasOwn(_l,h)&&Object.hasOwn(c.properties,h)){const y=c.properties[h],m=_l[h];(m===null||m.includes(c.tagName))&&(c.properties[h]=l(String(y||""),h,c))}}if(c.type==="element"){let h=n?!n.includes(c.tagName):s?s.includes(c.tagName):!1;if(!h&&r&&typeof f=="number"&&(h=!r(c,f,p)),h&&p&&typeof f=="number")return o&&c.children?p.children.splice(f,1,...c.children):p.children.splice(f,1),f}}}function iP(t){const e=t.indexOf(":"),n=t.indexOf("?"),r=t.indexOf("#"),i=t.indexOf("/");return e===-1||i!==-1&&e>i||n!==-1&&e>n||r!==-1&&e>r||Z9.test(t.slice(0,e))?t:""}function Yl(t,e){return lP(t)||oP(t,e)||aP(t,e)||sP()}function sP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
73
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aP(t,e){if(t){if(typeof t=="string")return ly(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ly(t,e):void 0}}function ly(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function oP(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function lP(t){if(Array.isArray(t))return t}var uP=function(e){var n=e.queryResult,r=F.useState(null),i=Yl(r,2),s=i[0],a=i[1],o=F.useState(null),l=Yl(o,2),u=l[0],c=l[1],f=F.useState(null),p=Yl(f,2),h=p[0],y=p[1],m=F.useRef(null),v=n.response||"No response available",g=F.useMemo(function(){return n.mentionedBrands||[]},[n.mentionedBrands]),A=n.citations||[],E=n.sentiments||[],C=u!==null?u:s,S=F.useMemo(function(){if(C===null)return v;var x=g.find(function(N){return N.id===C});return x?v.replaceAll(x.name,"**".concat(x.name,"**")):v},[v,C,g]),b=function(N){c(u===N?null:N)};F.useEffect(function(){if(m.current&&C!==null){var x=m.current.scrollHeight;(h===null||x>h)&&y(x)}},[C,S,h]);var w=Array.from(new Map(g.map(function(x){return[x.id,x]})).values());return d.jsx(k.Card,{className:"yst-mb-4",children:d.jsx(k.Card.Content,{className:"yst-p-4",children:d.jsxs("details",{className:"yst-group",children:[d.jsxs("summary",{className:"yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden",children:[d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(k.Title,{size:"3",className:"yst-mb-2",children:n.query}),d.jsxs("div",{className:"yst-flex yst-gap-4 yst-text-sm yst-text-gray-600",children:[g.length>0&&d.jsxs("span",{children:[w.length," brand",w.length!==1?"s":""]}),A.length>0&&d.jsxs("span",{children:[A.length," citation",A.length!==1?"s":""]}),E.length>0&&d.jsxs("span",{children:[E.length," sentiment",E.length!==1?"s":""]})]})]}),d.jsx("div",{className:"yst-text-gray-500 group-open:yst-rotate-90 yst-transition-transform",children:"▶"})]}),d.jsxs("div",{className:"yst-mt-6 yst-flex yst-flex-col yst-gap-6",children:[d.jsxs("details",{className:"yst-border-t yst-pt-4",children:[d.jsxs("summary",{className:"yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2",children:[d.jsx("span",{children:"AI Response"}),d.jsx("span",{className:"yst-text-gray-500",children:"▶"})]}),d.jsx("div",{className:"yst-mt-2",children:d.jsx("div",{className:"yst-rounded-lg yst-border yst-border-gray-300 yst-bg-gray-50 yst-p-4",children:d.jsx("div",{ref:m,className:"yst-text-sm yst-text-gray-700 [&_p]:yst-mb-4 [&_ul]:yst-list-disc [&_ul]:yst-ml-6 [&_ul]:yst-mb-4 [&_ol]:yst-list-decimal [&_ol]:yst-ml-6 [&_ol]:yst-mb-4 [&_li]:yst-mb-1 [&_h1]:yst-text-xl [&_h1]:yst-font-bold [&_h1]:yst-mb-2 [&_h2]:yst-text-lg [&_h2]:yst-font-bold [&_h2]:yst-mb-2 [&_h3]:yst-font-bold [&_h3]:yst-mb-2 [&_code]:yst-bg-white [&_code]:yst-px-1 [&_code]:yst-rounded [&_pre]:yst-bg-white [&_pre]:yst-p-3 [&_pre]:yst-rounded [&_pre]:yst-mb-4 [&_pre]:yst-overflow-x-auto [&_p:last-child]:yst-mb-0 [&_ul:last-child]:yst-mb-0 [&_ol:last-child]:yst-mb-0 [&_strong]:yst-bg-yellow-200 [&_strong]:yst-rounded [&_strong]:yst-px-1",style:h!==null?{height:"".concat(h,"px")}:void 0,children:d.jsx(eP,{children:S})})})})]}),g.length>0&&d.jsxs("details",{className:"yst-border-t yst-pt-4",children:[d.jsxs("summary",{className:"yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2",children:[d.jsxs("span",{children:["Brands (",w.length,")"]}),d.jsx("span",{className:"yst-text-gray-500",children:"▶"})]}),d.jsxs("div",{className:"yst-mt-2 yst-space-y-4",children:[d.jsxs("div",{children:[d.jsx("p",{className:"yst-mb-2 yst-text-sm yst-font-medium",children:"Mentioned brands:"}),d.jsx("div",{className:"yst-flex yst-flex-wrap yst-gap-2",children:w.map(function(x){return d.jsx(k.Badge,{variant:x.isSelf?"info":"plain",className:"yst-cursor-pointer yst-transition-colors ".concat(C===x.id?"yst-ring-2 yst-ring-yellow-400":""),onMouseEnter:function(){return a(x.id)},onMouseLeave:function(){return a(null)},onClick:function(){return b(x.id)},children:x.name},x.id)})})]}),d.jsxs("div",{children:[d.jsx("p",{className:"yst-mb-2 yst-text-sm yst-font-medium",children:"Brand ranking:"}),d.jsx("ol",{className:"yst-list-decimal yst-list-inside yst-space-y-3",children:g.sort(function(x,N){return x.rank-N.rank}).map(function(x){return d.jsxs("li",{className:"yst-text-sm",children:[d.jsx(k.Badge,{variant:x.isSelf?"info":"plain",className:"yst-cursor-pointer yst-transition-colors ".concat(C===x.id?"yst-ring-2 yst-ring-yellow-400":""),onMouseEnter:function(){return a(x.id)},onMouseLeave:function(){return a(null)},onClick:function(){return b(x.id)},children:x.name}),d.jsxs("p",{className:"yst-ml-6 yst-mt-1 yst-text-sm yst-text-gray-600 yst-italic",children:['"',x.context,'"']})]},"".concat(x.id,"-").concat(x.rank))})})]})]})]}),A.length>0&&d.jsxs("details",{className:"yst-border-t yst-pt-4",children:[d.jsxs("summary",{className:"yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2",children:[d.jsxs("span",{children:["Citations (",A.length,")"]}),d.jsx("span",{className:"yst-text-gray-500",children:"▶"})]}),d.jsx("div",{className:"yst-mt-2",children:d.jsxs(k.Table,{children:[d.jsx(k.Table.Head,{children:d.jsxs(k.Table.Row,{children:[d.jsx(k.Table.Header,{children:"Rank"}),d.jsx(k.Table.Header,{children:"Domain"}),d.jsx(k.Table.Header,{children:"URL"}),d.jsx(k.Table.Header,{children:"Associated brands"})]})}),d.jsx(k.Table.Body,{children:A.sort(function(x,N){return x.rank-N.rank}).map(function(x,N){return d.jsxs(k.Table.Row,{children:[d.jsxs(k.Table.Cell,{children:["#",x.rank]}),d.jsx(k.Table.Cell,{children:x.rootDomain}),d.jsx(k.Table.Cell,{children:d.jsx(k.Link,{href:x.url,target:"_blank",rel:"noopener noreferrer",children:x.url})}),d.jsx(k.Table.Cell,{children:x.associatedBrands.length>0?d.jsx("div",{className:"yst-flex yst-flex-wrap yst-gap-1",children:x.associatedBrands.map(function(D){return d.jsx(k.Badge,{variant:D.isSelf?"info":"plain",className:"yst-cursor-pointer yst-transition-colors ".concat(C===D.id?"yst-ring-2 yst-ring-yellow-400":""),onMouseEnter:function(){return a(D.id)},onMouseLeave:function(){return a(null)},onClick:function(){return b(D.id)},children:D.name},D.id)})}):d.jsx("span",{className:"yst-text-gray-500",children:"None"})})]},"".concat(x.url,"-").concat(N))})})]})})]}),E.length>0&&d.jsxs("details",{className:"yst-border-t yst-pt-4",children:[d.jsxs("summary",{className:"yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2",children:[d.jsxs("span",{children:["Sentiment Analysis (",E.length,")"]}),d.jsx("span",{className:"yst-text-gray-500",children:"▶"})]}),d.jsx("div",{className:"yst-mt-2 yst-flex yst-flex-col yst-gap-4",children:E.map(function(x){return d.jsxs("div",{className:"yst-rounded-lg yst-border yst-border-gray-300 yst-p-4",children:[d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-3 yst-mb-3",children:[d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-2",children:[d.jsx("span",{className:"yst-text-sm yst-font-semibold",children:"Score:"}),d.jsx(k.Badge,{variant:x.score>.3?"success":x.score<-.3?"error":"plain",children:x.score.toFixed(2)})]}),d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-2",children:[d.jsx("span",{className:"yst-text-sm yst-font-semibold",children:"Confidence:"}),d.jsxs(k.Badge,{variant:"plain",children:[(x.confidence*100).toFixed(0),"%"]})]})]}),x.brands.length>0&&d.jsxs("div",{className:"yst-mb-3",children:[d.jsx("span",{className:"yst-text-sm yst-font-semibold yst-mb-1 yst-block",children:"Brands:"}),d.jsx("div",{className:"yst-flex yst-flex-wrap yst-gap-1",children:x.brands.map(function(N){return d.jsx(k.Badge,{variant:N.isSelf?"info":"plain",className:"yst-cursor-pointer yst-transition-colors ".concat(C===N.id?"yst-ring-2 yst-ring-yellow-400":""),onMouseEnter:function(){return a(N.id)},onMouseLeave:function(){return a(null)},onClick:function(){return b(N.id)},children:N.name},N.id)})})]}),x.keywords.length>0&&d.jsxs("div",{children:[d.jsx("span",{className:"yst-text-sm yst-font-semibold yst-mb-1 yst-block",children:"Keywords:"}),d.jsx("div",{className:"yst-flex yst-flex-wrap yst-gap-2",children:x.keywords.map(function(N,D){return d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-1 yst-rounded yst-bg-gray-100 yst-px-2 yst-py-1",children:[d.jsx("span",{className:"yst-text-sm",children:N.keyword}),d.jsx(k.Badge,{variant:N.isPositive?"success":N.isNegative?"error":"plain",children:N.sentiment.toFixed(2)})]},D)})})]})]},x.id)})})]}),n.rawResponse&&d.jsxs("details",{className:"yst-border-t yst-pt-4",children:[d.jsxs("summary",{className:"yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2",children:[d.jsx("span",{children:"Raw Response"}),d.jsx("span",{className:"yst-text-gray-500",children:"▶"})]}),d.jsx("div",{className:"yst-mt-2",children:d.jsx("pre",{className:"yst-rounded-lg yst-border yst-border-gray-300 yst-bg-gray-50 yst-p-4 yst-text-xs yst-overflow-x-auto yst-max-h-96 yst-overflow-y-auto",children:JSON.stringify(n.rawResponse,null,2)})})]})]})]})})})},cP=function(){var e=Tt(),n=e.brandId,r=e.analysisId,i=ft(),s=zs(n,{query:{enabled:!!n,select:function(y){var m=y.data;return m}}}),a=s.data,o=s.isLoading,l=Ho(n,r,{query:{enabled:!!n&&!!r,select:function(y){var m=y.data;return m==null?void 0:m.analysis}}}),u=l.data,c=l.isLoading,f=o||c,p=u&&u.status===An.completed;return f?d.jsx(Ji,{}):p?d.jsxs(k.Card,{children:[d.jsx(Zu,{title:"Scan details",children:d.jsx(k.Button,{variant:"secondary",onClick:function(){return i("/brands/".concat(n,"/analysis/").concat(r))},children:"Back to analysis results"})}),u.completedScans.map(function(h){return d.jsx(dP,{brandId:n,analysisId:r,scanId:h.id,provider:h.aiProvider?String(h.aiProvider):"Unknown",scanFinishedAt:h.finishedAt,brandName:a==null?void 0:a.name},h.id)})]}):d.jsxs(k.Card,{children:[d.jsx(Zu,{title:"Scan details"}),d.jsx(k.Card.Content,{children:d.jsx("p",{children:"No completed analysis found. Please run an analysis first."})})]})},dP=function(e){var n=e.brandId,r=e.analysisId,i=e.scanId,s=e.provider,a=e.scanFinishedAt,o=e.brandName,l=Nx(n,r,i,{query:{enabled:!!n&&!!r&&!!i,select:function(h){var y=h.data;return y}}}),u=l.data,c=l.isLoading;if(c)return d.jsx(Ji,{});var f=(u==null?void 0:u.queryResults)||[];return f.length===0?null:d.jsx(k.Card,{className:"yst-mb-4",children:d.jsxs(k.Card.Content,{children:[d.jsxs("p",{className:"yst-mb-8",children:[o," - Scan performed on:"," ",d.jsx(k.Badge,{children:a?Xn(new Date(a),"yyyy-MM-dd HH:mm:ss"):"In progress"})," ","- AI Platform:"," ",d.jsx(k.Badge,{className:"yst-bg-green-100 yst-text-green-800",children:s})]}),f.map(function(p){return d.jsx(uP,{queryResult:p},p.id)})]})},i)};const fP=Object.freeze(Object.defineProperty({__proto__:null,default:cP},Symbol.toStringTag,{value:"Module"}));var hP=function(){var e=Tt(),n=e.hostAppProps.basename,r=F.useCallback(function(a){if(!n||!a.startsWith(n))return a;var o=a.slice(n.length);return o||"/"},[n]),i=F.useCallback(function(a){if(!n)return a;var o=a.startsWith("/")?a:"/".concat(a);return"".concat(n).concat(o)},[n]),s=F.useCallback(function(a){return n?a.startsWith(n):a.startsWith("/")&&!a.startsWith("//")},[n]);return{basename:n||"",stripBasename:r,addBasename:i,isWithinBasename:s}};function Vl(t,e){return gP(t)||mP(t,e)||yP(t,e)||pP()}function pP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
74
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yP(t,e){if(t){if(typeof t=="string")return uy(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uy(t,e):void 0}}function uy(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function mP(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function gP(t){if(Array.isArray(t))return t}var vP=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.shouldBlock,r=n===void 0?!0:n,i=e.onConfirmLeave,s=e.onCancelLeave,a=ft(),o=hP(),l=o.basename,u=o.stripBasename,c=F.useState(!1),f=Vl(c,2),p=f[0],h=f[1],y=F.useState(null),m=Vl(y,2),v=m[0],g=m[1],A=F.useState(!1),E=Vl(A,2),C=E[0],S=E[1],b=F.useRef(!1);F.useEffect(function(){if(!(!r||C)){var M=function(z){var I=z.target,O=I.closest("a");if(O){var B=O.getAttribute("href");if(B&&B.startsWith("/")&&!B.startsWith("//")){var R=window.location.pathname,Y=u(B),Q=u(R);Y!==Q&&(z.preventDefault(),z.stopPropagation(),g(Y),h(!0))}}};return document.addEventListener("click",M,!0),function(){return document.removeEventListener("click",M,!0)}}},[r,u,C]),F.useEffect(function(){if(!(!r||C)){b.current=!1;var M=function(){if(!b.current){b.current=!0;return}g(-1),h(!0);var I=window.location.href;window.history.pushState({blockerActive:!0},"",I)};window.addEventListener("popstate",M);var T=setTimeout(function(){var z=window.location.href;window.history.pushState({blockerActive:!0},"",z),b.current=!0},50);return function(){var z;clearTimeout(T),window.removeEventListener("popstate",M),b.current&&(z=window.history.state)!==null&&z!==void 0&&z.blockerActive&&window.history.back()}}},[r,C]),F.useEffect(function(){if(r){var M=function(z){z.preventDefault(),z.returnValue=""};return window.addEventListener("beforeunload",M),function(){return window.removeEventListener("beforeunload",M)}}},[r]);var w=F.useCallback(function(M){if(typeof M=="number")a(M);else{var T=l&&M.startsWith(l)?u(M):M;a(T)}},[a,u,l]),x=F.useCallback(function(){v!==null&&(h(!1),S(!0),i==null||i(),setTimeout(function(){if(v===-1){var M;(M=window.history.state)!==null&&M!==void 0&&M.blockerActive?(window.history.back(),setTimeout(function(){window.history.back()},10)):window.history.back()}else w(v);g(null),setTimeout(function(){return S(!1)},100)},0))},[v,w,i]),N=F.useCallback(function(){h(!1),g(null),s==null||s()},[s]),D=F.useCallback(function(M){r?(g(M),h(!0)):w(M)},[r,w]);return{showModal:p,pendingNavigation:v,confirmLeave:x,cancelLeave:N,navigateAway:D}};function bP(t,e){return SP(t)||AP(t,e)||wP(t,e)||xP()}function xP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
75
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wP(t,e){if(t){if(typeof t=="string")return cy(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cy(t,e):void 0}}function cy(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function AP(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function SP(t){if(Array.isArray(t))return t}var CP=function(e){var n=e.isOpen,r=e.onClose,i=Kt(),s=Tc(),a=F.useState(""),o=bP(a,2),l=o[0],u=o[1],c=yw({mutation:{onSettled:function(){i.clear()},onSuccess:function(){r(),s("Successfully deleted all data.",{variant:"success"})},onError:function(){i.clear(),s("Failed to delete all data. Please try again later.",{variant:"error"})}}}),f=c.mutate,p=c.isPending;return F.useEffect(function(){n&&u("")},[n]),d.jsx(Yo,{isOpen:n,onClose:r,onConfirm:function(){f()},isLoading:p,disabled:l!=="DELETE ALL",title:"Delete all data?",description:d.jsxs(d.Fragment,{children:[d.jsx("p",{children:"This will permanently erase all brands, analysis results, and queries from your account."}),d.jsx("p",{children:"This action cannot be undone."}),d.jsx(k.TextField,{id:"delete-all-confirmation",label:"To confirm, please type DELETE ALL:",value:l,onChange:function(h){return u(h.target.value)}}),d.jsx("p",{children:d.jsx("em",{children:"This is to make sure you understand this action is permanent."})})]}),confirmText:"Yes, delete all data",cancelText:"No, go back"})};function uc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return Ut(A,"_invoke",function(E,C,S){var b,w,x,N=0,D=S||[],M=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(O,B){return b=O,w=0,x=t,T.n=B,a}};function z(I,O){for(w=I,x=O,e=0;!M&&N&&!B&&e<D.length;e++){var B,R=D[e],Y=T.p,Q=R[2];I>3?(B=Q===O)&&(x=R[(w=R[4])?5:(w=3,3)],R[4]=R[5]=t):R[0]<=Y&&((B=I<2&&Y<R[1])?(w=0,T.v=O,T.n=R[1]):Y<Q&&(B=I<3||R[0]>O||O>Q)&&(R[4]=I,R[5]=O,T.n=Q,w=0))}if(B||I>1)return a;throw M=!0,O}return function(I,O,B){if(N>1)throw TypeError("Generator is already running");for(M&&O===1&&z(O,B),w=O,x=B;(e=w<2?t:x)||!M;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(I="next"),e=b[I]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+I+"' method"),w=1);b=t}else if((e=(M=T.n<0)?x:E.call(C,T))!==a)break}catch(R){b=t,w=1,x=R}finally{N=1}}return{value:e,done:M}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(Ut(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,Ut(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,Ut(f,"constructor",u),Ut(u,"constructor",l),l.displayName="GeneratorFunction",Ut(u,i,"GeneratorFunction"),Ut(f),Ut(f,i,"Generator"),Ut(f,r,function(){return this}),Ut(f,"toString",function(){return"[object Generator]"}),(uc=function(){return{w:s,m:p}})()}function Ut(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}Ut=function(a,o,l,u){function c(f,p){Ut(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},Ut(t,e,n,r)}function dy(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function kP(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){dy(s,r,i,a,o,"next",l)}function o(l){dy(s,r,i,a,o,"throw",l)}a(void 0)})}}function jP(t,e){return TP(t)||PP(t,e)||OP(t,e)||EP()}function EP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
76
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OP(t,e){if(t){if(typeof t=="string")return fy(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fy(t,e):void 0}}function fy(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function PP(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function TP(t){if(Array.isArray(t))return t}var IP=function(e){var n=e.isOpen,r=e.brandId,i=e.onClose,s=e.brandName,a=Kt(),o=Tc(),l=F.useState(""),u=jP(l,2),c=u[0],f=u[1],p=tw({mutation:{onSuccess:function(){var m=kP(uc().m(function g(){return uc().w(function(A){for(;;)switch(A.n){case 0:return A.n=1,Promise.all([a.invalidateQueries({queryKey:Pn()}),a.invalidateQueries({queryKey:Wo()})]);case 1:o("Brand deleted successfully",{variant:"success"}),i();case 2:return A.a(2)}},g)}));function v(){return m.apply(this,arguments)}return v}(),onError:function(v){var g=v instanceof Error?v.message:"Please try again later.";o("Failed to delete brand. ".concat(g),{variant:"error"})}}}),h=p.mutate,y=p.isPending;return F.useEffect(function(){n&&f("")},[n]),d.jsx(Yo,{isOpen:n,onClose:i,onConfirm:function(){if(!s){console.error("Brand name is required for deletion confirmation");return}h({brandId:r})},isLoading:y,disabled:c.toLowerCase()!==(s==null?void 0:s.toLowerCase()),title:"Delete brand?",description:d.jsxs(d.Fragment,{children:[d.jsx("p",{children:"This will permanently delete all data associated with this brand, including past analyses and query history."}),d.jsx("p",{children:"This action cannot be undone."}),d.jsx(k.TextField,{id:"delete-modal-brand-name-confirmation",label:"To confirm, please type your brand name ".concat(s,":"),value:c,onChange:function(m){return f(m.target.value)}}),d.jsx("p",{children:d.jsx("em",{children:"This is to make sure you understand this action is permanent."})})]}),confirmText:"Yes, delete brand",cancelText:"No, go back"})};function na(t){"@babel/helpers - typeof";return na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},na(t)}function Es(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return Ht(A,"_invoke",function(E,C,S){var b,w,x,N=0,D=S||[],M=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(O,B){return b=O,w=0,x=t,T.n=B,a}};function z(I,O){for(w=I,x=O,e=0;!M&&N&&!B&&e<D.length;e++){var B,R=D[e],Y=T.p,Q=R[2];I>3?(B=Q===O)&&(x=R[(w=R[4])?5:(w=3,3)],R[4]=R[5]=t):R[0]<=Y&&((B=I<2&&Y<R[1])?(w=0,T.v=O,T.n=R[1]):Y<Q&&(B=I<3||R[0]>O||O>Q)&&(R[4]=I,R[5]=O,T.n=Q,w=0))}if(B||I>1)return a;throw M=!0,O}return function(I,O,B){if(N>1)throw TypeError("Generator is already running");for(M&&O===1&&z(O,B),w=O,x=B;(e=w<2?t:x)||!M;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(I="next"),e=b[I]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+I+"' method"),w=1);b=t}else if((e=(M=T.n<0)?x:E.call(C,T))!==a)break}catch(R){b=t,w=1,x=R}finally{N=1}}return{value:e,done:M}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(Ht(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,Ht(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,Ht(f,"constructor",u),Ht(u,"constructor",l),l.displayName="GeneratorFunction",Ht(u,i,"GeneratorFunction"),Ht(f),Ht(f,i,"Generator"),Ht(f,r,function(){return this}),Ht(f,"toString",function(){return"[object Generator]"}),(Es=function(){return{w:s,m:p}})()}function Ht(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}Ht=function(a,o,l,u){function c(f,p){Ht(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},Ht(t,e,n,r)}function hy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function or(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hy(Object(n),!0).forEach(function(r){MP(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hy(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function MP(t,e,n){return(e=LP(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function LP(t){var e=NP(t,"string");return na(e)=="symbol"?e:e+""}function NP(t,e){if(na(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(na(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function py(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function yy(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){py(s,r,i,a,o,"next",l)}function o(l){py(s,r,i,a,o,"throw",l)}a(void 0)})}}function RP(t,e){return FP(t)||BP(t,e)||DP(t,e)||_P()}function _P(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
77
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DP(t,e){if(t){if(typeof t=="string")return my(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?my(t,e):void 0}}function my(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function BP(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function FP(t){if(Array.isArray(t))return t}var zP=function(e){var n,r,i=e.brand,s=e.isLast,a=e.onDelete,o=i.id,l=Tt(),u=l.hostAppProps,c=l.analysisId,f=u.onAddSubscription,p=ft(),h=pa(),y=h.setBrandId,m=F.useState(!1),v=RP(m,2),g=v[0],A=v[1],E=Kt(),C=ha({query:{select:function(O){var B=O.data;return B},staleTime:5*1e3,refetchOnWindowFocus:!0,refetchInterval:30*1e3}}),S=C.data,b=n0({mutation:{onMutate:function(){var I=yy(Es().m(function B(R){var Y,Q,j;return Es().w(function(W){for(;;)switch(W.n){case 0:return Y=R.brandId,Q=R.data,W.n=1,E.cancelQueries({queryKey:Pn()});case 1:return j=E.getQueryData(Pn()),E.setQueryData(Pn(),function(q){var P,G;return q&&or(or({},q),{},{data:or(or({},q.data),{},{brands:((P=(G=q.data)===null||G===void 0?void 0:G.brands)!==null&&P!==void 0?P:[]).map(function(J){return J.id===Y?or(or({},J),{},{settings:or(or({},J.settings),{},{enableAutomaticAnalysis:Q.enableAutomaticAnalysis})}):J})})})}),W.a(2,{previous:j})}},B)}));function O(B){return I.apply(this,arguments)}return O}(),onSuccess:function(){if(i&&i.settings&&i.settings.enableAutomaticAnalysis===!1)return A(!1);A(!T)},onError:function(O,B,R){R!=null&&R.previous&&E.setQueryData(Pn(),R.previous)},onSettled:function(){var I=yy(Es().m(function B(){return Es().w(function(R){for(;;)switch(R.n){case 0:return R.n=1,Promise.all([E.invalidateQueries({queryKey:Pn()}),E.invalidateQueries({queryKey:Wo()}),E.invalidateQueries({queryKey:qo(o)}),E.invalidateQueries({queryKey:Kn(o,"latest")}),E.invalidateQueries({queryKey:fn(o,"latest")}),E.invalidateQueries({queryKey:Kn(o,c)}),E.invalidateQueries({queryKey:fn(o,c)})]);case 1:return R.a(2)}},B)}));function O(){return I.apply(this,arguments)}return O}()}}),w=b.mutate,x=b.isPending,N=function(O){w({brandId:o,data:{enableAutomaticAnalysis:O}})},D=function(O){if(O){if(!M)return A(!0);if(!T)return N(!0);A(!0)}else N(!1)},M=Number(S==null?void 0:S.maxNumberOfActiveBrands)-Number(S==null?void 0:S.numberOfActiveBrands)>0||!!(i!=null&&(n=i.settings)!==null&&n!==void 0&&n.enableAutomaticAnalysis),T=j0(i==null?void 0:i.firstNextAnalysisOpportunity),z=(i==null?void 0:i.setupStatus)==="pendingQuerySelection";return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:le("yst-flex yst-max-w-2xl yst-flex-1 yst-flex-row yst-items-center yst-justify-start yst-gap-4 yst-py-4 yst-text-slate-800",{"yst-border-b-[1px] yst-border-b-slate-200":!s}),children:[d.jsx(k.Toggle,{id:"toggle-brand-".concat(i==null?void 0:i.id),checked:i==null||(r=i.settings)===null||r===void 0?void 0:r.enableAutomaticAnalysis,screenReaderLabel:"Enable or disable automatic analysis for this brand",onChange:D,disabled:(i==null?void 0:i.id)==="loading"||x}),d.jsxs("div",{className:"yst-font-medium",children:[(i==null?void 0:i.id)==="loading"?d.jsx(k.SkeletonLoader,{className:"yst-h-6 yst-w-32"}):i==null?void 0:i.name,z&&d.jsx("div",{children:d.jsx(k.Link,{variant:"primary",onClick:function(){i.id?(y(i.id),p("/setup/".concat(i.id,"/queries"))):console.error("Brand ID is missing.")},children:"Finish setup"})}),(i==null?void 0:i.nextScheduledAnalysis)&&d.jsxs("div",{className:"yst-font-normal yst-italic yst-text-slate-500",children:["Next analysis:"," ",Mu(i.nextScheduledAnalysis)]})]}),d.jsx("div",{className:"yst-ml-auto yst-flex yst-flex-row yst-items-center yst-justify-end yst-gap-2 yst-text-slate-800",children:(i==null?void 0:i.id)==="loading"?d.jsx(k.SkeletonLoader,{className:"yst-h-6 yst-w-24"}):d.jsxs(k.Button,{size:"small",variant:"tertiary",className:"yst-text-red-600 hover:yst-text-red-700",onClick:function(){i!=null&&i.id&&a(i.id)},disabled:(i==null?void 0:i.id)==="loading",children:[d.jsx(Oc,{})," Delete brand"]})})]}),d.jsx(k.Modal,{isOpen:g,onClose:function(){return A(!1)},position:"center",as:"div",className:le({"yst-mx-auto yst-max-w-xl":M}),children:M?d.jsx(k.Modal.Panel,{children:T?d.jsxs(d.Fragment,{children:[d.jsx(k.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(k.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Start brand analysis now?"})}),d.jsxs(k.Modal.Container.Content,{className:"yst-mb-4 yst-space-y-3",children:[d.jsx("p",{children:"Activating this brand will immediately start a new analysis."}),d.jsx("p",{children:"This will use one of your weekly analyses included in your subscription."})]}),d.jsxs(k.Modal.Container.Footer,{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-2",children:[d.jsx(k.Button,{variant:"secondary",onClick:function(){return A(!1)},children:"Cancel"}),d.jsx(k.Button,{variant:"primary",onClick:function(){N(!0)},isLoading:x,children:"Yes, start analysis"})]})]}):d.jsxs(d.Fragment,{children:[d.jsx(k.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(k.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Automatic analysis enabled"})}),d.jsxs(k.Modal.Container.Content,{className:"yst-mb-4 yst-space-y-3",children:[d.jsx("p",{children:"You've turned on the weekly automatic analysis for this brand."}),d.jsxs("p",{children:["The next analysis will run on"," ",d.jsx("span",{className:"yst-font-medium",children:Mu(i==null?void 0:i.nextScheduledAnalysis)||"the next analysis cycle"}),"."]})]}),d.jsx(k.Modal.Container.Footer,{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-2",children:d.jsx(k.Button,{variant:"primary",onClick:function(){return A(!1)},children:"Got it"})})]})}):d.jsxs(k.Modal.Panel,{className:"yst-flex yst-max-w-96 yst-flex-col yst-gap-6",children:[d.jsx("div",{className:"yst-flex yst-justify-center",children:d.jsx("div",{className:"yst-flex yst-h-12 yst-w-12 yst-items-center yst-justify-center yst-rounded-full yst-bg-amber-200",children:d.jsx($A,{className:"yst-h-6 yst-w-6 yst-text-amber-900"})})}),d.jsx("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(k.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(k.Modal.Title,{as:"h3",className:"yst-text-center yst-text-lg yst-font-medium",children:"You've reached your active brand limit"})}),d.jsx(k.Modal.Container.Content,{children:d.jsx("p",{className:"yst-text-center",children:"Each subscription lets you activate 1 brand. Add another subscription or deactivate an existing brand to activate this brand."})})]})}),d.jsx(k.Modal.Container.Footer,{children:d.jsxs("div",{className:"yst-flex yst-flex-col yst-justify-stretch yst-gap-2",children:[f&&d.jsxs(k.Button,{variant:"upsell",className:"yst-flex yst-gap-1",onClick:f,children:[d.jsx(a0,{}),"Add a subscription"]}),d.jsx(k.Button,{variant:"tertiary",className:"",onClick:function(){return A(!1)},children:"Manage active brands"})]})})]})})]})},gy,vy,by;function Kl(t,e){return WP(t)||qP(t,e)||HP(t,e)||UP()}function UP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
78
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HP(t,e){if(t){if(typeof t=="string")return xy(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xy(t,e):void 0}}function xy(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function qP(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function WP(t){if(Array.isArray(t))return t}function cd(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var wy=Zi(gy||(gy=cd(["xl:yst-w-1/3"]))),Ay=Zi(vy||(vy=cd(["xl:yst-w-2/3"]))),Sy=Zi(by||(by=cd(["yst-flex yst-flex-col yst-gap-8 xl:yst-flex-row"]))),GP=function(){var e,n,r,i,s=F.useState(!1),a=Kl(s,2),o=a[0],l=a[1],u=F.useState(!1),c=Kl(u,2),f=c[0],p=c[1],h=F.useState(null),y=Kl(h,2),m=y[0],v=y[1],g=ha({query:{select:function(w){var x=w.data;return x}}}),A=g.data,E=li({query:{select:function(w){var x=w.data;return x==null?void 0:x.brands},staleTime:5*1e3,refetchOnWindowFocus:!0,refetchInterval:30*1e3}}),C=E.data,S=C==null?void 0:C.find(function(b){return b.id===m});return d.jsxs("form",{children:[d.jsxs(k.Card,{children:[d.jsx(Zu,{title:"Settings",description:"Manage your brand settings and data. You can update analysis preferences or delete brands from your account."}),d.jsxs(k.Card.Content,{children:[d.jsxs(Sy,{children:[d.jsxs(wy,{className:"yst-space-y-2",children:[d.jsx(k.Title,{size:"4",children:"Brands"}),d.jsxs("p",{children:["You have"," ",d.jsxs("b",{className:"yst-font-semibold yst-text-slate-800",children:[(e=A==null?void 0:A.activeSubscriptions)!==null&&e!==void 0?e:"—"," subscription(s)"]}),". This gives you up to"," ",d.jsxs("b",{className:"yst-font-semibold yst-text-slate-800",children:[(n=A==null?void 0:A.maxNumberOfActiveBrands)!==null&&n!==void 0?n:"—"," active brand(s)"]}),", for which we’ll automatically run a weekly analysis."]}),d.jsx("p",{children:"You can activate or deactivate brands anytime, or permanently delete a brand and all its data."})]}),d.jsxs(Ay,{children:[C&&d.jsxs("p",{className:"yst-flex yst-w-full yst-max-w-2xl yst-flex-1 yst-flex-row yst-items-center yst-justify-start yst-gap-2 yst-border-b-[1px] yst-border-b-slate-200 yst-py-4 yst-font-medium yst-text-slate-800",children:["Active brands: ",(r=A==null?void 0:A.numberOfActiveBrands)!==null&&r!==void 0?r:"—"," of"," ",(i=A==null?void 0:A.maxNumberOfActiveBrands)!==null&&i!==void 0?i:"—"]}),C&&C.length===0&&d.jsxs("p",{className:"yst-mt-4 yst-text-slate-500",children:["No brands found. Please"," ",d.jsx(k.Link,{as:jr,to:"/setup",children:"add a brand"})," ","to start analyzing."]}),(C!=null?C:[{id:"loading",name:"Loading..."}]).map(function(b,w,x){return d.jsx(zP,{brand:b,isLast:w===x.length-1,onDelete:function(N){v(N),l(!0)}},b.id)})]})]}),d.jsx(Xi,{}),d.jsxs(Sy,{children:[d.jsxs(wy,{className:"yst-space-y-2",children:[d.jsx(k.Title,{size:"4",children:"Delete all data"}),d.jsx("p",{children:"Permanently delete all brands, analysis results, and query history from your account."})]}),d.jsxs(Ay,{className:"yst-space-y-4",children:[d.jsxs(k.Button,{variant:"error",onClick:function(){p(!0)},disabled:(C==null?void 0:C.length)===0,children:[d.jsx(Oc,{})," Delete all data"]}),d.jsx("p",{children:d.jsxs("i",{children:[d.jsx("b",{children:"Note:"})," This will erase everything and cannot be reversed."]})})]})]})]})]}),d.jsx(IP,{isOpen:o,onClose:function(){l(!1),v(null)},brandId:m||"",brandName:S==null?void 0:S.name}),d.jsx(CP,{isOpen:f,onClose:function(){p(!1)}})]})};const QP=Object.freeze(Object.defineProperty({__proto__:null,default:GP},Symbol.toStringTag,{value:"Module"}));function Po(t){"@babel/helpers - typeof";return Po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Po(t)}var cc=[{path:"/setup",id:1,title:"Brand & location info",description:"Enter a few basic details about your brand so we can generate relevant queries people might use in AI platforms like ChatGPT and Perplexity. This helps us analyze how visible your brand is in their responses."},{path:"/setup/:brandId/queries",id:2,title:"Queries",description:"Review the queries we've generated from your brand info. These are phrases people might type into AI platforms that could trigger your brand to appear."},{path:"/setup/:brandId/analysis",id:3,title:"Analysis",description:"We're checking how your brand shows up in AI. Your queries will now be tested in ChatGPT, Perplexity and Gemini. This process should take around 5 minutes."}],YP=function(e){return cc.find(function(n){return!!Fi(n.path,e)})||cc[0]};function VP(){var t=vt(),e=YP(t.pathname);return d.jsxs(k.Paper,{className:"yst-mx-auto yst-max-w-2xl",children:[d.jsx(Ag,{title:d.jsx(av,{currentStep:e,steps:cc}),description:e.description}),d.jsx(k.Paper.Content,{children:d.jsx(zi,{})})]})}var av=function(e){var n=e.title,r=e.currentStep,i=e.steps;return d.jsxs("span",{className:"yst-inline-flex yst-flex-row yst-gap-4",children:[d.jsxs("span",{className:"yst-tracking-[.2em] yst-text-slate-400",children:[d.jsx("span",{className:"yst-text-slate-900",children:Po(r)==="object"?r.id:r}),"/",Array.isArray(i)?i.length:i]}),d.jsx("span",{children:Po(r)==="object"?r.title:n||"Step ".concat(r)})]})};const KP=Object.freeze(Object.defineProperty({__proto__:null,SetupPaperTitle:av,default:VP},Symbol.toStringTag,{value:"Module"}));var ov=function(e){var n=e.onBack,r=e.variant,i=r===void 0?"ai":r,s=e.buttonText,a=e.onButtonClick,o=e.isButtonDisabled,l=o===void 0?!1:o,u=e.isLoading,c=u===void 0?!1:u;return d.jsx(Mc,{nestedInPaperContent:!0,children:d.jsxs("div",{className:le({"yst-flex yst-flex-1 yst-flex-col yst-items-start yst-justify-between yst-gap-4 md:yst-flex-row md:yst-items-center md:yst-justify-between":n}),children:[n&&d.jsx(k.Button,{variant:"tertiary",onClick:n,className:"yst-no-underline",children:"← Back"}),d.jsx("div",{className:le("yst-flex yst-flex-col yst-items-stretch yst-gap-4 md:yst-flex-row md:yst-items-center md:yst-justify-end"),children:d.jsxs(k.Button,{onClick:a,variant:i==="ai"?"primary":i,style:i==="ai"?{background:"linear-gradient(102deg, #A61E69 0%, #6366F1 100%)",color:"#fff"}:{},disabled:l,type:"submit",isLoading:c,children:[i==="ai"&&d.jsx(o0,{}),s]})})]})})},XP=[{value:"US",label:"United States"},{value:"GB",label:"United Kingdom"},{value:"CA",label:"Canada"},{value:"AU",label:"Australia"},{value:"DE",label:"Germany"},{value:"FR",label:"France"},{value:"NL",label:"Netherlands"}],JP=[{value:"AF",label:"Afghanistan"},{value:"AX",label:"Åland Islands"},{value:"AL",label:"Albania"},{value:"DZ",label:"Algeria"},{value:"AS",label:"American Samoa"},{value:"AD",label:"Andorra"},{value:"AO",label:"Angola"},{value:"AI",label:"Anguilla"},{value:"AQ",label:"Antarctica"},{value:"AG",label:"Antigua and Barbuda"},{value:"AR",label:"Argentina"},{value:"AM",label:"Armenia"},{value:"AW",label:"Aruba"},{value:"AT",label:"Austria"},{value:"AZ",label:"Azerbaijan"},{value:"BS",label:"Bahamas"},{value:"BH",label:"Bahrain"},{value:"BD",label:"Bangladesh"},{value:"BB",label:"Barbados"},{value:"BY",label:"Belarus"},{value:"BE",label:"Belgium"},{value:"PW",label:"Belau"},{value:"BZ",label:"Belize"},{value:"BJ",label:"Benin"},{value:"BM",label:"Bermuda"},{value:"BT",label:"Bhutan"},{value:"BO",label:"Bolivia"},{value:"BQ",label:"Bonaire, Saint Eustatius and Saba"},{value:"BA",label:"Bosnia and Herzegovina"},{value:"BW",label:"Botswana"},{value:"BV",label:"Bouvet Island"},{value:"BR",label:"Brazil"},{value:"IO",label:"British Indian Ocean Territory"},{value:"BN",label:"Brunei"},{value:"BG",label:"Bulgaria"},{value:"BF",label:"Burkina Faso"},{value:"BI",label:"Burundi"},{value:"KH",label:"Cambodia"},{value:"CM",label:"Cameroon"},{value:"CV",label:"Cape Verde"},{value:"KY",label:"Cayman Islands"},{value:"CF",label:"Central African Republic"},{value:"TD",label:"Chad"},{value:"CL",label:"Chile"},{value:"CN",label:"China"},{value:"CX",label:"Christmas Island"},{value:"CC",label:"Cocos (Keeling) Islands"},{value:"CO",label:"Colombia"},{value:"KM",label:"Comoros"},{value:"CG",label:"Congo (Brazzaville)"},{value:"CD",label:"Congo (Kinshasa)"},{value:"CK",label:"Cook Islands"},{value:"CR",label:"Costa Rica"},{value:"HR",label:"Croatia"},{value:"CU",label:"Cuba"},{value:"CW",label:"Curaçao"},{value:"CY",label:"Cyprus"},{value:"CZ",label:"Czech Republic"},{value:"DK",label:"Denmark"},{value:"DJ",label:"Djibouti"},{value:"DM",label:"Dominica"},{value:"DO",label:"Dominican Republic"},{value:"EC",label:"Ecuador"},{value:"EG",label:"Egypt"},{value:"SV",label:"El Salvador"},{value:"GQ",label:"Equatorial Guinea"},{value:"ER",label:"Eritrea"},{value:"EE",label:"Estonia"},{value:"ET",label:"Ethiopia"},{value:"FK",label:"Falkland Islands"},{value:"FO",label:"Faroe Islands"},{value:"FJ",label:"Fiji"},{value:"FI",label:"Finland"},{value:"GF",label:"French Guiana"},{value:"PF",label:"French Polynesia"},{value:"TF",label:"French Southern Territories"},{value:"GA",label:"Gabon"},{value:"GM",label:"Gambia"},{value:"GE",label:"Georgia"},{value:"GH",label:"Ghana"},{value:"GI",label:"Gibraltar"},{value:"GR",label:"Greece"},{value:"GL",label:"Greenland"},{value:"GD",label:"Grenada"},{value:"GP",label:"Guadeloupe"},{value:"GU",label:"Guam"},{value:"GT",label:"Guatemala"},{value:"GG",label:"Guernsey"},{value:"GN",label:"Guinea"},{value:"GW",label:"Guinea-Bissau"},{value:"GY",label:"Guyana"},{value:"HT",label:"Haiti"},{value:"HM",label:"Heard Island and McDonald Islands"},{value:"HN",label:"Honduras"},{value:"HK",label:"Hong Kong"},{value:"HU",label:"Hungary"},{value:"IS",label:"Iceland"},{value:"IN",label:"India"},{value:"ID",label:"Indonesia"},{value:"IR",label:"Iran"},{value:"IQ",label:"Iraq"},{value:"IE",label:"Ireland"},{value:"IM",label:"Isle of Man"},{value:"IL",label:"Israel"},{value:"IT",label:"Italy"},{value:"CI",label:"Ivory Coast"},{value:"JM",label:"Jamaica"},{value:"JP",label:"Japan"},{value:"JE",label:"Jersey"},{value:"JO",label:"Jordan"},{value:"KZ",label:"Kazakhstan"},{value:"KE",label:"Kenya"},{value:"KI",label:"Kiribati"},{value:"XK",label:"Kosovo"},{value:"KW",label:"Kuwait"},{value:"KG",label:"Kyrgyzstan"},{value:"LA",label:"Laos"},{value:"LV",label:"Latvia"},{value:"LB",label:"Lebanon"},{value:"LS",label:"Lesotho"},{value:"LR",label:"Liberia"},{value:"LY",label:"Libya"},{value:"LI",label:"Liechtenstein"},{value:"LT",label:"Lithuania"},{value:"LU",label:"Luxembourg"},{value:"MO",label:"Macao"},{value:"MK",label:"North Macedonia"},{value:"MG",label:"Madagascar"},{value:"MW",label:"Malawi"},{value:"MY",label:"Malaysia"},{value:"MV",label:"Maldives"},{value:"ML",label:"Mali"},{value:"MT",label:"Malta"},{value:"MH",label:"Marshall Islands"},{value:"MQ",label:"Martinique"},{value:"MR",label:"Mauritania"},{value:"MU",label:"Mauritius"},{value:"YT",label:"Mayotte"},{value:"MX",label:"Mexico"},{value:"FM",label:"Micronesia"},{value:"MD",label:"Moldova"},{value:"MC",label:"Monaco"},{value:"MN",label:"Mongolia"},{value:"ME",label:"Montenegro"},{value:"MS",label:"Montserrat"},{value:"MA",label:"Morocco"},{value:"MZ",label:"Mozambique"},{value:"MM",label:"Myanmar"},{value:"NA",label:"Namibia"},{value:"NR",label:"Nauru"},{value:"NP",label:"Nepal"},{value:"NC",label:"New Caledonia"},{value:"NZ",label:"New Zealand"},{value:"NI",label:"Nicaragua"},{value:"NE",label:"Niger"},{value:"NG",label:"Nigeria"},{value:"NU",label:"Niue"},{value:"NF",label:"Norfolk Island"},{value:"MP",label:"Northern Mariana Islands"},{value:"KP",label:"North Korea"},{value:"NO",label:"Norway"},{value:"OM",label:"Oman"},{value:"PK",label:"Pakistan"},{value:"PS",label:"Palestinian Territory"},{value:"PA",label:"Panama"},{value:"PG",label:"Papua New Guinea"},{value:"PY",label:"Paraguay"},{value:"PE",label:"Peru"},{value:"PH",label:"Philippines"},{value:"PN",label:"Pitcairn"},{value:"PL",label:"Poland"},{value:"PT",label:"Portugal"},{value:"PR",label:"Puerto Rico"},{value:"QA",label:"Qatar"},{value:"RE",label:"Reunion"},{value:"RO",label:"Romania"},{value:"RU",label:"Russia"},{value:"RW",label:"Rwanda"},{value:"BL",label:"Saint Barthélemy"},{value:"SH",label:"Saint Helena"},{value:"KN",label:"Saint Kitts and Nevis"},{value:"LC",label:"Saint Lucia"},{value:"MF",label:"Saint Martin (French part)"},{value:"SX",label:"Saint Martin (Dutch part)"},{value:"PM",label:"Saint Pierre and Miquelon"},{value:"VC",label:"Saint Vincent and the Grenadines"},{value:"SM",label:"San Marino"},{value:"ST",label:"São Tomé and Príncipe"},{value:"SA",label:"Saudi Arabia"},{value:"SN",label:"Senegal"},{value:"RS",label:"Serbia"},{value:"SC",label:"Seychelles"},{value:"SL",label:"Sierra Leone"},{value:"SG",label:"Singapore"},{value:"SK",label:"Slovakia"},{value:"SI",label:"Slovenia"},{value:"SB",label:"Solomon Islands"},{value:"SO",label:"Somalia"},{value:"ZA",label:"South Africa"},{value:"GS",label:"South Georgia/Sandwich Islands"},{value:"KR",label:"South Korea"},{value:"SS",label:"South Sudan"},{value:"ES",label:"Spain"},{value:"LK",label:"Sri Lanka"},{value:"SD",label:"Sudan"},{value:"SR",label:"Suriname"},{value:"SJ",label:"Svalbard and Jan Mayen"},{value:"SZ",label:"Eswatini"},{value:"SE",label:"Sweden"},{value:"CH",label:"Switzerland"},{value:"SY",label:"Syria"},{value:"TW",label:"Taiwan"},{value:"TJ",label:"Tajikistan"},{value:"TZ",label:"Tanzania"},{value:"TH",label:"Thailand"},{value:"TL",label:"Timor-Leste"},{value:"TG",label:"Togo"},{value:"TK",label:"Tokelau"},{value:"TO",label:"Tonga"},{value:"TT",label:"Trinidad and Tobago"},{value:"TN",label:"Tunisia"},{value:"TR",label:"Turkey"},{value:"TM",label:"Turkmenistan"},{value:"TC",label:"Turks and Caicos Islands"},{value:"TV",label:"Tuvalu"},{value:"UG",label:"Uganda"},{value:"UA",label:"Ukraine"},{value:"AE",label:"United Arab Emirates"},{value:"UM",label:"United States (US) Minor Outlying Islands"},{value:"UY",label:"Uruguay"},{value:"UZ",label:"Uzbekistan"},{value:"VU",label:"Vanuatu"},{value:"VA",label:"Vatican"},{value:"VE",label:"Venezuela"},{value:"VN",label:"Vietnam"},{value:"VG",label:"Virgin Islands (British)"},{value:"VI",label:"Virgin Islands (US)"},{value:"WF",label:"Wallis and Futuna"},{value:"EH",label:"Western Sahara"},{value:"WS",label:"Samoa"},{value:"YE",label:"Yemen"},{value:"ZM",label:"Zambia"},{value:"ZW",label:"Zimbabwe"}],Xl=[].concat(XP,JP,[{value:"OTHER",label:"Other"}]),ZP=[{value:"en",label:"English"},{value:"es",label:"Spanish"},{value:"fr",label:"French"},{value:"de",label:"German"},{value:"zh-Hans",label:"Chinese (Simplified)"},{value:"ja",label:"Japanese"}],$P=[{value:"af",label:"Afrikaans"},{value:"sq",label:"Albanian"},{value:"am",label:"Amharic"},{value:"ar",label:"Arabic"},{value:"hy",label:"Armenian"},{value:"az",label:"Azerbaijani"},{value:"be",label:"Belarusian"},{value:"bn",label:"Bengali"},{value:"bs",label:"Bosnian"},{value:"bg",label:"Bulgarian"},{value:"my",label:"Burmese"},{value:"yue",label:"Cantonese"},{value:"ca",label:"Catalan"},{value:"zh-Hant",label:"Chinese (Traditional)"},{value:"hr",label:"Croatian"},{value:"cs",label:"Czech"},{value:"da",label:"Danish"},{value:"nl",label:"Dutch"},{value:"et",label:"Estonian"},{value:"fil",label:"Filipino"},{value:"fi",label:"Finnish"},{value:"ka",label:"Georgian"},{value:"el",label:"Greek"},{value:"gu",label:"Gujarati"},{value:"ht",label:"Haitian Creole"},{value:"he",label:"Hebrew"},{value:"hi",label:"Hindi"},{value:"hu",label:"Hungarian"},{value:"is",label:"Icelandic"},{value:"id",label:"Indonesian"},{value:"it",label:"Italian"},{value:"kn",label:"Kannada"},{value:"kk",label:"Kazakh"},{value:"km",label:"Khmer"},{value:"ko",label:"Korean"},{value:"ku",label:"Kurdish (Kurmanji)"},{value:"ckb",label:"Kurdish (Sorani)"},{value:"ky",label:"Kyrgyz"},{value:"lv",label:"Latvian"},{value:"lt",label:"Lithuanian"},{value:"mk",label:"Macedonian"},{value:"ms",label:"Malay"},{value:"ml",label:"Malayalam"},{value:"mr",label:"Marathi"},{value:"mn",label:"Mongolian"},{value:"ne",label:"Nepali"},{value:"no",label:"Norwegian"},{value:"ps",label:"Pashto"},{value:"fa",label:"Persian"},{value:"pl",label:"Polish"},{value:"pt",label:"Portuguese"},{value:"pa",label:"Punjabi"},{value:"ro",label:"Romanian"},{value:"ru",label:"Russian"},{value:"sr",label:"Serbian"},{value:"si",label:"Sinhala"},{value:"sk",label:"Slovak"},{value:"sl",label:"Slovenian"},{value:"so",label:"Somali"},{value:"sw",label:"Swahili"},{value:"sv",label:"Swedish"},{value:"tg",label:"Tajik"},{value:"ta",label:"Tamil"},{value:"te",label:"Telugu"},{value:"th",label:"Thai"},{value:"tr",label:"Turkish"},{value:"uk",label:"Ukrainian"},{value:"ur",label:"Urdu"},{value:"uz",label:"Uzbek"},{value:"vi",label:"Vietnamese"},{value:"xh",label:"Xhosa"},{value:"zu",label:"Zulu"}],eT=[].concat(ZP,$P);function Cr(t){"@babel/helpers - typeof";return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cr(t)}function Cy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ky(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Cy(Object(n),!0).forEach(function(r){lv(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cy(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function lv(t,e,n){return(e=tT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tT(t){var e=nT(t,"string");return Cr(e)=="symbol"?e:e+""}function nT(t,e){if(Cr(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Cr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function dc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return qt(A,"_invoke",function(E,C,S){var b,w,x,N=0,D=S||[],M=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(O,B){return b=O,w=0,x=t,T.n=B,a}};function z(I,O){for(w=I,x=O,e=0;!M&&N&&!B&&e<D.length;e++){var B,R=D[e],Y=T.p,Q=R[2];I>3?(B=Q===O)&&(x=R[(w=R[4])?5:(w=3,3)],R[4]=R[5]=t):R[0]<=Y&&((B=I<2&&Y<R[1])?(w=0,T.v=O,T.n=R[1]):Y<Q&&(B=I<3||R[0]>O||O>Q)&&(R[4]=I,R[5]=O,T.n=Q,w=0))}if(B||I>1)return a;throw M=!0,O}return function(I,O,B){if(N>1)throw TypeError("Generator is already running");for(M&&O===1&&z(O,B),w=O,x=B;(e=w<2?t:x)||!M;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(I="next"),e=b[I]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+I+"' method"),w=1);b=t}else if((e=(M=T.n<0)?x:E.call(C,T))!==a)break}catch(R){b=t,w=1,x=R}finally{N=1}}return{value:e,done:M}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(qt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,qt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,qt(f,"constructor",u),qt(u,"constructor",l),l.displayName="GeneratorFunction",qt(u,i,"GeneratorFunction"),qt(f),qt(f,i,"Generator"),qt(f,r,function(){return this}),qt(f,"toString",function(){return"[object Generator]"}),(dc=function(){return{w:s,m:p}})()}function qt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}qt=function(a,o,l,u){function c(f,p){qt(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},qt(t,e,n,r)}function jy(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function rT(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){jy(s,r,i,a,o,"next",l)}function o(l){jy(s,r,i,a,o,"throw",l)}a(void 0)})}}function vi(t,e){return oT(t)||aT(t,e)||sT(t,e)||iT()}function iT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
79
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sT(t,e){if(t){if(typeof t=="string")return Ey(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ey(t,e):void 0}}function Ey(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function aT(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function oT(t){if(Array.isArray(t))return t}var lT=function(){var e=ft(),n=pa(),r=Kt(),i=F.useState(),s=vi(i,2),a=s[0],o=s[1],l=F.useState(!1),u=vi(l,2),c=u[0],f=u[1],p=F.useState({name:"",url:"",description:"",language:"en",isLocal:!1,country:void 0,region:""}),h=vi(p,2),y=h[0],m=h[1],v=F.useState(null),g=vi(v,2),A=g[0],E=g[1],C=F.useState(""),S=vi(C,2),b=S[0],w=S[1],x=F.useMemo(function(){var q;if(!y.country)return"";var P=Xl.find(function(G){return G.value===y.country});return(q=P==null?void 0:P.label)!==null&&q!==void 0?q:""},[y.country]),N=F.useMemo(function(){var q=b.trim().toLowerCase();return q?Xl.filter(function(P){var G=P.label.toLowerCase().includes(q),J=P.value.toLowerCase().includes(q);return G||J}):Xl},[b]),D=Xx({mutation:{onSuccess:function(){var q=rT(dc().m(function G(J){var K;return dc().w(function(Z){for(;;)switch(Z.n){case 0:return K=J.data.id,Z.n=1,Promise.all([r.invalidateQueries({queryKey:Wo()}),r.invalidateQueries({queryKey:Pn()})]);case 1:K&&n.setBrandId(K),J!=null&&J.status&&J.status>=200&&J.status<300&&K&&(n.setBrandId(K),o(K));case 2:return Z.a(2)}},G)}));function P(G){return q.apply(this,arguments)}return P}(),onError:function(){f(!1)}}}),M=D.mutate,T=D.isPending,z=D.error,I=li({query:{enabled:!!a,select:function(P){var G=P.data;return G==null?void 0:G.brands},refetchInterval:function(P){var G;return((P==null||(G=P.state)===null||G===void 0||(G=G.data)===null||G===void 0||(G=G.data)===null||G===void 0?void 0:G.brands)||[]).find(function(J){return J.id===a})?!1:2*1e3}}}),O=I.data;F.useEffect(function(){a&&O!==null&&O!==void 0&&O.find(function(q){return q.id===a})&&e("/setup/".concat(a,"/queries"),{replace:!0})},[a,O,e]);var B=function(P,G){m(function(J){return ky(ky({},J),{},lv({},P,G))})},R=function(P){w(P.target.value)},Y=function(P){B("country",P!=null?P:void 0),w("")},Q=function(P){if(P.preventDefault(),E(null),y.description.length>250){E("Your brand description is too long. Please keep it within the 250-character limit."),f(!1);return}f(!0);var G=y.url;G&&!/^https?:\/\//i.test(G)&&(G="https://".concat(G)),M({data:{name:y.name,url:G,description:y.description,focusLanguage:y.language,country:y.country,region:y.region,city:y.city}})};function j(q){return Cr(q)==="object"&&q!==null&&"response"in q&&Cr(q.response)==="object"&&q.response!==void 0&&"data"in q.response}var W=j(z)?z.response.data.errors:void 0;return d.jsxs("form",{onSubmit:Q,children:[d.jsxs("div",{className:"yst-space-y-6",children:[d.jsx(k.Title,{size:"2",children:"Brand info"}),!!z&&d.jsx(k.Alert,{variant:"error",title:"Error",isVisible:!!z,children:d.jsx("ul",{children:W&&Cr(W)==="object"?Object.entries(W).flatMap(function(q){var P=vi(q,2),G=P[0],J=P[1];return Array.isArray(J)?J.map(function(K,Z){return d.jsx("li",{children:K},"".concat(G,"-").concat(Z))}):null}):"There was an error creating the brand."})}),A&&d.jsx(k.Alert,{variant:"error",title:"Error",isVisible:!!A,children:d.jsx("ul",{children:d.jsx("li",{children:"Your brand description is too long. Please keep it within the 250-character limit."})})}),d.jsx(k.TextField,{id:"name",label:"Brand name",value:y.name,onChange:function(q){return B("name",q.target.value)},maxLength:255}),d.jsx(k.TextField,{id:"url",label:"Website URL (optional)",placeholder:"Example: https://yourwebsite.com",value:y.url,maxLength:247,onChange:function(q){return B("url",q.target.value)}}),d.jsxs("div",{id:"brand-description-textarea",children:[d.jsx(k.TextareaField,{id:"brand-description",label:"Brand description",value:y.description,onChange:function(q){var P=q.target.value;B("description",P)},...y.description.length>250?{validation:{variant:"error",message:"Your brand description is too long. Please keep it within the 250-character limit."}}:{},placeholder:"e.g. We design eco-friendly yoga mats for busy professionals who want sustainable gear that’s durable, stylish and kind to the planet."}),d.jsxs("div",{className:"yst-mt-1 yst-flex",children:[d.jsxs("div",{className:"yst-flex-grow yst-flex-col",children:[y.description.length>250&&d.jsx("div",{className:"yst-mb-2 yst-text-red-500",children:"Your brand description is too long. Please keep it within the 250-character limit."}),"Tell us about your brand: what you do, who it’s for and what makes it special."]}),d.jsxs("div",{className:le("yst-ml-6 yst-mt-[-4px] yst-text-xs",{"yst-text-slate-500":y.description.length<=250,"yst-text-red-500":y.description.length>250}),children:[y.description.length,"/250"]})]})]}),d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(k.Select,{className:"yst-max-w-sm",id:"language-select",label:"Target language",value:y.language,onChange:function(q){return B("language",q)},options:eT.map(function(q){return{label:q.label,value:q.value}})}),d.jsx("p",{children:"The main language your brand uses to communicate or create content."})]})]}),d.jsx(Xi,{}),d.jsxs("div",{className:"yst-space-y-6",children:[d.jsx(k.Title,{size:"2",children:"Location info"}),d.jsx("p",{children:"Specify a location (optional) or leave it blank for a global analysis."}),d.jsx(k.Autocomplete,{className:"yst-max-w-sm",id:"country-select",label:"Target country (optional)",labelProps:{className:"yst-font-medium yst-text-slate-800"},value:y.country||null,nullable:!0,placeholder:"Search countries...",onQueryChange:R,onChange:Y,selectedLabel:x,children:N.map(function(q){return d.jsx(k.Autocomplete.Option,{value:q.value,children:q.label},q.value)})}),y.country&&d.jsxs(d.Fragment,{children:[d.jsx(k.TextField,{id:"region",label:"Target region (optional)",value:y.region,onChange:function(q){return B("region",q.target.value)},description:`Enter a region to narrow down the analysis. For
80
+ example: Southern France, Europe or the Pacific Northwest.`,maxLength:255}),d.jsx(k.TextField,{id:"city",label:"Target city (optional)",value:y.city,onChange:function(q){return B("city",q.target.value)},description:`Enter a city to narrow down the analysis. For
81
+ example: Paris or Los Angeles.`,maxLength:255})]})]}),d.jsx(ov,{onBack:function(){return e(-1)},buttonText:"Generate queries",isButtonDisabled:T||!!a||c,isLoading:T||!!a})]})};const uT=Object.freeze(Object.defineProperty({__proto__:null,default:lT},Symbol.toStringTag,{value:"Module"})),Oy=t=>L.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},L.createElement("path",{d:"M3.33284 2V4.66667M1.99951 3.33333H4.66618M3.99951 11.3333V14M2.66618 12.6667H5.33284M8.66618 2L10.19 6.57143L13.9995 8L10.19 9.42857L8.66618 14L7.14237 9.42857L3.33284 8L7.14237 6.57143L8.66618 2Z",stroke:"url(#paint0_linear_3891_2757)",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),L.createElement("defs",null,L.createElement("linearGradient",{id:"paint0_linear_3891_2757",x1:1.99951,y1:2,x2:15.3308,y2:3.72773,gradientUnits:"userSpaceOnUse"},L.createElement("stop",{stopColor:"#A61E69"}),L.createElement("stop",{offset:1,stopColor:"#6366F1"}))));function ra(t){"@babel/helpers - typeof";return ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ra(t)}function cT(t){return hT(t)||fT(t)||uv(t)||dT()}function dT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
82
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fT(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function hT(t){if(Array.isArray(t))return hc(t)}function Py(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Zt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Py(Object(n),!0).forEach(function(r){pT(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Py(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function pT(t,e,n){return(e=yT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yT(t){var e=mT(t,"string");return ra(e)=="symbol"?e:e+""}function mT(t,e){if(ra(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ra(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function fc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,y,m,v){var g=y&&y.prototype instanceof o?y:o,A=Object.create(g.prototype);return Wt(A,"_invoke",function(E,C,S){var b,w,x,N=0,D=S||[],M=!1,T={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(O,B){return b=O,w=0,x=t,T.n=B,a}};function z(I,O){for(w=I,x=O,e=0;!M&&N&&!B&&e<D.length;e++){var B,R=D[e],Y=T.p,Q=R[2];I>3?(B=Q===O)&&(x=R[(w=R[4])?5:(w=3,3)],R[4]=R[5]=t):R[0]<=Y&&((B=I<2&&Y<R[1])?(w=0,T.v=O,T.n=R[1]):Y<Q&&(B=I<3||R[0]>O||O>Q)&&(R[4]=I,R[5]=O,T.n=Q,w=0))}if(B||I>1)return a;throw M=!0,O}return function(I,O,B){if(N>1)throw TypeError("Generator is already running");for(M&&O===1&&z(O,B),w=O,x=B;(e=w<2?t:x)||!M;){b||(w?w<3?(w>1&&(T.n=-1),z(w,x)):T.n=x:T.v=x);try{if(N=2,b){if(w||(I="next"),e=b[I]){if(!(e=e.call(b,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,w<2&&(w=0)}else w===1&&(e=b.return)&&e.call(b),w<2&&(x=TypeError("The iterator does not provide a '"+I+"' method"),w=1);b=t}else if((e=(M=T.n<0)?x:E.call(C,T))!==a)break}catch(R){b=t,w=1,x=R}finally{N=1}}return{value:e,done:M}}}(h,m,v),!0),A}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(Wt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function p(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,Wt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,Wt(f,"constructor",u),Wt(u,"constructor",l),l.displayName="GeneratorFunction",Wt(u,i,"GeneratorFunction"),Wt(f),Wt(f,i,"Generator"),Wt(f,r,function(){return this}),Wt(f,"toString",function(){return"[object Generator]"}),(fc=function(){return{w:s,m:p}})()}function Wt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}Wt=function(a,o,l,u){function c(f,p){Wt(a,f,function(h){return this._invoke(f,p,h)})}o?i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l:(c("next",0),c("throw",1),c("return",2))},Wt(t,e,n,r)}function Ty(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function gT(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){Ty(s,r,i,a,o,"next",l)}function o(l){Ty(s,r,i,a,o,"throw",l)}a(void 0)})}}function zn(t,e){return xT(t)||bT(t,e)||uv(t,e)||vT()}function vT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
83
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uv(t,e){if(t){if(typeof t=="string")return hc(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hc(t,e):void 0}}function hc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function bT(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function xT(t){if(Array.isArray(t))return t}var xi=5,Os="Generating...",wT="Re-generating...",AT=100,ST=800,CT=["******************************","***********************","*******************************************************","***********************************************","***************************************************************","*******************************************************","*******************************************************","***********************************************"],kT=Array.from({length:xi},function(t,e){return{id:"query-".concat(e),text:Os,isRegenerating:!0}}),jT=function(){return Array.from({length:xi},function(e,n){return{id:"query-".concat(n),text:"",isRegenerating:!1}})},ET=function(){var e,n,r,i=Mo(),s=i.brandId,a="/setup/".concat(s,"/analysis"),o=ft(),l=Kt(),u=Tc(),c=F.useRef(!1),f=F.useState(kT),p=zn(f,2),h=p[0],y=p[1],m=F.useState(!1),v=zn(m,2),g=v[0],A=v[1],E=F.useState([]),C=zn(E,2),S=C[0],b=C[1],w=F.useState([]),x=zn(w,2),N=x[0],D=x[1],M=F.useState(!1),T=zn(M,2),z=T[0],I=T[1],O=F.useState(null),B=zn(O,2),R=B[0],Y=B[1],Q=F.useState(!1),j=zn(Q,2),W=j[0],q=j[1],P=vP({shouldBlock:!0}),G=P.showModal,J=P.confirmLeave,K=P.cancelLeave,Z=F.useState(!1),oe=zn(Z,2),ue=oe[0],ie=oe[1],Oe=F.useState(null),$=zn(Oe,2),Ue=$[0],Mt=$[1],st=cw(s||"",{query:{enabled:!!s}}),Ye=st.data,et=st.isRefetching,yn=st.error,at=st.isError,Ln=st.refetch,Nn=zs(s||"",{query:{enabled:!!s}}),ze=Nn.data,pe=F.useCallback(function(ne){var te;if(!(ze!=null&&(te=ze.data)!==null&&te!==void 0&&te.name))return!1;var he=ze.data.name.toLowerCase().trim();return he?ne.toLowerCase().includes(he):!1},[ze==null||(e=ze.data)===null||e===void 0?void 0:e.name]),ye=F.useCallback(function(){return h.some(function(ne){return pe(ne.text)})},[h,pe]),me=function(){q(!1)},U=function(){q(!1),s&&Pe({brandId:s,data:{queries:h.map(function(te){return te.text})}})},X=function(){q(!1);var te=h.findIndex(function(he){return pe(he.text)});te!==-1&&setTimeout(function(){var he=document.getElementById("query-text-".concat(te));he&&(he.focus(),he.select())},AT)};function ce(ne){var te,he,ge,ke="Moderation error: one or more queries flagged by OpenAI moderation endpoint.",ot=ne==null||(te=ne.response)===null||te===void 0||(te=te.data)===null||te===void 0?void 0:te.flagged_queries;return(ne==null||(he=ne.response)===null||he===void 0?void 0:he.status)===422&&(ne==null||(ge=ne.response)===null||ge===void 0||(ge=ge.data)===null||ge===void 0?void 0:ge.error)===ke&&Array.isArray(ot)?{flaggedQueries:ot}:null}var ve=aw({mutation:{onSuccess:function(){var ne=gT(fc().m(function he(ge){return fc().w(function(ke){for(;;)switch(ke.n){case 0:if(Y(null),!(ge!=null&&ge.status&&ge.status>=200&&ge.status<300)){ke.n=2;break}return ke.n=1,Promise.all([l.invalidateQueries({queryKey:qo(s||"")}),l.invalidateQueries({queryKey:Pn()})]);case 1:o(a);case 2:return ke.a(2)}},he)}));function te(he){return ne.apply(this,arguments)}return te}(),onError:function(te){var he,ge,ke=ce(te);if(ke){Mt({flaggedQueries:ke.flaggedQueries});return}if((te==null||(he=te.response)===null||he===void 0||(he=he.data)===null||he===void 0?void 0:he.message)==="Cannot update queries for a brand that has existing analyses."){o(a,{replace:!0});return}var ot=(te==null||(ge=te.response)===null||ge===void 0||(ge=ge.data)===null||ge===void 0?void 0:ge.message)||(te==null?void 0:te.message)||"An unexpected error occurred.";Y(ot)}}}),Pe=ve.mutate,tt=ve.isPending;F.useEffect(function(){s||o("/setup",{replace:!0})},[s,o,u]),F.useEffect(function(){var ne;!(ze!=null&&(ne=ze.data)!==null&&ne!==void 0&&ne.setupStatus)||c.current||(c.current=!0,ze.data.setupStatus!=="pendingQuerySelection"&&(u("Queries cannot be changed for a brand with a pending analysis.",{variant:"warning"}),o(a,{replace:!0})))},[ze==null||(n=ze.data)===null||n===void 0?void 0:n.setupStatus,s,o,a,u]),F.useEffect(function(){var ne;if(Ye!=null&&(ne=Ye.data)!==null&&ne!==void 0&&ne.queries&&Array.isArray(Ye.data.queries)){var te=Ye.data.queries.slice(0,xi),he=te.map(function(ke,ot){return{id:"query-".concat(ot),text:ke,isRegenerating:!1}});y(he),D(Ye.data.queries.slice(xi))}else if(at){var ge=jT();y(ge),D([])}},[Ye,at]);var Xt=F.useCallback(function(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;setTimeout(function(){y(function(he){return he.map(function(ge,ke){var ot=S.indexOf(ke.toString());return ot>=0&&ne[ot]?Zt(Zt({},ge),{},{text:ne[ot],isRegenerating:!1}):Zt(Zt({},ge),{},{isRegenerating:!1})})}),b([]),I(!1),A(!1),te&&D(function(he){var ge=new Set(ne);return he.filter(function(ke){return!ge.has(ke)})})},ST)},[S]);F.useEffect(function(){if(z&&!et){var ne;if(Ye!=null&&(ne=Ye.data)!==null&&ne!==void 0&&ne.queries&&Array.isArray(Ye.data.queries)){var te=Ye.data.queries.slice(0,xi),he=S.map(Number);y(function(ge){return ge.map(function(ke,ot){var ir=he.indexOf(ot);return Zt(Zt({},ke),{},{text:ir>=0&&te[ir]?te[ir]:ke.text,isRegenerating:!1})})}),b([]),I(!1),A(!1)}else at&&(y(function(ge){return ge.map(function(ke){return Zt(Zt({},ke),{},{isRegenerating:!1})})}),b([]),I(!1),A(!1))}},[Ye,et,z,S,at]);var xt=F.useCallback(function(ne,te){var he=new Set(te);return N.filter(function(ge){return!he.has(ge)}).slice(0,ne)},[N]),Rn=F.useMemo(function(){return et||h.length===0||h.some(function(ne){return ne.isRegenerating||ne.text===Os&&!at||ne.text.trim()===""})||g},[et,h,g,at]),mn=et||h.some(function(ne){return ne.text===Os})&&!at,it=F.useCallback(function(ne){var te=ne.toString();b(function(he){return he.includes(te)?he.filter(function(ge){return ge!==te}):[].concat(cT(he),[te])})},[]),on=F.useCallback(function(ne,te){y(function(he){return he.map(function(ge,ke){return ke===ne?Zt(Zt({},ge),{},{text:te}):ge})})},[]),Xe=function(){A(!g),b([])},ci=F.useCallback(function(){if(!(et||S.length===0)){y(function(ke){return ke.map(function(ot,ir){return Zt(Zt({},ot),{},{isRegenerating:S.includes(ir.toString())})})});var ne=h.map(function(ke){return ke.text}),te=S.length,he=xt(te,ne),ge=he.length>=te;ge?Xt(he,!0):(I(!0),Ln())}},[et,S,Ln,h,xt,Xt]),di=F.useCallback(function(ne){if(ne.preventDefault(),Mt(null),!!s){if(ye()){q(!0);return}Pe({brandId:s,data:{queries:h.map(function(te){return te.text})}})}},[s,h,Pe,ye]),xa=function(){ie(!0)};return d.jsxs("div",{children:[Ue&&d.jsxs(k.Alert,{className:"yst-mb-4",variant:"error",children:[d.jsx("strong",{children:"Moderation Error"}),d.jsxs("div",{className:"yst-mt-2",children:[d.jsx("span",{children:"Some of your queries include content that our AI moderation system can’t process."}),d.jsx("br",{}),d.jsx("span",{children:"These queries were flagged and won’t be saved:"}),d.jsx("ul",{className:"yst-ml-4 yst-list-disc",children:Ue.flaggedQueries.map(function(ne,te){return d.jsx("li",{children:ne.query},te)})}),d.jsx("br",{}),d.jsx("span",{children:"Edit or replace them to continue."})]})]}),R&&d.jsx(k.Alert,{className:"yst-mb-4",variant:"error",children:R}),d.jsxs("form",{onSubmit:di,children:[d.jsxs("div",{className:"yst-mb-8",children:[d.jsx(k.Title,{size:"2",className:"yst-mb-2",children:"Your queries"}),d.jsxs("div",{className:"yst-space-y-4",children:[d.jsx("p",{children:"You can edit your queries or regenerate new ones with AI."}),d.jsx("div",{className:le("yst-flex yst-gap-2",g?"yst-justify-end":"yst-justify-start"),children:g?d.jsxs(d.Fragment,{children:[d.jsx(k.Button,{size:"small",variant:"secondary",onClick:Xe,children:"Done"}),d.jsxs(k.Button,{variant:"secondary",size:"small",onClick:ci,className:"yst-gap-1",isLoading:et||z,disabled:z||et||S.length===0,children:[d.jsx(Oy,{"aria-hidden":"true"}),"Regenerate selected queries"]})]}):d.jsxs(k.Button,{size:"small",variant:"secondary",onClick:Xe,disabled:mn||at,children:[d.jsx(Dw,{}),"Select queries to regenerate"]})})]})]}),d.jsx("div",{className:"yst-mb-8",children:h.length===0?CT.map(function(ne,te){return d.jsx("div",{className:le("yst-mb-4 yst-cursor-pointer yst-rounded yst-border yst-border-slate-300 yst-p-3 yst-transition-colors","yst-bg-white"),children:d.jsx(k.SkeletonLoader,{children:ne||"Example placeholder query for demonstration purposes."})},"placeholder-query-".concat(te))}):h.slice(0,xi).map(function(ne,te){var he=ne.isRegenerating?ne.text===Os?Os:wT:ne.text;return d.jsx("div",{className:le("yst-mb-4"),children:d.jsxs("div",{className:"yst-flex yst-gap-2",children:[g&&d.jsx("div",{className:"yst-flex yst-items-center",children:d.jsx(k.Checkbox,{id:"query-regenerate-".concat(te),name:"query-regenerate-".concat(te),value:te.toString(),checked:S.includes(te.toString()),onChange:function(){return it(te)},disabled:et})}),d.jsx("div",{className:"yst-flex-1",children:d.jsx(k.TextField,{id:"query-text-".concat(te),label:"Query ".concat(te+1),type:"text",value:he,onChange:function(ge){ne.isRegenerating||on(te,ge.target.value)},placeholder:"Enter your query...",className:"yst-w-full",disabled:ne.isRegenerating,required:!0,minLength:3,maxLength:255,validation:pe(ne.text)?{variant:"warning",message:"For more accurate insights, avoid using your brand name in the query."}:void 0})})]})},ne.id)})}),d.jsx(ov,{buttonText:"Run analysis (~ 5 minutes)",isButtonDisabled:Rn,isLoading:tt})]}),d.jsx(k.Modal,{isOpen:at&&ax(yn)&&(yn==null||(r=yn.response)===null||r===void 0?void 0:r.status)===429&&!ue,onClose:xa,position:"center",as:"div",children:d.jsx(k.Modal.Panel,{children:d.jsxs("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:[d.jsx("div",{children:d.jsx("span",{className:"yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-red-100",children:d.jsx(eo,{className:"yst-h-6 yst-w-6 yst-text-red-600"})})}),d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(k.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(k.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Query regeneration limit reached"})}),d.jsx(k.Modal.Container.Content,{className:"yst-mb-6 yst-space-y-3",children:d.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"You’ve used all your query regenerations for this brand analysis, but you can still edit your queries manually."})}),d.jsx(k.Modal.Container.Footer,{className:"yst-flex yst-justify-end yst-gap-3",children:d.jsx(k.Button,{variant:"primary",onClick:xa,children:"Edit queries manually"})})]})]})})}),d.jsx(k.Modal,{isOpen:W,onClose:me,position:"center",as:"div",children:d.jsx(k.Modal.Panel,{children:d.jsxs("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:[d.jsx("div",{children:d.jsx("span",{className:"yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-amber-100",children:d.jsx(eo,{className:"yst-h-6 yst-w-6 yst-text-amber-600"})})}),d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(k.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(k.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Brand name detected in your queries"})}),d.jsxs(k.Modal.Container.Content,{className:"yst-mb-6 yst-space-y-3",children:[d.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"We found your brand name in one or more of your queries. Using your brand name in queries often show more mentions and more positive sentiment, which can skew your results."}),d.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"For more balanced results, remove your brand name or make the queries more general."})]}),d.jsxs(k.Modal.Container.Footer,{className:"yst-flex yst-justify-end yst-gap-3",children:[d.jsxs(k.Button,{onClick:U,variant:"secondary",disabled:tt,isLoading:tt,children:[d.jsx(Oy,{}),"Run analysis anyway"]}),d.jsx(k.Button,{variant:"primary",onClick:X,children:"Review and edit queries"})]})]})]})})}),d.jsx(k.Modal,{isOpen:G,onClose:K,position:"center",as:"div",children:d.jsx(k.Modal.Panel,{children:d.jsxs("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:[d.jsx("div",{children:d.jsx("span",{className:"yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-amber-100",children:d.jsx(eo,{className:"yst-h-6 yst-w-6 yst-text-amber-600"})})}),d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(k.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(k.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Leave this page?"})}),d.jsx(k.Modal.Container.Content,{className:"yst-mb-6",children:d.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"You have unsaved changes. Finish setting up your brand to save your queries. Leaving this page will discard your queries."})}),d.jsxs(k.Modal.Container.Footer,{className:"yst-flex yst-justify-end yst-gap-3",children:[d.jsx(k.Button,{onClick:K,variant:"secondary",children:"No, stay on page"}),d.jsx(k.Button,{variant:"primary",onClick:J,children:"Yes, discard queries"})]})]})]})})})]})};const OT=Object.freeze(Object.defineProperty({__proto__:null,default:ET},Symbol.toStringTag,{value:"Module"}));var Qa={exports:{}},Ya={exports:{}},Ie={};/** @license React v16.13.1
84
84
  * react-is.production.min.js
85
85
  *
86
86
  * Copyright (c) Facebook, Inc. and its affiliates.
87
87
  *
88
88
  * This source code is licensed under the MIT license found in the
89
89
  * LICENSE file in the root directory of this source tree.
90
- */var vy;function XP(){if(vy)return Te;vy=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,o=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,A=t?Symbol.for("react.scope"):60119;function E(S){if(typeof S=="object"&&S!==null){var b=S.$$typeof;switch(b){case e:switch(S=S.type,S){case l:case u:case r:case s:case i:case f:return S;default:switch(S=S&&S.$$typeof,S){case o:case c:case y:case h:case a:return S;default:return b}}case n:return b}}}function j(S){return E(S)===u}return Te.AsyncMode=l,Te.ConcurrentMode=u,Te.ContextConsumer=o,Te.ContextProvider=a,Te.Element=e,Te.ForwardRef=c,Te.Fragment=r,Te.Lazy=y,Te.Memo=h,Te.Portal=n,Te.Profiler=s,Te.StrictMode=i,Te.Suspense=f,Te.isAsyncMode=function(S){return j(S)||E(S)===l},Te.isConcurrentMode=j,Te.isContextConsumer=function(S){return E(S)===o},Te.isContextProvider=function(S){return E(S)===a},Te.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Te.isForwardRef=function(S){return E(S)===c},Te.isFragment=function(S){return E(S)===r},Te.isLazy=function(S){return E(S)===y},Te.isMemo=function(S){return E(S)===h},Te.isPortal=function(S){return E(S)===n},Te.isProfiler=function(S){return E(S)===s},Te.isStrictMode=function(S){return E(S)===i},Te.isSuspense=function(S){return E(S)===f},Te.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===u||S===s||S===i||S===f||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===h||S.$$typeof===a||S.$$typeof===o||S.$$typeof===c||S.$$typeof===v||S.$$typeof===g||S.$$typeof===A||S.$$typeof===m)},Te.typeOf=E,Te}var Ie={};/** @license React v16.13.1
90
+ */var Iy;function PT(){if(Iy)return Ie;Iy=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,o=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,A=t?Symbol.for("react.scope"):60119;function E(S){if(typeof S=="object"&&S!==null){var b=S.$$typeof;switch(b){case e:switch(S=S.type,S){case l:case u:case r:case s:case i:case f:return S;default:switch(S=S&&S.$$typeof,S){case o:case c:case y:case h:case a:return S;default:return b}}case n:return b}}}function C(S){return E(S)===u}return Ie.AsyncMode=l,Ie.ConcurrentMode=u,Ie.ContextConsumer=o,Ie.ContextProvider=a,Ie.Element=e,Ie.ForwardRef=c,Ie.Fragment=r,Ie.Lazy=y,Ie.Memo=h,Ie.Portal=n,Ie.Profiler=s,Ie.StrictMode=i,Ie.Suspense=f,Ie.isAsyncMode=function(S){return C(S)||E(S)===l},Ie.isConcurrentMode=C,Ie.isContextConsumer=function(S){return E(S)===o},Ie.isContextProvider=function(S){return E(S)===a},Ie.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Ie.isForwardRef=function(S){return E(S)===c},Ie.isFragment=function(S){return E(S)===r},Ie.isLazy=function(S){return E(S)===y},Ie.isMemo=function(S){return E(S)===h},Ie.isPortal=function(S){return E(S)===n},Ie.isProfiler=function(S){return E(S)===s},Ie.isStrictMode=function(S){return E(S)===i},Ie.isSuspense=function(S){return E(S)===f},Ie.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===u||S===s||S===i||S===f||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===h||S.$$typeof===a||S.$$typeof===o||S.$$typeof===c||S.$$typeof===v||S.$$typeof===g||S.$$typeof===A||S.$$typeof===m)},Ie.typeOf=E,Ie}var Me={};/** @license React v16.13.1
91
91
  * react-is.development.js
92
92
  *
93
93
  * Copyright (c) Facebook, Inc. and its affiliates.
94
94
  *
95
95
  * This source code is licensed under the MIT license found in the
96
96
  * LICENSE file in the root directory of this source tree.
97
- */var by;function JP(){return by||(by=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,o=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,A=t?Symbol.for("react.scope"):60119;function E(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===u||Z===s||Z===i||Z===f||Z===p||typeof Z=="object"&&Z!==null&&(Z.$$typeof===y||Z.$$typeof===h||Z.$$typeof===a||Z.$$typeof===o||Z.$$typeof===c||Z.$$typeof===v||Z.$$typeof===g||Z.$$typeof===A||Z.$$typeof===m)}function j(Z){if(typeof Z=="object"&&Z!==null){var Le=Z.$$typeof;switch(Le){case e:var Nt=Z.type;switch(Nt){case l:case u:case r:case s:case i:case f:return Nt;default:var at=Nt&&Nt.$$typeof;switch(at){case o:case c:case y:case h:case a:return at;default:return Le}}case n:return Le}}}var S=l,b=u,w=o,x=a,N=e,_=c,I=r,T=y,z=h,L=n,P=s,D=i,B=f,V=!1;function W(Z){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),k(Z)||j(Z)===l}function k(Z){return j(Z)===u}function Q(Z){return j(Z)===o}function H(Z){return j(Z)===a}function O(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e}function G(Z){return j(Z)===c}function Y(Z){return j(Z)===r}function X(Z){return j(Z)===y}function ne(Z){return j(Z)===h}function oe(Z){return j(Z)===n}function he(Z){return j(Z)===s}function ae(Z){return j(Z)===i}function je(Z){return j(Z)===f}Ie.AsyncMode=S,Ie.ConcurrentMode=b,Ie.ContextConsumer=w,Ie.ContextProvider=x,Ie.Element=N,Ie.ForwardRef=_,Ie.Fragment=I,Ie.Lazy=T,Ie.Memo=z,Ie.Portal=L,Ie.Profiler=P,Ie.StrictMode=D,Ie.Suspense=B,Ie.isAsyncMode=W,Ie.isConcurrentMode=k,Ie.isContextConsumer=Q,Ie.isContextProvider=H,Ie.isElement=O,Ie.isForwardRef=G,Ie.isFragment=Y,Ie.isLazy=X,Ie.isMemo=ne,Ie.isPortal=oe,Ie.isProfiler=he,Ie.isStrictMode=ae,Ie.isSuspense=je,Ie.isValidElementType=E,Ie.typeOf=j}()),Ie}var xy;function Qg(){return xy||(xy=1,process.env.NODE_ENV==="production"?Ga.exports=XP():Ga.exports=JP()),Ga.exports}/*
97
+ */var My;function TT(){return My||(My=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,o=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,A=t?Symbol.for("react.scope"):60119;function E($){return typeof $=="string"||typeof $=="function"||$===r||$===u||$===s||$===i||$===f||$===p||typeof $=="object"&&$!==null&&($.$$typeof===y||$.$$typeof===h||$.$$typeof===a||$.$$typeof===o||$.$$typeof===c||$.$$typeof===v||$.$$typeof===g||$.$$typeof===A||$.$$typeof===m)}function C($){if(typeof $=="object"&&$!==null){var Ue=$.$$typeof;switch(Ue){case e:var Mt=$.type;switch(Mt){case l:case u:case r:case s:case i:case f:return Mt;default:var st=Mt&&Mt.$$typeof;switch(st){case o:case c:case y:case h:case a:return st;default:return Ue}}case n:return Ue}}}var S=l,b=u,w=o,x=a,N=e,D=c,M=r,T=y,z=h,I=n,O=s,B=i,R=f,Y=!1;function Q($){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j($)||C($)===l}function j($){return C($)===u}function W($){return C($)===o}function q($){return C($)===a}function P($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function G($){return C($)===c}function J($){return C($)===r}function K($){return C($)===y}function Z($){return C($)===h}function oe($){return C($)===n}function ue($){return C($)===s}function ie($){return C($)===i}function Oe($){return C($)===f}Me.AsyncMode=S,Me.ConcurrentMode=b,Me.ContextConsumer=w,Me.ContextProvider=x,Me.Element=N,Me.ForwardRef=D,Me.Fragment=M,Me.Lazy=T,Me.Memo=z,Me.Portal=I,Me.Profiler=O,Me.StrictMode=B,Me.Suspense=R,Me.isAsyncMode=Q,Me.isConcurrentMode=j,Me.isContextConsumer=W,Me.isContextProvider=q,Me.isElement=P,Me.isForwardRef=G,Me.isFragment=J,Me.isLazy=K,Me.isMemo=Z,Me.isPortal=oe,Me.isProfiler=ue,Me.isStrictMode=ie,Me.isSuspense=Oe,Me.isValidElementType=E,Me.typeOf=C}()),Me}var Ly;function cv(){return Ly||(Ly=1,process.env.NODE_ENV==="production"?Ya.exports=PT():Ya.exports=TT()),Ya.exports}/*
98
98
  object-assign
99
99
  (c) Sindre Sorhus
100
100
  @license MIT
101
- */var Vl,wy;function ZP(){if(wy)return Vl;wy=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},o=0;o<10;o++)a["_"+String.fromCharCode(o)]=o;var l=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch(c){return!1}}return Vl=i()?Object.assign:function(s,a){for(var o,l=r(s),u,c=1;c<arguments.length;c++){o=Object(arguments[c]);for(var f in o)e.call(o,f)&&(l[f]=o[f]);if(t){u=t(o);for(var p=0;p<u.length;p++)n.call(o,u[p])&&(l[u[p]]=o[u[p]])}}return l},Vl}var Kl,Ay;function sd(){if(Ay)return Kl;Ay=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Kl=t,Kl}var Xl,Sy;function Gg(){return Sy||(Sy=1,Xl=Function.call.bind(Object.prototype.hasOwnProperty)),Xl}var Jl,Cy;function $P(){if(Cy)return Jl;Cy=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=sd(),n={},r=Gg();t=function(s){var a="Warning: "+s;typeof console!="undefined"&&console.error(a);try{throw new Error(a)}catch(o){}}}function i(s,a,o,l,u){if(process.env.NODE_ENV!=="production"){for(var c in s)if(r(s,c)){var f;try{if(typeof s[c]!="function"){var p=Error((l||"React class")+": "+o+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=s[c](a,c,l,o,null,e)}catch(y){f=y}if(f&&!(f instanceof Error)&&t((l||"React class")+": type specification of "+o+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=u?u():"";t("Failed "+o+" type: "+f.message+(h!=null?h:""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Jl=i,Jl}var Zl,ky;function eT(){if(ky)return Zl;ky=1;var t=Qg(),e=ZP(),n=sd(),r=Gg(),i=$P(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(o){var l="Warning: "+o;typeof console!="undefined"&&console.error(l);try{throw new Error(l)}catch(u){}});function a(){return null}return Zl=function(o,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(k){var Q=k&&(u&&k[u]||k[c]);if(typeof Q=="function")return Q}var p="<<anonymous>>",h={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:A(),arrayOf:E,element:j(),elementType:S(),instanceOf:b,node:_(),objectOf:x,oneOf:w,oneOfType:N,shape:T,exact:z};function y(k,Q){return k===Q?k!==0||1/k===1/Q:k!==k&&Q!==Q}function m(k,Q){this.message=k,this.data=Q&&typeof Q=="object"?Q:{},this.stack=""}m.prototype=Error.prototype;function v(k){if(process.env.NODE_ENV!=="production")var Q={},H=0;function O(Y,X,ne,oe,he,ae,je){if(oe=oe||p,ae=ae||ne,je!==n){if(l){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var Le=oe+":"+ne;!Q[Le]&&H<3&&(s("You are manually calling a React.PropTypes validation function for the `"+ae+"` prop on `"+oe+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Q[Le]=!0,H++)}}return X[ne]==null?Y?X[ne]===null?new m("The "+he+" `"+ae+"` is marked as required "+("in `"+oe+"`, but its value is `null`.")):new m("The "+he+" `"+ae+"` is marked as required in "+("`"+oe+"`, but its value is `undefined`.")):null:k(X,ne,oe,he,ae)}var G=O.bind(null,!1);return G.isRequired=O.bind(null,!0),G}function g(k){function Q(H,O,G,Y,X,ne){var oe=H[O],he=D(oe);if(he!==k){var ae=B(oe);return new m("Invalid "+Y+" `"+X+"` of type "+("`"+ae+"` supplied to `"+G+"`, expected ")+("`"+k+"`."),{expectedType:k})}return null}return v(Q)}function A(){return v(a)}function E(k){function Q(H,O,G,Y,X){if(typeof k!="function")return new m("Property `"+X+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var ne=H[O];if(!Array.isArray(ne)){var oe=D(ne);return new m("Invalid "+Y+" `"+X+"` of type "+("`"+oe+"` supplied to `"+G+"`, expected an array."))}for(var he=0;he<ne.length;he++){var ae=k(ne,he,G,Y,X+"["+he+"]",n);if(ae instanceof Error)return ae}return null}return v(Q)}function j(){function k(Q,H,O,G,Y){var X=Q[H];if(!o(X)){var ne=D(X);return new m("Invalid "+G+" `"+Y+"` of type "+("`"+ne+"` supplied to `"+O+"`, expected a single ReactElement."))}return null}return v(k)}function S(){function k(Q,H,O,G,Y){var X=Q[H];if(!t.isValidElementType(X)){var ne=D(X);return new m("Invalid "+G+" `"+Y+"` of type "+("`"+ne+"` supplied to `"+O+"`, expected a single ReactElement type."))}return null}return v(k)}function b(k){function Q(H,O,G,Y,X){if(!(H[O]instanceof k)){var ne=k.name||p,oe=W(H[O]);return new m("Invalid "+Y+" `"+X+"` of type "+("`"+oe+"` supplied to `"+G+"`, expected ")+("instance of `"+ne+"`."))}return null}return v(Q)}function w(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function Q(H,O,G,Y,X){for(var ne=H[O],oe=0;oe<k.length;oe++)if(y(ne,k[oe]))return null;var he=JSON.stringify(k,function(je,Z){var Le=B(Z);return Le==="symbol"?String(Z):Z});return new m("Invalid "+Y+" `"+X+"` of value `"+String(ne)+"` "+("supplied to `"+G+"`, expected one of "+he+"."))}return v(Q)}function x(k){function Q(H,O,G,Y,X){if(typeof k!="function")return new m("Property `"+X+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var ne=H[O],oe=D(ne);if(oe!=="object")return new m("Invalid "+Y+" `"+X+"` of type "+("`"+oe+"` supplied to `"+G+"`, expected an object."));for(var he in ne)if(r(ne,he)){var ae=k(ne,he,G,Y,X+"."+he,n);if(ae instanceof Error)return ae}return null}return v(Q)}function N(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var Q=0;Q<k.length;Q++){var H=k[Q];if(typeof H!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(H)+" at index "+Q+"."),a}function O(G,Y,X,ne,oe){for(var he=[],ae=0;ae<k.length;ae++){var je=k[ae],Z=je(G,Y,X,ne,oe,n);if(Z==null)return null;Z.data&&r(Z.data,"expectedType")&&he.push(Z.data.expectedType)}var Le=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new m("Invalid "+ne+" `"+oe+"` supplied to "+("`"+X+"`"+Le+"."))}return v(O)}function _(){function k(Q,H,O,G,Y){return L(Q[H])?null:new m("Invalid "+G+" `"+Y+"` supplied to "+("`"+O+"`, expected a ReactNode."))}return v(k)}function I(k,Q,H,O,G){return new m((k||"React class")+": "+Q+" type `"+H+"."+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function T(k){function Q(H,O,G,Y,X){var ne=H[O],oe=D(ne);if(oe!=="object")return new m("Invalid "+Y+" `"+X+"` of type `"+oe+"` "+("supplied to `"+G+"`, expected `object`."));for(var he in k){var ae=k[he];if(typeof ae!="function")return I(G,Y,X,he,B(ae));var je=ae(ne,he,G,Y,X+"."+he,n);if(je)return je}return null}return v(Q)}function z(k){function Q(H,O,G,Y,X){var ne=H[O],oe=D(ne);if(oe!=="object")return new m("Invalid "+Y+" `"+X+"` of type `"+oe+"` "+("supplied to `"+G+"`, expected `object`."));var he=e({},H[O],k);for(var ae in he){var je=k[ae];if(r(k,ae)&&typeof je!="function")return I(G,Y,X,ae,B(je));if(!je)return new m("Invalid "+Y+" `"+X+"` key `"+ae+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(H[O],null," ")+`
102
- Valid keys: `+JSON.stringify(Object.keys(k),null," "));var Z=je(ne,ae,G,Y,X+"."+ae,n);if(Z)return Z}return null}return v(Q)}function L(k){switch(typeof k){case"number":case"string":case"undefined":return!0;case"boolean":return!k;case"object":if(Array.isArray(k))return k.every(L);if(k===null||o(k))return!0;var Q=f(k);if(Q){var H=Q.call(k),O;if(Q!==k.entries){for(;!(O=H.next()).done;)if(!L(O.value))return!1}else for(;!(O=H.next()).done;){var G=O.value;if(G&&!L(G[1]))return!1}}else return!1;return!0;default:return!1}}function P(k,Q){return k==="symbol"?!0:Q?Q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Q instanceof Symbol:!1}function D(k){var Q=typeof k;return Array.isArray(k)?"array":k instanceof RegExp?"object":P(Q,k)?"symbol":Q}function B(k){if(typeof k=="undefined"||k===null)return""+k;var Q=D(k);if(Q==="object"){if(k instanceof Date)return"date";if(k instanceof RegExp)return"regexp"}return Q}function V(k){var Q=B(k);switch(Q){case"array":case"object":return"an "+Q;case"boolean":case"date":case"regexp":return"a "+Q;default:return Q}}function W(k){return!k.constructor||!k.constructor.name?p:k.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Zl}var $l,jy;function tT(){if(jy)return $l;jy=1;var t=sd();function e(){}function n(){}return n.resetWarningCache=e,$l=function(){function r(a,o,l,u,c,f){if(f!==t){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return s.PropTypes=s,s},$l}var Ey;function nT(){if(Ey)return Qa.exports;if(Ey=1,process.env.NODE_ENV!=="production"){var t=Qg(),e=!0;Qa.exports=eT()(t.isElement,e)}else Qa.exports=tT()();return Qa.exports}var rT=nT();const Oy=Oo(rT);var iT=["min","max","progress","className"];function sT(t,e){if(t==null)return{};var n,r,i=aT(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function aT(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var Yg=F.forwardRef(function(t,e){var n=t.min,r=t.max,i=t.progress,s=t.className,a=sT(t,iT),o=F.useMemo(function(){var u=Math.max(0,r-n);if(u===0)return 0;var c=(i-n)/u*100;return Math.max(0,Math.min(100,c))},[n,r,i]),l=Math.min(Math.max(i,n),r);return d.jsx("div",{ref:e,role:"progressbar","aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":l,"aria-valuetext":"".concat(Math.round(o),"%"),className:ie(s),...a,children:d.jsx("div",{className:"yst-relative yst-h-2 yst-w-full yst-overflow-hidden yst-rounded-full yst-bg-slate-200/40",children:d.jsx("div",{className:"yst-absolute yst-left-0 yst-top-0 yst-h-full yst-rounded-full yst-bg-[linear-gradient(97.38deg,_#A61E69_0%,_#6366F1_100%)] yst-transition-[width] yst-duration-300 yst-ease-out",style:{width:"".concat(o,"%")}})})})});Yg.displayName="ProgressBarGradient";var gs=[{labelAbove:"Running queries...",threshold:80},{labelAbove:"Building analysis...",threshold:90},{labelAbove:"Finalizing...",threshold:99},{labelAbove:"Done!",threshold:100}],Vg=function(e){var n=e.progress,r=n===void 0?0:n,i=e.className,s=i===void 0?"":i,a=function(){for(var c=0;c<gs.length;c++)if(r<=gs[c].threshold)return gs[c];return gs[gs.length-1]},o=a(),l=r<=80;return d.jsxs("div",{className:ie("yst-font-medium yst-text-slate-800",s),children:[d.jsxs("div",{className:"yst-flex yst-items-center yst-justify-center yst-gap-2",children:[r<100?d.jsx(C.Spinner,{}):d.jsx($m,{className:"yst-text-green-400"}),d.jsx("span",{className:"yst-text-sm yst-font-medium yst-italic",children:o.labelAbove})]}),d.jsx(Yg,{className:"yst-mt-3",progress:r,min:0,max:100}),d.jsxs("div",{className:"yst-mt-3 yst-flex yst-justify-between yst-text-xs",children:[d.jsx("span",{children:d.jsx(zs,{disabled:!l,children:"Running queries"})}),d.jsx("span",{children:d.jsx(zs,{disabled:l,children:"Building analysis"})})]})]})};Vg.propTypes={progress:Oy.number,className:Oy.string};function oT(t,e){return dT(t)||cT(t,e)||uT(t,e)||lT()}function lT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
103
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uT(t,e){if(t){if(typeof t=="string")return Py(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Py(t,e):void 0}}function Py(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function cT(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function dT(t){if(Array.isArray(t))return t}var fT=function(e){switch(e){case"pending":case"processing":return 2*1e3;case"completed":return!1;default:return 10*1e3}},hT=function(){var e,n,r,i=ht(),s=on(),a=To(),o=It(),l=o.brandId,u=a.brandId||l,c=F.useState(null),f=oT(c,2),p=f[0],h=f[1],y=Bs(u,{query:{enabled:!!u,select:function(N){var _=N.data;return _}}}),m=y.data,v=nx(u,"latest",{query:{enabled:!!u,select:function(N){var _=N.data;return _},refetchInterval:function(N){var _,I=N==null||(_=N.state)===null||_===void 0||(_=_.data)===null||_===void 0?void 0:_.data;return fT(I==null?void 0:I.status)}}}),g=v.data,A=g==null?void 0:g.id,E=A?"/brands/".concat(u,"/analysis/").concat(A):"/brands/".concat(u);F.useEffect(function(){var x=(g==null?void 0:g.status)==="pending"||(g==null?void 0:g.status)==="processing"||(g==null?void 0:g.status)==="completed";m!=null&&m.nextScheduledAnalysis&&g!==null&&g!==void 0&&g.status&&_S(m.nextScheduledAnalysis,5)&&!x&&i("/brands/".concat(u),{replace:!0})},[m==null?void 0:m.nextScheduledAnalysis,u,i,g==null?void 0:g.status]),F.useEffect(function(){((m==null?void 0:m.setupStatus)==="completed"||(m==null?void 0:m.setupStatus)==="scheduledFirstAnalysis"&&m!==null&&m!==void 0&&m.firstNextAnalysisOpportunity&&!c0(m.firstNextAnalysisOpportunity,2))&&i(E,{replace:!0})},[m==null?void 0:m.firstNextAnalysisOpportunity,m==null?void 0:m.setupStatus,E,i]);var j=m==null||(e=m.queries)===null||e===void 0?void 0:e.length,S=(g==null||(n=g.completedQueries)===null||n===void 0?void 0:n.length)||0;F.useEffect(function(){if((g==null?void 0:g.status)==="processing"&&j&&S===j){h("building");var x=setTimeout(function(){h("finalizing")},1e4);return function(){return clearTimeout(x)}}else h(null)},[g==null?void 0:g.status,j,S]);var b=function(){if(j&&j>0){var x=80/j,N=S*x;return(g==null?void 0:g.status)==="completed"?100:(g==null?void 0:g.status)==="processing"&&S===j&&p!==null?p==="building"?90:95:Math.round(Math.min(N,80))}return 0}(),w=b<=80||b===100;return d.jsxs("div",{children:[d.jsxs("div",{className:"yst-space-y-8",children:[d.jsx(Vg,{progress:b}),w&&d.jsxs(d.Fragment,{children:[d.jsx(Gi,{}),d.jsx("div",{className:"yst-space-y-8",children:m==null||(r=m.queries)===null||r===void 0?void 0:r.map(function(x){var N,_=x.id,I=x.query,T=_&&(g==null||(N=g.completedQueries)===null||N===void 0?void 0:N.includes(_));return d.jsxs("div",{className:ie("yst-flex yst-items-center yst-justify-between yst-gap-3"),children:[T===!0?d.jsx($m,{className:"yst-h-5 yst-w-5 yst-text-green-400"}):d.jsx(C.Spinner,{}),d.jsx("span",{className:"yst-flex-1 yst-text-sm",children:I})]},"result-item-".concat(I))})})]})]}),d.jsx("div",{className:"yst-mb-[-2rem] yst-ml-[-2rem] yst-mr-[-2rem] yst-mt-8 yst-flex yst-justify-end yst-gap-4 yst-rounded-bl-lg yst-rounded-br-lg yst-border-t yst-border-slate-200 yst-bg-slate-50 yst-px-8 yst-py-6",children:d.jsx(C.Button,{as:Cr,to:E,onClick:function(x){if(b!==100){x.preventDefault();return}s.clear()},disabled:b!==100,children:"Continue →"})})]})};const pT=Object.freeze(Object.defineProperty({__proto__:null,default:hT},Symbol.toStringTag,{value:"Module"}));exports.AIInsightsClient=Dj;exports.setApiBaseUrl=zm;
101
+ */var Jl,Ny;function IT(){if(Ny)return Jl;Ny=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},o=0;o<10;o++)a["_"+String.fromCharCode(o)]=o;var l=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch(c){return!1}}return Jl=i()?Object.assign:function(s,a){for(var o,l=r(s),u,c=1;c<arguments.length;c++){o=Object(arguments[c]);for(var f in o)e.call(o,f)&&(l[f]=o[f]);if(t){u=t(o);for(var p=0;p<u.length;p++)n.call(o,u[p])&&(l[u[p]]=o[u[p]])}}return l},Jl}var Zl,Ry;function dd(){if(Ry)return Zl;Ry=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zl=t,Zl}var $l,_y;function dv(){return _y||(_y=1,$l=Function.call.bind(Object.prototype.hasOwnProperty)),$l}var eu,Dy;function MT(){if(Dy)return eu;Dy=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=dd(),n={},r=dv();t=function(s){var a="Warning: "+s;typeof console!="undefined"&&console.error(a);try{throw new Error(a)}catch(o){}}}function i(s,a,o,l,u){if(process.env.NODE_ENV!=="production"){for(var c in s)if(r(s,c)){var f;try{if(typeof s[c]!="function"){var p=Error((l||"React class")+": "+o+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=s[c](a,c,l,o,null,e)}catch(y){f=y}if(f&&!(f instanceof Error)&&t((l||"React class")+": type specification of "+o+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=u?u():"";t("Failed "+o+" type: "+f.message+(h!=null?h:""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},eu=i,eu}var tu,By;function LT(){if(By)return tu;By=1;var t=cv(),e=IT(),n=dd(),r=dv(),i=MT(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(o){var l="Warning: "+o;typeof console!="undefined"&&console.error(l);try{throw new Error(l)}catch(u){}});function a(){return null}return tu=function(o,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(j){var W=j&&(u&&j[u]||j[c]);if(typeof W=="function")return W}var p="<<anonymous>>",h={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:A(),arrayOf:E,element:C(),elementType:S(),instanceOf:b,node:D(),objectOf:x,oneOf:w,oneOfType:N,shape:T,exact:z};function y(j,W){return j===W?j!==0||1/j===1/W:j!==j&&W!==W}function m(j,W){this.message=j,this.data=W&&typeof W=="object"?W:{},this.stack=""}m.prototype=Error.prototype;function v(j){if(process.env.NODE_ENV!=="production")var W={},q=0;function P(J,K,Z,oe,ue,ie,Oe){if(oe=oe||p,ie=ie||Z,Oe!==n){if(l){var $=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw $.name="Invariant Violation",$}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var Ue=oe+":"+Z;!W[Ue]&&q<3&&(s("You are manually calling a React.PropTypes validation function for the `"+ie+"` prop on `"+oe+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[Ue]=!0,q++)}}return K[Z]==null?J?K[Z]===null?new m("The "+ue+" `"+ie+"` is marked as required "+("in `"+oe+"`, but its value is `null`.")):new m("The "+ue+" `"+ie+"` is marked as required in "+("`"+oe+"`, but its value is `undefined`.")):null:j(K,Z,oe,ue,ie)}var G=P.bind(null,!1);return G.isRequired=P.bind(null,!0),G}function g(j){function W(q,P,G,J,K,Z){var oe=q[P],ue=B(oe);if(ue!==j){var ie=R(oe);return new m("Invalid "+J+" `"+K+"` of type "+("`"+ie+"` supplied to `"+G+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return v(W)}function A(){return v(a)}function E(j){function W(q,P,G,J,K){if(typeof j!="function")return new m("Property `"+K+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var Z=q[P];if(!Array.isArray(Z)){var oe=B(Z);return new m("Invalid "+J+" `"+K+"` of type "+("`"+oe+"` supplied to `"+G+"`, expected an array."))}for(var ue=0;ue<Z.length;ue++){var ie=j(Z,ue,G,J,K+"["+ue+"]",n);if(ie instanceof Error)return ie}return null}return v(W)}function C(){function j(W,q,P,G,J){var K=W[q];if(!o(K)){var Z=B(K);return new m("Invalid "+G+" `"+J+"` of type "+("`"+Z+"` supplied to `"+P+"`, expected a single ReactElement."))}return null}return v(j)}function S(){function j(W,q,P,G,J){var K=W[q];if(!t.isValidElementType(K)){var Z=B(K);return new m("Invalid "+G+" `"+J+"` of type "+("`"+Z+"` supplied to `"+P+"`, expected a single ReactElement type."))}return null}return v(j)}function b(j){function W(q,P,G,J,K){if(!(q[P]instanceof j)){var Z=j.name||p,oe=Q(q[P]);return new m("Invalid "+J+" `"+K+"` of type "+("`"+oe+"` supplied to `"+G+"`, expected ")+("instance of `"+Z+"`."))}return null}return v(W)}function w(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function W(q,P,G,J,K){for(var Z=q[P],oe=0;oe<j.length;oe++)if(y(Z,j[oe]))return null;var ue=JSON.stringify(j,function(Oe,$){var Ue=R($);return Ue==="symbol"?String($):$});return new m("Invalid "+J+" `"+K+"` of value `"+String(Z)+"` "+("supplied to `"+G+"`, expected one of "+ue+"."))}return v(W)}function x(j){function W(q,P,G,J,K){if(typeof j!="function")return new m("Property `"+K+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var Z=q[P],oe=B(Z);if(oe!=="object")return new m("Invalid "+J+" `"+K+"` of type "+("`"+oe+"` supplied to `"+G+"`, expected an object."));for(var ue in Z)if(r(Z,ue)){var ie=j(Z,ue,G,J,K+"."+ue,n);if(ie instanceof Error)return ie}return null}return v(W)}function N(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var W=0;W<j.length;W++){var q=j[W];if(typeof q!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(q)+" at index "+W+"."),a}function P(G,J,K,Z,oe){for(var ue=[],ie=0;ie<j.length;ie++){var Oe=j[ie],$=Oe(G,J,K,Z,oe,n);if($==null)return null;$.data&&r($.data,"expectedType")&&ue.push($.data.expectedType)}var Ue=ue.length>0?", expected one of type ["+ue.join(", ")+"]":"";return new m("Invalid "+Z+" `"+oe+"` supplied to "+("`"+K+"`"+Ue+"."))}return v(P)}function D(){function j(W,q,P,G,J){return I(W[q])?null:new m("Invalid "+G+" `"+J+"` supplied to "+("`"+P+"`, expected a ReactNode."))}return v(j)}function M(j,W,q,P,G){return new m((j||"React class")+": "+W+" type `"+q+"."+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function T(j){function W(q,P,G,J,K){var Z=q[P],oe=B(Z);if(oe!=="object")return new m("Invalid "+J+" `"+K+"` of type `"+oe+"` "+("supplied to `"+G+"`, expected `object`."));for(var ue in j){var ie=j[ue];if(typeof ie!="function")return M(G,J,K,ue,R(ie));var Oe=ie(Z,ue,G,J,K+"."+ue,n);if(Oe)return Oe}return null}return v(W)}function z(j){function W(q,P,G,J,K){var Z=q[P],oe=B(Z);if(oe!=="object")return new m("Invalid "+J+" `"+K+"` of type `"+oe+"` "+("supplied to `"+G+"`, expected `object`."));var ue=e({},q[P],j);for(var ie in ue){var Oe=j[ie];if(r(j,ie)&&typeof Oe!="function")return M(G,J,K,ie,R(Oe));if(!Oe)return new m("Invalid "+J+" `"+K+"` key `"+ie+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(q[P],null," ")+`
102
+ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var $=Oe(Z,ie,G,J,K+"."+ie,n);if($)return $}return null}return v(W)}function I(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(I);if(j===null||o(j))return!0;var W=f(j);if(W){var q=W.call(j),P;if(W!==j.entries){for(;!(P=q.next()).done;)if(!I(P.value))return!1}else for(;!(P=q.next()).done;){var G=P.value;if(G&&!I(G[1]))return!1}}else return!1;return!0;default:return!1}}function O(j,W){return j==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function B(j){var W=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":O(W,j)?"symbol":W}function R(j){if(typeof j=="undefined"||j===null)return""+j;var W=B(j);if(W==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return W}function Y(j){var W=R(j);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function Q(j){return!j.constructor||!j.constructor.name?p:j.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},tu}var nu,Fy;function NT(){if(Fy)return nu;Fy=1;var t=dd();function e(){}function n(){}return n.resetWarningCache=e,nu=function(){function r(a,o,l,u,c,f){if(f!==t){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return s.PropTypes=s,s},nu}var zy;function RT(){if(zy)return Qa.exports;if(zy=1,process.env.NODE_ENV!=="production"){var t=cv(),e=!0;Qa.exports=LT()(t.isElement,e)}else Qa.exports=NT()();return Qa.exports}var _T=RT();const Uy=To(_T);var DT=["min","max","progress","className"];function BT(t,e){if(t==null)return{};var n,r,i=FT(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function FT(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var fv=F.forwardRef(function(t,e){var n=t.min,r=t.max,i=t.progress,s=t.className,a=BT(t,DT),o=F.useMemo(function(){var u=Math.max(0,r-n);if(u===0)return 0;var c=(i-n)/u*100;return Math.max(0,Math.min(100,c))},[n,r,i]),l=Math.min(Math.max(i,n),r);return d.jsx("div",{ref:e,role:"progressbar","aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":l,"aria-valuetext":"".concat(Math.round(o),"%"),className:le(s),...a,children:d.jsx("div",{className:"yst-relative yst-h-2 yst-w-full yst-overflow-hidden yst-rounded-full yst-bg-slate-200/40",children:d.jsx("div",{className:"yst-absolute yst-left-0 yst-top-0 yst-h-full yst-rounded-full yst-bg-[linear-gradient(97.38deg,_#A61E69_0%,_#6366F1_100%)] yst-transition-[width] yst-duration-300 yst-ease-out",style:{width:"".concat(o,"%")}})})})});fv.displayName="ProgressBarGradient";var bs=[{labelAbove:"Running queries...",threshold:80},{labelAbove:"Building analysis...",threshold:90},{labelAbove:"Finalizing...",threshold:99},{labelAbove:"Done!",threshold:100}],hv=function(e){var n=e.progress,r=n===void 0?0:n,i=e.className,s=i===void 0?"":i,a=function(){for(var c=0;c<bs.length;c++)if(r<=bs[c].threshold)return bs[c];return bs[bs.length-1]},o=a(),l=r<=80;return d.jsxs("div",{className:le("yst-font-medium yst-text-slate-800",s),children:[d.jsxs("div",{className:"yst-flex yst-items-center yst-justify-center yst-gap-2",children:[r<100?d.jsx(k.Spinner,{}):d.jsx(f0,{className:"yst-text-green-400"}),d.jsx("span",{className:"yst-text-sm yst-font-medium yst-italic",children:o.labelAbove})]}),d.jsx(fv,{className:"yst-mt-3",progress:r,min:0,max:100}),d.jsxs("div",{className:"yst-mt-3 yst-flex yst-justify-between yst-text-xs",children:[d.jsx("span",{children:d.jsx(Hs,{disabled:!l,children:"Running queries"})}),d.jsx("span",{children:d.jsx(Hs,{disabled:l,children:"Building analysis"})})]})]})};hv.propTypes={progress:Uy.number,className:Uy.string};function zT(t,e){return WT(t)||qT(t,e)||HT(t,e)||UT()}function UT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
103
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HT(t,e){if(t){if(typeof t=="string")return Hy(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hy(t,e):void 0}}function Hy(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function qT(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function WT(t){if(Array.isArray(t))return t}var GT=function(e){switch(e){case"pending":case"processing":return 2*1e3;case"completed":return!1;default:return 10*1e3}},QT=function(){var e,n,r,i=ft(),s=Kt(),a=Mo(),o=Tt(),l=o.brandId,u=a.brandId||l,c=F.useState(null),f=zT(c,2),p=f[0],h=f[1],y=zs(u,{query:{enabled:!!u,select:function(N){var D=N.data;return D}}}),m=y.data,v=Tx(u,"latest",{query:{enabled:!!u,select:function(N){var D=N.data;return D},refetchInterval:function(N){var D,M=N==null||(D=N.state)===null||D===void 0||(D=D.data)===null||D===void 0?void 0:D.data;return GT(M==null?void 0:M.status)}}}),g=v.data,A=g==null?void 0:g.id,E=A?"/brands/".concat(u,"/analysis/").concat(A):"/brands/".concat(u);F.useEffect(function(){var x=(g==null?void 0:g.status)==="pending"||(g==null?void 0:g.status)==="processing"||(g==null?void 0:g.status)==="completed";m!=null&&m.nextScheduledAnalysis&&g!==null&&g!==void 0&&g.status&&cC(m.nextScheduledAnalysis,5)&&!x&&i("/brands/".concat(u),{replace:!0})},[m==null?void 0:m.nextScheduledAnalysis,u,i,g==null?void 0:g.status]),F.useEffect(function(){((m==null?void 0:m.setupStatus)==="completed"||(m==null?void 0:m.setupStatus)==="scheduledFirstAnalysis"&&m!==null&&m!==void 0&&m.firstNextAnalysisOpportunity&&!j0(m.firstNextAnalysisOpportunity,2))&&i(E,{replace:!0})},[m==null?void 0:m.firstNextAnalysisOpportunity,m==null?void 0:m.setupStatus,E,i]);var C=m==null||(e=m.queries)===null||e===void 0?void 0:e.length,S=(g==null||(n=g.completedQueries)===null||n===void 0?void 0:n.length)||0;F.useEffect(function(){if((g==null?void 0:g.status)==="processing"&&C&&S===C){h("building");var x=setTimeout(function(){h("finalizing")},1e4);return function(){return clearTimeout(x)}}else h(null)},[g==null?void 0:g.status,C,S]);var b=function(){if(C&&C>0){var x=80/C,N=S*x;return(g==null?void 0:g.status)==="completed"?100:(g==null?void 0:g.status)==="processing"&&S===C&&p!==null?p==="building"?90:95:Math.round(Math.min(N,80))}return 0}(),w=b<=80||b===100;return d.jsxs("div",{children:[d.jsxs("div",{className:"yst-space-y-8",children:[d.jsx(hv,{progress:b}),w&&d.jsxs(d.Fragment,{children:[d.jsx(Xi,{}),d.jsx("div",{className:"yst-space-y-8",children:m==null||(r=m.queries)===null||r===void 0?void 0:r.map(function(x){var N,D=x.id,M=x.query,T=D&&(g==null||(N=g.completedQueries)===null||N===void 0?void 0:N.includes(D));return d.jsxs("div",{className:le("yst-flex yst-items-center yst-justify-between yst-gap-3"),children:[T===!0?d.jsx(f0,{className:"yst-h-5 yst-w-5 yst-text-green-400"}):d.jsx(k.Spinner,{}),d.jsx("span",{className:"yst-flex-1 yst-text-sm",children:M})]},"result-item-".concat(M))})})]})]}),d.jsx("div",{className:"yst-mb-[-2rem] yst-ml-[-2rem] yst-mr-[-2rem] yst-mt-8 yst-flex yst-justify-end yst-gap-4 yst-rounded-bl-lg yst-rounded-br-lg yst-border-t yst-border-slate-200 yst-bg-slate-50 yst-px-8 yst-py-6",children:d.jsx(k.Button,{as:jr,to:E,onClick:function(x){if(b!==100){x.preventDefault();return}s.clear()},disabled:b!==100,children:"Continue →"})})]})};const YT=Object.freeze(Object.defineProperty({__proto__:null,default:QT},Symbol.toStringTag,{value:"Module"}));exports.AIInsightsClient=mE;exports.setApiBaseUrl=$m;
104
104
  //# sourceMappingURL=ai-insights-client.cjs.js.map