"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("d3");function u(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const l=u(i),r={},c={},d=3*60*1e3,s=t=>JSON.parse(JSON.stringify(t)),f=t=>{const n=Date.now(),e=t;if(r[e])return r[e].then(s);if(c[e]&&n-c[e].timestamp<d)return Promise.resolve(s(c[e].data));const o=l.json(t).then(a=>(c[e]={data:a,timestamp:Date.now()},a)).finally(()=>{delete r[e]});return r[e]=o,o.then(s)},p=t=>f(t);exports.loadJSON=p;
