{"version":3,"sources":["../../src/bin/swiper-server"],"names":[],"mappings":"AAAA;;;AACA,OAAO,CAAE,iBAAF,CAAP;;AACA,MAAM,IAAI,GAAG,OAAO,CAAE,MAAF,CAApB;;AAEA,MAAM,KAAK,GAAG,IAAI,CAAC,OAAL,CAAc,OAAO,CAAC,IAAR,CAAa,QAA3B,CAAd;AAEA,MAAM,OAAO,GAAG,KAAK,CAAC,QAAN,CAAgB,UAAhB,CAAhB,C,CACA;;AACA,IAAK,OAAL,EAAe,OAAO,CAAC,GAAR,CAAY,QAAZ,GAAuB,YAAvB;;AAEf,MAAM,IAAI,GAAG,OAAO,CAAE,OAAF,CAAP,CACV,KADU,CACH,cADG,EAEV,OAFU,CAED;AACR,EAAA,IAAI,EAAU;AACZ,IAAA,IAAI,EAAQ,QADA;AAEZ,IAAA,QAAQ,EAAI,mBAFA;AAGZ,IAAA,OAAO,EAAK;AAHA,GADN;AAMR,EAAA,IAAI,EAAU;AACZ,IAAA,IAAI,EAAQ,QADA;AAEZ,IAAA,QAAQ,EAAI,mBAFA;AAGZ,IAAA,OAAO,EAAK,OAAO,GAAG,IAAH,GAAU;AAHjB;AANN,CAFC,EAcV,IAdH;;AAgBA,OAAO,CAAE,IAAF,CAAP,CAAgB,KAAhB,CAAuB,IAAvB","file":"swiper-server","sourcesContent":["#!/usr/bin/env node\nrequire( '@swiper/preload' );\nconst path = require( 'path' );\n\nconst mydir = path.dirname( require.main.filename );\n\nconst is_prod = mydir.endsWith( 'dist/bin' );\n// eslint-disable-next-line no-process-env\nif ( is_prod ) process.env.NODE_ENV = 'production';\n\nconst argv = require( 'yargs' )\n  .usage( '$0 [options]' )\n  .options( {\n    host        : {\n      type      : 'string',\n      describe  : 'Host to listen on',\n      default   : 'localhost',\n    },\n    port        : {\n      type      : 'number',\n      describe  : 'Port to listen on',\n      default   : is_prod ? 3000 : 4000,\n    },\n  } )\n  .argv;\n\nrequire( '..' ).start( argv );\n"]}