analytica.click 0.0.154 → 0.0.158

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ var wi=Object.create;var $e=Object.defineProperty,Oi=Object.defineProperties,Ci=
7
7
  `).join(`
8
8
  `+i),e.push(o+"m+"+yt.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=$a()+t+" "+e[0]}function $a(){return D.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Ha(...e){return process.stderr.write(gt.format(...e)+`
9
9
  `)}function za(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Ja(){return process.env.DEBUG}function Ka(e){e.inspectOpts={};let t=Object.keys(D.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=D.inspectOpts[t[r]]}yt.exports=Yt()(D);var{formatters:Nn}=yt.exports;Nn.o=function(e){return this.inspectOpts.colors=this.useColors,gt.inspect(e,this.inspectOpts).split(`
10
- `).map(t=>t.trim()).join(" ")};Nn.O=function(e){return this.inspectOpts.colors=this.useColors,gt.inspect(e,this.inspectOpts)}});var Un=f((Al,er)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?er.exports=kn():er.exports=In()});var $n=f((ql,Vn)=>{var He;Vn.exports=function(){if(!He){try{He=Un()("follow-redirects")}catch{}typeof He!="function"&&(He=function(){})}He.apply(null,arguments)}});var ir=f((Tl,or)=>{var Ce=require("url"),tr=Ce.URL,Ga=require("http"),Wa=require("https"),Hn=require("stream").Writable,Xa=require("assert"),zn=$n(),_e=["abort","aborted","connect","error","socket","timeout"],rr=Object.create(null);_e.forEach(function(e){rr[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var Jn=bt("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Ya=bt("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Qa=bt("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Za=bt("ERR_STREAM_WRITE_AFTER_END","write after end");function K(e,t){Hn.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}K.prototype=Object.create(Hn.prototype);K.prototype.abort=function(){Wn(this._currentRequest),this.emit("abort")};K.prototype.write=function(e,t,r){if(this._ending)throw new Za;if(!(typeof e=="string"||typeof e=="object"&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(typeof t=="function"&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Qa),this.abort())};K.prototype.end=function(e,t,r){if(typeof e=="function"?(r=e,e=t=null):typeof t=="function"&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,o=this._currentRequest;this.write(e,t,function(){n._ended=!0,o.end(null,null,r)}),this._ending=!0}};K.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};K.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};K.prototype.setTimeout=function(e,t){var r=this;function n(s){s.setTimeout(e),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function o(s){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),i()},e),n(s)}function i(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",i),r.removeListener("error",i),r.removeListener("response",i),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",i),this.on("error",i),this.on("response",i),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){K.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(K.prototype,e,{get:function(){return this._currentRequest[e]}})});K.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};K.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=Ce.format(this._options),n._redirectable=this;for(var o=0;o<_e.length;o++)n.on(_e[o],rr[_e[o]]);if(this._isRedirect){var i=0,s=this,u=this._requestBodyBuffers;(function c(d){if(n===s._currentRequest)if(d)s.emit("error",d);else if(i<u.length){var a=u[i++];n.finished||n.write(a.data,a.encoding,c)}else s._ended&&n.end()})()}};K.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(r&&this._options.followRedirects!==!1&&t>=300&&t<400){if(Wn(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new Ya);return}((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],nr(/^content-/i,this._options.headers));var n=nr(/^host$/i,this._options.headers),o=Ce.parse(this._currentUrl),i=n||o.host,s=/^\w+:/.test(r)?this._currentUrl:Ce.format(Object.assign(o,{host:i})),u;try{u=Ce.resolve(s,r)}catch(a){this.emit("error",new Jn(a));return}zn("redirecting to",u),this._isRedirect=!0;var c=Ce.parse(u);if(Object.assign(this._options,c),c.host===i||tu(c.host,i)||nr(/^authorization$/i,this._options.headers),typeof this._options.beforeRedirect=="function"){var d={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,d)}catch(a){this.emit("error",a);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(a){this.emit("error",new Jn(a))}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]};function Kn(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024},r={};return Object.keys(e).forEach(function(n){var o=n+":",i=r[o]=e[n],s=t[n]=Object.create(i);function u(d,a,l){if(typeof d=="string"){var p=d;try{d=Gn(new tr(p))}catch{d=Ce.parse(p)}}else tr&&d instanceof tr?d=Gn(d):(l=a,a=d,d={protocol:o});return typeof a=="function"&&(l=a,a=null),a=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},d,a),a.nativeProtocols=r,Xa.equal(a.protocol,o,"protocol mismatch"),zn("options",a),new K(a,l)}function c(d,a,l){var p=s.request(d,a,l);return p.end(),p}Object.defineProperties(s,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function eu(){}function Gn(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return e.port!==""&&(t.port=Number(e.port)),t}function nr(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r=="undefined"?void 0:String(r).trim()}function bt(e,t){function r(n){Error.captureStackTrace(this,this.constructor),n?(this.message=t+": "+n.message,this.cause=n):this.message=t}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+e+"]",r.prototype.code=e,r}function Wn(e){for(var t=0;t<_e.length;t++)e.removeListener(_e[t],rr[_e[t]]);e.on("error",eu),e.abort()}function tu(e,t){let r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}or.exports=Kn({http:Ga,https:Wa});or.exports.wrap=Kn});var wt=f((Rl,Xn)=>{Xn.exports={version:"0.24.0"}});var ro=f((xl,to)=>{"use strict";var ze=V(),Yn=Jt(),ru=Kt(),nu=ct(),ou=require("http"),iu=require("https"),su=ir().http,au=ir().https,Qn=require("url"),uu=require("zlib"),cu=wt().version,Ot=ft(),sr=dt(),lu=Pe(),du=Se(),Zn=/https:?/;function eo(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(i){i.headers.host=i.host,eo(i,t,i.href)}}to.exports=function(t){return new Promise(function(n,o){var i;function s(){t.cancelToken&&t.cancelToken.unsubscribe(i),t.signal&&t.signal.removeEventListener("abort",i)}var u=function(v){s(),n(v)},c=function(v){s(),o(v)},d=t.data,a=t.headers,l={};if(Object.keys(a).forEach(function(v){l[v.toLowerCase()]=v}),"user-agent"in l?a[l["user-agent"]]||delete a[l["user-agent"]]:a["User-Agent"]="axios/"+cu,d&&!ze.isStream(d)){if(!Buffer.isBuffer(d))if(ze.isArrayBuffer(d))d=Buffer.from(new Uint8Array(d));else if(ze.isString(d))d=Buffer.from(d,"utf-8");else return c(Ot("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));l["content-length"]||(a["Content-Length"]=d.length)}var p=void 0;if(t.auth){var B=t.auth.username||"",Z=t.auth.password||"";p=B+":"+Z}var j=ru(t.baseURL,t.url),m=Qn.parse(j),g=m.protocol||"http:";if(!p&&m.auth){var E=m.auth.split(":"),_=E[0]||"",k=E[1]||"";p=_+":"+k}p&&l.authorization&&delete a[l.authorization];var me=Zn.test(g),ve=me?t.httpsAgent:t.httpAgent,X={path:nu(m.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:a,agent:ve,agents:{http:t.httpAgent,https:t.httpsAgent},auth:p};t.socketPath?X.socketPath=t.socketPath:(X.hostname=m.hostname,X.port=m.port);var ee=t.proxy;if(!ee&&ee!==!1){var Qe=g.slice(0,-1)+"_proxy",wr=process.env[Qe]||process.env[Qe.toUpperCase()];if(wr){var Ve=Qn.parse(wr),Or=process.env.no_proxy||process.env.NO_PROXY,Cr=!0;if(Or){var bi=Or.split(",").map(function(v){return v.trim()});Cr=!bi.some(function(v){return v?v==="*"||v[0]==="."&&m.hostname.substr(m.hostname.length-v.length)===v?!0:m.hostname===v:!1})}if(Cr&&(ee={host:Ve.hostname,port:Ve.port,protocol:Ve.protocol},Ve.auth)){var _r=Ve.auth.split(":");ee.auth={username:_r[0],password:_r[1]}}}}ee&&(X.headers.host=m.hostname+(m.port?":"+m.port:""),eo(X,ee,g+"//"+m.hostname+(m.port?":"+m.port:"")+X.path));var Ze,Er=me&&(ee?Zn.test(ee.protocol):!0);t.transport?Ze=t.transport:t.maxRedirects===0?Ze=Er?iu:ou:(t.maxRedirects&&(X.maxRedirects=t.maxRedirects),Ze=Er?au:su),t.maxBodyLength>-1&&(X.maxBodyLength=t.maxBodyLength),t.insecureHTTPParser&&(X.insecureHTTPParser=t.insecureHTTPParser);var U=Ze.request(X,function(v){if(!U.aborted){var ge=v,et=v.req||U;if(v.statusCode!==204&&et.method!=="HEAD"&&t.decompress!==!1)switch(v.headers["content-encoding"]){case"gzip":case"compress":case"deflate":ge=ge.pipe(uu.createUnzip()),delete v.headers["content-encoding"];break}var tt={status:v.statusCode,statusText:v.statusMessage,headers:v.headers,config:t,request:et};if(t.responseType==="stream")tt.data=ge,Yn(u,c,tt);else{var Ar=[],qr=0;ge.on("data",function(te){Ar.push(te),qr+=te.length,t.maxContentLength>-1&&qr>t.maxContentLength&&(ge.destroy(),c(Ot("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,et)))}),ge.on("error",function(te){U.aborted||c(sr(te,t,null,et))}),ge.on("end",function(){var te=Buffer.concat(Ar);t.responseType!=="arraybuffer"&&(te=te.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(te=ze.stripBOM(te))),tt.data=te,Yn(u,c,tt)})}}});if(U.on("error",function(v){U.aborted&&v.code!=="ERR_FR_TOO_MANY_REDIRECTS"||c(sr(v,t,null,U))}),t.timeout){var Ft=parseInt(t.timeout,10);if(isNaN(Ft)){c(Ot("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",U));return}U.setTimeout(Ft,function(){U.abort();var v=t.transitional||lu.transitional;c(Ot("timeout of "+Ft+"ms exceeded",t,v.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",U))})}(t.cancelToken||t.signal)&&(i=function(z){U.aborted||(U.abort(),c(!z||z&&z.type?new du("canceled"):z))},t.cancelToken&&t.cancelToken.subscribe(i),t.signal&&(t.signal.aborted?i():t.signal.addEventListener("abort",i))),ze.isStream(d)?d.on("error",function(v){c(sr(v,t,null,U))}).pipe(U):U.end(d)})}});var Pe=f((Sl,io)=>{"use strict";var M=V(),no=dn(),fu=dt(),pu={"Content-Type":"application/x-www-form-urlencoded"};function oo(e,t){!M.isUndefined(e)&&M.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function hu(){var e;return typeof XMLHttpRequest!="undefined"?e=xn():typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]"&&(e=ro()),e}function mu(e,t,r){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Ct={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:hu(),transformRequest:[function(t,r){return no(r,"Accept"),no(r,"Content-Type"),M.isFormData(t)||M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t)?t:M.isArrayBufferView(t)?t.buffer:M.isURLSearchParams(t)?(oo(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):M.isObject(t)||r&&r["Content-Type"]==="application/json"?(oo(r,"application/json"),mu(t)):t}],transformResponse:[function(t){var r=this.transitional||Ct.transitional,n=r&&r.silentJSONParsing,o=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||o&&M.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?fu(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};M.forEach(["delete","get","head"],function(t){Ct.headers[t]={}});M.forEach(["post","put","patch"],function(t){Ct.headers[t]=M.merge(pu)});io.exports=Ct});var ao=f((Pl,so)=>{"use strict";var vu=V(),gu=Pe();so.exports=function(t,r,n){var o=this||gu;return vu.forEach(n,function(s){t=s.call(o,t,r)}),t}});var ar=f((jl,uo)=>{"use strict";uo.exports=function(t){return!!(t&&t.__CANCEL__)}});var fo=f((kl,lo)=>{"use strict";var co=V(),ur=ao(),yu=ar(),bu=Pe(),wu=Se();function cr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wu("canceled")}lo.exports=function(t){cr(t),t.headers=t.headers||{},t.data=ur.call(t,t.data,t.headers,t.transformRequest),t.headers=co.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),co.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var r=t.adapter||bu.adapter;return r(t).then(function(o){return cr(t),o.data=ur.call(t,o.data,o.headers,t.transformResponse),o},function(o){return yu(o)||(cr(t),o&&o.response&&(o.response.data=ur.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})}});var lr=f((Fl,po)=>{"use strict";var G=V();po.exports=function(t,r){r=r||{};var n={};function o(a,l){return G.isPlainObject(a)&&G.isPlainObject(l)?G.merge(a,l):G.isPlainObject(l)?G.merge({},l):G.isArray(l)?l.slice():l}function i(a){if(G.isUndefined(r[a])){if(!G.isUndefined(t[a]))return o(void 0,t[a])}else return o(t[a],r[a])}function s(a){if(!G.isUndefined(r[a]))return o(void 0,r[a])}function u(a){if(G.isUndefined(r[a])){if(!G.isUndefined(t[a]))return o(void 0,t[a])}else return o(void 0,r[a])}function c(a){if(a in r)return o(t[a],r[a]);if(a in t)return o(void 0,t[a])}var d={url:s,method:s,data:s,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:c};return G.forEach(Object.keys(t).concat(Object.keys(r)),function(l){var p=d[l]||i,B=p(l);G.isUndefined(B)&&p!==c||(n[l]=B)}),n}});var vo=f((Dl,mo)=>{"use strict";var Ou=wt().version,dr={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){dr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var ho={};dr.transitional=function(t,r,n){function o(i,s){return"[Axios v"+Ou+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return function(i,s,u){if(t===!1)throw new Error(o(s," has been removed"+(r?" in "+r:"")));return r&&!ho[s]&&(ho[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,u):!0}};function Cu(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],s=t[i];if(s){var u=e[i],c=u===void 0||s(u,i,e);if(c!==!0)throw new TypeError("option "+i+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+i)}}mo.exports={assertOptions:Cu,validators:dr}});var Co=f((Ml,Oo)=>{"use strict";var go=V(),_u=ct(),yo=cn(),bo=fo(),_t=lr(),wo=vo(),De=wo.validators;function Je(e){this.defaults=e,this.interceptors={request:new yo,response:new yo}}Je.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=_t(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&wo.assertOptions(r,{silentJSONParsing:De.transitional(De.boolean),forcedJSONParsing:De.transitional(De.boolean),clarifyTimeoutError:De.transitional(De.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(o=o&&p.synchronous,n.unshift(p.fulfilled,p.rejected))});var i=[];this.interceptors.response.forEach(function(p){i.push(p.fulfilled,p.rejected)});var s;if(!o){var u=[bo,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(i),s=Promise.resolve(t);u.length;)s=s.then(u.shift(),u.shift());return s}for(var c=t;n.length;){var d=n.shift(),a=n.shift();try{c=d(c)}catch(l){a(l);break}}try{s=bo(c)}catch(l){return Promise.reject(l)}for(;i.length;)s=s.then(i.shift(),i.shift());return s};Je.prototype.getUri=function(t){return t=_t(this.defaults,t),_u(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};go.forEach(["delete","get","head","options"],function(t){Je.prototype[t]=function(r,n){return this.request(_t(n||{},{method:t,url:r,data:(n||{}).data}))}});go.forEach(["post","put","patch"],function(t){Je.prototype[t]=function(r,n,o){return this.request(_t(o||{},{method:t,url:r,data:n}))}});Oo.exports=Je});var Eo=f((Bl,_o)=>{"use strict";var Eu=Se();function Me(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(o){t=o});var r=this;this.promise.then(function(n){if(!!r._listeners){var o,i=r._listeners.length;for(o=0;o<i;o++)r._listeners[o](n);r._listeners=null}}),this.promise.then=function(n){var o,i=new Promise(function(s){r.subscribe(s),o=s}).then(n);return i.cancel=function(){r.unsubscribe(o)},i},e(function(o){r.reason||(r.reason=new Eu(o),t(r.reason))})}Me.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Me.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};Me.prototype.unsubscribe=function(t){if(!!this._listeners){var r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}};Me.source=function(){var t,r=new Me(function(o){t=o});return{token:r,cancel:t}};_o.exports=Me});var qo=f((Ll,Ao)=>{"use strict";Ao.exports=function(t){return function(n){return t.apply(null,n)}}});var Ro=f((Nl,To)=>{"use strict";To.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var Po=f((Il,fr)=>{"use strict";var xo=V(),Au=Ut(),Et=Co(),qu=lr(),Tu=Pe();function So(e){var t=new Et(e),r=Au(Et.prototype.request,t);return xo.extend(r,Et.prototype,t),xo.extend(r,t),r.create=function(o){return So(qu(e,o))},r}var ne=So(Tu);ne.Axios=Et;ne.Cancel=Se();ne.CancelToken=Eo();ne.isCancel=ar();ne.VERSION=wt().version;ne.all=function(t){return Promise.all(t)};ne.spread=qo();ne.isAxiosError=Ro();fr.exports=ne;fr.exports.default=ne});var pr=f((Ul,jo)=>{jo.exports=Po()});var Do=f(W=>{var Ru=W&&W.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(W,"__esModule",{value:!0});W.RequiredError=W.BaseAPI=W.COLLECTION_FORMATS=W.BASE_PATH=void 0;var xu=Ru(pr());W.BASE_PATH="https://api.analytica.click".replace(/\/+$/,"");W.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:" ",pipes:"|"};var ko=class{constructor(t,r=W.BASE_PATH,n=xu.default){this.basePath=r,this.axios=n,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}};W.BaseAPI=ko;var Fo=class extends Error{constructor(t,r){super(r);this.field=t,this.name="RequiredError"}};W.RequiredError=Fo});var At=f(h=>{var Su=h&&h.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Pu=h&&h.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),ju=h&&h.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Su(t,e,r);return Pu(t,e),t},x=h&&h.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(a){try{d(n.next(a))}catch(l){s(l)}}function c(a){try{d(n.throw(a))}catch(l){s(l)}}function d(a){a.done?i(a.value):o(a.value).then(u,c)}d((n=n.apply(e,t||[])).next())})},ku=h&&h.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(h,"__esModule",{value:!0});h.DefaultApi=h.DefaultApiFactory=h.DefaultApiFp=h.DefaultApiAxiosParamCreator=h.Sentiment=void 0;var S=ju(require("url")),ie=ku(pr()),w=Do(),Fu;(function(e){e.Good="good",e.Bad="bad",e.Neutral="neutral"})(Fu=h.Sentiment||(h.Sentiment={}));var Du=function(e){return{accountGet:(t={})=>x(this,void 0,void 0,function*(){let r="/account",n=S.parse(r,!0),o;e&&(o=e.baseOptions);let i=Object.assign(Object.assign({method:"GET"},o),t),s={},u={};if(e&&e.apiKey){let d=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;s.authorization=d}n.query=Object.assign(Object.assign(Object.assign({},n.query),u),t.query),delete n.search;let c=o&&o.headers?o.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},s),c),t.headers),{url:S.format(n),options:i}}),bingIntegrationPost:(t,r={})=>x(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("bingIntegration","Required parameter bingIntegration was null or undefined when calling bingIntegrationPost.");let n="/account/integrations/bing",o=S.parse(n,!0),i;e&&(i=e.baseOptions);let s=Object.assign(Object.assign({method:"POST"},i),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=i&&i.headers?i.headers:{};s.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:S.format(o),options:s}}),getTrackingAllSites:(t,r,n={})=>x(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("minDate","Required parameter minDate was null or undefined when calling getTrackingAllSites.");if(r==null)throw new w.RequiredError("maxDate","Required parameter maxDate was null or undefined when calling getTrackingAllSites.");let o="/site/tracking",i=S.parse(o,!0),s;e&&(s=e.baseOptions);let u=Object.assign(Object.assign({method:"GET"},s),n),c={},d={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;c.authorization=l}t!==void 0&&(d.minDate=t),r!==void 0&&(d.maxDate=r),i.query=Object.assign(Object.assign(Object.assign({},i.query),d),n.query),delete i.search;let a=s&&s.headers?s.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},c),a),n.headers),{url:S.format(i),options:u}}),getTrackingSite:(t,r,n,o={})=>x(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("id","Required parameter id was null or undefined when calling getTrackingSite.");if(r==null)throw new w.RequiredError("minDate","Required parameter minDate was null or undefined when calling getTrackingSite.");if(n==null)throw new w.RequiredError("maxDate","Required parameter maxDate was null or undefined when calling getTrackingSite.");let i="/site/tracking/{id}".replace("{id}",encodeURIComponent(String(t))),s=S.parse(i,!0),u;e&&(u=e.baseOptions);let c=Object.assign(Object.assign({method:"GET"},u),o),d={},a={};if(e&&e.apiKey){let p=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;d.authorization=p}r!==void 0&&(a.minDate=r),n!==void 0&&(a.maxDate=n),s.query=Object.assign(Object.assign(Object.assign({},s.query),a),o.query),delete s.search;let l=u&&u.headers?u.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},d),l),o.headers),{url:S.format(s),options:c}}),googleIntegrationPost:(t,r={})=>x(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("googleIntegration","Required parameter googleIntegration was null or undefined when calling googleIntegrationPost.");let n="/account/integrations/google",o=S.parse(n,!0),i;e&&(i=e.baseOptions);let s=Object.assign(Object.assign({method:"POST"},i),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=i&&i.headers?i.headers:{};s.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:S.format(o),options:s}}),postError:(t,r={})=>x(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("postError","Required parameter postError was null or undefined when calling postError.");let n="/error",o=S.parse(n,!0),i;e&&(i=e.baseOptions);let s=Object.assign(Object.assign({method:"POST"},i),r),u={},c={};u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=i&&i.headers?i.headers:{};s.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:S.format(o),options:s}}),postPageTrack:(t,r={})=>x(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("postSiteTrack","Required parameter postSiteTrack was null or undefined when calling postPageTrack.");let n="/site",o=S.parse(n,!0),i;e&&(i=e.baseOptions);let s=Object.assign(Object.assign({method:"POST"},i),r),u={},c={};u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=i&&i.headers?i.headers:{};s.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:S.format(o),options:s}}),putFeedback:(t,r={})=>x(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("feedbackPutData","Required parameter feedbackPutData was null or undefined when calling putFeedback.");let n="/feedback",o=S.parse(n,!0),i;e&&(i=e.baseOptions);let s=Object.assign(Object.assign({method:"PUT"},i),r),u={},c={};u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=i&&i.headers?i.headers:{};s.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:S.format(o),options:s}}),sitePost:(t,r={})=>x(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("postAccount","Required parameter postAccount was null or undefined when calling sitePost.");let n="/account/site",o=S.parse(n,!0),i;e&&(i=e.baseOptions);let s=Object.assign(Object.assign({method:"POST"},i),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=i&&i.headers?i.headers:{};s.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:S.format(o),options:s}})}};h.DefaultApiAxiosParamCreator=Du;var Mu=function(e){return{accountGet(t){return x(this,void 0,void 0,function*(){let r=yield(0,h.DefaultApiAxiosParamCreator)(e).accountGet(t);return(n=ie.default,o=w.BASE_PATH)=>{let i=Object.assign(Object.assign({},r.options),{url:o+r.url});return n.request(i)}})},bingIntegrationPost(t,r){return x(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).bingIntegrationPost(t,r);return(o=ie.default,i=w.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},getTrackingAllSites(t,r,n){return x(this,void 0,void 0,function*(){let o=yield(0,h.DefaultApiAxiosParamCreator)(e).getTrackingAllSites(t,r,n);return(i=ie.default,s=w.BASE_PATH)=>{let u=Object.assign(Object.assign({},o.options),{url:s+o.url});return i.request(u)}})},getTrackingSite(t,r,n,o){return x(this,void 0,void 0,function*(){let i=yield(0,h.DefaultApiAxiosParamCreator)(e).getTrackingSite(t,r,n,o);return(s=ie.default,u=w.BASE_PATH)=>{let c=Object.assign(Object.assign({},i.options),{url:u+i.url});return s.request(c)}})},googleIntegrationPost(t,r){return x(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).googleIntegrationPost(t,r);return(o=ie.default,i=w.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},postError(t,r){return x(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).postError(t,r);return(o=ie.default,i=w.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},postPageTrack(t,r){return x(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).postPageTrack(t,r);return(o=ie.default,i=w.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},putFeedback(t,r){return x(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).putFeedback(t,r);return(o=ie.default,i=w.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},sitePost(t,r){return x(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).sitePost(t,r);return(o=ie.default,i=w.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})}}};h.DefaultApiFp=Mu;var Bu=function(e,t,r){return{accountGet(n){return(0,h.DefaultApiFp)(e).accountGet(n).then(o=>o(r,t))},bingIntegrationPost(n,o){return(0,h.DefaultApiFp)(e).bingIntegrationPost(n,o).then(i=>i(r,t))},getTrackingAllSites(n,o,i){return(0,h.DefaultApiFp)(e).getTrackingAllSites(n,o,i).then(s=>s(r,t))},getTrackingSite(n,o,i,s){return(0,h.DefaultApiFp)(e).getTrackingSite(n,o,i,s).then(u=>u(r,t))},googleIntegrationPost(n,o){return(0,h.DefaultApiFp)(e).googleIntegrationPost(n,o).then(i=>i(r,t))},postError(n,o){return(0,h.DefaultApiFp)(e).postError(n,o).then(i=>i(r,t))},postPageTrack(n,o){return(0,h.DefaultApiFp)(e).postPageTrack(n,o).then(i=>i(r,t))},putFeedback(n,o){return(0,h.DefaultApiFp)(e).putFeedback(n,o).then(i=>i(r,t))},sitePost(n,o){return(0,h.DefaultApiFp)(e).sitePost(n,o).then(i=>i(r,t))}}};h.DefaultApiFactory=Bu;var Mo=class extends w.BaseAPI{accountGet(t){return(0,h.DefaultApiFp)(this.configuration).accountGet(t).then(r=>r(this.axios,this.basePath))}bingIntegrationPost(t,r){return(0,h.DefaultApiFp)(this.configuration).bingIntegrationPost(t,r).then(n=>n(this.axios,this.basePath))}getTrackingAllSites(t,r,n){return(0,h.DefaultApiFp)(this.configuration).getTrackingAllSites(t,r,n).then(o=>o(this.axios,this.basePath))}getTrackingSite(t,r,n,o){return(0,h.DefaultApiFp)(this.configuration).getTrackingSite(t,r,n,o).then(i=>i(this.axios,this.basePath))}googleIntegrationPost(t,r){return(0,h.DefaultApiFp)(this.configuration).googleIntegrationPost(t,r).then(n=>n(this.axios,this.basePath))}postError(t,r){return(0,h.DefaultApiFp)(this.configuration).postError(t,r).then(n=>n(this.axios,this.basePath))}postPageTrack(t,r){return(0,h.DefaultApiFp)(this.configuration).postPageTrack(t,r).then(n=>n(this.axios,this.basePath))}putFeedback(t,r){return(0,h.DefaultApiFp)(this.configuration).putFeedback(t,r).then(n=>n(this.axios,this.basePath))}sitePost(t,r){return(0,h.DefaultApiFp)(this.configuration).sitePost(t,r).then(n=>n(this.axios,this.basePath))}};h.DefaultApi=Mo});var Jo=f(Rt=>{"use strict";Rt.__esModule=!0;Rt.createRequires=void 0;var Ju=function(e){return typeof e=="function"?e():e||{}},Ku=function(e){var t=!1;return function(r){if(t||(e=Ju(e),t=!0),!(r in e))throw new Error("Could not require '"+r+"'. '"+r+"' does not exist in dependencies.");return e[r]}};Rt.createRequires=Ku});var Ko=f(vr=>{"use strict";vr.__esModule=!0;var Gu=function(e){var t={};return function(r){return r in t||(t[r]=e(r)),t[r]}};vr.default=Gu});var gr=f(Be=>{"use strict";Be.__esModule=!0;Be.InternalServerError=Be.OK=void 0;Be.OK=200;Be.InternalServerError=500});var Go=f(de=>{"use strict";de.__esModule=!0;de.DONE=de.OPENED=de.UNSENT=void 0;de.UNSENT=0;de.OPENED=1;de.DONE=4});var Wo=f(yr=>{"use strict";yr.__esModule=!0;var Wu=gr(),Xu=Go(),Yu=function(e){return new Promise(function(t,r){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState===Xu.DONE&&(n.status===Wu.OK?t(n.responseText):r(new Error("HTTP Error Response: "+n.status+" "+n.statusText+" ("+e+")")))},n.open("GET",e,!0),n.send()})};yr.default=Yu});var Zo=f(Ge=>{"use strict";var Xo=Ge&&Ge.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))};Ge.__esModule=!0;var Yo=require("http"),Qo=require("https"),Qu=gr(),Zu=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return typeof e!="string"?{on:function(n,o){o(new Error("URL must be a string."))}}:e.indexOf("https://")===0?Qo.get.apply(Qo,Xo([e],t,!1)):Yo.get.apply(Yo,Xo([e],t,!1))},ec=function(e){return new Promise(function(t,r){Zu(e,function(n){if(n.statusCode!==Qu.OK)return r(new Error("HTTP Error Response: "+n.statusCode+" "+n.statusMessage+" ("+e+")"));var o=null;n.on("data",function(i){if(o===null){o=i;return}o+=i}),n.on("end",function(){return t(o)})}).on("error",r)})};Ge.default=ec});var ei=f(xt=>{"use strict";xt.__esModule=!0;xt.createLoadRemoteModule=void 0;var tc=Ko(),rc=Wo(),nc=Zo(),oc=typeof window!="undefined"&&typeof window.document!="undefined",ic=oc?rc.default:nc.default,sc=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},ac=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,o=r||sc,i=n||ic;return(0,tc.default)(function(s){return i(s).then(function(u){var c={},d={exports:c},a=new Function("require","module","exports",u);return a(o,d,c),d.exports})})};xt.createLoadRemoteModule=ac});var ti=f(St=>{"use strict";St.__esModule=!0;St.createRequires=void 0;var uc=function(e){return function(t){var r=e||{};if(!(t in r))throw new Error("Could not require '"+t+"'. '"+t+"' does not exist in dependencies.");return r[t]}};St.createRequires=uc});var ni=f(fe=>{"use strict";var ri=fe&&fe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});fe.__esModule=!0;fe.createRequires=fe.default=void 0;var cc=ei();ri(fe,cc,"createLoadRemoteModule","default");var lc=ti();ri(fe,lc,"createRequires")});var ii=f(Le=>{"use strict";var dc=Le&&Le.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Le.__esModule=!0;Le.createUseRemoteComponent=void 0;var oi=require("react"),fc=dc(ni()),pc=function(e){var t=fc.default(e),r=function(n){var o=oi.useState({loading:!0,err:void 0,component:void 0}),i=o[0],s=i.loading,u=i.err,c=i.component,d=o[1];return oi.useEffect(function(){var a=d;return a({loading:!0,err:void 0,component:void 0}),t(n).then(function(l){return a({loading:!1,err:void 0,component:l.default})}).catch(function(l){return a({loading:!1,err:l,component:void 0})}),function(){a=function(){}}},[n]),[s,u,c]};return r};Le.createUseRemoteComponent=pc});var di=f(Ie=>{"use strict";var li=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.Close=void 0;var gc=li(require("styled-components")),yc=li(require("react")),bc=gc.default.div`
10
+ `).map(t=>t.trim()).join(" ")};Nn.O=function(e){return this.inspectOpts.colors=this.useColors,gt.inspect(e,this.inspectOpts)}});var Un=f((Al,er)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?er.exports=kn():er.exports=In()});var $n=f((ql,Vn)=>{var He;Vn.exports=function(){if(!He){try{He=Un()("follow-redirects")}catch{}typeof He!="function"&&(He=function(){})}He.apply(null,arguments)}});var ir=f((Tl,or)=>{var Ce=require("url"),tr=Ce.URL,Ga=require("http"),Wa=require("https"),Hn=require("stream").Writable,Xa=require("assert"),zn=$n(),_e=["abort","aborted","connect","error","socket","timeout"],rr=Object.create(null);_e.forEach(function(e){rr[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var Jn=bt("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Ya=bt("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Qa=bt("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Za=bt("ERR_STREAM_WRITE_AFTER_END","write after end");function K(e,t){Hn.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}K.prototype=Object.create(Hn.prototype);K.prototype.abort=function(){Wn(this._currentRequest),this.emit("abort")};K.prototype.write=function(e,t,r){if(this._ending)throw new Za;if(!(typeof e=="string"||typeof e=="object"&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(typeof t=="function"&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Qa),this.abort())};K.prototype.end=function(e,t,r){if(typeof e=="function"?(r=e,e=t=null):typeof t=="function"&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,o=this._currentRequest;this.write(e,t,function(){n._ended=!0,o.end(null,null,r)}),this._ending=!0}};K.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};K.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};K.prototype.setTimeout=function(e,t){var r=this;function n(s){s.setTimeout(e),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function o(s){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),i()},e),n(s)}function i(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",i),r.removeListener("error",i),r.removeListener("response",i),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",i),this.on("error",i),this.on("response",i),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){K.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(K.prototype,e,{get:function(){return this._currentRequest[e]}})});K.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};K.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=Ce.format(this._options),n._redirectable=this;for(var o=0;o<_e.length;o++)n.on(_e[o],rr[_e[o]]);if(this._isRedirect){var i=0,s=this,u=this._requestBodyBuffers;(function c(d){if(n===s._currentRequest)if(d)s.emit("error",d);else if(i<u.length){var a=u[i++];n.finished||n.write(a.data,a.encoding,c)}else s._ended&&n.end()})()}};K.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(r&&this._options.followRedirects!==!1&&t>=300&&t<400){if(Wn(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new Ya);return}((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],nr(/^content-/i,this._options.headers));var n=nr(/^host$/i,this._options.headers),o=Ce.parse(this._currentUrl),i=n||o.host,s=/^\w+:/.test(r)?this._currentUrl:Ce.format(Object.assign(o,{host:i})),u;try{u=Ce.resolve(s,r)}catch(a){this.emit("error",new Jn(a));return}zn("redirecting to",u),this._isRedirect=!0;var c=Ce.parse(u);if(Object.assign(this._options,c),c.host===i||tu(c.host,i)||nr(/^(?:authorization|cookie)$/i,this._options.headers),typeof this._options.beforeRedirect=="function"){var d={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,d)}catch(a){this.emit("error",a);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(a){this.emit("error",new Jn(a))}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]};function Kn(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024},r={};return Object.keys(e).forEach(function(n){var o=n+":",i=r[o]=e[n],s=t[n]=Object.create(i);function u(d,a,l){if(typeof d=="string"){var p=d;try{d=Gn(new tr(p))}catch{d=Ce.parse(p)}}else tr&&d instanceof tr?d=Gn(d):(l=a,a=d,d={protocol:o});return typeof a=="function"&&(l=a,a=null),a=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},d,a),a.nativeProtocols=r,Xa.equal(a.protocol,o,"protocol mismatch"),zn("options",a),new K(a,l)}function c(d,a,l){var p=s.request(d,a,l);return p.end(),p}Object.defineProperties(s,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function eu(){}function Gn(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return e.port!==""&&(t.port=Number(e.port)),t}function nr(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r=="undefined"?void 0:String(r).trim()}function bt(e,t){function r(n){Error.captureStackTrace(this,this.constructor),n?(this.message=t+": "+n.message,this.cause=n):this.message=t}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+e+"]",r.prototype.code=e,r}function Wn(e){for(var t=0;t<_e.length;t++)e.removeListener(_e[t],rr[_e[t]]);e.on("error",eu),e.abort()}function tu(e,t){let r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}or.exports=Kn({http:Ga,https:Wa});or.exports.wrap=Kn});var wt=f((Rl,Xn)=>{Xn.exports={version:"0.24.0"}});var ro=f((xl,to)=>{"use strict";var ze=V(),Yn=Jt(),ru=Kt(),nu=ct(),ou=require("http"),iu=require("https"),su=ir().http,au=ir().https,Qn=require("url"),uu=require("zlib"),cu=wt().version,Ot=ft(),sr=dt(),lu=Pe(),du=Se(),Zn=/https:?/;function eo(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(i){i.headers.host=i.host,eo(i,t,i.href)}}to.exports=function(t){return new Promise(function(n,o){var i;function s(){t.cancelToken&&t.cancelToken.unsubscribe(i),t.signal&&t.signal.removeEventListener("abort",i)}var u=function(v){s(),n(v)},c=function(v){s(),o(v)},d=t.data,a=t.headers,l={};if(Object.keys(a).forEach(function(v){l[v.toLowerCase()]=v}),"user-agent"in l?a[l["user-agent"]]||delete a[l["user-agent"]]:a["User-Agent"]="axios/"+cu,d&&!ze.isStream(d)){if(!Buffer.isBuffer(d))if(ze.isArrayBuffer(d))d=Buffer.from(new Uint8Array(d));else if(ze.isString(d))d=Buffer.from(d,"utf-8");else return c(Ot("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));l["content-length"]||(a["Content-Length"]=d.length)}var p=void 0;if(t.auth){var B=t.auth.username||"",Z=t.auth.password||"";p=B+":"+Z}var j=ru(t.baseURL,t.url),m=Qn.parse(j),g=m.protocol||"http:";if(!p&&m.auth){var E=m.auth.split(":"),_=E[0]||"",k=E[1]||"";p=_+":"+k}p&&l.authorization&&delete a[l.authorization];var me=Zn.test(g),ve=me?t.httpsAgent:t.httpAgent,X={path:nu(m.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:a,agent:ve,agents:{http:t.httpAgent,https:t.httpsAgent},auth:p};t.socketPath?X.socketPath=t.socketPath:(X.hostname=m.hostname,X.port=m.port);var ee=t.proxy;if(!ee&&ee!==!1){var Qe=g.slice(0,-1)+"_proxy",wr=process.env[Qe]||process.env[Qe.toUpperCase()];if(wr){var Ve=Qn.parse(wr),Or=process.env.no_proxy||process.env.NO_PROXY,Cr=!0;if(Or){var bi=Or.split(",").map(function(v){return v.trim()});Cr=!bi.some(function(v){return v?v==="*"||v[0]==="."&&m.hostname.substr(m.hostname.length-v.length)===v?!0:m.hostname===v:!1})}if(Cr&&(ee={host:Ve.hostname,port:Ve.port,protocol:Ve.protocol},Ve.auth)){var _r=Ve.auth.split(":");ee.auth={username:_r[0],password:_r[1]}}}}ee&&(X.headers.host=m.hostname+(m.port?":"+m.port:""),eo(X,ee,g+"//"+m.hostname+(m.port?":"+m.port:"")+X.path));var Ze,Er=me&&(ee?Zn.test(ee.protocol):!0);t.transport?Ze=t.transport:t.maxRedirects===0?Ze=Er?iu:ou:(t.maxRedirects&&(X.maxRedirects=t.maxRedirects),Ze=Er?au:su),t.maxBodyLength>-1&&(X.maxBodyLength=t.maxBodyLength),t.insecureHTTPParser&&(X.insecureHTTPParser=t.insecureHTTPParser);var U=Ze.request(X,function(v){if(!U.aborted){var ge=v,et=v.req||U;if(v.statusCode!==204&&et.method!=="HEAD"&&t.decompress!==!1)switch(v.headers["content-encoding"]){case"gzip":case"compress":case"deflate":ge=ge.pipe(uu.createUnzip()),delete v.headers["content-encoding"];break}var tt={status:v.statusCode,statusText:v.statusMessage,headers:v.headers,config:t,request:et};if(t.responseType==="stream")tt.data=ge,Yn(u,c,tt);else{var Ar=[],qr=0;ge.on("data",function(te){Ar.push(te),qr+=te.length,t.maxContentLength>-1&&qr>t.maxContentLength&&(ge.destroy(),c(Ot("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,et)))}),ge.on("error",function(te){U.aborted||c(sr(te,t,null,et))}),ge.on("end",function(){var te=Buffer.concat(Ar);t.responseType!=="arraybuffer"&&(te=te.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(te=ze.stripBOM(te))),tt.data=te,Yn(u,c,tt)})}}});if(U.on("error",function(v){U.aborted&&v.code!=="ERR_FR_TOO_MANY_REDIRECTS"||c(sr(v,t,null,U))}),t.timeout){var Ft=parseInt(t.timeout,10);if(isNaN(Ft)){c(Ot("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",U));return}U.setTimeout(Ft,function(){U.abort();var v=t.transitional||lu.transitional;c(Ot("timeout of "+Ft+"ms exceeded",t,v.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",U))})}(t.cancelToken||t.signal)&&(i=function(z){U.aborted||(U.abort(),c(!z||z&&z.type?new du("canceled"):z))},t.cancelToken&&t.cancelToken.subscribe(i),t.signal&&(t.signal.aborted?i():t.signal.addEventListener("abort",i))),ze.isStream(d)?d.on("error",function(v){c(sr(v,t,null,U))}).pipe(U):U.end(d)})}});var Pe=f((Sl,io)=>{"use strict";var M=V(),no=dn(),fu=dt(),pu={"Content-Type":"application/x-www-form-urlencoded"};function oo(e,t){!M.isUndefined(e)&&M.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function hu(){var e;return typeof XMLHttpRequest!="undefined"?e=xn():typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]"&&(e=ro()),e}function mu(e,t,r){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Ct={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:hu(),transformRequest:[function(t,r){return no(r,"Accept"),no(r,"Content-Type"),M.isFormData(t)||M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t)?t:M.isArrayBufferView(t)?t.buffer:M.isURLSearchParams(t)?(oo(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):M.isObject(t)||r&&r["Content-Type"]==="application/json"?(oo(r,"application/json"),mu(t)):t}],transformResponse:[function(t){var r=this.transitional||Ct.transitional,n=r&&r.silentJSONParsing,o=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||o&&M.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?fu(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};M.forEach(["delete","get","head"],function(t){Ct.headers[t]={}});M.forEach(["post","put","patch"],function(t){Ct.headers[t]=M.merge(pu)});io.exports=Ct});var ao=f((Pl,so)=>{"use strict";var vu=V(),gu=Pe();so.exports=function(t,r,n){var o=this||gu;return vu.forEach(n,function(s){t=s.call(o,t,r)}),t}});var ar=f((jl,uo)=>{"use strict";uo.exports=function(t){return!!(t&&t.__CANCEL__)}});var fo=f((kl,lo)=>{"use strict";var co=V(),ur=ao(),yu=ar(),bu=Pe(),wu=Se();function cr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wu("canceled")}lo.exports=function(t){cr(t),t.headers=t.headers||{},t.data=ur.call(t,t.data,t.headers,t.transformRequest),t.headers=co.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),co.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var r=t.adapter||bu.adapter;return r(t).then(function(o){return cr(t),o.data=ur.call(t,o.data,o.headers,t.transformResponse),o},function(o){return yu(o)||(cr(t),o&&o.response&&(o.response.data=ur.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})}});var lr=f((Fl,po)=>{"use strict";var G=V();po.exports=function(t,r){r=r||{};var n={};function o(a,l){return G.isPlainObject(a)&&G.isPlainObject(l)?G.merge(a,l):G.isPlainObject(l)?G.merge({},l):G.isArray(l)?l.slice():l}function i(a){if(G.isUndefined(r[a])){if(!G.isUndefined(t[a]))return o(void 0,t[a])}else return o(t[a],r[a])}function s(a){if(!G.isUndefined(r[a]))return o(void 0,r[a])}function u(a){if(G.isUndefined(r[a])){if(!G.isUndefined(t[a]))return o(void 0,t[a])}else return o(void 0,r[a])}function c(a){if(a in r)return o(t[a],r[a]);if(a in t)return o(void 0,t[a])}var d={url:s,method:s,data:s,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:c};return G.forEach(Object.keys(t).concat(Object.keys(r)),function(l){var p=d[l]||i,B=p(l);G.isUndefined(B)&&p!==c||(n[l]=B)}),n}});var vo=f((Dl,mo)=>{"use strict";var Ou=wt().version,dr={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){dr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var ho={};dr.transitional=function(t,r,n){function o(i,s){return"[Axios v"+Ou+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return function(i,s,u){if(t===!1)throw new Error(o(s," has been removed"+(r?" in "+r:"")));return r&&!ho[s]&&(ho[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,u):!0}};function Cu(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],s=t[i];if(s){var u=e[i],c=u===void 0||s(u,i,e);if(c!==!0)throw new TypeError("option "+i+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+i)}}mo.exports={assertOptions:Cu,validators:dr}});var Co=f((Ml,Oo)=>{"use strict";var go=V(),_u=ct(),yo=cn(),bo=fo(),_t=lr(),wo=vo(),De=wo.validators;function Je(e){this.defaults=e,this.interceptors={request:new yo,response:new yo}}Je.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=_t(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&wo.assertOptions(r,{silentJSONParsing:De.transitional(De.boolean),forcedJSONParsing:De.transitional(De.boolean),clarifyTimeoutError:De.transitional(De.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(o=o&&p.synchronous,n.unshift(p.fulfilled,p.rejected))});var i=[];this.interceptors.response.forEach(function(p){i.push(p.fulfilled,p.rejected)});var s;if(!o){var u=[bo,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(i),s=Promise.resolve(t);u.length;)s=s.then(u.shift(),u.shift());return s}for(var c=t;n.length;){var d=n.shift(),a=n.shift();try{c=d(c)}catch(l){a(l);break}}try{s=bo(c)}catch(l){return Promise.reject(l)}for(;i.length;)s=s.then(i.shift(),i.shift());return s};Je.prototype.getUri=function(t){return t=_t(this.defaults,t),_u(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};go.forEach(["delete","get","head","options"],function(t){Je.prototype[t]=function(r,n){return this.request(_t(n||{},{method:t,url:r,data:(n||{}).data}))}});go.forEach(["post","put","patch"],function(t){Je.prototype[t]=function(r,n,o){return this.request(_t(o||{},{method:t,url:r,data:n}))}});Oo.exports=Je});var Eo=f((Bl,_o)=>{"use strict";var Eu=Se();function Me(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(o){t=o});var r=this;this.promise.then(function(n){if(!!r._listeners){var o,i=r._listeners.length;for(o=0;o<i;o++)r._listeners[o](n);r._listeners=null}}),this.promise.then=function(n){var o,i=new Promise(function(s){r.subscribe(s),o=s}).then(n);return i.cancel=function(){r.unsubscribe(o)},i},e(function(o){r.reason||(r.reason=new Eu(o),t(r.reason))})}Me.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Me.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};Me.prototype.unsubscribe=function(t){if(!!this._listeners){var r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}};Me.source=function(){var t,r=new Me(function(o){t=o});return{token:r,cancel:t}};_o.exports=Me});var qo=f((Ll,Ao)=>{"use strict";Ao.exports=function(t){return function(n){return t.apply(null,n)}}});var Ro=f((Nl,To)=>{"use strict";To.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var Po=f((Il,fr)=>{"use strict";var xo=V(),Au=Ut(),Et=Co(),qu=lr(),Tu=Pe();function So(e){var t=new Et(e),r=Au(Et.prototype.request,t);return xo.extend(r,Et.prototype,t),xo.extend(r,t),r.create=function(o){return So(qu(e,o))},r}var ne=So(Tu);ne.Axios=Et;ne.Cancel=Se();ne.CancelToken=Eo();ne.isCancel=ar();ne.VERSION=wt().version;ne.all=function(t){return Promise.all(t)};ne.spread=qo();ne.isAxiosError=Ro();fr.exports=ne;fr.exports.default=ne});var pr=f((Ul,jo)=>{jo.exports=Po()});var Do=f(W=>{var Ru=W&&W.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(W,"__esModule",{value:!0});W.RequiredError=W.BaseAPI=W.COLLECTION_FORMATS=W.BASE_PATH=void 0;var xu=Ru(pr());W.BASE_PATH="https://api.analytica.click".replace(/\/+$/,"");W.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:" ",pipes:"|"};var ko=class{constructor(t,r=W.BASE_PATH,n=xu.default){this.basePath=r,this.axios=n,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}};W.BaseAPI=ko;var Fo=class extends Error{constructor(t,r){super(r);this.field=t,this.name="RequiredError"}};W.RequiredError=Fo});var At=f(h=>{var Su=h&&h.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Pu=h&&h.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),ju=h&&h.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Su(t,e,r);return Pu(t,e),t},x=h&&h.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(a){try{d(n.next(a))}catch(l){s(l)}}function c(a){try{d(n.throw(a))}catch(l){s(l)}}function d(a){a.done?i(a.value):o(a.value).then(u,c)}d((n=n.apply(e,t||[])).next())})},ku=h&&h.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(h,"__esModule",{value:!0});h.DefaultApi=h.DefaultApiFactory=h.DefaultApiFp=h.DefaultApiAxiosParamCreator=h.Sentiment=void 0;var S=ju(require("url")),ie=ku(pr()),w=Do(),Fu;(function(e){e.Good="good",e.Bad="bad",e.Neutral="neutral"})(Fu=h.Sentiment||(h.Sentiment={}));var Du=function(e){return{accountGet:(t={})=>x(this,void 0,void 0,function*(){let r="/account",n=S.parse(r,!0),o;e&&(o=e.baseOptions);let i=Object.assign(Object.assign({method:"GET"},o),t),s={},u={};if(e&&e.apiKey){let d=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;s.authorization=d}n.query=Object.assign(Object.assign(Object.assign({},n.query),u),t.query),delete n.search;let c=o&&o.headers?o.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},s),c),t.headers),{url:S.format(n),options:i}}),bingIntegrationPost:(t,r={})=>x(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("bingIntegration","Required parameter bingIntegration was null or undefined when calling bingIntegrationPost.");let n="/account/integrations/bing",o=S.parse(n,!0),i;e&&(i=e.baseOptions);let s=Object.assign(Object.assign({method:"POST"},i),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=i&&i.headers?i.headers:{};s.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:S.format(o),options:s}}),getTrackingAllSites:(t,r,n={})=>x(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("minDate","Required parameter minDate was null or undefined when calling getTrackingAllSites.");if(r==null)throw new w.RequiredError("maxDate","Required parameter maxDate was null or undefined when calling getTrackingAllSites.");let o="/site/tracking",i=S.parse(o,!0),s;e&&(s=e.baseOptions);let u=Object.assign(Object.assign({method:"GET"},s),n),c={},d={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;c.authorization=l}t!==void 0&&(d.minDate=t),r!==void 0&&(d.maxDate=r),i.query=Object.assign(Object.assign(Object.assign({},i.query),d),n.query),delete i.search;let a=s&&s.headers?s.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},c),a),n.headers),{url:S.format(i),options:u}}),getTrackingSite:(t,r,n,o={})=>x(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("id","Required parameter id was null or undefined when calling getTrackingSite.");if(r==null)throw new w.RequiredError("minDate","Required parameter minDate was null or undefined when calling getTrackingSite.");if(n==null)throw new w.RequiredError("maxDate","Required parameter maxDate was null or undefined when calling getTrackingSite.");let i="/site/tracking/{id}".replace("{id}",encodeURIComponent(String(t))),s=S.parse(i,!0),u;e&&(u=e.baseOptions);let c=Object.assign(Object.assign({method:"GET"},u),o),d={},a={};if(e&&e.apiKey){let p=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;d.authorization=p}r!==void 0&&(a.minDate=r),n!==void 0&&(a.maxDate=n),s.query=Object.assign(Object.assign(Object.assign({},s.query),a),o.query),delete s.search;let l=u&&u.headers?u.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},d),l),o.headers),{url:S.format(s),options:c}}),googleIntegrationPost:(t,r={})=>x(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("googleIntegration","Required parameter googleIntegration was null or undefined when calling googleIntegrationPost.");let n="/account/integrations/google",o=S.parse(n,!0),i;e&&(i=e.baseOptions);let s=Object.assign(Object.assign({method:"POST"},i),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=i&&i.headers?i.headers:{};s.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:S.format(o),options:s}}),postError:(t,r={})=>x(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("postError","Required parameter postError was null or undefined when calling postError.");let n="/error",o=S.parse(n,!0),i;e&&(i=e.baseOptions);let s=Object.assign(Object.assign({method:"POST"},i),r),u={},c={};u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=i&&i.headers?i.headers:{};s.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:S.format(o),options:s}}),postPageTrack:(t,r={})=>x(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("postSiteTrack","Required parameter postSiteTrack was null or undefined when calling postPageTrack.");let n="/site",o=S.parse(n,!0),i;e&&(i=e.baseOptions);let s=Object.assign(Object.assign({method:"POST"},i),r),u={},c={};u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=i&&i.headers?i.headers:{};s.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:S.format(o),options:s}}),putFeedback:(t,r={})=>x(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("feedbackPutData","Required parameter feedbackPutData was null or undefined when calling putFeedback.");let n="/feedback",o=S.parse(n,!0),i;e&&(i=e.baseOptions);let s=Object.assign(Object.assign({method:"PUT"},i),r),u={},c={};u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=i&&i.headers?i.headers:{};s.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:S.format(o),options:s}}),sitePost:(t,r={})=>x(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("postAccount","Required parameter postAccount was null or undefined when calling sitePost.");let n="/account/site",o=S.parse(n,!0),i;e&&(i=e.baseOptions);let s=Object.assign(Object.assign({method:"POST"},i),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=i&&i.headers?i.headers:{};s.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:S.format(o),options:s}})}};h.DefaultApiAxiosParamCreator=Du;var Mu=function(e){return{accountGet(t){return x(this,void 0,void 0,function*(){let r=yield(0,h.DefaultApiAxiosParamCreator)(e).accountGet(t);return(n=ie.default,o=w.BASE_PATH)=>{let i=Object.assign(Object.assign({},r.options),{url:o+r.url});return n.request(i)}})},bingIntegrationPost(t,r){return x(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).bingIntegrationPost(t,r);return(o=ie.default,i=w.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},getTrackingAllSites(t,r,n){return x(this,void 0,void 0,function*(){let o=yield(0,h.DefaultApiAxiosParamCreator)(e).getTrackingAllSites(t,r,n);return(i=ie.default,s=w.BASE_PATH)=>{let u=Object.assign(Object.assign({},o.options),{url:s+o.url});return i.request(u)}})},getTrackingSite(t,r,n,o){return x(this,void 0,void 0,function*(){let i=yield(0,h.DefaultApiAxiosParamCreator)(e).getTrackingSite(t,r,n,o);return(s=ie.default,u=w.BASE_PATH)=>{let c=Object.assign(Object.assign({},i.options),{url:u+i.url});return s.request(c)}})},googleIntegrationPost(t,r){return x(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).googleIntegrationPost(t,r);return(o=ie.default,i=w.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},postError(t,r){return x(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).postError(t,r);return(o=ie.default,i=w.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},postPageTrack(t,r){return x(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).postPageTrack(t,r);return(o=ie.default,i=w.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},putFeedback(t,r){return x(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).putFeedback(t,r);return(o=ie.default,i=w.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},sitePost(t,r){return x(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).sitePost(t,r);return(o=ie.default,i=w.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})}}};h.DefaultApiFp=Mu;var Bu=function(e,t,r){return{accountGet(n){return(0,h.DefaultApiFp)(e).accountGet(n).then(o=>o(r,t))},bingIntegrationPost(n,o){return(0,h.DefaultApiFp)(e).bingIntegrationPost(n,o).then(i=>i(r,t))},getTrackingAllSites(n,o,i){return(0,h.DefaultApiFp)(e).getTrackingAllSites(n,o,i).then(s=>s(r,t))},getTrackingSite(n,o,i,s){return(0,h.DefaultApiFp)(e).getTrackingSite(n,o,i,s).then(u=>u(r,t))},googleIntegrationPost(n,o){return(0,h.DefaultApiFp)(e).googleIntegrationPost(n,o).then(i=>i(r,t))},postError(n,o){return(0,h.DefaultApiFp)(e).postError(n,o).then(i=>i(r,t))},postPageTrack(n,o){return(0,h.DefaultApiFp)(e).postPageTrack(n,o).then(i=>i(r,t))},putFeedback(n,o){return(0,h.DefaultApiFp)(e).putFeedback(n,o).then(i=>i(r,t))},sitePost(n,o){return(0,h.DefaultApiFp)(e).sitePost(n,o).then(i=>i(r,t))}}};h.DefaultApiFactory=Bu;var Mo=class extends w.BaseAPI{accountGet(t){return(0,h.DefaultApiFp)(this.configuration).accountGet(t).then(r=>r(this.axios,this.basePath))}bingIntegrationPost(t,r){return(0,h.DefaultApiFp)(this.configuration).bingIntegrationPost(t,r).then(n=>n(this.axios,this.basePath))}getTrackingAllSites(t,r,n){return(0,h.DefaultApiFp)(this.configuration).getTrackingAllSites(t,r,n).then(o=>o(this.axios,this.basePath))}getTrackingSite(t,r,n,o){return(0,h.DefaultApiFp)(this.configuration).getTrackingSite(t,r,n,o).then(i=>i(this.axios,this.basePath))}googleIntegrationPost(t,r){return(0,h.DefaultApiFp)(this.configuration).googleIntegrationPost(t,r).then(n=>n(this.axios,this.basePath))}postError(t,r){return(0,h.DefaultApiFp)(this.configuration).postError(t,r).then(n=>n(this.axios,this.basePath))}postPageTrack(t,r){return(0,h.DefaultApiFp)(this.configuration).postPageTrack(t,r).then(n=>n(this.axios,this.basePath))}putFeedback(t,r){return(0,h.DefaultApiFp)(this.configuration).putFeedback(t,r).then(n=>n(this.axios,this.basePath))}sitePost(t,r){return(0,h.DefaultApiFp)(this.configuration).sitePost(t,r).then(n=>n(this.axios,this.basePath))}};h.DefaultApi=Mo});var Jo=f(Rt=>{"use strict";Rt.__esModule=!0;Rt.createRequires=void 0;var Ju=function(e){return typeof e=="function"?e():e||{}},Ku=function(e){var t=!1;return function(r){if(t||(e=Ju(e),t=!0),!(r in e))throw new Error("Could not require '"+r+"'. '"+r+"' does not exist in dependencies.");return e[r]}};Rt.createRequires=Ku});var Ko=f(vr=>{"use strict";vr.__esModule=!0;var Gu=function(e){var t={};return function(r){return r in t||(t[r]=e(r)),t[r]}};vr.default=Gu});var gr=f(Be=>{"use strict";Be.__esModule=!0;Be.InternalServerError=Be.OK=void 0;Be.OK=200;Be.InternalServerError=500});var Yo=f(Ge=>{"use strict";var Go=Ge&&Ge.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))};Ge.__esModule=!0;var Wo=require("http"),Xo=require("https"),Wu=gr(),Xu=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return typeof e!="string"?{on:function(n,o){o(new Error("URL must be a string."))}}:e.indexOf("https://")===0?Xo.get.apply(Xo,Go([e],t,!1)):Wo.get.apply(Wo,Go([e],t,!1))},Yu=function(e){return new Promise(function(t,r){Xu(e,function(n){if(n.statusCode!==Wu.OK)return r(new Error("HTTP Error Response: "+n.statusCode+" "+n.statusMessage+" ("+e+")"));var o=null;n.on("data",function(i){if(o===null){o=i;return}o+=i}),n.on("end",function(){return t(o)})}).on("error",r)})};Ge.default=Yu});var Qo=f(de=>{"use strict";de.__esModule=!0;de.DONE=de.OPENED=de.UNSENT=void 0;de.UNSENT=0;de.OPENED=1;de.DONE=4});var Zo=f(yr=>{"use strict";yr.__esModule=!0;var Qu=gr(),Zu=Qo(),ec=function(e){return new Promise(function(t,r){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState===Zu.DONE&&(n.status===Qu.OK?t(n.responseText):r(new Error("HTTP Error Response: "+n.status+" "+n.statusText+" ("+e+")")))},n.open("GET",e,!0),n.send()})};yr.default=ec});var ei=f(xt=>{"use strict";xt.__esModule=!0;xt.createLoadRemoteModule=void 0;var tc=Ko(),rc=Yo(),nc=Zo(),oc=typeof window!="undefined"&&typeof window.document!="undefined",ic=oc?nc.default:rc.default,sc=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},ac=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,o=r||sc,i=n||ic;return(0,tc.default)(function(s){return i(s).then(function(u){var c={},d={exports:c},a=new Function("require","module","exports",u);return a(o,d,c),d.exports})})};xt.createLoadRemoteModule=ac});var ti=f(St=>{"use strict";St.__esModule=!0;St.createRequires=void 0;var uc=function(e){return function(t){var r=e||{};if(!(t in r))throw new Error("Could not require '"+t+"'. '"+t+"' does not exist in dependencies.");return r[t]}};St.createRequires=uc});var ni=f(fe=>{"use strict";var ri=fe&&fe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});fe.__esModule=!0;fe.createRequires=fe.default=void 0;var cc=ei();ri(fe,cc,"createLoadRemoteModule","default");var lc=ti();ri(fe,lc,"createRequires")});var ii=f(Le=>{"use strict";var dc=Le&&Le.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Le.__esModule=!0;Le.createUseRemoteComponent=void 0;var oi=require("react"),fc=dc(ni()),pc=function(e){var t=fc.default(e),r=function(n){var o=oi.useState({loading:!0,err:void 0,component:void 0}),i=o[0],s=i.loading,u=i.err,c=i.component,d=o[1];return oi.useEffect(function(){var a=d;return a({loading:!0,err:void 0,component:void 0}),t(n).then(function(l){return a({loading:!1,err:void 0,component:l.default})}).catch(function(l){return a({loading:!1,err:l,component:void 0})}),function(){a=function(){}}},[n]),[s,u,c]};return r};Le.createUseRemoteComponent=pc});var di=f(Ie=>{"use strict";var li=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.Close=void 0;var gc=li(require("styled-components")),yc=li(require("react")),bc=gc.default.div`
11
11
  position: absolute;
12
12
  width: 32px;
13
13
  height: 32px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "analytica.click",
3
- "version": "0.0.154",
3
+ "version": "0.0.158",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",