@marimo-team/frontend 0.13.1-dev25 → 0.13.1-dev29

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.
Files changed (106) hide show
  1. package/dist/assets/{ConnectedDataExplorerComponent-BblKFZH1.js → ConnectedDataExplorerComponent-B3u-eJ3c.js} +1 -1
  2. package/dist/assets/{VegaLite-C7Ly0-4b.js → VegaLite-C-2YL5gv.js} +2 -2
  3. package/dist/assets/_baseEach-BS5yXLYc.js +1 -0
  4. package/dist/assets/_baseMap-BXx4LzAB.js +1 -0
  5. package/dist/assets/_baseUniq-D6JBsdZB.js +1 -0
  6. package/dist/assets/_createAggregator-XqO7i9is.js +1 -0
  7. package/dist/assets/{any-language-editor-xAQbndSo.js → any-language-editor-B6hTvUk_.js} +1 -1
  8. package/dist/assets/{architectureDiagram-IEHRJDOE-BfKOgH7B.js → architectureDiagram-IEHRJDOE-DH6lha-_.js} +1 -1
  9. package/dist/assets/{blockDiagram-JOT3LUYC-BzAIFwY7.js → blockDiagram-JOT3LUYC-H-_F-Lj7.js} +1 -1
  10. package/dist/assets/{c4Diagram-VJAJSXHY-BY3ySbC0.js → c4Diagram-VJAJSXHY-B7chONQh.js} +1 -1
  11. package/dist/assets/channel-Dvwh5Q2M.js +1 -0
  12. package/dist/assets/{chunk-4BMEZGHF-CtF-ZwiF.js → chunk-4BMEZGHF-BXdhLSel.js} +1 -1
  13. package/dist/assets/{chunk-A2AXSNBT-DJ4z7yDs.js → chunk-A2AXSNBT-4x8C4GnI.js} +1 -1
  14. package/dist/assets/{chunk-AEK57VVT-DRvP6xTE.js → chunk-AEK57VVT-CdM96PPb.js} +1 -1
  15. package/dist/assets/{chunk-D6G4REZN-B6Yr0rzZ.js → chunk-D6G4REZN-DONf25wR.js} +1 -1
  16. package/dist/assets/{chunk-RZ5BOZE2-BeoeO2Dt.js → chunk-RZ5BOZE2-B1JEnMzK.js} +1 -1
  17. package/dist/assets/{chunk-XZIHB7SX-CDluTmSl.js → chunk-XZIHB7SX-MwaxtqD8.js} +1 -1
  18. package/dist/assets/{circle-play-73PUihhg.js → circle-play-B_YmbKJS.js} +1 -1
  19. package/dist/assets/classDiagram-GIVACNV2-WuX9k-Uq.js +1 -0
  20. package/dist/assets/classDiagram-v2-COTLJTTW-WuX9k-Uq.js +1 -0
  21. package/dist/assets/clone-vGsKWxgh.js +1 -0
  22. package/dist/assets/{compile-DVfExffU.js → compile-CVq3Vde4.js} +1 -1
  23. package/dist/assets/{dagre-OKDRZEBW-DBVqe5G_.js → dagre-OKDRZEBW-asySZbK_.js} +1 -1
  24. package/dist/assets/data-editor-BzNaANoj.js +1 -0
  25. package/dist/assets/{diagram-SSKATNLV-D48fSLUS.js → diagram-SSKATNLV-B7GoDcBk.js} +1 -1
  26. package/dist/assets/{diagram-VNBRO52H-Dj7BqAHj.js → diagram-VNBRO52H-D5OSg6MG.js} +1 -1
  27. package/dist/assets/edit-page-CzebKjlP.js +8 -0
  28. package/dist/assets/{erDiagram-Q7BY3M3F-DTWbjaSl.js → erDiagram-Q7BY3M3F-CgJXoSLy.js} +1 -1
  29. package/dist/assets/{flowDiagram-4HSFHLVR-bNvgw1N9.js → flowDiagram-4HSFHLVR-DsVYlz8g.js} +1 -1
  30. package/dist/assets/{ganttDiagram-APWFNJXF-COzuSckV.js → ganttDiagram-APWFNJXF-Dh_rOpjz.js} +1 -1
  31. package/dist/assets/{gitGraphDiagram-7IBYFJ6S-BcpuOP-n.js → gitGraphDiagram-7IBYFJ6S-DOhiaF7r.js} +1 -1
  32. package/dist/assets/{graph-CnlNlcei.js → graph-BDUtWj6I.js} +1 -1
  33. package/dist/assets/{home-page-DbYtCbPa.js → home-page-zkdLV1w_.js} +2 -2
  34. package/dist/assets/index-B3L88MTf.js +1 -0
  35. package/dist/assets/index-BRznCCzV.js +1 -0
  36. package/dist/assets/{index--_ljMq-_.js → index-BZaeNdga.js} +1 -1
  37. package/dist/assets/{index-B5JUlVve.js → index-B_VGr_qq.js} +1 -1
  38. package/dist/assets/{index-MReygRwX.js → index-BjFf7Yj5.js} +1 -1
  39. package/dist/assets/{index-PR8tnhWs.js → index-BrWurJTR.js} +1 -1
  40. package/dist/assets/{index-mFC_znJV.js → index-CBJzduN9.js} +1 -1
  41. package/dist/assets/{index-DAMJYop2.js → index-CBLmAH4-.js} +1 -1
  42. package/dist/assets/{index-JTJYYqiX.js → index-CR_joj9Q.js} +1 -1
  43. package/dist/assets/index-CSBjIz14.js +1 -0
  44. package/dist/assets/{index-BsLBN4uM.js → index-CSF6H-fy.js} +1 -1
  45. package/dist/assets/index-C_s7yDug.js +79 -0
  46. package/dist/assets/{index-BW5D9Yef.js → index-CyQAp8-o.js} +1 -1
  47. package/dist/assets/index-DQ-mLFwY.css +1 -0
  48. package/dist/assets/{index-DF7Q3MM-.js → index-DUlOVIu2.js} +1 -1
  49. package/dist/assets/index-LzOM6FxG.js +1 -0
  50. package/dist/assets/index-PAkMvNf3.js +1 -0
  51. package/dist/assets/{index-YlmZVAwd.js → index-Xs3JJQLd.js} +1 -1
  52. package/dist/assets/{index-6uPulPd2.js → index-cpUKAZVF.js} +1 -1
  53. package/dist/assets/infoDiagram-PH2N3AL5-Cyz1-JzH.js +1 -0
  54. package/dist/assets/{journeyDiagram-U35MCT3I-DMH6D2iz.js → journeyDiagram-U35MCT3I-Bxo-AqHe.js} +1 -1
  55. package/dist/assets/{kanban-definition-NDS4AKOZ-CRav5tqT.js → kanban-definition-NDS4AKOZ-SWLw7HJO.js} +1 -1
  56. package/dist/assets/{layout-BgR20c_M.js → layout-DlhMQzX9.js} +1 -1
  57. package/dist/assets/{linear-BeTkdUDL.js → linear-BXC-0Pps.js} +1 -1
  58. package/dist/assets/{mermaid-DAilT1aL.js → mermaid-E85XEiB_.js} +3 -3
  59. package/dist/assets/min-Byz-Sae3.js +1 -0
  60. package/dist/assets/{mindmap-definition-ALO5MXBD-2T5EMxHj.js → mindmap-definition-ALO5MXBD-MA2mPedf.js} +1 -1
  61. package/dist/assets/{pieDiagram-IB7DONF6-CXOM7ydB.js → pieDiagram-IB7DONF6-w_tp5yIB.js} +1 -1
  62. package/dist/assets/{quadrantDiagram-7GDLP6J5-B2HmVydb.js → quadrantDiagram-7GDLP6J5-CZx4ruYC.js} +1 -1
  63. package/dist/assets/{radar-MK3ICKWK-CRePVkRN.js → radar-MK3ICKWK-CC1wmicB.js} +1 -1
  64. package/dist/assets/{react-plotly-BADqe0Q-.js → react-plotly-C63lVw89.js} +1 -1
  65. package/dist/assets/{requirementDiagram-KVF5MWMF-BumwX2yP.js → requirementDiagram-KVF5MWMF-DKUCflh2.js} +1 -1
  66. package/dist/assets/run-page-BCXLEBdH.js +1 -0
  67. package/dist/assets/{sankeyDiagram-QLVOVGJD-Sa8V98Ao.js → sankeyDiagram-QLVOVGJD-DGRoR_Cw.js} +1 -1
  68. package/dist/assets/{sequenceDiagram-X6HHIX6F-B0A-jSCO.js → sequenceDiagram-X6HHIX6F-ArJaxLd0.js} +1 -1
  69. package/dist/assets/slides-component-DTAefP5S.js +1 -0
  70. package/dist/assets/sortBy-gqI5_BYs.js +1 -0
  71. package/dist/assets/{stateDiagram-DGXRK772-B8O1YARM.js → stateDiagram-DGXRK772-CSBWwzYQ.js} +1 -1
  72. package/dist/assets/stateDiagram-v2-YXO3MK2T-DVrvSGab.js +1 -0
  73. package/dist/assets/{terminal-D_z9jAXF.js → terminal-BmpVsz6i.js} +1 -1
  74. package/dist/assets/time-CFdgLM2H.js +1 -0
  75. package/dist/assets/{timeline-definition-BDJGKUSR-BJeLsdQH.js → timeline-definition-BDJGKUSR-Bd-HqBHx.js} +1 -1
  76. package/dist/assets/{tracing-_m19t8W8.js → tracing-Bcv_go9S.js} +3 -3
  77. package/dist/assets/{tree-DwawXzYV.js → tree-BJeUGA-b.js} +1 -1
  78. package/dist/assets/{useMarimoWebSocket-Bpqrb5_x.js → useMarimoWebSocket-CGZGglcW.js} +4 -4
  79. package/dist/assets/{vega-component-DZtHMFPv.js → vega-component-DkgM1sIe.js} +1 -1
  80. package/dist/assets/{xychartDiagram-VJFVF3MP-BghXKBqi.js → xychartDiagram-VJFVF3MP-BYTlhLVq.js} +1 -1
  81. package/dist/index.html +2 -2
  82. package/package.json +2 -1
  83. package/dist/assets/_baseEach-D3eR_Sql.js +0 -1
  84. package/dist/assets/_baseMap-C1-bLQzK.js +0 -1
  85. package/dist/assets/_baseUniq-BPx6Lq9p.js +0 -1
  86. package/dist/assets/_createAggregator-C42a3QaK.js +0 -1
  87. package/dist/assets/channel-CKlWypQp.js +0 -1
  88. package/dist/assets/chart-spec-C8QQyetZ.js +0 -1
  89. package/dist/assets/classDiagram-GIVACNV2-xxZXDEvJ.js +0 -1
  90. package/dist/assets/classDiagram-v2-COTLJTTW-xxZXDEvJ.js +0 -1
  91. package/dist/assets/clone-BuBvO4zh.js +0 -1
  92. package/dist/assets/data-editor-Dq1ecVLe.js +0 -1
  93. package/dist/assets/edit-page-Csna93nZ.js +0 -8
  94. package/dist/assets/index-BRwgU-Hc.js +0 -1
  95. package/dist/assets/index-ChJV1gE2.js +0 -1
  96. package/dist/assets/index-Chg4IT9m.js +0 -79
  97. package/dist/assets/index-DHdRchuA.js +0 -1
  98. package/dist/assets/index-rUSbvs66.css +0 -1
  99. package/dist/assets/index-ydKolqMM.js +0 -1
  100. package/dist/assets/infoDiagram-PH2N3AL5-B8wr9aT2.js +0 -1
  101. package/dist/assets/min--X8Aq_Oq.js +0 -1
  102. package/dist/assets/run-page-C41GrV7z.js +0 -1
  103. package/dist/assets/slides-component-C6M0gzoU.js +0 -1
  104. package/dist/assets/sortBy-CVfCEMhq.js +0 -1
  105. package/dist/assets/stateDiagram-v2-YXO3MK2T-nbRjJTcR.js +0 -1
  106. package/dist/assets/time-Clfwzyn0.js +0 -1
