{"version":3,"sources":["jsdelivr-header.js","/npm/ataraxia@0.12.2/dist/cjs/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aA8CA,IAAI,gBAAmB,MAAQ,KAAK,kBAAqB,OAAO,OAAS,SAAU,EAAG,EAAG,EAAG,QAC7E,IAAP,IAAkB,EAAK,GAC3B,OAAO,eAAe,EAAG,EAAI,CAAE,YAAY,EAAM,IAAK,WAAa,OAAO,EAAE,EAAI,GACnF,EAAI,SAAU,EAAG,EAAG,EAAG,QACT,IAAP,IAAkB,EAAK,GAC3B,EAAE,GAAM,EAAE,EACb,GACG,aAAgB,MAAQ,KAAK,cAAiB,SAAS,EAAG,GAC1D,IAAK,IAAI,KAAK,EAAa,YAAN,GAAoB,OAAO,UAAU,eAAe,KAAK,EAAS,IAAI,gBAAgB,EAAS,EAAG,EAC3H,EACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,QAAQ,iBAAmB,QAAQ,mBAAgB,EACnD,IAAI,qBAAuB,QAAQ,sBACnC,OAAO,eAAe,QAAS,gBAAiB,CAAE,YAAY,EAAM,IAAK,WAAc,OAAO,qBAAqB,aAAe,IAClI,OAAO,eAAe,QAAS,mBAAoB,CAAE,YAAY,EAAM,IAAK,WAAc,OAAO,qBAAqB,gBAAkB,IACxI,aAAa,QAAQ,cAAe,SACpC,aAAa,QAAQ,aAAc,SACnC,aAAa,QAAQ,UAAW,SAChC,aAAa,QAAQ,aAAc,SACnC,aAAa,QAAQ,iBAAkB,SACvC,aAAa,QAAQ,iBAAkB,SACvC,aAAa,QAAQ,kBAAmB,SACxC,aAAa,QAAQ,WAAY,SACjC,aAAa,QAAQ,sBAAuB,SAC5C,aAAa,QAAQ,wBAAyB,SAC9C,aAAa,QAAQ,cAAe,SACpC,aAAa,QAAQ,wBAAyB","file":"/npm/ataraxia@0.12.2/dist/cjs/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/ataraxia@0.12.2/dist/cjs/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\n/* eslint-disable tsdoc/syntax,jsdoc/require-description */\n/**\n * Mesh networking with peer-to-peer messaging for NodeJS and the browser.\n * Ataraxia connects different instances together and allows messages to be passed\n * between these instances. Some instances may act as routers for other instances\n * to create a partially connected mesh network.\n *\n * {@link Network} is the main class used to join a network:\n *\n * ```javascript\n * import { Network, AnonymousAuth } from 'ataraxia';\n * import { TCPTransport, TCPPeerMDNSDiscovery } from 'ataraxia-tcp';\n *\n * // Setup a network with a TCP transport\n * const net = new Network({\n *   name: 'name-of-your-app-or-network',\n *   transports: [\n *     new TCPTransport({\n *       // Discover peers using mDNS\n *       discovery: new TCPPeerMDNSDiscovery(),\n *       // Setup anonymous authentication\n *       authentication: [\n *         new AnonymousAuth()\n *       ]\n *     })\n *   ]\n * });\n *\n * net.onNodeAvailable(node => {\n *   console.log('A new node is available', node);\n * });\n *\n * net.onMessage(msg => {\n *   console.log('A new message was received');\n * });\n *\n * // Join the network\n * await net.join();\n * ```\n *\n * Authentication is provided via {@link AnonymousAuth} or\n * {@link SharedSecretAuth}.\n *\n * @module ataraxia\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n    for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SharedSecretAuth = exports.AnonymousAuth = void 0;\nvar ataraxia_transport_1 = require(\"ataraxia-transport\");\nObject.defineProperty(exports, \"AnonymousAuth\", { enumerable: true, get: function () { return ataraxia_transport_1.AnonymousAuth; } });\nObject.defineProperty(exports, \"SharedSecretAuth\", { enumerable: true, get: function () { return ataraxia_transport_1.SharedSecretAuth; } });\n__exportStar(require(\"./Debugger\"), exports);\n__exportStar(require(\"./Network\"), exports);\n__exportStar(require(\"./Node\"), exports);\n__exportStar(require(\"./Message\"), exports);\n__exportStar(require(\"./MessageData\"), exports);\n__exportStar(require(\"./MessageType\"), exports);\n__exportStar(require(\"./MessageUnion\"), exports);\n__exportStar(require(\"./Group\"), exports);\n__exportStar(require(\"./group/NamedGroup\"), exports);\n__exportStar(require(\"./RequestReplyHelper\"), exports);\n__exportStar(require(\"./Gossiper\"), exports);\n__exportStar(require(\"./state/PerNodeState\"), exports);\n"]}