{"version":3,"sources":["jsdelivr-header.js","/npm/botserver@2.4.42/boot.mjs"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;OCJO,OAAQ,YACR,SAAU,cACR,SAAY,uBACd,UAAW,oBAAwB,CAAE,KAAM,QAIlD,QAAQ,IAAI,IACZ,QAAQ,IAAI,IACZ,QAAQ,IAAI,iFACZ,QAAQ,IAAI,iFACZ,QAAQ,IAAI,iFACZ,QAAQ,IAAI,iFACZ,QAAQ,IAAI,iFACZ,QAAQ,OAAO,MAAM,gBAAgB,MAAM,mBAAmB,MAAM,aAAa,sBAAsB,MAAM,aAAa,oBAAoB,QAAQ,QAAQ,QAAQ,IAAK,QAAQ,QAAQ,YAAY,QAAQ,SAE/M,IAAI,IAAM,KACD,IAAI,MAAO,cAAc,QAAQ,IAAK,KAAK,QAAQ,OAAQ,IAAM,OAEtE,UAAY,QAAQ,IAAI,KAAO,QAAQ,MAC3C,IACE,IAAI,IAAM,KACR,OAAO,qBAAqB,MAAM,IAChC,QAAQ,IAAI,MACZ,EAAG,SAAS,KAAI,GAChB,EAEA,YAAc,KACX,GAAG,WAAW,QAWjB,OAVA,QAAQ,IAAI,MACZ,QAAQ,IAAI,+BACZ,KAAK,KAAK,KAAK,UAAW,0BAA0B,CAAC,EAAK,EAAQ,KAC5D,EACF,QAAQ,MAAM,GAGhB,KAAK,IAIT,EAKG,GAAG,WAAW,gBAWjB,eAVA,QAAQ,IAAI,MACZ,QAAQ,IAAI,wEACZ,KAAK,eAAe,CAAC,EAAK,EAAQ,KAC5B,EACF,QAAQ,MAAM,GAGhB,aAAa,IAKnB,CAAE,MAAO,GACP,QAAQ,IAAI,EACd","file":"/npm/botserver@2.4.42/boot.mjs","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/botserver@2.4.42/boot.mjs\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","#!/usr/bin/env node\n\nimport Fs from 'fs';\nimport Path from 'path';\nimport { exec } from 'child_process';\nimport pjson from './package.json' assert { type: 'json' };\n\n// Displays version of Node JS being used at runtime and others attributes.\n\nconsole.log(``);\nconsole.log(``);\nconsole.log(` █████  █████ ██    █ █████ █████   ████  ██      ████   █████ █████  ███ ®  `);\nconsole.log(`██      █     ███   █ █     ██  ██ ██  ██ ██      ██  █ ██   ██  █   █       `);\nconsole.log(`██  ███ ████  █ ██  █ ████  █████  ██████ ██      ████   █   █   █    ██     `);\nconsole.log(`██   ██ █     █  ██ █ █     ██  ██ ██  ██ ██      ██  █ ██   ██  █      █    `);\nconsole.log(` █████  █████ █   ███ █████ ██  ██ ██  ██ ██████  ████   █████   █   ███  3.0`);\nprocess.stdout.write(`   botserver@${pjson.version}, botlib@${pjson.dependencies.botlib}, botbuilder@${pjson.dependencies.botbuilder}, node@${process.version.replace('v', '')}, ${process.platform} ${process.arch} `);\n\nvar now = () => {\n  return new Date().toISOString().replace(/T/, ' ').replace(/\\..+/, '') + ' UTC';\n};\nvar __dirname = process.env.PWD || process.cwd();\ntry {\n  var run = () => {\n    import('./dist/src/app.js').then((gb)=> {\n      console.log(`\\n`);\n      gb.GBServer.run()\n    });\n  };\n  var processDist = () => {\n    if (!Fs.existsSync('dist')) {\n      console.log(`\\n`);\n      console.log(`Generall Bots: Compiling...`);\n      exec(Path.join(__dirname, 'node_modules/.bin/tsc'), (err, stdout, stderr) => {\n        if (err) {\n          console.error(err);\n          return;\n        }\n        run();\n      });\n    } else {\n      run();\n    }\n  };\n\n  // Installing modules if it has not been done yet.\n\n  if (!Fs.existsSync('node_modules')) {\n    console.log(`\\n`);\n    console.log(`Generall Bots: Installing modules for the first time, please wait...`);\n    exec('npm install', (err, stdout, stderr) => {\n      if (err) {\n        console.error(err);\n        return;\n      }\n      processDist();\n    });\n  } else {\n    processDist();\n  }\n} catch (e) {\n  console.log(e);\n}\n"]}