@@ -1,4 +1,4 @@
1
- import{q as e,w as t,dl as n,W as r,eW as i,eX as o,eY as a,eZ as s,aM as c,dI as l,d$ as u,al as d,Q as f,U as p,e_ as h,e$ as g,f0 as m,f1 as y,f2 as v,f3 as b,f4 as x,bO as E,f5 as T,dt as S,f6 as N,T as w,ai as C,a4 as A,f7 as O,dB as k,f8 as M,aG as I,ah as U,ar as F,f9 as D,aN as _,fa as j,aE as P,aI as R,R as $}from"./index-Chg4IT9m.js";import{U as B,e as L,V as W}from"./compile-DVfExffU.js";import{a as H}from"./VegaLite-C7Ly0-4b.js";import"./time-Clfwzyn0.js";import"./timer-DFzT7np-.js";import"./linear-BeTkdUDL.js";import"./init-DLRA0X12.js";import"./range-CtcPcB_L.js";import"./zoom-COrs4lFh.js";import"./ordinal-DDUp3AbE.js";import"./colors-bszWmPJw.js";import"./step-5BjdtTEt.js";import"./arc-cUKDg37C.js";import"./index-ydKolqMM.js";
1
+ import{m as e,r as t,df as n,P as r,eR as i,eS as o,eT as a,eU as s,aG as c,dC as l,dV as u,af as d,H as f,M as p,eV as h,eW as g,eX as m,eY as y,eZ as v,e_ as b,e$ as x,bI as E,f0 as T,dm as S,f1 as N,K as w,ac as C,_ as A,f2 as O,dv as k,f3 as M,aA as I,ab as U,al as F,f4 as D,aH as _,f5 as j,ay as P,aC as R,R as $}from"./index-C_s7yDug.js";import{U as B,e as L,V as W}from"./compile-CVq3Vde4.js";import{a as H}from"./VegaLite-C-2YL5gv.js";import"./time-CFdgLM2H.js";import"./timer-DFzT7np-.js";import"./linear-BXC-0Pps.js";import"./init-DLRA0X12.js";import"./range-CtcPcB_L.js";import"./zoom-COrs4lFh.js";import"./ordinal-DDUp3AbE.js";import"./colors-bszWmPJw.js";import"./step-5BjdtTEt.js";import"./arc-cUKDg37C.js";import"./index-BRznCCzV.js";
2
2
  /**
3
3
  * @license lucide-react v0.485.0 - ISC
4
4
  *
@@ -1,4 +1,4 @@
1
- var e;import{w as t,cE as n,cF as r,cG as i,cH as o,cI as a,cJ as s,R as l,cK as c}from"./index-Chg4IT9m.js";import{a as h,b as p,d as f,c as u,e as d,f as g,g as m,h as v,i as E,j as b,k as y,l as w,m as O,n as x,o as A,p as N,q as I,r as S,s as R,t as L,u as $,v as T,w as D,x as k,y as C,z as F,A as P,B as _,C as j,D as M,E as z,F as U,G,H as B,I as V,J as W,K as X,L as H,N as q,O as J,P as Y,Q,R as K,S as Z,T as ee}from"./compile-DVfExffU.js";import{e as te}from"./index-ydKolqMM.js";const ne={};function re(e,t){void 0===e&&(e=ne),void 0===t&&(t=ne);const n=Object.keys(e),r=Object.keys(t);return e===t||n.length===r.length&&n.every((n=>e[n]===t[n]))}
1
+ var e;import{r as t,cy as n,cz as r,cA as i,cB as o,cC as a,cD as s,R as l,cE as c}from"./index-C_s7yDug.js";import{a as h,b as p,d as f,c as u,e as d,f as g,g as m,h as v,i as E,j as b,k as y,l as w,m as O,n as x,o as A,p as N,q as I,r as S,s as R,t as L,u as $,v as T,w as D,x as C,y as k,z as F,A as P,B as _,C as j,D as M,E as z,F as U,G,H as B,I as V,J as W,K as X,L as H,N as q,O as Y,P as J,Q,R as K,S as Z,T as ee}from"./compile-CVq3Vde4.js";import{e as te}from"./index-BRznCCzV.js";const ne={};function re(e,t){void 0===e&&(e=ne),void 0===t&&(t=ne);const n=Object.keys(e),r=Object.keys(t);return e===t||n.length===r.length&&n.every((n=>e[n]===t[n]))}
2
2
  /*!
3
3
  * https://github.com/Starcounter-Jack/JSON-Patch
4
4
  * (c) 2017-2022 Joachim Wester
@@ -8,4 +8,4 @@ var e;import{w as t,cE as n,cF as r,cG as i,cH as o,cI as a,cJ as s,R as l,cK as
8
8
  * https://github.com/Starcounter-Jack/JSON-Patch
9
9
  * (c) 2017-2021 Joachim Wester
10
10
  * MIT license
11
- */var Ie=new WeakMap,Se=function(){return function(e){this.observers=new Map,this.obj=e}}(),Re=function(){return function(e,t){this.callback=e,this.observer=t}}();function Le(e,t){void 0===t&&(t=!1);var n=Ie.get(e.object);$e(n.value,e.object,e.patches,"",t),e.patches.length&&we(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function $e(e,t,n,r,i){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var o=se(t),a=se(e),s=!1,l=a.length-1;l>=0;l--){var c=e[p=a[l]];if(!ae(t,p)||void 0===t[p]&&void 0!==c&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(i&&n.push({op:"test",path:r+"/"+he(p),value:le(c)}),n.push({op:"remove",path:r+"/"+he(p)}),s=!0):(i&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}));else{var h=t[p];"object"==typeof c&&null!=c&&"object"==typeof h&&null!=h&&Array.isArray(c)===Array.isArray(h)?$e(c,h,n,r+"/"+he(p),i):c!==h&&(i&&n.push({op:"test",path:r+"/"+he(p),value:le(c)}),n.push({op:"replace",path:r+"/"+he(p),value:le(h)}))}}if(s||o.length!=a.length)for(l=0;l<o.length;l++){var p;ae(e,p=o[l])||void 0===t[p]||n.push({op:"add",path:r+"/"+he(p),value:le(t[p])})}}}const Te=Object.freeze(Object.defineProperty({__proto__:null,compare:function(e,t,n){void 0===n&&(n=!1);var r=[];return $e(e,t,r,"",n),r},generate:Le,observe:function(e,t){var n,r=function(e){return Ie.get(e)}(e);if(r){var i=function(e,t){return e.observers.get(t)}(r,t);n=i&&i.observer}else r=new Se(e),Ie.set(e,r);if(n)return n;if(n={},r.value=le(e),t){n.callback=t,n.next=null;var o=function(){Le(n)},a=function(){clearTimeout(n.next),n.next=setTimeout(o)};"undefined"!=typeof window&&(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a))}return n.patches=[],n.object=e,n.unobserve=function(){Le(n),clearTimeout(n.next),function(e,t){e.observers.delete(t.callback)}(r,n),"undefined"!=typeof window&&(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a),window.removeEventListener("change",a))},r.observers.set(t,new Re(t,n)),n},unobserve:function(e,t){t.unobserve()}},Symbol.toStringTag,{value:"Module"}));var De,ke;Object.assign({},Ne,Te,{JsonPatchError:de,deepClone:le,escapePathComponent:he,unescapePathComponent:pe});const Ce=t(function(){if(ke)return De;ke=1;var e=/("(?:[^\\"]|\\.)*")|[:,]/g;return De=function(t,n){var r,i,o;return n=n||{},r=JSON.stringify([1],void 0,void 0===n.indent?2:n.indent).slice(2,-3),i=""===r?1/0:void 0===n.maxLength?80:n.maxLength,o=n.replacer,function t(n,a,s){var l,c,h,p,f,u,d,g,m,v,E,b;if(n&&"function"==typeof n.toJSON&&(n=n.toJSON()),void 0===(E=JSON.stringify(n,o)))return E;if(d=i-a.length-s,E.length<=d&&(m=E.replace(e,(function(e,t){return t||e+" "}))).length<=d)return m;if(null!=o&&(n=JSON.parse(E),o=void 0),"object"==typeof n&&null!==n){if(g=a+r,h=[],c=0,Array.isArray(n))for(v="[",l="]",d=n.length;c<d;c++)h.push(t(n[c],g,c===d-1?0:1)||"null");else for(v="{",l="}",d=(u=Object.keys(n)).length;c<d;c++)p=u[c],f=JSON.stringify(p)+": ",void 0!==(b=t(n[p],g,f.length+(c===d-1?0:1)))&&h.push(f+b);if(h.length>0)return[v,r+h.join(",\n"+g),l].join("\n"+a)}return E}(t,"",0)}}());var Fe={NaN:NaN,E:Math.E,LN2:Math.LN2,LN10:Math.LN10,LOG2E:Math.LOG2E,LOG10E:Math.LOG10E,PI:Math.PI,SQRT1_2:Math.SQRT1_2,SQRT2:Math.SQRT2,MIN_VALUE:Number.MIN_VALUE,MAX_VALUE:Number.MAX_VALUE},Pe={"*":(e,t)=>e*t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"%":(e,t)=>e%t,">":(e,t)=>e>t,"<":(e,t)=>e<t,"<=":(e,t)=>e<=t,">=":(e,t)=>e>=t,"==":(e,t)=>e==t,"!=":(e,t)=>e!=t,"===":(e,t)=>e===t,"!==":(e,t)=>e!==t,"&":(e,t)=>e&t,"|":(e,t)=>e|t,"^":(e,t)=>e^t,"<<":(e,t)=>e<<t,">>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t},_e={"+":e=>+e,"-":e=>-e,"~":e=>~e,"!":e=>!e};const je=Array.prototype.slice,Me=(e,t,n)=>{const r=n?n(t[0]):t[0];return r[e].apply(r,je.call(t,1))};var ze={isNaN:Number.isNaN,isFinite:Number.isFinite,abs:Math.abs,acos:Math.acos,asin:Math.asin,atan:Math.atan,atan2:Math.atan2,ceil:Math.ceil,cos:Math.cos,exp:Math.exp,floor:Math.floor,log:Math.log,max:Math.max,min:Math.min,pow:Math.pow,random:Math.random,round:Math.round,sin:Math.sin,sqrt:Math.sqrt,tan:Math.tan,clamp:(e,t,n)=>Math.max(t,Math.min(n,e)),now:Date.now,utc:Date.UTC,datetime:(e,t,n,r,i,o,a)=>new Date(e,t||0,null!=n?n:1,r||0,i||0,o||0,a||0),date:e=>new Date(e).getDate(),day:e=>new Date(e).getDay(),year:e=>new Date(e).getFullYear(),month:e=>new Date(e).getMonth(),hours:e=>new Date(e).getHours(),minutes:e=>new Date(e).getMinutes(),seconds:e=>new Date(e).getSeconds(),milliseconds:e=>new Date(e).getMilliseconds(),time:e=>new Date(e).getTime(),timezoneoffset:e=>new Date(e).getTimezoneOffset(),utcdate:e=>new Date(e).getUTCDate(),utcday:e=>new Date(e).getUTCDay(),utcyear:e=>new Date(e).getUTCFullYear(),utcmonth:e=>new Date(e).getUTCMonth(),utchours:e=>new Date(e).getUTCHours(),utcminutes:e=>new Date(e).getUTCMinutes(),utcseconds:e=>new Date(e).getUTCSeconds(),utcmilliseconds:e=>new Date(e).getUTCMilliseconds(),length:e=>e.length,join:function(){return Me("join",arguments)},indexof:function(){return Me("indexOf",arguments)},lastindexof:function(){return Me("lastIndexOf",arguments)},slice:function(){return Me("slice",arguments)},reverse:e=>e.slice().reverse(),parseFloat:parseFloat,parseInt:parseInt,upper:e=>String(e).toUpperCase(),lower:e=>String(e).toLowerCase(),substring:function(){return Me("substring",arguments,String)},split:function(){return Me("split",arguments,String)},replace:function(){return Me("replace",arguments,String)},trim:e=>String(e).trim(),regexp:RegExp,test:(e,t)=>RegExp(e).test(t)};const Ue=["view","item","group","xy","x","y"],Ge=new Set([Function,eval,setTimeout,setInterval]);"function"==typeof setImmediate&&Ge.add(setImmediate);const Be={Literal:(e,t)=>t.value,Identifier:(e,t)=>{const n=t.name;return e.memberDepth>0?n:"datum"===n?e.datum:"event"===n?e.event:"item"===n?e.item:Fe[n]||e.params["$"+n]},MemberExpression:(e,t)=>{const n=!t.computed,r=e(t.object);n&&(e.memberDepth+=1);const i=e(t.property);if(n&&(e.memberDepth-=1),!Ge.has(r[i]))return r[i];console.error(`Prevented interpretation of member "${i}" which could lead to insecure code execution`)},CallExpression:(e,t)=>{const n=t.arguments;let r=t.callee.name;return r.startsWith("_")&&(r=r.slice(1)),"if"===r?e(n[0])?e(n[1]):e(n[2]):(e.fn[r]||ze[r]).apply(e.fn,n.map(e))},ArrayExpression:(e,t)=>t.elements.map(e),BinaryExpression:(e,t)=>Pe[t.operator](e(t.left),e(t.right)),UnaryExpression:(e,t)=>_e[t.operator](e(t.argument)),ConditionalExpression:(e,t)=>e(t.test)?e(t.consequent):e(t.alternate),LogicalExpression:(e,t)=>"&&"===t.operator?e(t.left)&&e(t.right):e(t.left)||e(t.right),ObjectExpression:(e,t)=>t.properties.reduce(((t,n)=>{e.memberDepth+=1;const r=e(n.key);return e.memberDepth-=1,Ge.has(e(n.value))?console.error(`Prevented interpretation of property "${r}" which could lead to insecure code execution`):t[r]=e(n.value),t}),{})};function Ve(e,t,n,r,i,o){const a=e=>Be[e.type](a,e);return a.memberDepth=0,a.fn=Object.create(t),a.params=n,a.datum=r,a.event=i,a.item=o,Ue.forEach((e=>a.fn[e]=function(){return i.vega[e](...arguments)})),a(e)}var We={operator(e,t){const n=t.ast,r=e.functions;return e=>Ve(n,r,e)},parameter(e,t){const n=t.ast,r=e.functions;return(e,t)=>Ve(n,r,t,e)},event(e,t){const n=t.ast,r=e.functions;return e=>Ve(n,r,void 0,void 0,e)},handler(e,t){const n=t.ast,r=e.functions;return(e,t)=>{const i=t.item&&t.item.datum;return Ve(n,r,e,i,t)}},encode(e,t){const{marktype:n,channels:r}=t,i=e.functions,o="group"===n||"image"===n||"rect"===n;return(e,t)=>{const a=e.datum;let s,l=0;for(const n in r)s=Ve(r[n].ast,i,t,a,void 0,e),e[n]!==s&&(e[n]=s,l=1);return"rule"!==n&&function(e,t,n){let r;t.x2&&(t.x?(n&&e.x>e.x2&&(r=e.x,e.x=e.x2,e.x2=r),e.width=e.x2-e.x):e.x=e.x2-(e.width||0)),t.xc&&(e.x=e.xc-(e.width||0)/2),t.y2&&(t.y?(n&&e.y>e.y2&&(r=e.y,e.y=e.y2,e.y2=r),e.height=e.y2-e.y):e.y=e.y2-(e.height||0)),t.yc&&(e.y=e.yc-(e.height||0)/2)}(e,r,o),l}}};const Xe="5.23.0",He=Object.freeze(Object.defineProperty({__proto__:null,accessPathDepth:h,accessPathWithDatum:p,accessWithDatumToUnescapedPath:f,compile:u,contains:d,deepEqual:g,deleteNestedProperty:m,duplicate:v,entries:E,every:b,fieldIntersection:y,flatAccessWithDatum:w,getFirstDefined:O,hasIntersection:x,hasProperty:A,hash:N,internalField:I,isBoolean:S,isEmpty:R,isEqual:L,isInternalField:$,isNullOrFalse:T,isNumeric:D,keys:k,logicalExpr:C,mergeDeep:F,never:P,normalize:_,normalizeAngle:j,omit:M,pick:z,prefixGenerator:U,removePathFromField:G,replaceAll:B,replacePathInField:V,resetIdCounter:W,setEqual:X,some:H,stringify:q,titleCase:J,unique:Y,uniqueId:Q,vals:K,varName:Z,version:Xe},Symbol.toStringTag,{value:"Module"}));function qe(e){const[t,n]=/schema\/([\w-]+)\/([\w\.\-]+)\.json$/g.exec(e).slice(1,3);return{library:t,version:n}}var Je="2.14.0";const Ye="#fff",Qe="#888",Ke={background:"#333",view:{stroke:Qe},title:{color:Ye,subtitleColor:Ye},style:{"guide-label":{fill:Ye},"guide-title":{fill:Ye}},axis:{domainColor:Ye,gridColor:Qe,tickColor:Ye}},Ze="#4572a7",et={background:"#fff",arc:{fill:Ze},area:{fill:Ze},line:{stroke:Ze,strokeWidth:2},path:{stroke:Ze},rect:{fill:Ze},shape:{stroke:Ze},symbol:{fill:Ze,strokeWidth:1.5,size:50},axis:{bandPosition:.5,grid:!0,gridColor:"#000000",gridOpacity:1,gridWidth:.5,labelPadding:10,tickSize:5,tickWidth:.5},axisBand:{grid:!1,tickExtra:!0},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:50,symbolType:"square"},range:{category:["#4572a7","#aa4643","#8aa453","#71598e","#4598ae","#d98445","#94aace","#d09393","#b9cc98","#a99cbc"]}},tt="#30a2da",nt="#cbcbcb",rt="#f0f0f0",it="#333",ot={arc:{fill:tt},area:{fill:tt},axis:{domainColor:nt,grid:!0,gridColor:nt,gridWidth:1,labelColor:"#999",labelFontSize:10,titleColor:"#333",tickColor:nt,tickSize:10,titleFontSize:14,titlePadding:10,labelPadding:4},axisBand:{grid:!1},background:rt,group:{fill:rt},legend:{labelColor:it,labelFontSize:11,padding:1,symbolSize:30,symbolType:"square",titleColor:it,titleFontSize:14,titlePadding:10},line:{stroke:tt,strokeWidth:2},path:{stroke:tt,strokeWidth:.5},rect:{fill:tt},range:{category:["#30a2da","#fc4f30","#e5ae38","#6d904f","#8b8b8b","#b96db8","#ff9e27","#56cc60","#52d2ca","#52689e","#545454","#9fe4f8"],diverging:["#cc0020","#e77866","#f6e7e1","#d6e8ed","#91bfd9","#1d78b5"],heatmap:["#d6e8ed","#cee0e5","#91bfd9","#549cc6","#1d78b5"]},point:{filled:!0,shape:"circle"},shape:{stroke:tt},bar:{binSpacing:2,fill:tt,stroke:null},title:{anchor:"start",fontSize:24,fontWeight:600,offset:20}},at="#000",st={group:{fill:"#e5e5e5"},arc:{fill:at},area:{fill:at},line:{stroke:at},path:{stroke:at},rect:{fill:at},shape:{stroke:at},symbol:{fill:at,size:40},axis:{domain:!1,grid:!0,gridColor:"#FFFFFF",gridOpacity:1,labelColor:"#7F7F7F",labelPadding:4,tickColor:"#7F7F7F",tickSize:5.67,titleFontSize:16,titleFontWeight:"normal"},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:40},range:{category:["#000000","#7F7F7F","#1A1A1A","#999999","#333333","#B0B0B0","#4D4D4D","#C9C9C9","#666666","#DCDCDC"]}},lt="Benton Gothic, sans-serif",ct="#82c6df",ht="Benton Gothic Bold, sans-serif",pt="normal",ft={"category-6":["#ec8431","#829eb1","#c89d29","#3580b1","#adc839","#ab7fb4"],"fire-7":["#fbf2c7","#f9e39c","#f8d36e","#f4bb6a","#e68a4f","#d15a40","#ab4232"],"fireandice-6":["#e68a4f","#f4bb6a","#f9e39c","#dadfe2","#a6b7c6","#849eae"]},ut={background:"#ffffff",title:{anchor:"start",color:"#000000",font:ht,fontSize:22,fontWeight:"normal"},arc:{fill:ct},area:{fill:ct},line:{stroke:ct,strokeWidth:2},path:{stroke:ct},rect:{fill:ct},shape:{stroke:ct},symbol:{fill:ct,size:30},axis:{labelFont:lt,labelFontSize:11.5,labelFontWeight:"normal",titleFont:ht,titleFontSize:13,titleFontWeight:pt},axisX:{labelAngle:0,labelPadding:4,tickSize:3},axisY:{labelBaseline:"middle",maxExtent:45,minExtent:45,tickSize:2,titleAlign:"left",titleAngle:0,titleX:-45,titleY:-11},legend:{labelFont:lt,labelFontSize:11.5,symbolType:"square",titleFont:ht,titleFontSize:13,titleFontWeight:pt},range:{category:ft["category-6"],diverging:ft["fireandice-6"],heatmap:ft["fire-7"],ordinal:ft["fire-7"],ramp:ft["fire-7"]}},dt="#ab5787",gt="#979797",mt={background:"#f9f9f9",arc:{fill:dt},area:{fill:dt},line:{stroke:dt},path:{stroke:dt},rect:{fill:dt},shape:{stroke:dt},symbol:{fill:dt,size:30},axis:{domainColor:gt,domainWidth:.5,gridWidth:.2,labelColor:gt,tickColor:gt,tickWidth:.2,titleColor:gt},axisBand:{grid:!1},axisX:{grid:!0,tickSize:10},axisY:{domain:!1,grid:!0,tickSize:0},legend:{labelFontSize:11,padding:1,symbolSize:30,symbolType:"square"},range:{category:["#ab5787","#51b2e5","#703c5c","#168dd9","#d190b6","#00609f","#d365ba","#154866","#666666","#c4c4c4"]}},vt="#3e5c69",Et={background:"#fff",arc:{fill:vt},area:{fill:vt},line:{stroke:vt},path:{stroke:vt},rect:{fill:vt},shape:{stroke:vt},symbol:{fill:vt},axis:{domainWidth:.5,grid:!0,labelPadding:2,tickSize:5,tickWidth:.5,titleFontWeight:"normal"},axisBand:{grid:!1},axisX:{gridWidth:.2},axisY:{gridDash:[3],gridWidth:.4},legend:{labelFontSize:11,padding:1,symbolType:"square"},range:{category:["#3e5c69","#6793a6","#182429","#0570b0","#3690c0","#74a9cf","#a6bddb","#e2ddf2"]}},bt="#1696d2",yt="#000000",wt="Lato",Ot="Lato",xt={"shades-blue":["#CFE8F3","#A2D4EC","#73BFE2","#46ABDB","#1696D2","#12719E","#0A4C6A","#062635"],"six-groups-cat-1":["#1696d2","#ec008b","#fdbf11","#000000","#d2d2d2","#55b748"],"six-groups-seq":["#cfe8f3","#a2d4ec","#73bfe2","#46abdb","#1696d2","#12719e"],"diverging-colors":["#ca5800","#fdbf11","#fdd870","#fff2cf","#cfe8f3","#73bfe2","#1696d2","#0a4c6a"]},At={background:"#FFFFFF",title:{anchor:"start",fontSize:18,font:wt},axisX:{domain:!0,domainColor:yt,domainWidth:1,grid:!1,labelFontSize:12,labelFont:Ot,labelAngle:0,tickColor:yt,tickSize:5,titleFontSize:12,titlePadding:10,titleFont:wt},axisY:{domain:!1,domainWidth:1,grid:!0,gridColor:"#DEDDDD",gridWidth:1,labelFontSize:12,labelFont:Ot,labelPadding:8,ticks:!1,titleFontSize:12,titlePadding:10,titleFont:wt,titleAngle:0,titleY:-10,titleX:18},legend:{labelFontSize:12,labelFont:Ot,symbolSize:100,titleFontSize:12,titlePadding:10,titleFont:wt,orient:"right",offset:10},view:{stroke:"transparent"},range:{category:xt["six-groups-cat-1"],diverging:xt["diverging-colors"],heatmap:xt["diverging-colors"],ordinal:xt["six-groups-seq"],ramp:xt["shades-blue"]},area:{fill:bt},rect:{fill:bt},line:{color:bt,stroke:bt,strokeWidth:5},trail:{color:bt,stroke:bt,strokeWidth:0,size:1},path:{stroke:bt,strokeWidth:.5},point:{filled:!0},text:{font:"Lato",color:bt,fontSize:11,align:"center",fontWeight:400,size:11},style:{bar:{fill:bt,stroke:null}},arc:{fill:bt},shape:{stroke:bt},symbol:{fill:bt,size:30}},Nt="#3366CC",It="#ccc",St="Arial, sans-serif",Rt={arc:{fill:Nt},area:{fill:Nt},path:{stroke:Nt},rect:{fill:Nt},shape:{stroke:Nt},symbol:{stroke:Nt},circle:{fill:Nt},background:"#fff",padding:{top:10,right:10,bottom:10,left:10},style:{"guide-label":{font:St,fontSize:12},"guide-title":{font:St,fontSize:12},"group-title":{font:St,fontSize:12}},title:{font:St,fontSize:14,fontWeight:"bold",dy:-3,anchor:"start"},axis:{gridColor:It,tickColor:It,domain:!1,grid:!0},range:{category:["#4285F4","#DB4437","#F4B400","#0F9D58","#AB47BC","#00ACC1","#FF7043","#9E9D24","#5C6BC0","#F06292","#00796B","#C2185B"],heatmap:["#c6dafc","#5e97f6","#2a56c6"]}},Lt=e=>e*(1/3+1),$t=Lt(9),Tt=Lt(10),Dt=Lt(12),kt="Segoe UI",Ct="wf_standard-font, helvetica, arial, sans-serif",Ft="#252423",Pt="#605E5C",_t="transparent",jt="#118DFF",Mt="#DEEFFF",zt=[Mt,jt],Ut={view:{stroke:_t},background:_t,font:kt,header:{titleFont:Ct,titleFontSize:Dt,titleColor:Ft,labelFont:kt,labelFontSize:Tt,labelColor:Pt},axis:{ticks:!1,grid:!1,domain:!1,labelColor:Pt,labelFontSize:$t,titleFont:Ct,titleColor:Ft,titleFontSize:Dt,titleFontWeight:"normal"},axisQuantitative:{tickCount:3,grid:!0,gridColor:"#C8C6C4",gridDash:[1,5],labelFlush:!1},axisBand:{tickExtra:!0},axisX:{labelPadding:5},axisY:{labelPadding:10},bar:{fill:jt},line:{stroke:jt,strokeWidth:3,strokeCap:"round",strokeJoin:"round"},text:{font:kt,fontSize:$t,fill:Pt},arc:{fill:jt},area:{fill:jt,line:!0,opacity:.6},path:{stroke:jt},rect:{fill:jt},point:{fill:jt,filled:!0,size:75},shape:{stroke:jt},symbol:{fill:jt,strokeWidth:1.5,size:50},legend:{titleFont:kt,titleFontWeight:"bold",titleColor:Pt,labelFont:kt,labelFontSize:Tt,labelColor:Pt,symbolType:"circle",symbolSize:75},range:{category:[jt,"#12239E","#E66C37","#6B007B","#E044A7","#744EC2","#D9B300","#D64550"],diverging:zt,heatmap:zt,ordinal:[Mt,"#c7e4ff","#b0d9ff","#9aceff","#83c3ff","#6cb9ff","#55aeff","#3fa3ff","#2898ff",jt]}},Gt='IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,".sfnstext-regular",sans-serif',Bt=["#8a3ffc","#33b1ff","#007d79","#ff7eb6","#fa4d56","#fff1f1","#6fdc8c","#4589ff","#d12771","#d2a106","#08bdba","#bae6ff","#ba4e00","#d4bbff"],Vt=["#6929c4","#1192e8","#005d5d","#9f1853","#fa4d56","#570408","#198038","#002d9c","#ee538b","#b28600","#009d9a","#012749","#8a3800","#a56eff"];function Wt({type:e,background:t}){const n="dark"===e?"#161616":"#ffffff",r="dark"===e?"#f4f4f4":"#161616",i="dark"===e?"#d4bbff":"#6929c4";return{background:t,arc:{fill:i},area:{fill:i},path:{stroke:i},rect:{fill:i},shape:{stroke:i},symbol:{stroke:i},circle:{fill:i},view:{fill:n,stroke:n},group:{fill:n},title:{color:r,anchor:"start",dy:-15,fontSize:16,font:Gt,fontWeight:600},axis:{labelColor:r,labelFontSize:12,grid:!0,gridColor:"#525252",titleColor:r,labelAngle:0},style:{"guide-label":{font:Gt,fill:r,fontWeight:400},"guide-title":{font:Gt,fill:r,fontWeight:400}},range:{category:"dark"===e?Bt:Vt,diverging:["#750e13","#a2191f","#da1e28","#fa4d56","#ff8389","#ffb3b8","#ffd7d9","#fff1f1","#e5f6ff","#bae6ff","#82cfff","#33b1ff","#1192e8","#0072c3","#00539a","#003a6d"],heatmap:["#f6f2ff","#e8daff","#d4bbff","#be95ff","#a56eff","#8a3ffc","#6929c4","#491d8b","#31135e","#1c0f30"]}}}const Xt=Wt({type:"light",background:"#ffffff"}),Ht=Wt({type:"light",background:"#f4f4f4"}),qt=Wt({type:"dark",background:"#262626"}),Jt=Wt({type:"dark",background:"#161616"}),Yt=Je,Qt=Object.freeze(Object.defineProperty({__proto__:null,carbong10:Ht,carbong100:Jt,carbong90:qt,carbonwhite:Xt,dark:Ke,excel:et,fivethirtyeight:ot,ggplot2:st,googlecharts:Rt,latimes:ut,powerbi:Ut,quartz:mt,urbaninstitute:At,version:Yt,vox:Et},Symbol.toStringTag,{value:"Module"}));function Kt(e,t){return JSON.stringify(e,function(e){const t=[];return function(n,r){if("object"!=typeof r||null===r)return r;const i=t.indexOf(this)+1;return t.length=i,t.length>e?"[Object]":t.indexOf(r)>=0?"[Circular]":(t.push(r),r)}}(t))}var Zt="#vg-tooltip-element {\n visibility: hidden;\n padding: 8px;\n position: fixed;\n z-index: 1000;\n font-family: sans-serif;\n font-size: 11px;\n border-radius: 3px;\n box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);\n /* The default theme is the light theme. */\n background-color: rgba(255, 255, 255, 0.95);\n border: 1px solid #d9d9d9;\n color: black;\n}\n#vg-tooltip-element.visible {\n visibility: visible;\n}\n#vg-tooltip-element h2 {\n margin-top: 0;\n margin-bottom: 10px;\n font-size: 13px;\n}\n#vg-tooltip-element table {\n border-spacing: 0;\n}\n#vg-tooltip-element table tr {\n border: none;\n}\n#vg-tooltip-element table tr td {\n overflow: hidden;\n text-overflow: ellipsis;\n padding-top: 2px;\n padding-bottom: 2px;\n}\n#vg-tooltip-element table tr td.key {\n color: #808080;\n max-width: 150px;\n text-align: right;\n padding-right: 4px;\n}\n#vg-tooltip-element table tr td.value {\n display: block;\n max-width: 300px;\n max-height: 7em;\n text-align: left;\n}\n#vg-tooltip-element.dark-theme {\n background-color: rgba(32, 32, 32, 0.9);\n border: 1px solid #f5f5f5;\n color: white;\n}\n#vg-tooltip-element.dark-theme td.key {\n color: #bfbfbf;\n}\n";const en="vg-tooltip-element",tn={offsetX:10,offsetY:10,id:en,styleId:"vega-tooltip-style",theme:"light",disableDefaultStyle:!1,sanitize:function(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;")},maxDepth:2,formatTooltip:function(e,t,o){if(n(e))return`[${e.map((e=>t(r(e)?e:Kt(e,o)))).join(", ")}]`;if(i(e)){let n="";const{title:r,image:a,...s}=e;r&&(n+=`<h2>${t(r)}</h2>`),a&&(n+=`<img src="${t(a)}">`);const l=Object.keys(s);if(l.length>0){n+="<table>";for(const e of l){let r=s[e];void 0!==r&&(i(r)&&(r=Kt(r,o)),n+=`<tr><td class="key">${t(e)}</td><td class="value">${t(r)}</td></tr>`)}n+="</table>"}return n||"{}"}return t(e)}};class nn{constructor(e){this.options={...tn,...e};const t=this.options.id;if(this.el=null,this.call=this.tooltipHandler.bind(this),!this.options.disableDefaultStyle&&!document.getElementById(this.options.styleId)){const e=document.createElement("style");e.setAttribute("id",this.options.styleId),e.innerHTML=function(e){if(!/^[A-Za-z]+[-:.\w]*$/.test(e))throw new Error("Invalid HTML ID");return Zt.toString().replace(en,e)}(t);const n=document.head;n.childNodes.length>0?n.insertBefore(e,n.childNodes[0]):n.appendChild(e)}}tooltipHandler(e,t,n,r){if(this.el=document.getElementById(this.options.id),!this.el){this.el=document.createElement("div"),this.el.setAttribute("id",this.options.id),this.el.classList.add("vg-tooltip");(document.fullscreenElement??document.body).appendChild(this.el)}if(null==r||""===r)return void this.el.classList.remove("visible",`${this.options.theme}-theme`);this.el.innerHTML=this.options.formatTooltip(r,this.options.sanitize,this.options.maxDepth),this.el.classList.add("visible",`${this.options.theme}-theme`);const{x:i,y:o}=function(e,t,n,r){let i=e.clientX+n;i+t.width>window.innerWidth&&(i=+e.clientX-n-t.width);let o=e.clientY+r;return o+t.height>window.innerHeight&&(o=+e.clientY-r-t.height),{x:i,y:o}}(t,this.el.getBoundingClientRect(),this.options.offsetX,this.options.offsetY);this.el.style.top=`${o}px`,this.el.style.left=`${i}px`}}var rn,on,an={};function sn(e){return(sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ln(e){var t=function(e,t){if("object"!==sn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==sn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sn(t)?t:String(t)}function cn(e,t,n){return(t=ln(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pn=fn;function fn(e){var t=this;if(t instanceof fn||(t=new fn),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}function un(e,t,n){var r=t===e.head?new mn(n,null,t,e):new mn(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function dn(e,t){e.tail=new mn(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function gn(e,t){e.head=new mn(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function mn(e,t,n,r){if(!(this instanceof mn))return new mn(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}fn.Node=mn,fn.create=fn,fn.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},fn.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},fn.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},fn.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)dn(this,arguments[e]);return this.length},fn.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)gn(this,arguments[e]);return this.length},fn.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},fn.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},fn.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},fn.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},fn.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},fn.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},fn.prototype.map=function(e,t){t=t||this;for(var n=new fn,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},fn.prototype.mapReverse=function(e,t){t=t||this;for(var n=new fn,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},fn.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},fn.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},fn.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},fn.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},fn.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new fn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,i=this.head;null!==i&&r<e;r++)i=i.next;for(;null!==i&&r<t;r++,i=i.next)n.push(i.value);return n},fn.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new fn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,i=this.tail;null!==i&&r>t;r--)i=i.prev;for(;null!==i&&r>e;r--,i=i.prev)n.push(i.value);return n},fn.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,i=this.head;null!==i&&r<e;r++)i=i.next;var o=[];for(r=0;i&&r<t;r++)o.push(i.value),i=this.removeNode(i);null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(r=0;r<n.length;r++)i=un(this,i,n[r]);return o},fn.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{(on?rn:(on=1,rn=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(fn)}catch(Zr){}const vn=pn,En=Symbol("max"),bn=Symbol("length"),yn=Symbol("lengthCalculator"),wn=Symbol("allowStale"),On=Symbol("maxAge"),xn=Symbol("dispose"),An=Symbol("noDisposeOnSet"),Nn=Symbol("lruList"),In=Symbol("cache"),Sn=Symbol("updateAgeOnGet"),Rn=()=>1;const Ln=(e,t,n)=>{const r=e[In].get(t);if(r){const t=r.value;if($n(e,t)){if(Dn(e,r),!e[wn])return}else n&&(e[Sn]&&(r.value.now=Date.now()),e[Nn].unshiftNode(r));return t.value}},$n=(e,t)=>{if(!t||!t.maxAge&&!e[On])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[On]&&n>e[On]},Tn=e=>{if(e[bn]>e[En])for(let t=e[Nn].tail;e[bn]>e[En]&&null!==t;){const n=t.prev;Dn(e,t),t=n}},Dn=(e,t)=>{if(t){const n=t.value;e[xn]&&e[xn](n.key,n.value),e[bn]-=n.length,e[In].delete(n.key),e[Nn].removeNode(t)}};class kn{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const Cn=(e,t,n,r)=>{let i=n.value;$n(e,i)&&(Dn(e,n),e[wn]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var Fn=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[En]=e.max||1/0;const t=e.length||Rn;if(this[yn]="function"!=typeof t?Rn:t,this[wn]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[On]=e.maxAge||0,this[xn]=e.dispose,this[An]=e.noDisposeOnSet||!1,this[Sn]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[En]=e||1/0,Tn(this)}get max(){return this[En]}set allowStale(e){this[wn]=!!e}get allowStale(){return this[wn]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[On]=e,Tn(this)}get maxAge(){return this[On]}set lengthCalculator(e){"function"!=typeof e&&(e=Rn),e!==this[yn]&&(this[yn]=e,this[bn]=0,this[Nn].forEach((e=>{e.length=this[yn](e.value,e.key),this[bn]+=e.length}))),Tn(this)}get lengthCalculator(){return this[yn]}get length(){return this[bn]}get itemCount(){return this[Nn].length}rforEach(e,t){t=t||this;for(let n=this[Nn].tail;null!==n;){const r=n.prev;Cn(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[Nn].head;null!==n;){const r=n.next;Cn(this,e,n,t),n=r}}keys(){return this[Nn].toArray().map((e=>e.key))}values(){return this[Nn].toArray().map((e=>e.value))}reset(){this[xn]&&this[Nn]&&this[Nn].length&&this[Nn].forEach((e=>this[xn](e.key,e.value))),this[In]=new Map,this[Nn]=new vn,this[bn]=0}dump(){return this[Nn].map((e=>!$n(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[Nn]}set(e,t,n){if((n=n||this[On])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,i=this[yn](t,e);if(this[In].has(e)){if(i>this[En])return Dn(this,this[In].get(e)),!1;const o=this[In].get(e).value;return this[xn]&&(this[An]||this[xn](e,o.value)),o.now=r,o.maxAge=n,o.value=t,this[bn]+=i-o.length,o.length=i,this.get(e),Tn(this),!0}const o=new kn(e,t,i,r,n);return o.length>this[En]?(this[xn]&&this[xn](e,t),!1):(this[bn]+=o.length,this[Nn].unshift(o),this[In].set(e,this[Nn].head),Tn(this),!0)}has(e){if(!this[In].has(e))return!1;const t=this[In].get(e).value;return!$n(this,t)}get(e){return Ln(this,e,!0)}peek(e){return Ln(this,e,!1)}pop(){const e=this[Nn].tail;return e?(Dn(this,e),e.value):null}del(e){Dn(this,this[In].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[In].forEach(((e,t)=>Ln(this,t,!1)))}};const Pn=Object.freeze({loose:!0}),_n=Object.freeze({});var jn=e=>e?"object"!=typeof e?Pn:e:_n,Mn={exports:{}};var zn={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};var Un="object"==typeof process&&an&&an.NODE_DEBUG&&/\bsemver\b/i.test(an.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=zn,o=Un,a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.t={};let h=0;const p="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",i],[p,r]],u=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=h++;o(e,i,t),c[e]=i,l[i]=t,a[i]=new RegExp(t,n?"g":void 0),s[i]=new RegExp(r,n?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","\\d+"),u("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),u("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER",`${p}+`),u("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),u("FULL",`^${l[c.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),u("LOOSE",`^${l[c.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),u("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),u("COERCERTL",l[c.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Mn,Mn.exports);var Gn=Mn.exports;const Bn=/^[0-9]+$/;var Vn={compareIdentifiers:(e,t)=>{const n=Bn.test(e),r=Bn.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}};const Wn=Un,{MAX_LENGTH:Xn,MAX_SAFE_INTEGER:Hn}=zn,{safeRe:qn,t:Jn}=Gn,Yn=jn,{compareIdentifiers:Qn}=Vn;var Kn=class e{constructor(t,n){if(n=Yn(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Xn)throw new TypeError(`version is longer than ${Xn} characters`);Wn("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?qn[Jn.LOOSE]:qn[Jn.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Hn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Hn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Hn||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<Hn)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Wn("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),Qn(this.major,t.major)||Qn(this.minor,t.minor)||Qn(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(Wn("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return Qn(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(Wn("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return Qn(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===Qn(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const Zn=Kn;var er=(e,t,n)=>new Zn(e,n).compare(new Zn(t,n));const tr=er;const nr=er;const rr=er;const ir=er;const or=er;const ar=er;const sr=(e,t,n)=>0===tr(e,t,n),lr=(e,t,n)=>0!==nr(e,t,n),cr=(e,t,n)=>rr(e,t,n)>0,hr=(e,t,n)=>ir(e,t,n)>=0,pr=(e,t,n)=>or(e,t,n)<0,fr=(e,t,n)=>ar(e,t,n)<=0;var ur,dr,gr,mr,vr=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return sr(e,n,r);case"!=":return lr(e,n,r);case">":return cr(e,n,r);case">=":return hr(e,n,r);case"<":return pr(e,n,r);case"<=":return fr(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};function Er(){if(mr)return gr;mr=1;class e{constructor(t,i){if(i=n(i),t instanceof e)return t.loose===!!i.loose&&t.includePrerelease===!!i.includePrerelease?t:new e(t.raw,i);if(t instanceof r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!u(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&d(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&p)|(this.options.loose&&f))+":"+e,o=t.get(n);if(o)return o;const d=this.options.loose,g=d?a[s.HYPHENRANGELOOSE]:a[s.HYPHENRANGE];e=e.replace(g,I(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(a[s.COMPARATORTRIM],l),i("comparator trim",e),e=e.replace(a[s.TILDETRIM],c),i("tilde trim",e),e=e.replace(a[s.CARETTRIM],h),i("caret trim",e);let v=e.split(" ").map((e=>m(e,this.options))).join(" ").split(/\s+/).map((e=>N(e,this.options)));d&&(v=v.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(a[s.COMPARATORLOOSE]))))),i("range list",v);const E=new Map,b=v.map((e=>new r(e,this.options)));for(const t of b){if(u(t))return[t];E.set(t.value,t)}E.size>1&&E.has("")&&E.delete("");const y=[...E.values()];return t.set(n,y),y}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,n)&&t.set.some((t=>g(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options)}catch(Zr){return!1}for(let t=0;t<this.set.length;t++)if(S(this.set[t],e,this.options))return!0;return!1}}gr=e;const t=new Fn({max:1e3}),n=jn,r=function(){if(dr)return ur;dr=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],o=t.match(n);if(!o)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==o[1]?o[1]:"","="===this.operator&&(this.operator=""),o[2]?this.semver=new s(o[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(Zr){return!1}return o(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(o(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(o(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}ur=t;const n=jn,{safeRe:r,t:i}=Gn,o=vr,a=Un,s=Kn,l=Er();return ur}(),i=Un,o=Kn,{safeRe:a,t:s,comparatorTrimReplace:l,tildeTrimReplace:c,caretTrimReplace:h}=Gn,{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:f}=zn,u=e=>"<0.0.0-0"===e.value,d=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},m=(e,t)=>(i("comp",e,t),e=y(e,t),i("caret",e),e=E(e,t),i("tildes",e),e=O(e,t),i("xrange",e),e=A(e,t),i("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{const n=t.loose?a[s.TILDELOOSE]:a[s.TILDE];return e.replace(n,((t,n,r,o,a)=>{let s;return i("tilde",e,t,n,r,o,a),v(n)?s="":v(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(o)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(i("replaceTilde pr",a),s=`>=${n}.${r}.${o}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${o} <${n}.${+r+1}.0-0`,i("tilde return",s),s}))},y=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{i("caret",e,t);const n=t.loose?a[s.CARETLOOSE]:a[s.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,a,s)=>{let l;return i("caret",e,t,n,o,a,s),v(n)?l="":v(o)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(a)?l="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:s?(i("replaceCaret pr",s),l="0"===n?"0"===o?`>=${n}.${o}.${a}-${s} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}-${s} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a}-${s} <${+n+1}.0.0-0`):(i("no pr"),l="0"===n?"0"===o?`>=${n}.${o}.${a}${r} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a} <${+n+1}.0.0-0`),i("caret return",l),l}))},O=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>x(e,t))).join(" ")),x=(e,t)=>{e=e.trim();const n=t.loose?a[s.XRANGELOOSE]:a[s.XRANGE];return e.replace(n,((n,r,o,a,s,l)=>{i("xRange",e,n,r,o,a,s,l);const c=v(o),h=c||v(a),p=h||v(s),f=p;return"="===r&&f&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(h&&(a=0),s=0,">"===r?(r=">=",h?(o=+o+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",h?o=+o+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+o}.${a}.${s}${l}`):h?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),i("xRange return",n),n}))},A=(e,t)=>(i("replaceStars",e,t),e.trim().replace(a[s.STAR],"")),N=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),I=e=>(t,n,r,i,o,a,s,l,c,h,p,f,u)=>`${n=v(r)?"":v(i)?`>=${r}.0.0${e?"-0":""}`:v(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=v(c)?"":v(h)?`<${+c+1}.0.0-0`:v(p)?`<${c}.${+h+1}.0-0`:f?`<=${c}.${h}.${p}-${f}`:e?`<${c}.${h}.${+p+1}-0`:`<=${l}`}`.trim(),S=(e,t,n)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(i(e[n].semver),e[n].semver!==r.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return gr}const br=Er();var yr=hn(((e,t,n)=>{try{t=new br(t,n)}catch(Zr){return!1}return t.test(e)}));var wr='.vega-embed {\n position: relative;\n display: inline-block;\n box-sizing: border-box;\n}\n.vega-embed.has-actions {\n padding-right: 38px;\n}\n.vega-embed details:not([open]) > :not(summary) {\n display: none !important;\n}\n.vega-embed summary {\n list-style: none;\n position: absolute;\n top: 0;\n right: 0;\n padding: 6px;\n z-index: 1000;\n background: white;\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);\n color: #1b1e23;\n border: 1px solid #aaa;\n border-radius: 999px;\n opacity: 0.2;\n transition: opacity 0.4s ease-in;\n cursor: pointer;\n line-height: 0px;\n}\n.vega-embed summary::-webkit-details-marker {\n display: none;\n}\n.vega-embed summary:active {\n box-shadow: #aaa 0px 0px 0px 1px inset;\n}\n.vega-embed summary svg {\n width: 14px;\n height: 14px;\n}\n.vega-embed details[open] summary {\n opacity: 0.7;\n}\n.vega-embed:hover summary, .vega-embed:focus-within summary {\n opacity: 1 !important;\n transition: opacity 0.2s ease;\n}\n.vega-embed .vega-actions {\n position: absolute;\n z-index: 1001;\n top: 35px;\n right: -9px;\n display: flex;\n flex-direction: column;\n padding-bottom: 8px;\n padding-top: 8px;\n border-radius: 4px;\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);\n border: 1px solid #d9d9d9;\n background: white;\n animation-duration: 0.15s;\n animation-name: scale-in;\n animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);\n text-align: left;\n}\n.vega-embed .vega-actions a {\n padding: 8px 16px;\n font-family: sans-serif;\n font-size: 14px;\n font-weight: 600;\n white-space: nowrap;\n color: #434a56;\n text-decoration: none;\n}\n.vega-embed .vega-actions a:hover, .vega-embed .vega-actions a:focus {\n background-color: #f7f7f9;\n color: black;\n}\n.vega-embed .vega-actions::before, .vega-embed .vega-actions::after {\n content: "";\n display: inline-block;\n position: absolute;\n}\n.vega-embed .vega-actions::before {\n left: auto;\n right: 14px;\n top: -16px;\n border: 8px solid rgba(0, 0, 0, 0);\n border-bottom-color: #d9d9d9;\n}\n.vega-embed .vega-actions::after {\n left: auto;\n right: 15px;\n top: -14px;\n border: 7px solid rgba(0, 0, 0, 0);\n border-bottom-color: #fff;\n}\n.vega-embed .chart-wrapper.fit-x {\n width: 100%;\n}\n.vega-embed .chart-wrapper.fit-y {\n height: 100%;\n}\n\n.vega-embed-wrapper {\n max-width: 100%;\n overflow: auto;\n padding-right: 14px;\n}\n\n@keyframes scale-in {\n from {\n opacity: 0;\n transform: scale(0.6);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n';function Or(e,...t){for(const n of t)xr(e,n);return e}function xr(e,t){for(const n of Object.keys(t))s(e,n,t[n],!0)}function Ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(n),!0).forEach((function(t){cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ir=ee;let Sr=He;const Rr="undefined"!=typeof window?window:void 0;void 0===Sr&&(null==(e=null==Rr?void 0:Rr.vl)?void 0:e.compile)&&(Sr=Rr.vl);const Lr={export:{svg:!0,png:!0},source:!0,compiled:!0,editor:!0},$r={CLICK_TO_VIEW_ACTIONS:"Click to view actions",COMPILED_ACTION:"View Compiled Vega",EDITOR_ACTION:"Open in Vega Editor",PNG_ACTION:"Save as PNG",SOURCE_ACTION:"View Source",SVG_ACTION:"Save as SVG"},Tr={vega:"Vega","vega-lite":"Vega-Lite"},Dr={vega:Ir.version,"vega-lite":Sr?Sr.version:"not available"},kr={vega:e=>e,"vega-lite":(e,t)=>Sr.compile(e,{config:t}).spec},Cr='\n<svg viewBox="0 0 16 16" fill="currentColor" stroke="none" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">\n <circle r="2" cy="8" cx="2"></circle>\n <circle r="2" cy="8" cx="8"></circle>\n <circle r="2" cy="8" cx="14"></circle>\n</svg>',Fr="chart-wrapper";function Pr(e,t,n,r){const i=`<html><head>${t}</head><body><pre><code class="json">`,o=`</code></pre>${n}</body></html>`,a=window.open("");a.document.write(i+e+o),a.document.title=`${Tr[r]} JSON Source`}function _r(e){return(t=e)&&"load"in t?e:Ir.loader(e);var t}async function jr(e,t,n={}){let s,l;r(t)?(l=_r(n.loader),s=JSON.parse(await l.load(t))):s=t;const c=function(e){var t;const n=(null==(t=e.usermeta)?void 0:t.embedOptions)??{};return r(n.defaultStyle)&&(n.defaultStyle=!1),n}(s),h=c.loader;l&&!h||(l=_r(n.loader??h));const p=await Mr(c,l),f=await Mr(n,l),u=Nr(Nr({},Or(f,p)),{},{config:o(f.config??{},p.config??{})});return await async function(e,t,n={},r){const s=n.theme?o(Qt[n.theme],n.config??{}):n.config,l=a(n.actions)?n.actions:Or({},Lr,n.actions??{}),c=Nr(Nr({},$r),n.i18n),h=n.renderer??"canvas",p=n.logLevel??Ir.Warn,f=n.downloadFileName??"visualization",u="string"==typeof e?document.querySelector(e):e;if(!u)throw new Error(`${e} does not exist`);if(!1!==n.defaultStyle){const e="vega-embed-style",{root:t,rootContainer:r}=function(e){const t=e.getRootNode?e.getRootNode():document;return t instanceof ShadowRoot?{root:t,rootContainer:t}:{root:document,rootContainer:document.head??document.body}}(u);if(!t.getElementById(e)){const t=document.createElement("style");t.id=e,t.innerHTML=void 0===n.defaultStyle||!0===n.defaultStyle?wr.toString():n.defaultStyle,r.appendChild(t)}}const d=function(e,t){if(e.$schema){const n=qe(e.$schema);t&&t!==n.library&&console.warn(`The given visualization spec is written in ${Tr[n.library]}, but mode argument sets ${Tr[t]??t}.`);const r=n.library;return yr(Dr[r],`^${n.version.slice(1)}`)||console.warn(`The input spec uses ${Tr[r]} ${n.version}, but the current version of ${Tr[r]} is v${Dr[r]}.`),r}return"mark"in e||"encoding"in e||"layer"in e||"hconcat"in e||"vconcat"in e||"facet"in e||"repeat"in e?"vega-lite":"marks"in e||"signals"in e||"scales"in e||"axes"in e?"vega":t??"vega"}(t,n.mode);let g=kr[d](t,s);if("vega-lite"===d&&g.$schema){const e=qe(g.$schema);yr(Dr.vega,`^${e.version.slice(1)}`)||console.warn(`The compiled spec uses Vega ${e.version}, but current version is v${Dr.vega}.`)}u.classList.add("vega-embed"),l&&u.classList.add("has-actions");u.innerHTML="";let m=u;if(l){const e=document.createElement("div");e.classList.add(Fr),u.appendChild(e),m=e}const v=n.patch;v&&(g=v instanceof Function?v(g):we(g,v,!0,!1).newDocument);n.formatLocale&&Ir.formatLocale(n.formatLocale);n.timeFormatLocale&&Ir.timeFormatLocale(n.timeFormatLocale);if(n.expressionFunctions)for(const i in n.expressionFunctions){const e=n.expressionFunctions[i];"fn"in e?Ir.expressionFunction(i,e.fn,e.visitor):e instanceof Function&&Ir.expressionFunction(i,e)}const{ast:E}=n,b=Ir.parse(g,"vega-lite"===d?{}:s,{ast:E}),y=new(n.viewClass||Ir.View)(b,Nr({loader:r,logLevel:p,renderer:h},E?{expr:Ir.expressionInterpreter??n.expr??We}:{}));if(y.addSignalListener("autosize",((e,t)=>{const{type:n}=t;"fit-x"==n?(m.classList.add("fit-x"),m.classList.remove("fit-y")):"fit-y"==n?(m.classList.remove("fit-x"),m.classList.add("fit-y")):"fit"==n?m.classList.add("fit-x","fit-y"):m.classList.remove("fit-x","fit-y")})),!1!==n.tooltip){const e="function"==typeof n.tooltip?n.tooltip:new nn(!0===n.tooltip?{}:n.tooltip).call;y.tooltip(e)}let w,{hover:O}=n;void 0===O&&(O="vega"===d);if(O){const{hoverSet:e,updateSet:t}="boolean"==typeof O?{}:O;y.hover(e,t)}n&&(null!=n.width&&y.width(n.width),null!=n.height&&y.height(n.height),null!=n.padding&&y.padding(n.padding));if(await y.initialize(m,n.bind).runAsync(),!1!==l){let e=u;if(!1!==n.defaultStyle||n.forceActionsMenu){const t=document.createElement("details");t.title=c.CLICK_TO_VIEW_ACTIONS,u.append(t),e=t;const n=document.createElement("summary");n.innerHTML=Cr,t.append(n),w=e=>{t.contains(e.target)||t.removeAttribute("open")},document.addEventListener("click",w)}const r=document.createElement("div");if(e.append(r),r.classList.add("vega-actions"),!0===l||!1!==l.export)for(const t of["svg","png"])if(!0===l||!0===l.export||l.export[t]){const e=c[`${t.toUpperCase()}_ACTION`],o=document.createElement("a"),a=i(n.scaleFactor)?n.scaleFactor[t]:n.scaleFactor;o.text=e,o.href="#",o.target="_blank",o.download=`${f}.${t}`,o.addEventListener("mousedown",(async function(e){e.preventDefault();const n=await y.toImageURL(t,a);this.href=n})),r.append(o)}if(!0===l||!1!==l.source){const e=document.createElement("a");e.text=c.SOURCE_ACTION,e.href="#",e.addEventListener("click",(function(e){Pr(Ce(t),n.sourceHeader??"",n.sourceFooter??"",d),e.preventDefault()})),r.append(e)}if("vega-lite"===d&&(!0===l||!1!==l.compiled)){const e=document.createElement("a");e.text=c.COMPILED_ACTION,e.href="#",e.addEventListener("click",(function(e){Pr(Ce(g),n.sourceHeader??"",n.sourceFooter??"","vega"),e.preventDefault()})),r.append(e)}if(!0===l||!1!==l.editor){const e=n.editorUrl??"https://vega.github.io/editor/",i=document.createElement("a");i.text=c.EDITOR_ACTION,i.href="#",i.addEventListener("click",(function(n){!function(e,t,n){const r=e.open(t),{origin:i}=new URL(t);let o=40;e.addEventListener("message",(function t(n){n.source===r&&(o=0,e.removeEventListener("message",t,!1))}),!1),setTimeout((function e(){o<=0||(r.postMessage(n,i),setTimeout(e,250),o-=1)}),250)}(window,e,{config:s,mode:d,renderer:h,spec:Ce(t)}),n.preventDefault()})),r.append(i)}}function x(){w&&document.removeEventListener("click",w),y.finalize()}return{view:y,spec:t,vgSpec:g,finalize:x,embedOptions:n}}(e,s,u,l)}async function Mr(e,t){const n=r(e.config)?JSON.parse(await t.load(e.config)):e.config??{},i=r(e.patch)?JSON.parse(await t.load(e.patch)):e.patch;return Nr(Nr(Nr({},e),i?{patch:i}:{}),n?{config:n}:{})}function zr(e,t){Object.keys(t).forEach((n=>{!function(e,t,n){var r;n&&((r=n)&&"[object Function]"==={}.toString.call(r)?n(e.data(t)):e.change(t,Ir.changeset().remove((()=>!0)).insert(n)))}(e,n,t[n])}))}function Ur(e){const t=new Set;return e.forEach((e=>{Object.keys(e).forEach((e=>{t.add(e)}))})),t}const Gr=()=>{};function Br(e,t){const n=Object.keys(t);return n.forEach((n=>{try{e.addSignalListener(n,t[n])}catch(r){console.warn("Cannot add invalid signal listener.",r)}})),n.length>0}function Vr(e,t){const n=Object.keys(t);return n.forEach((n=>{try{e.removeSignalListener(n,t[n])}catch(r){console.warn("Cannot remove invalid signal listener.",r)}})),n.length>0}function Wr(e){const{spec:t,width:n,height:r}=e;return void 0!==n&&void 0!==r?{...t,width:n,height:r}:void 0!==n?{...t,width:n}:void 0!==r?{...t,height:r}:t}function Xr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Hr extends l.PureComponent{constructor(){super(...arguments),Xr(this,"containerRef",l.createRef()),Xr(this,"resultPromise",void 0),Xr(this,"handleError",(e=>{const{onError:t=Gr}=this.props;t(e,this.containerRef.current),console.warn(e)})),Xr(this,"modifyView",(e=>{this.resultPromise&&this.resultPromise.then((t=>(t&&e(t.view),!0))).catch(this.handleError)}))}componentDidMount(){this.createView()}componentDidUpdate(e){const t=Ur([this.props,e]);if(t.delete("className"),t.delete("signalListeners"),t.delete("spec"),t.delete("style"),t.delete("width"),t.delete("height"),Array.from(t).some((t=>this.props[t]!==e[t])))this.clearView(),this.createView();else{const t=function(e,t){if(e===t)return!1;const n={width:!1,height:!1,isExpensive:!1},r=Ur([e,t]);return!r.has("width")||"width"in e&&"width"in t&&e.width===t.width||("width"in e&&"number"==typeof e.width?n.width=e.width:n.isExpensive=!0),!r.has("height")||"height"in e&&"height"in t&&e.height===t.height||("height"in e&&"number"==typeof e.height?n.height=e.height:n.isExpensive=!0),r.delete("width"),r.delete("height"),[...r].some((n=>!(n in e)||!(n in t)||!te(e[n],t[n])))&&(n.isExpensive=!0),!(!1===n.width&&!1===n.height&&!n.isExpensive)&&n}(Wr(this.props),Wr(e)),{signalListeners:n}=this.props,{signalListeners:r}=e;if(t)if(t.isExpensive)this.clearView(),this.createView();else{const e=!re(n,r);this.modifyView((i=>{!1!==t.width&&i.width(t.width),!1!==t.height&&i.height(t.height),e&&(r&&Vr(i,r),n&&Br(i,n)),i.run()}))}else re(n,r)||this.modifyView((e=>{r&&Vr(e,r),n&&Br(e,n),e.run()}))}}componentWillUnmount(){this.clearView()}createView(){const{spec:e,onNewView:t,signalListeners:n={},width:r,height:i,...o}=this.props;if(this.containerRef.current){const e=Wr(this.props);this.resultPromise=jr(this.containerRef.current,e,o).then((e=>{if(e){const{view:t}=e;Br(t,n)&&t.run()}return e})).catch(this.handleError),t&&this.modifyView(t)}}clearView(){return this.resultPromise&&this.resultPromise.then((e=>{e&&e.finalize()})).catch(this.handleError),this.resultPromise=void 0,this}render(){const{className:e,style:t}=this.props;return l.createElement("div",{ref:this.containerRef,className:e,style:t})}}function qr(){return qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qr.apply(this,arguments)}function Jr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Xr(Hr,"propTypes",{className:c.string,onError:c.func});class Yr extends l.PureComponent{constructor(){super(...arguments),Jr(this,"vegaEmbed",l.createRef()),Jr(this,"handleNewView",(e=>{this.update();const{onNewView:t=Gr}=this.props;t(e)}))}componentDidMount(){this.update()}componentDidUpdate(e){re(this.props.data,e.data)||this.update()}update(){const{data:e}=this.props;this.vegaEmbed.current&&e&&Object.keys(e).length>0&&this.vegaEmbed.current.modifyView((t=>{zr(t,e),t.resize().run()}))}render(){const{data:e,...t}=this.props;return l.createElement(Hr,qr({ref:this.vegaEmbed},t,{onNewView:this.handleNewView}))}}function Qr(){return Qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qr.apply(this,arguments)}function Kr(e){return l.createElement(Yr,Qr({},e,{mode:"vega-lite"}))}Jr(Yr,"defaultProps",{data:{}});export{Yr as V,Kr as a};
11
+ */var Ie=new WeakMap,Se=function(){return function(e){this.observers=new Map,this.obj=e}}(),Re=function(){return function(e,t){this.callback=e,this.observer=t}}();function Le(e,t){void 0===t&&(t=!1);var n=Ie.get(e.object);$e(n.value,e.object,e.patches,"",t),e.patches.length&&we(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function $e(e,t,n,r,i){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var o=se(t),a=se(e),s=!1,l=a.length-1;l>=0;l--){var c=e[p=a[l]];if(!ae(t,p)||void 0===t[p]&&void 0!==c&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(i&&n.push({op:"test",path:r+"/"+he(p),value:le(c)}),n.push({op:"remove",path:r+"/"+he(p)}),s=!0):(i&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}));else{var h=t[p];"object"==typeof c&&null!=c&&"object"==typeof h&&null!=h&&Array.isArray(c)===Array.isArray(h)?$e(c,h,n,r+"/"+he(p),i):c!==h&&(i&&n.push({op:"test",path:r+"/"+he(p),value:le(c)}),n.push({op:"replace",path:r+"/"+he(p),value:le(h)}))}}if(s||o.length!=a.length)for(l=0;l<o.length;l++){var p;ae(e,p=o[l])||void 0===t[p]||n.push({op:"add",path:r+"/"+he(p),value:le(t[p])})}}}const Te=Object.freeze(Object.defineProperty({__proto__:null,compare:function(e,t,n){void 0===n&&(n=!1);var r=[];return $e(e,t,r,"",n),r},generate:Le,observe:function(e,t){var n,r=function(e){return Ie.get(e)}(e);if(r){var i=function(e,t){return e.observers.get(t)}(r,t);n=i&&i.observer}else r=new Se(e),Ie.set(e,r);if(n)return n;if(n={},r.value=le(e),t){n.callback=t,n.next=null;var o=function(){Le(n)},a=function(){clearTimeout(n.next),n.next=setTimeout(o)};"undefined"!=typeof window&&(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a))}return n.patches=[],n.object=e,n.unobserve=function(){Le(n),clearTimeout(n.next),function(e,t){e.observers.delete(t.callback)}(r,n),"undefined"!=typeof window&&(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a),window.removeEventListener("change",a))},r.observers.set(t,new Re(t,n)),n},unobserve:function(e,t){t.unobserve()}},Symbol.toStringTag,{value:"Module"}));var De,Ce;Object.assign({},Ne,Te,{JsonPatchError:de,deepClone:le,escapePathComponent:he,unescapePathComponent:pe});const ke=t(function(){if(Ce)return De;Ce=1;var e=/("(?:[^\\"]|\\.)*")|[:,]/g;return De=function(t,n){var r,i,o;return n=n||{},r=JSON.stringify([1],void 0,void 0===n.indent?2:n.indent).slice(2,-3),i=""===r?1/0:void 0===n.maxLength?80:n.maxLength,o=n.replacer,function t(n,a,s){var l,c,h,p,f,u,d,g,m,v,E,b;if(n&&"function"==typeof n.toJSON&&(n=n.toJSON()),void 0===(E=JSON.stringify(n,o)))return E;if(d=i-a.length-s,E.length<=d&&(m=E.replace(e,(function(e,t){return t||e+" "}))).length<=d)return m;if(null!=o&&(n=JSON.parse(E),o=void 0),"object"==typeof n&&null!==n){if(g=a+r,h=[],c=0,Array.isArray(n))for(v="[",l="]",d=n.length;c<d;c++)h.push(t(n[c],g,c===d-1?0:1)||"null");else for(v="{",l="}",d=(u=Object.keys(n)).length;c<d;c++)p=u[c],f=JSON.stringify(p)+": ",void 0!==(b=t(n[p],g,f.length+(c===d-1?0:1)))&&h.push(f+b);if(h.length>0)return[v,r+h.join(",\n"+g),l].join("\n"+a)}return E}(t,"",0)}}());var Fe={NaN:NaN,E:Math.E,LN2:Math.LN2,LN10:Math.LN10,LOG2E:Math.LOG2E,LOG10E:Math.LOG10E,PI:Math.PI,SQRT1_2:Math.SQRT1_2,SQRT2:Math.SQRT2,MIN_VALUE:Number.MIN_VALUE,MAX_VALUE:Number.MAX_VALUE},Pe={"*":(e,t)=>e*t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"%":(e,t)=>e%t,">":(e,t)=>e>t,"<":(e,t)=>e<t,"<=":(e,t)=>e<=t,">=":(e,t)=>e>=t,"==":(e,t)=>e==t,"!=":(e,t)=>e!=t,"===":(e,t)=>e===t,"!==":(e,t)=>e!==t,"&":(e,t)=>e&t,"|":(e,t)=>e|t,"^":(e,t)=>e^t,"<<":(e,t)=>e<<t,">>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t},_e={"+":e=>+e,"-":e=>-e,"~":e=>~e,"!":e=>!e};const je=Array.prototype.slice,Me=(e,t,n)=>{const r=n?n(t[0]):t[0];return r[e].apply(r,je.call(t,1))};var ze={isNaN:Number.isNaN,isFinite:Number.isFinite,abs:Math.abs,acos:Math.acos,asin:Math.asin,atan:Math.atan,atan2:Math.atan2,ceil:Math.ceil,cos:Math.cos,exp:Math.exp,floor:Math.floor,log:Math.log,max:Math.max,min:Math.min,pow:Math.pow,random:Math.random,round:Math.round,sin:Math.sin,sqrt:Math.sqrt,tan:Math.tan,clamp:(e,t,n)=>Math.max(t,Math.min(n,e)),now:Date.now,utc:Date.UTC,datetime:(e,t,n,r,i,o,a)=>new Date(e,t||0,null!=n?n:1,r||0,i||0,o||0,a||0),date:e=>new Date(e).getDate(),day:e=>new Date(e).getDay(),year:e=>new Date(e).getFullYear(),month:e=>new Date(e).getMonth(),hours:e=>new Date(e).getHours(),minutes:e=>new Date(e).getMinutes(),seconds:e=>new Date(e).getSeconds(),milliseconds:e=>new Date(e).getMilliseconds(),time:e=>new Date(e).getTime(),timezoneoffset:e=>new Date(e).getTimezoneOffset(),utcdate:e=>new Date(e).getUTCDate(),utcday:e=>new Date(e).getUTCDay(),utcyear:e=>new Date(e).getUTCFullYear(),utcmonth:e=>new Date(e).getUTCMonth(),utchours:e=>new Date(e).getUTCHours(),utcminutes:e=>new Date(e).getUTCMinutes(),utcseconds:e=>new Date(e).getUTCSeconds(),utcmilliseconds:e=>new Date(e).getUTCMilliseconds(),length:e=>e.length,join:function(){return Me("join",arguments)},indexof:function(){return Me("indexOf",arguments)},lastindexof:function(){return Me("lastIndexOf",arguments)},slice:function(){return Me("slice",arguments)},reverse:e=>e.slice().reverse(),parseFloat:parseFloat,parseInt:parseInt,upper:e=>String(e).toUpperCase(),lower:e=>String(e).toLowerCase(),substring:function(){return Me("substring",arguments,String)},split:function(){return Me("split",arguments,String)},replace:function(){return Me("replace",arguments,String)},trim:e=>String(e).trim(),regexp:RegExp,test:(e,t)=>RegExp(e).test(t)};const Ue=["view","item","group","xy","x","y"],Ge=new Set([Function,eval,setTimeout,setInterval]);"function"==typeof setImmediate&&Ge.add(setImmediate);const Be={Literal:(e,t)=>t.value,Identifier:(e,t)=>{const n=t.name;return e.memberDepth>0?n:"datum"===n?e.datum:"event"===n?e.event:"item"===n?e.item:Fe[n]||e.params["$"+n]},MemberExpression:(e,t)=>{const n=!t.computed,r=e(t.object);n&&(e.memberDepth+=1);const i=e(t.property);if(n&&(e.memberDepth-=1),!Ge.has(r[i]))return r[i];console.error(`Prevented interpretation of member "${i}" which could lead to insecure code execution`)},CallExpression:(e,t)=>{const n=t.arguments;let r=t.callee.name;return r.startsWith("_")&&(r=r.slice(1)),"if"===r?e(n[0])?e(n[1]):e(n[2]):(e.fn[r]||ze[r]).apply(e.fn,n.map(e))},ArrayExpression:(e,t)=>t.elements.map(e),BinaryExpression:(e,t)=>Pe[t.operator](e(t.left),e(t.right)),UnaryExpression:(e,t)=>_e[t.operator](e(t.argument)),ConditionalExpression:(e,t)=>e(t.test)?e(t.consequent):e(t.alternate),LogicalExpression:(e,t)=>"&&"===t.operator?e(t.left)&&e(t.right):e(t.left)||e(t.right),ObjectExpression:(e,t)=>t.properties.reduce(((t,n)=>{e.memberDepth+=1;const r=e(n.key);return e.memberDepth-=1,Ge.has(e(n.value))?console.error(`Prevented interpretation of property "${r}" which could lead to insecure code execution`):t[r]=e(n.value),t}),{})};function Ve(e,t,n,r,i,o){const a=e=>Be[e.type](a,e);return a.memberDepth=0,a.fn=Object.create(t),a.params=n,a.datum=r,a.event=i,a.item=o,Ue.forEach((e=>a.fn[e]=function(){return i.vega[e](...arguments)})),a(e)}var We={operator(e,t){const n=t.ast,r=e.functions;return e=>Ve(n,r,e)},parameter(e,t){const n=t.ast,r=e.functions;return(e,t)=>Ve(n,r,t,e)},event(e,t){const n=t.ast,r=e.functions;return e=>Ve(n,r,void 0,void 0,e)},handler(e,t){const n=t.ast,r=e.functions;return(e,t)=>{const i=t.item&&t.item.datum;return Ve(n,r,e,i,t)}},encode(e,t){const{marktype:n,channels:r}=t,i=e.functions,o="group"===n||"image"===n||"rect"===n;return(e,t)=>{const a=e.datum;let s,l=0;for(const n in r)s=Ve(r[n].ast,i,t,a,void 0,e),e[n]!==s&&(e[n]=s,l=1);return"rule"!==n&&function(e,t,n){let r;t.x2&&(t.x?(n&&e.x>e.x2&&(r=e.x,e.x=e.x2,e.x2=r),e.width=e.x2-e.x):e.x=e.x2-(e.width||0)),t.xc&&(e.x=e.xc-(e.width||0)/2),t.y2&&(t.y?(n&&e.y>e.y2&&(r=e.y,e.y=e.y2,e.y2=r),e.height=e.y2-e.y):e.y=e.y2-(e.height||0)),t.yc&&(e.y=e.yc-(e.height||0)/2)}(e,r,o),l}}};const Xe="5.23.0",He=Object.freeze(Object.defineProperty({__proto__:null,accessPathDepth:h,accessPathWithDatum:p,accessWithDatumToUnescapedPath:f,compile:u,contains:d,deepEqual:g,deleteNestedProperty:m,duplicate:v,entries:E,every:b,fieldIntersection:y,flatAccessWithDatum:w,getFirstDefined:O,hasIntersection:x,hasProperty:A,hash:N,internalField:I,isBoolean:S,isEmpty:R,isEqual:L,isInternalField:$,isNullOrFalse:T,isNumeric:D,keys:C,logicalExpr:k,mergeDeep:F,never:P,normalize:_,normalizeAngle:j,omit:M,pick:z,prefixGenerator:U,removePathFromField:G,replaceAll:B,replacePathInField:V,resetIdCounter:W,setEqual:X,some:H,stringify:q,titleCase:Y,unique:J,uniqueId:Q,vals:K,varName:Z,version:Xe},Symbol.toStringTag,{value:"Module"}));function qe(e){const[t,n]=/schema\/([\w-]+)\/([\w\.\-]+)\.json$/g.exec(e).slice(1,3);return{library:t,version:n}}var Ye="2.14.0";const Je="#fff",Qe="#888",Ke={background:"#333",view:{stroke:Qe},title:{color:Je,subtitleColor:Je},style:{"guide-label":{fill:Je},"guide-title":{fill:Je}},axis:{domainColor:Je,gridColor:Qe,tickColor:Je}},Ze="#4572a7",et={background:"#fff",arc:{fill:Ze},area:{fill:Ze},line:{stroke:Ze,strokeWidth:2},path:{stroke:Ze},rect:{fill:Ze},shape:{stroke:Ze},symbol:{fill:Ze,strokeWidth:1.5,size:50},axis:{bandPosition:.5,grid:!0,gridColor:"#000000",gridOpacity:1,gridWidth:.5,labelPadding:10,tickSize:5,tickWidth:.5},axisBand:{grid:!1,tickExtra:!0},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:50,symbolType:"square"},range:{category:["#4572a7","#aa4643","#8aa453","#71598e","#4598ae","#d98445","#94aace","#d09393","#b9cc98","#a99cbc"]}},tt="#30a2da",nt="#cbcbcb",rt="#f0f0f0",it="#333",ot={arc:{fill:tt},area:{fill:tt},axis:{domainColor:nt,grid:!0,gridColor:nt,gridWidth:1,labelColor:"#999",labelFontSize:10,titleColor:"#333",tickColor:nt,tickSize:10,titleFontSize:14,titlePadding:10,labelPadding:4},axisBand:{grid:!1},background:rt,group:{fill:rt},legend:{labelColor:it,labelFontSize:11,padding:1,symbolSize:30,symbolType:"square",titleColor:it,titleFontSize:14,titlePadding:10},line:{stroke:tt,strokeWidth:2},path:{stroke:tt,strokeWidth:.5},rect:{fill:tt},range:{category:["#30a2da","#fc4f30","#e5ae38","#6d904f","#8b8b8b","#b96db8","#ff9e27","#56cc60","#52d2ca","#52689e","#545454","#9fe4f8"],diverging:["#cc0020","#e77866","#f6e7e1","#d6e8ed","#91bfd9","#1d78b5"],heatmap:["#d6e8ed","#cee0e5","#91bfd9","#549cc6","#1d78b5"]},point:{filled:!0,shape:"circle"},shape:{stroke:tt},bar:{binSpacing:2,fill:tt,stroke:null},title:{anchor:"start",fontSize:24,fontWeight:600,offset:20}},at="#000",st={group:{fill:"#e5e5e5"},arc:{fill:at},area:{fill:at},line:{stroke:at},path:{stroke:at},rect:{fill:at},shape:{stroke:at},symbol:{fill:at,size:40},axis:{domain:!1,grid:!0,gridColor:"#FFFFFF",gridOpacity:1,labelColor:"#7F7F7F",labelPadding:4,tickColor:"#7F7F7F",tickSize:5.67,titleFontSize:16,titleFontWeight:"normal"},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:40},range:{category:["#000000","#7F7F7F","#1A1A1A","#999999","#333333","#B0B0B0","#4D4D4D","#C9C9C9","#666666","#DCDCDC"]}},lt="Benton Gothic, sans-serif",ct="#82c6df",ht="Benton Gothic Bold, sans-serif",pt="normal",ft={"category-6":["#ec8431","#829eb1","#c89d29","#3580b1","#adc839","#ab7fb4"],"fire-7":["#fbf2c7","#f9e39c","#f8d36e","#f4bb6a","#e68a4f","#d15a40","#ab4232"],"fireandice-6":["#e68a4f","#f4bb6a","#f9e39c","#dadfe2","#a6b7c6","#849eae"]},ut={background:"#ffffff",title:{anchor:"start",color:"#000000",font:ht,fontSize:22,fontWeight:"normal"},arc:{fill:ct},area:{fill:ct},line:{stroke:ct,strokeWidth:2},path:{stroke:ct},rect:{fill:ct},shape:{stroke:ct},symbol:{fill:ct,size:30},axis:{labelFont:lt,labelFontSize:11.5,labelFontWeight:"normal",titleFont:ht,titleFontSize:13,titleFontWeight:pt},axisX:{labelAngle:0,labelPadding:4,tickSize:3},axisY:{labelBaseline:"middle",maxExtent:45,minExtent:45,tickSize:2,titleAlign:"left",titleAngle:0,titleX:-45,titleY:-11},legend:{labelFont:lt,labelFontSize:11.5,symbolType:"square",titleFont:ht,titleFontSize:13,titleFontWeight:pt},range:{category:ft["category-6"],diverging:ft["fireandice-6"],heatmap:ft["fire-7"],ordinal:ft["fire-7"],ramp:ft["fire-7"]}},dt="#ab5787",gt="#979797",mt={background:"#f9f9f9",arc:{fill:dt},area:{fill:dt},line:{stroke:dt},path:{stroke:dt},rect:{fill:dt},shape:{stroke:dt},symbol:{fill:dt,size:30},axis:{domainColor:gt,domainWidth:.5,gridWidth:.2,labelColor:gt,tickColor:gt,tickWidth:.2,titleColor:gt},axisBand:{grid:!1},axisX:{grid:!0,tickSize:10},axisY:{domain:!1,grid:!0,tickSize:0},legend:{labelFontSize:11,padding:1,symbolSize:30,symbolType:"square"},range:{category:["#ab5787","#51b2e5","#703c5c","#168dd9","#d190b6","#00609f","#d365ba","#154866","#666666","#c4c4c4"]}},vt="#3e5c69",Et={background:"#fff",arc:{fill:vt},area:{fill:vt},line:{stroke:vt},path:{stroke:vt},rect:{fill:vt},shape:{stroke:vt},symbol:{fill:vt},axis:{domainWidth:.5,grid:!0,labelPadding:2,tickSize:5,tickWidth:.5,titleFontWeight:"normal"},axisBand:{grid:!1},axisX:{gridWidth:.2},axisY:{gridDash:[3],gridWidth:.4},legend:{labelFontSize:11,padding:1,symbolType:"square"},range:{category:["#3e5c69","#6793a6","#182429","#0570b0","#3690c0","#74a9cf","#a6bddb","#e2ddf2"]}},bt="#1696d2",yt="#000000",wt="Lato",Ot="Lato",xt={"shades-blue":["#CFE8F3","#A2D4EC","#73BFE2","#46ABDB","#1696D2","#12719E","#0A4C6A","#062635"],"six-groups-cat-1":["#1696d2","#ec008b","#fdbf11","#000000","#d2d2d2","#55b748"],"six-groups-seq":["#cfe8f3","#a2d4ec","#73bfe2","#46abdb","#1696d2","#12719e"],"diverging-colors":["#ca5800","#fdbf11","#fdd870","#fff2cf","#cfe8f3","#73bfe2","#1696d2","#0a4c6a"]},At={background:"#FFFFFF",title:{anchor:"start",fontSize:18,font:wt},axisX:{domain:!0,domainColor:yt,domainWidth:1,grid:!1,labelFontSize:12,labelFont:Ot,labelAngle:0,tickColor:yt,tickSize:5,titleFontSize:12,titlePadding:10,titleFont:wt},axisY:{domain:!1,domainWidth:1,grid:!0,gridColor:"#DEDDDD",gridWidth:1,labelFontSize:12,labelFont:Ot,labelPadding:8,ticks:!1,titleFontSize:12,titlePadding:10,titleFont:wt,titleAngle:0,titleY:-10,titleX:18},legend:{labelFontSize:12,labelFont:Ot,symbolSize:100,titleFontSize:12,titlePadding:10,titleFont:wt,orient:"right",offset:10},view:{stroke:"transparent"},range:{category:xt["six-groups-cat-1"],diverging:xt["diverging-colors"],heatmap:xt["diverging-colors"],ordinal:xt["six-groups-seq"],ramp:xt["shades-blue"]},area:{fill:bt},rect:{fill:bt},line:{color:bt,stroke:bt,strokeWidth:5},trail:{color:bt,stroke:bt,strokeWidth:0,size:1},path:{stroke:bt,strokeWidth:.5},point:{filled:!0},text:{font:"Lato",color:bt,fontSize:11,align:"center",fontWeight:400,size:11},style:{bar:{fill:bt,stroke:null}},arc:{fill:bt},shape:{stroke:bt},symbol:{fill:bt,size:30}},Nt="#3366CC",It="#ccc",St="Arial, sans-serif",Rt={arc:{fill:Nt},area:{fill:Nt},path:{stroke:Nt},rect:{fill:Nt},shape:{stroke:Nt},symbol:{stroke:Nt},circle:{fill:Nt},background:"#fff",padding:{top:10,right:10,bottom:10,left:10},style:{"guide-label":{font:St,fontSize:12},"guide-title":{font:St,fontSize:12},"group-title":{font:St,fontSize:12}},title:{font:St,fontSize:14,fontWeight:"bold",dy:-3,anchor:"start"},axis:{gridColor:It,tickColor:It,domain:!1,grid:!0},range:{category:["#4285F4","#DB4437","#F4B400","#0F9D58","#AB47BC","#00ACC1","#FF7043","#9E9D24","#5C6BC0","#F06292","#00796B","#C2185B"],heatmap:["#c6dafc","#5e97f6","#2a56c6"]}},Lt=e=>e*(1/3+1),$t=Lt(9),Tt=Lt(10),Dt=Lt(12),Ct="Segoe UI",kt="wf_standard-font, helvetica, arial, sans-serif",Ft="#252423",Pt="#605E5C",_t="transparent",jt="#118DFF",Mt="#DEEFFF",zt=[Mt,jt],Ut={view:{stroke:_t},background:_t,font:Ct,header:{titleFont:kt,titleFontSize:Dt,titleColor:Ft,labelFont:Ct,labelFontSize:Tt,labelColor:Pt},axis:{ticks:!1,grid:!1,domain:!1,labelColor:Pt,labelFontSize:$t,titleFont:kt,titleColor:Ft,titleFontSize:Dt,titleFontWeight:"normal"},axisQuantitative:{tickCount:3,grid:!0,gridColor:"#C8C6C4",gridDash:[1,5],labelFlush:!1},axisBand:{tickExtra:!0},axisX:{labelPadding:5},axisY:{labelPadding:10},bar:{fill:jt},line:{stroke:jt,strokeWidth:3,strokeCap:"round",strokeJoin:"round"},text:{font:Ct,fontSize:$t,fill:Pt},arc:{fill:jt},area:{fill:jt,line:!0,opacity:.6},path:{stroke:jt},rect:{fill:jt},point:{fill:jt,filled:!0,size:75},shape:{stroke:jt},symbol:{fill:jt,strokeWidth:1.5,size:50},legend:{titleFont:Ct,titleFontWeight:"bold",titleColor:Pt,labelFont:Ct,labelFontSize:Tt,labelColor:Pt,symbolType:"circle",symbolSize:75},range:{category:[jt,"#12239E","#E66C37","#6B007B","#E044A7","#744EC2","#D9B300","#D64550"],diverging:zt,heatmap:zt,ordinal:[Mt,"#c7e4ff","#b0d9ff","#9aceff","#83c3ff","#6cb9ff","#55aeff","#3fa3ff","#2898ff",jt]}},Gt='IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,".sfnstext-regular",sans-serif',Bt=["#8a3ffc","#33b1ff","#007d79","#ff7eb6","#fa4d56","#fff1f1","#6fdc8c","#4589ff","#d12771","#d2a106","#08bdba","#bae6ff","#ba4e00","#d4bbff"],Vt=["#6929c4","#1192e8","#005d5d","#9f1853","#fa4d56","#570408","#198038","#002d9c","#ee538b","#b28600","#009d9a","#012749","#8a3800","#a56eff"];function Wt({type:e,background:t}){const n="dark"===e?"#161616":"#ffffff",r="dark"===e?"#f4f4f4":"#161616",i="dark"===e?"#d4bbff":"#6929c4";return{background:t,arc:{fill:i},area:{fill:i},path:{stroke:i},rect:{fill:i},shape:{stroke:i},symbol:{stroke:i},circle:{fill:i},view:{fill:n,stroke:n},group:{fill:n},title:{color:r,anchor:"start",dy:-15,fontSize:16,font:Gt,fontWeight:600},axis:{labelColor:r,labelFontSize:12,grid:!0,gridColor:"#525252",titleColor:r,labelAngle:0},style:{"guide-label":{font:Gt,fill:r,fontWeight:400},"guide-title":{font:Gt,fill:r,fontWeight:400}},range:{category:"dark"===e?Bt:Vt,diverging:["#750e13","#a2191f","#da1e28","#fa4d56","#ff8389","#ffb3b8","#ffd7d9","#fff1f1","#e5f6ff","#bae6ff","#82cfff","#33b1ff","#1192e8","#0072c3","#00539a","#003a6d"],heatmap:["#f6f2ff","#e8daff","#d4bbff","#be95ff","#a56eff","#8a3ffc","#6929c4","#491d8b","#31135e","#1c0f30"]}}}const Xt=Wt({type:"light",background:"#ffffff"}),Ht=Wt({type:"light",background:"#f4f4f4"}),qt=Wt({type:"dark",background:"#262626"}),Yt=Wt({type:"dark",background:"#161616"}),Jt=Ye,Qt=Object.freeze(Object.defineProperty({__proto__:null,carbong10:Ht,carbong100:Yt,carbong90:qt,carbonwhite:Xt,dark:Ke,excel:et,fivethirtyeight:ot,ggplot2:st,googlecharts:Rt,latimes:ut,powerbi:Ut,quartz:mt,urbaninstitute:At,version:Jt,vox:Et},Symbol.toStringTag,{value:"Module"}));function Kt(e,t){return JSON.stringify(e,function(e){const t=[];return function(n,r){if("object"!=typeof r||null===r)return r;const i=t.indexOf(this)+1;return t.length=i,t.length>e?"[Object]":t.indexOf(r)>=0?"[Circular]":(t.push(r),r)}}(t))}var Zt="#vg-tooltip-element {\n visibility: hidden;\n padding: 8px;\n position: fixed;\n z-index: 1000;\n font-family: sans-serif;\n font-size: 11px;\n border-radius: 3px;\n box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);\n /* The default theme is the light theme. */\n background-color: rgba(255, 255, 255, 0.95);\n border: 1px solid #d9d9d9;\n color: black;\n}\n#vg-tooltip-element.visible {\n visibility: visible;\n}\n#vg-tooltip-element h2 {\n margin-top: 0;\n margin-bottom: 10px;\n font-size: 13px;\n}\n#vg-tooltip-element table {\n border-spacing: 0;\n}\n#vg-tooltip-element table tr {\n border: none;\n}\n#vg-tooltip-element table tr td {\n overflow: hidden;\n text-overflow: ellipsis;\n padding-top: 2px;\n padding-bottom: 2px;\n}\n#vg-tooltip-element table tr td.key {\n color: #808080;\n max-width: 150px;\n text-align: right;\n padding-right: 4px;\n}\n#vg-tooltip-element table tr td.value {\n display: block;\n max-width: 300px;\n max-height: 7em;\n text-align: left;\n}\n#vg-tooltip-element.dark-theme {\n background-color: rgba(32, 32, 32, 0.9);\n border: 1px solid #f5f5f5;\n color: white;\n}\n#vg-tooltip-element.dark-theme td.key {\n color: #bfbfbf;\n}\n";const en="vg-tooltip-element",tn={offsetX:10,offsetY:10,id:en,styleId:"vega-tooltip-style",theme:"light",disableDefaultStyle:!1,sanitize:function(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;")},maxDepth:2,formatTooltip:function(e,t,o){if(n(e))return`[${e.map((e=>t(r(e)?e:Kt(e,o)))).join(", ")}]`;if(i(e)){let n="";const{title:r,image:a,...s}=e;r&&(n+=`<h2>${t(r)}</h2>`),a&&(n+=`<img src="${t(a)}">`);const l=Object.keys(s);if(l.length>0){n+="<table>";for(const e of l){let r=s[e];void 0!==r&&(i(r)&&(r=Kt(r,o)),n+=`<tr><td class="key">${t(e)}</td><td class="value">${t(r)}</td></tr>`)}n+="</table>"}return n||"{}"}return t(e)}};class nn{constructor(e){this.options={...tn,...e};const t=this.options.id;if(this.el=null,this.call=this.tooltipHandler.bind(this),!this.options.disableDefaultStyle&&!document.getElementById(this.options.styleId)){const e=document.createElement("style");e.setAttribute("id",this.options.styleId),e.innerHTML=function(e){if(!/^[A-Za-z]+[-:.\w]*$/.test(e))throw new Error("Invalid HTML ID");return Zt.toString().replace(en,e)}(t);const n=document.head;n.childNodes.length>0?n.insertBefore(e,n.childNodes[0]):n.appendChild(e)}}tooltipHandler(e,t,n,r){if(this.el=document.getElementById(this.options.id),!this.el){this.el=document.createElement("div"),this.el.setAttribute("id",this.options.id),this.el.classList.add("vg-tooltip");(document.fullscreenElement??document.body).appendChild(this.el)}if(null==r||""===r)return void this.el.classList.remove("visible",`${this.options.theme}-theme`);this.el.innerHTML=this.options.formatTooltip(r,this.options.sanitize,this.options.maxDepth),this.el.classList.add("visible",`${this.options.theme}-theme`);const{x:i,y:o}=function(e,t,n,r){let i=e.clientX+n;i+t.width>window.innerWidth&&(i=+e.clientX-n-t.width);let o=e.clientY+r;return o+t.height>window.innerHeight&&(o=+e.clientY-r-t.height),{x:i,y:o}}(t,this.el.getBoundingClientRect(),this.options.offsetX,this.options.offsetY);this.el.style.top=`${o}px`,this.el.style.left=`${i}px`}}var rn,on,an={};function sn(e){return(sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ln(e){var t=function(e,t){if("object"!==sn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==sn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sn(t)?t:String(t)}function cn(e,t,n){return(t=ln(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pn=fn;function fn(e){var t=this;if(t instanceof fn||(t=new fn),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}function un(e,t,n){var r=t===e.head?new mn(n,null,t,e):new mn(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function dn(e,t){e.tail=new mn(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function gn(e,t){e.head=new mn(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function mn(e,t,n,r){if(!(this instanceof mn))return new mn(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}fn.Node=mn,fn.create=fn,fn.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},fn.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},fn.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},fn.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)dn(this,arguments[e]);return this.length},fn.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)gn(this,arguments[e]);return this.length},fn.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},fn.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},fn.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},fn.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},fn.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},fn.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},fn.prototype.map=function(e,t){t=t||this;for(var n=new fn,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},fn.prototype.mapReverse=function(e,t){t=t||this;for(var n=new fn,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},fn.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},fn.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},fn.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},fn.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},fn.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new fn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,i=this.head;null!==i&&r<e;r++)i=i.next;for(;null!==i&&r<t;r++,i=i.next)n.push(i.value);return n},fn.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new fn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,i=this.tail;null!==i&&r>t;r--)i=i.prev;for(;null!==i&&r>e;r--,i=i.prev)n.push(i.value);return n},fn.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,i=this.head;null!==i&&r<e;r++)i=i.next;var o=[];for(r=0;i&&r<t;r++)o.push(i.value),i=this.removeNode(i);null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(r=0;r<n.length;r++)i=un(this,i,n[r]);return o},fn.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{(on?rn:(on=1,rn=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(fn)}catch(Zr){}const vn=pn,En=Symbol("max"),bn=Symbol("length"),yn=Symbol("lengthCalculator"),wn=Symbol("allowStale"),On=Symbol("maxAge"),xn=Symbol("dispose"),An=Symbol("noDisposeOnSet"),Nn=Symbol("lruList"),In=Symbol("cache"),Sn=Symbol("updateAgeOnGet"),Rn=()=>1;const Ln=(e,t,n)=>{const r=e[In].get(t);if(r){const t=r.value;if($n(e,t)){if(Dn(e,r),!e[wn])return}else n&&(e[Sn]&&(r.value.now=Date.now()),e[Nn].unshiftNode(r));return t.value}},$n=(e,t)=>{if(!t||!t.maxAge&&!e[On])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[On]&&n>e[On]},Tn=e=>{if(e[bn]>e[En])for(let t=e[Nn].tail;e[bn]>e[En]&&null!==t;){const n=t.prev;Dn(e,t),t=n}},Dn=(e,t)=>{if(t){const n=t.value;e[xn]&&e[xn](n.key,n.value),e[bn]-=n.length,e[In].delete(n.key),e[Nn].removeNode(t)}};class Cn{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const kn=(e,t,n,r)=>{let i=n.value;$n(e,i)&&(Dn(e,n),e[wn]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var Fn=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[En]=e.max||1/0;const t=e.length||Rn;if(this[yn]="function"!=typeof t?Rn:t,this[wn]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[On]=e.maxAge||0,this[xn]=e.dispose,this[An]=e.noDisposeOnSet||!1,this[Sn]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[En]=e||1/0,Tn(this)}get max(){return this[En]}set allowStale(e){this[wn]=!!e}get allowStale(){return this[wn]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[On]=e,Tn(this)}get maxAge(){return this[On]}set lengthCalculator(e){"function"!=typeof e&&(e=Rn),e!==this[yn]&&(this[yn]=e,this[bn]=0,this[Nn].forEach((e=>{e.length=this[yn](e.value,e.key),this[bn]+=e.length}))),Tn(this)}get lengthCalculator(){return this[yn]}get length(){return this[bn]}get itemCount(){return this[Nn].length}rforEach(e,t){t=t||this;for(let n=this[Nn].tail;null!==n;){const r=n.prev;kn(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[Nn].head;null!==n;){const r=n.next;kn(this,e,n,t),n=r}}keys(){return this[Nn].toArray().map((e=>e.key))}values(){return this[Nn].toArray().map((e=>e.value))}reset(){this[xn]&&this[Nn]&&this[Nn].length&&this[Nn].forEach((e=>this[xn](e.key,e.value))),this[In]=new Map,this[Nn]=new vn,this[bn]=0}dump(){return this[Nn].map((e=>!$n(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[Nn]}set(e,t,n){if((n=n||this[On])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,i=this[yn](t,e);if(this[In].has(e)){if(i>this[En])return Dn(this,this[In].get(e)),!1;const o=this[In].get(e).value;return this[xn]&&(this[An]||this[xn](e,o.value)),o.now=r,o.maxAge=n,o.value=t,this[bn]+=i-o.length,o.length=i,this.get(e),Tn(this),!0}const o=new Cn(e,t,i,r,n);return o.length>this[En]?(this[xn]&&this[xn](e,t),!1):(this[bn]+=o.length,this[Nn].unshift(o),this[In].set(e,this[Nn].head),Tn(this),!0)}has(e){if(!this[In].has(e))return!1;const t=this[In].get(e).value;return!$n(this,t)}get(e){return Ln(this,e,!0)}peek(e){return Ln(this,e,!1)}pop(){const e=this[Nn].tail;return e?(Dn(this,e),e.value):null}del(e){Dn(this,this[In].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[In].forEach(((e,t)=>Ln(this,t,!1)))}};const Pn=Object.freeze({loose:!0}),_n=Object.freeze({});var jn=e=>e?"object"!=typeof e?Pn:e:_n,Mn={exports:{}};var zn={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};var Un="object"==typeof process&&an&&an.NODE_DEBUG&&/\bsemver\b/i.test(an.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=zn,o=Un,a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.t={};let h=0;const p="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",i],[p,r]],u=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=h++;o(e,i,t),c[e]=i,l[i]=t,a[i]=new RegExp(t,n?"g":void 0),s[i]=new RegExp(r,n?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","\\d+"),u("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),u("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER",`${p}+`),u("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),u("FULL",`^${l[c.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),u("LOOSE",`^${l[c.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),u("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),u("COERCERTL",l[c.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Mn,Mn.exports);var Gn=Mn.exports;const Bn=/^[0-9]+$/;var Vn={compareIdentifiers:(e,t)=>{const n=Bn.test(e),r=Bn.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}};const Wn=Un,{MAX_LENGTH:Xn,MAX_SAFE_INTEGER:Hn}=zn,{safeRe:qn,t:Yn}=Gn,Jn=jn,{compareIdentifiers:Qn}=Vn;var Kn=class e{constructor(t,n){if(n=Jn(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Xn)throw new TypeError(`version is longer than ${Xn} characters`);Wn("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?qn[Yn.LOOSE]:qn[Yn.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Hn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Hn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Hn||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<Hn)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Wn("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),Qn(this.major,t.major)||Qn(this.minor,t.minor)||Qn(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(Wn("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return Qn(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(Wn("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return Qn(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===Qn(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const Zn=Kn;var er=(e,t,n)=>new Zn(e,n).compare(new Zn(t,n));const tr=er;const nr=er;const rr=er;const ir=er;const or=er;const ar=er;const sr=(e,t,n)=>0===tr(e,t,n),lr=(e,t,n)=>0!==nr(e,t,n),cr=(e,t,n)=>rr(e,t,n)>0,hr=(e,t,n)=>ir(e,t,n)>=0,pr=(e,t,n)=>or(e,t,n)<0,fr=(e,t,n)=>ar(e,t,n)<=0;var ur,dr,gr,mr,vr=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return sr(e,n,r);case"!=":return lr(e,n,r);case">":return cr(e,n,r);case">=":return hr(e,n,r);case"<":return pr(e,n,r);case"<=":return fr(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};function Er(){if(mr)return gr;mr=1;class e{constructor(t,i){if(i=n(i),t instanceof e)return t.loose===!!i.loose&&t.includePrerelease===!!i.includePrerelease?t:new e(t.raw,i);if(t instanceof r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!u(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&d(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&p)|(this.options.loose&&f))+":"+e,o=t.get(n);if(o)return o;const d=this.options.loose,g=d?a[s.HYPHENRANGELOOSE]:a[s.HYPHENRANGE];e=e.replace(g,I(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(a[s.COMPARATORTRIM],l),i("comparator trim",e),e=e.replace(a[s.TILDETRIM],c),i("tilde trim",e),e=e.replace(a[s.CARETTRIM],h),i("caret trim",e);let v=e.split(" ").map((e=>m(e,this.options))).join(" ").split(/\s+/).map((e=>N(e,this.options)));d&&(v=v.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(a[s.COMPARATORLOOSE]))))),i("range list",v);const E=new Map,b=v.map((e=>new r(e,this.options)));for(const t of b){if(u(t))return[t];E.set(t.value,t)}E.size>1&&E.has("")&&E.delete("");const y=[...E.values()];return t.set(n,y),y}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,n)&&t.set.some((t=>g(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options)}catch(Zr){return!1}for(let t=0;t<this.set.length;t++)if(S(this.set[t],e,this.options))return!0;return!1}}gr=e;const t=new Fn({max:1e3}),n=jn,r=function(){if(dr)return ur;dr=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],o=t.match(n);if(!o)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==o[1]?o[1]:"","="===this.operator&&(this.operator=""),o[2]?this.semver=new s(o[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(Zr){return!1}return o(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(o(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(o(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}ur=t;const n=jn,{safeRe:r,t:i}=Gn,o=vr,a=Un,s=Kn,l=Er();return ur}(),i=Un,o=Kn,{safeRe:a,t:s,comparatorTrimReplace:l,tildeTrimReplace:c,caretTrimReplace:h}=Gn,{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:f}=zn,u=e=>"<0.0.0-0"===e.value,d=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},m=(e,t)=>(i("comp",e,t),e=y(e,t),i("caret",e),e=E(e,t),i("tildes",e),e=O(e,t),i("xrange",e),e=A(e,t),i("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{const n=t.loose?a[s.TILDELOOSE]:a[s.TILDE];return e.replace(n,((t,n,r,o,a)=>{let s;return i("tilde",e,t,n,r,o,a),v(n)?s="":v(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(o)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(i("replaceTilde pr",a),s=`>=${n}.${r}.${o}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${o} <${n}.${+r+1}.0-0`,i("tilde return",s),s}))},y=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{i("caret",e,t);const n=t.loose?a[s.CARETLOOSE]:a[s.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,a,s)=>{let l;return i("caret",e,t,n,o,a,s),v(n)?l="":v(o)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(a)?l="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:s?(i("replaceCaret pr",s),l="0"===n?"0"===o?`>=${n}.${o}.${a}-${s} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}-${s} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a}-${s} <${+n+1}.0.0-0`):(i("no pr"),l="0"===n?"0"===o?`>=${n}.${o}.${a}${r} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a} <${+n+1}.0.0-0`),i("caret return",l),l}))},O=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>x(e,t))).join(" ")),x=(e,t)=>{e=e.trim();const n=t.loose?a[s.XRANGELOOSE]:a[s.XRANGE];return e.replace(n,((n,r,o,a,s,l)=>{i("xRange",e,n,r,o,a,s,l);const c=v(o),h=c||v(a),p=h||v(s),f=p;return"="===r&&f&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(h&&(a=0),s=0,">"===r?(r=">=",h?(o=+o+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",h?o=+o+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+o}.${a}.${s}${l}`):h?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),i("xRange return",n),n}))},A=(e,t)=>(i("replaceStars",e,t),e.trim().replace(a[s.STAR],"")),N=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),I=e=>(t,n,r,i,o,a,s,l,c,h,p,f,u)=>`${n=v(r)?"":v(i)?`>=${r}.0.0${e?"-0":""}`:v(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=v(c)?"":v(h)?`<${+c+1}.0.0-0`:v(p)?`<${c}.${+h+1}.0-0`:f?`<=${c}.${h}.${p}-${f}`:e?`<${c}.${h}.${+p+1}-0`:`<=${l}`}`.trim(),S=(e,t,n)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(i(e[n].semver),e[n].semver!==r.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return gr}const br=Er();var yr=hn(((e,t,n)=>{try{t=new br(t,n)}catch(Zr){return!1}return t.test(e)}));var wr='.vega-embed {\n position: relative;\n display: inline-block;\n box-sizing: border-box;\n}\n.vega-embed.has-actions {\n padding-right: 38px;\n}\n.vega-embed details:not([open]) > :not(summary) {\n display: none !important;\n}\n.vega-embed summary {\n list-style: none;\n position: absolute;\n top: 0;\n right: 0;\n padding: 6px;\n z-index: 1000;\n background: white;\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);\n color: #1b1e23;\n border: 1px solid #aaa;\n border-radius: 999px;\n opacity: 0.2;\n transition: opacity 0.4s ease-in;\n cursor: pointer;\n line-height: 0px;\n}\n.vega-embed summary::-webkit-details-marker {\n display: none;\n}\n.vega-embed summary:active {\n box-shadow: #aaa 0px 0px 0px 1px inset;\n}\n.vega-embed summary svg {\n width: 14px;\n height: 14px;\n}\n.vega-embed details[open] summary {\n opacity: 0.7;\n}\n.vega-embed:hover summary, .vega-embed:focus-within summary {\n opacity: 1 !important;\n transition: opacity 0.2s ease;\n}\n.vega-embed .vega-actions {\n position: absolute;\n z-index: 1001;\n top: 35px;\n right: -9px;\n display: flex;\n flex-direction: column;\n padding-bottom: 8px;\n padding-top: 8px;\n border-radius: 4px;\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);\n border: 1px solid #d9d9d9;\n background: white;\n animation-duration: 0.15s;\n animation-name: scale-in;\n animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);\n text-align: left;\n}\n.vega-embed .vega-actions a {\n padding: 8px 16px;\n font-family: sans-serif;\n font-size: 14px;\n font-weight: 600;\n white-space: nowrap;\n color: #434a56;\n text-decoration: none;\n}\n.vega-embed .vega-actions a:hover, .vega-embed .vega-actions a:focus {\n background-color: #f7f7f9;\n color: black;\n}\n.vega-embed .vega-actions::before, .vega-embed .vega-actions::after {\n content: "";\n display: inline-block;\n position: absolute;\n}\n.vega-embed .vega-actions::before {\n left: auto;\n right: 14px;\n top: -16px;\n border: 8px solid rgba(0, 0, 0, 0);\n border-bottom-color: #d9d9d9;\n}\n.vega-embed .vega-actions::after {\n left: auto;\n right: 15px;\n top: -14px;\n border: 7px solid rgba(0, 0, 0, 0);\n border-bottom-color: #fff;\n}\n.vega-embed .chart-wrapper.fit-x {\n width: 100%;\n}\n.vega-embed .chart-wrapper.fit-y {\n height: 100%;\n}\n\n.vega-embed-wrapper {\n max-width: 100%;\n overflow: auto;\n padding-right: 14px;\n}\n\n@keyframes scale-in {\n from {\n opacity: 0;\n transform: scale(0.6);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n';function Or(e,...t){for(const n of t)xr(e,n);return e}function xr(e,t){for(const n of Object.keys(t))s(e,n,t[n],!0)}function Ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(n),!0).forEach((function(t){cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ir=ee;let Sr=He;const Rr="undefined"!=typeof window?window:void 0;void 0===Sr&&(null==(e=null==Rr?void 0:Rr.vl)?void 0:e.compile)&&(Sr=Rr.vl);const Lr={export:{svg:!0,png:!0},source:!0,compiled:!0,editor:!0},$r={CLICK_TO_VIEW_ACTIONS:"Click to view actions",COMPILED_ACTION:"View Compiled Vega",EDITOR_ACTION:"Open in Vega Editor",PNG_ACTION:"Save as PNG",SOURCE_ACTION:"View Source",SVG_ACTION:"Save as SVG"},Tr={vega:"Vega","vega-lite":"Vega-Lite"},Dr={vega:Ir.version,"vega-lite":Sr?Sr.version:"not available"},Cr={vega:e=>e,"vega-lite":(e,t)=>Sr.compile(e,{config:t}).spec},kr='\n<svg viewBox="0 0 16 16" fill="currentColor" stroke="none" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">\n <circle r="2" cy="8" cx="2"></circle>\n <circle r="2" cy="8" cx="8"></circle>\n <circle r="2" cy="8" cx="14"></circle>\n</svg>',Fr="chart-wrapper";function Pr(e,t,n,r){const i=`<html><head>${t}</head><body><pre><code class="json">`,o=`</code></pre>${n}</body></html>`,a=window.open("");a.document.write(i+e+o),a.document.title=`${Tr[r]} JSON Source`}function _r(e){return(t=e)&&"load"in t?e:Ir.loader(e);var t}async function jr(e,t,n={}){let s,l;r(t)?(l=_r(n.loader),s=JSON.parse(await l.load(t))):s=t;const c=function(e){var t;const n=(null==(t=e.usermeta)?void 0:t.embedOptions)??{};return r(n.defaultStyle)&&(n.defaultStyle=!1),n}(s),h=c.loader;l&&!h||(l=_r(n.loader??h));const p=await Mr(c,l),f=await Mr(n,l),u=Nr(Nr({},Or(f,p)),{},{config:o(f.config??{},p.config??{})});return await async function(e,t,n={},r){const s=n.theme?o(Qt[n.theme],n.config??{}):n.config,l=a(n.actions)?n.actions:Or({},Lr,n.actions??{}),c=Nr(Nr({},$r),n.i18n),h=n.renderer??"canvas",p=n.logLevel??Ir.Warn,f=n.downloadFileName??"visualization",u="string"==typeof e?document.querySelector(e):e;if(!u)throw new Error(`${e} does not exist`);if(!1!==n.defaultStyle){const e="vega-embed-style",{root:t,rootContainer:r}=function(e){const t=e.getRootNode?e.getRootNode():document;return t instanceof ShadowRoot?{root:t,rootContainer:t}:{root:document,rootContainer:document.head??document.body}}(u);if(!t.getElementById(e)){const t=document.createElement("style");t.id=e,t.innerHTML=void 0===n.defaultStyle||!0===n.defaultStyle?wr.toString():n.defaultStyle,r.appendChild(t)}}const d=function(e,t){if(e.$schema){const n=qe(e.$schema);t&&t!==n.library&&console.warn(`The given visualization spec is written in ${Tr[n.library]}, but mode argument sets ${Tr[t]??t}.`);const r=n.library;return yr(Dr[r],`^${n.version.slice(1)}`)||console.warn(`The input spec uses ${Tr[r]} ${n.version}, but the current version of ${Tr[r]} is v${Dr[r]}.`),r}return"mark"in e||"encoding"in e||"layer"in e||"hconcat"in e||"vconcat"in e||"facet"in e||"repeat"in e?"vega-lite":"marks"in e||"signals"in e||"scales"in e||"axes"in e?"vega":t??"vega"}(t,n.mode);let g=Cr[d](t,s);if("vega-lite"===d&&g.$schema){const e=qe(g.$schema);yr(Dr.vega,`^${e.version.slice(1)}`)||console.warn(`The compiled spec uses Vega ${e.version}, but current version is v${Dr.vega}.`)}u.classList.add("vega-embed"),l&&u.classList.add("has-actions");u.innerHTML="";let m=u;if(l){const e=document.createElement("div");e.classList.add(Fr),u.appendChild(e),m=e}const v=n.patch;v&&(g=v instanceof Function?v(g):we(g,v,!0,!1).newDocument);n.formatLocale&&Ir.formatLocale(n.formatLocale);n.timeFormatLocale&&Ir.timeFormatLocale(n.timeFormatLocale);if(n.expressionFunctions)for(const i in n.expressionFunctions){const e=n.expressionFunctions[i];"fn"in e?Ir.expressionFunction(i,e.fn,e.visitor):e instanceof Function&&Ir.expressionFunction(i,e)}const{ast:E}=n,b=Ir.parse(g,"vega-lite"===d?{}:s,{ast:E}),y=new(n.viewClass||Ir.View)(b,Nr({loader:r,logLevel:p,renderer:h},E?{expr:Ir.expressionInterpreter??n.expr??We}:{}));if(y.addSignalListener("autosize",((e,t)=>{const{type:n}=t;"fit-x"==n?(m.classList.add("fit-x"),m.classList.remove("fit-y")):"fit-y"==n?(m.classList.remove("fit-x"),m.classList.add("fit-y")):"fit"==n?m.classList.add("fit-x","fit-y"):m.classList.remove("fit-x","fit-y")})),!1!==n.tooltip){const e="function"==typeof n.tooltip?n.tooltip:new nn(!0===n.tooltip?{}:n.tooltip).call;y.tooltip(e)}let w,{hover:O}=n;void 0===O&&(O="vega"===d);if(O){const{hoverSet:e,updateSet:t}="boolean"==typeof O?{}:O;y.hover(e,t)}n&&(null!=n.width&&y.width(n.width),null!=n.height&&y.height(n.height),null!=n.padding&&y.padding(n.padding));if(await y.initialize(m,n.bind).runAsync(),!1!==l){let e=u;if(!1!==n.defaultStyle||n.forceActionsMenu){const t=document.createElement("details");t.title=c.CLICK_TO_VIEW_ACTIONS,u.append(t),e=t;const n=document.createElement("summary");n.innerHTML=kr,t.append(n),w=e=>{t.contains(e.target)||t.removeAttribute("open")},document.addEventListener("click",w)}const r=document.createElement("div");if(e.append(r),r.classList.add("vega-actions"),!0===l||!1!==l.export)for(const t of["svg","png"])if(!0===l||!0===l.export||l.export[t]){const e=c[`${t.toUpperCase()}_ACTION`],o=document.createElement("a"),a=i(n.scaleFactor)?n.scaleFactor[t]:n.scaleFactor;o.text=e,o.href="#",o.target="_blank",o.download=`${f}.${t}`,o.addEventListener("mousedown",(async function(e){e.preventDefault();const n=await y.toImageURL(t,a);this.href=n})),r.append(o)}if(!0===l||!1!==l.source){const e=document.createElement("a");e.text=c.SOURCE_ACTION,e.href="#",e.addEventListener("click",(function(e){Pr(ke(t),n.sourceHeader??"",n.sourceFooter??"",d),e.preventDefault()})),r.append(e)}if("vega-lite"===d&&(!0===l||!1!==l.compiled)){const e=document.createElement("a");e.text=c.COMPILED_ACTION,e.href="#",e.addEventListener("click",(function(e){Pr(ke(g),n.sourceHeader??"",n.sourceFooter??"","vega"),e.preventDefault()})),r.append(e)}if(!0===l||!1!==l.editor){const e=n.editorUrl??"https://vega.github.io/editor/",i=document.createElement("a");i.text=c.EDITOR_ACTION,i.href="#",i.addEventListener("click",(function(n){!function(e,t,n){const r=e.open(t),{origin:i}=new URL(t);let o=40;e.addEventListener("message",(function t(n){n.source===r&&(o=0,e.removeEventListener("message",t,!1))}),!1),setTimeout((function e(){o<=0||(r.postMessage(n,i),setTimeout(e,250),o-=1)}),250)}(window,e,{config:s,mode:d,renderer:h,spec:ke(t)}),n.preventDefault()})),r.append(i)}}function x(){w&&document.removeEventListener("click",w),y.finalize()}return{view:y,spec:t,vgSpec:g,finalize:x,embedOptions:n}}(e,s,u,l)}async function Mr(e,t){const n=r(e.config)?JSON.parse(await t.load(e.config)):e.config??{},i=r(e.patch)?JSON.parse(await t.load(e.patch)):e.patch;return Nr(Nr(Nr({},e),i?{patch:i}:{}),n?{config:n}:{})}function zr(e,t){Object.keys(t).forEach((n=>{!function(e,t,n){var r;n&&((r=n)&&"[object Function]"==={}.toString.call(r)?n(e.data(t)):e.change(t,Ir.changeset().remove((()=>!0)).insert(n)))}(e,n,t[n])}))}function Ur(e){const t=new Set;return e.forEach((e=>{Object.keys(e).forEach((e=>{t.add(e)}))})),t}const Gr=()=>{};function Br(e,t){const n=Object.keys(t);return n.forEach((n=>{try{e.addSignalListener(n,t[n])}catch(r){console.warn("Cannot add invalid signal listener.",r)}})),n.length>0}function Vr(e,t){const n=Object.keys(t);return n.forEach((n=>{try{e.removeSignalListener(n,t[n])}catch(r){console.warn("Cannot remove invalid signal listener.",r)}})),n.length>0}function Wr(e){const{spec:t,width:n,height:r}=e;return void 0!==n&&void 0!==r?{...t,width:n,height:r}:void 0!==n?{...t,width:n}:void 0!==r?{...t,height:r}:t}function Xr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Hr extends l.PureComponent{constructor(){super(...arguments),Xr(this,"containerRef",l.createRef()),Xr(this,"resultPromise",void 0),Xr(this,"handleError",(e=>{const{onError:t=Gr}=this.props;t(e,this.containerRef.current),console.warn(e)})),Xr(this,"modifyView",(e=>{this.resultPromise&&this.resultPromise.then((t=>(t&&e(t.view),!0))).catch(this.handleError)}))}componentDidMount(){this.createView()}componentDidUpdate(e){const t=Ur([this.props,e]);if(t.delete("className"),t.delete("signalListeners"),t.delete("spec"),t.delete("style"),t.delete("width"),t.delete("height"),Array.from(t).some((t=>this.props[t]!==e[t])))this.clearView(),this.createView();else{const t=function(e,t){if(e===t)return!1;const n={width:!1,height:!1,isExpensive:!1},r=Ur([e,t]);return!r.has("width")||"width"in e&&"width"in t&&e.width===t.width||("width"in e&&"number"==typeof e.width?n.width=e.width:n.isExpensive=!0),!r.has("height")||"height"in e&&"height"in t&&e.height===t.height||("height"in e&&"number"==typeof e.height?n.height=e.height:n.isExpensive=!0),r.delete("width"),r.delete("height"),[...r].some((n=>!(n in e)||!(n in t)||!te(e[n],t[n])))&&(n.isExpensive=!0),!(!1===n.width&&!1===n.height&&!n.isExpensive)&&n}(Wr(this.props),Wr(e)),{signalListeners:n}=this.props,{signalListeners:r}=e;if(t)if(t.isExpensive)this.clearView(),this.createView();else{const e=!re(n,r);this.modifyView((i=>{!1!==t.width&&i.width(t.width),!1!==t.height&&i.height(t.height),e&&(r&&Vr(i,r),n&&Br(i,n)),i.run()}))}else re(n,r)||this.modifyView((e=>{r&&Vr(e,r),n&&Br(e,n),e.run()}))}}componentWillUnmount(){this.clearView()}createView(){const{spec:e,onNewView:t,signalListeners:n={},width:r,height:i,...o}=this.props;if(this.containerRef.current){const e=Wr(this.props);this.resultPromise=jr(this.containerRef.current,e,o).then((e=>{if(e){const{view:t}=e;Br(t,n)&&t.run()}return e})).catch(this.handleError),t&&this.modifyView(t)}}clearView(){return this.resultPromise&&this.resultPromise.then((e=>{e&&e.finalize()})).catch(this.handleError),this.resultPromise=void 0,this}render(){const{className:e,style:t}=this.props;return l.createElement("div",{ref:this.containerRef,className:e,style:t})}}function qr(){return qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qr.apply(this,arguments)}function Yr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Xr(Hr,"propTypes",{className:c.string,onError:c.func});class Jr extends l.PureComponent{constructor(){super(...arguments),Yr(this,"vegaEmbed",l.createRef()),Yr(this,"handleNewView",(e=>{this.update();const{onNewView:t=Gr}=this.props;t(e)}))}componentDidMount(){this.update()}componentDidUpdate(e){re(this.props.data,e.data)||this.update()}update(){const{data:e}=this.props;this.vegaEmbed.current&&e&&Object.keys(e).length>0&&this.vegaEmbed.current.modifyView((t=>{zr(t,e),t.resize().run()}))}render(){const{data:e,...t}=this.props;return l.createElement(Hr,qr({ref:this.vegaEmbed},t,{onNewView:this.handleNewView}))}}function Qr(){return Qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qr.apply(this,arguments)}function Kr(e){return l.createElement(Jr,Qr({},e,{mode:"vega-lite"}))}Yr(Jr,"defaultProps",{data:{}});export{Jr as V,Kr as a};
@@ -0,0 +1 @@
1
+ import{bQ as n,bR as r,bS as t,G as u,bT as e,bU as a,bV as i,bW as f,ar as o,bX as c,as as s,ae as b,bY as v,n as l}from"./index-C_s7yDug.js";function j(n){return n==n&&!t(n)}function d(n,r){return function(t){return null!=t&&(t[n]===r&&(void 0!==r||n in Object(t)))}}function g(t){var e=function(n){for(var r=u(n),t=r.length;t--;){var e=r[t],a=n[e];r[t]=[e,a,j(a)]}return r}(t);return 1==e.length&&e[0][2]?d(e[0][0],e[0][1]):function(u){return u===t||function(t,u,e,a){var i=e.length,f=i;if(null==t)return!f;for(t=Object(t);i--;){var o=e[i];if(o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++i<f;){var c=(o=e[i])[0],s=t[c],b=o[1];if(o[2]){if(void 0===s&&!(c in t))return!1}else{var v=new n;if(!r(b,s,3,a,v))return!1}}return!0}(u,0,e)}}function h(n){return e(n)?c(a(n)):function(n){return function(r){return o(r,n)}}(n)}function p(n){return"function"==typeof n?n:null==n?s:"object"==typeof n?b(n)?(t=n[0],u=n[1],e(t)&&j(u)?d(a(t),u):function(n){var e=i(n,t);return void 0===e&&e===u?f(n,t):r(u,e,3)}):g(n):h(n);var t,u}function O(n,r){return n&&v(n,r,u)}var m,x=(m=O,function(n,r){if(null==n)return n;if(!l(n))return m(n,r);for(var t=n.length,u=-1,e=Object(n);++u<t&&!1!==r(e[u],u,e););return n});export{p as a,x as b,O as c};
@@ -0,0 +1 @@
1
+ import{b as r}from"./_baseEach-BS5yXLYc.js";import{n}from"./index-C_s7yDug.js";function o(o,a){var t=-1,s=n(o)?Array(o.length):[];return r(o,(function(r,n,o){s[++t]=a(r,n,o)})),s}export{o as b};
@@ -0,0 +1 @@
1
+ import{cF as t,G as r,bM as e,cG as n,cH as a,cI as c,cJ as o,cK as u,cL as s,cM as i,cN as f,cO as b,cP as j,at as l,cQ as v,bS as y,cR as p,cS as A,cT as h,cU as g,bQ as d,cV as w,ae as m,cW as S,as as x,cX as I,aq as O,cY as U,cZ as F,c_ as M,c$ as E,d0 as B}from"./index-C_s7yDug.js";import{b as D,a as G}from"./_baseEach-BS5yXLYc.js";function N(){}function P(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t}function R(t,r,e,n){for(var a=t.length,c=e+-1;++c<a;)if(r(t[c],c,t))return c;return-1}function V(t){return t!=t}function k(t,r,e){return r==r?function(t,r,e){for(var n=e-1,a=t.length;++n<a;)if(t[n]===r)return n;return-1}(t,r,e):R(t,V,e)}function C(t,r){return!!(null==t?0:t.length)&&k(t,r,0)>-1}var L=Object.getOwnPropertySymbols?function(t){for(var r=[];t;)c(r,n(t)),t=o(t);return r}:a;function Q(t){return u(t,e,L)}var W=Object.prototype.hasOwnProperty;var $=/\w*$/;var _=i?i.prototype:void 0,q=_?_.valueOf:void 0;function H(t,r,e){var n,a,c,o=t.constructor;switch(r){case"[object ArrayBuffer]":return s(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return function(t,r){var e=r?s(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return f(t,e);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return(c=new(a=t).constructor(a.source,$.exec(a))).lastIndex=a.lastIndex,c;case"[object Symbol]":return n=t,q?Object(q.call(n)):{}}}var J=v&&v.isMap,K=J?l(J):function(t){return b(t)&&"[object Map]"==j(t)};var T=v&&v.isSet,X=T?l(T):function(t){return b(t)&&"[object Set]"==j(t)},Y="[object Arguments]",Z="[object Function]",z="[object Object]",tt={};function rt(a,c,o,u,s,i){var f,b=1&c,l=2&c,v=4&c;if(void 0!==f)return f;if(!y(a))return a;var x=m(a);if(x){if(f=function(t){var r=t.length,e=new t.constructor(r);return r&&"string"==typeof t[0]&&W.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(a),!b)return p(a,f)}else{var I=j(a),O=I==Z||"[object GeneratorFunction]"==I;if(A(a))return h(a,b);if(I==z||I==Y||O&&!s){if(f=l||O?{}:g(a),!b)return l?function(r,e){return t(r,L(r),e)}(a,function(r,n){return r&&t(n,e(n),r)}(f,a)):function(r,e){return t(r,n(r),e)}(a,function(e,n){return e&&t(n,r(n),e)}(f,a))}else{if(!tt[I])return s?a:{};f=H(a,I,b)}}i||(i=new d);var U=i.get(a);if(U)return U;i.set(a,f),X(a)?a.forEach((function(t){f.add(rt(t,c,o,t,a,i))})):K(a)&&a.forEach((function(t,r){f.set(r,rt(t,c,o,r,a,i))}));var F=x?void 0:(v?l?Q:w:l?e:r)(a);return P(F||a,(function(t,r){F&&(t=a[r=t]),S(f,r,rt(t,c,o,r,a,i))})),f}function et(t){return"function"==typeof t?t:x}function nt(t,r){return(m(t)?P:D)(t,et(r))}function at(t,r){var e=[];return D(t,(function(t,n,a){r(t,n,a)&&e.push(t)})),e}function ct(t,r){return(m(t)?I:at)(t,G(r))}function ot(t){return null==t?[]:function(t,r){return O(r,(function(r){return t[r]}))}(t,r(t))}function ut(t){return void 0===t}function st(t,r,e,n,a){return a(t,(function(t,a,c){e=n?(n=!1,t):r(e,t,a,c)})),e}function it(t,r,e){var n=m(t)?U:st,a=arguments.length<3;return n(t,G(r),e,a,D)}tt[Y]=tt["[object Array]"]=tt["[object ArrayBuffer]"]=tt["[object DataView]"]=tt["[object Boolean]"]=tt["[object Date]"]=tt["[object Float32Array]"]=tt["[object Float64Array]"]=tt["[object Int8Array]"]=tt["[object Int16Array]"]=tt["[object Int32Array]"]=tt["[object Map]"]=tt["[object Number]"]=tt[z]=tt["[object RegExp]"]=tt["[object Set]"]=tt["[object String]"]=tt["[object Symbol]"]=tt["[object Uint8Array]"]=tt["[object Uint8ClampedArray]"]=tt["[object Uint16Array]"]=tt["[object Uint32Array]"]=!0,tt["[object Error]"]=tt[Z]=tt["[object WeakMap]"]=!1;var ft=F&&1/M(new F([,-0]))[1]==1/0?function(t){return new F(t)}:N;function bt(t,r,e){var n=-1,a=C,c=t.length,o=!0,u=[],s=u;if(c>=200){var i=r?null:ft(t);if(i)return M(i);o=!1,a=B,s=new E}else s=r?[]:u;t:for(;++n<c;){var f=t[n],b=r?r(f):f;if(f=0!==f?f:0,o&&b==b){for(var j=s.length;j--;)if(s[j]===b)continue t;r&&s.push(b),u.push(f)}else a(s,b,e)||(s!==u&&s.push(b),u.push(f))}return u}export{bt as a,rt as b,nt as c,R as d,et as e,ct as f,C as g,k as h,ut as i,Q as j,at as k,N as n,it as r,ot as v};
@@ -0,0 +1 @@
1
+ import{b as n,a as r}from"./_baseEach-BS5yXLYc.js";import{ae as t}from"./index-C_s7yDug.js";function o(n,r,t,o){for(var a=-1,u=null==n?0:n.length;++a<u;){var e=n[a];r(o,e,t(e),n)}return o}function a(r,t,o,a){return n(r,(function(n,r,u){t(a,n,o(n),u)})),a}function u(n,u){return function(e,f){var i=t(e)?o:a,c=u?u():{};return i(e,n,r(f),c)}}export{u as c};