974.index.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  1. exports.id = 974;
  2. exports.ids = [974];
  3. exports.modules = {
  4. /***/ 62148:
  5. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  6. var readline = __webpack_require__(51058);
  7. var defaultSpinnerString = 0;
  8. var defaultSpinnerDelay = 60;
  9. function defaultOnTick(msg) {
  10. this.clearLine(this.stream);
  11. this.stream.write(msg);
  12. };
  13. var Spinner = function(options){
  14. if(!(this instanceof Spinner)) return new Spinner(options)
  15. if(typeof options === "string"){
  16. options = { text: options };
  17. } else if(!options){
  18. options = {};
  19. }
  20. this.text = options.text || '';
  21. this.setSpinnerString(defaultSpinnerString);
  22. this.setSpinnerDelay(defaultSpinnerDelay);
  23. this.onTick = options.onTick || defaultOnTick;
  24. this.stream = options.stream || process.stdout;
  25. };
  26. Spinner.spinners = __webpack_require__(18138);
  27. Spinner.setDefaultSpinnerString = function(value) {
  28. defaultSpinnerString = value;
  29. return this;
  30. };
  31. Spinner.setDefaultSpinnerDelay = function(value) {
  32. defaultSpinnerDelay = value;
  33. return this;
  34. };
  35. Spinner.prototype.start = function() {
  36. if(this.stream === process.stdout && this.stream.isTTY !== true) {
  37. return this;
  38. }
  39. var current = 0;
  40. var self = this;
  41. var iteration = function() {
  42. var msg = self.text.indexOf('%s') > -1
  43. ? self.text.replace('%s', self.chars[current])
  44. : self.chars[current] + ' ' + self.text;
  45. self.onTick(msg);
  46. current = ++current % self.chars.length;
  47. };
  48. iteration();
  49. this.id = setInterval(iteration, this.delay);
  50. return this;
  51. };
  52. Spinner.prototype.isSpinning = function() {
  53. return this.id !== undefined;
  54. }
  55. Spinner.prototype.setSpinnerDelay = function(n) {
  56. this.delay = n;
  57. return this;
  58. };
  59. Spinner.prototype.setSpinnerString = function(str) {
  60. const map = mapToSpinner(str, this.spinners);
  61. this.chars = Array.isArray(map) ? map : map.split('');
  62. return this;
  63. };
  64. Spinner.prototype.setSpinnerTitle = function(str) {
  65. this.text = str;
  66. return this;
  67. }
  68. Spinner.prototype.stop = function(clear) {
  69. if(this.isSpinning === false) {
  70. return this;
  71. }
  72. clearInterval(this.id);
  73. this.id = undefined;
  74. if (clear) {
  75. this.clearLine(this.stream);
  76. }
  77. return this;
  78. };
  79. Spinner.prototype.clearLine = function(stream) {
  80. readline.clearLine(stream, 0);
  81. readline.cursorTo(stream, 0);
  82. return this;
  83. }
  84. // Helpers
  85. function isInt(value) {
  86. return (typeof value==='number' && (value%1)===0);
  87. }
  88. function mapToSpinner(value, spinners) {
  89. // Not an integer, return as strng
  90. if (!isInt(value)) {
  91. return value + '';
  92. }
  93. var length = Spinner.spinners.length;
  94. // Check if index is within bounds
  95. value = (value >= length) ? 0 : value;
  96. // If negative, count from the end
  97. value = (value < 0) ? length + value : value;
  98. return Spinner.spinners[value];
  99. }
  100. exports.Spinner = Spinner;
  101. /***/ }),
  102. /***/ 41595:
  103. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  104. "use strict";
  105. const fs = __webpack_require__(35747);
  106. let isDocker;
  107. function hasDockerEnv() {
  108. try {
  109. fs.statSync('/.dockerenv');
  110. return true;
  111. } catch (_) {
  112. return false;
  113. }
  114. }
  115. function hasDockerCGroup() {
  116. try {
  117. return fs.readFileSync('/proc/self/cgroup', 'utf8').includes('docker');
  118. } catch (_) {
  119. return false;
  120. }
  121. }
  122. module.exports = () => {
  123. if (isDocker === undefined) {
  124. isDocker = hasDockerEnv() || hasDockerCGroup();
  125. }
  126. return isDocker;
  127. };
  128. /***/ }),
  129. /***/ 82818:
  130. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  131. "use strict";
  132. const os = __webpack_require__(12087);
  133. const fs = __webpack_require__(35747);
  134. const isDocker = __webpack_require__(41595);
  135. const isWsl = () => {
  136. if (process.platform !== 'linux') {
  137. return false;
  138. }
  139. if (os.release().toLowerCase().includes('microsoft')) {
  140. if (isDocker()) {
  141. return false;
  142. }
  143. return true;
  144. }
  145. try {
  146. return fs.readFileSync('/proc/version', 'utf8').toLowerCase().includes('microsoft') ?
  147. !isDocker() : false;
  148. } catch (_) {
  149. return false;
  150. }
  151. };
  152. if (process.env.__IS_WSL_TEST__) {
  153. module.exports = isWsl;
  154. } else {
  155. module.exports = isWsl();
  156. }
  157. /***/ }),
  158. /***/ 78318:
  159. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  160. "use strict";
  161. const {promisify} = __webpack_require__(31669);
  162. const path = __webpack_require__(85622);
  163. const childProcess = __webpack_require__(63129);
  164. const fs = __webpack_require__(35747);
  165. const isWsl = __webpack_require__(82818);
  166. const isDocker = __webpack_require__(41595);
  167. const pAccess = promisify(fs.access);
  168. const pReadFile = promisify(fs.readFile);
  169. // Path to included `xdg-open`.
  170. const localXdgOpenPath = path.join(__dirname, 'xdg-open');
  171. /**
  172. Get the mount point for fixed drives in WSL.
  173. @inner
  174. @returns {string} The mount point.
  175. */
  176. const getWslDrivesMountPoint = (() => {
  177. // Default value for "root" param
  178. // according to https://docs.microsoft.com/en-us/windows/wsl/wsl-config
  179. const defaultMountPoint = '/mnt/';
  180. let mountPoint;
  181. return async function () {
  182. if (mountPoint) {
  183. // Return memoized mount point value
  184. return mountPoint;
  185. }
  186. const configFilePath = '/etc/wsl.conf';
  187. let isConfigFileExists = false;
  188. try {
  189. await pAccess(configFilePath, fs.constants.F_OK);
  190. isConfigFileExists = true;
  191. } catch (_) {}
  192. if (!isConfigFileExists) {
  193. return defaultMountPoint;
  194. }
  195. const configContent = await pReadFile(configFilePath, {encoding: 'utf8'});
  196. const configMountPoint = /root\s*=\s*(.*)/g.exec(configContent);
  197. if (!configMountPoint) {
  198. return defaultMountPoint;
  199. }
  200. mountPoint = configMountPoint[1].trim();
  201. mountPoint = mountPoint.endsWith('/') ? mountPoint : mountPoint + '/';
  202. return mountPoint;
  203. };
  204. })();
  205. module.exports = async (target, options) => {
  206. if (typeof target !== 'string') {
  207. throw new TypeError('Expected a `target`');
  208. }
  209. options = {
  210. wait: false,
  211. background: false,
  212. allowNonzeroExitCode: false,
  213. ...options
  214. };
  215. let command;
  216. let {app} = options;
  217. let appArguments = [];
  218. const cliArguments = [];
  219. const childProcessOptions = {};
  220. if (Array.isArray(app)) {
  221. appArguments = app.slice(1);
  222. app = app[0];
  223. }
  224. if (process.platform === 'darwin') {
  225. command = 'open';
  226. if (options.wait) {
  227. cliArguments.push('--wait-apps');
  228. }
  229. if (options.background) {
  230. cliArguments.push('--background');
  231. }
  232. if (app) {
  233. cliArguments.push('-a', app);
  234. }
  235. } else if (process.platform === 'win32' || (isWsl && !isDocker())) {
  236. const mountPoint = await getWslDrivesMountPoint();
  237. command = isWsl ?
  238. `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` :
  239. `${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
  240. cliArguments.push(
  241. '-NoProfile',
  242. '-NonInteractive',
  243. '–ExecutionPolicy',
  244. 'Bypass',
  245. '-EncodedCommand'
  246. );
  247. if (!isWsl) {
  248. childProcessOptions.windowsVerbatimArguments = true;
  249. }
  250. const encodedArguments = ['Start'];
  251. if (options.wait) {
  252. encodedArguments.push('-Wait');
  253. }
  254. if (app) {
  255. // Double quote with double quotes to ensure the inner quotes are passed through.
  256. // Inner quotes are delimited for PowerShell interpretation with backticks.
  257. encodedArguments.push(`"\`"${app}\`""`, '-ArgumentList');
  258. appArguments.unshift(target);
  259. } else {
  260. encodedArguments.push(`"${target}"`);
  261. }
  262. if (appArguments.length > 0) {
  263. appArguments = appArguments.map(arg => `"\`"${arg}\`""`);
  264. encodedArguments.push(appArguments.join(','));
  265. }
  266. // Using Base64-encoded command, accepted by PowerShell, to allow special characters.
  267. target = Buffer.from(encodedArguments.join(' '), 'utf16le').toString('base64');
  268. } else {
  269. if (app) {
  270. command = app;
  271. } else {
  272. // When bundled by Webpack, there's no actual package file path and no local `xdg-open`.
  273. const isBundled = !__dirname || __dirname === '/';
  274. // Check if local `xdg-open` exists and is executable.
  275. let exeLocalXdgOpen = false;
  276. try {
  277. await pAccess(localXdgOpenPath, fs.constants.X_OK);
  278. exeLocalXdgOpen = true;
  279. } catch (_) {}
  280. const useSystemXdgOpen = process.versions.electron ||
  281. process.platform === 'android' || isBundled || !exeLocalXdgOpen;
  282. command = useSystemXdgOpen ? 'xdg-open' : localXdgOpenPath;
  283. }
  284. if (appArguments.length > 0) {
  285. cliArguments.push(...appArguments);
  286. }
  287. if (!options.wait) {
  288. // `xdg-open` will block the process unless stdio is ignored
  289. // and it's detached from the parent even if it's unref'd.
  290. childProcessOptions.stdio = 'ignore';
  291. childProcessOptions.detached = true;
  292. }
  293. }
  294. cliArguments.push(target);
  295. if (process.platform === 'darwin' && appArguments.length > 0) {
  296. cliArguments.push('--args', ...appArguments);
  297. }
  298. const subprocess = childProcess.spawn(command, cliArguments, childProcessOptions);
  299. if (options.wait) {
  300. return new Promise((resolve, reject) => {
  301. subprocess.once('error', reject);
  302. subprocess.once('close', exitCode => {
  303. if (options.allowNonzeroExitCode && exitCode > 0) {
  304. reject(new Error(`Exited with code ${exitCode}`));
  305. return;
  306. }
  307. resolve(subprocess);
  308. });
  309. });
  310. }
  311. subprocess.unref();
  312. return subprocess;
  313. };
  314. /***/ }),
  315. /***/ 27974:
  316. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  317. "use strict";
  318. Object.defineProperty(exports, "__esModule", ({ value: true }));
  319. const open = __webpack_require__(78318);
  320. const uuid_1 = __webpack_require__(42277);
  321. const Debug = __webpack_require__(15158);
  322. const cli_spinner_1 = __webpack_require__(62148);
  323. const snyk = __webpack_require__(9146);
  324. const is_authed_1 = __webpack_require__(71771);
  325. const is_ci_1 = __webpack_require__(10090);
  326. const is_docker_1 = __webpack_require__(14953);
  327. const args_1 = __webpack_require__(94765);
  328. const config_1 = __webpack_require__(25425);
  329. const request_1 = __webpack_require__(52050);
  330. const errors_1 = __webpack_require__(55191);
  331. const errors_2 = __webpack_require__(55191);
  332. const token_expired_error_1 = __webpack_require__(79578);
  333. const misconfigured_auth_in_ci_error_1 = __webpack_require__(27747);
  334. const query_strings_1 = __webpack_require__(36479);
  335. const apiUrl = new URL(config_1.default.API);
  336. // Ensure user gets redirected to the login page
  337. if (apiUrl.host.startsWith('api.')) {
  338. apiUrl.host = apiUrl.host.replace(/^api\./, 'app.');
  339. }
  340. const debug = Debug('snyk-auth');
  341. let attemptsLeft = 0;
  342. function resetAttempts() {
  343. attemptsLeft = is_docker_1.isDocker() ? 60 : 3 * 60;
  344. }
  345. async function webAuth() {
  346. const token = uuid_1.v4(); // generate a random key
  347. apiUrl.pathname = '/login';
  348. apiUrl.searchParams.append('token', token);
  349. let urlStr = apiUrl.toString();
  350. // It's not optimal, but I have to parse args again here. Alternative is reworking everything about how we parse args
  351. const args = [args_1.args(process.argv).options];
  352. const utmParams = query_strings_1.getQueryParamsAsString(args);
  353. if (utmParams) {
  354. urlStr += '&' + utmParams;
  355. }
  356. // suppress this message in CI
  357. if (!is_ci_1.isCI()) {
  358. console.log(browserAuthPrompt(is_docker_1.isDocker(), urlStr));
  359. }
  360. else {
  361. return Promise.reject(misconfigured_auth_in_ci_error_1.MisconfiguredAuthInCI());
  362. }
  363. const spinner = new cli_spinner_1.Spinner('Waiting...');
  364. spinner.setSpinnerString('|/-\\');
  365. const ipFamily = await getIpFamily();
  366. try {
  367. spinner.start();
  368. if (!is_docker_1.isDocker()) {
  369. await setTimeout(() => {
  370. open(urlStr);
  371. }, 0);
  372. }
  373. return await testAuthComplete(token, ipFamily);
  374. }
  375. finally {
  376. spinner.stop(true);
  377. }
  378. }
  379. async function testAuthComplete(token, ipFamily) {
  380. const payload = {
  381. body: {
  382. token,
  383. },
  384. url: config_1.default.API + '/verify/callback',
  385. json: true,
  386. method: 'post',
  387. };
  388. if (ipFamily) {
  389. payload.family = ipFamily;
  390. }
  391. return new Promise((resolve, reject) => {
  392. debug(payload);
  393. request_1.makeRequest(payload, (error, res, body) => {
  394. debug(error, (res || {}).statusCode, body);
  395. if (error) {
  396. return reject(error);
  397. }
  398. if (res.statusCode !== 200) {
  399. return reject(errorForFailedAuthAttempt(res, body));
  400. }
  401. // we have success
  402. if (body.api) {
  403. return resolve({
  404. res,
  405. body,
  406. });
  407. }
  408. // we need to wait and poll again in a moment
  409. setTimeout(() => {
  410. attemptsLeft--;
  411. if (attemptsLeft > 0) {
  412. return resolve(testAuthComplete(token, ipFamily));
  413. }
  414. reject(token_expired_error_1.TokenExpiredError());
  415. }, 1000);
  416. });
  417. });
  418. }
  419. async function auth(apiToken) {
  420. let promise;
  421. resetAttempts();
  422. if (apiToken) {
  423. // user is manually setting the API token on the CLI - let's trust them
  424. promise = is_authed_1.verifyAPI(apiToken);
  425. }
  426. else {
  427. promise = webAuth();
  428. }
  429. return promise.then((data) => {
  430. const res = data.res;
  431. const body = res.body;
  432. debug(body);
  433. if (res.statusCode === 200 || res.statusCode === 201) {
  434. snyk.config.set('api', body.api);
  435. return ('\nYour account has been authenticated. Snyk is now ready to ' +
  436. 'be used.\n');
  437. }
  438. throw errorForFailedAuthAttempt(res, body);
  439. });
  440. }
  441. exports.default = auth;
  442. /**
  443. * Resolve an appropriate error for a failed attempt to authenticate
  444. *
  445. * @param res The response from the API
  446. * @param body The body of the failed authentication request
  447. */
  448. function errorForFailedAuthAttempt(res, body) {
  449. if (res.statusCode === 401 || res.statusCode === 403) {
  450. return errors_2.AuthFailedError(body.userMessage, res.statusCode);
  451. }
  452. else {
  453. const userMessage = body && body.userMessage;
  454. const error = new errors_1.CustomError(userMessage || 'Auth request failed');
  455. if (userMessage) {
  456. error.userMessage = userMessage;
  457. }
  458. error.code = res.statusCode;
  459. return error;
  460. }
  461. }
  462. async function getIpFamily() {
  463. const family = 6;
  464. try {
  465. // Dispatch a FORCED IPv6 request to test client's ISP and network capability
  466. await request_1.makeRequest({
  467. url: config_1.default.API + '/verify/callback',
  468. family,
  469. method: 'post',
  470. });
  471. return family;
  472. }
  473. catch (e) {
  474. return undefined;
  475. }
  476. }
  477. function browserAuthPrompt(isDocker, urlStr) {
  478. if (isDocker) {
  479. return ('\nTo authenticate your account, open the below URL in your browser.\n' +
  480. 'After your authentication is complete, return to this prompt to ' +
  481. 'start using Snyk.\n\n' +
  482. urlStr +
  483. '\n');
  484. }
  485. else {
  486. return ('\nNow redirecting you to our auth page, go ahead and log in,\n' +
  487. "and once the auth is complete, return to this prompt and you'll\n" +
  488. "be ready to start using snyk.\n\nIf you can't wait use this url:\n" +
  489. urlStr +
  490. '\n');
  491. }
  492. }
  493. /***/ }),
  494. /***/ 71771:
  495. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  496. "use strict";
  497. Object.defineProperty(exports, "__esModule", ({ value: true }));
  498. exports.verifyAPI = exports.isAuthed = void 0;
  499. const snyk = __webpack_require__(9146);
  500. const config_1 = __webpack_require__(25425);
  501. const request_1 = __webpack_require__(52050);
  502. function isAuthed() {
  503. const token = snyk.config.get('api');
  504. return verifyAPI(token).then((res) => {
  505. return res.body.ok;
  506. });
  507. }
  508. exports.isAuthed = isAuthed;
  509. function verifyAPI(api) {
  510. const payload = {
  511. body: {
  512. api,
  513. },
  514. method: 'POST',
  515. url: config_1.default.API + '/verify/token',
  516. json: true,
  517. };
  518. return new Promise((resolve, reject) => {
  519. request_1.makeRequest(payload, (error, res, body) => {
  520. if (error) {
  521. return reject(error);
  522. }
  523. resolve({
  524. res,
  525. body,
  526. });
  527. });
  528. });
  529. }
  530. exports.verifyAPI = verifyAPI;
  531. /***/ }),
  532. /***/ 27747:
  533. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  534. "use strict";
  535. Object.defineProperty(exports, "__esModule", ({ value: true }));
  536. exports.MisconfiguredAuthInCI = void 0;
  537. const custom_error_1 = __webpack_require__(17188);
  538. function MisconfiguredAuthInCI() {
  539. const errorMsg = 'Snyk is missing auth token in order to run inside CI. You must include ' +
  540. 'your API token as an environment value: `SNYK_TOKEN=12345678`';
  541. const error = new custom_error_1.CustomError(errorMsg);
  542. error.code = 401;
  543. error.strCode = 'noAuthInCI';
  544. error.userMessage = errorMsg;
  545. return error;
  546. }
  547. exports.MisconfiguredAuthInCI = MisconfiguredAuthInCI;
  548. /***/ }),
  549. /***/ 79578:
  550. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  551. "use strict";
  552. Object.defineProperty(exports, "__esModule", ({ value: true }));
  553. exports.TokenExpiredError = void 0;
  554. const custom_error_1 = __webpack_require__(17188);
  555. function TokenExpiredError() {
  556. const errorMsg = 'Sorry, but your authentication token has now' +
  557. ' expired.\nPlease try to authenticate again.';
  558. const error = new custom_error_1.CustomError(errorMsg);
  559. error.code = 401;
  560. error.strCode = 'AUTH_TIMEOUT';
  561. error.userMessage = errorMsg;
  562. return error;
  563. }
  564. exports.TokenExpiredError = TokenExpiredError;
  565. /***/ }),
  566. /***/ 14953:
  567. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  568. "use strict";
  569. Object.defineProperty(exports, "__esModule", ({ value: true }));
  570. exports.isDocker = void 0;
  571. const fs = __webpack_require__(35747);
  572. function isDocker() {
  573. return hasDockerEnv() || hasDockerCGroup();
  574. }
  575. exports.isDocker = isDocker;
  576. function hasDockerEnv() {
  577. try {
  578. fs.statSync('/.dockerenv');
  579. return true;
  580. }
  581. catch (_) {
  582. return false;
  583. }
  584. }
  585. function hasDockerCGroup() {
  586. try {
  587. return fs.readFileSync('/proc/self/cgroup', 'utf8').includes('docker');
  588. }
  589. catch (_) {
  590. return false;
  591. }
  592. }
  593. /***/ }),
  594. /***/ 36479:
  595. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  596. "use strict";
  597. Object.defineProperty(exports, "__esModule", ({ value: true }));
  598. exports.getQueryParamsAsString = void 0;
  599. const url = __webpack_require__(78835);
  600. const os = __webpack_require__(12087);
  601. const is_docker_1 = __webpack_require__(14953);
  602. const sources_1 = __webpack_require__(71653);
  603. function getQueryParamsAsString(args) {
  604. var _a;
  605. const utm_source = process.env.SNYK_UTM_SOURCE || 'cli';
  606. const utm_medium = process.env.SNYK_UTM_MEDIUM || 'cli';
  607. const utm_campaign = process.env.SNYK_UTM_CAMPAIGN || sources_1.getIntegrationName(args) || 'cli';
  608. const utm_campaign_content = process.env.SNYK_UTM_CAMPAIGN_CONTENT || sources_1.getIntegrationVersion(args);
  609. const osType = (_a = os.type()) === null || _a === void 0 ? void 0 : _a.toLowerCase();
  610. const docker = is_docker_1.isDocker().toString();
  611. const queryParams = new url.URLSearchParams({
  612. utm_medium,
  613. utm_source,
  614. utm_campaign,
  615. utm_campaign_content,
  616. os: osType,
  617. docker,
  618. });
  619. // It may not be set and URLSearchParams won't filter out undefined values
  620. if (!utm_campaign_content) {
  621. queryParams.delete('utm_campaign_content');
  622. }
  623. return queryParams.toString();
  624. }
  625. exports.getQueryParamsAsString = getQueryParamsAsString;
  626. /***/ }),
  627. /***/ 18138:
  628. /***/ ((module) => {
  629. "use strict";
  630. module.exports = JSON.parse('["|/-\\\\","⠂-–—–-","◐◓◑◒","◴◷◶◵","◰◳◲◱","▖▘▝▗","■□▪▫","▌▀▐▄","▉▊▋▌▍▎▏▎▍▌▋▊▉","▁▃▄▅▆▇█▇▆▅▄▃","←↖↑↗→↘↓↙","┤┘┴└├┌┬┐","◢◣◤◥",".oO°Oo.",".oO@*",["🌍","🌎","🌏"],"◡◡ ⊙⊙ ◠◠","☱☲☴","⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏","⠋⠙⠚⠞⠖⠦⠴⠲⠳⠓","⠄⠆⠇⠋⠙⠸⠰⠠⠰⠸⠙⠋⠇⠆","⠋⠙⠚⠒⠂⠂⠒⠲⠴⠦⠖⠒⠐⠐⠒⠓⠋","⠁⠉⠙⠚⠒⠂⠂⠒⠲⠴⠤⠄⠄⠤⠴⠲⠒⠂⠂⠒⠚⠙⠉⠁","⠈⠉⠋⠓⠒⠐⠐⠒⠖⠦⠤⠠⠠⠤⠦⠖⠒⠐⠐⠒⠓⠋⠉⠈","⠁⠁⠉⠙⠚⠒⠂⠂⠒⠲⠴⠤⠄⠄⠤⠠⠠⠤⠦⠖⠒⠐⠐⠒⠓⠋⠉⠈⠈","⢄⢂⢁⡁⡈⡐⡠","⢹⢺⢼⣸⣇⡧⡗⡏","⣾⣽⣻⢿⡿⣟⣯⣷","⠁⠂⠄⡀⢀⠠⠐⠈",["🌑","🌒","🌓","🌔","🌕","🌝","🌖","🌗","🌘","🌚"],["🕛","🕐","🕑","🕒","🕓","🕔","🕕","🕖","🕗","🕘","🕙","🕚"]]');
  631. /***/ })
  632. };
  633. ;
  634. //# sourceMappingURL=974.index.js.map