.dotfiles/.config/chromium/Default/Extensions/likgccmbimhjbgkjambclfkhldnlhbnn/24.9.9.0_0/lib/dexie.js.map

8 lines
702 KiB
Plaintext
Raw Normal View History

2024-09-21 14:05:15 -04:00
{
"version": 3,
"sources": ["../../node_modules/dexie/src/globals/global.ts", "../../node_modules/dexie/src/functions/utils.ts", "../../node_modules/dexie/src/helpers/debug.ts", "../../node_modules/dexie/src/errors/errors.js", "../../node_modules/dexie/src/functions/chaining-functions.js", "../../node_modules/dexie/src/helpers/promise.js", "../../node_modules/dexie/src/functions/temp-transaction.ts", "../../node_modules/dexie/src/globals/constants.ts", "../../node_modules/dexie/src/functions/combine.ts", "../../node_modules/dexie/src/dbcore/keyrange.ts", "../../node_modules/dexie/src/functions/workaround-undefined-primkey.ts", "../../node_modules/dexie/src/classes/table/table.ts", "../../node_modules/dexie/src/helpers/Events.js", "../../node_modules/dexie/src/functions/make-class-constructor.ts", "../../node_modules/dexie/src/classes/table/table-constructor.ts", "../../node_modules/dexie/src/classes/collection/collection-helpers.ts", "../../node_modules/dexie/src/functions/cmp.ts", "../../node_modules/dexie/src/classes/collection/collection.ts", "../../node_modules/dexie/src/classes/collection/collection-constructor.ts", "../../node_modules/dexie/src/functions/compare-functions.ts", "../../node_modules/dexie/src/classes/where-clause/where-clause-helpers.ts", "../../node_modules/dexie/src/classes/where-clause/where-clause.ts", "../../node_modules/dexie/src/classes/where-clause/where-clause-constructor.ts", "../../node_modules/dexie/src/functions/event-wrappers.ts", "../../node_modules/dexie/src/globals/global-events.ts", "../../node_modules/dexie/src/classes/transaction/transaction.ts", "../../node_modules/dexie/src/classes/transaction/transaction-constructor.ts", "../../node_modules/dexie/src/helpers/index-spec.ts", "../../node_modules/dexie/src/helpers/table-schema.ts", "../../node_modules/dexie/src/functions/quirks.ts", "../../node_modules/dexie/src/dbcore/get-key-extractor.ts", "../../node_modules/dexie/src/dbcore/dbcore-indexeddb.ts", "../../node_modules/dexie/src/classes/dexie/generate-middleware-stacks.ts", "../../node_modules/dexie/src/classes/version/schema-helpers.ts", "../../node_modules/dexie/src/classes/version/version.ts", "../../node_modules/dexie/src/classes/version/version-constructor.ts", "../../node_modules/dexie/src/helpers/database-enumerator.ts", "../../node_modules/dexie/src/classes/dexie/vip.ts", "../../node_modules/dexie/node_modules/safari-14-idb-fix/dist/index.js", "../../node_modules/dexie/src/classes/dexie/dexie-open.ts", "../../node_modules/dexie/src/helpers/yield-support.ts", "../../node_modules/dexie/src/classes/dexie/transaction-helpers.ts", "../../node_modules/dexie/src/dbcore/virtual-index-middleware.ts", "../../node_modules/dexie/src/functions/get-object-diff.ts", "../../node_modules/dexie/src/dbcore/get-effective-keys.ts", "../../node_modules/dexie/src/hooks/hooks-middleware.ts", "../../node_modules/dexie/src/dbcore/cache-existing-values-middleware.ts", "../../node_modules/dexie/src/helpers/rangeset.ts", "../../node_modules/dexie/src/live-query/observability-middleware.ts", "../../node_modules/dexie/src/classes/dexie/dexie.ts", "../../node_modules/dexie/src/classes/observable/observable.ts", "../../node_modules/dexie/src/live-query/extend-observability-set.ts", "../../node_modules/dexie/src/live-query/live-query.ts", "../../node_modules/dexie/src/classes/dexie/dexie-dom-dependencies.ts", "../../node_modules/dexie/src/classes/dexie/dexie-static-props.ts", "../../node_modules/dexie/src/live-query/propagate-locally.ts", "../../node_modules/dexie/src/live-query/enable-broadcast.ts", "../../node_modules/dexie/src/index.ts", "../../node_modules/.pnpm/tslib@2.3.1/node_modules/tslib/tslib.es6.js", "../../node_modules/dexie-export-import/src/helpers.ts", "../../node_modules/.pnpm/typeson@5.18.2_core-js-bundle@3.34.0_regenerator-runtime@0.13.11/node_modules/typeson/dist/typeson.js", "../../node_modules/.pnpm/typeson-registry@1.0.0-alpha.39/node_modules/typeson-registry/node_modules/typeson/dist/typeson-esm.js", "../../node_modules/.pnpm/typeson-registry@1.0.0-alpha.39/node_modules/typeson-registry/node_modul
"sourcesContent": ["declare var global;\nexport const _global: any =\n typeof globalThis !== 'undefined' ? globalThis :\n typeof self !== 'undefined' ? self :\n typeof window !== 'undefined' ? window :\n global;\n", "import { _global } from \"../globals/global\";\nexport const keys = Object.keys;\nexport const isArray = Array.isArray;\nif (typeof Promise !== 'undefined' && !_global.Promise){\n // In jsdom, this it can be the case that Promise is not put on the global object.\n // If so, we need to patch the global object for the rest of the code to work as expected.\n // Other dexie code expects Promise to be on the global object (like normal browser environments)\n _global.Promise = Promise;\n}\nexport { _global }\n\nexport function extend<T extends object,X extends object>(obj: T, extension: X): T & X {\n if (typeof extension !== 'object') return obj as T & X;\n keys(extension).forEach(function (key) {\n obj[key] = extension[key];\n });\n return obj as T & X;\n}\n\nexport const getProto = Object.getPrototypeOf;\nexport const _hasOwn = {}.hasOwnProperty;\nexport function hasOwn(obj, prop) {\n return _hasOwn.call(obj, prop);\n}\n\nexport function props (proto, extension) {\n if (typeof extension === 'function') extension = extension(getProto(proto));\n (typeof Reflect === \"undefined\" ? keys : Reflect.ownKeys)(extension).forEach(key => {\n setProp(proto, key, extension[key]);\n });\n}\n\nexport const defineProperty = Object.defineProperty;\n\nexport function setProp(obj, prop, functionOrGetSet, options?) {\n defineProperty(obj, prop, extend(functionOrGetSet && hasOwn(functionOrGetSet, \"get\") && typeof functionOrGetSet.get === 'function' ?\n {get: functionOrGetSet.get, set: functionOrGetSet.set, configurable: true} :\n {value: functionOrGetSet, configurable: true, writable: true}, options));\n}\n\nexport function derive(Child) {\n return {\n from: function (Parent) {\n Child.prototype = Object.create(Parent.prototype);\n setProp(Child.prototype, \"constructor\", Child);\n return {\n extend: props.bind(null, Child.prototype)\n };\n }\n };\n}\n\nexport const getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\nexport function getPropertyDescriptor(obj, prop) {\n const pd = getOwnPropertyDescriptor(obj, prop);\n let proto;\n return pd || (proto = getProto(obj)) && getPropertyDescriptor (proto, prop);\n}\n\nconst _slice = [].slice;\nexport function slice(args, start?, end?) {\n return _slice.call(args, start, end);\n}\n\nexport function override(origFunc, overridedFactory) {\n return overridedFactory(origFunc);\n}\n\nexport function assert (b) {\n if (!b) throw new Error(\"Assertion Failed\");\n}\n\nexport function asap(fn) {\n // @ts-ignore\n if (_global.setImmediate) setImmediate(fn); else setTimeout(fn, 0);\n}\n\nexport function getUniqueArray(a) {\n return a.filter((value, index, self) => self.indexOf(value) === index);\n}\n\n/** Generate an object (hash map) based on given array.\n * @param extractor Function taking an array item and its index and returning an array of 2 items ([key, value]) to\n * instert on the resulting object for each item in the array. If this function returns a falsy value, the\n * current item wont affect the resulting object.\n */\nexport function arrayToObject<T,R> (array: T[], extractor: (x:T, idx: number)=>[string, R]): {[name: string]: R} {\n return array.reduce((result, item, i) => {\n var nameAndValue = extractor(item, i);\n if (nameAndValue) result[nameAndValue[0]] = nameAndValue[1];\n return result;\n }, {});\n}\n\nexport function trycatcher(fn, reject) {\n return function () {\n try {\n fn.apply(this, arguments);\n } catch (e) {\n reject(e);\n }\n };\n}\n\nexport function tryCatch(fn: (...args: any[])=>void, onerror, args?) : void {\n try {\n fn.apply(null, args);\n } catch (ex) {\n
"mappings": ";;;AACO,IAAM,UACT,OAAO,eAAe,cAAc,aACpC,OAAO,SAAS,cAAc,OAC9B,OAAO,WAAW,cAAc,SAChC;ACJG,IAAM,OAAO,OAAO;AACpB,IAAM,UAAU,MAAM;AAC7B,IAAI,OAAO,YAAY,eAAe,CAAC,QAAQ,SAAQ;AAInD,UAAQ,UAAU;;SAIN,OAA0C,KAAQ,WAAY;AAC1E,MAAI,OAAO,cAAc;AAAU,WAAO;AAC1C,OAAK,SAAS,EAAE,QAAQ,SAAU,KAAG;AACjC,QAAI,GAAG,IAAI,UAAU,GAAG;GAC3B;AACD,SAAO;AACX;AAEO,IAAM,WAAW,OAAO;AACxB,IAAM,UAAU,CAAA,EAAG;SACV,OAAO,KAAK,MAAI;AAC5B,SAAO,QAAQ,KAAK,KAAK,IAAI;AACjC;SAEgB,MAAO,OAAO,WAAS;AACnC,MAAI,OAAO,cAAc;AAAY,gBAAY,UAAU,SAAS,KA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AAC,CAAC;AAC1B,IAAM,iBAAiB,mBAAmB,IAAI,OAAG,QAAQ,CAAC,CAAC;AACvB,cAAc,oBAAoB,OAAG,CAAC,GAAE,IAAI,CAAC;AAEjF,IAAI,eAAwC;SAC5B,UAAa,KAAM;AAC/B,iBAAe,OAAO,YAAY,eAAe,oBAAI,QAAO;AAC5D,QAAM,KAAK,eAAe,GAAG;AAC7B,iBAAe;AACf,SAAO;AACX;AAEA,SAAS,eAAkB,KAAM;AAC7B,MAAI,CAAC,OAAO,OAAO,QAAQ;AAAU,WAAO;AAC5C,MAAI,KAAK,gBAAgB,aAAa,IAAI,GAAG;AAC7C,MAAI;AAAI,WAAO;AACf,MAAI,QAAQ,GAAG,GAAG;AACd,SAAK,CAAA;AACL,oBAAgB,aAAa,IAAI,KAAK,EAAE;AACxC,aAAS,IAAI,GAAG,IAAI,IAAI,QAAQ,IAAI,GAAG,EAAE,GAAG;AACxC,SAAG,KAAK,e
"names": ["asap", "DexieError", "type", "resolve", "reject", "props", "trans", "Promise", "keys", "i", "args", "Table", "count", "ctx", "Collection", "cmp", "direction", "addRange", "ranges", "WhereClause", "indexedDB", "p", "Transaction", "db", "tables", "keyPath", "compound", "result", "req", "openCursor", "query", "ev", "hasGetAll", "Version", "Dexie", "Debug.debug", "Debug.getErrorWithStack", "safari14Workaround", "primaryKey", "dxTrans", "target", "key", "state", "_Dexie", "Debug.setDebug", "type", "global", "this", "obj", "self", "props", "keys", "iter", "TypesonPromise", "hasOwn", "getProto", "toStringTag", "getByKeyPath", "isArray", "Typeson", "ret", "_ref", "cyclic", "stateObj", "_loop", "key", "_loop2", "i", "possibleTypesonPromise", "val", "newVal", "k", "set", "test", "replace", "revive", "Undefined", "_typeof", "Symbol", "iterator", "constructor", "prototype", "_classCallCheck", "instance", "Constructor", "TypeError", "_defineProperties", "target", "length", "descriptor", "enumerable", "configurable", "writable", "Object", "defineProperty", "_defineProperty", "value", "ownKeys", "object", "enumerableOnly", "getOwnPropertySymbols", "symbols", "filter", "sym", "getOwnPropertyDescriptor", "push", "apply", "_objectSpread2", "arguments", "source", "forEach", "getOwnPropertyDescriptors", "defineProperties", "_slicedToArray", "arr", "_arrayWithHoles", "Array", "_iterableToArrayLimit", "_arr", "_n", "_d", "_e", "_s", "_i", "next", "done", "err", "_unsupportedIterableToArray", "_nonIterableRest", "_toConsumableArray", "_arrayWithoutHoles", "_arrayLikeToArray", "_iterableToArray", "from", "_nonIterableSpread", "o", "minLen", "n", "toString", "call", "slice", "name", "len", "arr2", "f", "p", "Promise", "__typeson__type__", "then", "onFulfilled", "onRejected", "_this", "typesonResolve", "typesonReject", "res", "reject", "resolve", "v", "meth", "promArr", "map", "prom", "toStr", "hasOwn$1", "hasOwnProperty", "getPrototypeOf", "fnToString", "isThenable", "catchCheck", "isObject", "hasConstructorOf", "a", "b", "proto", "Ctor", "isPlainObject", "escapeKeyPathComponent", "keyPathComponent", "unescapeKeyPathComponent", "keyPath", "period", "indexOf", "innerObj", "undefined", "setAtKeyPath", "_await", "direct", "internalStateObjPropsToIgnore", "_async", "args", "e", "nestedPathsFirst", "keypath", "as", "match", "bs", "options", "plainObjectReplacers", "nonplainObjectReplacers", "revivers", "types", "_createClass", "protoProps", "staticProps", "stringify", "replacer", "space", "opts", "stringification", "encapsulated", "encapsulate", "JSON", "stringifySync", "throwOnBadSyncType", "sync", "stringifyAsync", "parse", "text", "reviver", "parseSync", "parseAsync", "specialTypeNames", "returnTypeNames", "rootTypeName", "iterateNone", "checkPromises", "promisesData", "all", "pd", "promResults", "promResult", "_exit", "newPromisesData", "_promisesData$splice2", "splice", "_prData", "parentObj", "detectedType", "encaps", "_encapsulate", "isTypesonPromise", "_invoke", "body", "result", "encaps2", "_result", "that", "refObjs", "refKeys", "promisesDataRoot", "encapsulateObserver", "finish", "typeNames", "values", "getJSONType", "Set", "$types", "$", "_adaptBuiltinStateObjectProperties", "ownKeysObj", "cb", "assign", "vals", "prop", "tmp", "resolvingTypesonPromise", "observerData", "$typeof", "runObserver", "awaitingTypesonPromise", "includes", "Number", "isNaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY", "replaced", "iterateIn", "iterateUnsetNumeric", "refIndex", "cyclicKeypath", "clone", "isPlainObj", "isArr", "ArrayBuffer", "addLength", "kp", "Boolean", "endIterateIn", "end", "endIterateOwn", "vl", "endIterateUnsetNumeric", "plainObject", "replacers", "existing", "concat", "replaceAsync", "replacing", "typeDetected", "encapsulateSync", "encapsulateAsync", "keyPathResolutions", "ignore$Types", "executeReviver", "Error", "reviveAsync", "revivalPromises", "checkUndefined", "retrn", "revivePlainObjects", "plainObjectTypes", "entries", "_ref3", "_ref4", "plain", "sort", "reduce", "reducer", "_ref7", "_revive", "_clone", "_keyPathResolutions
}