{"version":3,"sources":["jsdelivr-header.js","/npm/@loopback/example-file-transfer@7.0.10/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAKA,IAAI,GACJ,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,QAAQ,UAAO,EACf,MAAM,QAAU,QAAQ,SAElB,cAAgB,QAAQ,iBAE9B,eAAe,KAAK,EAAU,CAAC,GAC3B,MAAM,EAAM,IAAI,cAAc,sBAAsB,SAC9C,EAAI,aACJ,EAAI,QACV,MAAM,EAAM,EAAI,WAAW,IAE3B,OADA,QAAQ,IAAI,wBAAwB,KAC7B,CACX,CAEA,GAVA,QAAQ,aAAa,QAAQ,iBAAkB,SAS/C,QAAQ,KAAO,KACX,QAAQ,OAAS,OAAQ,CAkBzB,KAhBe,CACX,KAAM,CACF,OAAoC,QAA3B,GAAK,QAAQ,IAAI,YAAyB,IAAP,GAAgB,GAAK,KACjE,KAAM,QAAQ,IAAI,KAMlB,oBAAqB,IACrB,YAAa,CAET,uBAAuB,MAItB,OAAM,IACf,QAAQ,MAAM,gCAAiC,GAC/C,QAAQ,KAAK,EAAE,GAEvB","file":"/npm/@loopback/example-file-transfer@7.0.10/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@loopback/example-file-transfer@7.0.10/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\";\n// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.\n// Node module: @loopback/example-file-transfer\n// This file is licensed under the MIT License.\n// License text available at https://opensource.org/licenses/MIT\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.main = void 0;\nconst tslib_1 = require(\"tslib\");\n/* istanbul ignore file */\nconst application_1 = require(\"./application\");\ntslib_1.__exportStar(require(\"./application\"), exports);\nasync function main(options = {}) {\n    const app = new application_1.FileUploadApplication(options);\n    await app.boot();\n    await app.start();\n    const url = app.restServer.url;\n    console.log(`Server is running at ${url}`);\n    return app;\n}\nexports.main = main;\nif (require.main === module) {\n    // Run the application\n    const config = {\n        rest: {\n            port: +((_a = process.env.PORT) !== null && _a !== void 0 ? _a : 3000),\n            host: process.env.HOST,\n            // The `gracePeriodForClose` provides a graceful close for http/https\n            // servers with keep-alive clients. The default value is `Infinity`\n            // (don't force-close). If you want to immediately destroy all sockets\n            // upon stop, set its value to `0`.\n            // See https://www.npmjs.com/package/stoppable\n            gracePeriodForClose: 5000,\n            openApiSpec: {\n                // useful when used with OpenAPI-to-GraphQL to locate your application\n                setServersFromRequest: true,\n            },\n        },\n    };\n    main(config).catch(err => {\n        console.error('Cannot start the application.', err);\n        process.exit(1);\n    });\n}\n"]}