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EAAcI,EAAM,CACzC,IAAK,UAAW,CAAE,OAAON,EAAgBM,CAAI,CAAG,CACjD,CAAC,CACF,CAAC,EAMFR,EAAO,QAAU,CACb,aAAiBE,EAAkBE,EAAe,KAClD,QAAiBD,CACrB,ICrDA,IAAAM,EAAA,GAAAC,EAAAD,EAAA,YAAAE,EAAA,eAAAC,EAAA,YAAAC,EAAA,gBAAAC,EAAA,UAAAC,EAAA,YAAAC,EAAA,WAAAC,EAAA,WAAAC,EAAA,YAAAC,EAAA,iBAAAC,IAAA,IAAAC,EAA0B,OAAwOC,EAAAb,EAAc,QAAnO,GAAM,CAAE,OAAAS,EAAO,OAAAP,EAAO,OAAAM,EAAO,MAAAF,EAAM,QAAAC,EAAQ,WAAAJ,EAAW,aAAAQ,EAAa,YAAAN,EAAY,QAAAK,CAAQ,EAAIE,EAAe,CAAE,QAASE,EAAW,GAAGC,CAAO,EAAIH,EAAgBR,EAASU,IAAc,OAAYA,EAAYC","names":["require_package","__commonJSMin","exports","module","require_version","__commonJSMin","exports","module","require_browser","__commonJSMin","exports","module","_globalThis","NativeWebSocket","websocket_version","W3CWebSocket","uri","protocols","native_instance","prop","build_exports","__export","client","connection","build_default","deprecation","frame","request","router","server","version","w3cwebsocket","__module","__reExport","__default","__rest"],"sourceRoot":"/","sources":["../esmd/npm/websocket@1.0.34/node_modules/.pnpm/websocket@1.0.34/node_modules/websocket/package.json","../esmd/npm/websocket@1.0.34/node_modules/.pnpm/websocket@1.0.34/node_modules/websocket/lib/version.js","../esmd/npm/websocket@1.0.34/node_modules/.pnpm/websocket@1.0.34/node_modules/websocket/lib/browser.js","../esmd/npm/websocket@1.0.34/build.js"],"sourcesContent":["{\n  \"name\": \"websocket\",\n  \"description\": \"Websocket Client \u0026 Server Library implementing the WebSocket protocol as specified in RFC 6455.\",\n  \"keywords\": [\n    \"websocket\",\n    \"websockets\",\n    \"socket\",\n    \"networking\",\n    \"comet\",\n    \"push\",\n    \"RFC-6455\",\n    \"realtime\",\n    \"server\",\n    \"client\"\n  ],\n  \"author\": \"Brian McKelvey \u003ctheturtle32@gmail.com\u003e (https://github.com/theturtle32)\",\n  \"contributors\": [\n    \"Iñaki Baz Castillo \u003cibc@aliax.net\u003e (http://dev.sipdoc.net)\"\n  ],\n  \"version\": \"1.0.34\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/theturtle32/WebSocket-Node.git\"\n  },\n  \"homepage\": \"https://github.com/theturtle32/WebSocket-Node\",\n  \"engines\": {\n    \"node\": \"\u003e=4.0.0\"\n  },\n  \"dependencies\": {\n    \"bufferutil\": \"^4.0.1\",\n    \"debug\": \"^2.2.0\",\n    \"es5-ext\": \"^0.10.50\",\n    \"typedarray-to-buffer\": \"^3.1.5\",\n    \"utf-8-validate\": \"^5.0.2\",\n    \"yaeti\": \"^0.0.6\"\n  },\n  \"devDependencies\": {\n    \"buffer-equal\": \"^1.0.0\",\n    \"gulp\": \"^4.0.2\",\n    \"gulp-jshint\": \"^2.0.4\",\n    \"jshint-stylish\": \"^2.2.1\",\n    \"jshint\": \"^2.0.0\",\n    \"tape\": \"^4.9.1\"\n  },\n  \"config\": {\n    \"verbose\": false\n  },\n  \"scripts\": {\n    \"test\": \"tape test/unit/*.js\",\n    \"gulp\": \"gulp\"\n  },\n  \"main\": \"index\",\n  \"directories\": {\n    \"lib\": \"./lib\"\n  },\n  \"browser\": \"lib/browser.js\",\n  \"license\": \"Apache-2.0\"\n}\n","module.exports = require('../package.json').version;\n","var _globalThis;\nif (typeof globalThis === 'object') {\n\t_globalThis = globalThis;\n} else {\n\ttry {\n\t\t_globalThis = require('es5-ext/global');\n\t} catch (error) {\n\t} finally {\n\t\tif (!_globalThis \u0026\u0026 typeof window !== 'undefined') { _globalThis = window; }\n\t\tif (!_globalThis) { throw new Error('Could not determine global this'); }\n\t}\n}\n\nvar NativeWebSocket = _globalThis.WebSocket || _globalThis.MozWebSocket;\nvar websocket_version = require('./version');\n\n\n/**\n * Expose a W3C WebSocket class with just one or two arguments.\n */\nfunction W3CWebSocket(uri, protocols) {\n\tvar native_instance;\n\n\tif (protocols) {\n\t\tnative_instance = new NativeWebSocket(uri, protocols);\n\t}\n\telse {\n\t\tnative_instance = new NativeWebSocket(uri);\n\t}\n\n\t/**\n\t * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n\t * class). Since it is an Object it will be returned as it is when creating an\n\t * instance of W3CWebSocket via 'new W3CWebSocket()'.\n\t *\n\t * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n\t */\n\treturn native_instance;\n}\nif (NativeWebSocket) {\n\t['CONNECTING', 'OPEN', 'CLOSING', 'CLOSED'].forEach(function(prop) {\n\t\tObject.defineProperty(W3CWebSocket, prop, {\n\t\t\tget: function() { return NativeWebSocket[prop]; }\n\t\t});\n\t});\n}\n\n/**\n * Module exports.\n */\nmodule.exports = {\n    'w3cwebsocket' : NativeWebSocket ? W3CWebSocket : null,\n    'version'      : websocket_version\n};\n","import * as __module from \"websocket\";export const { server,client,router,frame,request,connection,w3cwebsocket,deprecation,version } = __module;const { default: __default, ...__rest } = __module;export default (__default !== undefined ? __default : __rest);export * from \"websocket\";"],"version":3}
