1 |
- {"ast":null,"code":"var hiddenKeys = require('../internals/hidden-keys');\n\nvar isObject = require('../internals/is-object');\n\nvar has = require('../internals/has');\n\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar uid = require('../internals/uid');\n\nvar FREEZING = require('../internals/freezing');\n\nvar METADATA = uid('meta');\nvar id = 0; // eslint-disable-next-line es/no-object-isextensible -- safe\n\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, {\n value: {\n objectID: 'O' + ++id,\n // object ID\n weakData: {} // weak collections IDs\n\n }\n });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n\n if (!has(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F'; // not necessary to add metadata\n\n if (!create) return 'E'; // add missing metadata\n\n setMetadata(it); // return object ID\n }\n\n return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!has(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true; // not necessary to add metadata\n\n if (!create) return false; // add missing metadata\n\n setMetadata(it); // return the store of weak collections IDs\n }\n\n return it[METADATA].weakData;\n}; // add metadata on freeze-family methods calling\n\n\nvar onFreeze = function (it) {\n if (FREEZING && meta.REQUIRED && isExtensible(it) && !has(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar meta = module.exports = {\n REQUIRED: false,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\nhiddenKeys[METADATA] = true;","map":{"version":3,"sources":["/Users/jane/Documents/Курс Front-end/HW8/myproject/node_modules/core-js-pure/internals/internal-metadata.js"],"names":["hiddenKeys","require","isObject","has","defineProperty","f","uid","FREEZING","METADATA","id","isExtensible","Object","setMetadata","it","value","objectID","weakData","fastKey","create","getWeakData","onFreeze","meta","REQUIRED","module","exports"],"mappings":"AAAA,I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EAAD,CAAX,CANsB,CAOxB;AACC;;AAAC,SAAOA,EAAE,CAACL,QAAD,CAAF,CAAaO,QAApB;AACH,CAZD;;AAcA,IAAII,WAAW,GAAG,UAAUN,EAAV,EAAcK,MAAd,EAAsB;AACtC,MAAI,CAACf,GAAG,CAACU,EAAD,EAAKL,QAAL,CAAR,EAAwB;AACtB;AACA,QAAI,CAACE,YAAY,CAACG,EAAD,CAAjB,EAAuB,OAAO,IAAP,CAFD,CAGtB;;AACA,QAAI,CAACK,MAAL,EAAa,OAAO,KAAP,CAJS,CAKtB;;AACAN,IAAAA,WAAW,CAACC,EAAD,CAAX,CANsB,CAOxB;AACC;;AAAC,SAAOA,EAAE,CAACL,QAAD,CAAF,CAAaQ,QAApB;AACH,CAVD,C,CAYA;;;AACA,IAAII,QAAQ,GAAG,UAAUP,EAAV,EAAc;AAC3B,MAAIN,QAAQ,IAAIc,IAAI,CAACC,QAAjB,IAA6BZ,YAAY,CAACG,EAAD,CAAzC,IAAiD,CAACV,GAAG,CAACU,EAAD,EAAKL,QAAL,CAAzD,EAAyEI,WAAW,CAACC,EAAD,CAAX;AACzE,SAAOA,EAAP;AACD,CAHD;;AAKA,IAAIQ,IAAI,GAAGE,MAAM,CAACC,OAAP,GAAiB;AAC1BF,EAAAA,QAAQ,EAAE,KADgB;AAE1BL,EAAAA,OAAO,EAAEA,OAFiB;AAG1BE,EAAAA,WAAW,EAAEA,WAHa;AAI1BC,EAAAA,QAAQ,EAAEA;AAJgB,CAA5B;AAOApB,UAAU,CAACQ,QAAD,CAAV,GAAuB,IAAvB","sourcesContent":["var hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar has = require('../internals/has');\nvar defineProperty = require('../internals/object-define-property').f;\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar METADATA = uid('meta');\nvar id = 0;\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + ++id, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!has(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && meta.REQUIRED && isExtensible(it) && !has(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar meta = module.exports = {\n REQUIRED: false,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n"]},"metadata":{},"sourceType":"script"}
|