splunk-events
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,3 +0,3 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("http"),require("https"),require("url"),require("tty"),require("util"),require("fs"),require("net"),require("assert"),require("zlib"),require("buffer")):"function"==typeof define&&define.amd?define("splunk-events",["http","https","url","tty","util","fs","net","assert","zlib","buffer"],t):"object"==typeof exports?exports["splunk-events"]=t(require("http"),require("https"),require("url"),require("tty"),require("util"),require("fs"),require("net"),require("assert"),require("zlib"),require("buffer")):e["splunk-events"]=t(e.http,e.https,e.url,e.tty,e.util,e.fs,e.net,e.assert,e.zlib,e.buffer)}(this,function(e,t,r,n,o,i,s,a,u,c){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=r(1),u=n(a),c=r(13),f=n(c),p=r(116),l=n(p),d=r(119),h=n(d),v=function(){function e(){o(this,e)}return s(e,[{key:"config",value:function(e){this.events=[],this.pendingEvents=[],this.isSendingEvents=!1,this.endpoint=e.endpoint,this.token=e.token,this.account=e.account,this.injectAditionalInfo=void 0!==e.injectAditionalInfo&&e.injectAditionalInfo,this.autoFlush=void 0===e.autoFlush||e.autoFlush,this.autoRetryFlush=void 0===e.autoRetryFlush||e.autoRetryFlush,this.source="splunkeventsjs",this.path=void 0!==e.path?e.path:"/services/collector/event",this.debug=void 0!==e.debug&&e.debug,this.debounceTime=void 0!==e.debounceTime?e.debounceTime:2e3,this.debounceMaxWait=void 0!==e.debounceMaxWait?e.debounceMaxWait:5e3,this.debouncedFlush=(0,u["default"])(this.flush,this.debounceTime,{},!1,this.debounceMaxWait),this.axiosInstance=h["default"].create({baseURL:""+this.endpoint,headers:{Authorization:"Splunk "+this.token},responseType:"json"})}},{key:"logEvent",value:function(e,t,r,n,o,i){this.validateEvent(i);var s=t+","+r+","+n+","+o+" ";s+=this.parseEventData(i),this.injectAditionalInfo&&(s+=this.getAdditionalInfo());var a={sourcetype:this.source,host:e,event:s};this.events.push(a),this.autoFlush&&this.debouncedFlush()}},{key:"parseEventData",value:function(e){var t="";for(var r in e)if(e.hasOwnProperty(r))switch(i(e[r])){case"string":t+=r+'="'+e[r].replace(/\"/g,"")+'" ';break;case"boolean":case"number":t+=r+"="+e[r]+" ";break;default:throw"Event property must be string, number or boolean"}return t}},{key:"validateEvent",value:function(e){if(null===e)throw"Event must not be null";if(void 0===e)throw"Event must not be undefined";if("object"!==("undefined"==typeof e?"undefined":i(e)))throw"Event must be a string"}},{key:"getAdditionalInfo",value:function(){if("undefined"==typeof navigator||"undefined"==typeof window)return"";var e=window.screen?window.screen:{},t=window.location?window.location:{};return'additional_info="'+navigator.userAgent.replace(/\,/g,";")+","+((navigator.browserLanguage||navigator.language)+",")+(navigator.platform+","+(e.availWidth||"-")+","+(e.availHeight||"-")+","+t.pathname+",")+(t.protocol.replace(":","")+","+(t.hash||"-")+'"')}},{key:"flush",value:function(){var e=this;if(this.isSendingEvents)return void this.debouncedFlush();this.validateConfig(),this.pendingEvents=(0,f["default"])(this.events),this.events=[],this.isSendingEvents=!0,this.debug&&console.log("sending "+this.pendingEvents.length+" events to splunk");var t=this.formatEventsForSplunkBatch(this.pendingEvents);this.axiosInstance.post(this.path,t).then(function(t){e.debug&&console.log(e.pendingEvents.length+" events successfuly sent to splunk"),e.pendingEvents=[],e.isSendingEvents=!1})["catch"](function(t){e.events=(0,l["default"])(e.events,e.pendingEvents),e.pendingEvents=[],e.isSendingEvents=!1,e.autoRetryFlush?(e.debug&&console.warn("Error sending events to splunk. Retrying in 5 seconds.",t),e.debouncedFlush()):e.debug&&console.warn("Error sending events to splunk.",t)})}},{key:"formatEventsForSplunkBatch",value:function(e){for(var t="",r=0;r<e.length;r++)t+="\n"+JSON.stringify(e[r])+"\n";return t}},{key:"validateConfig",value:function(){if(null===this.token)throw"Token must not be null";if(void 0===this.token)throw"Token must not be undefined";if(null===this.endpoint)throw"endpoint must not be null";if(void 0===this.endpoint)throw"endpoint must not be undefined"}}]),e}();t["default"]=v,e.exports=t["default"]},function(e,t,r){function n(e,t,r){function n(t){var r=b,n=g;return b=g=void 0,A=t,j=e.apply(n,r)}function f(e){return A=e,w=setTimeout(d,t),E?n(e):j}function p(e){var r=e-_,n=e-A,o=t-r;return k?c(o,x-n):o}function l(e){var r=e-_,n=e-A;return void 0===_||r>=t||r<0||k&&n>=x}function d(){var e=i();return l(e)?h(e):void(w=setTimeout(d,p(e)))}function h(e){return w=void 0,O&&b?n(e):(b=g=void 0,j)}function v(){void 0!==w&&clearTimeout(w),A=0,b=_=g=w=void 0}function m(){return void 0===w?j:h(i())}function y(){var e=i(),r=l(e);if(b=arguments,g=this,_=e,r){if(void 0===w)return f(_);if(k)return w=setTimeout(d,t),n(_)}return void 0===w&&(w=setTimeout(d,t)),j}var b,g,x,j,w,_,A=0,E=!1,k=!1,O=!0;if("function"!=typeof e)throw new TypeError(a);return t=s(t)||0,o(r)&&(E=!!r.leading,k="maxWait"in r,x=k?u(s(r.maxWait)||0,t):x,O="trailing"in r?!!r.trailing:O),y.cancel=v,y.flush=m,y}var o=r(2),i=r(3),s=r(6),a="Expected a function",u=Math.max,c=Math.min;e.exports=n},function(e,t){function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=r},function(e,t,r){var n=r(4),o=function(){return n.Date.now()};e.exports=o},function(e,t,r){var n=r(5),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},function(e,t){var r="object"==typeof global&&global&&global.Object===Object&&global;e.exports=r},function(e,t,r){function n(e){if("number"==typeof e)return e;if(i(e))return s;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var r=c.test(e);return r||f.test(e)?p(e.slice(2),r?2:8):u.test(e)?s:+e}var o=r(2),i=r(7),s=NaN,a=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;e.exports=n},function(e,t,r){function n(e){return"symbol"==typeof e||i(e)&&o(e)==s}var o=r(8),i=r(12),s="[object Symbol]";e.exports=n},function(e,t,r){function n(e){return null==e?void 0===e?u:a:(e=Object(e),c&&c in e?i(e):s(e))}var o=r(9),i=r(10),s=r(11),a="[object Null]",u="[object Undefined]",c=o?o.toStringTag:void 0;e.exports=n},function(e,t,r){var n=r(4),o=n.Symbol;e.exports=o},function(e,t,r){function n(e){var t=s.call(e,u),r=e[u];try{e[u]=void 0;var n=!0}catch(o){}var i=a.call(e);return n&&(t?e[u]=r:delete e[u]),i}var o=r(9),i=Object.prototype,s=i.hasOwnProperty,a=i.toString,u=o?o.toStringTag:void 0;e.exports=n},function(e,t){function r(e){return o.call(e)}var n=Object.prototype,o=n.toString;e.exports=r},function(e,t){function r(e){return null!=e&&"object"==typeof e}e.exports=r},function(e,t,r){function n(e){return o(e,i)}var o=r(14),i=4;e.exports=n},function(e,t,r){function n(e,t,r,O,S,C){var R,z=t&_,U=t&A,F=t&E;if(r&&(R=S?r(e,O,S,C):r(e)),void 0!==R)return R;if(!j(e))return e;var B=g(e);if(B){if(R=m(e),!z)return f(e,R)}else{var D=v(e),I=D==T||D==q;if(x(e))return c(e,z);if(D==P||D==k||I&&!S){if(R=U||I?{}:b(e),!z)return U?l(e,u(R,e)):p(e,a(R,e))}else{if(!Y[D])return S?e:{};R=y(e,D,n,z)}}C||(C=new o);var N=C.get(e);if(N)return N;C.set(e,R);var M=F?U?h:d:U?keysIn:w,L=B?void 0:M(e);return i(L||e,function(o,i){L&&(i=o,o=e[i]),s(R,i,n(o,t,r,i,e,C))}),R}var o=r(15),i=r(52),s=r(53),a=r(56),u=r(78),c=r(82),f=r(83),p=r(84),l=r(87),d=r(91),h=r(93),v=r(94),m=r(99),y=r(100),b=r(114),g=r(63),x=r(64),j=r(2),w=r(58),_=1,A=2,E=4,k="[object Arguments]",O="[object Array]",S="[object Boolean]",C="[object Date]",R="[object Error]",T="[object Function]",q="[object GeneratorFunction]",z="[object Map]",U="[object Number]",P="[object Object]",F="[object RegExp]",B="[object Set]",D="[object String]",I="[object Symbol]",N="[object WeakMap]",M="[object ArrayBuffer]",L="[object DataView]",$="[object Float32Array]",W="[object Float64Array]",G="[object Int8Array]",H="[object Int16Array]",V="[object Int32Array]",J="[object Uint8Array]",X="[object Uint8ClampedArray]",Z="[object Uint16Array]",K="[object Uint32Array]",Y={};Y[k]=Y[O]=Y[M]=Y[L]=Y[S]=Y[C]=Y[$]=Y[W]=Y[G]=Y[H]=Y[V]=Y[z]=Y[U]=Y[P]=Y[F]=Y[B]=Y[D]=Y[I]=Y[J]=Y[X]=Y[Z]=Y[K]=!0,Y[R]=Y[T]=Y[N]=!1,e.exports=n},function(e,t,r){function n(e){var t=this.__data__=new o(e);this.size=t.size}var o=r(16),i=r(24),s=r(25),a=r(26),u=r(27),c=r(28);n.prototype.clear=i,n.prototype["delete"]=s,n.prototype.get=a,n.prototype.has=u,n.prototype.set=c,e.exports=n},function(e,t,r){function n(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var o=r(17),i=r(18),s=r(21),a=r(22),u=r(23);n.prototype.clear=o,n.prototype["delete"]=i,n.prototype.get=s,n.prototype.has=a,n.prototype.set=u,e.exports=n},function(e,t){function r(){this.__data__=[],this.size=0}e.exports=r},function(e,t,r){function n(e){var t=this.__data__,r=o(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():s.call(t,r,1),--this.size,!0}var o=r(19),i=Array.prototype,s=i.splice;e.exports=n},function(e,t,r){function n(e,t){for(var r=e.length;r--;)if(o(e[r][0],t))return r;return-1}var o=r(20);e.exports=n},function(e,t){function r(e,t){return e===t||e!==e&&t!==t}e.exports=r},function(e,t,r){function n(e){var t=this.__data__,r=o(t,e);return r<0?void 0:t[r][1]}var o=r(19);e.exports=n},function(e,t,r){function n(e){return o(this.__data__,e)>-1}var o=r(19);e.exports=n},function(e,t,r){function n(e,t){var r=this.__data__,n=o(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var o=r(19);e.exports=n},function(e,t,r){function n(){this.__data__=new o,this.size=0}var o=r(16);e.exports=n},function(e,t){function r(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}e.exports=r},function(e,t){function r(e){return this.__data__.get(e)}e.exports=r},function(e,t){function r(e){return this.__data__.has(e)}e.exports=r},function(e,t,r){function n(e,t){var r=this.__data__;if(r instanceof o){var n=r.__data__;if(!i||n.length<a-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new s(n)}return r.set(e,t),this.size=r.size,this}var o=r(16),i=r(29),s=r(37),a=200;e.exports=n},function(e,t,r){var n=r(30),o=r(4),i=n(o,"Map");e.exports=i},function(e,t,r){function n(e,t){var r=i(e,t);return o(r)?r:void 0}var o=r(31),i=r(36);e.exports=n},function(e,t,r){function n(e){if(!s(e)||i(e))return!1;var t=o(e)?h:c;return t.test(a(e))}var o=r(32),i=r(33),s=r(2),a=r(35),u=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,f=Function.prototype,p=Object.prototype,l=f.toString,d=p.hasOwnProperty,h=RegExp("^"+l.call(d).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=n},function(e,t,r){function n(e){if(!i(e))return!1;var t=o(e);return t==a||t==u||t==s||t==c}var o=r(8),i=r(2),s="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";e.exports=n},function(e,t,r){function n(e){return!!i&&i in e}var o=r(34),i=function(){var e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=n},function(e,t,r){var n=r(4),o=n["__core-js_shared__"];e.exports=o},function(e,t){function r(e){if(null!=e){try{return o.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var n=Function.prototype,o=n.toString;e.exports=r},function(e,t){function r(e,t){return null==e?void 0:e[t]}e.exports=r},function(e,t,r){function n(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var o=r(38),i=r(46),s=r(49),a=r(50),u=r(51);n.prototype.clear=o,n.prototype["delete"]=i,n.prototype.get=s,n.prototype.has=a,n.prototype.set=u,e.exports=n},function(e,t,r){function n(){this.size=0,this.__data__={hash:new o,map:new(s||i),string:new o}}var o=r(39),i=r(16),s=r(29);e.exports=n},function(e,t,r){function n(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var o=r(40),i=r(42),s=r(43),a=r(44),u=r(45);n.prototype.clear=o,n.prototype["delete"]=i,n.prototype.get=s,n.prototype.has=a,n.prototype.set=u,e.exports=n},function(e,t,r){function n(){this.__data__=o?o(null):{},this.size=0}var o=r(41);e.exports=n},function(e,t,r){var n=r(30),o=n(Object,"create");e.exports=o},function(e,t){function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=r},function(e,t,r){function n(e){var t=this.__data__;if(o){var r=t[e];return r===i?void 0:r}return a.call(t,e)?t[e]:void 0}var o=r(41),i="__lodash_hash_undefined__",s=Object.prototype,a=s.hasOwnProperty;e.exports=n},function(e,t,r){function n(e){var t=this.__data__;return o?void 0!==t[e]:s.call(t,e)}var o=r(41),i=Object.prototype,s=i.hasOwnProperty;e.exports=n},function(e,t,r){function n(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=o&&void 0===t?i:t,this}var o=r(41),i="__lodash_hash_undefined__";e.exports=n},function(e,t,r){function n(e){var t=o(this,e)["delete"](e);return this.size-=t?1:0,t}var o=r(47);e.exports=n},function(e,t,r){function n(e,t){var r=e.__data__;return o(t)?r["string"==typeof t?"string":"hash"]:r.map}var o=r(48);e.exports=n},function(e,t){function r(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=r},function(e,t,r){function n(e){return o(this,e).get(e)}var o=r(47);e.exports=n},function(e,t,r){function n(e){return o(this,e).has(e)}var o=r(47);e.exports=n},function(e,t,r){function n(e,t){var r=o(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var o=r(47);e.exports=n},function(e,t){function r(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}e.exports=r},function(e,t,r){function n(e,t,r){var n=e[t];a.call(e,t)&&i(n,r)&&(void 0!==r||t in e)||o(e,t,r)}var o=r(54),i=r(20),s=Object.prototype,a=s.hasOwnProperty;e.exports=n},function(e,t,r){function n(e,t,r){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var o=r(55);e.exports=n},function(e,t,r){var n=r(30),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},function(e,t,r){function n(e,t){return e&&o(t,i(t),e)}var o=r(57),i=r(58);e.exports=n},function(e,t,r){function n(e,t,r,n){var s=!r;r||(r={});for(var a=-1,u=t.length;++a<u;){var c=t[a],f=n?n(r[c],e[c],c,r,e):void 0;void 0===f&&(f=e[c]),s?i(r,c,f):o(r,c,f)}return r}var o=r(53),i=r(54);e.exports=n},function(e,t,r){function n(e){return s(e)?o(e):i(e)}var o=r(59),i=r(73),s=r(77);e.exports=n},function(e,t,r){function n(e,t){var r=s(e),n=!r&&i(e),f=!r&&!n&&a(e),l=!r&&!n&&!f&&c(e),d=r||n||f||l,h=d?o(e.length,String):[],v=h.length;for(var m in e)!t&&!p.call(e,m)||d&&("length"==m||f&&("offset"==m||"parent"==m)||l&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||u(m,v))||h.push(m);return h}var o=r(60),i=r(61),s=r(63),a=r(64),u=r(67),c=r(68),f=Object.prototype,p=f.hasOwnProperty;e.exports=n},function(e,t){function r(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}e.exports=r},function(e,t,r){var n=r(62),o=r(12),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return o(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=u},function(e,t,r){function n(e){return i(e)&&o(e)==s}var o=r(8),i=r(12),s="[object Arguments]";e.exports=n},function(e,t){var r=Array.isArray;e.exports=r},function(e,t,r){(function(e){var n=r(4),o=r(66),i="object"==typeof t&&t&&!t.nodeType&&t,s=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=s&&s.exports===i,u=a?n.Buffer:void 0,c=u?u.isBuffer:void 0,f=c||o;e.exports=f}).call(t,r(65)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t){function r(){return!1}e.exports=r},function(e,t){function r(e,t){return t=null==t?n:t,!!t&&("number"==typeof e||o.test(e))&&e>-1&&e%1==0&&e<t}var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=r},function(e,t,r){var n=r(69),o=r(71),i=r(72),s=i&&i.isTypedArray,a=s?o(s):n;e.exports=a},function(e,t,r){function n(e){return s(e)&&i(e.length)&&!!T[o(e)]}var o=r(8),i=r(70),s=r(12),a="[object Arguments]",u="[object Array]",c="[object Boolean]",f="[object Date]",p="[object Error]",l="[object Function]",d="[object Map]",h="[object Number]",v="[object Object]",m="[object RegExp]",y="[object Set]",b="[object String]",g="[object WeakMap]",x="[object ArrayBuffer]",j="[object DataView]",w="[object Float32Array]",_="[object Float64Array]",A="[object Int8Array]",E="[object Int16Array]",k="[object Int32Array]",O="[object Uint8Array]",S="[object Uint8ClampedArray]",C="[object Uint16Array]",R="[object Uint32Array]",T={};T[w]=T[_]=T[A]=T[E]=T[k]=T[O]=T[S]=T[C]=T[R]=!0,T[a]=T[u]=T[x]=T[c]=T[j]=T[f]=T[p]=T[l]=T[d]=T[h]=T[v]=T[m]=T[y]=T[b]=T[g]=!1,e.exports=n},function(e,t){function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}var n=9007199254740991;e.exports=r},function(e,t){function r(e){return function(t){return e(t)}}e.exports=r},function(e,t,r){(function(e){var n=r(5),o="object"==typeof t&&t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===o,a=s&&n.process,u=function(){try{return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u}).call(t,r(65)(e))},function(e,t,r){function n(e){if(!o(e))return i(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}var o=r(74),i=r(75),s=Object.prototype,a=s.hasOwnProperty;e.exports=n},function(e,t){function r(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||n;return e===r}var n=Object.prototype;e.exports=r},function(e,t,r){var n=r(76),o=n(Object.keys,Object);e.exports=o},function(e,t){function r(e,t){return function(r){return e(t(r))}}e.exports=r},function(e,t,r){function n(e){return null!=e&&i(e.length)&&!o(e)}var o=r(32),i=r(70);e.exports=n},function(e,t,r){function n(e,t){return e&&o(t,i(t),e)}var o=r(57),i=r(79);e.exports=n},function(e,t,r){function n(e){return s(e)?o(e,!0):i(e)}var o=r(59),i=r(80),s=r(77);e.exports=n},function(e,t,r){function n(e){if(!o(e))return s(e);var t=i(e),r=[];for(var n in e)("constructor"!=n||!t&&u.call(e,n))&&r.push(n);return r}var o=r(2),i=r(74),s=r(81),a=Object.prototype,u=a.hasOwnProperty;e.exports=n},function(e,t){function r(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}e.exports=r},function(e,t,r){(function(e){function n(e,t){if(t)return e.slice();var r=e.length,n=c?c(r):new e.constructor(r);return e.copy(n),n}var o=r(4),i="object"==typeof t&&t&&!t.nodeType&&t,s=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=s&&s.exports===i,u=a?o.Buffer:void 0,c=u?u.allocUnsafe:void 0;e.exports=n}).call(t,r(65)(e))},function(e,t){function r(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}e.exports=r},function(e,t,r){function n(e,t){return o(e,i(e),t)}var o=r(57),i=r(85);e.exports=n},function(e,t,r){var n=r(76),o=r(86),i=Object.getOwnPropertySymbols,s=i?n(i,Object):o;e.exports=s},function(e,t){function r(){return[]}e.exports=r},function(e,t,r){function n(e,t){return o(e,i(e),t)}var o=r(57),i=r(88);e.exports=n},function(e,t,r){var n=r(89),o=r(90),i=r(85),s=r(86),a=Object.getOwnPropertySymbols,u=a?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:s;e.exports=u},function(e,t){function r(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}e.exports=r},function(e,t,r){var n=r(76),o=n(Object.getPrototypeOf,Object);e.exports=o},function(e,t,r){function n(e){return o(e,s,i)}var o=r(92),i=r(85),s=r(58);e.exports=n},function(e,t,r){function n(e,t,r){var n=t(e);return i(e)?n:o(n,r(e))}var o=r(89),i=r(63);e.exports=n},function(e,t,r){function n(e){return o(e,s,i)}var o=r(92),i=r(88),s=r(79);e.exports=n},function(e,t,r){var n=r(95),o=r(29),i=r(96),s=r(97),a=r(98),u=r(8),c=r(35),f="[object Map]",p="[object Object]",l="[object Promise]",d="[object Set]",h="[object WeakMap]",v="[object DataView]",m=c(n),y=c(o),b=c(i),g=c(s),x=c(a),j=u;(n&&j(new n(new ArrayBuffer(1)))!=v||o&&j(new o)!=f||i&&j(i.resolve())!=l||s&&j(new s)!=d||a&&j(new a)!=h)&&(j=function(e){var t=u(e),r=t==p?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case m:return v;case y:return f;case b:return l;case g:return d;case x:return h}return t}),e.exports=j},function(e,t,r){var n=r(30),o=r(4),i=n(o,"DataView");e.exports=i},function(e,t,r){var n=r(30),o=r(4),i=n(o,"Promise");e.exports=i},function(e,t,r){var n=r(30),o=r(4),i=n(o,"Set");e.exports=i},function(e,t,r){var n=r(30),o=r(4),i=n(o,"WeakMap");e.exports=i},function(e,t){function r(e){var t=e.length,r=e.constructor(t);return t&&"string"==typeof e[0]&&o.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var n=Object.prototype,o=n.hasOwnProperty;e.exports=r},function(e,t,r){function n(e,t,r,n){var R=e.constructor;switch(t){case g:return o(e);case p:case l:return new R((+e));case x:return i(e,n);case j:case w:case _:case A:case E:case k:case O:case S:case C:return f(e,n);case d:return s(e,n,r);case h:case y:return new R(e);case v:return a(e);case m:return u(e,n,r);case b:return c(e)}}var o=r(101),i=r(103),s=r(104),a=r(108),u=r(109),c=r(112),f=r(113),p="[object Boolean]",l="[object Date]",d="[object Map]",h="[object Number]",v="[object RegExp]",m="[object Set]",y="[object String]",b="[object Symbol]",g="[object ArrayBuffer]",x="[object DataView]",j="[object Float32Array]",w="[object Float64Array]",_="[object Int8Array]",A="[object Int16Array]",E="[object Int32Array]",k="[object Uint8Array]",O="[object Uint8ClampedArray]",S="[object Uint16Array]",C="[object Uint32Array]";e.exports=n},function(e,t,r){function n(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}var o=r(102);e.exports=n},function(e,t,r){var n=r(4),o=n.Uint8Array;e.exports=o},function(e,t,r){function n(e,t){var r=t?o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var o=r(101);e.exports=n},function(e,t,r){function n(e,t,r){var n=t?r(s(e),a):s(e);return i(n,o,new e.constructor)}var o=r(105),i=r(106),s=r(107),a=1;e.exports=n},function(e,t){function r(e,t){return e.set(t[0],t[1]),e}e.exports=r},function(e,t){function r(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}e.exports=r},function(e,t){function r(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}e.exports=r},function(e,t){function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}var n=/\w*$/;e.exports=r},function(e,t,r){function n(e,t,r){var n=t?r(s(e),a):s(e);return i(n,o,new e.constructor)}var o=r(110),i=r(106),s=r(111),a=1;e.exports=n},function(e,t){function r(e,t){return e.add(t),e}e.exports=r},function(e,t){function r(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}e.exports=r},function(e,t,r){function n(e){return s?Object(s.call(e)):{}}var o=r(9),i=o?o.prototype:void 0,s=i?i.valueOf:void 0;e.exports=n},function(e,t,r){function n(e,t){var r=t?o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var o=r(101);e.exports=n},function(e,t,r){function n(e){return"function"!=typeof e.constructor||s(e)?{}:o(i(e))}var o=r(115),i=r(90),s=r(74);e.exports=n},function(e,t,r){var n=r(2),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},function(e,t,r){function n(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return o(a(r)?s(r):[r],i(t,1))}var o=r(89),i=r(117),s=r(83),a=r(63);e.exports=n},function(e,t,r){function n(e,t,r,s,a){var u=-1,c=e.length;for(r||(r=i),a||(a=[]);++u<c;){var f=e[u];t>0&&r(f)?t>1?n(f,t-1,r,s,a):o(a,f):s||(a[a.length]=f)}return a}var o=r(89),i=r(118);e.exports=n},function(e,t,r){function n(e){return s(e)||i(e)||!!(a&&e&&e[a])}var o=r(9),i=r(61),s=r(63),a=o?o.isConcatSpreadable:void 0;e.exports=n},function(e,t,r){e.exports=r(120)},function(e,t,r){"use strict";function n(e){var t=new s(e),r=i(s.prototype.request,t);return o.extend(r,s.prototype,t),o.extend(r,t),r}var o=r(121),i=r(122),s=r(123),a=e.exports=n();a.Axios=s,a.create=function(e){return n(e)},a.all=function(e){return Promise.all(e)},a.spread=r(160)},function(e,t,r){"use strict";function n(e){return"[object Array]"===_.call(e)}function o(e){return"[object ArrayBuffer]"===_.call(e)}function i(e){return"undefined"!=typeof FormData&&e instanceof FormData}function s(e){var t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function a(e){return"string"==typeof e}function u(e){return"number"==typeof e}function c(e){return"undefined"==typeof e}function f(e){return null!==e&&"object"==typeof e}function p(e){return"[object Date]"===_.call(e)}function l(e){return"[object File]"===_.call(e)}function d(e){return"[object Blob]"===_.call(e)}function h(e){return"[object Function]"===_.call(e)}function v(e){return f(e)&&h(e.pipe)}function m(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function y(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function b(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function g(e,t){if(null!==e&&"undefined"!=typeof e)if("object"==typeof e||n(e)||(e=[e]),n(e))for(var r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(null,e[i],i,e)}function x(){function e(e,r){"object"==typeof t[r]&&"object"==typeof e?t[r]=x(t[r],e):t[r]=e}for(var t={},r=0,n=arguments.length;r<n;r++)g(arguments[r],e);return t}function j(e,t,r){return g(t,function(t,n){r&&"function"==typeof t?e[n]=w(t,r):e[n]=t}),e}var w=r(122),_=Object.prototype.toString;e.exports={isArray:n,isArrayBuffer:o,isFormData:i,isArrayBufferView:s,isString:a,isNumber:u,isObject:f,isUndefined:c,isDate:p,isFile:l,isBlob:d,isFunction:h,isStream:v,isURLSearchParams:m,isStandardBrowserEnv:b,forEach:g,merge:x,extend:j,trim:y}},function(e,t){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},function(e,t,r){"use strict";function n(e){this.defaults=i.merge(o,e),this.interceptors={request:new s,response:new s}}var o=r(124),i=r(121),s=r(126),a=r(127),u=r(158),c=r(159);n.prototype.request=function(e){"string"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(o,this.defaults,{method:"get"},e),e.baseURL&&!u(e.url)&&(e.url=c(e.baseURL,e.url));var t=[a,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},i.forEach(["delete","get","head"],function(e){n.prototype[e]=function(t,r){return this.request(i.merge(r||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){n.prototype[e]=function(t,r,n){return this.request(i.merge(n||{},{method:e,url:t,data:r}))}}),e.exports=n},function(e,t,r){"use strict";function n(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var o=r(121),i=r(125),s=/^\)\]\}',?\n/,a={"Content-Type":"application/x-www-form-urlencoded"};e.exports={transformRequest:[function(e,t){return i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(n(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)?(n(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e){e=e.replace(s,"");try{e=JSON.parse(e)}catch(t){}}return e}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:o.merge(a),post:o.merge(a),put:o.merge(a)},timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}}},function(e,t,r){"use strict";var n=r(121);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},function(e,t,r){"use strict";function n(){this.handlers=[]}var o=r(121);n.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},n.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},n.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=n},function(e,t,r){"use strict";var n=r(121),o=r(128);e.exports=function(e){e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t;return"function"==typeof e.adapter?t=e.adapter:"undefined"!=typeof XMLHttpRequest?t=r(129):"undefined"!=typeof process&&(t=r(138)),Promise.resolve(e).then(t).then(function(t){return t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse)),Promise.reject(t)})}},function(e,t,r){"use strict";var n=r(121);e.exports=function(e,t,r){return n.forEach(r,function(r){e=r(e,t)}),e}},function(e,t,r){"use strict";var n=r(121),o=r(130),i=r(133),s=r(134),a=r(135),u=r(131),c="undefined"!=typeof window&&window.btoa||r(136);e.exports=function(e){return new Promise(function(t,f){var p=e.data,l=e.headers;n.isFormData(p)&&delete l["Content-Type"];var d=new XMLHttpRequest,h="onreadystatechange",v=!1;if("test"===process.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||a(e.url)||(d=new window.XDomainRequest,h="onload",v=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var m=e.auth.username||"",y=e.auth.password||"";l.Authorization="Basic "+c(m+":"+y)}if(d.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[h]=function(){if(d&&(4===d.readyState||v)&&0!==d.status){var r="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,n=e.responseType&&"text"!==e.responseType?d.response:d.responseText,i={data:n,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:r,config:e,request:d};o(t,f,i),d=null}},d.onerror=function(){f(u("Network Error",e)),d=null},d.ontimeout=function(){f(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED")),d=null},n.isStandardBrowserEnv()){var b=r(137),g=e.withCredentials||a(e.url)?b.read(e.xsrfCookieName):void 0;g&&(l[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&n.forEach(l,function(e,t){"undefined"==typeof p&&"content-type"===t.toLowerCase()?delete l[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(x){if("json"!==d.responseType)throw x}"function"==typeof e.progress&&("post"===e.method||"put"===e.method?d.upload.addEventListener("progress",e.progress):"get"===e.method&&d.addEventListener("progress",e.progress)),void 0===p&&(p=null),d.send(p)})}},function(e,t,r){"use strict";var n=r(131);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r)):e(r); | ||
}},function(e,t,r){"use strict";var n=r(132);e.exports=function(e,t,r,o){var i=new Error(e);return n(i,t,r,o)}},function(e,t){"use strict";e.exports=function(e,t,r,n){return e.config=t,r&&(e.code=r),e.response=n,e}},function(e,t,r){"use strict";function n(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=r(121);e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(o.isURLSearchParams(t))i=t.toString();else{var s=[];o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)&&(t+="[]"),o.isArray(e)||(e=[e]),o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),s.push(n(t)+"="+n(e))}))}),i=s.join("&")}return i&&(e+=(e.indexOf("?")===-1?"?":"&")+i),e}},function(e,t,r){"use strict";var n=r(121);e.exports=function(e){var t,r,o,i={};return e?(n.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t&&(i[t]=i[t]?i[t]+", "+r:r)}),i):i}},function(e,t,r){"use strict";var n=r(121);e.exports=n.isStandardBrowserEnv()?function(){function e(e){var t=e;return r&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,r=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(r){var o=n.isString(r)?e(r):r;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t){"use strict";function r(){this.message="String contains an invalid character"}function n(e){for(var t,n,i=String(e),s="",a=0,u=o;i.charAt(0|a)||(u="=",a%1);s+=u.charAt(63&t>>8-a%1*8)){if(n=i.charCodeAt(a+=.75),n>255)throw new r;t=t<<8|n}return s}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=n},function(e,t,r){"use strict";var n=r(121);e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,r,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(i)&&a.push("domain="+i),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,r){"use strict";var n=r(121),o=r(130),i=r(133),s=r(139),a=r(140),u=r(141).http,c=r(141).https,f=r(143),p=r(155),l=r(156),d=r(157).Buffer,h=r(131),v=r(132);e.exports=function(e){return new Promise(function(t,r){var m,y=e.data,b=e.headers,g=!1;if(b["User-Agent"]||b["user-agent"]||(b["User-Agent"]="axios/"+l.version),y&&!n.isStream(y)){if(n.isArrayBuffer(y))y=new d(new Uint8Array(y));else{if(!n.isString(y))return r(h("Data after transformation must be a string, an ArrayBuffer, or a Stream",e));y=new d(y,"utf-8")}b["Content-Length"]=y.length}var x=void 0;if(e.auth){var j=e.auth.username||"",w=e.auth.password||"";x=j+":"+w}var _=f.parse(e.url);if(!x&&_.auth){var A=_.auth.split(":"),E=A[0]||"",k=A[1]||"";x=E+":"+k}var O={hostname:_.hostname,port:_.port,path:i(_.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method,headers:b,agent:e.agent,auth:x};e.proxy&&(O.host=e.proxy.host,O.port=e.proxy.port,O.path=_.protocol+"//"+_.hostname+O.path);var S;0===e.maxRedirects?S="https:"===_.protocol?a:s:(e.maxRedirects&&(O.maxRedirects=e.maxRedirects),S="https:"===_.protocol?c:u);var C=S.request(O,function(n){if(!g){clearTimeout(m),m=null;var i=n;switch(n.headers["content-encoding"]){case"gzip":case"compress":case"deflate":i=i.pipe(p.createUnzip()),delete n.headers["content-encoding"]}var s={status:n.statusCode,statusText:n.statusMessage,headers:n.headers,config:e,request:C};if("stream"===e.responseType)s.data=i,o(t,r,s);else{var a=[];i.on("data",function(t){a.push(t),e.maxContentLength>-1&&d.concat(a).length>e.maxContentLength&&r(h("maxContentLength size of "+e.maxContentLength+" exceeded",e))}),i.on("error",function(t){g||r(v(t,e))}),i.on("end",function(){var n=d.concat(a);"arraybuffer"!==e.responseType&&(n=n.toString("utf8")),s.data=n,o(t,r,s)})}}});C.on("error",function(t){g||r(v(t,e))}),e.timeout&&!m&&(m=setTimeout(function(){C.abort(),r(h("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED")),g=!0},e.timeout)),n.isStream(y)?y.pipe(C):C.end(y)})}},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t,r){e.exports=r(142)({http:r(139),https:r(140)})},function(e,t,r){"use strict";function n(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function o(e){return e.statusCode>=300&&e.statusCode<=399&&"location"in e.headers}function i(e){for(var t=0,r=f.length;t<r;++t)e[f[t]]=null}var s=r(143),a=r(144)("follow-redirects"),u=r(153),c=r(154);e.exports=function(e){function t(e){function t(f){if(f){var d=s.format(e);if(l.unshift(d),!o(f))return f.fetchedUrls=l,e.userCallback(f);c(f);var h=s.resolve(d,f.headers.location);a("redirecting to",h),i(e),n(e,s.parse(h))}if(l.length>e.maxRedirects){var v=new Error("Max redirects exceeded.");return u(v)}e.nativeProtocol=p[e.protocol],e.defaultRequest=r;var m=(e.makeRequest||r)(e,t,f);return f&&m.on("error",u),m}function r(e,t,r){r&&(e.method="GET");var n=e.nativeProtocol.request(e,t);return r&&n.end(),n}function u(e){f.emit("error",e)}var f,l=[];return f=t()}function r(e,r){var n=e+":",o=function(){};o.prototype=p[n]=r,o=new o,l[e]=o,o.request=function(e,r){return t(f(e,r,n))},o.get=function(e,r){e=f(e,r,n);var o=t(e);return o.end(),o}}function f(e,t,r){return u.equal(typeof t,"function","callback must be a function"),"string"==typeof e?(e=s.parse(e),e.maxRedirects=l.maxRedirects):e=n({maxRedirects:l.maxRedirects,protocol:r},e),u.equal(e.protocol,r,"protocol mismatch"),e.protocol=r,e.userCallback=t,a("options",e),e}var p={},l={maxRedirects:5};for(var d in e)e.hasOwnProperty(d)&&(u(/^[A-Z][A-Z\+\-\.]*$/i.test(d),JSON.stringify(d)+" is not a valid scheme name"),r(d,e[d]));return l};var f=["protocol","slashes","auth","host","port","hostname","hash","search","query","pathname","path","href"]},function(e,t){e.exports=require("url")},function(e,t,r){"undefined"!=typeof process&&"renderer"===process.type?e.exports=r(145):e.exports=r(148)},function(e,t,r){function n(){return"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function o(){var e=arguments,r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),!r)return e;var n="color: "+this.color;e=[e[0],n,"color: inherit"].concat(Array.prototype.slice.call(e,1));var o=0,i=0;return e[0].replace(/%[a-z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,n),e}function i(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(r){}}function a(){try{return t.storage.debug}catch(e){}if("undefined"!=typeof process&&"env"in process)return process.env.DEBUG}function u(){try{return window.localStorage}catch(e){}}t=e.exports=r(146),t.log=i,t.formatArgs=o,t.save=s,t.load=a,t.useColors=n,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(a())},function(e,t,r){function n(){return t.colors[f++%t.colors.length]}function o(e){function r(){}function o(){var e=o,r=+new Date,i=r-(c||r);e.diff=i,e.prev=c,e.curr=r,c=r,null==e.useColors&&(e.useColors=t.useColors()),null==e.color&&e.useColors&&(e.color=n());for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&(s=["%o"].concat(s));var u=0;s[0]=s[0].replace(/%([a-z%])/g,function(r,n){if("%%"===r)return r;u++;var o=t.formatters[n];if("function"==typeof o){var i=s[u];r=o.call(e,i),s.splice(u,1),u--}return r}),s=t.formatArgs.apply(e,s);var f=o.log||t.log||console.log.bind(console);f.apply(e,s)}r.enabled=!1,o.enabled=!0;var i=t.enabled(e)?o:r;return i.namespace=e,i}function i(e){t.save(e);for(var r=(e||"").split(/[\s,]+/),n=r.length,o=0;o<n;o++)r[o]&&(e=r[o].replace(/[\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))}function s(){t.enable("")}function a(e){var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=o.debug=o,t.coerce=u,t.disable=s,t.enable=i,t.enabled=a,t.humanize=r(147),t.names=[],t.skips=[],t.formatters={};var c,f=0},function(e,t){function r(e){if(e=String(e),!(e.length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*f;case"days":case"day":case"d":return r*c;case"hours":case"hour":case"hrs":case"hr":case"h":return r*u;case"minutes":case"minute":case"mins":case"min":case"m":return r*a;case"seconds":case"second":case"secs":case"sec":case"s":return r*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function n(e){return e>=c?Math.round(e/c)+"d":e>=u?Math.round(e/u)+"h":e>=a?Math.round(e/a)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function o(e){return i(e,c,"day")||i(e,u,"hour")||i(e,a,"minute")||i(e,s,"second")||e+" ms"}function i(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}var s=1e3,a=60*s,u=60*a,c=24*u,f=365.25*c;e.exports=function(e,t){t=t||{};var i=typeof e;if("string"===i&&e.length>0)return r(e);if("number"===i&&isNaN(e)===!1)return t["long"]?o(e):n(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,r){function n(){var e=(process.env.DEBUG_COLORS||"").trim().toLowerCase();return 0===e.length?c.isatty(p):"0"!==e&&"no"!==e&&"false"!==e&&"disabled"!==e}function o(){for(var e=arguments.length,r=new Array(e),n=this.useColors,o=this.namespace,i=0;i<e;i++)r[i]=arguments[i];if(n){var s=this.color;r[0]=" [3"+s+";1m"+o+" [0m"+r[0],r.push("[3"+s+"m+"+t.humanize(this.diff)+"[0m")}else r[0]=(new Date).toUTCString()+" "+o+" "+r[0];return r}function i(){return l.write(f.format.apply(this,arguments)+"\n")}function s(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e}function a(){return process.env.DEBUG}function u(e){var t,n=process.binding("tty_wrap");switch(n.guessHandleType(e)){case"TTY":t=new c.WriteStream(e),t._type="tty",t._handle&&t._handle.unref&&t._handle.unref();break;case"FILE":var o=r(151);t=new o.SyncWriteStream(e,{autoClose:!1}),t._type="fs";break;case"PIPE":case"TCP":var i=r(152);t=new i.Socket({fd:e,readable:!1,writable:!0}),t.readable=!1,t.read=null,t._type="pipe",t._handle&&t._handle.unref&&t._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return t.fd=e,t._isStdio=!0,t}var c=r(149),f=r(150);t=e.exports=r(146),t.log=i,t.formatArgs=o,t.save=s,t.load=a,t.useColors=n,t.colors=[6,2,3,4,5,1];var p=parseInt(process.env.DEBUG_FD,10)||2,l=1===p?process.stdout:2===p?process.stderr:u(p),d=4===f.inspect.length?function(e,t){return f.inspect(e,void 0,void 0,t)}:function(e,t){return f.inspect(e,{colors:t})};t.formatters.o=t.formatters.O=function(e){return d(e,this.useColors).replace(/\s*\n\s*/g," ")},t.enable(a())},function(e,t){e.exports=require("tty")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("assert")},function(e,t){e.exports=function(e){if(e.readable&&"function"==typeof e.resume){var t=e._readableState;if(!t||0===t.pipesCount)try{e.resume()}catch(r){console.error("Got error: "+r)}}}},function(e,t){e.exports=require("zlib")},function(e,t){e.exports={name:"axios",version:"0.13.1",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"},repository:{type:"git",url:"git+https://github.com/mzabriskie/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:{name:"Matt Zabriskie"},license:"MIT",bugs:{url:"https://github.com/mzabriskie/axios/issues"},homepage:"https://github.com/mzabriskie/axios",devDependencies:{coveralls:"^2.11.9","es6-promise":"^3.2.1",grunt:"0.4.5","grunt-banner":"0.6.0","grunt-cli":"0.1.13","grunt-contrib-clean":"1.0.0","grunt-contrib-nodeunit":"1.0.0","grunt-contrib-watch":"0.6.1","grunt-eslint":"18.0.0","grunt-karma":"0.12.1","grunt-ts":"5.3.2","grunt-webpack":"1.0.11","istanbul-instrumenter-loader":"^0.2.0","jasmine-core":"^2.4.1",karma:"^0.13.22","karma-chrome-launcher":"^1.0.1","karma-coverage":"^1.0.0","karma-firefox-launcher":"^1.0.0","karma-jasmine":"^1.0.2","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-phantomjs-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.0.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"3.4.1",minimist:"^1.2.0","phantomjs-prebuilt":"^2.1.7",sinon:"^1.17.4",webpack:"^1.13.1","webpack-dev-server":"^1.14.1","url-search-params":"^0.5.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},typescript:{definition:"./axios.d.ts"},dependencies:{"follow-redirects":"0.0.7"},gitHead:"377efb89aed819ed1cd416b69f057632ad5664a5",_id:"axios@0.13.1",_shasum:"3e67abfe4333bc9d2d5fe6fbd13b4694eafc8df8",_from:"axios@>=0.13.0 <0.14.0",_npmVersion:"3.9.5",_nodeVersion:"3.3.1",_npmUser:{name:"mzabriskie",email:"mzabriskie@gmail.com"},maintainers:[{name:"mzabriskie",email:"mzabriskie@gmail.com"},{name:"nickuraltsev",email:"nick.uraltsev@gmail.com"}],dist:{shasum:"3e67abfe4333bc9d2d5fe6fbd13b4694eafc8df8",tarball:"https://registry.npmjs.org/axios/-/axios-0.13.1.tgz"},_npmOperationalInternal:{host:"packages-12-west.internal.npmjs.com",tmp:"tmp/axios-0.13.1.tgz_1468689204636_0.7909611663781106"},directories:{},_resolved:"https://registry.npmjs.org/axios/-/axios-0.13.1.tgz",readme:"ERROR: No README data found!"}},function(e,t){e.exports=require("buffer")},function(e,t){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t){"use strict";e.exports=function(e,t){return e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,"")}},function(e,t){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("http"),require("https"),require("url"),require("tty"),require("util"),require("fs"),require("net"),require("assert"),require("zlib"),require("buffer")):"function"==typeof define&&define.amd?define("splunk-events",["http","https","url","tty","util","fs","net","assert","zlib","buffer"],t):"object"==typeof exports?exports["splunk-events"]=t(require("http"),require("https"),require("url"),require("tty"),require("util"),require("fs"),require("net"),require("assert"),require("zlib"),require("buffer")):e["splunk-events"]=t(e.http,e.https,e.url,e.tty,e.util,e.fs,e.net,e.assert,e.zlib,e.buffer)}(this,function(e,t,r,n,o,i,s,a,u,c){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=r(1),a=n(s),u=r(13),c=n(u),f=r(116),p=n(f),l=r(119),d=n(l),h=function(){function e(){o(this,e)}return i(e,[{key:"config",value:function(e){this.events=[],this.pendingEvents=[],this.isSendingEvents=!1,this.endpoint=e.endpoint,this.token=e.token,this.index=e.index,this.injectAditionalInfo=void 0!==e.injectAditionalInfo&&e.injectAditionalInfo,this.autoFlush=void 0===e.autoFlush||e.autoFlush,this.autoRetryFlush=void 0===e.autoRetryFlush||e.autoRetryFlush,this.source=void 0!==e.source?e.source:"datasource",this.path=void 0!==e.path?e.path:"/services/collector/event",this.sourcetype=void 0!==e.sourcetype?e.sourcetype:"log",this.debug=void 0!==e.debug&&e.debug,this.debounceTime=void 0!==e.debounceTime?e.debounceTime:2e3,this.debounceMaxWait=void 0!==e.debounceMaxWait?e.debounceMaxWait:5e3,this.debouncedFlush=(0,a["default"])(this.flush,this.debounceTime,{},!1,this.debounceMaxWait),this.axiosInstance=d["default"].create({baseURL:""+this.endpoint,headers:{Authorization:"Splunk "+this.token},responseType:"json"})}},{key:"logEvent",value:function(e){this.validateEvent(e),this.injectAditionalInfo&&(e+=this.getAdditionalInfo());var t={source:this.source,event:e};this.events.push(t),this.autoFlush&&this.debouncedFlush()}},{key:"validateEvent",value:function(e){if(null===e)throw"Event must not be null";if(void 0===e)throw"Event must not be undefined";if("string"!=typeof e)throw"Event must be a string"}},{key:"getAdditionalInfo",value:function(){if("undefined"==typeof navigator)return""}},{key:"flush",value:function(){var e=this;if(this.isSendingEvents)return void this.debouncedFlush();this.validateConfig(),this.pendingEvents=(0,c["default"])(this.events),this.events=[],this.isSendingEvents=!0,this.debug&&console.log("sending "+this.pendingEvents.length+" events to splunk");var t=this.formatEventsForSplunkBatch(this.pendingEvents);this.axiosInstance.post(this.path,t).then(function(t){e.debug&&console.log(e.pendingEvents.length+" events successfuly sent to splunk"),e.pendingEvents=[],e.isSendingEvents=!1})["catch"](function(t){e.events=(0,p["default"])(e.events,e.pendingEvents),e.pendingEvents=[],e.isSendingEvents=!1,e.autoRetryFlush?(e.debug&&console.warn("Error sending events to splunk. Retrying in 5 seconds.",t),e.debouncedFlush()):e.debug&&console.warn("Error sending events to splunk.",t)})}},{key:"formatEventsForSplunkBatch",value:function(e){for(var t="",r=0;r<e.length;r++)t+=e[r]+"\r\n";return t}},{key:"validateConfig",value:function(){if(null===this.token)throw"Token must not be null";if(void 0===this.token)throw"Token must not be undefined";if(null===this.endpoint)throw"endpoint must not be null";if(void 0===this.endpoint)throw"endpoint must not be undefined"}}]),e}();t["default"]=h,e.exports=t["default"]},function(e,t,r){function n(e,t,r){function n(t){var r=b,n=g;return b=g=void 0,A=t,j=e.apply(n,r)}function f(e){return A=e,w=setTimeout(d,t),E?n(e):j}function p(e){var r=e-_,n=e-A,o=t-r;return k?c(o,x-n):o}function l(e){var r=e-_,n=e-A;return void 0===_||r>=t||r<0||k&&n>=x}function d(){var e=i();return l(e)?h(e):void(w=setTimeout(d,p(e)))}function h(e){return w=void 0,O&&b?n(e):(b=g=void 0,j)}function v(){void 0!==w&&clearTimeout(w),A=0,b=_=g=w=void 0}function m(){return void 0===w?j:h(i())}function y(){var e=i(),r=l(e);if(b=arguments,g=this,_=e,r){if(void 0===w)return f(_);if(k)return w=setTimeout(d,t),n(_)}return void 0===w&&(w=setTimeout(d,t)),j}var b,g,x,j,w,_,A=0,E=!1,k=!1,O=!0;if("function"!=typeof e)throw new TypeError(a);return t=s(t)||0,o(r)&&(E=!!r.leading,k="maxWait"in r,x=k?u(s(r.maxWait)||0,t):x,O="trailing"in r?!!r.trailing:O),y.cancel=v,y.flush=m,y}var o=r(2),i=r(3),s=r(6),a="Expected a function",u=Math.max,c=Math.min;e.exports=n},function(e,t){function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=r},function(e,t,r){var n=r(4),o=function(){return n.Date.now()};e.exports=o},function(e,t,r){var n=r(5),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},function(e,t){var r="object"==typeof global&&global&&global.Object===Object&&global;e.exports=r},function(e,t,r){function n(e){if("number"==typeof e)return e;if(i(e))return s;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var r=c.test(e);return r||f.test(e)?p(e.slice(2),r?2:8):u.test(e)?s:+e}var o=r(2),i=r(7),s=NaN,a=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;e.exports=n},function(e,t,r){function n(e){return"symbol"==typeof e||i(e)&&o(e)==s}var o=r(8),i=r(12),s="[object Symbol]";e.exports=n},function(e,t,r){function n(e){return null==e?void 0===e?u:a:(e=Object(e),c&&c in e?i(e):s(e))}var o=r(9),i=r(10),s=r(11),a="[object Null]",u="[object Undefined]",c=o?o.toStringTag:void 0;e.exports=n},function(e,t,r){var n=r(4),o=n.Symbol;e.exports=o},function(e,t,r){function n(e){var t=s.call(e,u),r=e[u];try{e[u]=void 0;var n=!0}catch(o){}var i=a.call(e);return n&&(t?e[u]=r:delete e[u]),i}var o=r(9),i=Object.prototype,s=i.hasOwnProperty,a=i.toString,u=o?o.toStringTag:void 0;e.exports=n},function(e,t){function r(e){return o.call(e)}var n=Object.prototype,o=n.toString;e.exports=r},function(e,t){function r(e){return null!=e&&"object"==typeof e}e.exports=r},function(e,t,r){function n(e){return o(e,i)}var o=r(14),i=4;e.exports=n},function(e,t,r){function n(e,t,r,O,S,C){var T,z=t&_,U=t&A,P=t&E;if(r&&(T=S?r(e,O,S,C):r(e)),void 0!==T)return T;if(!j(e))return e;var B=g(e);if(B){if(T=m(e),!z)return f(e,T)}else{var D=v(e),N=D==R||D==q;if(x(e))return c(e,z);if(D==F||D==k||N&&!S){if(T=U||N?{}:b(e),!z)return U?l(e,u(T,e)):p(e,a(T,e))}else{if(!Y[D])return S?e:{};T=y(e,D,n,z)}}C||(C=new o);var I=C.get(e);if(I)return I;C.set(e,T);var M=P?U?h:d:U?keysIn:w,L=B?void 0:M(e);return i(L||e,function(o,i){L&&(i=o,o=e[i]),s(T,i,n(o,t,r,i,e,C))}),T}var o=r(15),i=r(52),s=r(53),a=r(56),u=r(78),c=r(82),f=r(83),p=r(84),l=r(87),d=r(91),h=r(93),v=r(94),m=r(99),y=r(100),b=r(114),g=r(63),x=r(64),j=r(2),w=r(58),_=1,A=2,E=4,k="[object Arguments]",O="[object Array]",S="[object Boolean]",C="[object Date]",T="[object Error]",R="[object Function]",q="[object GeneratorFunction]",z="[object Map]",U="[object Number]",F="[object Object]",P="[object RegExp]",B="[object Set]",D="[object String]",N="[object Symbol]",I="[object WeakMap]",M="[object ArrayBuffer]",L="[object DataView]",$="[object Float32Array]",V="[object Float64Array]",G="[object Int8Array]",W="[object Int16Array]",H="[object Int32Array]",X="[object Uint8Array]",J="[object Uint8ClampedArray]",Z="[object Uint16Array]",K="[object Uint32Array]",Y={};Y[k]=Y[O]=Y[M]=Y[L]=Y[S]=Y[C]=Y[$]=Y[V]=Y[G]=Y[W]=Y[H]=Y[z]=Y[U]=Y[F]=Y[P]=Y[B]=Y[D]=Y[N]=Y[X]=Y[J]=Y[Z]=Y[K]=!0,Y[T]=Y[R]=Y[I]=!1,e.exports=n},function(e,t,r){function n(e){var t=this.__data__=new o(e);this.size=t.size}var o=r(16),i=r(24),s=r(25),a=r(26),u=r(27),c=r(28);n.prototype.clear=i,n.prototype["delete"]=s,n.prototype.get=a,n.prototype.has=u,n.prototype.set=c,e.exports=n},function(e,t,r){function n(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var o=r(17),i=r(18),s=r(21),a=r(22),u=r(23);n.prototype.clear=o,n.prototype["delete"]=i,n.prototype.get=s,n.prototype.has=a,n.prototype.set=u,e.exports=n},function(e,t){function r(){this.__data__=[],this.size=0}e.exports=r},function(e,t,r){function n(e){var t=this.__data__,r=o(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():s.call(t,r,1),--this.size,!0}var o=r(19),i=Array.prototype,s=i.splice;e.exports=n},function(e,t,r){function n(e,t){for(var r=e.length;r--;)if(o(e[r][0],t))return r;return-1}var o=r(20);e.exports=n},function(e,t){function r(e,t){return e===t||e!==e&&t!==t}e.exports=r},function(e,t,r){function n(e){var t=this.__data__,r=o(t,e);return r<0?void 0:t[r][1]}var o=r(19);e.exports=n},function(e,t,r){function n(e){return o(this.__data__,e)>-1}var o=r(19);e.exports=n},function(e,t,r){function n(e,t){var r=this.__data__,n=o(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var o=r(19);e.exports=n},function(e,t,r){function n(){this.__data__=new o,this.size=0}var o=r(16);e.exports=n},function(e,t){function r(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}e.exports=r},function(e,t){function r(e){return this.__data__.get(e)}e.exports=r},function(e,t){function r(e){return this.__data__.has(e)}e.exports=r},function(e,t,r){function n(e,t){var r=this.__data__;if(r instanceof o){var n=r.__data__;if(!i||n.length<a-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new s(n)}return r.set(e,t),this.size=r.size,this}var o=r(16),i=r(29),s=r(37),a=200;e.exports=n},function(e,t,r){var n=r(30),o=r(4),i=n(o,"Map");e.exports=i},function(e,t,r){function n(e,t){var r=i(e,t);return o(r)?r:void 0}var o=r(31),i=r(36);e.exports=n},function(e,t,r){function n(e){if(!s(e)||i(e))return!1;var t=o(e)?h:c;return t.test(a(e))}var o=r(32),i=r(33),s=r(2),a=r(35),u=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,f=Function.prototype,p=Object.prototype,l=f.toString,d=p.hasOwnProperty,h=RegExp("^"+l.call(d).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=n},function(e,t,r){function n(e){if(!i(e))return!1;var t=o(e);return t==a||t==u||t==s||t==c}var o=r(8),i=r(2),s="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";e.exports=n},function(e,t,r){function n(e){return!!i&&i in e}var o=r(34),i=function(){var e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=n},function(e,t,r){var n=r(4),o=n["__core-js_shared__"];e.exports=o},function(e,t){function r(e){if(null!=e){try{return o.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var n=Function.prototype,o=n.toString;e.exports=r},function(e,t){function r(e,t){return null==e?void 0:e[t]}e.exports=r},function(e,t,r){function n(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var o=r(38),i=r(46),s=r(49),a=r(50),u=r(51);n.prototype.clear=o,n.prototype["delete"]=i,n.prototype.get=s,n.prototype.has=a,n.prototype.set=u,e.exports=n},function(e,t,r){function n(){this.size=0,this.__data__={hash:new o,map:new(s||i),string:new o}}var o=r(39),i=r(16),s=r(29);e.exports=n},function(e,t,r){function n(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var o=r(40),i=r(42),s=r(43),a=r(44),u=r(45);n.prototype.clear=o,n.prototype["delete"]=i,n.prototype.get=s,n.prototype.has=a,n.prototype.set=u,e.exports=n},function(e,t,r){function n(){this.__data__=o?o(null):{},this.size=0}var o=r(41);e.exports=n},function(e,t,r){var n=r(30),o=n(Object,"create");e.exports=o},function(e,t){function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=r},function(e,t,r){function n(e){var t=this.__data__;if(o){var r=t[e];return r===i?void 0:r}return a.call(t,e)?t[e]:void 0}var o=r(41),i="__lodash_hash_undefined__",s=Object.prototype,a=s.hasOwnProperty;e.exports=n},function(e,t,r){function n(e){var t=this.__data__;return o?void 0!==t[e]:s.call(t,e)}var o=r(41),i=Object.prototype,s=i.hasOwnProperty;e.exports=n},function(e,t,r){function n(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=o&&void 0===t?i:t,this}var o=r(41),i="__lodash_hash_undefined__";e.exports=n},function(e,t,r){function n(e){var t=o(this,e)["delete"](e);return this.size-=t?1:0,t}var o=r(47);e.exports=n},function(e,t,r){function n(e,t){var r=e.__data__;return o(t)?r["string"==typeof t?"string":"hash"]:r.map}var o=r(48);e.exports=n},function(e,t){function r(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=r},function(e,t,r){function n(e){return o(this,e).get(e)}var o=r(47);e.exports=n},function(e,t,r){function n(e){return o(this,e).has(e)}var o=r(47);e.exports=n},function(e,t,r){function n(e,t){var r=o(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var o=r(47);e.exports=n},function(e,t){function r(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}e.exports=r},function(e,t,r){function n(e,t,r){var n=e[t];a.call(e,t)&&i(n,r)&&(void 0!==r||t in e)||o(e,t,r)}var o=r(54),i=r(20),s=Object.prototype,a=s.hasOwnProperty;e.exports=n},function(e,t,r){function n(e,t,r){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var o=r(55);e.exports=n},function(e,t,r){var n=r(30),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},function(e,t,r){function n(e,t){return e&&o(t,i(t),e)}var o=r(57),i=r(58);e.exports=n},function(e,t,r){function n(e,t,r,n){var s=!r;r||(r={});for(var a=-1,u=t.length;++a<u;){var c=t[a],f=n?n(r[c],e[c],c,r,e):void 0;void 0===f&&(f=e[c]),s?i(r,c,f):o(r,c,f)}return r}var o=r(53),i=r(54);e.exports=n},function(e,t,r){function n(e){return s(e)?o(e):i(e)}var o=r(59),i=r(73),s=r(77);e.exports=n},function(e,t,r){function n(e,t){var r=s(e),n=!r&&i(e),f=!r&&!n&&a(e),l=!r&&!n&&!f&&c(e),d=r||n||f||l,h=d?o(e.length,String):[],v=h.length;for(var m in e)!t&&!p.call(e,m)||d&&("length"==m||f&&("offset"==m||"parent"==m)||l&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||u(m,v))||h.push(m);return h}var o=r(60),i=r(61),s=r(63),a=r(64),u=r(67),c=r(68),f=Object.prototype,p=f.hasOwnProperty;e.exports=n},function(e,t){function r(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}e.exports=r},function(e,t,r){var n=r(62),o=r(12),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return o(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=u},function(e,t,r){function n(e){return i(e)&&o(e)==s}var o=r(8),i=r(12),s="[object Arguments]";e.exports=n},function(e,t){var r=Array.isArray;e.exports=r},function(e,t,r){(function(e){var n=r(4),o=r(66),i="object"==typeof t&&t&&!t.nodeType&&t,s=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=s&&s.exports===i,u=a?n.Buffer:void 0,c=u?u.isBuffer:void 0,f=c||o;e.exports=f}).call(t,r(65)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t){function r(){return!1}e.exports=r},function(e,t){function r(e,t){return t=null==t?n:t,!!t&&("number"==typeof e||o.test(e))&&e>-1&&e%1==0&&e<t}var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=r},function(e,t,r){var n=r(69),o=r(71),i=r(72),s=i&&i.isTypedArray,a=s?o(s):n;e.exports=a},function(e,t,r){function n(e){return s(e)&&i(e.length)&&!!R[o(e)]}var o=r(8),i=r(70),s=r(12),a="[object Arguments]",u="[object Array]",c="[object Boolean]",f="[object Date]",p="[object Error]",l="[object Function]",d="[object Map]",h="[object Number]",v="[object Object]",m="[object RegExp]",y="[object Set]",b="[object String]",g="[object WeakMap]",x="[object ArrayBuffer]",j="[object DataView]",w="[object Float32Array]",_="[object Float64Array]",A="[object Int8Array]",E="[object Int16Array]",k="[object Int32Array]",O="[object Uint8Array]",S="[object Uint8ClampedArray]",C="[object Uint16Array]",T="[object Uint32Array]",R={};R[w]=R[_]=R[A]=R[E]=R[k]=R[O]=R[S]=R[C]=R[T]=!0,R[a]=R[u]=R[x]=R[c]=R[j]=R[f]=R[p]=R[l]=R[d]=R[h]=R[v]=R[m]=R[y]=R[b]=R[g]=!1,e.exports=n},function(e,t){function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}var n=9007199254740991;e.exports=r},function(e,t){function r(e){return function(t){return e(t)}}e.exports=r},function(e,t,r){(function(e){var n=r(5),o="object"==typeof t&&t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===o,a=s&&n.process,u=function(){try{return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u}).call(t,r(65)(e))},function(e,t,r){function n(e){if(!o(e))return i(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}var o=r(74),i=r(75),s=Object.prototype,a=s.hasOwnProperty;e.exports=n},function(e,t){function r(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||n;return e===r}var n=Object.prototype;e.exports=r},function(e,t,r){var n=r(76),o=n(Object.keys,Object);e.exports=o},function(e,t){function r(e,t){return function(r){return e(t(r))}}e.exports=r},function(e,t,r){function n(e){return null!=e&&i(e.length)&&!o(e)}var o=r(32),i=r(70);e.exports=n},function(e,t,r){function n(e,t){return e&&o(t,i(t),e)}var o=r(57),i=r(79);e.exports=n},function(e,t,r){function n(e){return s(e)?o(e,!0):i(e)}var o=r(59),i=r(80),s=r(77);e.exports=n},function(e,t,r){function n(e){if(!o(e))return s(e);var t=i(e),r=[];for(var n in e)("constructor"!=n||!t&&u.call(e,n))&&r.push(n);return r}var o=r(2),i=r(74),s=r(81),a=Object.prototype,u=a.hasOwnProperty;e.exports=n},function(e,t){function r(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}e.exports=r},function(e,t,r){(function(e){function n(e,t){if(t)return e.slice();var r=e.length,n=c?c(r):new e.constructor(r);return e.copy(n),n}var o=r(4),i="object"==typeof t&&t&&!t.nodeType&&t,s=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=s&&s.exports===i,u=a?o.Buffer:void 0,c=u?u.allocUnsafe:void 0;e.exports=n}).call(t,r(65)(e))},function(e,t){function r(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}e.exports=r},function(e,t,r){function n(e,t){return o(e,i(e),t)}var o=r(57),i=r(85);e.exports=n},function(e,t,r){var n=r(76),o=r(86),i=Object.getOwnPropertySymbols,s=i?n(i,Object):o;e.exports=s},function(e,t){function r(){return[]}e.exports=r},function(e,t,r){function n(e,t){return o(e,i(e),t)}var o=r(57),i=r(88);e.exports=n},function(e,t,r){var n=r(89),o=r(90),i=r(85),s=r(86),a=Object.getOwnPropertySymbols,u=a?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:s;e.exports=u},function(e,t){function r(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}e.exports=r},function(e,t,r){var n=r(76),o=n(Object.getPrototypeOf,Object);e.exports=o},function(e,t,r){function n(e){return o(e,s,i)}var o=r(92),i=r(85),s=r(58);e.exports=n},function(e,t,r){function n(e,t,r){var n=t(e);return i(e)?n:o(n,r(e))}var o=r(89),i=r(63);e.exports=n},function(e,t,r){function n(e){return o(e,s,i)}var o=r(92),i=r(88),s=r(79);e.exports=n},function(e,t,r){var n=r(95),o=r(29),i=r(96),s=r(97),a=r(98),u=r(8),c=r(35),f="[object Map]",p="[object Object]",l="[object Promise]",d="[object Set]",h="[object WeakMap]",v="[object DataView]",m=c(n),y=c(o),b=c(i),g=c(s),x=c(a),j=u;(n&&j(new n(new ArrayBuffer(1)))!=v||o&&j(new o)!=f||i&&j(i.resolve())!=l||s&&j(new s)!=d||a&&j(new a)!=h)&&(j=function(e){var t=u(e),r=t==p?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case m:return v;case y:return f;case b:return l;case g:return d;case x:return h}return t}),e.exports=j},function(e,t,r){var n=r(30),o=r(4),i=n(o,"DataView");e.exports=i},function(e,t,r){var n=r(30),o=r(4),i=n(o,"Promise");e.exports=i},function(e,t,r){var n=r(30),o=r(4),i=n(o,"Set");e.exports=i},function(e,t,r){var n=r(30),o=r(4),i=n(o,"WeakMap");e.exports=i},function(e,t){function r(e){var t=e.length,r=e.constructor(t);return t&&"string"==typeof e[0]&&o.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var n=Object.prototype,o=n.hasOwnProperty;e.exports=r},function(e,t,r){function n(e,t,r,n){var T=e.constructor;switch(t){case g:return o(e);case p:case l:return new T((+e));case x:return i(e,n);case j:case w:case _:case A:case E:case k:case O:case S:case C:return f(e,n);case d:return s(e,n,r);case h:case y:return new T(e);case v:return a(e);case m:return u(e,n,r);case b:return c(e)}}var o=r(101),i=r(103),s=r(104),a=r(108),u=r(109),c=r(112),f=r(113),p="[object Boolean]",l="[object Date]",d="[object Map]",h="[object Number]",v="[object RegExp]",m="[object Set]",y="[object String]",b="[object Symbol]",g="[object ArrayBuffer]",x="[object DataView]",j="[object Float32Array]",w="[object Float64Array]",_="[object Int8Array]",A="[object Int16Array]",E="[object Int32Array]",k="[object Uint8Array]",O="[object Uint8ClampedArray]",S="[object Uint16Array]",C="[object Uint32Array]";e.exports=n},function(e,t,r){function n(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}var o=r(102);e.exports=n},function(e,t,r){var n=r(4),o=n.Uint8Array;e.exports=o},function(e,t,r){function n(e,t){var r=t?o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var o=r(101);e.exports=n},function(e,t,r){function n(e,t,r){var n=t?r(s(e),a):s(e);return i(n,o,new e.constructor)}var o=r(105),i=r(106),s=r(107),a=1;e.exports=n},function(e,t){function r(e,t){return e.set(t[0],t[1]),e}e.exports=r},function(e,t){function r(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}e.exports=r},function(e,t){function r(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}e.exports=r},function(e,t){function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}var n=/\w*$/;e.exports=r},function(e,t,r){function n(e,t,r){var n=t?r(s(e),a):s(e);return i(n,o,new e.constructor)}var o=r(110),i=r(106),s=r(111),a=1;e.exports=n},function(e,t){function r(e,t){return e.add(t),e}e.exports=r},function(e,t){function r(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}e.exports=r},function(e,t,r){function n(e){return s?Object(s.call(e)):{}}var o=r(9),i=o?o.prototype:void 0,s=i?i.valueOf:void 0;e.exports=n},function(e,t,r){function n(e,t){var r=t?o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var o=r(101);e.exports=n},function(e,t,r){function n(e){return"function"!=typeof e.constructor||s(e)?{}:o(i(e))}var o=r(115),i=r(90),s=r(74);e.exports=n},function(e,t,r){var n=r(2),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},function(e,t,r){function n(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return o(a(r)?s(r):[r],i(t,1))}var o=r(89),i=r(117),s=r(83),a=r(63);e.exports=n},function(e,t,r){function n(e,t,r,s,a){var u=-1,c=e.length;for(r||(r=i),a||(a=[]);++u<c;){var f=e[u];t>0&&r(f)?t>1?n(f,t-1,r,s,a):o(a,f):s||(a[a.length]=f)}return a}var o=r(89),i=r(118);e.exports=n},function(e,t,r){function n(e){return s(e)||i(e)||!!(a&&e&&e[a])}var o=r(9),i=r(61),s=r(63),a=o?o.isConcatSpreadable:void 0;e.exports=n},function(e,t,r){e.exports=r(120)},function(e,t,r){"use strict";function n(e){var t=new s(e),r=i(s.prototype.request,t);return o.extend(r,s.prototype,t),o.extend(r,t),r}var o=r(121),i=r(122),s=r(123),a=e.exports=n();a.Axios=s,a.create=function(e){return n(e)},a.all=function(e){return Promise.all(e)},a.spread=r(160)},function(e,t,r){"use strict";function n(e){return"[object Array]"===_.call(e)}function o(e){return"[object ArrayBuffer]"===_.call(e)}function i(e){return"undefined"!=typeof FormData&&e instanceof FormData}function s(e){var t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function a(e){return"string"==typeof e}function u(e){return"number"==typeof e}function c(e){return"undefined"==typeof e}function f(e){return null!==e&&"object"==typeof e}function p(e){return"[object Date]"===_.call(e)}function l(e){return"[object File]"===_.call(e)}function d(e){return"[object Blob]"===_.call(e)}function h(e){return"[object Function]"===_.call(e)}function v(e){return f(e)&&h(e.pipe)}function m(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function y(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function b(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function g(e,t){if(null!==e&&"undefined"!=typeof e)if("object"==typeof e||n(e)||(e=[e]),n(e))for(var r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(null,e[i],i,e)}function x(){function e(e,r){"object"==typeof t[r]&&"object"==typeof e?t[r]=x(t[r],e):t[r]=e}for(var t={},r=0,n=arguments.length;r<n;r++)g(arguments[r],e);return t}function j(e,t,r){return g(t,function(t,n){r&&"function"==typeof t?e[n]=w(t,r):e[n]=t}),e}var w=r(122),_=Object.prototype.toString;e.exports={isArray:n,isArrayBuffer:o,isFormData:i,isArrayBufferView:s,isString:a,isNumber:u,isObject:f,isUndefined:c,isDate:p,isFile:l,isBlob:d,isFunction:h,isStream:v,isURLSearchParams:m,isStandardBrowserEnv:b,forEach:g,merge:x,extend:j,trim:y}},function(e,t){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},function(e,t,r){"use strict";function n(e){this.defaults=i.merge(o,e),this.interceptors={request:new s,response:new s}}var o=r(124),i=r(121),s=r(126),a=r(127),u=r(158),c=r(159);n.prototype.request=function(e){"string"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(o,this.defaults,{method:"get"},e),e.baseURL&&!u(e.url)&&(e.url=c(e.baseURL,e.url));var t=[a,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},i.forEach(["delete","get","head"],function(e){n.prototype[e]=function(t,r){return this.request(i.merge(r||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){n.prototype[e]=function(t,r,n){return this.request(i.merge(n||{},{method:e,url:t,data:r}))}}),e.exports=n},function(e,t,r){"use strict";function n(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var o=r(121),i=r(125),s=/^\)\]\}',?\n/,a={"Content-Type":"application/x-www-form-urlencoded"};e.exports={transformRequest:[function(e,t){return i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(n(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)?(n(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e){e=e.replace(s,"");try{e=JSON.parse(e)}catch(t){}}return e}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:o.merge(a),post:o.merge(a),put:o.merge(a)},timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}}},function(e,t,r){"use strict";var n=r(121);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},function(e,t,r){"use strict";function n(){this.handlers=[]}var o=r(121);n.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},n.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},n.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=n},function(e,t,r){"use strict";var n=r(121),o=r(128);e.exports=function(e){e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t;return"function"==typeof e.adapter?t=e.adapter:"undefined"!=typeof XMLHttpRequest?t=r(129):"undefined"!=typeof process&&(t=r(138)),Promise.resolve(e).then(t).then(function(t){return t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse)),Promise.reject(t)})}},function(e,t,r){"use strict";var n=r(121);e.exports=function(e,t,r){return n.forEach(r,function(r){e=r(e,t)}),e}},function(e,t,r){"use strict";var n=r(121),o=r(130),i=r(133),s=r(134),a=r(135),u=r(131),c="undefined"!=typeof window&&window.btoa||r(136);e.exports=function(e){return new Promise(function(t,f){var p=e.data,l=e.headers;n.isFormData(p)&&delete l["Content-Type"];var d=new XMLHttpRequest,h="onreadystatechange",v=!1;if("test"===process.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||a(e.url)||(d=new window.XDomainRequest,h="onload",v=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var m=e.auth.username||"",y=e.auth.password||"";l.Authorization="Basic "+c(m+":"+y)}if(d.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[h]=function(){if(d&&(4===d.readyState||v)&&0!==d.status){var r="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,n=e.responseType&&"text"!==e.responseType?d.response:d.responseText,i={data:n,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:r,config:e,request:d};o(t,f,i),d=null}},d.onerror=function(){f(u("Network Error",e)),d=null},d.ontimeout=function(){f(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED")),d=null},n.isStandardBrowserEnv()){var b=r(137),g=e.withCredentials||a(e.url)?b.read(e.xsrfCookieName):void 0;g&&(l[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&n.forEach(l,function(e,t){"undefined"==typeof p&&"content-type"===t.toLowerCase()?delete l[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(x){if("json"!==d.responseType)throw x}"function"==typeof e.progress&&("post"===e.method||"put"===e.method?d.upload.addEventListener("progress",e.progress):"get"===e.method&&d.addEventListener("progress",e.progress)),void 0===p&&(p=null),d.send(p)})}},function(e,t,r){"use strict";var n=r(131);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r)):e(r)}},function(e,t,r){"use strict";var n=r(132);e.exports=function(e,t,r,o){var i=new Error(e);return n(i,t,r,o)}},function(e,t){"use strict";e.exports=function(e,t,r,n){return e.config=t,r&&(e.code=r),e.response=n,e}},function(e,t,r){"use strict";function n(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=r(121);e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(o.isURLSearchParams(t))i=t.toString();else{var s=[];o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)&&(t+="[]"),o.isArray(e)||(e=[e]),o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),s.push(n(t)+"="+n(e))}))}),i=s.join("&")}return i&&(e+=(e.indexOf("?")===-1?"?":"&")+i),e; | ||
}},function(e,t,r){"use strict";var n=r(121);e.exports=function(e){var t,r,o,i={};return e?(n.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t&&(i[t]=i[t]?i[t]+", "+r:r)}),i):i}},function(e,t,r){"use strict";var n=r(121);e.exports=n.isStandardBrowserEnv()?function(){function e(e){var t=e;return r&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,r=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(r){var o=n.isString(r)?e(r):r;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t){"use strict";function r(){this.message="String contains an invalid character"}function n(e){for(var t,n,i=String(e),s="",a=0,u=o;i.charAt(0|a)||(u="=",a%1);s+=u.charAt(63&t>>8-a%1*8)){if(n=i.charCodeAt(a+=.75),n>255)throw new r;t=t<<8|n}return s}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=n},function(e,t,r){"use strict";var n=r(121);e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,r,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(i)&&a.push("domain="+i),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,r){"use strict";var n=r(121),o=r(130),i=r(133),s=r(139),a=r(140),u=r(141).http,c=r(141).https,f=r(143),p=r(155),l=r(156),d=r(157).Buffer,h=r(131),v=r(132);e.exports=function(e){return new Promise(function(t,r){var m,y=e.data,b=e.headers,g=!1;if(b["User-Agent"]||b["user-agent"]||(b["User-Agent"]="axios/"+l.version),y&&!n.isStream(y)){if(n.isArrayBuffer(y))y=new d(new Uint8Array(y));else{if(!n.isString(y))return r(h("Data after transformation must be a string, an ArrayBuffer, or a Stream",e));y=new d(y,"utf-8")}b["Content-Length"]=y.length}var x=void 0;if(e.auth){var j=e.auth.username||"",w=e.auth.password||"";x=j+":"+w}var _=f.parse(e.url);if(!x&&_.auth){var A=_.auth.split(":"),E=A[0]||"",k=A[1]||"";x=E+":"+k}var O={hostname:_.hostname,port:_.port,path:i(_.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method,headers:b,agent:e.agent,auth:x};e.proxy&&(O.host=e.proxy.host,O.port=e.proxy.port,O.path=_.protocol+"//"+_.hostname+O.path);var S;0===e.maxRedirects?S="https:"===_.protocol?a:s:(e.maxRedirects&&(O.maxRedirects=e.maxRedirects),S="https:"===_.protocol?c:u);var C=S.request(O,function(n){if(!g){clearTimeout(m),m=null;var i=n;switch(n.headers["content-encoding"]){case"gzip":case"compress":case"deflate":i=i.pipe(p.createUnzip()),delete n.headers["content-encoding"]}var s={status:n.statusCode,statusText:n.statusMessage,headers:n.headers,config:e,request:C};if("stream"===e.responseType)s.data=i,o(t,r,s);else{var a=[];i.on("data",function(t){a.push(t),e.maxContentLength>-1&&d.concat(a).length>e.maxContentLength&&r(h("maxContentLength size of "+e.maxContentLength+" exceeded",e))}),i.on("error",function(t){g||r(v(t,e))}),i.on("end",function(){var n=d.concat(a);"arraybuffer"!==e.responseType&&(n=n.toString("utf8")),s.data=n,o(t,r,s)})}}});C.on("error",function(t){g||r(v(t,e))}),e.timeout&&!m&&(m=setTimeout(function(){C.abort(),r(h("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED")),g=!0},e.timeout)),n.isStream(y)?y.pipe(C):C.end(y)})}},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t,r){e.exports=r(142)({http:r(139),https:r(140)})},function(e,t,r){"use strict";function n(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function o(e){return e.statusCode>=300&&e.statusCode<=399&&"location"in e.headers}function i(e){for(var t=0,r=f.length;t<r;++t)e[f[t]]=null}var s=r(143),a=r(144)("follow-redirects"),u=r(153),c=r(154);e.exports=function(e){function t(e){function t(f){if(f){var d=s.format(e);if(l.unshift(d),!o(f))return f.fetchedUrls=l,e.userCallback(f);c(f);var h=s.resolve(d,f.headers.location);a("redirecting to",h),i(e),n(e,s.parse(h))}if(l.length>e.maxRedirects){var v=new Error("Max redirects exceeded.");return u(v)}e.nativeProtocol=p[e.protocol],e.defaultRequest=r;var m=(e.makeRequest||r)(e,t,f);return f&&m.on("error",u),m}function r(e,t,r){r&&(e.method="GET");var n=e.nativeProtocol.request(e,t);return r&&n.end(),n}function u(e){f.emit("error",e)}var f,l=[];return f=t()}function r(e,r){var n=e+":",o=function(){};o.prototype=p[n]=r,o=new o,l[e]=o,o.request=function(e,r){return t(f(e,r,n))},o.get=function(e,r){e=f(e,r,n);var o=t(e);return o.end(),o}}function f(e,t,r){return u.equal(typeof t,"function","callback must be a function"),"string"==typeof e?(e=s.parse(e),e.maxRedirects=l.maxRedirects):e=n({maxRedirects:l.maxRedirects,protocol:r},e),u.equal(e.protocol,r,"protocol mismatch"),e.protocol=r,e.userCallback=t,a("options",e),e}var p={},l={maxRedirects:5};for(var d in e)e.hasOwnProperty(d)&&(u(/^[A-Z][A-Z\+\-\.]*$/i.test(d),JSON.stringify(d)+" is not a valid scheme name"),r(d,e[d]));return l};var f=["protocol","slashes","auth","host","port","hostname","hash","search","query","pathname","path","href"]},function(e,t){e.exports=require("url")},function(e,t,r){"undefined"!=typeof process&&"renderer"===process.type?e.exports=r(145):e.exports=r(148)},function(e,t,r){function n(){return"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function o(){var e=arguments,r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),!r)return e;var n="color: "+this.color;e=[e[0],n,"color: inherit"].concat(Array.prototype.slice.call(e,1));var o=0,i=0;return e[0].replace(/%[a-z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,n),e}function i(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(r){}}function a(){try{return t.storage.debug}catch(e){}if("undefined"!=typeof process&&"env"in process)return process.env.DEBUG}function u(){try{return window.localStorage}catch(e){}}t=e.exports=r(146),t.log=i,t.formatArgs=o,t.save=s,t.load=a,t.useColors=n,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(a())},function(e,t,r){function n(){return t.colors[f++%t.colors.length]}function o(e){function r(){}function o(){var e=o,r=+new Date,i=r-(c||r);e.diff=i,e.prev=c,e.curr=r,c=r,null==e.useColors&&(e.useColors=t.useColors()),null==e.color&&e.useColors&&(e.color=n());for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&(s=["%o"].concat(s));var u=0;s[0]=s[0].replace(/%([a-z%])/g,function(r,n){if("%%"===r)return r;u++;var o=t.formatters[n];if("function"==typeof o){var i=s[u];r=o.call(e,i),s.splice(u,1),u--}return r}),s=t.formatArgs.apply(e,s);var f=o.log||t.log||console.log.bind(console);f.apply(e,s)}r.enabled=!1,o.enabled=!0;var i=t.enabled(e)?o:r;return i.namespace=e,i}function i(e){t.save(e);for(var r=(e||"").split(/[\s,]+/),n=r.length,o=0;o<n;o++)r[o]&&(e=r[o].replace(/[\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))}function s(){t.enable("")}function a(e){var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=o.debug=o,t.coerce=u,t.disable=s,t.enable=i,t.enabled=a,t.humanize=r(147),t.names=[],t.skips=[],t.formatters={};var c,f=0},function(e,t){function r(e){if(e=String(e),!(e.length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*f;case"days":case"day":case"d":return r*c;case"hours":case"hour":case"hrs":case"hr":case"h":return r*u;case"minutes":case"minute":case"mins":case"min":case"m":return r*a;case"seconds":case"second":case"secs":case"sec":case"s":return r*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function n(e){return e>=c?Math.round(e/c)+"d":e>=u?Math.round(e/u)+"h":e>=a?Math.round(e/a)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function o(e){return i(e,c,"day")||i(e,u,"hour")||i(e,a,"minute")||i(e,s,"second")||e+" ms"}function i(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}var s=1e3,a=60*s,u=60*a,c=24*u,f=365.25*c;e.exports=function(e,t){t=t||{};var i=typeof e;if("string"===i&&e.length>0)return r(e);if("number"===i&&isNaN(e)===!1)return t["long"]?o(e):n(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,r){function n(){var e=(process.env.DEBUG_COLORS||"").trim().toLowerCase();return 0===e.length?c.isatty(p):"0"!==e&&"no"!==e&&"false"!==e&&"disabled"!==e}function o(){for(var e=arguments.length,r=new Array(e),n=this.useColors,o=this.namespace,i=0;i<e;i++)r[i]=arguments[i];if(n){var s=this.color;r[0]=" [3"+s+";1m"+o+" [0m"+r[0],r.push("[3"+s+"m+"+t.humanize(this.diff)+"[0m")}else r[0]=(new Date).toUTCString()+" "+o+" "+r[0];return r}function i(){return l.write(f.format.apply(this,arguments)+"\n")}function s(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e}function a(){return process.env.DEBUG}function u(e){var t,n=process.binding("tty_wrap");switch(n.guessHandleType(e)){case"TTY":t=new c.WriteStream(e),t._type="tty",t._handle&&t._handle.unref&&t._handle.unref();break;case"FILE":var o=r(151);t=new o.SyncWriteStream(e,{autoClose:!1}),t._type="fs";break;case"PIPE":case"TCP":var i=r(152);t=new i.Socket({fd:e,readable:!1,writable:!0}),t.readable=!1,t.read=null,t._type="pipe",t._handle&&t._handle.unref&&t._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return t.fd=e,t._isStdio=!0,t}var c=r(149),f=r(150);t=e.exports=r(146),t.log=i,t.formatArgs=o,t.save=s,t.load=a,t.useColors=n,t.colors=[6,2,3,4,5,1];var p=parseInt(process.env.DEBUG_FD,10)||2,l=1===p?process.stdout:2===p?process.stderr:u(p),d=4===f.inspect.length?function(e,t){return f.inspect(e,void 0,void 0,t)}:function(e,t){return f.inspect(e,{colors:t})};t.formatters.o=t.formatters.O=function(e){return d(e,this.useColors).replace(/\s*\n\s*/g," ")},t.enable(a())},function(e,t){e.exports=require("tty")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("assert")},function(e,t){e.exports=function(e){if(e.readable&&"function"==typeof e.resume){var t=e._readableState;if(!t||0===t.pipesCount)try{e.resume()}catch(r){console.error("Got error: "+r)}}}},function(e,t){e.exports=require("zlib")},function(e,t){e.exports={_args:[[{raw:"axios@^0.13.0",scope:null,escapedName:"axios",name:"axios",rawSpec:"^0.13.0",spec:">=0.13.0 <0.14.0",type:"range"},"C:\\VTEX\\SourceCodes\\VTEX\\splunkevents-js"]],_from:"axios@>=0.13.0 <0.14.0",_id:"axios@0.13.1",_inCache:!0,_installable:!0,_location:"/axios",_nodeVersion:"3.3.1",_npmOperationalInternal:{host:"packages-12-west.internal.npmjs.com",tmp:"tmp/axios-0.13.1.tgz_1468689204636_0.7909611663781106"},_npmUser:{name:"mzabriskie",email:"mzabriskie@gmail.com"},_npmVersion:"3.9.5",_phantomChildren:{},_requested:{raw:"axios@^0.13.0",scope:null,escapedName:"axios",name:"axios",rawSpec:"^0.13.0",spec:">=0.13.0 <0.14.0",type:"range"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/axios/-/axios-0.13.1.tgz",_shasum:"3e67abfe4333bc9d2d5fe6fbd13b4694eafc8df8",_shrinkwrap:null,_spec:"axios@^0.13.0",_where:"C:\\VTEX\\SourceCodes\\VTEX\\splunkevents-js",author:{name:"Matt Zabriskie"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},bugs:{url:"https://github.com/mzabriskie/axios/issues"},dependencies:{"follow-redirects":"0.0.7"},description:"Promise based HTTP client for the browser and node.js",devDependencies:{coveralls:"^2.11.9","es6-promise":"^3.2.1",grunt:"0.4.5","grunt-banner":"0.6.0","grunt-cli":"0.1.13","grunt-contrib-clean":"1.0.0","grunt-contrib-nodeunit":"1.0.0","grunt-contrib-watch":"0.6.1","grunt-eslint":"18.0.0","grunt-karma":"0.12.1","grunt-ts":"5.3.2","grunt-webpack":"1.0.11","istanbul-instrumenter-loader":"^0.2.0","jasmine-core":"^2.4.1",karma:"^0.13.22","karma-chrome-launcher":"^1.0.1","karma-coverage":"^1.0.0","karma-firefox-launcher":"^1.0.0","karma-jasmine":"^1.0.2","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-phantomjs-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.0.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"3.4.1",minimist:"^1.2.0","phantomjs-prebuilt":"^2.1.7",sinon:"^1.17.4","url-search-params":"^0.5.0",webpack:"^1.13.1","webpack-dev-server":"^1.14.1"},directories:{},dist:{shasum:"3e67abfe4333bc9d2d5fe6fbd13b4694eafc8df8",tarball:"https://registry.npmjs.org/axios/-/axios-0.13.1.tgz"},gitHead:"377efb89aed819ed1cd416b69f057632ad5664a5",homepage:"https://github.com/mzabriskie/axios",keywords:["xhr","http","ajax","promise","node"],license:"MIT",main:"index.js",maintainers:[{name:"mzabriskie",email:"mzabriskie@gmail.com"},{name:"nickuraltsev",email:"nick.uraltsev@gmail.com"}],name:"axios",optionalDependencies:{},readme:"ERROR: No README data found!",repository:{type:"git",url:"git+https://github.com/mzabriskie/axios.git"},scripts:{build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},typescript:{definition:"./axios.d.ts"},version:"0.13.1"}},function(e,t){e.exports=require("buffer")},function(e,t){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t){"use strict";e.exports=function(e,t){return e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,"")}},function(e,t){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}}])}); | ||
//# sourceMappingURL=splunk-events.min.js.map |
@@ -1,3 +0,3 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("splunk-events",[],e):"object"==typeof exports?exports["splunk-events"]=e():t["splunk-events"]=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(1),c=r(a),s=n(13),f=r(s),p=n(116),l=r(p),h=n(119),d=r(h),v=function(){function t(){o(this,t)}return u(t,[{key:"config",value:function(t){this.events=[],this.pendingEvents=[],this.isSendingEvents=!1,this.endpoint=t.endpoint,this.token=t.token,this.account=t.account,this.injectAditionalInfo=void 0!==t.injectAditionalInfo&&t.injectAditionalInfo,this.autoFlush=void 0===t.autoFlush||t.autoFlush,this.autoRetryFlush=void 0===t.autoRetryFlush||t.autoRetryFlush,this.source="splunkeventsjs",this.path=void 0!==t.path?t.path:"/services/collector/event",this.debug=void 0!==t.debug&&t.debug,this.debounceTime=void 0!==t.debounceTime?t.debounceTime:2e3,this.debounceMaxWait=void 0!==t.debounceMaxWait?t.debounceMaxWait:5e3,this.debouncedFlush=(0,c["default"])(this.flush,this.debounceTime,{},!1,this.debounceMaxWait),this.axiosInstance=d["default"].create({baseURL:""+this.endpoint,headers:{Authorization:"Splunk "+this.token},responseType:"json"})}},{key:"logEvent",value:function(t,e,n,r,o,i){this.validateEvent(i);var u=e+","+n+","+r+","+o+" ";u+=this.parseEventData(i),this.injectAditionalInfo&&(u+=this.getAdditionalInfo());var a={sourcetype:this.source,host:t,event:u};this.events.push(a),this.autoFlush&&this.debouncedFlush()}},{key:"parseEventData",value:function(t){var e="";for(var n in t)if(t.hasOwnProperty(n))switch(i(t[n])){case"string":e+=n+'="'+t[n].replace(/\"/g,"")+'" ';break;case"boolean":case"number":e+=n+"="+t[n]+" ";break;default:throw"Event property must be string, number or boolean"}return e}},{key:"validateEvent",value:function(t){if(null===t)throw"Event must not be null";if(void 0===t)throw"Event must not be undefined";if("object"!==("undefined"==typeof t?"undefined":i(t)))throw"Event must be a string"}},{key:"getAdditionalInfo",value:function(){if("undefined"==typeof navigator||"undefined"==typeof window)return"";var t=window.screen?window.screen:{},e=window.location?window.location:{};return'additional_info="'+navigator.userAgent.replace(/\,/g,";")+","+((navigator.browserLanguage||navigator.language)+",")+(navigator.platform+","+(t.availWidth||"-")+","+(t.availHeight||"-")+","+e.pathname+",")+(e.protocol.replace(":","")+","+(e.hash||"-")+'"')}},{key:"flush",value:function(){var t=this;if(this.isSendingEvents)return void this.debouncedFlush();this.validateConfig(),this.pendingEvents=(0,f["default"])(this.events),this.events=[],this.isSendingEvents=!0,this.debug&&console.log("sending "+this.pendingEvents.length+" events to splunk");var e=this.formatEventsForSplunkBatch(this.pendingEvents);this.axiosInstance.post(this.path,e).then(function(e){t.debug&&console.log(t.pendingEvents.length+" events successfuly sent to splunk"),t.pendingEvents=[],t.isSendingEvents=!1})["catch"](function(e){t.events=(0,l["default"])(t.events,t.pendingEvents),t.pendingEvents=[],t.isSendingEvents=!1,t.autoRetryFlush?(t.debug&&console.warn("Error sending events to splunk. Retrying in 5 seconds.",e),t.debouncedFlush()):t.debug&&console.warn("Error sending events to splunk.",e)})}},{key:"formatEventsForSplunkBatch",value:function(t){for(var e="",n=0;n<t.length;n++)e+="\n"+JSON.stringify(t[n])+"\n";return e}},{key:"validateConfig",value:function(){if(null===this.token)throw"Token must not be null";if(void 0===this.token)throw"Token must not be undefined";if(null===this.endpoint)throw"endpoint must not be null";if(void 0===this.endpoint)throw"endpoint must not be undefined"}}]),t}();e["default"]=v,t.exports=e["default"]},function(t,e,n){function r(t,e,n){function r(e){var n=x,r=g;return x=g=void 0,A=e,j=t.apply(r,n)}function f(t){return A=t,w=setTimeout(h,e),E?r(t):j}function p(t){var n=t-_,r=t-A,o=e-n;return O?s(o,m-r):o}function l(t){var n=t-_,r=t-A;return void 0===_||n>=e||n<0||O&&r>=m}function h(){var t=i();return l(t)?d(t):void(w=setTimeout(h,p(t)))}function d(t){return w=void 0,S&&x?r(t):(x=g=void 0,j)}function v(){void 0!==w&&clearTimeout(w),A=0,x=_=g=w=void 0}function y(){return void 0===w?j:d(i())}function b(){var t=i(),n=l(t);if(x=arguments,g=this,_=t,n){if(void 0===w)return f(_);if(O)return w=setTimeout(h,e),r(_)}return void 0===w&&(w=setTimeout(h,e)),j}var x,g,m,j,w,_,A=0,E=!1,O=!1,S=!0;if("function"!=typeof t)throw new TypeError(a);return e=u(e)||0,o(n)&&(E=!!n.leading,O="maxWait"in n,m=O?c(u(n.maxWait)||0,e):m,S="trailing"in n?!!n.trailing:S),b.cancel=v,b.flush=y,b}var o=n(2),i=n(3),u=n(6),a="Expected a function",c=Math.max,s=Math.min;t.exports=r},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){var r=n(4),o=function(){return r.Date.now()};t.exports=o},function(t,e,n){var r=n(5),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,function(){return this}())},function(t,e,n){function r(t){if("number"==typeof t)return t;if(i(t))return u;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=s.test(t);return n||f.test(t)?p(t.slice(2),n?2:8):c.test(t)?u:+t}var o=n(2),i=n(7),u=NaN,a=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;t.exports=r},function(t,e,n){function r(t){return"symbol"==typeof t||i(t)&&o(t)==u}var o=n(8),i=n(12),u="[object Symbol]";t.exports=r},function(t,e,n){function r(t){return null==t?void 0===t?c:a:(t=Object(t),s&&s in t?i(t):u(t))}var o=n(9),i=n(10),u=n(11),a="[object Null]",c="[object Undefined]",s=o?o.toStringTag:void 0;t.exports=r},function(t,e,n){var r=n(4),o=r.Symbol;t.exports=o},function(t,e,n){function r(t){var e=u.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(o){}var i=a.call(t);return r&&(e?t[c]=n:delete t[c]),i}var o=n(9),i=Object.prototype,u=i.hasOwnProperty,a=i.toString,c=o?o.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return o.call(t)}var r=Object.prototype,o=r.toString;t.exports=n},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){function r(t){return o(t,i)}var o=n(14),i=4;t.exports=r},function(t,e,n){function r(t,e,n,S,T,k){var F,C=e&_,U=e&A,I=e&E;if(n&&(F=T?n(t,S,T,k):n(t)),void 0!==F)return F;if(!j(t))return t;var z=g(t);if(z){if(F=y(t),!C)return f(t,F)}else{var D=v(t),N=D==R||D==P;if(m(t))return s(t,C);if(D==B||D==O||N&&!T){if(F=U||N?{}:x(t),!C)return U?l(t,c(F,t)):p(t,a(F,t))}else{if(!Y[D])return T?t:{};F=b(t,D,r,C)}}k||(k=new o);var L=k.get(t);if(L)return L;k.set(t,F);var M=I?U?d:h:U?keysIn:w,q=z?void 0:M(t);return i(q||t,function(o,i){q&&(i=o,o=t[i]),u(F,i,r(o,e,n,i,t,k))}),F}var o=n(15),i=n(52),u=n(53),a=n(56),c=n(78),s=n(82),f=n(83),p=n(84),l=n(87),h=n(91),d=n(93),v=n(94),y=n(99),b=n(100),x=n(114),g=n(63),m=n(64),j=n(2),w=n(58),_=1,A=2,E=4,O="[object Arguments]",S="[object Array]",T="[object Boolean]",k="[object Date]",F="[object Error]",R="[object Function]",P="[object GeneratorFunction]",C="[object Map]",U="[object Number]",B="[object Object]",I="[object RegExp]",z="[object Set]",D="[object String]",N="[object Symbol]",L="[object WeakMap]",M="[object ArrayBuffer]",q="[object DataView]",$="[object Float32Array]",W="[object Float64Array]",V="[object Int8Array]",H="[object Int16Array]",X="[object Int32Array]",J="[object Uint8Array]",G="[object Uint8ClampedArray]",K="[object Uint16Array]",Q="[object Uint32Array]",Y={};Y[O]=Y[S]=Y[M]=Y[q]=Y[T]=Y[k]=Y[$]=Y[W]=Y[V]=Y[H]=Y[X]=Y[C]=Y[U]=Y[B]=Y[I]=Y[z]=Y[D]=Y[N]=Y[J]=Y[G]=Y[K]=Y[Q]=!0,Y[F]=Y[R]=Y[L]=!1,t.exports=r},function(t,e,n){function r(t){var e=this.__data__=new o(t);this.size=e.size}var o=n(16),i=n(24),u=n(25),a=n(26),c=n(27),s=n(28);r.prototype.clear=i,r.prototype["delete"]=u,r.prototype.get=a,r.prototype.has=c,r.prototype.set=s,t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(17),i=n(18),u=n(21),a=n(22),c=n(23);r.prototype.clear=o,r.prototype["delete"]=i,r.prototype.get=u,r.prototype.has=a,r.prototype.set=c,t.exports=r},function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,e,n){function r(t){var e=this.__data__,n=o(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():u.call(e,n,1),--this.size,!0}var o=n(19),i=Array.prototype,u=i.splice;t.exports=r},function(t,e,n){function r(t,e){for(var n=t.length;n--;)if(o(t[n][0],e))return n;return-1}var o=n(20);t.exports=r},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){function r(t){var e=this.__data__,n=o(e,t);return n<0?void 0:e[n][1]}var o=n(19);t.exports=r},function(t,e,n){function r(t){return o(this.__data__,t)>-1}var o=n(19);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var o=n(19);t.exports=r},function(t,e,n){function r(){this.__data__=new o,this.size=0}var o=n(16);t.exports=r},function(t,e){function n(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function r(t,e){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!i||r.length<a-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new u(r)}return n.set(t,e),this.size=n.size,this}var o=n(16),i=n(29),u=n(37),a=200;t.exports=r},function(t,e,n){var r=n(30),o=n(4),i=r(o,"Map");t.exports=i},function(t,e,n){function r(t,e){var n=i(t,e);return o(n)?n:void 0}var o=n(31),i=n(36);t.exports=r},function(t,e,n){function r(t){if(!u(t)||i(t))return!1;var e=o(t)?d:s;return e.test(a(t))}var o=n(32),i=n(33),u=n(2),a=n(35),c=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,f=Function.prototype,p=Object.prototype,l=f.toString,h=p.hasOwnProperty,d=RegExp("^"+l.call(h).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},function(t,e,n){function r(t){if(!i(t))return!1;var e=o(t);return e==a||e==c||e==u||e==s}var o=n(8),i=n(2),u="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",s="[object Proxy]";t.exports=r},function(t,e,n){function r(t){return!!i&&i in t}var o=n(34),i=function(){var t=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=r},function(t,e,n){var r=n(4),o=r["__core-js_shared__"];t.exports=o},function(t,e){function n(t){if(null!=t){try{return o.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var r=Function.prototype,o=r.toString;t.exports=n},function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(38),i=n(46),u=n(49),a=n(50),c=n(51);r.prototype.clear=o,r.prototype["delete"]=i,r.prototype.get=u,r.prototype.has=a,r.prototype.set=c,t.exports=r},function(t,e,n){function r(){this.size=0,this.__data__={hash:new o,map:new(u||i),string:new o}}var o=n(39),i=n(16),u=n(29);t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(40),i=n(42),u=n(43),a=n(44),c=n(45);r.prototype.clear=o,r.prototype["delete"]=i,r.prototype.get=u,r.prototype.has=a,r.prototype.set=c,t.exports=r},function(t,e,n){function r(){this.__data__=o?o(null):{},this.size=0}var o=n(41);t.exports=r},function(t,e,n){var r=n(30),o=r(Object,"create");t.exports=o},function(t,e){function n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=n},function(t,e,n){function r(t){var e=this.__data__;if(o){var n=e[t];return n===i?void 0:n}return a.call(e,t)?e[t]:void 0}var o=n(41),i="__lodash_hash_undefined__",u=Object.prototype,a=u.hasOwnProperty;t.exports=r},function(t,e,n){function r(t){var e=this.__data__;return o?void 0!==e[t]:u.call(e,t)}var o=n(41),i=Object.prototype,u=i.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=o&&void 0===e?i:e,this}var o=n(41),i="__lodash_hash_undefined__";t.exports=r},function(t,e,n){function r(t){var e=o(this,t)["delete"](t);return this.size-=e?1:0,e}var o=n(47);t.exports=r},function(t,e,n){function r(t,e){var n=t.__data__;return o(e)?n["string"==typeof e?"string":"hash"]:n.map}var o=n(48);t.exports=r},function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},function(t,e,n){function r(t){return o(this,t).get(t)}var o=n(47);t.exports=r},function(t,e,n){function r(t){return o(this,t).has(t)}var o=n(47);t.exports=r},function(t,e,n){function r(t,e){var n=o(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var o=n(47);t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}t.exports=n},function(t,e,n){function r(t,e,n){var r=t[e];a.call(t,e)&&i(r,n)&&(void 0!==n||e in t)||o(t,e,n)}var o=n(54),i=n(20),u=Object.prototype,a=u.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e,n){"__proto__"==e&&o?o(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var o=n(55);t.exports=r},function(t,e,n){var r=n(30),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=o},function(t,e,n){function r(t,e){return t&&o(e,i(e),t)}var o=n(57),i=n(58);t.exports=r},function(t,e,n){function r(t,e,n,r){var u=!n;n||(n={});for(var a=-1,c=e.length;++a<c;){var s=e[a],f=r?r(n[s],t[s],s,n,t):void 0;void 0===f&&(f=t[s]),u?i(n,s,f):o(n,s,f)}return n}var o=n(53),i=n(54);t.exports=r},function(t,e,n){function r(t){return u(t)?o(t):i(t)}var o=n(59),i=n(73),u=n(77);t.exports=r},function(t,e,n){function r(t,e){var n=u(t),r=!n&&i(t),f=!n&&!r&&a(t),l=!n&&!r&&!f&&s(t),h=n||r||f||l,d=h?o(t.length,String):[],v=d.length;for(var y in t)!e&&!p.call(t,y)||h&&("length"==y||f&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,v))||d.push(y);return d}var o=n(60),i=n(61),u=n(63),a=n(64),c=n(67),s=n(68),f=Object.prototype,p=f.hasOwnProperty;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}t.exports=n},function(t,e,n){var r=n(62),o=n(12),i=Object.prototype,u=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return o(t)&&u.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,e,n){function r(t){return i(t)&&o(t)==u}var o=n(8),i=n(12),u="[object Arguments]";t.exports=r},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){(function(t){var r=n(4),o=n(66),i="object"==typeof e&&e&&!e.nodeType&&e,u=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=u&&u.exports===i,c=a?r.Buffer:void 0,s=c?c.isBuffer:void 0,f=s||o;t.exports=f}).call(e,n(65)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){function n(){return!1}t.exports=n},function(t,e){function n(t,e){return e=null==e?r:e,!!e&&("number"==typeof t||o.test(t))&&t>-1&&t%1==0&&t<e}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,e,n){var r=n(69),o=n(71),i=n(72),u=i&&i.isTypedArray,a=u?o(u):r;t.exports=a},function(t,e,n){function r(t){return u(t)&&i(t.length)&&!!R[o(t)]}var o=n(8),i=n(70),u=n(12),a="[object Arguments]",c="[object Array]",s="[object Boolean]",f="[object Date]",p="[object Error]",l="[object Function]",h="[object Map]",d="[object Number]",v="[object Object]",y="[object RegExp]",b="[object Set]",x="[object String]",g="[object WeakMap]",m="[object ArrayBuffer]",j="[object DataView]",w="[object Float32Array]",_="[object Float64Array]",A="[object Int8Array]",E="[object Int16Array]",O="[object Int32Array]",S="[object Uint8Array]",T="[object Uint8ClampedArray]",k="[object Uint16Array]",F="[object Uint32Array]",R={};R[w]=R[_]=R[A]=R[E]=R[O]=R[S]=R[T]=R[k]=R[F]=!0,R[a]=R[c]=R[m]=R[s]=R[j]=R[f]=R[p]=R[l]=R[h]=R[d]=R[v]=R[y]=R[b]=R[x]=R[g]=!1,t.exports=r},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e,n){(function(t){var r=n(5),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,u=i&&i.exports===o,a=u&&r.process,c=function(){try{return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c}).call(e,n(65)(t))},function(t,e,n){function r(t){if(!o(t))return i(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}var o=n(74),i=n(75),u=Object.prototype,a=u.hasOwnProperty;t.exports=r},function(t,e){function n(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||r;return t===n}var r=Object.prototype;t.exports=n},function(t,e,n){var r=n(76),o=r(Object.keys,Object);t.exports=o},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){function r(t){return null!=t&&i(t.length)&&!o(t)}var o=n(32),i=n(70);t.exports=r},function(t,e,n){function r(t,e){return t&&o(e,i(e),t)}var o=n(57),i=n(79);t.exports=r},function(t,e,n){function r(t){return u(t)?o(t,!0):i(t)}var o=n(59),i=n(80),u=n(77);t.exports=r},function(t,e,n){function r(t){if(!o(t))return u(t);var e=i(t),n=[];for(var r in t)("constructor"!=r||!e&&c.call(t,r))&&n.push(r);return n}var o=n(2),i=n(74),u=n(81),a=Object.prototype,c=a.hasOwnProperty;t.exports=r},function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},function(t,e,n){(function(t){function r(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}var o=n(4),i="object"==typeof e&&e&&!e.nodeType&&e,u=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=u&&u.exports===i,c=a?o.Buffer:void 0,s=c?c.allocUnsafe:void 0;t.exports=r}).call(e,n(65)(t))},function(t,e){function n(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}t.exports=n},function(t,e,n){function r(t,e){return o(t,i(t),e)}var o=n(57),i=n(85);t.exports=r},function(t,e,n){var r=n(76),o=n(86),i=Object.getOwnPropertySymbols,u=i?r(i,Object):o;t.exports=u},function(t,e){function n(){return[]}t.exports=n},function(t,e,n){function r(t,e){return o(t,i(t),e)}var o=n(57),i=n(88);t.exports=r},function(t,e,n){var r=n(89),o=n(90),i=n(85),u=n(86),a=Object.getOwnPropertySymbols,c=a?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:u;t.exports=c},function(t,e){function n(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}t.exports=n},function(t,e,n){var r=n(76),o=r(Object.getPrototypeOf,Object);t.exports=o},function(t,e,n){function r(t){return o(t,u,i)}var o=n(92),i=n(85),u=n(58);t.exports=r},function(t,e,n){function r(t,e,n){var r=e(t);return i(t)?r:o(r,n(t))}var o=n(89),i=n(63);t.exports=r},function(t,e,n){function r(t){return o(t,u,i)}var o=n(92),i=n(88),u=n(79);t.exports=r},function(t,e,n){var r=n(95),o=n(29),i=n(96),u=n(97),a=n(98),c=n(8),s=n(35),f="[object Map]",p="[object Object]",l="[object Promise]",h="[object Set]",d="[object WeakMap]",v="[object DataView]",y=s(r),b=s(o),x=s(i),g=s(u),m=s(a),j=c;(r&&j(new r(new ArrayBuffer(1)))!=v||o&&j(new o)!=f||i&&j(i.resolve())!=l||u&&j(new u)!=h||a&&j(new a)!=d)&&(j=function(t){var e=c(t),n=e==p?t.constructor:void 0,r=n?s(n):"";if(r)switch(r){case y:return v;case b:return f;case x:return l;case g:return h;case m:return d}return e}),t.exports=j},function(t,e,n){var r=n(30),o=n(4),i=r(o,"DataView");t.exports=i},function(t,e,n){var r=n(30),o=n(4),i=r(o,"Promise");t.exports=i},function(t,e,n){var r=n(30),o=n(4),i=r(o,"Set");t.exports=i},function(t,e,n){var r=n(30),o=n(4),i=r(o,"WeakMap");t.exports=i},function(t,e){function n(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&o.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var r=Object.prototype,o=r.hasOwnProperty;t.exports=n},function(t,e,n){function r(t,e,n,r){var F=t.constructor;switch(e){case g:return o(t);case p:case l:return new F((+t));case m:return i(t,r);case j:case w:case _:case A:case E:case O:case S:case T:case k:return f(t,r);case h:return u(t,r,n);case d:case b:return new F(t);case v:return a(t);case y:return c(t,r,n);case x:return s(t)}}var o=n(101),i=n(103),u=n(104),a=n(108),c=n(109),s=n(112),f=n(113),p="[object Boolean]",l="[object Date]",h="[object Map]",d="[object Number]",v="[object RegExp]",y="[object Set]",b="[object String]",x="[object Symbol]",g="[object ArrayBuffer]",m="[object DataView]",j="[object Float32Array]",w="[object Float64Array]",_="[object Int8Array]",A="[object Int16Array]",E="[object Int32Array]",O="[object Uint8Array]",S="[object Uint8ClampedArray]",T="[object Uint16Array]",k="[object Uint32Array]";t.exports=r},function(t,e,n){function r(t){var e=new t.constructor(t.byteLength);return new o(e).set(new o(t)),e}var o=n(102);t.exports=r},function(t,e,n){var r=n(4),o=r.Uint8Array;t.exports=o},function(t,e,n){function r(t,e){var n=e?o(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var o=n(101);t.exports=r},function(t,e,n){function r(t,e,n){var r=e?n(u(t),a):u(t);return i(r,o,new t.constructor)}var o=n(105),i=n(106),u=n(107),a=1;t.exports=r},function(t,e){function n(t,e){return t.set(e[0],e[1]),t}t.exports=n},function(t,e){function n(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}t.exports=n},function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}t.exports=n},function(t,e){function n(t){var e=new t.constructor(t.source,r.exec(t));return e.lastIndex=t.lastIndex,e}var r=/\w*$/;t.exports=n},function(t,e,n){function r(t,e,n){var r=e?n(u(t),a):u(t);return i(r,o,new t.constructor)}var o=n(110),i=n(106),u=n(111),a=1;t.exports=r},function(t,e){function n(t,e){return t.add(e),t}t.exports=n},function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}t.exports=n},function(t,e,n){function r(t){return u?Object(u.call(t)):{}}var o=n(9),i=o?o.prototype:void 0,u=i?i.valueOf:void 0;t.exports=r},function(t,e,n){function r(t,e){var n=e?o(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var o=n(101);t.exports=r},function(t,e,n){function r(t){return"function"!=typeof t.constructor||u(t)?{}:o(i(t))}var o=n(115),i=n(90),u=n(74);t.exports=r},function(t,e,n){var r=n(2),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t,e,n){function r(){var t=arguments.length;if(!t)return[];for(var e=Array(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return o(a(n)?u(n):[n],i(e,1))}var o=n(89),i=n(117),u=n(83),a=n(63);t.exports=r},function(t,e,n){function r(t,e,n,u,a){var c=-1,s=t.length;for(n||(n=i),a||(a=[]);++c<s;){var f=t[c];e>0&&n(f)?e>1?r(f,e-1,n,u,a):o(a,f):u||(a[a.length]=f)}return a}var o=n(89),i=n(118);t.exports=r},function(t,e,n){function r(t){return u(t)||i(t)||!!(a&&t&&t[a])}var o=n(9),i=n(61),u=n(63),a=o?o.isConcatSpreadable:void 0;t.exports=r},function(t,e,n){t.exports=n(120)},function(t,e,n){"use strict";function r(t){var e=new u(t),n=i(u.prototype.request,e);return o.extend(n,u.prototype,e),o.extend(n,e),n}var o=n(121),i=n(122),u=n(123),a=t.exports=r();a.Axios=u,a.create=function(t){return r(t)},a.all=function(t){return Promise.all(t)},a.spread=n(141)},function(t,e,n){"use strict";function r(t){return"[object Array]"===_.call(t)}function o(t){return"[object ArrayBuffer]"===_.call(t)}function i(t){return"undefined"!=typeof FormData&&t instanceof FormData}function u(t){var e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function a(t){return"string"==typeof t}function c(t){return"number"==typeof t}function s(t){return"undefined"==typeof t}function f(t){return null!==t&&"object"==typeof t}function p(t){return"[object Date]"===_.call(t)}function l(t){return"[object File]"===_.call(t)}function h(t){return"[object Blob]"===_.call(t)}function d(t){return"[object Function]"===_.call(t)}function v(t){return f(t)&&d(t.pipe)}function y(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function b(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function g(t,e){if(null!==t&&"undefined"!=typeof t)if("object"==typeof t||r(t)||(t=[t]),r(t))for(var n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(null,t[i],i,t)}function m(){function t(t,n){"object"==typeof e[n]&&"object"==typeof t?e[n]=m(e[n],t):e[n]=t}for(var e={},n=0,r=arguments.length;n<r;n++)g(arguments[n],t);return e}function j(t,e,n){return g(e,function(e,r){n&&"function"==typeof e?t[r]=w(e,n):t[r]=e}),t}var w=n(122),_=Object.prototype.toString;t.exports={isArray:r,isArrayBuffer:o,isFormData:i,isArrayBufferView:u,isString:a,isNumber:c,isObject:f,isUndefined:s,isDate:p,isFile:l,isBlob:h,isFunction:d,isStream:v,isURLSearchParams:y,isStandardBrowserEnv:x,forEach:g,merge:m,extend:j,trim:b}},function(t,e){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";function r(t){this.defaults=i.merge(o,t),this.interceptors={request:new u,response:new u}}var o=n(124),i=n(121),u=n(126),a=n(127),c=n(139),s=n(140);r.prototype.request=function(t){"string"==typeof t&&(t=i.merge({url:arguments[0]},arguments[1])),t=i.merge(o,this.defaults,{method:"get"},t),t.baseURL&&!c(t.url)&&(t.url=s(t.baseURL,t.url));var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},i.forEach(["delete","get","head"],function(t){r.prototype[t]=function(e,n){return this.request(i.merge(n||{},{method:t,url:e}))}}),i.forEach(["post","put","patch"],function(t){r.prototype[t]=function(e,n,r){return this.request(i.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=r},function(t,e,n){"use strict";function r(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var o=n(121),i=n(125),u=/^\)\]\}',?\n/,a={"Content-Type":"application/x-www-form-urlencoded"};t.exports={transformRequest:[function(t,e){return i(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(r(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)?(r(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t){t=t.replace(u,"");try{t=JSON.parse(t)}catch(e){}}return t}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:o.merge(a),post:o.merge(a),put:o.merge(a)},timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}}},function(t,e,n){"use strict";var r=n(121);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";function r(){this.handlers=[]}var o=n(121);r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){o.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=r},function(t,e,n){(function(e){"use strict";var r=n(121),o=n(129);t.exports=function(t){t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]});var i;return"function"==typeof t.adapter?i=t.adapter:"undefined"!=typeof XMLHttpRequest?i=n(130):"undefined"!=typeof e&&(i=n(130)),Promise.resolve(t).then(i).then(function(e){return e.data=o(e.data,e.headers,t.transformResponse),e},function(e){return e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse)),Promise.reject(e)})}}).call(e,n(128))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(f===setTimeout)return setTimeout(t,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function i(t){if(p===clearTimeout)return clearTimeout(t);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(t);try{return p(t)}catch(e){try{return p.call(null,t)}catch(e){return p.call(this,t)}}}function u(){v&&h&&(v=!1,h.length?d=h.concat(d):y=-1,d.length&&a())}function a(){if(!v){var t=o(u);v=!0;for(var e=d.length;e;){for(h=d,d=[];++y<e;)h&&h[y].run();y=-1,e=d.length}h=null,v=!1,i(t)}}function c(t,e){this.fun=t,this.array=e}function s(){}var f,p,l=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(t){f=n}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(t){p=r}}();var h,d=[],v=!1,y=-1;l.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new c(t,e)),1!==d.length||v||o(a)},c.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=s,l.addListener=s,l.once=s,l.off=s,l.removeListener=s,l.removeAllListeners=s,l.emit=s,l.binding=function(t){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(t){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(121);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){(function(e){"use strict";var r=n(121),o=n(131),i=n(134),u=n(135),a=n(136),c=n(132),s="undefined"!=typeof window&&window.btoa||n(137);t.exports=function(t){return new Promise(function(f,p){var l=t.data,h=t.headers;r.isFormData(l)&&delete h["Content-Type"];var d=new XMLHttpRequest,v="onreadystatechange",y=!1;if("test"===e.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||a(t.url)||(d=new window.XDomainRequest,v="onload",y=!0,d.onprogress=function(){},d.ontimeout=function(){}),t.auth){var b=t.auth.username||"",x=t.auth.password||"";h.Authorization="Basic "+s(b+":"+x)}if(d.open(t.method.toUpperCase(),i(t.url,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d[v]=function(){if(d&&(4===d.readyState||y)&&0!==d.status){ | ||
var e="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null,n=t.responseType&&"text"!==t.responseType?d.response:d.responseText,r={data:n,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:e,config:t,request:d};o(f,p,r),d=null}},d.onerror=function(){p(c("Network Error",t)),d=null},d.ontimeout=function(){p(c("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED")),d=null},r.isStandardBrowserEnv()){var g=n(138),m=t.withCredentials||a(t.url)?g.read(t.xsrfCookieName):void 0;m&&(h[t.xsrfHeaderName]=m)}if("setRequestHeader"in d&&r.forEach(h,function(t,e){"undefined"==typeof l&&"content-type"===e.toLowerCase()?delete h[e]:d.setRequestHeader(e,t)}),t.withCredentials&&(d.withCredentials=!0),t.responseType)try{d.responseType=t.responseType}catch(j){if("json"!==d.responseType)throw j}"function"==typeof t.progress&&("post"===t.method||"put"===t.method?d.upload.addEventListener("progress",t.progress):"get"===t.method&&d.addEventListener("progress",t.progress)),void 0===l&&(l=null),d.send(l)})}}).call(e,n(128))},function(t,e,n){"use strict";var r=n(132);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n)):t(n)}},function(t,e,n){"use strict";var r=n(133);t.exports=function(t,e,n,o){var i=new Error(t);return r(i,e,n,o)}},function(t,e){"use strict";t.exports=function(t,e,n,r){return t.config=e,n&&(t.code=n),t.response=r,t}},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(121);t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(o.isURLSearchParams(e))i=e.toString();else{var u=[];o.forEach(e,function(t,e){null!==t&&"undefined"!=typeof t&&(o.isArray(t)&&(e+="[]"),o.isArray(t)||(t=[t]),o.forEach(t,function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),u.push(r(e)+"="+r(t))}))}),i=u.join("&")}return i&&(t+=(t.indexOf("?")===-1?"?":"&")+i),t}},function(t,e,n){"use strict";var r=n(121);t.exports=function(t){var e,n,o,i={};return t?(r.forEach(t.split("\n"),function(t){o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e&&(i[e]=i[e]?i[e]+", "+n:n)}),i):i}},function(t,e,n){"use strict";var r=n(121);t.exports=r.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(o.setAttribute("href",e),e=o.href),o.setAttribute("href",e),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return e=t(window.location.href),function(n){var o=r.isString(n)?t(n):n;return o.protocol===e.protocol&&o.host===e.host}}():function(){return function(){return!0}}()},function(t,e){"use strict";function n(){this.message="String contains an invalid character"}function r(t){for(var e,r,i=String(t),u="",a=0,c=o;i.charAt(0|a)||(c="=",a%1);u+=c.charAt(63&e>>8-a%1*8)){if(r=i.charCodeAt(a+=.75),r>255)throw new n;e=e<<8|r}return u}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",t.exports=r},function(t,e,n){"use strict";var r=n(121);t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,o,i,u){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),u===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e){"use strict";t.exports=function(t,e){return t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,"")}},function(t,e){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("splunk-events",[],e):"object"==typeof exports?exports["splunk-events"]=e():t["splunk-events"]=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(1),c=r(u),s=n(13),a=r(s),f=n(116),p=r(f),l=n(119),h=r(l),d=function(){function t(){o(this,t)}return i(t,[{key:"config",value:function(t){this.events=[],this.pendingEvents=[],this.isSendingEvents=!1,this.endpoint=t.endpoint,this.token=t.token,this.index=t.index,this.injectAditionalInfo=void 0!==t.injectAditionalInfo&&t.injectAditionalInfo,this.autoFlush=void 0===t.autoFlush||t.autoFlush,this.autoRetryFlush=void 0===t.autoRetryFlush||t.autoRetryFlush,this.source=void 0!==t.source?t.source:"datasource",this.path=void 0!==t.path?t.path:"/services/collector/event",this.sourcetype=void 0!==t.sourcetype?t.sourcetype:"log",this.debug=void 0!==t.debug&&t.debug,this.debounceTime=void 0!==t.debounceTime?t.debounceTime:2e3,this.debounceMaxWait=void 0!==t.debounceMaxWait?t.debounceMaxWait:5e3,this.debouncedFlush=(0,c["default"])(this.flush,this.debounceTime,{},!1,this.debounceMaxWait),this.axiosInstance=h["default"].create({baseURL:""+this.endpoint,headers:{Authorization:"Splunk "+this.token},responseType:"json"})}},{key:"logEvent",value:function(t){this.validateEvent(t),this.injectAditionalInfo&&(t+=this.getAdditionalInfo());var e={source:this.source,event:t};this.events.push(e),this.autoFlush&&this.debouncedFlush()}},{key:"validateEvent",value:function(t){if(null===t)throw"Event must not be null";if(void 0===t)throw"Event must not be undefined";if("string"!=typeof t)throw"Event must be a string"}},{key:"getAdditionalInfo",value:function(){if("undefined"==typeof navigator)return""}},{key:"flush",value:function(){var t=this;if(this.isSendingEvents)return void this.debouncedFlush();this.validateConfig(),this.pendingEvents=(0,a["default"])(this.events),this.events=[],this.isSendingEvents=!0,this.debug&&console.log("sending "+this.pendingEvents.length+" events to splunk");var e=this.formatEventsForSplunkBatch(this.pendingEvents);this.axiosInstance.post(this.path,e).then(function(e){t.debug&&console.log(t.pendingEvents.length+" events successfuly sent to splunk"),t.pendingEvents=[],t.isSendingEvents=!1})["catch"](function(e){t.events=(0,p["default"])(t.events,t.pendingEvents),t.pendingEvents=[],t.isSendingEvents=!1,t.autoRetryFlush?(t.debug&&console.warn("Error sending events to splunk. Retrying in 5 seconds.",e),t.debouncedFlush()):t.debug&&console.warn("Error sending events to splunk.",e)})}},{key:"formatEventsForSplunkBatch",value:function(t){for(var e="",n=0;n<t.length;n++)e+=t[n]+"\r\n";return e}},{key:"validateConfig",value:function(){if(null===this.token)throw"Token must not be null";if(void 0===this.token)throw"Token must not be undefined";if(null===this.endpoint)throw"endpoint must not be null";if(void 0===this.endpoint)throw"endpoint must not be undefined"}}]),t}();e["default"]=d,t.exports=e["default"]},function(t,e,n){function r(t,e,n){function r(e){var n=x,r=g;return x=g=void 0,A=e,j=t.apply(r,n)}function f(t){return A=t,w=setTimeout(h,e),E?r(t):j}function p(t){var n=t-_,r=t-A,o=e-n;return O?a(o,m-r):o}function l(t){var n=t-_,r=t-A;return void 0===_||n>=e||n<0||O&&r>=m}function h(){var t=i();return l(t)?d(t):void(w=setTimeout(h,p(t)))}function d(t){return w=void 0,S&&x?r(t):(x=g=void 0,j)}function v(){void 0!==w&&clearTimeout(w),A=0,x=_=g=w=void 0}function y(){return void 0===w?j:d(i())}function b(){var t=i(),n=l(t);if(x=arguments,g=this,_=t,n){if(void 0===w)return f(_);if(O)return w=setTimeout(h,e),r(_)}return void 0===w&&(w=setTimeout(h,e)),j}var x,g,m,j,w,_,A=0,E=!1,O=!1,S=!0;if("function"!=typeof t)throw new TypeError(c);return e=u(e)||0,o(n)&&(E=!!n.leading,O="maxWait"in n,m=O?s(u(n.maxWait)||0,e):m,S="trailing"in n?!!n.trailing:S),b.cancel=v,b.flush=y,b}var o=n(2),i=n(3),u=n(6),c="Expected a function",s=Math.max,a=Math.min;t.exports=r},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){var r=n(4),o=function(){return r.Date.now()};t.exports=o},function(t,e,n){var r=n(5),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,function(){return this}())},function(t,e,n){function r(t){if("number"==typeof t)return t;if(i(t))return u;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(c,"");var n=a.test(t);return n||f.test(t)?p(t.slice(2),n?2:8):s.test(t)?u:+t}var o=n(2),i=n(7),u=NaN,c=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;t.exports=r},function(t,e,n){function r(t){return"symbol"==typeof t||i(t)&&o(t)==u}var o=n(8),i=n(12),u="[object Symbol]";t.exports=r},function(t,e,n){function r(t){return null==t?void 0===t?s:c:(t=Object(t),a&&a in t?i(t):u(t))}var o=n(9),i=n(10),u=n(11),c="[object Null]",s="[object Undefined]",a=o?o.toStringTag:void 0;t.exports=r},function(t,e,n){var r=n(4),o=r.Symbol;t.exports=o},function(t,e,n){function r(t){var e=u.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(o){}var i=c.call(t);return r&&(e?t[s]=n:delete t[s]),i}var o=n(9),i=Object.prototype,u=i.hasOwnProperty,c=i.toString,s=o?o.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return o.call(t)}var r=Object.prototype,o=r.toString;t.exports=n},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){function r(t){return o(t,i)}var o=n(14),i=4;t.exports=r},function(t,e,n){function r(t,e,n,S,T,k){var F,C=e&_,U=e&A,I=e&E;if(n&&(F=T?n(t,S,T,k):n(t)),void 0!==F)return F;if(!j(t))return t;var z=g(t);if(z){if(F=y(t),!C)return f(t,F)}else{var D=v(t),N=D==R||D==P;if(m(t))return a(t,C);if(D==B||D==O||N&&!T){if(F=U||N?{}:x(t),!C)return U?l(t,s(F,t)):p(t,c(F,t))}else{if(!Y[D])return T?t:{};F=b(t,D,r,C)}}k||(k=new o);var L=k.get(t);if(L)return L;k.set(t,F);var M=I?U?d:h:U?keysIn:w,q=z?void 0:M(t);return i(q||t,function(o,i){q&&(i=o,o=t[i]),u(F,i,r(o,e,n,i,t,k))}),F}var o=n(15),i=n(52),u=n(53),c=n(56),s=n(78),a=n(82),f=n(83),p=n(84),l=n(87),h=n(91),d=n(93),v=n(94),y=n(99),b=n(100),x=n(114),g=n(63),m=n(64),j=n(2),w=n(58),_=1,A=2,E=4,O="[object Arguments]",S="[object Array]",T="[object Boolean]",k="[object Date]",F="[object Error]",R="[object Function]",P="[object GeneratorFunction]",C="[object Map]",U="[object Number]",B="[object Object]",I="[object RegExp]",z="[object Set]",D="[object String]",N="[object Symbol]",L="[object WeakMap]",M="[object ArrayBuffer]",q="[object DataView]",$="[object Float32Array]",V="[object Float64Array]",W="[object Int8Array]",H="[object Int16Array]",X="[object Int32Array]",G="[object Uint8Array]",J="[object Uint8ClampedArray]",K="[object Uint16Array]",Q="[object Uint32Array]",Y={};Y[O]=Y[S]=Y[M]=Y[q]=Y[T]=Y[k]=Y[$]=Y[V]=Y[W]=Y[H]=Y[X]=Y[C]=Y[U]=Y[B]=Y[I]=Y[z]=Y[D]=Y[N]=Y[G]=Y[J]=Y[K]=Y[Q]=!0,Y[F]=Y[R]=Y[L]=!1,t.exports=r},function(t,e,n){function r(t){var e=this.__data__=new o(t);this.size=e.size}var o=n(16),i=n(24),u=n(25),c=n(26),s=n(27),a=n(28);r.prototype.clear=i,r.prototype["delete"]=u,r.prototype.get=c,r.prototype.has=s,r.prototype.set=a,t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(17),i=n(18),u=n(21),c=n(22),s=n(23);r.prototype.clear=o,r.prototype["delete"]=i,r.prototype.get=u,r.prototype.has=c,r.prototype.set=s,t.exports=r},function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,e,n){function r(t){var e=this.__data__,n=o(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():u.call(e,n,1),--this.size,!0}var o=n(19),i=Array.prototype,u=i.splice;t.exports=r},function(t,e,n){function r(t,e){for(var n=t.length;n--;)if(o(t[n][0],e))return n;return-1}var o=n(20);t.exports=r},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){function r(t){var e=this.__data__,n=o(e,t);return n<0?void 0:e[n][1]}var o=n(19);t.exports=r},function(t,e,n){function r(t){return o(this.__data__,t)>-1}var o=n(19);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var o=n(19);t.exports=r},function(t,e,n){function r(){this.__data__=new o,this.size=0}var o=n(16);t.exports=r},function(t,e){function n(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function r(t,e){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!i||r.length<c-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new u(r)}return n.set(t,e),this.size=n.size,this}var o=n(16),i=n(29),u=n(37),c=200;t.exports=r},function(t,e,n){var r=n(30),o=n(4),i=r(o,"Map");t.exports=i},function(t,e,n){function r(t,e){var n=i(t,e);return o(n)?n:void 0}var o=n(31),i=n(36);t.exports=r},function(t,e,n){function r(t){if(!u(t)||i(t))return!1;var e=o(t)?d:a;return e.test(c(t))}var o=n(32),i=n(33),u=n(2),c=n(35),s=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,f=Function.prototype,p=Object.prototype,l=f.toString,h=p.hasOwnProperty,d=RegExp("^"+l.call(h).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},function(t,e,n){function r(t){if(!i(t))return!1;var e=o(t);return e==c||e==s||e==u||e==a}var o=n(8),i=n(2),u="[object AsyncFunction]",c="[object Function]",s="[object GeneratorFunction]",a="[object Proxy]";t.exports=r},function(t,e,n){function r(t){return!!i&&i in t}var o=n(34),i=function(){var t=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=r},function(t,e,n){var r=n(4),o=r["__core-js_shared__"];t.exports=o},function(t,e){function n(t){if(null!=t){try{return o.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var r=Function.prototype,o=r.toString;t.exports=n},function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(38),i=n(46),u=n(49),c=n(50),s=n(51);r.prototype.clear=o,r.prototype["delete"]=i,r.prototype.get=u,r.prototype.has=c,r.prototype.set=s,t.exports=r},function(t,e,n){function r(){this.size=0,this.__data__={hash:new o,map:new(u||i),string:new o}}var o=n(39),i=n(16),u=n(29);t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(40),i=n(42),u=n(43),c=n(44),s=n(45);r.prototype.clear=o,r.prototype["delete"]=i,r.prototype.get=u,r.prototype.has=c,r.prototype.set=s,t.exports=r},function(t,e,n){function r(){this.__data__=o?o(null):{},this.size=0}var o=n(41);t.exports=r},function(t,e,n){var r=n(30),o=r(Object,"create");t.exports=o},function(t,e){function n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=n},function(t,e,n){function r(t){var e=this.__data__;if(o){var n=e[t];return n===i?void 0:n}return c.call(e,t)?e[t]:void 0}var o=n(41),i="__lodash_hash_undefined__",u=Object.prototype,c=u.hasOwnProperty;t.exports=r},function(t,e,n){function r(t){var e=this.__data__;return o?void 0!==e[t]:u.call(e,t)}var o=n(41),i=Object.prototype,u=i.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=o&&void 0===e?i:e,this}var o=n(41),i="__lodash_hash_undefined__";t.exports=r},function(t,e,n){function r(t){var e=o(this,t)["delete"](t);return this.size-=e?1:0,e}var o=n(47);t.exports=r},function(t,e,n){function r(t,e){var n=t.__data__;return o(e)?n["string"==typeof e?"string":"hash"]:n.map}var o=n(48);t.exports=r},function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},function(t,e,n){function r(t){return o(this,t).get(t)}var o=n(47);t.exports=r},function(t,e,n){function r(t){return o(this,t).has(t)}var o=n(47);t.exports=r},function(t,e,n){function r(t,e){var n=o(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var o=n(47);t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}t.exports=n},function(t,e,n){function r(t,e,n){var r=t[e];c.call(t,e)&&i(r,n)&&(void 0!==n||e in t)||o(t,e,n)}var o=n(54),i=n(20),u=Object.prototype,c=u.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e,n){"__proto__"==e&&o?o(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var o=n(55);t.exports=r},function(t,e,n){var r=n(30),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=o},function(t,e,n){function r(t,e){return t&&o(e,i(e),t)}var o=n(57),i=n(58);t.exports=r},function(t,e,n){function r(t,e,n,r){var u=!n;n||(n={});for(var c=-1,s=e.length;++c<s;){var a=e[c],f=r?r(n[a],t[a],a,n,t):void 0;void 0===f&&(f=t[a]),u?i(n,a,f):o(n,a,f)}return n}var o=n(53),i=n(54);t.exports=r},function(t,e,n){function r(t){return u(t)?o(t):i(t)}var o=n(59),i=n(73),u=n(77);t.exports=r},function(t,e,n){function r(t,e){var n=u(t),r=!n&&i(t),f=!n&&!r&&c(t),l=!n&&!r&&!f&&a(t),h=n||r||f||l,d=h?o(t.length,String):[],v=d.length;for(var y in t)!e&&!p.call(t,y)||h&&("length"==y||f&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,v))||d.push(y);return d}var o=n(60),i=n(61),u=n(63),c=n(64),s=n(67),a=n(68),f=Object.prototype,p=f.hasOwnProperty;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}t.exports=n},function(t,e,n){var r=n(62),o=n(12),i=Object.prototype,u=i.hasOwnProperty,c=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(t){return o(t)&&u.call(t,"callee")&&!c.call(t,"callee")};t.exports=s},function(t,e,n){function r(t){return i(t)&&o(t)==u}var o=n(8),i=n(12),u="[object Arguments]";t.exports=r},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){(function(t){var r=n(4),o=n(66),i="object"==typeof e&&e&&!e.nodeType&&e,u=i&&"object"==typeof t&&t&&!t.nodeType&&t,c=u&&u.exports===i,s=c?r.Buffer:void 0,a=s?s.isBuffer:void 0,f=a||o;t.exports=f}).call(e,n(65)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){function n(){return!1}t.exports=n},function(t,e){function n(t,e){return e=null==e?r:e,!!e&&("number"==typeof t||o.test(t))&&t>-1&&t%1==0&&t<e}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,e,n){var r=n(69),o=n(71),i=n(72),u=i&&i.isTypedArray,c=u?o(u):r;t.exports=c},function(t,e,n){function r(t){return u(t)&&i(t.length)&&!!R[o(t)]}var o=n(8),i=n(70),u=n(12),c="[object Arguments]",s="[object Array]",a="[object Boolean]",f="[object Date]",p="[object Error]",l="[object Function]",h="[object Map]",d="[object Number]",v="[object Object]",y="[object RegExp]",b="[object Set]",x="[object String]",g="[object WeakMap]",m="[object ArrayBuffer]",j="[object DataView]",w="[object Float32Array]",_="[object Float64Array]",A="[object Int8Array]",E="[object Int16Array]",O="[object Int32Array]",S="[object Uint8Array]",T="[object Uint8ClampedArray]",k="[object Uint16Array]",F="[object Uint32Array]",R={};R[w]=R[_]=R[A]=R[E]=R[O]=R[S]=R[T]=R[k]=R[F]=!0,R[c]=R[s]=R[m]=R[a]=R[j]=R[f]=R[p]=R[l]=R[h]=R[d]=R[v]=R[y]=R[b]=R[x]=R[g]=!1,t.exports=r},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e,n){(function(t){var r=n(5),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,u=i&&i.exports===o,c=u&&r.process,s=function(){try{return c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=s}).call(e,n(65)(t))},function(t,e,n){function r(t){if(!o(t))return i(t);var e=[];for(var n in Object(t))c.call(t,n)&&"constructor"!=n&&e.push(n);return e}var o=n(74),i=n(75),u=Object.prototype,c=u.hasOwnProperty;t.exports=r},function(t,e){function n(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||r;return t===n}var r=Object.prototype;t.exports=n},function(t,e,n){var r=n(76),o=r(Object.keys,Object);t.exports=o},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){function r(t){return null!=t&&i(t.length)&&!o(t)}var o=n(32),i=n(70);t.exports=r},function(t,e,n){function r(t,e){return t&&o(e,i(e),t)}var o=n(57),i=n(79);t.exports=r},function(t,e,n){function r(t){return u(t)?o(t,!0):i(t)}var o=n(59),i=n(80),u=n(77);t.exports=r},function(t,e,n){function r(t){if(!o(t))return u(t);var e=i(t),n=[];for(var r in t)("constructor"!=r||!e&&s.call(t,r))&&n.push(r);return n}var o=n(2),i=n(74),u=n(81),c=Object.prototype,s=c.hasOwnProperty;t.exports=r},function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},function(t,e,n){(function(t){function r(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}var o=n(4),i="object"==typeof e&&e&&!e.nodeType&&e,u=i&&"object"==typeof t&&t&&!t.nodeType&&t,c=u&&u.exports===i,s=c?o.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=r}).call(e,n(65)(t))},function(t,e){function n(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}t.exports=n},function(t,e,n){function r(t,e){return o(t,i(t),e)}var o=n(57),i=n(85);t.exports=r},function(t,e,n){var r=n(76),o=n(86),i=Object.getOwnPropertySymbols,u=i?r(i,Object):o;t.exports=u},function(t,e){function n(){return[]}t.exports=n},function(t,e,n){function r(t,e){return o(t,i(t),e)}var o=n(57),i=n(88);t.exports=r},function(t,e,n){var r=n(89),o=n(90),i=n(85),u=n(86),c=Object.getOwnPropertySymbols,s=c?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:u;t.exports=s},function(t,e){function n(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}t.exports=n},function(t,e,n){var r=n(76),o=r(Object.getPrototypeOf,Object);t.exports=o},function(t,e,n){function r(t){return o(t,u,i)}var o=n(92),i=n(85),u=n(58);t.exports=r},function(t,e,n){function r(t,e,n){var r=e(t);return i(t)?r:o(r,n(t))}var o=n(89),i=n(63);t.exports=r},function(t,e,n){function r(t){return o(t,u,i)}var o=n(92),i=n(88),u=n(79);t.exports=r},function(t,e,n){var r=n(95),o=n(29),i=n(96),u=n(97),c=n(98),s=n(8),a=n(35),f="[object Map]",p="[object Object]",l="[object Promise]",h="[object Set]",d="[object WeakMap]",v="[object DataView]",y=a(r),b=a(o),x=a(i),g=a(u),m=a(c),j=s;(r&&j(new r(new ArrayBuffer(1)))!=v||o&&j(new o)!=f||i&&j(i.resolve())!=l||u&&j(new u)!=h||c&&j(new c)!=d)&&(j=function(t){var e=s(t),n=e==p?t.constructor:void 0,r=n?a(n):"";if(r)switch(r){case y:return v;case b:return f;case x:return l;case g:return h;case m:return d}return e}),t.exports=j},function(t,e,n){var r=n(30),o=n(4),i=r(o,"DataView");t.exports=i},function(t,e,n){var r=n(30),o=n(4),i=r(o,"Promise");t.exports=i},function(t,e,n){var r=n(30),o=n(4),i=r(o,"Set");t.exports=i},function(t,e,n){var r=n(30),o=n(4),i=r(o,"WeakMap");t.exports=i},function(t,e){function n(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&o.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var r=Object.prototype,o=r.hasOwnProperty;t.exports=n},function(t,e,n){function r(t,e,n,r){var F=t.constructor;switch(e){case g:return o(t);case p:case l:return new F((+t));case m:return i(t,r);case j:case w:case _:case A:case E:case O:case S:case T:case k:return f(t,r);case h:return u(t,r,n);case d:case b:return new F(t);case v:return c(t);case y:return s(t,r,n);case x:return a(t)}}var o=n(101),i=n(103),u=n(104),c=n(108),s=n(109),a=n(112),f=n(113),p="[object Boolean]",l="[object Date]",h="[object Map]",d="[object Number]",v="[object RegExp]",y="[object Set]",b="[object String]",x="[object Symbol]",g="[object ArrayBuffer]",m="[object DataView]",j="[object Float32Array]",w="[object Float64Array]",_="[object Int8Array]",A="[object Int16Array]",E="[object Int32Array]",O="[object Uint8Array]",S="[object Uint8ClampedArray]",T="[object Uint16Array]",k="[object Uint32Array]";t.exports=r},function(t,e,n){function r(t){var e=new t.constructor(t.byteLength);return new o(e).set(new o(t)),e}var o=n(102);t.exports=r},function(t,e,n){var r=n(4),o=r.Uint8Array;t.exports=o},function(t,e,n){function r(t,e){var n=e?o(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var o=n(101);t.exports=r},function(t,e,n){function r(t,e,n){var r=e?n(u(t),c):u(t);return i(r,o,new t.constructor)}var o=n(105),i=n(106),u=n(107),c=1;t.exports=r},function(t,e){function n(t,e){return t.set(e[0],e[1]),t}t.exports=n},function(t,e){function n(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}t.exports=n},function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}t.exports=n},function(t,e){function n(t){var e=new t.constructor(t.source,r.exec(t));return e.lastIndex=t.lastIndex,e}var r=/\w*$/;t.exports=n},function(t,e,n){function r(t,e,n){var r=e?n(u(t),c):u(t);return i(r,o,new t.constructor)}var o=n(110),i=n(106),u=n(111),c=1;t.exports=r},function(t,e){function n(t,e){return t.add(e),t}t.exports=n},function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}t.exports=n},function(t,e,n){function r(t){return u?Object(u.call(t)):{}}var o=n(9),i=o?o.prototype:void 0,u=i?i.valueOf:void 0;t.exports=r},function(t,e,n){function r(t,e){var n=e?o(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var o=n(101);t.exports=r},function(t,e,n){function r(t){return"function"!=typeof t.constructor||u(t)?{}:o(i(t))}var o=n(115),i=n(90),u=n(74);t.exports=r},function(t,e,n){var r=n(2),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t,e,n){function r(){var t=arguments.length;if(!t)return[];for(var e=Array(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return o(c(n)?u(n):[n],i(e,1))}var o=n(89),i=n(117),u=n(83),c=n(63);t.exports=r},function(t,e,n){function r(t,e,n,u,c){var s=-1,a=t.length;for(n||(n=i),c||(c=[]);++s<a;){var f=t[s];e>0&&n(f)?e>1?r(f,e-1,n,u,c):o(c,f):u||(c[c.length]=f)}return c}var o=n(89),i=n(118);t.exports=r},function(t,e,n){function r(t){return u(t)||i(t)||!!(c&&t&&t[c])}var o=n(9),i=n(61),u=n(63),c=o?o.isConcatSpreadable:void 0;t.exports=r},function(t,e,n){t.exports=n(120)},function(t,e,n){"use strict";function r(t){var e=new u(t),n=i(u.prototype.request,e);return o.extend(n,u.prototype,e),o.extend(n,e),n}var o=n(121),i=n(122),u=n(123),c=t.exports=r();c.Axios=u,c.create=function(t){return r(t)},c.all=function(t){return Promise.all(t)},c.spread=n(141)},function(t,e,n){"use strict";function r(t){return"[object Array]"===_.call(t)}function o(t){return"[object ArrayBuffer]"===_.call(t)}function i(t){return"undefined"!=typeof FormData&&t instanceof FormData}function u(t){var e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function c(t){return"string"==typeof t}function s(t){return"number"==typeof t}function a(t){return"undefined"==typeof t}function f(t){return null!==t&&"object"==typeof t}function p(t){return"[object Date]"===_.call(t)}function l(t){return"[object File]"===_.call(t)}function h(t){return"[object Blob]"===_.call(t)}function d(t){return"[object Function]"===_.call(t)}function v(t){return f(t)&&d(t.pipe)}function y(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function b(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function g(t,e){if(null!==t&&"undefined"!=typeof t)if("object"==typeof t||r(t)||(t=[t]),r(t))for(var n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(null,t[i],i,t)}function m(){function t(t,n){"object"==typeof e[n]&&"object"==typeof t?e[n]=m(e[n],t):e[n]=t}for(var e={},n=0,r=arguments.length;n<r;n++)g(arguments[n],t);return e}function j(t,e,n){return g(e,function(e,r){n&&"function"==typeof e?t[r]=w(e,n):t[r]=e}),t}var w=n(122),_=Object.prototype.toString;t.exports={isArray:r,isArrayBuffer:o,isFormData:i,isArrayBufferView:u,isString:c,isNumber:s,isObject:f,isUndefined:a,isDate:p,isFile:l,isBlob:h,isFunction:d,isStream:v,isURLSearchParams:y,isStandardBrowserEnv:x,forEach:g,merge:m,extend:j,trim:b}},function(t,e){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";function r(t){this.defaults=i.merge(o,t),this.interceptors={request:new u,response:new u}}var o=n(124),i=n(121),u=n(126),c=n(127),s=n(139),a=n(140);r.prototype.request=function(t){"string"==typeof t&&(t=i.merge({url:arguments[0]},arguments[1])),t=i.merge(o,this.defaults,{method:"get"},t),t.baseURL&&!s(t.url)&&(t.url=a(t.baseURL,t.url));var e=[c,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},i.forEach(["delete","get","head"],function(t){r.prototype[t]=function(e,n){return this.request(i.merge(n||{},{method:t,url:e}))}}),i.forEach(["post","put","patch"],function(t){r.prototype[t]=function(e,n,r){return this.request(i.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=r},function(t,e,n){"use strict";function r(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var o=n(121),i=n(125),u=/^\)\]\}',?\n/,c={"Content-Type":"application/x-www-form-urlencoded"};t.exports={transformRequest:[function(t,e){return i(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(r(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)?(r(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t){t=t.replace(u,"");try{t=JSON.parse(t)}catch(e){}}return t}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:o.merge(c),post:o.merge(c),put:o.merge(c)},timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}}},function(t,e,n){"use strict";var r=n(121);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";function r(){this.handlers=[]}var o=n(121);r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){o.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=r},function(t,e,n){(function(e){"use strict";var r=n(121),o=n(129);t.exports=function(t){t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]});var i;return"function"==typeof t.adapter?i=t.adapter:"undefined"!=typeof XMLHttpRequest?i=n(130):"undefined"!=typeof e&&(i=n(130)),Promise.resolve(t).then(i).then(function(e){return e.data=o(e.data,e.headers,t.transformResponse),e},function(e){return e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse)),Promise.reject(e)})}}).call(e,n(128))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(f===setTimeout)return setTimeout(t,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function i(t){if(p===clearTimeout)return clearTimeout(t);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(t);try{return p(t)}catch(e){try{return p.call(null,t)}catch(e){return p.call(this,t)}}}function u(){v&&h&&(v=!1,h.length?d=h.concat(d):y=-1,d.length&&c())}function c(){if(!v){var t=o(u);v=!0;for(var e=d.length;e;){for(h=d,d=[];++y<e;)h&&h[y].run();y=-1,e=d.length}h=null,v=!1,i(t)}}function s(t,e){this.fun=t,this.array=e}function a(){}var f,p,l=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(t){f=n}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(t){p=r}}();var h,d=[],v=!1,y=-1;l.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new s(t,e)),1!==d.length||v||o(c)},s.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=a,l.addListener=a,l.once=a,l.off=a,l.removeListener=a,l.removeAllListeners=a,l.emit=a,l.binding=function(t){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(t){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(121);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){(function(e){"use strict";var r=n(121),o=n(131),i=n(134),u=n(135),c=n(136),s=n(132),a="undefined"!=typeof window&&window.btoa||n(137);t.exports=function(t){return new Promise(function(f,p){var l=t.data,h=t.headers;r.isFormData(l)&&delete h["Content-Type"];var d=new XMLHttpRequest,v="onreadystatechange",y=!1;if("test"===e.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||c(t.url)||(d=new window.XDomainRequest,v="onload",y=!0,d.onprogress=function(){},d.ontimeout=function(){}),t.auth){var b=t.auth.username||"",x=t.auth.password||"";h.Authorization="Basic "+a(b+":"+x)}if(d.open(t.method.toUpperCase(),i(t.url,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d[v]=function(){if(d&&(4===d.readyState||y)&&0!==d.status){var e="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null,n=t.responseType&&"text"!==t.responseType?d.response:d.responseText,r={data:n,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:e,config:t,request:d};o(f,p,r),d=null}},d.onerror=function(){p(s("Network Error",t)),d=null},d.ontimeout=function(){p(s("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED")),d=null},r.isStandardBrowserEnv()){var g=n(138),m=t.withCredentials||c(t.url)?g.read(t.xsrfCookieName):void 0;m&&(h[t.xsrfHeaderName]=m)}if("setRequestHeader"in d&&r.forEach(h,function(t,e){"undefined"==typeof l&&"content-type"===e.toLowerCase()?delete h[e]:d.setRequestHeader(e,t)}),t.withCredentials&&(d.withCredentials=!0),t.responseType)try{d.responseType=t.responseType}catch(j){if("json"!==d.responseType)throw j}"function"==typeof t.progress&&("post"===t.method||"put"===t.method?d.upload.addEventListener("progress",t.progress):"get"===t.method&&d.addEventListener("progress",t.progress)), | ||
void 0===l&&(l=null),d.send(l)})}}).call(e,n(128))},function(t,e,n){"use strict";var r=n(132);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n)):t(n)}},function(t,e,n){"use strict";var r=n(133);t.exports=function(t,e,n,o){var i=new Error(t);return r(i,e,n,o)}},function(t,e){"use strict";t.exports=function(t,e,n,r){return t.config=e,n&&(t.code=n),t.response=r,t}},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(121);t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(o.isURLSearchParams(e))i=e.toString();else{var u=[];o.forEach(e,function(t,e){null!==t&&"undefined"!=typeof t&&(o.isArray(t)&&(e+="[]"),o.isArray(t)||(t=[t]),o.forEach(t,function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),u.push(r(e)+"="+r(t))}))}),i=u.join("&")}return i&&(t+=(t.indexOf("?")===-1?"?":"&")+i),t}},function(t,e,n){"use strict";var r=n(121);t.exports=function(t){var e,n,o,i={};return t?(r.forEach(t.split("\n"),function(t){o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e&&(i[e]=i[e]?i[e]+", "+n:n)}),i):i}},function(t,e,n){"use strict";var r=n(121);t.exports=r.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(o.setAttribute("href",e),e=o.href),o.setAttribute("href",e),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return e=t(window.location.href),function(n){var o=r.isString(n)?t(n):n;return o.protocol===e.protocol&&o.host===e.host}}():function(){return function(){return!0}}()},function(t,e){"use strict";function n(){this.message="String contains an invalid character"}function r(t){for(var e,r,i=String(t),u="",c=0,s=o;i.charAt(0|c)||(s="=",c%1);u+=s.charAt(63&e>>8-c%1*8)){if(r=i.charCodeAt(c+=.75),r>255)throw new n;e=e<<8|r}return u}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",t.exports=r},function(t,e,n){"use strict";var r=n(121);t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,o,i,u){var c=[];c.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),u===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e){"use strict";t.exports=function(t,e){return t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,"")}},function(t,e){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}}])}); | ||
//# sourceMappingURL=splunk-events.min.js.map |
{ | ||
"name": "splunk-events", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Javascript lib to create Splunk Logs via HTTP", | ||
@@ -25,5 +25,11 @@ "main": "SplunkEvents.js", | ||
"contributors": [ | ||
{ "name": "Tiago Neves" }, | ||
{ "name": "Breno Calazans" }, | ||
{ "name": "Alejandro Osorio" } | ||
{ | ||
"name": "Tiago Neves" | ||
}, | ||
{ | ||
"name": "Breno Calazans" | ||
}, | ||
{ | ||
"name": "Alejandro Osorio" | ||
} | ||
], | ||
@@ -30,0 +36,0 @@ "license": "MIT", |
@@ -114,4 +114,6 @@ # Splunk Events | ||
'event' is an object containing your custom data to send to Splunk. This object should be flat. | ||
'event' is an object containing your custom data to send to Splunk. This object should be flat and the properties with 'null' or 'undefined' value will be **omitted**. | ||
'account' is the accountName (e.g. 'dreamstore','gatewayqa','instoreqa'). | ||
if 'injectAditionalInfo' is set to true, this function adds some default data to the event | ||
@@ -118,0 +120,0 @@ ``` |
@@ -56,5 +56,5 @@ 'use strict'; | ||
key: 'logEvent', | ||
value: function logEvent(level, type, workflowType, workflowInstance, event) { | ||
value: function logEvent(level, type, workflowType, workflowInstance, event, account) { | ||
this.validateEvent(event); | ||
var parsedEvent = level + ',' + type + ',' + workflowType + ',' + workflowInstance + ' '; | ||
var parsedEvent = level + ',' + type + ',' + workflowType + ',' + workflowInstance + ',' + account + ' '; | ||
parsedEvent += this.parseEventData(event); | ||
@@ -83,3 +83,3 @@ | ||
for (var key in event) { | ||
if (event.hasOwnProperty(key)) { | ||
if (event.hasOwnProperty(key) && event[key] != null) { | ||
switch (_typeof(event[key])) { | ||
@@ -86,0 +86,0 @@ case 'string': |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
139
900039
490