Lines 5979-6019javascript
5979 const mergedDescriptors = {};
5980 for (const def of defs) {
5981 const descriptors = Object.getOwnPropertyDescriptors(def);
5982 Object.assign(mergedDescriptors, descriptors);
5984 return Object.defineProperties({}, mergedDescriptors);
5987 return JSON.stringify(str);
5989function slugify(input) {
5990 return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
5992const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {};
5993function isObject(data$1) {
5994 return typeof data$1 === "object" && data$1 !== null && !Array.isArray(data$1);
5996const allowsEval = /* @__PURE__ */ cached(() => {
5997 if (globalConfig.jitless) return false;
5998 if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) return false;
6001 return true;
LowEval
Package source references a known benign dynamic code generation pattern.
dist/dist-6RmQ5Mfu.jsView on unpkg · L5999 6006function isPlainObject(o) {
6007 if (isObject(o) === false) return false;
6008 const ctor = o.constructor;
6009 if (ctor === void 0) return true;
6010 if (typeof ctor !== "function") return true;
6011 const prot = ctor.prototype;
6012 if (isObject(prot) === false) return false;
6013 if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) return false;
6016function shallowClone(o) {
6017 if (isPlainObject(o)) return { ...o };
6018 if (Array.isArray(o)) return [...o];
6019 if (o instanceof Map) return new Map(o);