"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.unpack = exports.pack = void 0;

function _utils() {
  const data = require("../utils");

  _utils = function () {
    return data;
  };

  return data;
}

const pack = x => {
  return (0, _utils().isString)(x) ? (0, _utils().toBase64)(x) : (0, _utils().toBase64)(x.join('+++'));
};

exports.pack = pack;

const unpack = str => (0, _utils().fromBase64)(str).split('+++');

exports.unpack = unpack;