{"aliases":["es6"],"browsers":{"ie":"7 - *","ie_mob":"10 - *","safari":"*","chrome":"<38","firefox":"<34","ios_saf":"*","opera":"<25","firefox_mob":"<34"},"dependencies":["Object.defineProperty","Array.prototype.forEach","Date.now"],"repo":"https://github.com/webcomponents/webcomponentsjs","license":"https://github.com/webcomponents/webcomponentsjs/blob/master/LICENSE.md","docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet","baseDir":"WeakSet","hasTests":true,"rawSource":"\n// WeakSet\n/**\n * @license\n *\n * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\n * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\n * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\n * Code distributed by Google as part of the polymer project is also\n * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n */\n\n(function(global) {\n\tvar counter = Date.now() % 1e9;\n\n\tvar WeakSet = function WeakSet(data) {\n\t\tthis.name = '__st' + (Math.random() * 1e9 >>> 0) + (counter++ + '__');\n\t\tdata && data.forEach && data.forEach(this.add, this);\n\t};\n\n\tWeakSet.prototype[\"add\"] = function(obj) {\n\t\tvar name = this.name;\n\t\tif (!obj[name]) Object.defineProperty(obj, name, {value: true, writable: true});\n\t\treturn this;\n\t};\n\tWeakSet.prototype[\"delete\"] = function(obj) {\n\t\tif (!obj[this.name]) return false;\n\t\tobj[this.name] = undefined;\n\t\treturn true;\n\t};\n\tWeakSet.prototype[\"has\"] = function(obj) {\n\t\treturn !!obj[this.name];\n\t};\n\n\tglobal.WeakSet = WeakSet;\n})(this);\n","minSource":"!function(t){var e=Date.now()%1e9,n=function(t){this.name=\"__st\"+(1e9*Math.random()>>>0)+(e++ +\"__\"),t&&t.forEach&&t.forEach(this.add,this)};n.prototype.add=function(t){var e=this.name;return t[e]||Object.defineProperty(t,e,{value:!0,writable:!0}),this},n.prototype[\"delete\"]=function(t){return t[this.name]?(t[this.name]=void 0,!0):!1},n.prototype.has=function(t){return!!t[this.name]},t.WeakSet=n}(this);","detectSource":"(function(global) {\n\tif (!(\"WeakSet\" in global)) return false;\n\tvar o = {};\n\tvar ws = new WeakSet([o]);\n\treturn (!!ws.has(o));\n}(this))"}