{ "version": 3, "sources": ["../../../node_modules/bind-decorator/index.js"], "sourcesContent": ["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar constants;\n(function (constants) {\n constants.typeOfFunction = 'function';\n constants.boolTrue = true;\n})(constants || (constants = {}));\nfunction bind(target, propertyKey, descriptor) {\n if (!descriptor || (typeof descriptor.value !== constants.typeOfFunction)) {\n throw new TypeError(\"Only methods can be decorated with @bind. <\" + propertyKey + \"> is not a method!\");\n }\n return {\n configurable: constants.boolTrue,\n get: function () {\n var bound = descriptor.value.bind(this);\n // Credits to https://github.com/andreypopp/autobind-decorator for memoizing the result of bind against a symbol on the instance.\n Object.defineProperty(this, propertyKey, {\n value: bound,\n configurable: constants.boolTrue,\n writable: constants.boolTrue\n });\n return bound;\n }\n };\n}\nexports.bind = bind;\nexports.default = bind;\n"], "mappings": "mEAAA,IAAAA,EAAAC,EAAAC,GAAA,cAAAC,IAAAC,IACA,OAAO,eAAeF,EAAS,aAAc,CAAE,MAAO,EAAK,CAAC,EAC5D,IAAIG,GACH,SAAUA,EAAW,CAClBA,EAAU,eAAiB,WAC3BA,EAAU,SAAW,EACzB,GAAGA,IAAcA,EAAY,CAAC,EAAE,EAChC,SAASC,EAAKC,EAAQC,EAAaC,EAAY,CAC3C,GAAI,CAACA,GAAe,OAAOA,EAAW,QAAUJ,EAAU,eACtD,MAAM,IAAI,UAAU,8CAAgDG,EAAc,oBAAoB,EAE1G,MAAO,CACH,aAAcH,EAAU,SACxB,IAAK,UAAY,CACb,IAAIK,EAAQD,EAAW,MAAM,KAAK,IAAI,EAEtC,cAAO,eAAe,KAAMD,EAAa,CACrC,MAAOE,EACP,aAAcL,EAAU,SACxB,SAAUA,EAAU,QACxB,CAAC,EACMK,CACX,CACJ,CACJ,CAjBSC,EAAAL,EAAA,QAkBTJ,EAAQ,KAAOI,EACfJ,EAAQ,QAAUI", "names": ["require_bind_decorator", "__commonJSMin", "exports", "init_virtual_process_polyfill", "init_buffer", "constants", "bind", "target", "propertyKey", "descriptor", "bound", "__name"] }