edsger 0.82.0 → 0.84.0
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.
- package/README.md +101 -2
- package/assets/README.md +31 -18
- package/assets/audit/base.yaml +187 -0
- package/assets/audit/csharp.yaml +46 -0
- package/assets/audit/dart.yaml +46 -0
- package/assets/audit/go.yaml +46 -0
- package/assets/audit/java.yaml +46 -0
- package/assets/audit/python.yaml +49 -0
- package/assets/audit/typescript.yaml +51 -0
- package/assets/audit-viewer/assets/audit--os0TXXZ.css +1 -0
- package/assets/audit-viewer/assets/audit-CSblYELs.js +2 -0
- package/assets/audit-viewer/audit.html +31 -0
- package/assets/audit-viewer-single.html +32 -0
- package/assets/diagrams/base.yaml +351 -0
- package/assets/diagrams/csharp.yaml +48 -0
- package/assets/diagrams/dart.yaml +41 -0
- package/assets/diagrams/go.yaml +44 -0
- package/assets/diagrams/java.yaml +43 -0
- package/assets/diagrams/python.yaml +41 -0
- package/assets/diagrams/typescript.yaml +45 -0
- package/assets/diagrams-viewer/assets/abnfDiagram-VRR7QNED-CWLpbgGU.js +1 -0
- package/assets/diagrams-viewer/assets/arc-B4VipCr_.js +1 -0
- package/assets/diagrams-viewer/assets/architectureDiagram-ZJ3FMSHR-BMDodQXV.js +36 -0
- package/assets/diagrams-viewer/assets/blockDiagram-677ZJIJ3-DbHoVVH-.js +132 -0
- package/assets/diagrams-viewer/assets/c4Diagram-LMCZKHZV-CyUEj98S.js +10 -0
- package/assets/diagrams-viewer/assets/channel-DWh7ErxY.js +1 -0
- package/assets/diagrams-viewer/assets/chunk-2Q5K7J3B-CWu0p0os.js +1 -0
- package/assets/diagrams-viewer/assets/chunk-32BRIVSS-BhVWSCoK.js +1 -0
- package/assets/diagrams-viewer/assets/chunk-5VM5RSS4-B_2wZBAn.js +15 -0
- package/assets/diagrams-viewer/assets/chunk-EX3LRPZG-D_MRgtfL.js +231 -0
- package/assets/diagrams-viewer/assets/chunk-JWPE2WC7-dsh1qiy0.js +1 -0
- package/assets/diagrams-viewer/assets/chunk-MOJQB5TN-BvLm4a6B.js +88 -0
- package/assets/diagrams-viewer/assets/chunk-RYQCIY6F-gJyPbIpx.js +1 -0
- package/assets/diagrams-viewer/assets/chunk-V7JOEXUC-BMvj0zJM.js +206 -0
- package/assets/diagrams-viewer/assets/chunk-VR4S4FIN-Di2iBUXs.js +1 -0
- package/assets/diagrams-viewer/assets/chunk-XXDRQBXY-Cfajbd4I.js +1 -0
- package/assets/diagrams-viewer/assets/classDiagram-OUVF2IWQ-winWhRce.js +1 -0
- package/assets/diagrams-viewer/assets/classDiagram-v2-EOCWNBFH-winWhRce.js +1 -0
- package/assets/diagrams-viewer/assets/cose-bilkent-JH36ORCC-ClE2EhTL.js +1 -0
- package/assets/diagrams-viewer/assets/cynefin-VYW2F7L2-nm5z0Jwc.js +178 -0
- package/assets/diagrams-viewer/assets/cynefinDiagram-TSTJHNR4-CGhnRh5V.js +62 -0
- package/assets/diagrams-viewer/assets/cytoscape.esm-CUqq0XTU.js +331 -0
- package/assets/diagrams-viewer/assets/dagre-VKFMJZFB-COlahHKk.js +4 -0
- package/assets/diagrams-viewer/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/assets/diagrams-viewer/assets/diagram-FQU43EPY-DsUclBK0.js +3 -0
- package/assets/diagrams-viewer/assets/diagram-G47NLZAW-CnjT9SvX.js +24 -0
- package/assets/diagrams-viewer/assets/diagram-NH7WQ7WH-DiGoGOyA.js +24 -0
- package/assets/diagrams-viewer/assets/diagram-OA4YK3LP-qi8nz9qe.js +30 -0
- package/assets/diagrams-viewer/assets/diagram-WEI45ONY-BV3PGzwL.js +41 -0
- package/assets/diagrams-viewer/assets/diagrams-8nCc1utO.css +1 -0
- package/assets/diagrams-viewer/assets/diagrams-CF48btj0.js +314 -0
- package/assets/diagrams-viewer/assets/ebnfDiagram-CCIWWBDH-CtKWe-dh.js +1 -0
- package/assets/diagrams-viewer/assets/erDiagram-Q63AITRT-Aajee3Fz.js +85 -0
- package/assets/diagrams-viewer/assets/flowDiagram-23GEKE2U-N3Xe2K9t.js +156 -0
- package/assets/diagrams-viewer/assets/ganttDiagram-NO4QXBWP-Bjicdg8S.js +292 -0
- package/assets/diagrams-viewer/assets/gitGraphDiagram-IHSO6WYX-CacIXKIe.js +106 -0
- package/assets/diagrams-viewer/assets/graph-C2PyVmSI.js +1 -0
- package/assets/diagrams-viewer/assets/infoDiagram-FWYZ7A6U-CVmDapTx.js +2 -0
- package/assets/diagrams-viewer/assets/init-Gi6I4Gst.js +1 -0
- package/assets/diagrams-viewer/assets/ishikawaDiagram-FXEZZL3T-DMJf1YQN.js +70 -0
- package/assets/diagrams-viewer/assets/journeyDiagram-5HDEW3XC-Bk_U6MPk.js +139 -0
- package/assets/diagrams-viewer/assets/kanban-definition-HUTT4EX6-n05wGXiD.js +89 -0
- package/assets/diagrams-viewer/assets/katex-C5jXJg4s.js +257 -0
- package/assets/diagrams-viewer/assets/layout-HEHzrzvT.js +1 -0
- package/assets/diagrams-viewer/assets/linear-DD_zky65.js +1 -0
- package/assets/diagrams-viewer/assets/map-BQHxRNoK.js +1 -0
- package/assets/diagrams-viewer/assets/mindmap-definition-LN4V7U3C-BWt_I9vr.js +96 -0
- package/assets/diagrams-viewer/assets/ordinal-Cboi1Yqb.js +1 -0
- package/assets/diagrams-viewer/assets/pegDiagram-2B236MQR-CCZTIXBZ.js +1 -0
- package/assets/diagrams-viewer/assets/pieDiagram-ENE6RG2P-BmIQql1w.js +39 -0
- package/assets/diagrams-viewer/assets/quadrantDiagram-ABIIQ3AL-BPvOH5QN.js +7 -0
- package/assets/diagrams-viewer/assets/railroadDiagram-RFXS5EU6-DpgVbjSl.js +1 -0
- package/assets/diagrams-viewer/assets/requirementDiagram-TGXJPOKE-CDVpI3MH.js +84 -0
- package/assets/diagrams-viewer/assets/sankeyDiagram-HTMAVEWB-DU2J23Xy.js +40 -0
- package/assets/diagrams-viewer/assets/sequenceDiagram-DBY2YBRQ-BIVlCWU4.js +162 -0
- package/assets/diagrams-viewer/assets/sizeCapture-X5ZJPWSS-C9KxyKN2.js +1 -0
- package/assets/diagrams-viewer/assets/stateDiagram-2N3HPSRC-Ba5mRI9d.js +1 -0
- package/assets/diagrams-viewer/assets/stateDiagram-v2-6OUMAXLB-Dw-0OG6b.js +1 -0
- package/assets/diagrams-viewer/assets/swimlanes-5IMT3BWC-aOsD2O80.js +2 -0
- package/assets/diagrams-viewer/assets/swimlanesDiagram-G3AALYLV-KujklZml.js +8 -0
- package/assets/diagrams-viewer/assets/timeline-definition-FHXFAJF6-CmYd84Hc.js +120 -0
- package/assets/diagrams-viewer/assets/vennDiagram-L72KCM5P-CDiMK-z9.js +34 -0
- package/assets/diagrams-viewer/assets/wardleyDiagram-EHGQE667-BKLsv25u.js +78 -0
- package/assets/diagrams-viewer/assets/xychartDiagram-FW5EYKEG-Bpj6Ub-a.js +7 -0
- package/assets/diagrams-viewer/diagrams.html +31 -0
- package/assets/diagrams-viewer-single.html +3593 -0
- package/assets/manifest.yaml +13 -1
- package/assets/mindmap/base.yaml +115 -0
- package/assets/mindmap/csharp.yaml +32 -0
- package/assets/mindmap/dart.yaml +42 -0
- package/assets/mindmap/go.yaml +33 -0
- package/assets/mindmap/java.yaml +40 -0
- package/assets/mindmap/python.yaml +43 -0
- package/assets/mindmap/typescript.yaml +47 -0
- package/assets/mindmap-viewer/assets/mindmap-D7KMR9EM.css +1 -0
- package/assets/mindmap-viewer/assets/mindmap-Di5RM-4N.js +4 -0
- package/assets/mindmap-viewer/mindmap.html +31 -0
- package/assets/mindmap-viewer-single.html +34 -0
- package/assets/schema/audit.schema.json +66 -0
- package/assets/schema/diagrams.schema.json +100 -0
- package/assets/schema/mindmap.schema.json +69 -0
- package/assets/skills/audit/SKILL.md +76 -0
- package/assets/skills/diagram/SKILL.md +70 -0
- package/assets/skills/mindmap/SKILL.md +69 -0
- package/assets/viewer/assets/index-BFtGar9N.css +1 -0
- package/assets/viewer/assets/index-XOKyyudT.js +3 -0
- package/assets/viewer/index.html +19 -2
- package/assets/viewer-single.html +21 -4
- package/dist/index.js +1720 -318
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/assets/viewer/assets/index-C7hwGkuU.js +0 -3
- package/assets/viewer/assets/index-Dhc-7q5o.css +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))l(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var Ln,he,Io,Gt,Fi,Go,Uo,dr,Sn,Ql,Bo,Or,Sr,br,Tn={},An=[],bc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Rn=Array.isArray;function Nt(e,t){for(var n in t)e[n]=t[n];return e}function Vr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function kc(e,t,n){var l,i,s,c={};for(s in t)s=="key"?l=t[s]:s=="ref"?i=t[s]:c[s]=t[s];if(arguments.length>2&&(c.children=arguments.length>3?Ln.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)c[s]===void 0&&(c[s]=e.defaultProps[s]);return bn(e,c,l,i,null)}function bn(e,t,n,l,i){var s={type:e,props:t,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++Io,__i:-1,__u:0};return i==null&&he.vnode!=null&&he.vnode(s),s}function Nn(e){return e.children}function kn(e,t){this.props=e,this.context=t}function Pl(e,t){if(t==null)return e.__?Pl(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Pl(e):null}function xc(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,l=[],i=[],s=Nt({},t);s.__v=t.__v+1,he.vnode&&he.vnode(s),zr(e.__P,s,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,l,n??Pl(t),!!(32&t.__u),i),s.__v=t.__v,s.__.__k[s.__i]=s,qo(l,s,i),t.__e=t.__=null,s.__e!=n&&Yo(s)}}function Yo(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Yo(e)}function Oi(e){(!e.__d&&(e.__d=!0)&&Gt.push(e)&&!Mn.__r++||Fi!=he.debounceRendering)&&((Fi=he.debounceRendering)||Go)(Mn)}function Mn(){try{for(var e,t=1;Gt.length;)Gt.length>t&&Gt.sort(Uo),e=Gt.shift(),t=Gt.length,xc(e)}finally{Gt.length=Mn.__r=0}}function jo(e,t,n,l,i,s,c,f,_,d,w){var m,h,b,x,R,P,N,y=l&&l.__k||An,E=t.length;for(_=Tc(n,t,y,_,E),m=0;m<E;m++)(b=n.__k[m])!=null&&(h=b.__i!=-1&&y[b.__i]||Tn,b.__i=m,P=zr(e,b,h,i,s,c,f,_,d,w),x=b.__e,b.ref&&h.ref!=b.ref&&(h.ref&&Wr(h.ref,null,b),w.push(b.ref,b.__c||x,b)),R==null&&x!=null&&(R=x),(N=!!(4&b.__u))||h.__k===b.__k?(_=Ko(b,_,e,N),N&&h.__e&&(h.__e=null)):typeof b.type=="function"&&P!==void 0?_=P:x&&(_=x.nextSibling),b.__u&=-7);return n.__e=R,_}function Tc(e,t,n,l,i){var s,c,f,_,d,w=n.length,m=w,h=0;for(e.__k=new Array(i),s=0;s<i;s++)(c=t[s])!=null&&typeof c!="boolean"&&typeof c!="function"?(typeof c=="string"||typeof c=="number"||typeof c=="bigint"||c.constructor==String?c=e.__k[s]=bn(null,c,null,null,null):Rn(c)?c=e.__k[s]=bn(Nn,{children:c},null,null,null):c.constructor===void 0&&c.__b>0?c=e.__k[s]=bn(c.type,c.props,c.key,c.ref?c.ref:null,c.__v):e.__k[s]=c,_=s+h,c.__=e,c.__b=e.__b+1,f=null,(d=c.__i=Ac(c,n,_,m))!=-1&&(m--,(f=n[d])&&(f.__u|=2)),f==null||f.__v==null?(d==-1&&(i>w?h--:i<w&&h++),typeof c.type!="function"&&(c.__u|=4)):d!=_&&(d==_-1?h--:d==_+1?h++:(d>_?h--:h++,c.__u|=4))):e.__k[s]=null;if(m)for(s=0;s<w;s++)(f=n[s])!=null&&!(2&f.__u)&&(f.__e==l&&(l=Pl(f)),Zo(f,f));return l}function Ko(e,t,n,l){var i,s;if(typeof e.type=="function"){for(i=e.__k,s=0;i&&s<i.length;s++)i[s]&&(i[s].__=e,t=Ko(i[s],t,n,l));return t}e.__e!=t&&(l&&(t&&e.type&&!t.parentNode&&(t=Pl(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Ac(e,t,n,l){var i,s,c,f=e.key,_=e.type,d=t[n],w=d!=null&&(2&d.__u)==0;if(d===null&&f==null||w&&f==d.key&&_==d.type)return n;if(l>(w?1:0)){for(i=n-1,s=n+1;i>=0||s<t.length;)if((d=t[c=i>=0?i--:s++])!=null&&!(2&d.__u)&&f==d.key&&_==d.type)return c}return-1}function Vi(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||bc.test(t)?n:n+"px"}function mn(e,t,n,l,i){var s,c;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof l=="string"&&(e.style.cssText=l=""),l)for(t in l)n&&t in n||Vi(e.style,t,"");if(n)for(t in n)l&&n[t]==l[t]||Vi(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")s=t!=(t=t.replace(Bo,"$1")),c=t.toLowerCase(),t=c in e||t=="onFocusOut"||t=="onFocusIn"?c.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?l?n[Ql]=l[Ql]:(n[Ql]=Or,e.addEventListener(t,s?br:Sr,s)):e.removeEventListener(t,s?br:Sr,s);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function zi(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t[Sn]==null)t[Sn]=Or++;else if(t[Sn]<n[Ql])return;return n(he.event?he.event(t):t)}}}function zr(e,t,n,l,i,s,c,f,_,d){var w,m,h,b,x,R,P,N,y,E,A,U,C,K,B,J,$=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(_=!!(32&n.__u),s=[f=t.__e=n.__e]),(w=he.__b)&&w(t);e:if(typeof $=="function"){m=c.length;try{if(y=t.props,E=$.prototype&&$.prototype.render,A=(w=$.contextType)&&l[w.__c],U=w?A?A.props.value:w.__:l,n.__c?N=(h=t.__c=n.__c).__=h.__E:(E?t.__c=h=new $(y,U):(t.__c=h=new kn(y,U),h.constructor=$,h.render=Ec),A&&A.sub(h),h.state||(h.state={}),h.__n=l,b=h.__d=!0,h.__h=[],h._sb=[]),E&&h.__s==null&&(h.__s=h.state),E&&$.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=Nt({},h.__s)),Nt(h.__s,$.getDerivedStateFromProps(y,h.__s))),x=h.props,R=h.state,h.__v=t,b)E&&$.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),E&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(E&&$.getDerivedStateFromProps==null&&y!==x&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(y,U),t.__v==n.__v||!h.__e&&h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(y,h.__s,U)===!1){t.__v!=n.__v&&(h.props=y,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(M){M&&(M.__=t)}),An.push.apply(h.__h,h._sb),h._sb=[],h.__h.length&&c.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(y,h.__s,U),E&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(x,R,P)})}if(h.context=U,h.props=y,h.__P=e,h.__e=!1,C=he.__r,K=0,E)h.state=h.__s,h.__d=!1,C&&C(t),w=h.render(h.props,h.state,h.context),An.push.apply(h.__h,h._sb),h._sb=[];else do h.__d=!1,C&&C(t),w=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++K<25);h.state=h.__s,h.getChildContext!=null&&(l=Nt(Nt({},l),h.getChildContext())),E&&!b&&h.getSnapshotBeforeUpdate!=null&&(P=h.getSnapshotBeforeUpdate(x,R)),B=w!=null&&w.type===Nn&&w.key==null?Jo(w.props.children):w,f=jo(e,Rn(B)?B:[B],t,n,l,i,s,c,f,_,d),h.base=t.__e,t.__u&=-161,h.__h.length&&c.push(h),N&&(h.__E=h.__=null)}catch(M){if(c.length=m,t.__v=null,_||s!=null)if(M.then){for(t.__u|=_?160:128;f&&f.nodeType==8&&f.nextSibling;)f=f.nextSibling;s!=null&&(s[s.indexOf(f)]=null),t.__e=f}else{if(s!=null)for(J=s.length;J--;)Vr(s[J]);kr(t)}else t.__e=n.__e,!t.__k&&n.__k&&(t.__k=n.__k),M.then||kr(t);he.__e(M,t,n)}}else s==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):f=t.__e=Mc(n.__e,t,n,l,i,s,c,_,d);return(w=he.diffed)&&w(t),128&t.__u?void 0:f}function kr(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(kr))}function qo(e,t,n){for(var l=0;l<n.length;l++)Wr(n[l],n[++l],n[++l]);he.__c&&he.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(s){s.call(i)})}catch(s){he.__e(s,i.__v)}})}function Jo(e){return typeof e!="object"||e==null||e.__b>0?e:Rn(e)?e.map(Jo):e.constructor!==void 0?null:Nt({},e)}function Mc(e,t,n,l,i,s,c,f,_){var d,w,m,h,b,x,R,P=n.props||Tn,N=t.props,y=t.type;if(y=="svg"?i="http://www.w3.org/2000/svg":y=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),s!=null){for(d=0;d<s.length;d++)if((b=s[d])&&"setAttribute"in b==!!y&&(y?b.localName==y:b.nodeType==3)){e=b,s[d]=null;break}}if(e==null){if(y==null)return document.createTextNode(N);e=document.createElementNS(i,y,N.is&&N),f&&(he.__m&&he.__m(t,s),f=!1),s=null}if(y==null)P===N||f&&e.data==N||(e.data=N);else{if(s=y=="textarea"&&N.defaultValue!=null?null:s&&Ln.call(e.childNodes),!f&&s!=null)for(P={},d=0;d<e.attributes.length;d++)P[(b=e.attributes[d]).name]=b.value;for(d in P)b=P[d],d=="dangerouslySetInnerHTML"?m=b:d=="children"||d in N||d=="value"&&"defaultValue"in N||d=="checked"&&"defaultChecked"in N||mn(e,d,null,b,i);for(d in N)b=N[d],d=="children"?h=b:d=="dangerouslySetInnerHTML"?w=b:d=="value"?x=b:d=="checked"?R=b:f&&typeof b!="function"||P[d]===b||mn(e,d,b,P[d],i);if(w)f||m&&(w.__html==m.__html||w.__html==e.innerHTML)||(e.innerHTML=w.__html),t.__k=[];else if(m&&(e.innerHTML=""),jo(t.type=="template"?e.content:e,Rn(h)?h:[h],t,n,l,y=="foreignObject"?"http://www.w3.org/1999/xhtml":i,s,c,s?s[0]:n.__k&&Pl(n,0),f,_),s!=null)for(d=s.length;d--;)Vr(s[d]);f&&y!="textarea"||(d="value",y=="progress"&&x==null?e.removeAttribute("value"):x!=null&&(x!==e[d]||y=="progress"&&!x||y=="option"&&x!=P[d])&&mn(e,d,x,P[d],i),d="checked",R!=null&&R!=e[d]&&mn(e,d,R,P[d],i))}return e}function Wr(e,t,n){try{if(typeof e=="function"){var l=typeof e.__u=="function";l&&e.__u(),l&&t==null||(e.__u=e(t))}else e.current=t}catch(i){he.__e(i,n)}}function Zo(e,t,n){var l,i;if(he.unmount&&he.unmount(e),(l=e.ref)&&(l.current&&l.current!=e.__e||Wr(l,null,t)),(l=e.__c)!=null){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(s){he.__e(s,t)}l.base=l.__P=l.__n=null}if(l=e.__k)for(i=0;i<l.length;i++)l[i]&&Zo(l[i],t,n||typeof e.type!="function");n||Vr(e.__e),e.__c=e.__=e.__e=void 0}function Ec(e,t,n){return this.constructor(e,n)}function Dc(e,t,n){var l,i,s,c;t==document&&(t=document.documentElement),he.__&&he.__(e,t),i=(l=!1)?null:t.__k,s=[],c=[],zr(t,e=t.__k=kc(Nn,null,[e]),i||Tn,Tn,t.namespaceURI,i?null:t.firstChild?Ln.call(t.childNodes):null,s,i?i.__e:t.firstChild,l,c),qo(s,e,c),e.props.children=null}Ln=An.slice,he={__e:function(e,t,n,l){for(var i,s,c;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(e)),c=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,l||{}),c=i.__d),c)return i.__E=i}catch(f){e=f}throw e}},Io=0,kn.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Nt({},this.state),typeof e=="function"&&(e=e(Nt({},n),this.props)),e&&Nt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Oi(this))},kn.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Oi(this))},kn.prototype.render=Nn,Gt=[],Go=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Uo=function(e,t){return e.__v.__b-t.__v.__b},Mn.__r=0,dr=Math.random().toString(8),Sn="__d"+dr,Ql="__a"+dr,Bo=/(PointerCapture)$|Capture$/i,Or=0,Sr=zi(!1),br=zi(!0);var Pc=0;function v(e,t,n,l,i,s){t||(t={});var c,f,_=t;if("ref"in _)for(f in _={},t)f=="ref"?c=t[f]:_[f]=t[f];var d={type:e,props:_,key:n,ref:c,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Pc,__i:-1,__u:0,__source:i,__self:s};if(typeof e=="function"&&(c=e.defaultProps))for(f in c)_[f]===void 0&&(_[f]=c[f]);return he.vnode&&he.vnode(d),d}var ln,Te,hr,Wi,En=0,Qo=[],Me=he,$i=Me.__b,Ii=Me.__r,Gi=Me.diffed,Ui=Me.__c,Bi=Me.unmount,Yi=Me.__;function $r(e,t){Me.__h&&Me.__h(Te,e,En||t),En=0;var n=Te.__H||(Te.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Xl(e){return En=1,Cc(ts,e)}function Cc(e,t,n){var l=$r(ln++,2);if(l.t=e,!l.__c&&(l.__=[ts(void 0,t),function(f){var _=l.__N?l.__N[0]:l.__[0],d=l.t(_,f);_!==d&&(l.__N=[d,l.__[1]],l.__c.setState({}))}],l.__c=Te,!Te.__f)){var i=function(f,_,d){if(!l.__c.__H)return!0;var w=!1,m=l.__c.props!==f;if(l.__c.__H.__.some(function(b){if(b.__N){w=!0;var x=b.__[0];b.__=b.__N,b.__N=void 0,x!==b.__[0]&&(m=!0)}}),s){var h=s.call(this,f,_,d);return w?h||m:h}return!w||m};Te.__f=!0;var s=Te.shouldComponentUpdate,c=Te.componentWillUpdate;Te.componentWillUpdate=function(f,_,d){if(this.__e){var w=s;s=void 0,i(f,_,d),s=w}c&&c.call(this,f,_,d)},Te.shouldComponentUpdate=i}return l.__N||l.__}function Ir(e,t){var n=$r(ln++,3);!Me.__s&&es(n.__H,t)&&(n.__=e,n.u=t,Te.__H.__h.push(n))}function ji(e){return En=5,Lc(function(){return{current:e}},[])}function Lc(e,t){var n=$r(ln++,7);return es(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Ki(){for(var e;e=Qo.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(xr),t.__h.some(Xo),t.__h=[]}catch(n){t.__h=[],Me.__e(n,e.__v)}}}Me.__b=function(e){Te=null,$i&&$i(e)},Me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Yi&&Yi(e,t)},Me.__r=function(e){Ii&&Ii(e),ln=0;var t=(Te=e.__c).__H;t&&(hr===Te?(t.__h=[],Te.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.length&&Ki(),ln=0)),hr=Te},Me.diffed=function(e){Gi&&Gi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Qo.push(t)!==1&&Wi===Me.requestAnimationFrame||((Wi=Me.requestAnimationFrame)||Rc)(Ki)),t.__H.__.some(function(n){n.u&&(n.__H=n.u,n.u=void 0)})),hr=Te=null},Me.__c=function(e,t){t.some(function(n){try{n.__h.some(xr),n.__h=n.__h.filter(function(l){return!l.__||Xo(l)})}catch(l){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Me.__e(l,n.__v)}}),Ui&&Ui(e,t)},Me.unmount=function(e){Bi&&Bi(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(l){try{xr(l)}catch(i){t=i}}),n.__H=void 0,t&&Me.__e(t,n.__v))};var qi=typeof requestAnimationFrame=="function";function Rc(e){var t,n=function(){clearTimeout(l),qi&&cancelAnimationFrame(t),setTimeout(e)},l=setTimeout(n,35);qi&&(t=requestAnimationFrame(n))}function xr(e){var t=Te,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Te=t}function Xo(e){var t=Te;e.__c=e.__(),Te=t}function es(e,t){return!e||e.length!==t.length||t.some(function(n,l){return n!==e[l]})}function ts(e,t){return typeof t=="function"?t(e):t}async function Nc(){if(window.__EDSGER_DATA__)return Ji(window.__EDSGER_DATA__);const e=await fetch("./edsger-data.json",{cache:"no-store"});if(!e.ok)throw new Error(`Could not load edsger-data.json (HTTP ${e.status})`);return Ji(await e.json())}function Ji(e){const t=[...e.history??[]].sort((n,l)=>n.generatedAt<l.generatedAt?-1:n.generatedAt>l.generatedAt?1:0);return{repo:e.repo,latest:e.latest??null,history:t,runs:e.runs??{}}}const ls="edsger-theme",Tr=new Set;function Hc(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}function Fc(){if(typeof document<"u"){const e=document.documentElement.getAttribute("data-theme");if(e==="light"||e==="dark")return e}try{const e=localStorage.getItem(ls);if(e==="light"||e==="dark")return e}catch{}return Hc()}let rn=Fc();typeof document<"u"&&!document.documentElement.getAttribute("data-theme")&&document.documentElement.setAttribute("data-theme",rn);function Gr(){return rn}function Oc(e){rn=e,typeof document<"u"&&document.documentElement.setAttribute("data-theme",e);try{localStorage.setItem(ls,e)}catch{}for(const t of Tr)t()}function Vc(){Oc(rn==="dark"?"light":"dark")}function zc(e){return Tr.add(e),()=>{Tr.delete(e)}}function ns(){const[e,t]=Xl(rn);return Ir(()=>zc(()=>t(Gr())),[]),e}function Ar(e,t=""){return typeof getComputedStyle>"u"||typeof document>"u"?t:getComputedStyle(document.documentElement).getPropertyValue(e).trim()||t}const rs={dark:{green:"#3fb950",greenB:"#56d364",amber:"#d29922",orange:"#db6d28",red:"#f85149"},light:{green:"#1a7f37",greenB:"#2da44e",amber:"#9a6700",orange:"#bc4c00",red:"#cf222e"}};function Ur(e){const t=rs[Gr()];return e>=.8?t.green:e>=.6?t.amber:e>=.4?t.orange:t.red}function is(e){const t=rs[Gr()];switch(e.toUpperCase()){case"A":return t.green;case"B":return t.greenB;case"C":return t.amber;case"D":return t.orange;default:return t.red}}function Br(e){const t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString(void 0,{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function Zi(e){return`${Math.round(e*100)}%`}function Wc({value:e,grade:t}){const l=2*Math.PI*52,i=Math.max(0,Math.min(1,e/100)),s=is(t);return v("div",{class:"ring",children:v("svg",{width:"140",height:"140",viewBox:"0 0 140 140",children:[v("circle",{cx:"70",cy:"70",r:52,class:"ring-track"}),v("circle",{cx:"70",cy:"70",r:52,class:"ring-value",stroke:s,"stroke-dasharray":`${i*l} ${l}`,transform:"rotate(-90 70 70)"}),v("text",{x:"70",y:"64",class:"ring-score",fill:s,children:e}),v("text",{x:"70",y:"92",class:"ring-grade",children:["Grade ",t]})]})})}function $c({label:e,fraction:t,meta:n}){return v("div",{class:"bar-row",children:[v("div",{class:"bar-label",children:e}),v("div",{class:"bar-track",children:v("div",{class:"bar-fill",style:{width:Zi(t),background:Ur(t)}})}),v("div",{class:"bar-value",children:n??Zi(t)})]})}function gn({title:e,children:t}){return v("section",{class:"card",children:[e?v("h2",{class:"card-title",children:e}):null,t]})}function Cl({children:e}){return v("div",{class:"empty",children:e})}function Ic({data:e}){var n;const t=e.latest;return t?v("div",{class:"stack",children:[v("div",{class:"hero",children:[v(Wc,{value:t.overall,grade:t.grade}),v("div",{class:"hero-meta",children:[v("p",{class:"summary",children:t.summary}),v("dl",{class:"facts",children:[v("div",{children:[v("dt",{children:"Repository"}),v("dd",{children:t.repo})]}),v("div",{children:[v("dt",{children:"Standard"}),v("dd",{children:[t.standard.name," v",t.standard.version]})]}),v("div",{children:[v("dt",{children:"Languages"}),v("dd",{children:t.languages.join(", ")||"generic"})]}),v("div",{children:[v("dt",{children:"Commit"}),v("dd",{children:(n=t.git)!=null&&n.commit?v("code",{children:[t.git.commit,t.git.branch?` (${t.git.branch})`:"",t.git.dirty?" ✻":""]}):"—"})]}),v("div",{children:[v("dt",{children:"Model"}),v("dd",{children:t.model})]}),v("div",{children:[v("dt",{children:"Generated"}),v("dd",{children:Br(t.generatedAt)})]}),v("div",{children:[v("dt",{children:"Cost"}),v("dd",{children:["$",t.costUsd.toFixed(3)]})]})]})]})]}),v(gn,{title:"Category scores",children:t.categories.map(l=>v($c,{label:l.name,fraction:l.fraction,meta:`${Math.round(l.fraction*100)}% · ${l.points} pts`},l.id))}),v("div",{class:"two-col",children:[t.strengths.length?v(gn,{title:"Strengths",children:v("ul",{class:"list good",children:t.strengths.map((l,i)=>v("li",{children:l},i))})}):null,t.weaknesses.length?v(gn,{title:"Weaknesses",children:v("ul",{class:"list bad",children:t.weaknesses.map((l,i)=>v("li",{children:l},i))})}):null]}),t.recommendations.length?v(gn,{title:"Recommendations",children:v("ul",{class:"recs",children:t.recommendations.map((l,i)=>v("li",{children:[v("span",{class:`pill ${l.priority}`,children:l.priority}),v("strong",{children:l.title}),v("span",{class:"muted",children:[" — ",l.detail]})]},i))})}):null]}):v(Cl,{children:"No benchmark report yet. Run `edsger benchmark`."})}function Gc({data:e}){const t=e.history.map(s=>s.runId),[n,l]=Xl(""),i=n&&e.runs[n]||e.latest||null;return i?v("div",{class:"stack",children:[t.length>1?v("div",{class:"run-picker",children:[v("label",{children:"Run"}),v("select",{value:i.runId,onChange:s=>l(s.target.value),children:e.history.slice().reverse().map(s=>v("option",{value:s.runId,children:[Br(s.generatedAt)," — ",s.overall,"/100 (",s.grade,")",s.commit?` · ${s.commit}`:""]},s.runId))})]}):null,i.categories.map(s=>v("section",{class:"card",children:[v("h2",{class:"card-title",children:[s.name," ",v("span",{class:"muted",children:["· ",Math.round(s.fraction*100),"%"]})]}),v("div",{class:"crit-list",children:s.criteria.map(c=>v("details",{class:"crit",children:[v("summary",{children:[v("span",{class:"score-chip",style:{background:Ur(c.rawScore/c.maxScore)},children:[c.rawScore,"/",c.maxScore]}),v("span",{class:"crit-title",children:c.title})]}),v("p",{class:"crit-just",children:c.justification}),c.evidence.length?v("ul",{class:"evidence",children:c.evidence.map((f,_)=>v("li",{children:v("code",{children:f})},_))}):null]},c.id))})]},s.id))]}):v(Cl,{children:"No benchmark report yet."})}function Uc({data:e}){var i;const t=e.history.slice().reverse();if(!t.length)return v(Cl,{children:"No runs recorded yet."});const n=((i=e.latest)==null?void 0:i.categories.map(s=>s.id))??Object.keys(t[0].categories),l=s=>{const c=t[s+1];return c?t[s].overall-c.overall:null};return v("section",{class:"card",children:[v("h2",{class:"card-title",children:["Run history (",t.length,")"]}),v("div",{class:"table-wrap",children:v("table",{class:"history",children:[v("thead",{children:v("tr",{children:[v("th",{children:"Date"}),v("th",{children:"Commit"}),v("th",{class:"num",children:"Score"}),v("th",{class:"num",children:"Δ"}),v("th",{children:"Grade"}),n.map(s=>v("th",{class:"num cat",children:s},s)),v("th",{class:"num",children:"Cost"})]})}),v("tbody",{children:t.map((s,c)=>{const f=l(c);return v("tr",{children:[v("td",{children:Br(s.generatedAt)}),v("td",{children:s.commit?v("code",{children:[s.commit,s.dirty?"✻":""]}):"—"}),v("td",{class:"num strong",children:s.overall}),v("td",{class:`num ${f==null?"":f>0?"up":f<0?"down":""}`,children:f==null?"":f>0?`+${f}`:f}),v("td",{children:[v("span",{class:"grade-dot",style:{color:is(s.grade)},children:"●"})," ",s.grade]}),n.map(_=>v("td",{class:"num cat",children:s.categories[_]==null?"—":`${Math.round(s.categories[_]*100)}%`},_)),v("td",{class:"num muted",children:["$",s.costUsd.toFixed(2)]})]},s.runId)})})]})})]})}const Bc=!0,Re="u-",Yc="uplot",jc=Re+"hz",Kc=Re+"vt",qc=Re+"title",Jc=Re+"wrap",Zc=Re+"under",Qc=Re+"over",Xc=Re+"axis",rl=Re+"off",eu=Re+"select",tu=Re+"cursor-x",lu=Re+"cursor-y",nu=Re+"cursor-pt",ru=Re+"legend",iu=Re+"live",ou=Re+"inline",su=Re+"series",cu=Re+"marker",Qi=Re+"label",uu=Re+"value",ql="width",Jl="height",jl="top",Xi="bottom",Ml="left",_r="right",Yr="#000",eo=Yr+"0",pr="mousemove",to="mousedown",mr="mouseup",lo="mouseenter",no="mouseleave",ro="dblclick",au="resize",fu="scroll",io="change",Dn="dppxchange",jr="--",Fl=typeof window<"u",Mr=Fl?document:null,Dl=Fl?window:null,du=Fl?navigator:null;let se,vn;function Er(){let e=devicePixelRatio;se!=e&&(se=e,vn&&Pr(io,vn,Er),vn=matchMedia(`(min-resolution: ${se-.001}dppx) and (max-resolution: ${se+.001}dppx)`),il(io,vn,Er),Dl.dispatchEvent(new CustomEvent(Dn)))}function rt(e,t){if(t!=null){let n=e.classList;!n.contains(t)&&n.add(t)}}function Dr(e,t){let n=e.classList;n.contains(t)&&n.remove(t)}function ve(e,t,n){e.style[t]=n+"px"}function yt(e,t,n,l){let i=Mr.createElement(e);return t!=null&&rt(i,t),n!=null&&n.insertBefore(i,l),i}function ht(e,t){return yt("div",e,t)}const oo=new WeakMap;function Pt(e,t,n,l,i){let s="translate("+t+"px,"+n+"px)",c=oo.get(e);s!=c&&(e.style.transform=s,oo.set(e,s),t<0||n<0||t>l||n>i?rt(e,rl):Dr(e,rl))}const so=new WeakMap;function co(e,t,n){let l=t+n,i=so.get(e);l!=i&&(so.set(e,l),e.style.background=t,e.style.borderColor=n)}const uo=new WeakMap;function ao(e,t,n,l){let i=t+""+n,s=uo.get(e);i!=s&&(uo.set(e,i),e.style.height=n+"px",e.style.width=t+"px",e.style.marginLeft=l?-t/2+"px":0,e.style.marginTop=l?-n/2+"px":0)}const Kr={passive:!0},hu={...Kr,capture:!0};function il(e,t,n,l){t.addEventListener(e,n,l?hu:Kr)}function Pr(e,t,n,l){t.removeEventListener(e,n,Kr)}Fl&&Er();function St(e,t,n,l){let i;n=n||0,l=l||t.length-1;let s=l<=2147483647;for(;l-n>1;)i=s?n+l>>1:it((n+l)/2),t[i]<e?n=i:l=i;return e-t[n]<=t[l]-e?n:l}function os(e){return(n,l,i)=>{let s=-1,c=-1;for(let f=l;f<=i;f++)if(e(n[f])){s=f;break}for(let f=i;f>=l;f--)if(e(n[f])){c=f;break}return[s,c]}}const ss=e=>e!=null,cs=e=>e!=null&&e>0,Hn=os(ss),_u=os(cs);function pu(e,t,n,l=0,i=!1){let s=i?_u:Hn,c=i?cs:ss;[t,n]=s(e,t,n);let f=e[t],_=e[t];if(t>-1)if(l==1)f=e[t],_=e[n];else if(l==-1)f=e[n],_=e[t];else for(let d=t;d<=n;d++){let w=e[d];c(w)&&(w<f?f=w:w>_&&(_=w))}return[f??fe,_??-fe]}function Fn(e,t,n,l){let i=_o(e),s=_o(t);e==t&&(i==-1?(e*=n,t/=n):(e/=n,t*=n));let c=n==10?Ht:us,f=i==1?it:_t,_=s==1?_t:it,d=f(c(Le(e))),w=_(c(Le(t))),m=Ll(n,d),h=Ll(n,w);return n==10&&(d<0&&(m=de(m,-d)),w<0&&(h=de(h,-w))),l||n==2?(e=m*i,t=h*s):(e=hs(e,m),t=On(t,h)),[e,t]}function qr(e,t,n,l){let i=Fn(e,t,n,l);return e==0&&(i[0]=0),t==0&&(i[1]=0),i}const Jr=.1,fo={mode:3,pad:Jr},en={pad:0,soft:null,mode:0},mu={min:en,max:en};function Pn(e,t,n,l){return Vn(n)?ho(e,t,n):(en.pad=n,en.soft=l?0:null,en.mode=l?3:0,ho(e,t,mu))}function ie(e,t){return e??t}function gu(e,t,n){for(t=ie(t,0),n=ie(n,e.length-1);t<=n;){if(e[t]!=null)return!0;t++}return!1}function ho(e,t,n){let l=n.min,i=n.max,s=ie(l.pad,0),c=ie(i.pad,0),f=ie(l.hard,-fe),_=ie(i.hard,fe),d=ie(l.soft,fe),w=ie(i.soft,-fe),m=ie(l.mode,0),h=ie(i.mode,0),b=t-e,x=Ht(b),R=qe(Le(e),Le(t)),P=Ht(R),N=Le(P-x);(b<1e-24||N>10)&&(b=0,(e==0||t==0)&&(b=1e-24,m==2&&d!=fe&&(s=0),h==2&&w!=-fe&&(c=0)));let y=b||R||1e3,E=Ht(y),A=Ll(10,it(E)),U=y*(b==0?e==0?.1:1:s),C=de(hs(e-U,A/10),24),K=e>=d&&(m==1||m==3&&C<=d||m==2&&C>=d)?d:fe,B=qe(f,C<K&&e>=K?K:bt(K,C)),J=y*(b==0?t==0?.1:1:c),$=de(On(t+J,A/10),24),M=t<=w&&(h==1||h==3&&$>=w||h==2&&$<=w)?w:-fe,Z=bt(_,$>M&&t<=M?M:qe(M,$));return B==Z&&B==0&&(Z=100),[B,Z]}const vu=new Intl.NumberFormat(Fl?du.language:"en-US"),Zr=e=>vu.format(e),ot=Math,xn=ot.PI,Le=ot.abs,it=ot.floor,Ce=ot.round,_t=ot.ceil,bt=ot.min,qe=ot.max,Ll=ot.pow,_o=ot.sign,Ht=ot.log10,us=ot.log2,wu=(e,t=1)=>ot.sinh(e)*t,gr=(e,t=1)=>ot.asinh(e/t),fe=1/0;function po(e){return(Ht((e^e>>31)-(e>>31))|0)+1}function Cr(e,t,n){return bt(qe(e,t),n)}function as(e){return typeof e=="function"}function ee(e){return as(e)?e:()=>e}const yu=()=>{},fs=e=>e,ds=(e,t)=>t,Su=e=>null,mo=e=>!0,go=(e,t)=>e==t,bu=/\.\d*?(?=9{6,}|0{6,})/gm,ol=e=>{if(ps(e)||Bt.has(e))return e;const t=`${e}`,n=t.match(bu);if(n==null)return e;let l=n[0].length-1;if(t.indexOf("e-")!=-1){let[i,s]=t.split("e");return+`${ol(i)}e${s}`}return de(e,l)};function ll(e,t){return ol(de(ol(e/t))*t)}function On(e,t){return ol(_t(ol(e/t))*t)}function hs(e,t){return ol(it(ol(e/t))*t)}function de(e,t=0){if(ps(e))return e;let n=10**t,l=e*n*(1+Number.EPSILON);return Ce(l)/n}const Bt=new Map;function _s(e){return((""+e).split(".")[1]||"").length}function nn(e,t,n,l){let i=[],s=l.map(_s);for(let c=t;c<n;c++){let f=Le(c),_=de(Ll(e,c),f);for(let d=0;d<l.length;d++){let w=e==10?+`${l[d]}e${c}`:l[d]*_,m=(c>=0?0:f)+(c>=s[d]?0:s[d]),h=e==10?w:de(w,m);i.push(h),Bt.set(h,m)}}return i}const tn={},Qr=[],Rl=[null,null],Ut=Array.isArray,ps=Number.isInteger,ku=e=>e===void 0;function vo(e){return typeof e=="string"}function Vn(e){let t=!1;if(e!=null){let n=e.constructor;t=n==null||n==Object}return t}function xu(e){return e!=null&&typeof e=="object"}const Tu=Object.getPrototypeOf(Uint8Array),ms="__proto__";function Nl(e,t=Vn){let n;if(Ut(e)){let l=e.find(i=>i!=null);if(Ut(l)||t(l)){n=Array(e.length);for(let i=0;i<e.length;i++)n[i]=Nl(e[i],t)}else n=e.slice()}else if(e instanceof Tu)n=e.slice();else if(t(e)){n={};for(let l in e)l!=ms&&(n[l]=Nl(e[l],t))}else n=e;return n}function Ee(e){let t=arguments;for(let n=1;n<t.length;n++){let l=t[n];for(let i in l)i!=ms&&(Vn(e[i])?Ee(e[i],Nl(l[i])):e[i]=Nl(l[i]))}return e}const Au=0,Mu=1,Eu=2;function Du(e,t,n){for(let l=0,i,s=-1;l<t.length;l++){let c=t[l];if(c>s){for(i=c-1;i>=0&&e[i]==null;)e[i--]=null;for(i=c+1;i<n&&e[i]==null;)e[s=i++]=null}}}function Pu(e,t){if(Ru(e)){let c=e[0].slice();for(let f=1;f<e.length;f++)c.push(...e[f].slice(1));return Nu(c[0])||(c=Lu(c)),c}let n=new Set;for(let c=0;c<e.length;c++){let _=e[c][0],d=_.length;for(let w=0;w<d;w++)n.add(_[w])}let l=[Array.from(n).sort((c,f)=>c-f)],i=l[0].length,s=new Map;for(let c=0;c<i;c++)s.set(l[0][c],c);for(let c=0;c<e.length;c++){let f=e[c],_=f[0];for(let d=1;d<f.length;d++){let w=f[d],m=Array(i).fill(void 0),h=t?t[c][d]:Mu,b=[];for(let x=0;x<w.length;x++){let R=w[x],P=s.get(_[x]);R===null?h!=Au&&(m[P]=R,h==Eu&&b.push(P)):m[P]=R}Du(m,b,i),l.push(m)}}return l}const Cu=typeof queueMicrotask>"u"?e=>Promise.resolve().then(e):queueMicrotask;function Lu(e){let t=e[0],n=t.length,l=Array(n);for(let s=0;s<l.length;s++)l[s]=s;l.sort((s,c)=>t[s]-t[c]);let i=[];for(let s=0;s<e.length;s++){let c=e[s],f=Array(n);for(let _=0;_<n;_++)f[_]=c[l[_]];i.push(f)}return i}function Ru(e){let t=e[0][0],n=t.length;for(let l=1;l<e.length;l++){let i=e[l][0];if(i.length!=n)return!1;if(i!=t){for(let s=0;s<n;s++)if(i[s]!=t[s])return!1}}return!0}function Nu(e,t=100){const n=e.length;if(n<=1)return!0;let l=0,i=n-1;for(;l<=i&&e[l]==null;)l++;for(;i>=l&&e[i]==null;)i--;if(i<=l)return!0;const s=qe(1,it((i-l+1)/t));for(let c=e[l],f=l+s;f<=i;f+=s){const _=e[f];if(_!=null){if(_<=c)return!1;c=_}}return!0}const gs=["January","February","March","April","May","June","July","August","September","October","November","December"],vs=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function ws(e){return e.slice(0,3)}const Hu=vs.map(ws),Fu=gs.map(ws),Ou={MMMM:gs,MMM:Fu,WWWW:vs,WWW:Hu};function Kl(e){return(e<10?"0":"")+e}function Vu(e){return(e<10?"00":e<100?"0":"")+e}const zu={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,t)=>t.MMMM[e.getMonth()],MMM:(e,t)=>t.MMM[e.getMonth()],MM:e=>Kl(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>Kl(e.getDate()),D:e=>e.getDate(),WWWW:(e,t)=>t.WWWW[e.getDay()],WWW:(e,t)=>t.WWW[e.getDay()],HH:e=>Kl(e.getHours()),H:e=>e.getHours(),h:e=>{let t=e.getHours();return t==0?12:t>12?t-12:t},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>Kl(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>Kl(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>Vu(e.getMilliseconds())};function Xr(e,t){t=t||Ou;let n=[],l=/\{([a-z]+)\}|[^{]+/gi,i;for(;i=l.exec(e);)n.push(i[0][0]=="{"?zu[i[1]]:i[0]);return s=>{let c="";for(let f=0;f<n.length;f++)c+=typeof n[f]=="string"?n[f]:n[f](s,t);return c}}const Wu=new Intl.DateTimeFormat().resolvedOptions().timeZone;function $u(e,t){let n;return t=="UTC"||t=="Etc/UTC"?n=new Date(+e+e.getTimezoneOffset()*6e4):t==Wu?n=e:(n=new Date(e.toLocaleString("en-US",{timeZone:t})),n.setMilliseconds(e.getMilliseconds())),n}const ys=e=>e%1==0,Cn=[1,2,2.5,5],Iu=nn(10,-32,0,Cn),Ss=nn(10,0,32,Cn),Gu=Ss.filter(ys),nl=Iu.concat(Ss),ei=`
|
|
2
|
+
`,bs="{YYYY}",wo=ei+bs,ks="{M}/{D}",Zl=ei+ks,wn=Zl+"/{YY}",xs="{aa}",Uu="{h}:{mm}",El=Uu+xs,yo=ei+El,So=":{ss}",ce=null;function Ts(e){let t=e*1e3,n=t*60,l=n*60,i=l*24,s=i*30,c=i*365,_=(e==1?nn(10,0,3,Cn).filter(ys):nn(10,-3,0,Cn)).concat([t,t*5,t*10,t*15,t*30,n,n*5,n*10,n*15,n*30,l,l*2,l*3,l*4,l*6,l*8,l*12,i,i*2,i*3,i*4,i*5,i*6,i*7,i*8,i*9,i*10,i*15,s,s*2,s*3,s*4,s*6,c,c*2,c*5,c*10,c*25,c*50,c*100]);const d=[[c,bs,ce,ce,ce,ce,ce,ce,1],[i*28,"{MMM}",wo,ce,ce,ce,ce,ce,1],[i,ks,wo,ce,ce,ce,ce,ce,1],[l,"{h}"+xs,wn,ce,Zl,ce,ce,ce,1],[n,El,wn,ce,Zl,ce,ce,ce,1],[t,So,wn+" "+El,ce,Zl+" "+El,ce,yo,ce,1],[e,So+".{fff}",wn+" "+El,ce,Zl+" "+El,ce,yo,ce,1]];function w(m){return(h,b,x,R,P,N)=>{let y=[],E=P>=c,A=P>=s&&P<c,U=m(x),C=de(U*e,3),K=vr(U.getFullYear(),E?0:U.getMonth(),A||E?1:U.getDate()),B=de(K*e,3);if(A||E){let J=A?P/s:0,$=E?P/c:0,M=C==B?C:de(vr(K.getFullYear()+$,K.getMonth()+J,1)*e,3),Z=new Date(Ce(M/e)),O=Z.getFullYear(),Y=Z.getMonth();for(let I=0;M<=R;I++){let te=vr(O+$*I,Y+J*I,1),W=te-m(de(te*e,3));M=de((+te+W)*e,3),M<=R&&y.push(M)}}else{let J=P>=i?i:P,$=it(x)-it(C),M=B+$+On(C-B,J);y.push(M);let Z=m(M),O=Z.getHours()+Z.getMinutes()/n+Z.getSeconds()/l,Y=P/l,I=h.axes[b]._space,te=N/I;for(;M=de(M+P,e==1?0:3),!(M>R);)if(Y>1){let W=it(de(O+Y,6))%24,le=m(M).getHours()-W;le>1&&(le=-1),M-=le*l,O=(O+Y)%24;let ue=y[y.length-1];de((M-ue)/P,3)*te>=.7&&y.push(M)}else y.push(M)}return y}}return[_,d,w]}const[Bu,Yu,ju]=Ts(1),[Ku,qu,Ju]=Ts(.001);nn(2,-53,53,[1]);function bo(e,t){return e.map(n=>n.map((l,i)=>i==0||i==8||l==null?l:t(i==1||n[8]==0?l:n[1]+l)))}function ko(e,t){return(n,l,i,s,c)=>{let f=t.find(x=>c>=x[0])||t[t.length-1],_,d,w,m,h,b;return l.map(x=>{let R=e(x),P=R.getFullYear(),N=R.getMonth(),y=R.getDate(),E=R.getHours(),A=R.getMinutes(),U=R.getSeconds(),C=P!=_&&f[2]||N!=d&&f[3]||y!=w&&f[4]||E!=m&&f[5]||A!=h&&f[6]||U!=b&&f[7]||f[1];return _=P,d=N,w=y,m=E,h=A,b=U,C(R)})}}function Zu(e,t){let n=Xr(t);return(l,i,s,c,f)=>i.map(_=>n(e(_)))}function vr(e,t,n){return new Date(e,t,n)}function xo(e,t){return t(e)}const Qu="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function To(e,t){return(n,l,i,s)=>s==null?jr:t(e(l))}function Xu(e,t){let n=e.series[t];return n.width?n.stroke(e,t):n.points.width?n.points.stroke(e,t):null}function ea(e,t){return e.series[t].fill(e,t)}const ta={show:!0,live:!0,isolate:!1,mount:yu,markers:{show:!0,width:2,stroke:Xu,fill:ea,dash:"solid"},idx:null,idxs:null,values:[]};function la(e,t){let n=e.cursor.points,l=ht(),i=n.size(e,t);ve(l,ql,i),ve(l,Jl,i);let s=i/-2;ve(l,"marginLeft",s),ve(l,"marginTop",s);let c=n.width(e,t,i);return c&&ve(l,"borderWidth",c),l}function na(e,t){let n=e.series[t].points;return n._fill||n._stroke}function ra(e,t){let n=e.series[t].points;return n._stroke||n._fill}function ia(e,t){return e.series[t].points.size}const wr=[0,0];function oa(e,t,n){return wr[0]=t,wr[1]=n,wr}function yn(e,t,n,l=!0){return i=>{i.button==0&&(!l||i.target==t)&&n(i)}}function yr(e,t,n,l=!0){return i=>{(!l||i.target==t)&&n(i)}}const sa={show:!0,x:!0,y:!0,lock:!1,move:oa,points:{one:!1,show:la,size:ia,width:0,stroke:ra,fill:na},bind:{mousedown:yn,mouseup:yn,click:yn,dblclick:yn,mousemove:yr,mouseleave:yr,mouseenter:yr},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,t,n,l,i)=>l-i,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},As={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},ti=Ee({},As,{filter:ds}),Ms=Ee({},ti,{size:10}),Es=Ee({},As,{show:!1}),li='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',Ds="bold "+li,Ps=1.5,Ao={show:!0,scale:"x",stroke:Yr,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Ds,side:2,grid:ti,ticks:Ms,border:Es,font:li,lineGap:Ps,rotate:0},ca="Value",ua="Time",Mo={show:!0,scale:"x",auto:!1,sorted:1,min:fe,max:-fe,idxs:[]};function aa(e,t,n,l,i){return t.map(s=>s==null?"":Zr(s))}function fa(e,t,n,l,i,s,c){let f=[],_=Bt.get(i)||0;n=c?n:de(On(n,i),_);for(let d=n;d<=l;d=de(d+i,_))f.push(Object.is(d,-0)?0:d);return f}function Lr(e,t,n,l,i,s,c){const f=[],_=e.scales[e.axes[t].scale].log,d=_==10?Ht:us,w=it(d(n));i=Ll(_,w),_==10&&(i=nl[St(i,nl)]);let m=n,h=i*_;_==10&&(h=nl[St(h,nl)]);do f.push(m),m=m+i,_==10&&!Bt.has(m)&&(m=de(m,Bt.get(i))),m>=h&&(i=m,h=i*_,_==10&&(h=nl[St(h,nl)]));while(m<=l);return f}function da(e,t,n,l,i,s,c){let _=e.scales[e.axes[t].scale].asinh,d=l>_?Lr(e,t,qe(_,n),l,i):[_],w=l>=0&&n<=0?[0]:[];return(n<-_?Lr(e,t,qe(_,-l),-n,i):[_]).reverse().map(h=>-h).concat(w,d)}const Cs=/./,ha=/[12357]/,_a=/[125]/,Eo=/1/,Rr=(e,t,n,l)=>e.map((i,s)=>t==4&&i==0||s%l==0&&n.test(i.toExponential()[i<0?1:0])?i:null);function pa(e,t,n,l,i){let s=e.axes[n],c=s.scale,f=e.scales[c],_=e.valToPos,d=s._space,w=_(10,c),m=_(9,c)-w>=d?Cs:_(7,c)-w>=d?ha:_(5,c)-w>=d?_a:Eo;if(m==Eo){let h=Le(_(1,c)-w);if(h<d)return Rr(t.slice().reverse(),f.distr,m,_t(d/h)).reverse()}return Rr(t,f.distr,m,1)}function ma(e,t,n,l,i){let s=e.axes[n],c=s.scale,f=s._space,_=e.valToPos,d=Le(_(1,c)-_(2,c));return d<f?Rr(t.slice().reverse(),3,Cs,_t(f/d)).reverse():t}function ga(e,t,n,l){return l==null?jr:t==null?"":Zr(t)}const Do={show:!0,scale:"y",stroke:Yr,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Ds,side:3,grid:ti,ticks:Ms,border:Es,font:li,lineGap:Ps,rotate:0};function va(e,t){let n=3+(e||1)*2;return de(n*t,3)}function wa(e,t){let{scale:n,idxs:l}=e.series[0],i=e._data[0],s=e.valToPos(i[l[0]],n,!0),c=e.valToPos(i[l[1]],n,!0),f=Le(c-s),_=e.series[t],d=f/(_.points.space*se);return l[1]-l[0]<=d}const Po={scale:null,auto:!0,sorted:0,min:fe,max:-fe},Ls=(e,t,n,l,i)=>i,Co={show:!0,auto:!0,sorted:0,gaps:Ls,alpha:1,facets:[Ee({},Po,{scale:"x"}),Ee({},Po,{scale:"y"})]},Lo={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Ls,alpha:1,points:{show:wa,filter:null},values:null,min:fe,max:-fe,idxs:[],path:null,clip:null};function ya(e,t,n,l,i){return n/10}const Rs={time:Bc,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},Sa=Ee({},Rs,{time:!1,ori:1}),Ro={};function Ns(e,t){let n=Ro[e];return n||(n={key:e,plots:[],sub(l){n.plots.push(l)},unsub(l){n.plots=n.plots.filter(i=>i!=l)},pub(l,i,s,c,f,_,d){for(let w=0;w<n.plots.length;w++)n.plots[w]!=i&&n.plots[w].pub(l,i,s,c,f,_,d)}},e!=null&&(Ro[e]=n)),n}const Hl=1,Nr=2;function sl(e,t,n){const l=e.mode,i=e.series[t],s=l==2?e._data[t]:e._data,c=e.scales,f=e.bbox;let _=s[0],d=l==2?s[1]:s[t],w=l==2?c[i.facets[0].scale]:c[e.series[0].scale],m=l==2?c[i.facets[1].scale]:c[i.scale],h=f.left,b=f.top,x=f.width,R=f.height,P=e.valToPosH,N=e.valToPosV;return w.ori==0?n(i,_,d,w,m,P,N,h,b,x,R,Wn,Ol,In,Fs,Vs):n(i,_,d,w,m,N,P,b,h,R,x,$n,Vl,ii,Os,zs)}function ni(e,t){let n=0,l=0,i=ie(e.bands,Qr);for(let s=0;s<i.length;s++){let c=i[s];c.series[0]==t?n=c.dir:c.series[1]==t&&(c.dir==1?l|=1:l|=2)}return[n,l==1?-1:l==2?1:l==3?2:0]}function ba(e,t,n,l,i){let s=e.mode,c=e.series[t],f=s==2?c.facets[1].scale:c.scale,_=e.scales[f];return i==-1?_.min:i==1?_.max:_.distr==3?_.dir==1?_.min:_.max:0}function Ft(e,t,n,l,i,s){return sl(e,t,(c,f,_,d,w,m,h,b,x,R,P)=>{let N=c.pxRound;const y=d.dir*(d.ori==0?1:-1),E=d.ori==0?Ol:Vl;let A,U;y==1?(A=n,U=l):(A=l,U=n);let C=N(m(f[A],d,R,b)),K=N(h(_[A],w,P,x)),B=N(m(f[U],d,R,b)),J=N(h(s==1?w.max:w.min,w,P,x)),$=new Path2D(i);return E($,B,J),E($,C,J),E($,C,K),$})}function zn(e,t,n,l,i,s){let c=null;if(e.length>0){c=new Path2D;const f=t==0?In:ii;let _=n;for(let m=0;m<e.length;m++){let h=e[m];if(h[1]>h[0]){let b=h[0]-_;b>0&&f(c,_,l,b,l+s),_=h[1]}}let d=n+i-_,w=10;d>0&&f(c,_,l-w/2,d,l+s+w)}return c}function ka(e,t,n){let l=e[e.length-1];l&&l[0]==t?l[1]=n:e.push([t,n])}function ri(e,t,n,l,i,s,c){let f=[],_=e.length;for(let d=i==1?n:l;d>=n&&d<=l;d+=i)if(t[d]===null){let m=d,h=d;if(i==1)for(;++d<=l&&t[d]===null;)h=d;else for(;--d>=n&&t[d]===null;)h=d;let b=s(e[m]),x=h==m?b:s(e[h]),R=m-i;b=c<=0&&R>=0&&R<_?s(e[R]):b;let N=h+i;x=c>=0&&N>=0&&N<_?s(e[N]):x,x>=b&&f.push([b,x])}return f}function No(e){return e==0?fs:e==1?Ce:t=>ll(t,e)}function Hs(e){let t=e==0?Wn:$n,n=e==0?(i,s,c,f,_,d)=>{i.arcTo(s,c,f,_,d)}:(i,s,c,f,_,d)=>{i.arcTo(c,s,_,f,d)},l=e==0?(i,s,c,f,_)=>{i.rect(s,c,f,_)}:(i,s,c,f,_)=>{i.rect(c,s,_,f)};return(i,s,c,f,_,d=0,w=0)=>{d==0&&w==0?l(i,s,c,f,_):(d=bt(d,f/2,_/2),w=bt(w,f/2,_/2),t(i,s+d,c),n(i,s+f,c,s+f,c+_,d),n(i,s+f,c+_,s,c+_,w),n(i,s,c+_,s,c,w),n(i,s,c,s+f,c,d),i.closePath())}}const Wn=(e,t,n)=>{e.moveTo(t,n)},$n=(e,t,n)=>{e.moveTo(n,t)},Ol=(e,t,n)=>{e.lineTo(t,n)},Vl=(e,t,n)=>{e.lineTo(n,t)},In=Hs(0),ii=Hs(1),Fs=(e,t,n,l,i,s)=>{e.arc(t,n,l,i,s)},Os=(e,t,n,l,i,s)=>{e.arc(n,t,l,i,s)},Vs=(e,t,n,l,i,s,c)=>{e.bezierCurveTo(t,n,l,i,s,c)},zs=(e,t,n,l,i,s,c)=>{e.bezierCurveTo(n,t,i,l,c,s)};function Ws(e){return(t,n,l,i,s)=>sl(t,n,(c,f,_,d,w,m,h,b,x,R,P)=>{let{pxRound:N,points:y}=c,E,A;d.ori==0?(E=Wn,A=Fs):(E=$n,A=Os);const U=de(y.width*se,3);let C=(y.size-y.width)/2*se,K=de(C*2,3),B=new Path2D,J=new Path2D,{left:$,top:M,width:Z,height:O}=t.bbox;In(J,$-K,M-K,Z+K*2,O+K*2);const Y=I=>{if(_[I]!=null){let te=N(m(f[I],d,R,b)),W=N(h(_[I],w,P,x));E(B,te+C,W),A(B,te,W,C,0,xn*2)}};if(s)s.forEach(Y);else for(let I=l;I<=i;I++)Y(I);return{stroke:U>0?B:null,fill:B,clip:J,flags:Hl|Nr}})}function $s(e){return(t,n,l,i,s,c)=>{l!=i&&(s!=l&&c!=l&&e(t,n,l),s!=i&&c!=i&&e(t,n,i),e(t,n,c))}}const xa=$s(Ol),Ta=$s(Vl);function Is(e){const t=ie(e==null?void 0:e.alignGaps,0);return(n,l,i,s)=>sl(n,l,(c,f,_,d,w,m,h,b,x,R,P)=>{[i,s]=Hn(_,i,s);let N=c.pxRound,y=O=>N(m(O,d,R,b)),E=O=>N(h(O,w,P,x)),A,U;d.ori==0?(A=Ol,U=xa):(A=Vl,U=Ta);const C=d.dir*(d.ori==0?1:-1),K={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Hl},B=K.stroke;let J=!1;if(s-i>=R*4){let O=V=>n.posToVal(V,d.key,!0),Y=null,I=null,te,W,Je,we=y(f[C==1?i:s]),le=y(f[i]),ue=y(f[s]),Q=O(C==1?le+1:ue-1);for(let V=C==1?i:s;V>=i&&V<=s;V+=C){let De=f[V],ye=(C==1?De<Q:De>Q)?we:y(De),ne=_[V];ye==we?ne!=null?(W=ne,Y==null?(A(B,ye,E(W)),te=Y=I=W):W<Y?Y=W:W>I&&(I=W)):ne===null&&(J=!0):(Y!=null&&U(B,we,E(Y),E(I),E(te),E(W)),ne!=null?(W=ne,A(B,ye,E(W)),Y=I=te=W):(Y=I=null,ne===null&&(J=!0)),we=ye,Q=O(we+C))}Y!=null&&Y!=I&&Je!=we&&U(B,we,E(Y),E(I),E(te),E(W))}else for(let O=C==1?i:s;O>=i&&O<=s;O+=C){let Y=_[O];Y===null?J=!0:Y!=null&&A(B,y(f[O]),E(Y))}let[M,Z]=ni(n,l);if(c.fill!=null||M!=0){let O=K.fill=new Path2D(B),Y=c.fillTo(n,l,c.min,c.max,M),I=E(Y),te=y(f[i]),W=y(f[s]);C==-1&&([W,te]=[te,W]),A(O,W,I),A(O,te,I)}if(!c.spanGaps){let O=[];J&&O.push(...ri(f,_,i,s,C,y,t)),K.gaps=O=c.gaps(n,l,i,s,O),K.clip=zn(O,d.ori,b,x,R,P)}return Z!=0&&(K.band=Z==2?[Ft(n,l,i,s,B,-1),Ft(n,l,i,s,B,1)]:Ft(n,l,i,s,B,Z)),K})}function Aa(e){const t=ie(e.align,1),n=ie(e.ascDesc,!1),l=ie(e.alignGaps,0),i=ie(e.extend,!1);return(s,c,f,_)=>sl(s,c,(d,w,m,h,b,x,R,P,N,y,E)=>{[f,_]=Hn(m,f,_);let A=d.pxRound,{left:U,width:C}=s.bbox,K=le=>A(x(le,h,y,P)),B=le=>A(R(le,b,E,N)),J=h.ori==0?Ol:Vl;const $={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Hl},M=$.stroke,Z=h.dir*(h.ori==0?1:-1);let O=B(m[Z==1?f:_]),Y=K(w[Z==1?f:_]),I=Y,te=Y;i&&t==-1&&(te=U,J(M,te,O)),J(M,Y,O);for(let le=Z==1?f:_;le>=f&&le<=_;le+=Z){let ue=m[le];if(ue==null)continue;let Q=K(w[le]),V=B(ue);t==1?J(M,Q,O):J(M,I,V),J(M,Q,V),O=V,I=Q}let W=I;i&&t==1&&(W=U+C,J(M,W,O));let[Je,we]=ni(s,c);if(d.fill!=null||Je!=0){let le=$.fill=new Path2D(M),ue=d.fillTo(s,c,d.min,d.max,Je),Q=B(ue);J(le,W,Q),J(le,te,Q)}if(!d.spanGaps){let le=[];le.push(...ri(w,m,f,_,Z,K,l));let ue=d.width*se/2,Q=n||t==1?ue:-ue,V=n||t==-1?-ue:ue;le.forEach(De=>{De[0]+=Q,De[1]+=V}),$.gaps=le=d.gaps(s,c,f,_,le),$.clip=zn(le,h.ori,P,N,y,E)}return we!=0&&($.band=we==2?[Ft(s,c,f,_,M,-1),Ft(s,c,f,_,M,1)]:Ft(s,c,f,_,M,we)),$})}function Ho(e,t,n,l,i,s,c=fe){if(e.length>1){let f=null;for(let _=0,d=1/0;_<e.length;_++)if(t[_]!==void 0){if(f!=null){let w=Le(e[_]-e[f]);w<d&&(d=w,c=Le(n(e[_],l,i,s)-n(e[f],l,i,s)))}f=_}}return c}function Ma(e){e=e||tn;const t=ie(e.size,[.6,fe,1]),n=e.align||0,l=e.gap||0;let i=e.radius;i=i==null?[0,0]:typeof i=="number"?[i,0]:i;const s=ee(i),c=1-t[0],f=ie(t[1],fe),_=ie(t[2],1),d=ie(e.disp,tn),w=ie(e.each,b=>{}),{fill:m,stroke:h}=d;return(b,x,R,P)=>sl(b,x,(N,y,E,A,U,C,K,B,J,$,M)=>{let Z=N.pxRound,O=n,Y=l*se,I=f*se,te=_*se,W,Je;A.ori==0?[W,Je]=s(b,x):[Je,W]=s(b,x);const we=A.dir*(A.ori==0?1:-1);let le=A.ori==0?In:ii,ue=A.ori==0?w:(H,_e,Pe,fl,Kt,xt,qt)=>{w(H,_e,Pe,Kt,fl,qt,xt)},Q=ie(b.bands,Qr).find(H=>H.series[0]==x),V=Q!=null?Q.dir:0,De=N.fillTo(b,x,N.min,N.max,V),Ue=Z(K(De,U,M,J)),ye,ne,pt,Xe=$,be=Z(N.width*se),kt=!1,Ct=null,st=null,Ot=null,cl=null;m!=null&&(be==0||h!=null)&&(kt=!0,Ct=m.values(b,x,R,P),st=new Map,new Set(Ct).forEach(H=>{H!=null&&st.set(H,new Path2D)}),be>0&&(Ot=h.values(b,x,R,P),cl=new Map,new Set(Ot).forEach(H=>{H!=null&&cl.set(H,new Path2D)})));let{x0:ul,size:zl}=d;if(ul!=null&&zl!=null){O=1,y=ul.values(b,x,R,P),ul.unit==2&&(y=y.map(Pe=>b.posToVal(B+Pe*$,A.key,!0)));let H=zl.values(b,x,R,P);zl.unit==2?ne=H[0]*$:ne=C(H[0],A,$,B)-C(0,A,$,B),Xe=Ho(y,E,C,A,$,B,Xe),pt=Xe-ne+Y}else Xe=Ho(y,E,C,A,$,B,Xe),pt=Xe*c+Y,ne=Xe-pt;pt<1&&(pt=0),be>=ne/2&&(be=0),pt<5&&(Z=fs);let on=pt>0,Yt=Xe-pt-(on?be:0);ne=Z(Cr(Yt,te,I)),ye=(O==0?ne/2:O==we?0:ne)-O*we*((O==0?Y/2:0)+(on?be/2:0));const Be={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},al=kt?null:new Path2D;let Lt=null;if(Q!=null)Lt=b.data[Q.series[1]];else{let{y0:H,y1:_e}=d;H!=null&&_e!=null&&(E=_e.values(b,x,R,P),Lt=H.values(b,x,R,P))}let jt=W*ne,q=Je*ne;for(let H=we==1?R:P;H>=R&&H<=P;H+=we){let _e=E[H];if(_e==null)continue;if(Lt!=null){let Ze=Lt[H]??0;if(_e-Ze==0)continue;Ue=K(Ze,U,M,J)}let Pe=A.distr!=2||d!=null?y[H]:H,fl=C(Pe,A,$,B),Kt=K(ie(_e,De),U,M,J),xt=Z(fl-ye),qt=Z(qe(Kt,Ue)),et=Z(bt(Kt,Ue)),ct=qt-et;if(_e!=null){let Ze=_e<0?q:jt,mt=_e<0?jt:q;kt?(be>0&&Ot[H]!=null&&le(cl.get(Ot[H]),xt,et+it(be/2),ne,qe(0,ct-be),Ze,mt),Ct[H]!=null&&le(st.get(Ct[H]),xt,et+it(be/2),ne,qe(0,ct-be),Ze,mt)):le(al,xt,et+it(be/2),ne,qe(0,ct-be),Ze,mt),ue(b,x,H,xt-be/2,et,ne+be,ct)}}return be>0?Be.stroke=kt?cl:al:kt||(Be._fill=N.width==0?N._fill:N._stroke??N._fill,Be.width=0),Be.fill=kt?st:al,Be})}function Ea(e,t){const n=ie(t==null?void 0:t.alignGaps,0);return(l,i,s,c)=>sl(l,i,(f,_,d,w,m,h,b,x,R,P,N)=>{[s,c]=Hn(d,s,c);let y=f.pxRound,E=W=>y(h(W,w,P,x)),A=W=>y(b(W,m,N,R)),U,C,K;w.ori==0?(U=Wn,K=Ol,C=Vs):(U=$n,K=Vl,C=zs);const B=w.dir*(w.ori==0?1:-1);let J=E(_[B==1?s:c]),$=J,M=[],Z=[];for(let W=B==1?s:c;W>=s&&W<=c;W+=B)if(d[W]!=null){let we=_[W],le=E(we);M.push($=le),Z.push(A(d[W]))}const O={stroke:e(M,Z,U,K,C,y),fill:null,clip:null,band:null,gaps:null,flags:Hl},Y=O.stroke;let[I,te]=ni(l,i);if(f.fill!=null||I!=0){let W=O.fill=new Path2D(Y),Je=f.fillTo(l,i,f.min,f.max,I),we=A(Je);K(W,$,we),K(W,J,we)}if(!f.spanGaps){let W=[];W.push(...ri(_,d,s,c,B,E,n)),O.gaps=W=f.gaps(l,i,s,c,W),O.clip=zn(W,w.ori,x,R,P,N)}return te!=0&&(O.band=te==2?[Ft(l,i,s,c,Y,-1),Ft(l,i,s,c,Y,1)]:Ft(l,i,s,c,Y,te)),O})}function Da(e){return Ea(Pa,e)}function Pa(e,t,n,l,i,s){const c=e.length;if(c<2)return null;const f=new Path2D;if(n(f,e[0],t[0]),c==2)l(f,e[1],t[1]);else{let _=Array(c),d=Array(c-1),w=Array(c-1),m=Array(c-1);for(let h=0;h<c-1;h++)w[h]=t[h+1]-t[h],m[h]=e[h+1]-e[h],d[h]=w[h]/m[h];_[0]=d[0];for(let h=1;h<c-1;h++)d[h]===0||d[h-1]===0||d[h-1]>0!=d[h]>0?_[h]=0:(_[h]=3*(m[h-1]+m[h])/((2*m[h]+m[h-1])/d[h-1]+(m[h]+2*m[h-1])/d[h]),isFinite(_[h])||(_[h]=0));_[c-1]=d[c-2];for(let h=0;h<c-1;h++)i(f,e[h]+m[h]/3,t[h]+_[h]*m[h]/3,e[h+1]-m[h]/3,t[h+1]-_[h+1]*m[h]/3,e[h+1],t[h+1])}return f}const Hr=new Set;function Fo(){for(let e of Hr)e.syncRect(!0)}Fl&&(il(au,Dl,Fo),il(fu,Dl,Fo,!0),il(Dn,Dl,()=>{Ge.pxRatio=se}));const Ca=Is(),La=Ws();function Oo(e,t,n,l){return(l?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((s,c)=>Fr(s,c,t,n))}function Ra(e,t){return e.map((n,l)=>l==0?{}:Ee({},t,n))}function Fr(e,t,n,l){return Ee({},t==0?n:l,e)}function Gs(e,t,n){return t==null?Rl:[t,n]}const Na=Gs;function Ha(e,t,n){return t==null?Rl:Pn(t,n,Jr,!0)}function Us(e,t,n,l){return t==null?Rl:Fn(t,n,e.scales[l].log,!1)}const Fa=Us;function Bs(e,t,n,l){return t==null?Rl:qr(t,n,e.scales[l].log,!1)}const Oa=Bs;function Va(e,t,n,l,i){let s=qe(po(e),po(t)),c=t-e,f=St(i/l*c,n);do{let _=n[f],d=l*_/c;if(d>=i&&s+(_<5?Bt.get(_):0)<=17)return[_,d]}while(++f<n.length);return[0,0]}function Vo(e){let t,n;return e=e.replace(/(\d+)px/,(l,i)=>(t=Ce((n=+i)*se))+"px"),[e,t,n]}function za(e){e.show&&[e.font,e.labelFont].forEach(t=>{let n=de(t[2]*se,1);t[0]=t[0].replace(/[0-9.]+px/,n+"px"),t[1]=n})}function Ge(e,t,n){const l={mode:ie(e.mode,1)},i=l.mode;function s(r,o,u,a){let p=o.valToPct(r);return a+u*(o.dir==-1?1-p:p)}function c(r,o,u,a){let p=o.valToPct(r);return a+u*(o.dir==-1?p:1-p)}function f(r,o,u,a){return o.ori==0?s(r,o,u,a):c(r,o,u,a)}l.valToPosH=s,l.valToPosV=c;let _=!1;l.status=0;const d=l.root=ht(Yc);if(e.id!=null&&(d.id=e.id),rt(d,e.class),e.title){let r=ht(qc,d);r.textContent=e.title}const w=yt("canvas"),m=l.ctx=w.getContext("2d"),h=ht(Jc,d);il("click",h,r=>{r.target===x&&(pe!=bl||Se!=kl)&&$e.click(l,r)},!0);const b=l.under=ht(Zc,h);h.appendChild(w);const x=l.over=ht(Qc,h);e=Nl(e);const R=+ie(e.pxAlign,1),P=No(R);(e.plugins||[]).forEach(r=>{r.opts&&(e=r.opts(l,e)||e)});const N=e.ms||.001,y=l.series=i==1?Oo(e.series||[],Mo,Lo,!1):Ra(e.series||[null],Co),E=l.axes=Oo(e.axes||[],Ao,Do,!0),A=l.scales={},U=l.bands=e.bands||[];U.forEach(r=>{r.fill=ee(r.fill||null),r.dir=ie(r.dir,-1)});const C=i==2?y[1].facets[0].scale:y[0].scale,K={axes:sc,series:lc},B=(e.drawOrder||["axes","series"]).map(r=>K[r]);function J(r){const o=r.distr==3?u=>Ht(u>0?u:r.clamp(l,u,r.min,r.max,r.key)):r.distr==4?u=>gr(u,r.asinh):r.distr==100?u=>r.fwd(u):u=>u;return u=>{let a=o(u),{_min:p,_max:g}=r,S=g-p;return(a-p)/S}}function $(r){let o=A[r];if(o==null){let u=(e.scales||tn)[r]||tn;if(u.from!=null){$(u.from);let a=Ee({},A[u.from],u,{key:r});a.valToPct=J(a),A[r]=a}else{o=A[r]=Ee({},r==C?Rs:Sa,u),o.key=r;let a=o.time,p=o.range,g=Ut(p);if((r!=C||i==2&&!a)&&(g&&(p[0]==null||p[1]==null)&&(p={min:p[0]==null?fo:{mode:1,hard:p[0],soft:p[0]},max:p[1]==null?fo:{mode:1,hard:p[1],soft:p[1]}},g=!1),!g&&Vn(p))){let S=p;p=(k,T,D)=>T==null?Rl:Pn(T,D,S)}o.range=ee(p||(a?Na:r==C?o.distr==3?Fa:o.distr==4?Oa:Gs:o.distr==3?Us:o.distr==4?Bs:Ha)),o.auto=ee(g?!1:o.auto),o.clamp=ee(o.clamp||ya),o._min=o._max=null,o.valToPct=J(o)}}}$("x"),$("y"),i==1&&y.forEach(r=>{$(r.scale)}),E.forEach(r=>{$(r.scale)});for(let r in e.scales)$(r);const M=A[C],Z=M.distr;let O,Y;M.ori==0?(rt(d,jc),O=s,Y=c):(rt(d,Kc),O=c,Y=s);const I={};for(let r in A){let o=A[r];(o.min!=null||o.max!=null)&&(I[r]={min:o.min,max:o.max},o.min=o.max=null)}const te=e.tzDate||(r=>new Date(Ce(r/N))),W=e.fmtDate||Xr,Je=N==1?ju(te):Ju(te),we=ko(te,bo(N==1?Yu:qu,W)),le=To(te,xo(Qu,W)),ue=[],Q=l.legend=Ee({},ta,e.legend),V=l.cursor=Ee({},sa,{drag:{y:i==2}},e.cursor),De=Q.show,Ue=V.show,ye=Q.markers;Q.idxs=ue,ye.width=ee(ye.width),ye.dash=ee(ye.dash),ye.stroke=ee(ye.stroke),ye.fill=ee(ye.fill);let ne,pt,Xe,be=[],kt=[],Ct,st=!1,Ot={};if(Q.live){const r=y[1]?y[1].values:null;st=r!=null,Ct=st?r(l,1,0):{_:0};for(let o in Ct)Ot[o]=jr}if(De)if(ne=yt("table",ru,d),Xe=yt("tbody",null,ne),Q.mount(l,ne),st){pt=yt("thead",null,ne,Xe);let r=yt("tr",null,pt);yt("th",null,r);for(var cl in Ct)yt("th",Qi,r).textContent=cl}else rt(ne,ou),Q.live&&rt(ne,iu);const ul={show:!0},zl={show:!1};function on(r,o){if(o==0&&(st||!Q.live||i==2))return Rl;let u=[],a=yt("tr",su,Xe,Xe.childNodes[o]);rt(a,r.class),r.show||rt(a,rl);let p=yt("th",null,a);if(ye.show){let k=ht(cu,p);if(o>0){let T=ye.width(l,o);T&&(k.style.border=T+"px "+ye.dash(l,o)+" "+ye.stroke(l,o)),k.style.background=ye.fill(l,o)}}let g=ht(Qi,p);r.label instanceof HTMLElement?g.appendChild(r.label):g.textContent=r.label,o>0&&(ye.show||(g.style.color=r.width>0?ye.stroke(l,o):ye.fill(l,o)),Be("click",p,k=>{if(V._lock)return;Zt(k);let T=y.indexOf(r);if((k.ctrlKey||k.metaKey)!=Q.isolate){let D=y.some((L,F)=>F>0&&F!=T&&L.show);y.forEach((L,F)=>{F>0&&At(F,D?F==T?ul:zl:ul,!0,Ae.setSeries)})}else At(T,{show:!r.show},!0,Ae.setSeries)},!1),hl&&Be(lo,p,k=>{V._lock||(Zt(k),At(y.indexOf(r),Tl,!0,Ae.setSeries))},!1));for(var S in Ct){let k=yt("td",uu,a);k.textContent="--",u.push(k)}return[a,u]}const Yt=new Map;function Be(r,o,u,a=!0){const p=Yt.get(o)||{},g=V.bind[r](l,o,u,a);g&&(il(r,o,p[r]=g),Yt.set(o,p))}function al(r,o,u){const a=Yt.get(o)||{};for(let p in a)(r==null||p==r)&&(Pr(p,o,a[p]),delete a[p]);r==null&&Yt.delete(o)}let Lt=0,jt=0,q=0,H=0,_e=0,Pe=0,fl=_e,Kt=Pe,xt=q,qt=H,et=0,ct=0,Ze=0,mt=0;l.bbox={};let Gn=!1,sn=!1,dl=!1,Jt=!1,cn=!1,ut=!1;function Un(r,o,u){(u||r!=l.width||o!=l.height)&&oi(r,o),vl(!1),dl=!0,sn=!0,wl()}function oi(r,o){l.width=Lt=q=r,l.height=jt=H=o,_e=Pe=0,qs(),Js();let u=l.bbox;et=u.left=ll(_e*se,.5),ct=u.top=ll(Pe*se,.5),Ze=u.width=ll(q*se,.5),mt=u.height=ll(H*se,.5)}const Ys=3;function js(){let r=!1,o=0;for(;!r;){o++;let u=ic(o),a=oc(o);r=o==Ys||u&&a,r||(oi(l.width,l.height),sn=!0)}}function Ks({width:r,height:o}){Un(r,o)}l.setSize=Ks;function qs(){let r=!1,o=!1,u=!1,a=!1;E.forEach((p,g)=>{if(p.show&&p._show){let{side:S,_size:k}=p,T=S%2,D=p.label!=null?p.labelSize:0,L=k+D;L>0&&(T?(q-=L,S==3?(_e+=L,a=!0):u=!0):(H-=L,S==0?(Pe+=L,r=!0):o=!0))}}),Qt[0]=r,Qt[1]=u,Qt[2]=o,Qt[3]=a,q-=Vt[1]+Vt[3],_e+=Vt[3],H-=Vt[2]+Vt[0],Pe+=Vt[0]}function Js(){let r=_e+q,o=Pe+H,u=_e,a=Pe;function p(g,S){switch(g){case 1:return r+=S,r-S;case 2:return o+=S,o-S;case 3:return u-=S,u+S;case 0:return a-=S,a+S}}E.forEach((g,S)=>{if(g.show&&g._show){let k=g.side;g._pos=p(k,g._size),g.label!=null&&(g._lpos=p(k,g.labelSize))}})}if(V.dataIdx==null){let r=V.hover,o=r.skip=new Set(r.skip??[]);o.add(void 0);let u=r.prox=ee(r.prox),a=r.bias??(r.bias=0);V.dataIdx=(p,g,S,k)=>{if(g==0)return S;let T=S,D=u(p,g,S,k)??fe,L=D>=0&&D<fe,F=M.ori==0?q:H,j=V.left,oe=t[0],re=t[g];if(o.has(re[S])){T=null;let X=null,G=null,z;if(a==0||a==-1)for(z=S;X==null&&z-- >0;)o.has(re[z])||(X=z);if(a==0||a==1)for(z=S;G==null&&z++<re.length;)o.has(re[z])||(G=z);if(X!=null||G!=null)if(L){let ge=X==null?-1/0:O(oe[X],M,F,0),ke=G==null?1/0:O(oe[G],M,F,0),ze=j-ge,ae=ke-j;ze<=ae?ze<=D&&(T=X):ae<=D&&(T=G)}else T=G==null?X:X==null?G:S-X<=G-S?X:G}else L&&Le(j-O(oe[S],M,F,0))>D&&(T=null);return T}}const Zt=r=>{V.event=r};V.idxs=ue,V._lock=!1;let Ie=V.points;Ie.show=ee(Ie.show),Ie.size=ee(Ie.size),Ie.stroke=ee(Ie.stroke),Ie.width=ee(Ie.width),Ie.fill=ee(Ie.fill);const Tt=l.focus=Ee({},e.focus||{alpha:.3},V.focus),hl=Tt.prox>=0,_l=hl&&Ie.one;let at=[],pl=[],ml=[];function si(r,o){let u=Ie.show(l,o);if(u instanceof HTMLElement)return rt(u,nu),rt(u,r.class),Pt(u,-10,-10,q,H),x.insertBefore(u,at[o]),u}function ci(r,o){if(i==1||o>0){let u=i==1&&A[r.scale].time,a=r.value;r.value=u?vo(a)?To(te,xo(a,W)):a||le:a||ga,r.label=r.label||(u?ua:ca)}if(_l||o>0){r.width=r.width==null?1:r.width,r.paths=r.paths||Ca||Su,r.fillTo=ee(r.fillTo||ba),r.pxAlign=+ie(r.pxAlign,R),r.pxRound=No(r.pxAlign),r.stroke=ee(r.stroke||null),r.fill=ee(r.fill||null),r._stroke=r._fill=r._paths=r._focus=null;let u=va(qe(1,r.width),1),a=r.points=Ee({},{size:u,width:qe(1,u*.2),stroke:r.stroke,space:u*2,paths:La,_stroke:null,_fill:null},r.points);a.show=ee(a.show),a.filter=ee(a.filter),a.fill=ee(a.fill),a.stroke=ee(a.stroke),a.paths=ee(a.paths),a.pxAlign=r.pxAlign}if(De){let u=on(r,o);be.splice(o,0,u[0]),kt.splice(o,0,u[1]),Q.values.push(null)}if(Ue){ue.splice(o,0,null);let u=null;_l?o==0&&(u=si(r,o)):o>0&&(u=si(r,o)),at.splice(o,0,u),pl.splice(o,0,0),ml.splice(o,0,0)}Ve("addSeries",o)}function Zs(r,o){o=o??y.length,r=i==1?Fr(r,o,Mo,Lo):Fr(r,o,{},Co),y.splice(o,0,r),ci(y[o],o)}l.addSeries=Zs;function Qs(r){if(y.splice(r,1),De){Q.values.splice(r,1),kt.splice(r,1);let o=be.splice(r,1)[0];al(null,o.firstChild),o.remove()}Ue&&(ue.splice(r,1),at.splice(r,1)[0].remove(),pl.splice(r,1),ml.splice(r,1)),Ve("delSeries",r)}l.delSeries=Qs;const Qt=[!1,!1,!1,!1];function Xs(r,o){if(r._show=r.show,r.show){let u=r.side%2,a=A[r.scale];a==null&&(r.scale=u?y[1].scale:C,a=A[r.scale]);let p=a.time;r.size=ee(r.size),r.space=ee(r.space),r.rotate=ee(r.rotate),Ut(r.incrs)&&r.incrs.forEach(S=>{!Bt.has(S)&&Bt.set(S,_s(S))}),r.incrs=ee(r.incrs||(a.distr==2?Gu:p?N==1?Bu:Ku:nl)),r.splits=ee(r.splits||(p&&a.distr==1?Je:a.distr==3?Lr:a.distr==4?da:fa)),r.stroke=ee(r.stroke),r.grid.stroke=ee(r.grid.stroke),r.ticks.stroke=ee(r.ticks.stroke),r.border.stroke=ee(r.border.stroke);let g=r.values;r.values=Ut(g)&&!Ut(g[0])?ee(g):p?Ut(g)?ko(te,bo(g,W)):vo(g)?Zu(te,g):g||we:g||aa,r.filter=ee(r.filter||(a.distr>=3&&a.log==10?pa:a.distr==3&&a.log==2?ma:ds)),r.font=Vo(r.font),r.labelFont=Vo(r.labelFont),r._size=r.size(l,null,o,0),r._space=r._rotate=r._incrs=r._found=r._splits=r._values=null,r._size>0&&(Qt[o]=!0,r._el=ht(Xc,h))}}function Wl(r,o,u,a){let[p,g,S,k]=u,T=o%2,D=0;return T==0&&(k||g)&&(D=o==0&&!p||o==2&&!S?Ce(Ao.size/3):0),T==1&&(p||S)&&(D=o==1&&!g||o==3&&!k?Ce(Do.size/2):0),D}const ui=l.padding=(e.padding||[Wl,Wl,Wl,Wl]).map(r=>ee(ie(r,Wl))),Vt=l._padding=ui.map((r,o)=>r(l,o,Qt,0));let We,Ne=null,He=null;const un=i==1?y[0].idxs:null;let gt=null,$l=!1;function ai(r,o){if(t=r??[],l.data=l._data=t,i==2){We=0;for(let u=1;u<y.length;u++)We+=t[u][0].length}else{t.length==0&&(l.data=l._data=t=[[]]),gt=t[0],We=gt.length;let u=t;if(Z==2){u=t.slice();let a=u[0]=Array(We);for(let p=0;p<We;p++)a[p]=p}l._data=t=u}if(vl(!0),Ve("setData"),Z==2&&(dl=!0),o!==!1){let u=M;u.auto(l,$l)?Bn():Wt(C,u.min,u.max),Jt=Jt||V.left>=0,ut=!0,wl()}}l.setData=ai;function Bn(){$l=!0;let r,o;i==1&&(We>0?(Ne=un[0]=0,He=un[1]=We-1,r=t[0][Ne],o=t[0][He],Z==2?(r=Ne,o=He):r==o&&(Z==3?[r,o]=Fn(r,r,M.log,!1):Z==4?[r,o]=qr(r,r,M.log,!1):M.time?o=r+Ce(86400/N):[r,o]=Pn(r,o,Jr,!0))):(Ne=un[0]=r=null,He=un[1]=o=null)),Wt(C,r,o)}let an,gl,Yn,jn,Kn,qn,Jn,Zn,Qn,Qe;function fi(r,o,u,a,p,g){r??(r=eo),u??(u=Qr),a??(a="butt"),p??(p=eo),g??(g="round"),r!=an&&(m.strokeStyle=an=r),p!=gl&&(m.fillStyle=gl=p),o!=Yn&&(m.lineWidth=Yn=o),g!=Kn&&(m.lineJoin=Kn=g),a!=qn&&(m.lineCap=qn=a),u!=jn&&m.setLineDash(jn=u)}function di(r,o,u,a){o!=gl&&(m.fillStyle=gl=o),r!=Jn&&(m.font=Jn=r),u!=Zn&&(m.textAlign=Zn=u),a!=Qn&&(m.textBaseline=Qn=a)}function Xn(r,o,u,a,p=0){if(a.length>0&&r.auto(l,$l)&&(o==null||o.min==null)){let g=ie(Ne,0),S=ie(He,a.length-1),k=u.min==null?pu(a,g,S,p,r.distr==3):[u.min,u.max];r.min=bt(r.min,u.min=k[0]),r.max=qe(r.max,u.max=k[1])}}const hi={min:null,max:null};function ec(){for(let a in A){let p=A[a];I[a]==null&&(p.min==null||I[C]!=null&&p.auto(l,$l))&&(I[a]=hi)}for(let a in A){let p=A[a];I[a]==null&&p.from!=null&&I[p.from]!=null&&(I[a]=hi)}I[C]!=null&&vl(!0);let r={};for(let a in I){let p=I[a];if(p!=null){let g=r[a]=Nl(A[a],xu);if(p.min!=null)Ee(g,p);else if(a!=C||i==2)if(We==0&&g.from==null){let S=g.range(l,null,null,a);g.min=S[0],g.max=S[1]}else g.min=fe,g.max=-fe}}if(We>0){y.forEach((a,p)=>{if(i==1){let g=a.scale,S=I[g];if(S==null)return;let k=r[g];if(p==0){let T=k.range(l,k.min,k.max,g);k.min=T[0],k.max=T[1],Ne=St(k.min,t[0]),He=St(k.max,t[0]),He-Ne>1&&(t[0][Ne]<k.min&&Ne++,t[0][He]>k.max&&He--),a.min=gt[Ne],a.max=gt[He]}else a.show&&a.auto&&Xn(k,S,a,t[p],a.sorted);a.idxs[0]=Ne,a.idxs[1]=He}else if(p>0&&a.show&&a.auto){let[g,S]=a.facets,k=g.scale,T=S.scale,[D,L]=t[p],F=r[k],j=r[T];F!=null&&Xn(F,I[k],g,D,g.sorted),j!=null&&Xn(j,I[T],S,L,S.sorted),a.min=S.min,a.max=S.max}});for(let a in r){let p=r[a],g=I[a];if(p.from==null&&(g==null||g.min==null)){let S=p.range(l,p.min==fe?null:p.min,p.max==-fe?null:p.max,a);p.min=S[0],p.max=S[1]}}}for(let a in r){let p=r[a];if(p.from!=null){let g=r[p.from];if(g.min==null)p.min=p.max=null;else{let S=p.range(l,g.min,g.max,a);p.min=S[0],p.max=S[1]}}}let o={},u=!1;for(let a in r){let p=r[a],g=A[a];if(g.min!=p.min||g.max!=p.max){g.min=p.min,g.max=p.max;let S=g.distr;g._min=S==3?Ht(g.min):S==4?gr(g.min,g.asinh):S==100?g.fwd(g.min):g.min,g._max=S==3?Ht(g.max):S==4?gr(g.max,g.asinh):S==100?g.fwd(g.max):g.max,o[a]=u=!0}}if(u){y.forEach((a,p)=>{i==2?p>0&&o.y&&(a._paths=null):o[a.scale]&&(a._paths=null)});for(let a in o)dl=!0,Ve("setScale",a);Ue&&V.left>=0&&(Jt=ut=!0)}for(let a in I)I[a]=null}function tc(r){let o=Cr(Ne-1,0,We-1),u=Cr(He+1,0,We-1);for(;r[o]==null&&o>0;)o--;for(;r[u]==null&&u<We-1;)u++;return[o,u]}function lc(){if(We>0){let r=y.some(o=>o._focus)&&Qe!=Tt.alpha;r&&(m.globalAlpha=Qe=Tt.alpha),y.forEach((o,u)=>{if(u>0&&o.show&&(_i(u,!1),_i(u,!0),o._paths==null)){let a=Qe;Qe!=o.alpha&&(m.globalAlpha=Qe=o.alpha);let p=i==2?[0,t[u][0].length-1]:tc(t[u]);o._paths=o.paths(l,u,p[0],p[1]),Qe!=a&&(m.globalAlpha=Qe=a)}}),y.forEach((o,u)=>{if(u>0&&o.show){let a=Qe;Qe!=o.alpha&&(m.globalAlpha=Qe=o.alpha),o._paths!=null&&pi(u,!1);{let p=o._paths!=null?o._paths.gaps:null,g=o.points.show(l,u,Ne,He,p),S=o.points.filter(l,u,g,p);(g||S)&&(o.points._paths=o.points.paths(l,u,Ne,He,S),pi(u,!0))}Qe!=a&&(m.globalAlpha=Qe=a),Ve("drawSeries",u)}}),r&&(m.globalAlpha=Qe=1)}}function _i(r,o){let u=o?y[r].points:y[r];u._stroke=u.stroke(l,r),u._fill=u.fill(l,r)}function pi(r,o){let u=o?y[r].points:y[r],{stroke:a,fill:p,clip:g,flags:S,_stroke:k=u._stroke,_fill:T=u._fill,_width:D=u.width}=u._paths;D=de(D*se,3);let L=null,F=D%2/2;o&&T==null&&(T=D>0?"#fff":k);let j=u.pxAlign==1&&F>0;if(j&&m.translate(F,F),!o){let oe=et-D/2,re=ct-D/2,X=Ze+D,G=mt+D;L=new Path2D,L.rect(oe,re,X,G)}o?er(k,D,u.dash,u.cap,T,a,p,S,g):nc(r,k,D,u.dash,u.cap,T,a,p,S,L,g),j&&m.translate(-F,-F)}function nc(r,o,u,a,p,g,S,k,T,D,L){let F=!1;T!=0&&U.forEach((j,oe)=>{if(j.series[0]==r){let re=y[j.series[1]],X=t[j.series[1]],G=(re._paths||tn).band;Ut(G)&&(G=j.dir==1?G[0]:G[1]);let z,ge=null;re.show&&G&&gu(X,Ne,He)?(ge=j.fill(l,oe)||g,z=re._paths.clip):G=null,er(o,u,a,p,ge,S,k,T,D,L,z,G),F=!0}}),F||er(o,u,a,p,g,S,k,T,D,L)}const mi=Hl|Nr;function er(r,o,u,a,p,g,S,k,T,D,L,F){fi(r,o,u,a,p),(T||D||F)&&(m.save(),T&&m.clip(T),D&&m.clip(D)),F?(k&mi)==mi?(m.clip(F),L&&m.clip(L),dn(p,S),fn(r,g,o)):k&Nr?(dn(p,S),m.clip(F),fn(r,g,o)):k&Hl&&(m.save(),m.clip(F),L&&m.clip(L),dn(p,S),m.restore(),fn(r,g,o)):(dn(p,S),fn(r,g,o)),(T||D||F)&&m.restore()}function fn(r,o,u){u>0&&(o instanceof Map?o.forEach((a,p)=>{m.strokeStyle=an=p,m.stroke(a)}):o!=null&&r&&m.stroke(o))}function dn(r,o){o instanceof Map?o.forEach((u,a)=>{m.fillStyle=gl=a,m.fill(u)}):o!=null&&r&&m.fill(o)}function rc(r,o,u,a){let p=E[r],g;if(a<=0)g=[0,0];else{let S=p._space=p.space(l,r,o,u,a),k=p._incrs=p.incrs(l,r,o,u,a,S);g=Va(o,u,k,a,S)}return p._found=g}function tr(r,o,u,a,p,g,S,k,T,D){let L=S%2/2;R==1&&m.translate(L,L),fi(k,S,T,D,k),m.beginPath();let F,j,oe,re,X=p+(a==0||a==3?-g:g);u==0?(j=p,re=X):(F=p,oe=X);for(let G=0;G<r.length;G++)o[G]!=null&&(u==0?F=oe=r[G]:j=re=r[G],m.moveTo(F,j),m.lineTo(oe,re));m.stroke(),R==1&&m.translate(-L,-L)}function ic(r){let o=!0;return E.forEach((u,a)=>{if(!u.show)return;let p=A[u.scale];if(p.min==null){u._show&&(o=!1,u._show=!1,vl(!1));return}else u._show||(o=!1,u._show=!0,vl(!1));let g=u.side,S=g%2,{min:k,max:T}=p,[D,L]=rc(a,k,T,S==0?q:H);if(L==0)return;let F=p.distr==2,j=u._splits=u.splits(l,a,k,T,D,L,F),oe=p.distr==2?j.map(z=>gt[z]):j,re=p.distr==2?gt[j[1]]-gt[j[0]]:D,X=u._values=u.values(l,u.filter(l,oe,a,L,re),a,L,re);u._rotate=g==2?u.rotate(l,X,a,L):0;let G=u._size;u._size=_t(u.size(l,X,a,r)),G!=null&&u._size!=G&&(o=!1)}),o}function oc(r){let o=!0;return ui.forEach((u,a)=>{let p=u(l,a,Qt,r);p!=Vt[a]&&(o=!1),Vt[a]=p}),o}function sc(){for(let r=0;r<E.length;r++){let o=E[r];if(!o.show||!o._show)continue;let u=o.side,a=u%2,p,g,S=o.stroke(l,r),k=u==0||u==3?-1:1,[T,D]=o._found;if(o.label!=null){let je=o.labelGap*k,nt=Ce((o._lpos+je)*se);di(o.labelFont[0],S,"center",u==2?jl:Xi),m.save(),a==1?(p=g=0,m.translate(nt,Ce(ct+mt/2)),m.rotate((u==3?-xn:xn)/2)):(p=Ce(et+Ze/2),g=nt);let tl=as(o.label)?o.label(l,r,T,D):o.label;m.fillText(tl,p,g),m.restore()}if(D==0)continue;let L=A[o.scale],F=a==0?Ze:mt,j=a==0?et:ct,oe=o._splits,re=L.distr==2?oe.map(je=>gt[je]):oe,X=L.distr==2?gt[oe[1]]-gt[oe[0]]:T,G=o.ticks,z=o.border,ge=G.show?G.size:0,ke=Ce(ge*se),ze=Ce((o.alignTo==2?o._size-ge-o.gap:o.gap)*se),ae=o._rotate*-xn/180,xe=P(o._pos*se),tt=(ke+ze)*k,Ye=xe+tt;g=a==0?Ye:0,p=a==1?Ye:0;let ft=o.font[0],vt=o.align==1?Ml:o.align==2?_r:ae>0?Ml:ae<0?_r:a==0?"center":u==3?_r:Ml,Et=ae||a==1?"middle":u==2?jl:Xi;di(ft,S,vt,Et);let lt=o.font[1]*o.lineGap,dt=oe.map(je=>P(f(je,L,F,j))),wt=o._values;for(let je=0;je<wt.length;je++){let nt=wt[je];if(nt!=null){a==0?p=dt[je]:g=dt[je],nt=""+nt;let tl=nt.indexOf(`
|
|
3
|
+
`)==-1?[nt]:nt.split(/\n/gm);for(let Ke=0;Ke<tl.length;Ke++){let Hi=tl[Ke];ae?(m.save(),m.translate(p,g+Ke*lt),m.rotate(ae),m.fillText(Hi,0,0),m.restore()):m.fillText(Hi,p,g+Ke*lt)}}}G.show&&tr(dt,G.filter(l,re,r,D,X),a,u,xe,ke,de(G.width*se,3),G.stroke(l,r),G.dash,G.cap);let Dt=o.grid;Dt.show&&tr(dt,Dt.filter(l,re,r,D,X),a,a==0?2:1,a==0?ct:et,a==0?mt:Ze,de(Dt.width*se,3),Dt.stroke(l,r),Dt.dash,Dt.cap),z.show&&tr([xe],[1],a==0?1:0,a==0?1:2,a==1?ct:et,a==1?mt:Ze,de(z.width*se,3),z.stroke(l,r),z.dash,z.cap)}Ve("drawAxes")}function vl(r){y.forEach((o,u)=>{u>0&&(o._paths=null,r&&(i==1?(o.min=null,o.max=null):o.facets.forEach(a=>{a.min=null,a.max=null})))})}let hn=!1,lr=!1,Il=[];function cc(){lr=!1;for(let r=0;r<Il.length;r++)Ve(...Il[r]);Il.length=0}function wl(){hn||(Cu(gi),hn=!0)}function uc(r,o=!1){hn=!0,lr=o,r(l),gi(),o&&Il.length>0&&queueMicrotask(cc)}l.batch=uc;function gi(){if(Gn&&(ec(),Gn=!1),dl&&(js(),dl=!1),sn){if(ve(b,Ml,_e),ve(b,jl,Pe),ve(b,ql,q),ve(b,Jl,H),ve(x,Ml,_e),ve(x,jl,Pe),ve(x,ql,q),ve(x,Jl,H),ve(h,ql,Lt),ve(h,Jl,jt),w.width=Ce(Lt*se),w.height=Ce(jt*se),E.forEach(({_el:r,_show:o,_size:u,_pos:a,side:p})=>{if(r!=null)if(o){let g=p===3||p===0?u:0,S=p%2==1;ve(r,S?"left":"top",a-g),ve(r,S?"width":"height",u),ve(r,S?"top":"left",S?Pe:_e),ve(r,S?"height":"width",S?H:q),Dr(r,rl)}else rt(r,rl)}),an=gl=Yn=Kn=qn=Jn=Zn=Qn=jn=null,Qe=1,Bl(!0),_e!=fl||Pe!=Kt||q!=xt||H!=qt){vl(!1);let r=q/xt,o=H/qt;if(Ue&&!Jt&&V.left>=0){V.left*=r,V.top*=o,yl&&Pt(yl,Ce(V.left),0,q,H),Sl&&Pt(Sl,0,Ce(V.top),q,H);for(let u=0;u<at.length;u++){let a=at[u];a!=null&&(pl[u]*=r,ml[u]*=o,Pt(a,_t(pl[u]),_t(ml[u]),q,H))}}if(me.show&&!cn&&me.left>=0&&me.width>0){me.left*=r,me.width*=r,me.top*=o,me.height*=o;for(let u in cr)ve(xl,u,me[u])}fl=_e,Kt=Pe,xt=q,qt=H}Ve("setSize"),sn=!1}Lt>0&&jt>0&&(m.clearRect(0,0,w.width,w.height),Ve("drawClear"),B.forEach(r=>r()),Ve("draw")),me.show&&cn&&(_n(me),cn=!1),Ue&&Jt&&(el(null,!0,!1),Jt=!1),Q.show&&Q.live&&ut&&(or(),ut=!1),_||(_=!0,l.status=1,Ve("ready")),$l=!1,hn=!1}l.redraw=(r,o)=>{dl=o||!1,r!==!1?Wt(C,M.min,M.max):wl()};function nr(r,o){let u=A[r];if(u.from==null){if(We==0){let a=u.range(l,o.min,o.max,r);o.min=a[0],o.max=a[1]}if(o.min>o.max){let a=o.min;o.min=o.max,o.max=a}if(We>1&&o.min!=null&&o.max!=null&&o.max-o.min<1e-16)return;r==C&&u.distr==2&&We>0&&(o.min=St(o.min,t[0]),o.max=St(o.max,t[0]),o.min==o.max&&o.max++),I[r]=o,Gn=!0,wl()}}l.setScale=nr;let rr,ir,yl,Sl,vi,wi,bl,kl,yi,Si,pe,Se,zt=!1;const $e=V.drag;let Fe=$e.x,Oe=$e.y;Ue&&(V.x&&(rr=ht(tu,x)),V.y&&(ir=ht(lu,x)),M.ori==0?(yl=rr,Sl=ir):(yl=ir,Sl=rr),pe=V.left,Se=V.top);const me=l.select=Ee({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),xl=me.show?ht(eu,me.over?x:b):null;function _n(r,o){if(me.show){for(let u in r)me[u]=r[u],u in cr&&ve(xl,u,r[u]);o!==!1&&Ve("setSelect")}}l.setSelect=_n;function ac(r){if(y[r].show)De&&Dr(be[r],rl);else if(De&&rt(be[r],rl),Ue){let u=_l?at[0]:at[r];u!=null&&Pt(u,-10,-10,q,H)}}function Wt(r,o,u){nr(r,{min:o,max:u})}function At(r,o,u,a){o.focus!=null&&pc(r),o.show!=null&&y.forEach((p,g)=>{g>0&&(r==g||r==null)&&(p.show=o.show,ac(g),i==2?(Wt(p.facets[0].scale,null,null),Wt(p.facets[1].scale,null,null)):Wt(p.scale,null,null),wl())}),u!==!1&&Ve("setSeries",r,o),a&&Yl("setSeries",l,r,o)}l.setSeries=At;function fc(r,o){Ee(U[r],o)}function dc(r,o){r.fill=ee(r.fill||null),r.dir=ie(r.dir,-1),o=o??U.length,U.splice(o,0,r)}function hc(r){r==null?U.length=0:U.splice(r,1)}l.addBand=dc,l.setBand=fc,l.delBand=hc;function _c(r,o){y[r].alpha=o,Ue&&at[r]!=null&&(at[r].style.opacity=o),De&&be[r]&&(be[r].style.opacity=o)}let Rt,$t,Xt;const Tl={focus:!0};function pc(r){if(r!=Xt){let o=r==null,u=Tt.alpha!=1;y.forEach((a,p)=>{if(i==1||p>0){let g=o||p==0||p==r;a._focus=o?null:g,u&&_c(p,g?1:Tt.alpha)}}),Xt=r,u&&wl()}}De&&hl&&Be(no,ne,r=>{V._lock||(Zt(r),Xt!=null&&At(null,Tl,!0,Ae.setSeries))});function Mt(r,o,u){let a=A[o];u&&(r=r/se-(a.ori==1?Pe:_e));let p=q;a.ori==1&&(p=H,r=p-r),a.dir==-1&&(r=p-r);let g=a._min,S=a._max,k=r/p,T=g+(S-g)*k,D=a.distr;return D==3?Ll(10,T):D==4?wu(T,a.asinh):D==100?a.bwd(T):T}function mc(r,o){let u=Mt(r,C,o);return St(u,t[0],Ne,He)}l.valToIdx=r=>St(r,t[0]),l.posToIdx=mc,l.posToVal=Mt,l.valToPos=(r,o,u)=>A[o].ori==0?s(r,A[o],u?Ze:q,u?et:0):c(r,A[o],u?mt:H,u?ct:0),l.setCursor=(r,o,u)=>{pe=r.left,Se=r.top,el(null,o,u)};function bi(r,o){ve(xl,Ml,me.left=r),ve(xl,ql,me.width=o)}function ki(r,o){ve(xl,jl,me.top=r),ve(xl,Jl,me.height=o)}let Gl=M.ori==0?bi:ki,Ul=M.ori==1?bi:ki;function gc(){if(De&&Q.live)for(let r=i==2?1:0;r<y.length;r++){if(r==0&&st)continue;let o=Q.values[r],u=0;for(let a in o)kt[r][u++].firstChild.nodeValue=o[a]}}function or(r,o){if(r!=null&&(r.idxs?r.idxs.forEach((u,a)=>{ue[a]=u}):ku(r.idx)||ue.fill(r.idx),Q.idx=ue[0]),De&&Q.live){for(let u=0;u<y.length;u++)(u>0||i==1&&!st)&&vc(u,ue[u]);gc()}ut=!1,o!==!1&&Ve("setLegend")}l.setLegend=or;function vc(r,o){let u=y[r],a=r==0&&Z==2?gt:t[r],p;st?p=u.values(l,r,o)??Ot:(p=u.value(l,o==null?null:a[o],r,o),p=p==null?Ot:{_:p}),Q.values[r]=p}function el(r,o,u){yi=pe,Si=Se,[pe,Se]=V.move(l,pe,Se),V.left=pe,V.top=Se,Ue&&(yl&&Pt(yl,Ce(pe),0,q,H),Sl&&Pt(Sl,0,Ce(Se),q,H));let a,p=Ne>He;Rt=fe,$t=null;let g=M.ori==0?q:H,S=M.ori==1?q:H;if(pe<0||We==0||p){a=V.idx=null;for(let k=0;k<y.length;k++){let T=at[k];T!=null&&Pt(T,-10,-10,q,H)}hl&&At(null,Tl,!0,r==null&&Ae.setSeries),Q.live&&(ue.fill(a),ut=!0)}else{let k,T,D;i==1&&(k=M.ori==0?pe:Se,T=Mt(k,C),a=V.idx=St(T,t[0],Ne,He),D=O(t[0][a],M,g,0));let L=-10,F=-10,j=0,oe=0,re=!0,X="",G="";for(let z=i==2?1:0;z<y.length;z++){let ge=y[z],ke=ue[z],ze=ke==null?null:i==1?t[z][ke]:t[z][1][ke],ae=V.dataIdx(l,z,a,T),xe=ae==null?null:i==1?t[z][ae]:t[z][1][ae];if(ut=ut||xe!=ze||ae!=ke,ue[z]=ae,z>0&&ge.show){let tt=ae==null?-10:ae==a?D:O(i==1?t[0][ae]:t[z][0][ae],M,g,0),Ye=xe==null?-10:Y(xe,i==1?A[ge.scale]:A[ge.facets[1].scale],S,0);if(hl&&xe!=null){let ft=M.ori==1?pe:Se,vt=Le(Tt.dist(l,z,ae,Ye,ft));if(vt<Rt){let Et=Tt.bias;if(Et!=0){let lt=Mt(ft,ge.scale),dt=xe>=0?1:-1,wt=lt>=0?1:-1;wt==dt&&(wt==1?Et==1?xe>=lt:xe<=lt:Et==1?xe<=lt:xe>=lt)&&(Rt=vt,$t=z)}else Rt=vt,$t=z}}if(ut||_l){let ft,vt;M.ori==0?(ft=tt,vt=Ye):(ft=Ye,vt=tt);let Et,lt,dt,wt,Dt,je,nt=!0,tl=Ie.bbox;if(tl!=null){nt=!1;let Ke=tl(l,z);dt=Ke.left,wt=Ke.top,Et=Ke.width,lt=Ke.height}else dt=ft,wt=vt,Et=lt=Ie.size(l,z);if(je=Ie.fill(l,z),Dt=Ie.stroke(l,z),_l)z==$t&&Rt<=Tt.prox&&(L=dt,F=wt,j=Et,oe=lt,re=nt,X=je,G=Dt);else{let Ke=at[z];Ke!=null&&(pl[z]=dt,ml[z]=wt,ao(Ke,Et,lt,nt),co(Ke,je,Dt),Pt(Ke,_t(dt),_t(wt),q,H))}}}}if(_l){let z=Tt.prox,ge=Xt==null?Rt<=z:Rt>z||$t!=Xt;if(ut||ge){let ke=at[0];ke!=null&&(pl[0]=L,ml[0]=F,ao(ke,j,oe,re),co(ke,X,G),Pt(ke,_t(L),_t(F),q,H))}}}if(me.show&&zt)if(r!=null){let[k,T]=Ae.scales,[D,L]=Ae.match,[F,j]=r.cursor.sync.scales,oe=r.cursor.drag;if(Fe=oe._x,Oe=oe._y,Fe||Oe){let{left:re,top:X,width:G,height:z}=r.select,ge=r.scales[F].ori,ke=r.posToVal,ze,ae,xe,tt,Ye,ft=k!=null&&D(k,F),vt=T!=null&&L(T,j);ft&&Fe?(ge==0?(ze=re,ae=G):(ze=X,ae=z),xe=A[k],tt=O(ke(ze,F),xe,g,0),Ye=O(ke(ze+ae,F),xe,g,0),Gl(bt(tt,Ye),Le(Ye-tt))):Gl(0,g),vt&&Oe?(ge==1?(ze=re,ae=G):(ze=X,ae=z),xe=A[T],tt=Y(ke(ze,j),xe,S,0),Ye=Y(ke(ze+ae,j),xe,S,0),Ul(bt(tt,Ye),Le(Ye-tt))):Ul(0,S)}else ur()}else{let k=Le(yi-vi),T=Le(Si-wi);if(M.ori==1){let j=k;k=T,T=j}Fe=$e.x&&k>=$e.dist,Oe=$e.y&&T>=$e.dist;let D=$e.uni;D!=null?Fe&&Oe&&(Fe=k>=D,Oe=T>=D,!Fe&&!Oe&&(T>k?Oe=!0:Fe=!0)):$e.x&&$e.y&&(Fe||Oe)&&(Fe=Oe=!0);let L,F;Fe&&(M.ori==0?(L=bl,F=pe):(L=kl,F=Se),Gl(bt(L,F),Le(F-L)),Oe||Ul(0,S)),Oe&&(M.ori==1?(L=bl,F=pe):(L=kl,F=Se),Ul(bt(L,F),Le(F-L)),Fe||Gl(0,g)),!Fe&&!Oe&&(Gl(0,0),Ul(0,0))}if($e._x=Fe,$e._y=Oe,r==null){if(u){if(Ni!=null){let[k,T]=Ae.scales;Ae.values[0]=k!=null?Mt(M.ori==0?pe:Se,k):null,Ae.values[1]=T!=null?Mt(M.ori==1?pe:Se,T):null}Yl(pr,l,pe,Se,q,H,a)}if(hl){let k=u&&Ae.setSeries,T=Tt.prox;Xt==null?Rt<=T&&At($t,Tl,!0,k):Rt>T?At(null,Tl,!0,k):$t!=Xt&&At($t,Tl,!0,k)}}ut&&(Q.idx=a,or()),o!==!1&&Ve("setCursor")}let It=null;Object.defineProperty(l,"rect",{get(){return It==null&&Bl(!1),It}});function Bl(r=!1){r?It=null:(It=x.getBoundingClientRect(),Ve("syncRect",It))}function xi(r,o,u,a,p,g,S){V._lock||zt&&r!=null&&r.movementX==0&&r.movementY==0||(sr(r,o,u,a,p,g,S,!1,r!=null),r!=null?el(null,!0,!0):el(o,!0,!1))}function sr(r,o,u,a,p,g,S,k,T){if(It==null&&Bl(!1),Zt(r),r!=null)u=r.clientX-It.left,a=r.clientY-It.top;else{if(u<0||a<0){pe=-10,Se=-10;return}let[D,L]=Ae.scales,F=o.cursor.sync,[j,oe]=F.values,[re,X]=F.scales,[G,z]=Ae.match,ge=o.axes[0].side%2==1,ke=M.ori==0?q:H,ze=M.ori==1?q:H,ae=ge?g:p,xe=ge?p:g,tt=ge?a:u,Ye=ge?u:a;if(re!=null?u=G(D,re)?f(j,A[D],ke,0):-10:u=ke*(tt/ae),X!=null?a=z(L,X)?f(oe,A[L],ze,0):-10:a=ze*(Ye/xe),M.ori==1){let ft=u;u=a,a=ft}}T&&(o==null||o.cursor.event.type==pr)&&((u<=1||u>=q-1)&&(u=ll(u,q)),(a<=1||a>=H-1)&&(a=ll(a,H))),k?(vi=u,wi=a,[bl,kl]=V.move(l,u,a)):(pe=u,Se=a)}const cr={width:0,height:0,left:0,top:0};function ur(){_n(cr,!1)}let Ti,Ai,Mi,Ei;function Di(r,o,u,a,p,g,S){zt=!0,Fe=Oe=$e._x=$e._y=!1,sr(r,o,u,a,p,g,S,!0,!1),r!=null&&(Be(mr,Mr,Pi,!1),Yl(to,l,bl,kl,q,H,null));let{left:k,top:T,width:D,height:L}=me;Ti=k,Ai=T,Mi=D,Ei=L}function Pi(r,o,u,a,p,g,S){zt=$e._x=$e._y=!1,sr(r,o,u,a,p,g,S,!1,!0);let{left:k,top:T,width:D,height:L}=me,F=D>0||L>0,j=Ti!=k||Ai!=T||Mi!=D||Ei!=L;if(F&&j&&_n(me),$e.setScale&&F&&j){let oe=k,re=D,X=T,G=L;if(M.ori==1&&(oe=T,re=L,X=k,G=D),Fe&&Wt(C,Mt(oe,C),Mt(oe+re,C)),Oe)for(let z in A){let ge=A[z];z!=C&&ge.from==null&&ge.min!=fe&&Wt(z,Mt(X+G,z),Mt(X,z))}ur()}else V.lock&&(V._lock=!V._lock,el(o,!0,r!=null));r!=null&&(al(mr,Mr),Yl(mr,l,pe,Se,q,H,null))}function wc(r,o,u,a,p,g,S){if(V._lock)return;Zt(r);let k=zt;if(zt){let T=!0,D=!0,L=10,F,j;M.ori==0?(F=Fe,j=Oe):(F=Oe,j=Fe),F&&j&&(T=pe<=L||pe>=q-L,D=Se<=L||Se>=H-L),F&&T&&(pe=pe<bl?0:q),j&&D&&(Se=Se<kl?0:H),el(null,!0,!0),zt=!1}pe=-10,Se=-10,ue.fill(null),el(null,!0,!0),k&&(zt=k)}function Ci(r,o,u,a,p,g,S){V._lock||(Zt(r),Bn(),ur(),r!=null&&Yl(ro,l,pe,Se,q,H,null))}function Li(){E.forEach(za),Un(l.width,l.height,!0)}il(Dn,Dl,Li);const Al={};Al.mousedown=Di,Al.mousemove=xi,Al.mouseup=Pi,Al.dblclick=Ci,Al.setSeries=(r,o,u,a)=>{let p=Ae.match[2];u=p(l,o,u),u!=-1&&At(u,a,!0,!1)},Ue&&(Be(to,x,Di),Be(pr,x,xi),Be(lo,x,r=>{Zt(r),Bl(!1)}),Be(no,x,wc),Be(ro,x,Ci),Hr.add(l),l.syncRect=Bl);const pn=l.hooks=e.hooks||{};function Ve(r,o,u){lr?Il.push([r,o,u]):r in pn&&pn[r].forEach(a=>{a.call(null,l,o,u)})}(e.plugins||[]).forEach(r=>{for(let o in r.hooks)pn[o]=(pn[o]||[]).concat(r.hooks[o])});const Ri=(r,o,u)=>u,Ae=Ee({key:null,setSeries:!1,filters:{pub:mo,sub:mo},scales:[C,y[1]?y[1].scale:null],match:[go,go,Ri],values:[null,null]},V.sync);Ae.match.length==2&&Ae.match.push(Ri),V.sync=Ae;const Ni=Ae.key,ar=Ns(Ni);function Yl(r,o,u,a,p,g,S){Ae.filters.pub(r,o,u,a,p,g,S)&&ar.pub(r,o,u,a,p,g,S)}ar.sub(l);function yc(r,o,u,a,p,g,S){Ae.filters.sub(r,o,u,a,p,g,S)&&Al[r](null,o,u,a,p,g,S)}l.pub=yc;function Sc(){ar.unsub(l),Hr.delete(l),Yt.clear(),Pr(Dn,Dl,Li),d.remove(),ne==null||ne.remove(),Ve("destroy")}l.destroy=Sc;function fr(){Ve("init",e,t),ai(t||e.data,!1),I[C]?nr(C,I[C]):Bn(),cn=me.show&&(me.width>0||me.height>0),Jt=ut=!0,Un(e.width,e.height)}return y.forEach(ci),E.forEach(Xs),n?n instanceof HTMLElement?(n.appendChild(d),fr()):n(l,fr):fr(),l}Ge.assign=Ee;Ge.fmtNum=Zr;Ge.rangeNum=Pn;Ge.rangeLog=Fn;Ge.rangeAsinh=qr;Ge.orient=sl;Ge.pxRatio=se;Ge.join=Pu;Ge.fmtDate=Xr,Ge.tzDate=$u;Ge.sync=Ns;{Ge.addGap=ka,Ge.clipGaps=zn;let e=Ge.paths={points:Ws};e.linear=Is,e.stepped=Aa,e.bars=Ma,e.spline=Da}const Wa=["#58a6ff","#3fb950","#d29922","#db6d28","#f85149","#bc8cff","#39c5cf"],$a=["#0969da","#1a7f37","#9a6700","#bc4c00","#cf222e","#8250df","#1b7c83"];function zo({opts:e,data:t,theme:n}){const l=ji(null),i=ji(null);return Ir(()=>{if(!l.current)return;(()=>{var _;(_=i.current)==null||_.destroy();const f=l.current.clientWidth||720;i.current=new Ge(e(f),t,l.current)})();const c=new ResizeObserver(()=>{i.current&&l.current&&i.current.setSize({width:l.current.clientWidth,height:260})});return c.observe(l.current),()=>{var f;c.disconnect(),(f=i.current)==null||f.destroy(),i.current=null}},[t,n]),v("div",{class:"chart",ref:l})}function Ia({data:e,theme:t}){var P,N;const n=e.history;if(n.length<2)return v(Cl,{children:"Need at least two runs to show trends. Keep running `edsger benchmark`."});const l=t==="light"?$a:Wa,i=n.map(y=>Date.parse(y.generatedAt)/1e3),s=n.map(y=>y.overall),c=((P=e.latest)==null?void 0:P.categories.map(y=>y.id))??Object.keys(n[0].categories),f=new Map((N=e.latest)==null?void 0:N.categories.map(y=>[y.id,y.name])),_=Ar("--chart-line","#e6edf3"),d=y=>({width:y,height:260,scales:{y:{range:[0,100]}},axes:Wo(),series:[{},{label:"Overall",stroke:_,width:2,points:{show:!0,size:6,fill:_}}]}),w=y=>({width:y,height:260,scales:{y:{range:[0,100]}},axes:Wo(),series:[{},...c.map((E,A)=>({label:f.get(E)??E,stroke:l[A%l.length],width:2}))]}),m=[i,s],h=[i,...c.map(y=>n.map(E=>E.categories[y]==null?null:Math.round(E.categories[y]*100)))],b=s[0],x=s[s.length-1],R=x-b;return v("div",{class:"stack",children:[v("section",{class:"card",children:[v("h2",{class:"card-title",children:["Overall score over time"," ",v("span",{class:"muted",children:["· ",R>=0?"+":"",R," since first run"]})]}),v(zo,{opts:d,data:m,theme:t}),v("div",{class:"legend",children:[v("span",{children:["First ",v("b",{children:b})]}),v("span",{children:["Latest ",v("b",{style:{color:Ur(x/100)},children:x})]}),v("span",{children:["Runs ",n.length]})]})]}),v("section",{class:"card",children:[v("h2",{class:"card-title",children:"Category scores over time"}),v(zo,{opts:w,data:h,theme:t}),v("div",{class:"legend wrap",children:c.map((y,E)=>v("span",{children:[v("span",{class:"swatch",style:{background:l[E%l.length]}}),f.get(y)??y]},y))})]})]})}function Wo(){const e=Ar("--chart-axis","#8b949e"),t={stroke:Ar("--chart-grid","#21262d"),width:1};return[{stroke:e,grid:t,ticks:t},{stroke:e,grid:t,ticks:t}]}function Ga(){const e=ns(),n=`Switch to ${e==="dark"?"light":"dark"} mode`;return v("button",{type:"button",class:"theme-toggle",title:n,"aria-label":n,onClick:()=>Vc(),children:v("span",{"aria-hidden":"true",children:e==="dark"?"☀":"☾"})})}const Ua=[{id:"overview",label:"Overview"},{id:"criteria",label:"Criteria"},{id:"history",label:"History"},{id:"trends",label:"Trends"}];function Ba(){var _;const[e,t]=Xl(null),[n,l]=Xl(null),[i,s]=Xl("overview"),c=ns();Ir(()=>{Nc().then(t).catch(d=>l(d instanceof Error?d.message:String(d)))},[]);const f=(e==null?void 0:e.repo)??((_=e==null?void 0:e.latest)==null?void 0:_.repo)??"";return v("div",{class:"app",children:[v("header",{class:"topbar",children:[v("div",{class:"brand",children:[v("span",{class:"logo",children:"edsger"}),v("span",{class:"subtitle",children:"benchmark dashboard"})]}),v("div",{class:"topbar-actions",children:[f?v("div",{class:"repo",children:f}):null,v(Ga,{})]})]}),v("nav",{class:"tabs",children:Ua.map(d=>v("button",{class:`tab ${i===d.id?"active":""}`,onClick:()=>s(d.id),children:d.label},d.id))}),v("main",{class:"content",children:n?v(Cl,{children:[v("strong",{children:"Failed to load data."}),v("div",{class:"muted",children:n})]}):e?i==="overview"?v(Ic,{data:e}):i==="criteria"?v(Gc,{data:e}):i==="history"?v(Uc,{data:e}):v(Ia,{data:e,theme:c}):v(Cl,{children:"Loading…"})}),v("footer",{class:"foot",children:v("span",{children:"Generated by edsger"})})]})}const $o=document.getElementById("app");$o&&Dc(v(Ba,{}),$o);
|
package/assets/viewer/index.html
CHANGED
|
@@ -3,10 +3,27 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<script>
|
|
7
|
+
(function () {
|
|
8
|
+
try {
|
|
9
|
+
var t = localStorage.getItem("edsger-theme");
|
|
10
|
+
if (t !== "light" && t !== "dark") {
|
|
11
|
+
t =
|
|
12
|
+
window.matchMedia &&
|
|
13
|
+
window.matchMedia("(prefers-color-scheme: light)").matches
|
|
14
|
+
? "light"
|
|
15
|
+
: "dark";
|
|
16
|
+
}
|
|
17
|
+
document.documentElement.setAttribute("data-theme", t);
|
|
18
|
+
} catch (e) {
|
|
19
|
+
document.documentElement.setAttribute("data-theme", "dark");
|
|
20
|
+
}
|
|
21
|
+
})();
|
|
22
|
+
</script>
|
|
6
23
|
<title>Edsger — Benchmark Dashboard</title>
|
|
7
24
|
<!-- __EDSGER_DATA__ is injected here when exported as a single self-contained file. -->
|
|
8
|
-
<script type="module" crossorigin src="./assets/index-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
25
|
+
<script type="module" crossorigin src="./assets/index-XOKyyudT.js"></script>
|
|
26
|
+
<link rel="stylesheet" crossorigin href="./assets/index-BFtGar9N.css">
|
|
10
27
|
</head>
|
|
11
28
|
<body>
|
|
12
29
|
<div id="app"></div>
|