import { getCaller as getCaller2 } from "https://esm.town/v/easrng/getCaller";
import { dynamicImport } from "https://esm.town/v/easrng/dynamicImport";
export async function getCaller() {
if (arguments[0])
return;
let asyncLocalStorage;
const { AsyncLocalStorage } = await dynamicImport(
"node:async_hooks",
);
const realGetStore = AsyncLocalStorage.prototype.getStore;
AsyncLocalStorage.prototype.getStore = function (...a) {
asyncLocalStorage = this;
return realGetStore.call(this, ...a);
};
(getCaller2 as any)(true);
AsyncLocalStorage.prototype.getStore = realGetStore;
return asyncLocalStorage.getStore();
}