1 |
- {"ast":null,"code":"'use strict';\n\nvar $WeakMap = typeof WeakMap === 'function' && WeakMap.prototype ? WeakMap : null;\nvar $WeakSet = typeof WeakSet === 'function' && WeakSet.prototype ? WeakSet : null;\nvar exported;\nif (!$WeakMap) {\n /** @type {import('.')} */\n // eslint-disable-next-line no-unused-vars\n exported = function isWeakMap(x) {\n // `WeakMap` is not present in this environment.\n return false;\n };\n}\nvar $mapHas = $WeakMap ? $WeakMap.prototype.has : null;\nvar $setHas = $WeakSet ? $WeakSet.prototype.has : null;\nif (!exported && !$mapHas) {\n /** @type {import('.')} */\n // eslint-disable-next-line no-unused-vars\n exported = function isWeakMap(x) {\n // `WeakMap` does not have a `has` method\n return false;\n };\n}\n\n/** @type {import('.')} */\nmodule.exports = exported || function isWeakMap(x) {\n if (!x || typeof x !== 'object') {\n return false;\n }\n try {\n $mapHas.call(x, $mapHas);\n if ($setHas) {\n try {\n $setHas.call(x, $setHas);\n } catch (e) {\n return true;\n }\n }\n // @ts-expect-error TS can't figure out that $WeakMap is always truthy here\n return x instanceof $WeakMap; // core-js workaround, pre-v3\n } catch (e) {}\n return false;\n};","map":{"version":3,"names":["$WeakMap","WeakMap","prototype","$WeakSet","WeakSet","exported","isWeakMap","x","$mapHas","has","$setHas","module","exports","call","e"],"sources":["/Users/max_liu/max_liu/company/tools_auto_pt/node_modules/is-weakmap/index.js"],"sourcesContent":["'use strict';\n\nvar $WeakMap = typeof WeakMap === 'function' && WeakMap.prototype ? WeakMap : null;\nvar $WeakSet = typeof WeakSet === 'function' && WeakSet.prototype ? WeakSet : null;\n\nvar exported;\n\nif (!$WeakMap) {\n\t/** @type {import('.')} */\n\t// eslint-disable-next-line no-unused-vars\n\texported = function isWeakMap(x) {\n\t\t// `WeakMap` is not present in this environment.\n\t\treturn false;\n\t};\n}\n\nvar $mapHas = $WeakMap ? $WeakMap.prototype.has : null;\nvar $setHas = $WeakSet ? $WeakSet.prototype.has : null;\nif (!exported && !$mapHas) {\n\t/** @type {import('.')} */\n\t// eslint-disable-next-line no-unused-vars\n\texported = function isWeakMap(x) {\n\t\t// `WeakMap` does not have a `has` method\n\t\treturn false;\n\t};\n}\n\n/** @type {import('.')} */\nmodule.exports = exported || function isWeakMap(x) {\n\tif (!x || typeof x !== 'object') {\n\t\treturn false;\n\t}\n\ttry {\n\t\t$mapHas.call(x, $mapHas);\n\t\tif ($setHas) {\n\t\t\ttry {\n\t\t\t\t$setHas.call(x, $setHas);\n\t\t\t} catch (e) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t// @ts-expect-error TS can't figure out that $WeakMap is always truthy here\n\t\treturn x instanceof $WeakMap; // core-js workaround, pre-v3\n\t} catch (e) {}\n\treturn false;\n};\n"],"mappings":"AAAA,YAAY;;AAEZ,IAAIA,QAAQ,GAAG,OAAOC,OAAO,KAAK,UAAU,IAAIA,OAAO,CAACC,SAAS,GAAGD,OAAO,GAAG,IAAI;AAClF,IAAIE,QAAQ,GAAG,OAAOC,OAAO,KAAK,UAAU,IAAIA,OAAO,CAACF,SAAS,GAAGE,OAAO,GAAG,IAAI;AAElF,IAAIC,QAAQ;AAEZ,IAAI,CAACL,QAAQ,EAAE;EACd;EACA;EACAK,QAAQ,GAAG,SAASC,SAASA,CAACC,CAAC,EAAE;IAChC;IACA,OAAO,KAAK;EACb,CAAC;AACF;AAEA,IAAIC,OAAO,GAAGR,QAAQ,GAAGA,QAAQ,CAACE,SAAS,CAACO,GAAG,GAAG,IAAI;AACtD,IAAIC,OAAO,GAAGP,QAAQ,GAAGA,QAAQ,CAACD,SAAS,CAACO,GAAG,GAAG,IAAI;AACtD,IAAI,CAACJ,QAAQ,IAAI,CAACG,OAAO,EAAE;EAC1B;EACA;EACAH,QAAQ,GAAG,SAASC,SAASA,CAACC,CAAC,EAAE;IAChC;IACA,OAAO,KAAK;EACb,CAAC;AACF;;AAEA;AACAI,MAAM,CAACC,OAAO,GAAGP,QAAQ,IAAI,SAASC,SAASA,CAACC,CAAC,EAAE;EAClD,I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