{"version":3,"sources":["jsdelivr-header.js","/npm/@blued-core/elasticsearch-client@0.1.0/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,SAAS,SAAS,GACd,IAAK,IAAI,KAAK,EAAQ,QAAQ,eAAe,KAAI,QAAQ,GAAK,EAAE,GACpE,CACA,IAAI,gBAAmB,MAAQ,KAAK,iBAAoB,SAAU,GAC9D,OAAQ,GAAO,EAAI,WAAc,EAAM,CAAE,QAAW,EACxD,EACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,MAAM,SAAW,gBAAgB,QAAQ,uBACnC,gBAAkB,QAAQ,0BAChC,SAAS,QAAQ,2BACjB,MAAM,4BAA4B,SAAS,QACvC,WAAA,CAAY,GACR,MACM,EAAS,0BADF,KAAK,KAAK,IAAI,IAE3B,MAAO,CACH,SACA,KAAA,GACI,EAAO,OACX,EAER,EAGJ,SAAS,0BAA0B,GAC/B,OAAO,IAAI,gBAAgB,OAAO,CAAE,KAAM,UAAU,KACxD,CAHA,QAAQ,QAAU","file":"/npm/@blued-core/elasticsearch-client@0.1.0/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@blued-core/elasticsearch-client@0.1.0/dist/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\";\nfunction __export(m) {\n    for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst client_1 = __importDefault(require(\"@blued-core/client\"));\nconst elasticsearch_1 = require(\"@elastic/elasticsearch\");\n__export(require(\"@elastic/elasticsearch\"));\nclass ElasticsearchClient extends client_1.default {\n    buildClient(key) {\n        const host = this.conf.get(key);\n        const client = createElasticsearchClient(host);\n        return {\n            client,\n            clean() {\n                client.close();\n            },\n        };\n    }\n}\nexports.default = ElasticsearchClient;\nfunction createElasticsearchClient(host) {\n    return new elasticsearch_1.Client({ node: `http://${host}` });\n}\n"]}