/* eslint-disable */
export var snippet = function (writeKey, load, extra) {
    if (load === void 0) { load = true; }
    if (extra === void 0) { extra = ''; }
    return "\n!(function () {\n  var analytics = (window.analytics = window.analytics || [])\n  if (!analytics.initialize)\n    if (analytics.invoked) window.console && console.error && console.error('Segment snippet included twice.')\n    else {\n      analytics.invoked = !0\n      analytics.methods = [\n        'trackSubmit',\n        'trackClick',\n        'trackLink',\n        'trackForm',\n        'pageview',\n        'identify',\n        'reset',\n        'group',\n        'track',\n        'ready',\n        'alias',\n        'debug',\n        'page',\n        'once',\n        'off',\n        'on',\n        'addSourceMiddleware',\n        'addIntegrationMiddleware',\n        'setAnonymousId',\n        'addDestinationMiddleware',\n      ]\n      analytics.factory = function (e) {\n        return function () {\n          var t = Array.prototype.slice.call(arguments)\n          t.unshift(e)\n          analytics.push(t)\n          return analytics\n        }\n      }\n      for (var e = 0; e < analytics.methods.length; e++) {\n        var key = analytics.methods[e]\n        analytics[key] = analytics.factory(key)\n      }\n      analytics.load = function (key, e) {\n        var t = document.createElement('script')\n        t.type = 'text/javascript'\n        t.async = !0\n        t.src = 'https://cdn.foo.com/analytics.js/v1/' + key + '/analytics.min.js'\n        var n = document.getElementsByTagName('script')[0]\n        n.parentNode.insertBefore(t, n)\n        analytics._loadOptions = e\n      }\n      analytics.SNIPPET_VERSION = '4.13.1'\n      " + (load && "analytics.load('" + writeKey + "')") + "\n      analytics.page()\n      " + extra + "\n    }\n})()\n";
};
//# sourceMappingURL=segment-snippet.js.map