analytica.click 0.0.114 → 0.0.118
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.
- package/dist/index.d.ts +4 -0
- package/dist/index.js +16 -16
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -80,6 +80,7 @@ declare module 'analytica.click/common-ui/src/types/jwt' {
|
|
80
80
|
}
|
81
81
|
export interface AuthedUserContext {
|
82
82
|
loading: boolean;
|
83
|
+
loggingOut: boolean;
|
83
84
|
isAuthenticated: boolean;
|
84
85
|
/**
|
85
86
|
* @param stateqs: must be base64'd
|
@@ -179,6 +180,7 @@ declare module 'analytica.click/common-ui/src/types/widgets' {
|
|
179
180
|
}
|
180
181
|
export interface ICognitoAuthProviderPropsInternal extends ICognitoAuthProviderProps {
|
181
182
|
Context: React.Context<AuthedUserContext>;
|
183
|
+
noLogoutRedirect?: boolean;
|
182
184
|
}
|
183
185
|
|
184
186
|
}
|
@@ -196,6 +198,8 @@ declare module 'analytica.click/ui-npm/src/components/AnalyticaConfig/types' {
|
|
196
198
|
export interface IAnalyticaConfig {
|
197
199
|
analyticaToken?: string;
|
198
200
|
overrideBaseUrl?: string;
|
201
|
+
devMode?: boolean;
|
202
|
+
noLogoutRedirect?: boolean;
|
199
203
|
}
|
200
204
|
|
201
205
|
}
|
package/dist/index.js
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
var ji=Object.create;var Ie=Object.defineProperty,Fi=Object.defineProperties,Bi=Object.getOwnPropertyDescriptor,ki=Object.getOwnPropertyDescriptors,Mi=Object.getOwnPropertyNames,jr=Object.getOwnPropertySymbols,Di=Object.getPrototypeOf,Fr=Object.prototype.hasOwnProperty,Ni=Object.prototype.propertyIsEnumerable;var Br=(t,e,r)=>e in t?Ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e||(e={}))Fr.call(e,r)&&Br(t,r,e[r]);if(jr)for(var r of jr(e))Ni.call(e,r)&&Br(t,r,e[r]);return t},B=(t,e)=>Fi(t,ki(e)),kr=t=>Ie(t,"__esModule",{value:!0});var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Li=(t,e)=>{kr(t);for(var r in e)Ie(t,r,{get:e[r],enumerable:!0})},Ii=(t,e,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Mi(e))!Fr.call(t,n)&&n!=="default"&&Ie(t,n,{get:()=>e[n],enumerable:!(r=Bi(e,n))||r.enumerable});return t},b=t=>Ii(kr(Ie(t!=null?ji(Di(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var se=(t,e,r)=>new Promise((n,o)=>{var i=c=>{try{u(r.next(c))}catch(d){o(d)}},s=c=>{try{u(r.throw(c))}catch(d){o(d)}},u=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,s);u((r=r.apply(t,e)).next())});var ae=f(z=>{Object.defineProperty(z,"__esModule",{value:!0});z.trace=z.debug=z.error=z.warn=z.info=void 0;function
|
2
|
-
`),function(u){if(i=u.indexOf(":"),n=$t.trim(u.substr(0,i)).toLowerCase(),o=$t.trim(u.substr(i+1)),n){if(r[n]&&hs.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([o]):r[n]=r[n]?r[n]+", "+o:o}}),r}});var an=f((Lc,sn)=>{"use strict";var on=j();sn.exports=on.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function o(i){var s=i;return e&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){var u=on.isString(s)?o(s):s;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}()});var Ee=f((Ic,un)=>{"use strict";function Jt(t){this.message=t}Jt.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Jt.prototype.__CANCEL__=!0;un.exports=Jt});var ln=f((Uc,cn)=>{"use strict";var ut=j(),ms=Ht(),gs=Xr(),vs=nt(),ys=zt(),bs=nn(),_s=an(),Kt=st(),Cs=qe(),Os=Ee();cn.exports=function(e){return new Promise(function(n,o){var i=e.data,s=e.headers,u=e.responseType,c;function d(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}ut.isFormData(i)&&delete s["Content-Type"];var a=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.Authorization="Basic "+btoa(l+":"+p)}var v=ys(e.baseURL,e.url);a.open(e.method.toUpperCase(),vs(v,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function V(){if(!!a){var m="getAllResponseHeaders"in a?bs(a.getAllResponseHeaders()):null,_=!u||u==="text"||u==="json"?a.responseText:a.response,T={data:_,status:a.status,statusText:a.statusText,headers:m,config:e,request:a};ms(function(Y){n(Y),d()},function(Y){o(Y),d()},T),a=null}}if("onloadend"in a?a.onloadend=V:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(V)},a.onabort=function(){!a||(o(Kt("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){o(Kt("Network Error",e,null,a)),a=null},a.ontimeout=function(){var _=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",T=e.transitional||Cs.transitional;e.timeoutErrorMessage&&(_=e.timeoutErrorMessage),o(Kt(_,e,T.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},ut.isStandardBrowserEnv()){var E=(e.withCredentials||_s(v))&&e.xsrfCookieName?gs.read(e.xsrfCookieName):void 0;E&&(s[e.xsrfHeaderName]=E)}"setRequestHeader"in a&&ut.forEach(s,function(_,T){typeof i=="undefined"&&T.toLowerCase()==="content-type"?delete s[T]:a.setRequestHeader(T,_)}),ut.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),u&&u!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(c=function(m){!a||(o(!m||m&&m.type?new Os("canceled"):m),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c))),i||(i=null),a.send(i)})}});var fn=f((Vc,dn)=>{var Ae=1e3,Se=Ae*60,xe=Se*60,ve=xe*24,ws=ve*7,Es=ve*365.25;dn.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return qs(t);if(r==="number"&&isFinite(t))return e.long?Ss(t):As(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function qs(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!!e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Es;case"weeks":case"week":case"w":return r*ws;case"days":case"day":case"d":return r*ve;case"hours":case"hour":case"hrs":case"hr":case"h":return r*xe;case"minutes":case"minute":case"mins":case"min":case"m":return r*Se;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ae;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function As(t){var e=Math.abs(t);return e>=ve?Math.round(t/ve)+"d":e>=xe?Math.round(t/xe)+"h":e>=Se?Math.round(t/Se)+"m":e>=Ae?Math.round(t/Ae)+"s":t+"ms"}function Ss(t){var e=Math.abs(t);return e>=ve?ct(t,e,ve,"day"):e>=xe?ct(t,e,xe,"hour"):e>=Se?ct(t,e,Se,"minute"):e>=Ae?ct(t,e,Ae,"second"):t+" ms"}function ct(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var Gt=f((Hc,pn)=>{function xs(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=s,r.humanize=fn(),r.destroy=d,Object.keys(t).forEach(a=>{r[a]=t[a]}),r.names=[],r.skips=[],r.formatters={};function e(a){let l=0;for(let p=0;p<a.length;p++)l=(l<<5)-l+a.charCodeAt(p),l|=0;return r.colors[Math.abs(l)%r.colors.length]}r.selectColor=e;function r(a){let l,p=null,v,V;function E(...m){if(!E.enabled)return;let _=E,T=Number(new Date),De=T-(l||T);_.diff=De,_.prev=l,_.curr=T,l=T,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let Y=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(Ne,H)=>{if(Ne==="%%")return"%";Y++;let W=r.formatters[H];if(typeof W=="function"){let Qe=m[Y];Ne=W.call(_,Qe),m.splice(Y,1),Y--}return Ne}),r.formatArgs.call(_,m),(_.log||r.log).apply(_,m)}return E.namespace=a,E.useColors=r.useColors(),E.color=r.selectColor(a),E.extend=n,E.destroy=r.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(v!==r.namespaces&&(v=r.namespaces,V=r.enabled(a)),V),set:m=>{p=m}}),typeof r.init=="function"&&r.init(E),E}function n(a,l){let p=r(this.namespace+(typeof l=="undefined"?":":l)+a);return p.log=this.log,p}function o(a){r.save(a),r.namespaces=a,r.names=[],r.skips=[];let l,p=(typeof a=="string"?a:"").split(/[\s,]+/),v=p.length;for(l=0;l<v;l++)!p[l]||(a=p[l].replace(/\*/g,".*?"),a[0]==="-"?r.skips.push(new RegExp("^"+a.substr(1)+"$")):r.names.push(new RegExp("^"+a+"$")))}function i(){let a=[...r.names.map(u),...r.skips.map(u).map(l=>"-"+l)].join(",");return r.enable(""),a}function s(a){if(a[a.length-1]==="*")return!0;let l,p;for(l=0,p=r.skips.length;l<p;l++)if(r.skips[l].test(a))return!1;for(l=0,p=r.names.length;l<p;l++)if(r.names[l].test(a))return!0;return!1}function u(a){return a.toString().substring(2,a.toString().length-2).replace(/\.\*\?$/,"*")}function c(a){return a instanceof Error?a.stack||a.message:a}function d(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}pn.exports=xs});var hn=f((D,lt)=>{D.formatArgs=Ts;D.save=Ps;D.load=js;D.useColors=Rs;D.storage=Fs();D.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();D.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Rs(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Ts(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+lt.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),t.splice(n,0,e)}D.log=console.debug||console.log||(()=>{});function Ps(t){try{t?D.storage.setItem("debug",t):D.storage.removeItem("debug")}catch{}}function js(){let t;try{t=D.storage.getItem("debug")}catch{}return!t&&typeof process!="undefined"&&"env"in process&&(t=process.env.DEBUG),t}function Fs(){try{return localStorage}catch{}}lt.exports=Gt()(D);var{formatters:Bs}=lt.exports;Bs.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var gn=f((zc,mn)=>{"use strict";mn.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),o=e.indexOf("--");return n!==-1&&(o===-1||n<o)}});var bn=f(($c,yn)=>{"use strict";var ks=require("os"),vn=require("tty"),$=gn(),{env:C}=process,ue;$("no-color")||$("no-colors")||$("color=false")||$("color=never")?ue=0:($("color")||$("colors")||$("color=true")||$("color=always"))&&(ue=1);"FORCE_COLOR"in C&&(C.FORCE_COLOR==="true"?ue=1:C.FORCE_COLOR==="false"?ue=0:ue=C.FORCE_COLOR.length===0?1:Math.min(parseInt(C.FORCE_COLOR,10),3));function Wt(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Xt(t,e){if(ue===0)return 0;if($("color=16m")||$("color=full")||$("color=truecolor"))return 3;if($("color=256"))return 2;if(t&&!e&&ue===void 0)return 0;let r=ue||0;if(C.TERM==="dumb")return r;if(process.platform==="win32"){let n=ks.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in C)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in C)||C.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in C)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(C.TEAMCITY_VERSION)?1:0;if(C.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in C){let n=parseInt((C.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(C.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(C.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(C.TERM)||"COLORTERM"in C?1:r}function Ms(t){let e=Xt(t,t&&t.isTTY);return Wt(e)}yn.exports={supportsColor:Ms,stdout:Wt(Xt(!0,vn.isatty(1))),stderr:Wt(Xt(!0,vn.isatty(2)))}});var Cn=f((q,ft)=>{var Ds=require("tty"),dt=require("util");q.init=zs;q.log=Us;q.formatArgs=Ls;q.save=Vs;q.load=Hs;q.useColors=Ns;q.destroy=dt.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");q.colors=[6,2,3,4,5,1];try{let t=bn();t&&(t.stderr||t).level>=2&&(q.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}q.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(o,i)=>i.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function Ns(){return"colors"in q.inspectOpts?Boolean(q.inspectOpts.colors):Ds.isatty(process.stderr.fd)}function Ls(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,o="[3"+(n<8?n:"8;5;"+n),i=` ${o};1m${e} [0m`;t[0]=i+t[0].split(`
|
1
|
+
var ji=Object.create;var Ie=Object.defineProperty,Fi=Object.defineProperties,Bi=Object.getOwnPropertyDescriptor,ki=Object.getOwnPropertyDescriptors,Mi=Object.getOwnPropertyNames,jr=Object.getOwnPropertySymbols,Di=Object.getPrototypeOf,Fr=Object.prototype.hasOwnProperty,Ni=Object.prototype.propertyIsEnumerable;var Br=(t,e,r)=>e in t?Ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e||(e={}))Fr.call(e,r)&&Br(t,r,e[r]);if(jr)for(var r of jr(e))Ni.call(e,r)&&Br(t,r,e[r]);return t},B=(t,e)=>Fi(t,ki(e)),kr=t=>Ie(t,"__esModule",{value:!0});var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Li=(t,e)=>{kr(t);for(var r in e)Ie(t,r,{get:e[r],enumerable:!0})},Ii=(t,e,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Mi(e))!Fr.call(t,n)&&n!=="default"&&Ie(t,n,{get:()=>e[n],enumerable:!(r=Bi(e,n))||r.enumerable});return t},b=t=>Ii(kr(Ie(t!=null?ji(Di(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var se=(t,e,r)=>new Promise((n,o)=>{var i=c=>{try{u(r.next(c))}catch(d){o(d)}},s=c=>{try{u(r.throw(c))}catch(d){o(d)}},u=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,s);u((r=r.apply(t,e)).next())});var ae=f(z=>{Object.defineProperty(z,"__esModule",{value:!0});z.trace=z.debug=z.error=z.warn=z.info=void 0;function Nt(){let t=typeof window!="undefined"||!process.env.AWS_LAMBDA_FUNCTION_VERSION,e=process.env.STAGE==="local",r=process.env.STAGE==="dev"||typeof window!="undefined"&&window.location.hostname.includes("localhost");return{isDev:r,isProd:!r&&!e,isLocal:e,FE:t}}var Ui=(...t)=>{let{isProd:e,FE:r}=Nt();e&&r||console.log(...t)};z.info=Ui;var Vi=(...t)=>{console.warn(...t)};z.warn=Vi;var Hi=(...t)=>{console.error(...t)};z.error=Hi;var zi=(...t)=>{let{isProd:e,FE:r}=Nt();e&&r||console.debug(...t)};z.debug=zi;var $i=(...t)=>{let{isProd:e,FE:r}=Nt();e&&r||console.trace(...t)};z.trace=$i});var Lt=f((Ac,Mr)=>{"use strict";Mr.exports=function(e,r){return function(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];return e.apply(r,o)}}});var j=f((Sc,Lr)=>{"use strict";var Ji=Lt(),ge=Object.prototype.toString;function It(t){return ge.call(t)==="[object Array]"}function Ut(t){return typeof t=="undefined"}function Ki(t){return t!==null&&!Ut(t)&&t.constructor!==null&&!Ut(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Gi(t){return ge.call(t)==="[object ArrayBuffer]"}function Wi(t){return typeof FormData!="undefined"&&t instanceof FormData}function Xi(t){var e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function Yi(t){return typeof t=="string"}function Qi(t){return typeof t=="number"}function Dr(t){return t!==null&&typeof t=="object"}function nt(t){if(ge.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Zi(t){return ge.call(t)==="[object Date]"}function es(t){return ge.call(t)==="[object File]"}function ts(t){return ge.call(t)==="[object Blob]"}function Nr(t){return ge.call(t)==="[object Function]"}function rs(t){return Dr(t)&&Nr(t.pipe)}function ns(t){return typeof URLSearchParams!="undefined"&&t instanceof URLSearchParams}function os(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function is(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function Vt(t,e){if(!(t===null||typeof t=="undefined"))if(typeof t!="object"&&(t=[t]),It(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}function Ht(){var t={};function e(o,i){nt(t[i])&&nt(o)?t[i]=Ht(t[i],o):nt(o)?t[i]=Ht({},o):It(o)?t[i]=o.slice():t[i]=o}for(var r=0,n=arguments.length;r<n;r++)Vt(arguments[r],e);return t}function ss(t,e,r){return Vt(e,function(o,i){r&&typeof o=="function"?t[i]=Ji(o,r):t[i]=o}),t}function as(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}Lr.exports={isArray:It,isArrayBuffer:Gi,isBuffer:Ki,isFormData:Wi,isArrayBufferView:Xi,isString:Yi,isNumber:Qi,isObject:Dr,isPlainObject:nt,isUndefined:Ut,isDate:Zi,isFile:es,isBlob:ts,isFunction:Nr,isStream:rs,isURLSearchParams:ns,isStandardBrowserEnv:is,forEach:Vt,merge:Ht,extend:ss,trim:os,stripBOM:as}});var ot=f((xc,Ur)=>{"use strict";var we=j();function Ir(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Ur.exports=function(e,r,n){if(!r)return e;var o;if(n)o=n(r);else if(we.isURLSearchParams(r))o=r.toString();else{var i=[];we.forEach(r,function(c,d){c===null||typeof c=="undefined"||(we.isArray(c)?d=d+"[]":c=[c],we.forEach(c,function(l){we.isDate(l)?l=l.toISOString():we.isObject(l)&&(l=JSON.stringify(l)),i.push(Ir(d)+"="+Ir(l))}))}),o=i.join("&")}if(o){var s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}});var Hr=f((Rc,Vr)=>{"use strict";var us=j();function it(){this.handlers=[]}it.prototype.use=function(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};it.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};it.prototype.forEach=function(e){us.forEach(this.handlers,function(n){n!==null&&e(n)})};Vr.exports=it});var $r=f((Tc,zr)=>{"use strict";var cs=j();zr.exports=function(e,r){cs.forEach(e,function(o,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(e[r]=o,delete e[i])})}});var st=f((Pc,Jr)=>{"use strict";Jr.exports=function(e,r,n,o,i){return e.config=r,n&&(e.code=n),e.request=o,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}});var at=f((jc,Kr)=>{"use strict";var ls=st();Kr.exports=function(e,r,n,o,i){var s=new Error(e);return ls(s,r,n,o,i)}});var zt=f((Fc,Gr)=>{"use strict";var ds=at();Gr.exports=function(e,r,n){var o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):r(ds("Request failed with status code "+n.status,n.config,null,n.request,n))}});var Xr=f((Bc,Wr)=>{"use strict";var ut=j();Wr.exports=ut.isStandardBrowserEnv()?function(){return{write:function(r,n,o,i,s,u){var c=[];c.push(r+"="+encodeURIComponent(n)),ut.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),ut.isString(i)&&c.push("path="+i),ut.isString(s)&&c.push("domain="+s),u===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var Qr=f((kc,Yr)=>{"use strict";Yr.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var en=f((Mc,Zr)=>{"use strict";Zr.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var $t=f((Dc,tn)=>{"use strict";var fs=Qr(),ps=en();tn.exports=function(e,r){return e&&!fs(r)?ps(e,r):r}});var nn=f((Nc,rn)=>{"use strict";var Jt=j(),hs=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];rn.exports=function(e){var r={},n,o,i;return e&&Jt.forEach(e.split(`
|
2
|
+
`),function(u){if(i=u.indexOf(":"),n=Jt.trim(u.substr(0,i)).toLowerCase(),o=Jt.trim(u.substr(i+1)),n){if(r[n]&&hs.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([o]):r[n]=r[n]?r[n]+", "+o:o}}),r}});var an=f((Lc,sn)=>{"use strict";var on=j();sn.exports=on.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function o(i){var s=i;return e&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){var u=on.isString(s)?o(s):s;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}()});var Ee=f((Ic,un)=>{"use strict";function Kt(t){this.message=t}Kt.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Kt.prototype.__CANCEL__=!0;un.exports=Kt});var ln=f((Uc,cn)=>{"use strict";var ct=j(),ms=zt(),gs=Xr(),vs=ot(),ys=$t(),bs=nn(),_s=an(),Gt=at(),Cs=qe(),Os=Ee();cn.exports=function(e){return new Promise(function(n,o){var i=e.data,s=e.headers,u=e.responseType,c;function d(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}ct.isFormData(i)&&delete s["Content-Type"];var a=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.Authorization="Basic "+btoa(l+":"+p)}var v=ys(e.baseURL,e.url);a.open(e.method.toUpperCase(),vs(v,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function V(){if(!!a){var m="getAllResponseHeaders"in a?bs(a.getAllResponseHeaders()):null,_=!u||u==="text"||u==="json"?a.responseText:a.response,T={data:_,status:a.status,statusText:a.statusText,headers:m,config:e,request:a};ms(function(Q){n(Q),d()},function(Q){o(Q),d()},T),a=null}}if("onloadend"in a?a.onloadend=V:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(V)},a.onabort=function(){!a||(o(Gt("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){o(Gt("Network Error",e,null,a)),a=null},a.ontimeout=function(){var _=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",T=e.transitional||Cs.transitional;e.timeoutErrorMessage&&(_=e.timeoutErrorMessage),o(Gt(_,e,T.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},ct.isStandardBrowserEnv()){var E=(e.withCredentials||_s(v))&&e.xsrfCookieName?gs.read(e.xsrfCookieName):void 0;E&&(s[e.xsrfHeaderName]=E)}"setRequestHeader"in a&&ct.forEach(s,function(_,T){typeof i=="undefined"&&T.toLowerCase()==="content-type"?delete s[T]:a.setRequestHeader(T,_)}),ct.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),u&&u!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(c=function(m){!a||(o(!m||m&&m.type?new Os("canceled"):m),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c))),i||(i=null),a.send(i)})}});var fn=f((Vc,dn)=>{var Ae=1e3,Se=Ae*60,xe=Se*60,ve=xe*24,ws=ve*7,Es=ve*365.25;dn.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return qs(t);if(r==="number"&&isFinite(t))return e.long?Ss(t):As(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function qs(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!!e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Es;case"weeks":case"week":case"w":return r*ws;case"days":case"day":case"d":return r*ve;case"hours":case"hour":case"hrs":case"hr":case"h":return r*xe;case"minutes":case"minute":case"mins":case"min":case"m":return r*Se;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ae;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function As(t){var e=Math.abs(t);return e>=ve?Math.round(t/ve)+"d":e>=xe?Math.round(t/xe)+"h":e>=Se?Math.round(t/Se)+"m":e>=Ae?Math.round(t/Ae)+"s":t+"ms"}function Ss(t){var e=Math.abs(t);return e>=ve?lt(t,e,ve,"day"):e>=xe?lt(t,e,xe,"hour"):e>=Se?lt(t,e,Se,"minute"):e>=Ae?lt(t,e,Ae,"second"):t+" ms"}function lt(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var Wt=f((Hc,pn)=>{function xs(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=s,r.humanize=fn(),r.destroy=d,Object.keys(t).forEach(a=>{r[a]=t[a]}),r.names=[],r.skips=[],r.formatters={};function e(a){let l=0;for(let p=0;p<a.length;p++)l=(l<<5)-l+a.charCodeAt(p),l|=0;return r.colors[Math.abs(l)%r.colors.length]}r.selectColor=e;function r(a){let l,p=null,v,V;function E(...m){if(!E.enabled)return;let _=E,T=Number(new Date),De=T-(l||T);_.diff=De,_.prev=l,_.curr=T,l=T,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let Q=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(Ne,H)=>{if(Ne==="%%")return"%";Q++;let X=r.formatters[H];if(typeof X=="function"){let Ze=m[Q];Ne=X.call(_,Ze),m.splice(Q,1),Q--}return Ne}),r.formatArgs.call(_,m),(_.log||r.log).apply(_,m)}return E.namespace=a,E.useColors=r.useColors(),E.color=r.selectColor(a),E.extend=n,E.destroy=r.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(v!==r.namespaces&&(v=r.namespaces,V=r.enabled(a)),V),set:m=>{p=m}}),typeof r.init=="function"&&r.init(E),E}function n(a,l){let p=r(this.namespace+(typeof l=="undefined"?":":l)+a);return p.log=this.log,p}function o(a){r.save(a),r.namespaces=a,r.names=[],r.skips=[];let l,p=(typeof a=="string"?a:"").split(/[\s,]+/),v=p.length;for(l=0;l<v;l++)!p[l]||(a=p[l].replace(/\*/g,".*?"),a[0]==="-"?r.skips.push(new RegExp("^"+a.substr(1)+"$")):r.names.push(new RegExp("^"+a+"$")))}function i(){let a=[...r.names.map(u),...r.skips.map(u).map(l=>"-"+l)].join(",");return r.enable(""),a}function s(a){if(a[a.length-1]==="*")return!0;let l,p;for(l=0,p=r.skips.length;l<p;l++)if(r.skips[l].test(a))return!1;for(l=0,p=r.names.length;l<p;l++)if(r.names[l].test(a))return!0;return!1}function u(a){return a.toString().substring(2,a.toString().length-2).replace(/\.\*\?$/,"*")}function c(a){return a instanceof Error?a.stack||a.message:a}function d(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}pn.exports=xs});var hn=f((D,dt)=>{D.formatArgs=Ts;D.save=Ps;D.load=js;D.useColors=Rs;D.storage=Fs();D.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();D.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Rs(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Ts(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+dt.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),t.splice(n,0,e)}D.log=console.debug||console.log||(()=>{});function Ps(t){try{t?D.storage.setItem("debug",t):D.storage.removeItem("debug")}catch{}}function js(){let t;try{t=D.storage.getItem("debug")}catch{}return!t&&typeof process!="undefined"&&"env"in process&&(t=process.env.DEBUG),t}function Fs(){try{return localStorage}catch{}}dt.exports=Wt()(D);var{formatters:Bs}=dt.exports;Bs.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var gn=f((zc,mn)=>{"use strict";mn.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),o=e.indexOf("--");return n!==-1&&(o===-1||n<o)}});var bn=f(($c,yn)=>{"use strict";var ks=require("os"),vn=require("tty"),$=gn(),{env:C}=process,ue;$("no-color")||$("no-colors")||$("color=false")||$("color=never")?ue=0:($("color")||$("colors")||$("color=true")||$("color=always"))&&(ue=1);"FORCE_COLOR"in C&&(C.FORCE_COLOR==="true"?ue=1:C.FORCE_COLOR==="false"?ue=0:ue=C.FORCE_COLOR.length===0?1:Math.min(parseInt(C.FORCE_COLOR,10),3));function Xt(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Yt(t,e){if(ue===0)return 0;if($("color=16m")||$("color=full")||$("color=truecolor"))return 3;if($("color=256"))return 2;if(t&&!e&&ue===void 0)return 0;let r=ue||0;if(C.TERM==="dumb")return r;if(process.platform==="win32"){let n=ks.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in C)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in C)||C.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in C)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(C.TEAMCITY_VERSION)?1:0;if(C.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in C){let n=parseInt((C.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(C.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(C.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(C.TERM)||"COLORTERM"in C?1:r}function Ms(t){let e=Yt(t,t&&t.isTTY);return Xt(e)}yn.exports={supportsColor:Ms,stdout:Xt(Yt(!0,vn.isatty(1))),stderr:Xt(Yt(!0,vn.isatty(2)))}});var Cn=f((q,pt)=>{var Ds=require("tty"),ft=require("util");q.init=zs;q.log=Us;q.formatArgs=Ls;q.save=Vs;q.load=Hs;q.useColors=Ns;q.destroy=ft.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");q.colors=[6,2,3,4,5,1];try{let t=bn();t&&(t.stderr||t).level>=2&&(q.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}q.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(o,i)=>i.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function Ns(){return"colors"in q.inspectOpts?Boolean(q.inspectOpts.colors):Ds.isatty(process.stderr.fd)}function Ls(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,o="[3"+(n<8?n:"8;5;"+n),i=` ${o};1m${e} [0m`;t[0]=i+t[0].split(`
|
3
3
|
`).join(`
|
4
|
-
`+i),t.push(o+"m+"+
|
5
|
-
`)}function Vs(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Hs(){return process.env.DEBUG}function zs(t){t.inspectOpts={};let e=Object.keys(q.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=q.inspectOpts[e[r]]}
|
6
|
-
`).map(e=>e.trim()).join(" ")};_n.O=function(t){return this.inspectOpts.colors=this.useColors,dt.inspect(t,this.inspectOpts)}});var On=f((Jc,Yt)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?Yt.exports=hn():Yt.exports=Cn()});var En=f((Kc,wn)=>{var Ue;wn.exports=function(){if(!Ue){try{Ue=On()("follow-redirects")}catch{}typeof Ue!="function"&&(Ue=function(){})}Ue.apply(null,arguments)}});var rr=f((Gc,tr)=>{var Re=require("url"),Qt=Re.URL,$s=require("http"),Js=require("https"),qn=require("stream").Writable,Ks=require("assert"),An=En(),ye=["abort","aborted","connect","error","socket","timeout"],Zt=Object.create(null);ye.forEach(function(t){Zt[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var Gs=pt("ERR_FR_REDIRECTION_FAILURE",""),Ws=pt("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Xs=pt("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Ys=pt("ERR_STREAM_WRITE_AFTER_END","write after end");function N(t,e){qn.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}N.prototype=Object.create(qn.prototype);N.prototype.abort=function(){Rn(this._currentRequest),this.emit("abort")};N.prototype.write=function(t,e,r){if(this._ending)throw new Ys;if(!(typeof t=="string"||typeof t=="object"&&"length"in t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(typeof e=="function"&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new Xs),this.abort())};N.prototype.end=function(t,e,r){if(typeof t=="function"?(r=t,t=e=null):typeof e=="function"&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,o=this._currentRequest;this.write(t,e,function(){n._ended=!0,o.end(null,null,r)}),this._ending=!0}};N.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};N.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};N.prototype.setTimeout=function(t,e){var r=this;function n(s){s.setTimeout(t),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()},t),n(s)}function i(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",o)}return e&&this.on("timeout",e),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.once("response",i),this.once("error",i),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){N.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(N.prototype,t,{get:function(){return this._currentRequest[t]}})});N.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};N.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e){this.emit("error",new TypeError("Unsupported protocol "+t));return}if(this._options.agents){var r=t.substr(0,t.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);this._currentUrl=Re.format(this._options),n._redirectable=this;for(var o=0;o<ye.length;o++)n.on(ye[o],Zt[ye[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()})()}};N.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(r&&this._options.followRedirects!==!1&&e>=300&&e<400){if(Rn(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new Ws);return}((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],er(/^content-/i,this._options.headers));var n=er(/^host$/i,this._options.headers)||Re.parse(this._currentUrl).hostname,o=Re.resolve(this._currentUrl,r);An("redirecting to",o),this._isRedirect=!0;var i=Re.parse(o);if(Object.assign(this._options,i),i.hostname!==n&&er(/^authorization$/i,this._options.headers),typeof this._options.beforeRedirect=="function"){var s={headers:t.headers};try{this._options.beforeRedirect.call(null,this._options,s)}catch(c){this.emit("error",c);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(c){var u=new Gs("Redirected request failed: "+c.message);u.cause=c,this.emit("error",u)}}else t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[]};function Sn(t){var e={maxRedirects:21,maxBodyLength:10*1024*1024},r={};return Object.keys(t).forEach(function(n){var o=n+":",i=r[o]=t[n],s=e[n]=Object.create(i);function u(d,a,l){if(typeof d=="string"){var p=d;try{d=xn(new Qt(p))}catch{d=Re.parse(p)}}else Qt&&d instanceof Qt?d=xn(d):(l=a,a=d,d={protocol:o});return typeof a=="function"&&(l=a,a=null),a=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},d,a),a.nativeProtocols=r,Ks.equal(a.protocol,o,"protocol mismatch"),An("options",a),new N(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}})}),e}function Qs(){}function xn(t){var e={protocol:t.protocol,hostname:t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,hash:t.hash,search:t.search,pathname:t.pathname,path:t.pathname+t.search,href:t.href};return t.port!==""&&(e.port=Number(t.port)),e}function er(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r}function pt(t,e){function r(n){Error.captureStackTrace(this,this.constructor),this.message=n||e}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+t+"]",r.prototype.code=t,r}function Rn(t){for(var e=0;e<ye.length;e++)t.removeListener(ye[e],Zt[ye[e]]);t.on("error",Qs),t.abort()}tr.exports=Sn({http:$s,https:Js});tr.exports.wrap=Sn});var ht=f((Wc,Tn)=>{Tn.exports={version:"0.24.0"}});var Mn=f((Xc,kn)=>{"use strict";var Ve=j(),Pn=Ht(),Zs=zt(),ea=nt(),ta=require("http"),ra=require("https"),na=rr().http,oa=rr().https,jn=require("url"),ia=require("zlib"),sa=ht().version,mt=st(),nr=it(),aa=qe(),ua=Ee(),Fn=/https:?/;function Bn(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var n=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+n}t.beforeRedirect=function(i){i.headers.host=i.host,Bn(i,e,i.href)}}kn.exports=function(e){return new Promise(function(n,o){var i;function s(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}var u=function(g){s(),n(g)},c=function(g){s(),o(g)},d=e.data,a=e.headers,l={};if(Object.keys(a).forEach(function(g){l[g.toLowerCase()]=g}),"user-agent"in l?a[l["user-agent"]]||delete a[l["user-agent"]]:a["User-Agent"]="axios/"+sa,d&&!Ve.isStream(d)){if(!Buffer.isBuffer(d))if(Ve.isArrayBuffer(d))d=Buffer.from(new Uint8Array(d));else if(Ve.isString(d))d=Buffer.from(d,"utf-8");else return c(mt("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));l["content-length"]||(a["Content-Length"]=d.length)}var p=void 0;if(e.auth){var v=e.auth.username||"",V=e.auth.password||"";p=v+":"+V}var E=Zs(e.baseURL,e.url),m=jn.parse(E),_=m.protocol||"http:";if(!p&&m.auth){var T=m.auth.split(":"),De=T[0]||"",Y=T[1]||"";p=De+":"+Y}p&&l.authorization&&delete a[l.authorization];var kt=Fn.test(_),Ne=kt?e.httpsAgent:e.httpAgent,H={path:ea(m.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:a,agent:Ne,agents:{http:e.httpAgent,https:e.httpsAgent},auth:p};e.socketPath?H.socketPath=e.socketPath:(H.hostname=m.hostname,H.port=m.port);var W=e.proxy;if(!W&&W!==!1){var Qe=_.slice(0,-1)+"_proxy",Er=process.env[Qe]||process.env[Qe.toUpperCase()];if(Er){var Le=jn.parse(Er),qr=process.env.no_proxy||process.env.NO_PROXY,Ar=!0;if(qr){var Pi=qr.split(",").map(function(g){return g.trim()});Ar=!Pi.some(function(g){return g?g==="*"||g[0]==="."&&m.hostname.substr(m.hostname.length-g.length)===g?!0:m.hostname===g:!1})}if(Ar&&(W={host:Le.hostname,port:Le.port,protocol:Le.protocol},Le.auth)){var Sr=Le.auth.split(":");W.auth={username:Sr[0],password:Sr[1]}}}}W&&(H.headers.host=m.hostname+(m.port?":"+m.port:""),Bn(H,W,_+"//"+m.hostname+(m.port?":"+m.port:"")+H.path));var Ze,xr=kt&&(W?Fn.test(W.protocol):!0);e.transport?Ze=e.transport:e.maxRedirects===0?Ze=xr?ra:ta:(e.maxRedirects&&(H.maxRedirects=e.maxRedirects),Ze=xr?oa:na),e.maxBodyLength>-1&&(H.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(H.insecureHTTPParser=e.insecureHTTPParser);var P=Ze.request(H,function(g){if(!P.aborted){var me=g,et=g.req||P;if(g.statusCode!==204&&et.method!=="HEAD"&&e.decompress!==!1)switch(g.headers["content-encoding"]){case"gzip":case"compress":case"deflate":me=me.pipe(ia.createUnzip()),delete g.headers["content-encoding"];break}var tt={status:g.statusCode,statusText:g.statusMessage,headers:g.headers,config:e,request:et};if(e.responseType==="stream")tt.data=me,Pn(u,c,tt);else{var Rr=[],Tr=0;me.on("data",function(Q){Rr.push(Q),Tr+=Q.length,e.maxContentLength>-1&&Tr>e.maxContentLength&&(me.destroy(),c(mt("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,et)))}),me.on("error",function(Q){P.aborted||c(nr(Q,e,null,et))}),me.on("end",function(){var Q=Buffer.concat(Rr);e.responseType!=="arraybuffer"&&(Q=Q.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(Q=Ve.stripBOM(Q))),tt.data=Q,Pn(u,c,tt)})}}});if(P.on("error",function(g){P.aborted&&g.code!=="ERR_FR_TOO_MANY_REDIRECTS"||c(nr(g,e,null,P))}),e.timeout){var Mt=parseInt(e.timeout,10);if(isNaN(Mt)){c(mt("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",P));return}P.setTimeout(Mt,function(){P.abort();var g=e.transitional||aa.transitional;c(mt("timeout of "+Mt+"ms exceeded",e,g.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",P))})}(e.cancelToken||e.signal)&&(i=function(M){P.aborted||(P.abort(),c(!M||M&&M.type?new ua("canceled"):M))},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i))),Ve.isStream(d)?d.on("error",function(g){c(nr(g,e,null,P))}).pipe(P):P.end(d)})}});var qe=f((Yc,Ln)=>{"use strict";var A=j(),Dn=$r(),ca=it(),la={"Content-Type":"application/x-www-form-urlencoded"};function Nn(t,e){!A.isUndefined(t)&&A.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function da(){var t;return typeof XMLHttpRequest!="undefined"?t=ln():typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]"&&(t=Mn()),t}function fa(t,e,r){if(A.isString(t))try{return(e||JSON.parse)(t),A.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var gt={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:da(),transformRequest:[function(e,r){return Dn(r,"Accept"),Dn(r,"Content-Type"),A.isFormData(e)||A.isArrayBuffer(e)||A.isBuffer(e)||A.isStream(e)||A.isFile(e)||A.isBlob(e)?e:A.isArrayBufferView(e)?e.buffer:A.isURLSearchParams(e)?(Nn(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):A.isObject(e)||r&&r["Content-Type"]==="application/json"?(Nn(r,"application/json"),fa(e)):e}],transformResponse:[function(e){var r=this.transitional||gt.transitional,n=r&&r.silentJSONParsing,o=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||o&&A.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?ca(s,this,"E_JSON_PARSE"):s}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};A.forEach(["delete","get","head"],function(e){gt.headers[e]={}});A.forEach(["post","put","patch"],function(e){gt.headers[e]=A.merge(la)});Ln.exports=gt});var Un=f((Qc,In)=>{"use strict";var pa=j(),ha=qe();In.exports=function(e,r,n){var o=this||ha;return pa.forEach(n,function(s){e=s.call(o,e,r)}),e}});var or=f((Zc,Vn)=>{"use strict";Vn.exports=function(e){return!!(e&&e.__CANCEL__)}});var $n=f((el,zn)=>{"use strict";var Hn=j(),ir=Un(),ma=or(),ga=qe(),va=Ee();function sr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new va("canceled")}zn.exports=function(e){sr(e),e.headers=e.headers||{},e.data=ir.call(e,e.data,e.headers,e.transformRequest),e.headers=Hn.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Hn.forEach(["delete","get","head","post","put","patch","common"],function(o){delete e.headers[o]});var r=e.adapter||ga.adapter;return r(e).then(function(o){return sr(e),o.data=ir.call(e,o.data,o.headers,e.transformResponse),o},function(o){return ma(o)||(sr(e),o&&o.response&&(o.response.data=ir.call(e,o.response.data,o.response.headers,e.transformResponse))),Promise.reject(o)})}});var ar=f((tl,Jn)=>{"use strict";var L=j();Jn.exports=function(e,r){r=r||{};var n={};function o(a,l){return L.isPlainObject(a)&&L.isPlainObject(l)?L.merge(a,l):L.isPlainObject(l)?L.merge({},l):L.isArray(l)?l.slice():l}function i(a){if(L.isUndefined(r[a])){if(!L.isUndefined(e[a]))return o(void 0,e[a])}else return o(e[a],r[a])}function s(a){if(!L.isUndefined(r[a]))return o(void 0,r[a])}function u(a){if(L.isUndefined(r[a])){if(!L.isUndefined(e[a]))return o(void 0,e[a])}else return o(void 0,r[a])}function c(a){if(a in r)return o(e[a],r[a]);if(a in e)return o(void 0,e[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 L.forEach(Object.keys(e).concat(Object.keys(r)),function(l){var p=d[l]||i,v=p(l);L.isUndefined(v)&&p!==c||(n[l]=v)}),n}});var Wn=f((rl,Gn)=>{"use strict";var ya=ht().version,ur={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){ur[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var Kn={};ur.transitional=function(e,r,n){function o(i,s){return"[Axios v"+ya+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return function(i,s,u){if(e===!1)throw new Error(o(s," has been removed"+(r?" in "+r:"")));return r&&!Kn[s]&&(Kn[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(i,s,u):!0}};function ba(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),o=n.length;o-- >0;){var i=n[o],s=e[i];if(s){var u=t[i],c=u===void 0||s(u,i,t);if(c!==!0)throw new TypeError("option "+i+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+i)}}Gn.exports={assertOptions:ba,validators:ur}});var to=f((nl,eo)=>{"use strict";var Xn=j(),_a=nt(),Yn=Hr(),Qn=$n(),vt=ar(),Zn=Wn(),Te=Zn.validators;function He(t){this.defaults=t,this.interceptors={request:new Yn,response:new Yn}}He.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=vt(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&Zn.assertOptions(r,{silentJSONParsing:Te.transitional(Te.boolean),forcedJSONParsing:Te.transitional(Te.boolean),clarifyTimeoutError:Te.transitional(Te.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(e)===!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=[Qn,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(i),s=Promise.resolve(e);u.length;)s=s.then(u.shift(),u.shift());return s}for(var c=e;n.length;){var d=n.shift(),a=n.shift();try{c=d(c)}catch(l){a(l);break}}try{s=Qn(c)}catch(l){return Promise.reject(l)}for(;i.length;)s=s.then(i.shift(),i.shift());return s};He.prototype.getUri=function(e){return e=vt(this.defaults,e),_a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Xn.forEach(["delete","get","head","options"],function(e){He.prototype[e]=function(r,n){return this.request(vt(n||{},{method:e,url:r,data:(n||{}).data}))}});Xn.forEach(["post","put","patch"],function(e){He.prototype[e]=function(r,n,o){return this.request(vt(o||{},{method:e,url:r,data:n}))}});eo.exports=He});var no=f((ol,ro)=>{"use strict";var Ca=Ee();function Pe(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(o){e=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},t(function(o){r.reason||(r.reason=new Ca(o),e(r.reason))})}Pe.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Pe.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]};Pe.prototype.unsubscribe=function(e){if(!!this._listeners){var r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}};Pe.source=function(){var e,r=new Pe(function(o){e=o});return{token:r,cancel:e}};ro.exports=Pe});var io=f((il,oo)=>{"use strict";oo.exports=function(e){return function(n){return e.apply(null,n)}}});var ao=f((sl,so)=>{"use strict";so.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var lo=f((al,cr)=>{"use strict";var uo=j(),Oa=Nt(),yt=to(),wa=ar(),Ea=qe();function co(t){var e=new yt(t),r=Oa(yt.prototype.request,e);return uo.extend(r,yt.prototype,e),uo.extend(r,e),r.create=function(o){return co(wa(t,o))},r}var Z=co(Ea);Z.Axios=yt;Z.Cancel=Ee();Z.CancelToken=no();Z.isCancel=or();Z.VERSION=ht().version;Z.all=function(e){return Promise.all(e)};Z.spread=io();Z.isAxiosError=ao();cr.exports=Z;cr.exports.default=Z});var lr=f((ul,fo)=>{fo.exports=lo()});var mo=f(I=>{var qa=I&&I.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(I,"__esModule",{value:!0});I.RequiredError=I.BaseAPI=I.COLLECTION_FORMATS=I.BASE_PATH=void 0;var Aa=qa(lr());I.BASE_PATH="https://api.analytica.click".replace(/\/+$/,"");I.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:" ",pipes:"|"};var po=class{constructor(e,r=I.BASE_PATH,n=Aa.default){this.basePath=r,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}};I.BaseAPI=po;var ho=class extends Error{constructor(e,r){super(r);this.field=e,this.name="RequiredError"}};I.RequiredError=ho});var vo=f(h=>{var Sa=h&&h.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),xa=h&&h.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ra=h&&h.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Sa(e,t,r);return xa(e,t),e},O=h&&h.__awaiter||function(t,e,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(t,e||[])).next())})},Ta=h&&h.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(h,"__esModule",{value:!0});h.DefaultApi=h.DefaultApiFactory=h.DefaultApiFp=h.DefaultApiAxiosParamCreator=h.Sentiment=void 0;var w=Ra(require("url")),re=Ta(lr()),y=mo(),Pa;(function(t){t.Good="good",t.Bad="bad",t.Neutral="neutral"})(Pa=h.Sentiment||(h.Sentiment={}));var ja=function(t){return{accountGet:(e={})=>O(this,void 0,void 0,function*(){let r="/account",n=w.parse(r,!0),o;t&&(o=t.baseOptions);let i=Object.assign(Object.assign({method:"GET"},o),e),s={},u={};if(t&&t.apiKey){let d=typeof t.apiKey=="function"?yield t.apiKey("authorization"):yield t.apiKey;s.authorization=d}n.query=Object.assign(Object.assign(Object.assign({},n.query),u),e.query),delete n.search;let c=o&&o.headers?o.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},s),c),e.headers),{url:w.format(n),options:i}}),bingIntegrationPost:(e,r={})=>O(this,void 0,void 0,function*(){if(e==null)throw new y.RequiredError("bingIntegration","Required parameter bingIntegration was null or undefined when calling bingIntegrationPost.");let n="/account/integrations/bing",o=w.parse(n,!0),i;t&&(i=t.baseOptions);let s=Object.assign(Object.assign({method:"POST"},i),r),u={},c={};if(t&&t.apiKey){let l=typeof t.apiKey=="function"?yield t.apiKey("authorization"):yield t.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 e!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(e!==void 0?e:{}):e||"",{url:w.format(o),options:s}}),getTrackingAllSites:(e,r,n={})=>O(this,void 0,void 0,function*(){if(e==null)throw new y.RequiredError("minDate","Required parameter minDate was null or undefined when calling getTrackingAllSites.");if(r==null)throw new y.RequiredError("maxDate","Required parameter maxDate was null or undefined when calling getTrackingAllSites.");let o="/site/tracking",i=w.parse(o,!0),s;t&&(s=t.baseOptions);let u=Object.assign(Object.assign({method:"GET"},s),n),c={},d={};if(t&&t.apiKey){let l=typeof t.apiKey=="function"?yield t.apiKey("authorization"):yield t.apiKey;c.authorization=l}e!==void 0&&(d.minDate=e),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:w.format(i),options:u}}),getTrackingSite:(e,r,n,o={})=>O(this,void 0,void 0,function*(){if(e==null)throw new y.RequiredError("id","Required parameter id was null or undefined when calling getTrackingSite.");if(r==null)throw new y.RequiredError("minDate","Required parameter minDate was null or undefined when calling getTrackingSite.");if(n==null)throw new y.RequiredError("maxDate","Required parameter maxDate was null or undefined when calling getTrackingSite.");let i="/site/tracking/{id}".replace("{id}",encodeURIComponent(String(e))),s=w.parse(i,!0),u;t&&(u=t.baseOptions);let c=Object.assign(Object.assign({method:"GET"},u),o),d={},a={};if(t&&t.apiKey){let p=typeof t.apiKey=="function"?yield t.apiKey("authorization"):yield t.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:w.format(s),options:c}}),googleIntegrationPost:(e,r={})=>O(this,void 0,void 0,function*(){if(e==null)throw new y.RequiredError("googleIntegration","Required parameter googleIntegration was null or undefined when calling googleIntegrationPost.");let n="/account/integrations/google",o=w.parse(n,!0),i;t&&(i=t.baseOptions);let s=Object.assign(Object.assign({method:"POST"},i),r),u={},c={};if(t&&t.apiKey){let l=typeof t.apiKey=="function"?yield t.apiKey("authorization"):yield t.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 e!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(e!==void 0?e:{}):e||"",{url:w.format(o),options:s}}),postError:(e,r={})=>O(this,void 0,void 0,function*(){if(e==null)throw new y.RequiredError("postError","Required parameter postError was null or undefined when calling postError.");let n="/error",o=w.parse(n,!0),i;t&&(i=t.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 e!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(e!==void 0?e:{}):e||"",{url:w.format(o),options:s}}),postPageTrack:(e,r={})=>O(this,void 0,void 0,function*(){if(e==null)throw new y.RequiredError("postSiteTrack","Required parameter postSiteTrack was null or undefined when calling postPageTrack.");let n="/site",o=w.parse(n,!0),i;t&&(i=t.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 e!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(e!==void 0?e:{}):e||"",{url:w.format(o),options:s}}),putFeedback:(e,r={})=>O(this,void 0,void 0,function*(){if(e==null)throw new y.RequiredError("feedbackPutData","Required parameter feedbackPutData was null or undefined when calling putFeedback.");let n="/feedback",o=w.parse(n,!0),i;t&&(i=t.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 e!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(e!==void 0?e:{}):e||"",{url:w.format(o),options:s}}),sitePost:(e,r={})=>O(this,void 0,void 0,function*(){if(e==null)throw new y.RequiredError("postAccount","Required parameter postAccount was null or undefined when calling sitePost.");let n="/account/site",o=w.parse(n,!0),i;t&&(i=t.baseOptions);let s=Object.assign(Object.assign({method:"POST"},i),r),u={},c={};if(t&&t.apiKey){let l=typeof t.apiKey=="function"?yield t.apiKey("authorization"):yield t.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 e!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(e!==void 0?e:{}):e||"",{url:w.format(o),options:s}})}};h.DefaultApiAxiosParamCreator=ja;var Fa=function(t){return{accountGet(e){return O(this,void 0,void 0,function*(){let r=yield(0,h.DefaultApiAxiosParamCreator)(t).accountGet(e);return(n=re.default,o=y.BASE_PATH)=>{let i=Object.assign(Object.assign({},r.options),{url:o+r.url});return n.request(i)}})},bingIntegrationPost(e,r){return O(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(t).bingIntegrationPost(e,r);return(o=re.default,i=y.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},getTrackingAllSites(e,r,n){return O(this,void 0,void 0,function*(){let o=yield(0,h.DefaultApiAxiosParamCreator)(t).getTrackingAllSites(e,r,n);return(i=re.default,s=y.BASE_PATH)=>{let u=Object.assign(Object.assign({},o.options),{url:s+o.url});return i.request(u)}})},getTrackingSite(e,r,n,o){return O(this,void 0,void 0,function*(){let i=yield(0,h.DefaultApiAxiosParamCreator)(t).getTrackingSite(e,r,n,o);return(s=re.default,u=y.BASE_PATH)=>{let c=Object.assign(Object.assign({},i.options),{url:u+i.url});return s.request(c)}})},googleIntegrationPost(e,r){return O(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(t).googleIntegrationPost(e,r);return(o=re.default,i=y.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},postError(e,r){return O(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(t).postError(e,r);return(o=re.default,i=y.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},postPageTrack(e,r){return O(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(t).postPageTrack(e,r);return(o=re.default,i=y.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},putFeedback(e,r){return O(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(t).putFeedback(e,r);return(o=re.default,i=y.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},sitePost(e,r){return O(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(t).sitePost(e,r);return(o=re.default,i=y.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})}}};h.DefaultApiFp=Fa;var Ba=function(t,e,r){return{accountGet(n){return(0,h.DefaultApiFp)(t).accountGet(n).then(o=>o(r,e))},bingIntegrationPost(n,o){return(0,h.DefaultApiFp)(t).bingIntegrationPost(n,o).then(i=>i(r,e))},getTrackingAllSites(n,o,i){return(0,h.DefaultApiFp)(t).getTrackingAllSites(n,o,i).then(s=>s(r,e))},getTrackingSite(n,o,i,s){return(0,h.DefaultApiFp)(t).getTrackingSite(n,o,i,s).then(u=>u(r,e))},googleIntegrationPost(n,o){return(0,h.DefaultApiFp)(t).googleIntegrationPost(n,o).then(i=>i(r,e))},postError(n,o){return(0,h.DefaultApiFp)(t).postError(n,o).then(i=>i(r,e))},postPageTrack(n,o){return(0,h.DefaultApiFp)(t).postPageTrack(n,o).then(i=>i(r,e))},putFeedback(n,o){return(0,h.DefaultApiFp)(t).putFeedback(n,o).then(i=>i(r,e))},sitePost(n,o){return(0,h.DefaultApiFp)(t).sitePost(n,o).then(i=>i(r,e))}}};h.DefaultApiFactory=Ba;var go=class extends y.BaseAPI{accountGet(e){return(0,h.DefaultApiFp)(this.configuration).accountGet(e).then(r=>r(this.axios,this.basePath))}bingIntegrationPost(e,r){return(0,h.DefaultApiFp)(this.configuration).bingIntegrationPost(e,r).then(n=>n(this.axios,this.basePath))}getTrackingAllSites(e,r,n){return(0,h.DefaultApiFp)(this.configuration).getTrackingAllSites(e,r,n).then(o=>o(this.axios,this.basePath))}getTrackingSite(e,r,n,o){return(0,h.DefaultApiFp)(this.configuration).getTrackingSite(e,r,n,o).then(i=>i(this.axios,this.basePath))}googleIntegrationPost(e,r){return(0,h.DefaultApiFp)(this.configuration).googleIntegrationPost(e,r).then(n=>n(this.axios,this.basePath))}postError(e,r){return(0,h.DefaultApiFp)(this.configuration).postError(e,r).then(n=>n(this.axios,this.basePath))}postPageTrack(e,r){return(0,h.DefaultApiFp)(this.configuration).postPageTrack(e,r).then(n=>n(this.axios,this.basePath))}putFeedback(e,r){return(0,h.DefaultApiFp)(this.configuration).putFeedback(e,r).then(n=>n(this.axios,this.basePath))}sitePost(e,r){return(0,h.DefaultApiFp)(this.configuration).sitePost(e,r).then(n=>n(this.axios,this.basePath))}};h.DefaultApi=go});var bo=f(bt=>{Object.defineProperty(bt,"__esModule",{value:!0});bt.Configuration=void 0;var yo=class{constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions}isJsonMime(e){let r=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return e!==null&&(r.test(e)||e.toLowerCase()==="application/json-patch+json")}};bt.Configuration=yo});var Co=f(ce=>{var ka=ce&&ce.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),_o=ce&&ce.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ka(e,t,r)};Object.defineProperty(ce,"__esModule",{value:!0});_o(vo(),ce);_o(bo(),ce)});var Oo=f(_t=>{Object.defineProperty(_t,"__esModule",{value:!0});_t.getBearerToken=void 0;var Ma=t=>(t==null?void 0:t.id_token)?`Bearer ${t.id_token}`:void 0;_t.getBearerToken=Ma});var dr=f(le=>{Object.defineProperty(le,"__esModule",{value:!0});le.sleep=le.debounce=le.useDebounce=void 0;var wo=require("react");function Da(t,e){let[r,n]=(0,wo.useState)(t);return(0,wo.useEffect)(()=>{let o=setTimeout(()=>{n(t)},e);return()=>{clearTimeout(o)}},[e,t]),r}le.useDebounce=Da;function Na(t,e,...r){let n;return()=>{clearTimeout(n),n=setTimeout(()=>{n=void 0,t(r)},e)}}le.debounce=Na;var La=t=>new Promise(e=>setTimeout(e,t));le.sleep=La});var Ct=f(be=>{var Eo=be&&be.__awaiter||function(t,e,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(t,e||[])).next())})};Object.defineProperty(be,"__esModule",{value:!0});be.callOpenApi=void 0;var Ia=Co(),Ua=Oo(),Va=dr(),Ha=({func:t,jwt:e,apiUrl:r})=>Eo(be,void 0,void 0,function*(){var n,o,i,s;let u,c,d=e?{apiKey:()=>(0,Ua.getBearerToken)(e),isJsonMime:()=>!1,basePath:r}:void 0,a=new Ia.DefaultApi(d),l=0,p=3;for(;l<=p;){l+=1;try{let v=yield t(a);if(v.status<400){c=v.data;break}throw new Error(JSON.stringify(v.data)||v.statusText)}catch(v){let V=v,E=(n=V.response)===null||n===void 0?void 0:n.status,m=((o=V.response)===null||o===void 0?void 0:o.data)||((i=V.response)===null||i===void 0?void 0:i.statusText)||((s=V.response)===null||s===void 0?void 0:s.status)||"ERROR";if(E!==500||l===p){u=Object.assign({message:m},v);break}}yield(0,Va.sleep)(2e3)}return{data:c,error:u,loading:!1,reFetch:()=>Eo(this,void 0,void 0,function*(){return t(a)}),url:t.toString(),datetime:new Date().getTime()}});be.callOpenApi=Ha});var To=f(U=>{Object.defineProperty(U,"__esModule",{value:!0});U.stringify=U.extractQs=U.getClientY=U.getChildrenPositions=U.getChildrenArray=void 0;var Ga=require("querystring"),xo=ae(),Wa=t=>{var e;let r=((e=t.current)===null||e===void 0?void 0:e.children)||[],n=[];for(let o=0;o<r.length;o+=1)n.push(r[o]);return n};U.getChildrenArray=Wa;var Xa=t=>(0,U.getChildrenArray)(t).map(e=>e.getBoundingClientRect().top+e.getBoundingClientRect().height);U.getChildrenPositions=Xa;var Ya=t=>{var e,r,n,o;if(!t)return;let i;if((t==null?void 0:t.changedTouches)||(t==null?void 0:t.touches)){let s=t;i=((r=(e=s.changedTouches)===null||e===void 0?void 0:e[0])===null||r===void 0?void 0:r.clientY)||((o=(n=s.touches)===null||n===void 0?void 0:n[0])===null||o===void 0?void 0:o.clientY)}else(t==null?void 0:t.clientY)&&(i=t.clientY);return i};U.getClientY=Ya;var Ro=t=>t.replace(/[^a-zA-Z0-9\-_]/gim,"");function Qa({search:t,sanatise:e}){if(!t)return{};let r=(0,Ga.parse)(t.replace(/^[?]/,"")),n={};return Object.keys(r).forEach(o=>{let i=e?Ro(o):o;o!==i&&(0,xo.debug)("sanatising qs input key for ",i),Array.isArray(r[i])?n[i]=r[i].join(""):n[i]=r[i];let s=e?Ro(n[i]):n[i];s!==n[i]&&((0,xo.debug)("sanatising qs input for ",i),n[i]=s)}),n}U.extractQs=Qa;var Za=t=>{let e=new URLSearchParams;return Object.entries(t).forEach(([r,n])=>e.append(r,n)),e};U.stringify=Za});var Po=f(wt=>{Object.defineProperty(wt,"__esModule",{value:!0});wt.extractAttributes=void 0;var eu=({idName:t})=>{var e;if(!((e=document==null?void 0:document.getElementById(t))===null||e===void 0?void 0:e.attributes))return{};let r={};return[...document.getElementById(t).attributes].forEach(n=>{r[n.name]=n.value}),r};wt.extractAttributes=eu});var jo=f(Et=>{Object.defineProperty(Et,"__esModule",{value:!0});Et.isEmailValid=void 0;var tu=/^[-!#$%&'*+/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/,ru=t=>{if(!t||t.length>256||!tu.test(t))return!1;let r=t.split("@");return!(r[0].length>64||r[1].split(".").some(o=>o.length>64))};Et.isEmailValid=ru});var Fo=f(J=>{Object.defineProperty(J,"__esModule",{value:!0});J.getRandomInt=J.sumArray=J.clamp=J.roundToHalf=J.toFixed=void 0;var nu=(t,e)=>{var r,n;let o=new RegExp(`^-?\\d+(?:.\\d{0,${e||-1}})?`),i=(n=(r=t==null?void 0:t.toString())===null||r===void 0?void 0:r.match(o))===null||n===void 0?void 0:n[0];return i?Number.parseFloat(i):t};J.toFixed=nu;function ou(t){let e=t-parseInt(t.toString(),10);return e=Math.round(e*10),e===5?parseInt(t.toString(),10)+.5:e<3||e>7?Math.round(t):parseInt(t.toString(),10)+.5}J.roundToHalf=ou;function iu({value:t,min:e,max:r}){return t<e?e:t>r?r:t}J.clamp=iu;function su(t){return t.reduce((e,r)=>e+r)}J.sumArray=su;var au=t=>Math.floor(Math.random()*Math.floor(t));J.getRandomInt=au});var pr=f(qt=>{Object.defineProperty(qt,"__esModule",{value:!0});qt.useLockBodyScroll=void 0;var uu=require("react");function cu(t){(0,uu.useLayoutEffect)(()=>{let e;return t&&(e=window.getComputedStyle(document.body).overflow,document.body.style.overflow="hidden"),()=>{t&&(document.body.style.overflow=e||"")}},[t])}qt.useLockBodyScroll=cu});var hr=f(At=>{Object.defineProperty(At,"__esModule",{value:!0});At.tryJsonParse=void 0;var lu=(t,e)=>{if(!t)return null;try{return JSON.parse(t)}catch(r){return e}};At.tryJsonParse=lu});var Bo=f(St=>{Object.defineProperty(St,"__esModule",{value:!0});St.getTimeSeconds=void 0;var du=()=>Math.ceil(new Date().getTime()/1e3);St.getTimeSeconds=du});var Lo=f(R=>{Object.defineProperty(R,"__esModule",{value:!0});R.useCookie=R.getCookieWrapper=R.wipeCookies=R.setCookieWrapper=R.fromBase64=R.toBase64=void 0;var fu=require("react"),pu="Thu, 01 Jan 1970 00:00:00 UTC",ko=4e3,hu=(t,e)=>t.match(new RegExp(`.{1,${e}}`,"g")),mu=t=>Buffer.from(t).toString("base64");R.toBase64=mu;var gu=t=>Buffer.from(decodeURIComponent(t),"base64").toString();R.fromBase64=gu;function mr(t,e,r=1){let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${!e||r<0?pu:n.toUTCString()}`;document.cookie=`${t}=${e||""};${o};path=/`}function gr(t,e){let r=`${t}=`,n=e||typeof window!="undefined"&&document.cookie;if(!n||!(n==null?void 0:n.trim()))return;let o=n.split(";").map(i=>i.trim());for(let i of o)if(i.indexOf(r)===0)return i.substring(r.length,i.length)}function Mo(t,e,r=1){let n=0;for(;gr(t+n);)mr(t+n,null,-1),n+=1;if(!e)return;let o=(0,R.toBase64)(JSON.stringify(e)),i=[o];o.length>ko&&(i=hu(o,ko));for(let s in i){let u=i[s];mr(t+s,u,r)}}R.setCookieWrapper=Mo;function Do(t){let e=0;for(;;)if(gr(t+e))mr(t+e,void 0),e+=1;else return}R.wipeCookies=Do;function No(t,e){let r="",n=0;for(;;){let o=gr(t+n,e);if(!o){if(n===0)return;try{return JSON.parse((0,R.fromBase64)(r))}catch(i){Do(t);return}}r+=o,n+=1}}R.getCookieWrapper=No;function vu(t){let[e,r]=(0,fu.useState)(No(t));return[e,n=>{Mo(t,n,2),r(n)}]}R.useCookie=vu});var Vo=f(k=>{Object.defineProperty(k,"__esModule",{value:!0});k.UseLocalStorage=k.getLocalStorageItem=k.setLocalStorageItem=k.clearLocalStorageItem=void 0;var yu=ae(),Io=hr(),Uo=()=>Math.ceil(new Date().getTime()/1e3),bu=t=>{typeof window!="undefined"&&window.localStorage.removeItem(t)};k.clearLocalStorageItem=bu;var _u=(t,e,r)=>{try{if(typeof window=="undefined")return;let n={expiry:r?Uo()+r:void 0,val:JSON.stringify(e)};window.localStorage.setItem(t,JSON.stringify(n))}catch(n){(0,yu.error)(`set LS error:${t}-${n}`)}};k.setLocalStorageItem=_u;var Cu=(t,e,r)=>{if(typeof window=="undefined")return e;let n=window.localStorage.getItem(t),o=(0,Io.tryJsonParse)(n,void 0);if(!o||o.expiry&&Uo()>o.expiry)return(0,k.setLocalStorageItem)(t,e,r),e;let i=(0,Io.tryJsonParse)(o.val,void 0);return i||((0,k.setLocalStorageItem)(t,e,r),e)};k.getLocalStorageItem=Cu;function Ou(t,e,r){let n=(0,k.getLocalStorageItem)(t,e,r);return[n,i=>{if(typeof window=="undefined")return;let s=i instanceof Function?i(n):i;(0,k.setLocalStorageItem)(t,s,r)}]}k.UseLocalStorage=Ou});var Ho=f(S=>{var wu=S&&S.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),X=S&&S.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&wu(e,t,r)};Object.defineProperty(S,"__esModule",{value:!0});X(dr(),S);X(To(),S);X(Po(),S);X(jo(),S);X(Fo(),S);X(pr(),S);X(hr(),S);X(Bo(),S);X(Lo(),S);X(Vo(),S);X(Ct(),S)});var vr=f(Ce=>{Object.defineProperty(Ce,"__esModule",{value:!0});Ce.colours=void 0;Ce.colours={mainLight:"rgb(255,255,255)",lightest:"rgb(241,241,241)",darker:"rgb(0,0,0,0.1)",lighter:"rgb(255,255,255,0.1)",dark:"rgb(23,25,23)",charcoal:"rgb(50,50,50)",lightCharcoal:"rgb(154,154,154)",orangeRed:"#d65873",orange:"#e88070",yellow:"rgb(255,206,109)",lightBlue:"rgb(90,129,255)",lightGreen:"rgb(75,236,120)",darkGreen:"#228B22",peach:"rgb(245,169,169)",purple:"rgb(173,121,255)",notificationBlue:"rgb(70,114,255)",gradient:"---generated---"};var Eu=(t,e)=>`linear-gradient(to right, ${t}, ${e})`;Ce.colours.gradient=Eu(Ce.colours.orangeRed,Ce.colours.orange)});var zo=f(K=>{Object.defineProperty(K,"__esModule",{value:!0});K.FullHeight=K.FadeBottom=K.CssTransparentBlock=K.NoTextSelect=K.DropShadow=void 0;var $e=require("styled-components"),qu=vr(),Au=t=>(0,$e.css)`
|
4
|
+
`+i),t.push(o+"m+"+pt.exports.humanize(this.diff)+"[0m")}else t[0]=Is()+e+" "+t[0]}function Is(){return q.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Us(...t){return process.stderr.write(ft.format(...t)+`
|
5
|
+
`)}function Vs(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Hs(){return process.env.DEBUG}function zs(t){t.inspectOpts={};let e=Object.keys(q.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=q.inspectOpts[e[r]]}pt.exports=Wt()(q);var{formatters:_n}=pt.exports;_n.o=function(t){return this.inspectOpts.colors=this.useColors,ft.inspect(t,this.inspectOpts).split(`
|
6
|
+
`).map(e=>e.trim()).join(" ")};_n.O=function(t){return this.inspectOpts.colors=this.useColors,ft.inspect(t,this.inspectOpts)}});var On=f((Jc,Qt)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?Qt.exports=hn():Qt.exports=Cn()});var En=f((Kc,wn)=>{var Ue;wn.exports=function(){if(!Ue){try{Ue=On()("follow-redirects")}catch{}typeof Ue!="function"&&(Ue=function(){})}Ue.apply(null,arguments)}});var nr=f((Gc,rr)=>{var Re=require("url"),Zt=Re.URL,$s=require("http"),Js=require("https"),qn=require("stream").Writable,Ks=require("assert"),An=En(),ye=["abort","aborted","connect","error","socket","timeout"],er=Object.create(null);ye.forEach(function(t){er[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var Gs=ht("ERR_FR_REDIRECTION_FAILURE",""),Ws=ht("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Xs=ht("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Ys=ht("ERR_STREAM_WRITE_AFTER_END","write after end");function N(t,e){qn.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}N.prototype=Object.create(qn.prototype);N.prototype.abort=function(){Rn(this._currentRequest),this.emit("abort")};N.prototype.write=function(t,e,r){if(this._ending)throw new Ys;if(!(typeof t=="string"||typeof t=="object"&&"length"in t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(typeof e=="function"&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new Xs),this.abort())};N.prototype.end=function(t,e,r){if(typeof t=="function"?(r=t,t=e=null):typeof e=="function"&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,o=this._currentRequest;this.write(t,e,function(){n._ended=!0,o.end(null,null,r)}),this._ending=!0}};N.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};N.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};N.prototype.setTimeout=function(t,e){var r=this;function n(s){s.setTimeout(t),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()},t),n(s)}function i(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",o)}return e&&this.on("timeout",e),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.once("response",i),this.once("error",i),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){N.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(N.prototype,t,{get:function(){return this._currentRequest[t]}})});N.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};N.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e){this.emit("error",new TypeError("Unsupported protocol "+t));return}if(this._options.agents){var r=t.substr(0,t.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);this._currentUrl=Re.format(this._options),n._redirectable=this;for(var o=0;o<ye.length;o++)n.on(ye[o],er[ye[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()})()}};N.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(r&&this._options.followRedirects!==!1&&e>=300&&e<400){if(Rn(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new Ws);return}((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],tr(/^content-/i,this._options.headers));var n=tr(/^host$/i,this._options.headers)||Re.parse(this._currentUrl).hostname,o=Re.resolve(this._currentUrl,r);An("redirecting to",o),this._isRedirect=!0;var i=Re.parse(o);if(Object.assign(this._options,i),i.hostname!==n&&tr(/^authorization$/i,this._options.headers),typeof this._options.beforeRedirect=="function"){var s={headers:t.headers};try{this._options.beforeRedirect.call(null,this._options,s)}catch(c){this.emit("error",c);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(c){var u=new Gs("Redirected request failed: "+c.message);u.cause=c,this.emit("error",u)}}else t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[]};function Sn(t){var e={maxRedirects:21,maxBodyLength:10*1024*1024},r={};return Object.keys(t).forEach(function(n){var o=n+":",i=r[o]=t[n],s=e[n]=Object.create(i);function u(d,a,l){if(typeof d=="string"){var p=d;try{d=xn(new Zt(p))}catch{d=Re.parse(p)}}else Zt&&d instanceof Zt?d=xn(d):(l=a,a=d,d={protocol:o});return typeof a=="function"&&(l=a,a=null),a=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},d,a),a.nativeProtocols=r,Ks.equal(a.protocol,o,"protocol mismatch"),An("options",a),new N(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}})}),e}function Qs(){}function xn(t){var e={protocol:t.protocol,hostname:t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,hash:t.hash,search:t.search,pathname:t.pathname,path:t.pathname+t.search,href:t.href};return t.port!==""&&(e.port=Number(t.port)),e}function tr(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r}function ht(t,e){function r(n){Error.captureStackTrace(this,this.constructor),this.message=n||e}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+t+"]",r.prototype.code=t,r}function Rn(t){for(var e=0;e<ye.length;e++)t.removeListener(ye[e],er[ye[e]]);t.on("error",Qs),t.abort()}rr.exports=Sn({http:$s,https:Js});rr.exports.wrap=Sn});var mt=f((Wc,Tn)=>{Tn.exports={version:"0.24.0"}});var Mn=f((Xc,kn)=>{"use strict";var Ve=j(),Pn=zt(),Zs=$t(),ea=ot(),ta=require("http"),ra=require("https"),na=nr().http,oa=nr().https,jn=require("url"),ia=require("zlib"),sa=mt().version,gt=at(),or=st(),aa=qe(),ua=Ee(),Fn=/https:?/;function Bn(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var n=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+n}t.beforeRedirect=function(i){i.headers.host=i.host,Bn(i,e,i.href)}}kn.exports=function(e){return new Promise(function(n,o){var i;function s(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}var u=function(g){s(),n(g)},c=function(g){s(),o(g)},d=e.data,a=e.headers,l={};if(Object.keys(a).forEach(function(g){l[g.toLowerCase()]=g}),"user-agent"in l?a[l["user-agent"]]||delete a[l["user-agent"]]:a["User-Agent"]="axios/"+sa,d&&!Ve.isStream(d)){if(!Buffer.isBuffer(d))if(Ve.isArrayBuffer(d))d=Buffer.from(new Uint8Array(d));else if(Ve.isString(d))d=Buffer.from(d,"utf-8");else return c(gt("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));l["content-length"]||(a["Content-Length"]=d.length)}var p=void 0;if(e.auth){var v=e.auth.username||"",V=e.auth.password||"";p=v+":"+V}var E=Zs(e.baseURL,e.url),m=jn.parse(E),_=m.protocol||"http:";if(!p&&m.auth){var T=m.auth.split(":"),De=T[0]||"",Q=T[1]||"";p=De+":"+Q}p&&l.authorization&&delete a[l.authorization];var Mt=Fn.test(_),Ne=Mt?e.httpsAgent:e.httpAgent,H={path:ea(m.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:a,agent:Ne,agents:{http:e.httpAgent,https:e.httpsAgent},auth:p};e.socketPath?H.socketPath=e.socketPath:(H.hostname=m.hostname,H.port=m.port);var X=e.proxy;if(!X&&X!==!1){var Ze=_.slice(0,-1)+"_proxy",Er=process.env[Ze]||process.env[Ze.toUpperCase()];if(Er){var Le=jn.parse(Er),qr=process.env.no_proxy||process.env.NO_PROXY,Ar=!0;if(qr){var Pi=qr.split(",").map(function(g){return g.trim()});Ar=!Pi.some(function(g){return g?g==="*"||g[0]==="."&&m.hostname.substr(m.hostname.length-g.length)===g?!0:m.hostname===g:!1})}if(Ar&&(X={host:Le.hostname,port:Le.port,protocol:Le.protocol},Le.auth)){var Sr=Le.auth.split(":");X.auth={username:Sr[0],password:Sr[1]}}}}X&&(H.headers.host=m.hostname+(m.port?":"+m.port:""),Bn(H,X,_+"//"+m.hostname+(m.port?":"+m.port:"")+H.path));var et,xr=Mt&&(X?Fn.test(X.protocol):!0);e.transport?et=e.transport:e.maxRedirects===0?et=xr?ra:ta:(e.maxRedirects&&(H.maxRedirects=e.maxRedirects),et=xr?oa:na),e.maxBodyLength>-1&&(H.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(H.insecureHTTPParser=e.insecureHTTPParser);var P=et.request(H,function(g){if(!P.aborted){var me=g,tt=g.req||P;if(g.statusCode!==204&&tt.method!=="HEAD"&&e.decompress!==!1)switch(g.headers["content-encoding"]){case"gzip":case"compress":case"deflate":me=me.pipe(ia.createUnzip()),delete g.headers["content-encoding"];break}var rt={status:g.statusCode,statusText:g.statusMessage,headers:g.headers,config:e,request:tt};if(e.responseType==="stream")rt.data=me,Pn(u,c,rt);else{var Rr=[],Tr=0;me.on("data",function(Z){Rr.push(Z),Tr+=Z.length,e.maxContentLength>-1&&Tr>e.maxContentLength&&(me.destroy(),c(gt("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,tt)))}),me.on("error",function(Z){P.aborted||c(or(Z,e,null,tt))}),me.on("end",function(){var Z=Buffer.concat(Rr);e.responseType!=="arraybuffer"&&(Z=Z.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(Z=Ve.stripBOM(Z))),rt.data=Z,Pn(u,c,rt)})}}});if(P.on("error",function(g){P.aborted&&g.code!=="ERR_FR_TOO_MANY_REDIRECTS"||c(or(g,e,null,P))}),e.timeout){var Dt=parseInt(e.timeout,10);if(isNaN(Dt)){c(gt("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",P));return}P.setTimeout(Dt,function(){P.abort();var g=e.transitional||aa.transitional;c(gt("timeout of "+Dt+"ms exceeded",e,g.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",P))})}(e.cancelToken||e.signal)&&(i=function(M){P.aborted||(P.abort(),c(!M||M&&M.type?new ua("canceled"):M))},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i))),Ve.isStream(d)?d.on("error",function(g){c(or(g,e,null,P))}).pipe(P):P.end(d)})}});var qe=f((Yc,Ln)=>{"use strict";var A=j(),Dn=$r(),ca=st(),la={"Content-Type":"application/x-www-form-urlencoded"};function Nn(t,e){!A.isUndefined(t)&&A.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function da(){var t;return typeof XMLHttpRequest!="undefined"?t=ln():typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]"&&(t=Mn()),t}function fa(t,e,r){if(A.isString(t))try{return(e||JSON.parse)(t),A.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var vt={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:da(),transformRequest:[function(e,r){return Dn(r,"Accept"),Dn(r,"Content-Type"),A.isFormData(e)||A.isArrayBuffer(e)||A.isBuffer(e)||A.isStream(e)||A.isFile(e)||A.isBlob(e)?e:A.isArrayBufferView(e)?e.buffer:A.isURLSearchParams(e)?(Nn(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):A.isObject(e)||r&&r["Content-Type"]==="application/json"?(Nn(r,"application/json"),fa(e)):e}],transformResponse:[function(e){var r=this.transitional||vt.transitional,n=r&&r.silentJSONParsing,o=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||o&&A.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?ca(s,this,"E_JSON_PARSE"):s}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};A.forEach(["delete","get","head"],function(e){vt.headers[e]={}});A.forEach(["post","put","patch"],function(e){vt.headers[e]=A.merge(la)});Ln.exports=vt});var Un=f((Qc,In)=>{"use strict";var pa=j(),ha=qe();In.exports=function(e,r,n){var o=this||ha;return pa.forEach(n,function(s){e=s.call(o,e,r)}),e}});var ir=f((Zc,Vn)=>{"use strict";Vn.exports=function(e){return!!(e&&e.__CANCEL__)}});var $n=f((el,zn)=>{"use strict";var Hn=j(),sr=Un(),ma=ir(),ga=qe(),va=Ee();function ar(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new va("canceled")}zn.exports=function(e){ar(e),e.headers=e.headers||{},e.data=sr.call(e,e.data,e.headers,e.transformRequest),e.headers=Hn.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Hn.forEach(["delete","get","head","post","put","patch","common"],function(o){delete e.headers[o]});var r=e.adapter||ga.adapter;return r(e).then(function(o){return ar(e),o.data=sr.call(e,o.data,o.headers,e.transformResponse),o},function(o){return ma(o)||(ar(e),o&&o.response&&(o.response.data=sr.call(e,o.response.data,o.response.headers,e.transformResponse))),Promise.reject(o)})}});var ur=f((tl,Jn)=>{"use strict";var L=j();Jn.exports=function(e,r){r=r||{};var n={};function o(a,l){return L.isPlainObject(a)&&L.isPlainObject(l)?L.merge(a,l):L.isPlainObject(l)?L.merge({},l):L.isArray(l)?l.slice():l}function i(a){if(L.isUndefined(r[a])){if(!L.isUndefined(e[a]))return o(void 0,e[a])}else return o(e[a],r[a])}function s(a){if(!L.isUndefined(r[a]))return o(void 0,r[a])}function u(a){if(L.isUndefined(r[a])){if(!L.isUndefined(e[a]))return o(void 0,e[a])}else return o(void 0,r[a])}function c(a){if(a in r)return o(e[a],r[a]);if(a in e)return o(void 0,e[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 L.forEach(Object.keys(e).concat(Object.keys(r)),function(l){var p=d[l]||i,v=p(l);L.isUndefined(v)&&p!==c||(n[l]=v)}),n}});var Wn=f((rl,Gn)=>{"use strict";var ya=mt().version,cr={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){cr[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var Kn={};cr.transitional=function(e,r,n){function o(i,s){return"[Axios v"+ya+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return function(i,s,u){if(e===!1)throw new Error(o(s," has been removed"+(r?" in "+r:"")));return r&&!Kn[s]&&(Kn[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(i,s,u):!0}};function ba(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),o=n.length;o-- >0;){var i=n[o],s=e[i];if(s){var u=t[i],c=u===void 0||s(u,i,t);if(c!==!0)throw new TypeError("option "+i+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+i)}}Gn.exports={assertOptions:ba,validators:cr}});var to=f((nl,eo)=>{"use strict";var Xn=j(),_a=ot(),Yn=Hr(),Qn=$n(),yt=ur(),Zn=Wn(),Te=Zn.validators;function He(t){this.defaults=t,this.interceptors={request:new Yn,response:new Yn}}He.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=yt(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&Zn.assertOptions(r,{silentJSONParsing:Te.transitional(Te.boolean),forcedJSONParsing:Te.transitional(Te.boolean),clarifyTimeoutError:Te.transitional(Te.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(e)===!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=[Qn,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(i),s=Promise.resolve(e);u.length;)s=s.then(u.shift(),u.shift());return s}for(var c=e;n.length;){var d=n.shift(),a=n.shift();try{c=d(c)}catch(l){a(l);break}}try{s=Qn(c)}catch(l){return Promise.reject(l)}for(;i.length;)s=s.then(i.shift(),i.shift());return s};He.prototype.getUri=function(e){return e=yt(this.defaults,e),_a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Xn.forEach(["delete","get","head","options"],function(e){He.prototype[e]=function(r,n){return this.request(yt(n||{},{method:e,url:r,data:(n||{}).data}))}});Xn.forEach(["post","put","patch"],function(e){He.prototype[e]=function(r,n,o){return this.request(yt(o||{},{method:e,url:r,data:n}))}});eo.exports=He});var no=f((ol,ro)=>{"use strict";var Ca=Ee();function Pe(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(o){e=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},t(function(o){r.reason||(r.reason=new Ca(o),e(r.reason))})}Pe.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Pe.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]};Pe.prototype.unsubscribe=function(e){if(!!this._listeners){var r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}};Pe.source=function(){var e,r=new Pe(function(o){e=o});return{token:r,cancel:e}};ro.exports=Pe});var io=f((il,oo)=>{"use strict";oo.exports=function(e){return function(n){return e.apply(null,n)}}});var ao=f((sl,so)=>{"use strict";so.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var lo=f((al,lr)=>{"use strict";var uo=j(),Oa=Lt(),bt=to(),wa=ur(),Ea=qe();function co(t){var e=new bt(t),r=Oa(bt.prototype.request,e);return uo.extend(r,bt.prototype,e),uo.extend(r,e),r.create=function(o){return co(wa(t,o))},r}var ee=co(Ea);ee.Axios=bt;ee.Cancel=Ee();ee.CancelToken=no();ee.isCancel=ir();ee.VERSION=mt().version;ee.all=function(e){return Promise.all(e)};ee.spread=io();ee.isAxiosError=ao();lr.exports=ee;lr.exports.default=ee});var dr=f((ul,fo)=>{fo.exports=lo()});var mo=f(I=>{var qa=I&&I.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(I,"__esModule",{value:!0});I.RequiredError=I.BaseAPI=I.COLLECTION_FORMATS=I.BASE_PATH=void 0;var Aa=qa(dr());I.BASE_PATH="https://api.analytica.click".replace(/\/+$/,"");I.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:" ",pipes:"|"};var po=class{constructor(e,r=I.BASE_PATH,n=Aa.default){this.basePath=r,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}};I.BaseAPI=po;var ho=class extends Error{constructor(e,r){super(r);this.field=e,this.name="RequiredError"}};I.RequiredError=ho});var vo=f(h=>{var Sa=h&&h.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),xa=h&&h.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ra=h&&h.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Sa(e,t,r);return xa(e,t),e},O=h&&h.__awaiter||function(t,e,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(t,e||[])).next())})},Ta=h&&h.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(h,"__esModule",{value:!0});h.DefaultApi=h.DefaultApiFactory=h.DefaultApiFp=h.DefaultApiAxiosParamCreator=h.Sentiment=void 0;var w=Ra(require("url")),re=Ta(dr()),y=mo(),Pa;(function(t){t.Good="good",t.Bad="bad",t.Neutral="neutral"})(Pa=h.Sentiment||(h.Sentiment={}));var ja=function(t){return{accountGet:(e={})=>O(this,void 0,void 0,function*(){let r="/account",n=w.parse(r,!0),o;t&&(o=t.baseOptions);let i=Object.assign(Object.assign({method:"GET"},o),e),s={},u={};if(t&&t.apiKey){let d=typeof t.apiKey=="function"?yield t.apiKey("authorization"):yield t.apiKey;s.authorization=d}n.query=Object.assign(Object.assign(Object.assign({},n.query),u),e.query),delete n.search;let c=o&&o.headers?o.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},s),c),e.headers),{url:w.format(n),options:i}}),bingIntegrationPost:(e,r={})=>O(this,void 0,void 0,function*(){if(e==null)throw new y.RequiredError("bingIntegration","Required parameter bingIntegration was null or undefined when calling bingIntegrationPost.");let n="/account/integrations/bing",o=w.parse(n,!0),i;t&&(i=t.baseOptions);let s=Object.assign(Object.assign({method:"POST"},i),r),u={},c={};if(t&&t.apiKey){let l=typeof t.apiKey=="function"?yield t.apiKey("authorization"):yield t.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 e!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(e!==void 0?e:{}):e||"",{url:w.format(o),options:s}}),getTrackingAllSites:(e,r,n={})=>O(this,void 0,void 0,function*(){if(e==null)throw new y.RequiredError("minDate","Required parameter minDate was null or undefined when calling getTrackingAllSites.");if(r==null)throw new y.RequiredError("maxDate","Required parameter maxDate was null or undefined when calling getTrackingAllSites.");let o="/site/tracking",i=w.parse(o,!0),s;t&&(s=t.baseOptions);let u=Object.assign(Object.assign({method:"GET"},s),n),c={},d={};if(t&&t.apiKey){let l=typeof t.apiKey=="function"?yield t.apiKey("authorization"):yield t.apiKey;c.authorization=l}e!==void 0&&(d.minDate=e),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:w.format(i),options:u}}),getTrackingSite:(e,r,n,o={})=>O(this,void 0,void 0,function*(){if(e==null)throw new y.RequiredError("id","Required parameter id was null or undefined when calling getTrackingSite.");if(r==null)throw new y.RequiredError("minDate","Required parameter minDate was null or undefined when calling getTrackingSite.");if(n==null)throw new y.RequiredError("maxDate","Required parameter maxDate was null or undefined when calling getTrackingSite.");let i="/site/tracking/{id}".replace("{id}",encodeURIComponent(String(e))),s=w.parse(i,!0),u;t&&(u=t.baseOptions);let c=Object.assign(Object.assign({method:"GET"},u),o),d={},a={};if(t&&t.apiKey){let p=typeof t.apiKey=="function"?yield t.apiKey("authorization"):yield t.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:w.format(s),options:c}}),googleIntegrationPost:(e,r={})=>O(this,void 0,void 0,function*(){if(e==null)throw new y.RequiredError("googleIntegration","Required parameter googleIntegration was null or undefined when calling googleIntegrationPost.");let n="/account/integrations/google",o=w.parse(n,!0),i;t&&(i=t.baseOptions);let s=Object.assign(Object.assign({method:"POST"},i),r),u={},c={};if(t&&t.apiKey){let l=typeof t.apiKey=="function"?yield t.apiKey("authorization"):yield t.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 e!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(e!==void 0?e:{}):e||"",{url:w.format(o),options:s}}),postError:(e,r={})=>O(this,void 0,void 0,function*(){if(e==null)throw new y.RequiredError("postError","Required parameter postError was null or undefined when calling postError.");let n="/error",o=w.parse(n,!0),i;t&&(i=t.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 e!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(e!==void 0?e:{}):e||"",{url:w.format(o),options:s}}),postPageTrack:(e,r={})=>O(this,void 0,void 0,function*(){if(e==null)throw new y.RequiredError("postSiteTrack","Required parameter postSiteTrack was null or undefined when calling postPageTrack.");let n="/site",o=w.parse(n,!0),i;t&&(i=t.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 e!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(e!==void 0?e:{}):e||"",{url:w.format(o),options:s}}),putFeedback:(e,r={})=>O(this,void 0,void 0,function*(){if(e==null)throw new y.RequiredError("feedbackPutData","Required parameter feedbackPutData was null or undefined when calling putFeedback.");let n="/feedback",o=w.parse(n,!0),i;t&&(i=t.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 e!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(e!==void 0?e:{}):e||"",{url:w.format(o),options:s}}),sitePost:(e,r={})=>O(this,void 0,void 0,function*(){if(e==null)throw new y.RequiredError("postAccount","Required parameter postAccount was null or undefined when calling sitePost.");let n="/account/site",o=w.parse(n,!0),i;t&&(i=t.baseOptions);let s=Object.assign(Object.assign({method:"POST"},i),r),u={},c={};if(t&&t.apiKey){let l=typeof t.apiKey=="function"?yield t.apiKey("authorization"):yield t.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 e!="string"||s.headers["Content-Type"]==="application/json";return s.data=a?JSON.stringify(e!==void 0?e:{}):e||"",{url:w.format(o),options:s}})}};h.DefaultApiAxiosParamCreator=ja;var Fa=function(t){return{accountGet(e){return O(this,void 0,void 0,function*(){let r=yield(0,h.DefaultApiAxiosParamCreator)(t).accountGet(e);return(n=re.default,o=y.BASE_PATH)=>{let i=Object.assign(Object.assign({},r.options),{url:o+r.url});return n.request(i)}})},bingIntegrationPost(e,r){return O(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(t).bingIntegrationPost(e,r);return(o=re.default,i=y.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},getTrackingAllSites(e,r,n){return O(this,void 0,void 0,function*(){let o=yield(0,h.DefaultApiAxiosParamCreator)(t).getTrackingAllSites(e,r,n);return(i=re.default,s=y.BASE_PATH)=>{let u=Object.assign(Object.assign({},o.options),{url:s+o.url});return i.request(u)}})},getTrackingSite(e,r,n,o){return O(this,void 0,void 0,function*(){let i=yield(0,h.DefaultApiAxiosParamCreator)(t).getTrackingSite(e,r,n,o);return(s=re.default,u=y.BASE_PATH)=>{let c=Object.assign(Object.assign({},i.options),{url:u+i.url});return s.request(c)}})},googleIntegrationPost(e,r){return O(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(t).googleIntegrationPost(e,r);return(o=re.default,i=y.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},postError(e,r){return O(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(t).postError(e,r);return(o=re.default,i=y.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},postPageTrack(e,r){return O(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(t).postPageTrack(e,r);return(o=re.default,i=y.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},putFeedback(e,r){return O(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(t).putFeedback(e,r);return(o=re.default,i=y.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})},sitePost(e,r){return O(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(t).sitePost(e,r);return(o=re.default,i=y.BASE_PATH)=>{let s=Object.assign(Object.assign({},n.options),{url:i+n.url});return o.request(s)}})}}};h.DefaultApiFp=Fa;var Ba=function(t,e,r){return{accountGet(n){return(0,h.DefaultApiFp)(t).accountGet(n).then(o=>o(r,e))},bingIntegrationPost(n,o){return(0,h.DefaultApiFp)(t).bingIntegrationPost(n,o).then(i=>i(r,e))},getTrackingAllSites(n,o,i){return(0,h.DefaultApiFp)(t).getTrackingAllSites(n,o,i).then(s=>s(r,e))},getTrackingSite(n,o,i,s){return(0,h.DefaultApiFp)(t).getTrackingSite(n,o,i,s).then(u=>u(r,e))},googleIntegrationPost(n,o){return(0,h.DefaultApiFp)(t).googleIntegrationPost(n,o).then(i=>i(r,e))},postError(n,o){return(0,h.DefaultApiFp)(t).postError(n,o).then(i=>i(r,e))},postPageTrack(n,o){return(0,h.DefaultApiFp)(t).postPageTrack(n,o).then(i=>i(r,e))},putFeedback(n,o){return(0,h.DefaultApiFp)(t).putFeedback(n,o).then(i=>i(r,e))},sitePost(n,o){return(0,h.DefaultApiFp)(t).sitePost(n,o).then(i=>i(r,e))}}};h.DefaultApiFactory=Ba;var go=class extends y.BaseAPI{accountGet(e){return(0,h.DefaultApiFp)(this.configuration).accountGet(e).then(r=>r(this.axios,this.basePath))}bingIntegrationPost(e,r){return(0,h.DefaultApiFp)(this.configuration).bingIntegrationPost(e,r).then(n=>n(this.axios,this.basePath))}getTrackingAllSites(e,r,n){return(0,h.DefaultApiFp)(this.configuration).getTrackingAllSites(e,r,n).then(o=>o(this.axios,this.basePath))}getTrackingSite(e,r,n,o){return(0,h.DefaultApiFp)(this.configuration).getTrackingSite(e,r,n,o).then(i=>i(this.axios,this.basePath))}googleIntegrationPost(e,r){return(0,h.DefaultApiFp)(this.configuration).googleIntegrationPost(e,r).then(n=>n(this.axios,this.basePath))}postError(e,r){return(0,h.DefaultApiFp)(this.configuration).postError(e,r).then(n=>n(this.axios,this.basePath))}postPageTrack(e,r){return(0,h.DefaultApiFp)(this.configuration).postPageTrack(e,r).then(n=>n(this.axios,this.basePath))}putFeedback(e,r){return(0,h.DefaultApiFp)(this.configuration).putFeedback(e,r).then(n=>n(this.axios,this.basePath))}sitePost(e,r){return(0,h.DefaultApiFp)(this.configuration).sitePost(e,r).then(n=>n(this.axios,this.basePath))}};h.DefaultApi=go});var bo=f(_t=>{Object.defineProperty(_t,"__esModule",{value:!0});_t.Configuration=void 0;var yo=class{constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions}isJsonMime(e){let r=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return e!==null&&(r.test(e)||e.toLowerCase()==="application/json-patch+json")}};_t.Configuration=yo});var Co=f(ce=>{var ka=ce&&ce.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),_o=ce&&ce.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ka(e,t,r)};Object.defineProperty(ce,"__esModule",{value:!0});_o(vo(),ce);_o(bo(),ce)});var Oo=f(Ct=>{Object.defineProperty(Ct,"__esModule",{value:!0});Ct.getBearerToken=void 0;var Ma=t=>(t==null?void 0:t.id_token)?`Bearer ${t.id_token}`:void 0;Ct.getBearerToken=Ma});var fr=f(le=>{Object.defineProperty(le,"__esModule",{value:!0});le.sleep=le.debounce=le.useDebounce=void 0;var wo=require("react");function Da(t,e){let[r,n]=(0,wo.useState)(t);return(0,wo.useEffect)(()=>{let o=setTimeout(()=>{n(t)},e);return()=>{clearTimeout(o)}},[e,t]),r}le.useDebounce=Da;function Na(t,e,...r){let n;return()=>{clearTimeout(n),n=setTimeout(()=>{n=void 0,t(r)},e)}}le.debounce=Na;var La=t=>new Promise(e=>setTimeout(e,t));le.sleep=La});var Ot=f(be=>{var Eo=be&&be.__awaiter||function(t,e,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(t,e||[])).next())})};Object.defineProperty(be,"__esModule",{value:!0});be.callOpenApi=void 0;var Ia=Co(),Ua=Oo(),Va=fr(),Ha=({func:t,jwt:e,apiUrl:r})=>Eo(be,void 0,void 0,function*(){var n,o,i,s;let u,c,d=e?{apiKey:()=>(0,Ua.getBearerToken)(e),isJsonMime:()=>!1,basePath:r}:void 0,a=new Ia.DefaultApi(d),l=0,p=3;for(;l<=p;){l+=1;try{let v=yield t(a);if(v.status<400){c=v.data;break}throw new Error(JSON.stringify(v.data)||v.statusText)}catch(v){let V=v,E=(n=V.response)===null||n===void 0?void 0:n.status,m=((o=V.response)===null||o===void 0?void 0:o.data)||((i=V.response)===null||i===void 0?void 0:i.statusText)||((s=V.response)===null||s===void 0?void 0:s.status)||"ERROR";if(E!==500||l===p){u=Object.assign({message:m},v);break}}yield(0,Va.sleep)(2e3)}return{data:c,error:u,loading:!1,reFetch:()=>Eo(this,void 0,void 0,function*(){return t(a)}),url:t.toString(),datetime:new Date().getTime()}});be.callOpenApi=Ha});var To=f(U=>{Object.defineProperty(U,"__esModule",{value:!0});U.stringify=U.extractQs=U.getClientY=U.getChildrenPositions=U.getChildrenArray=void 0;var Ga=require("querystring"),xo=ae(),Wa=t=>{var e;let r=((e=t.current)===null||e===void 0?void 0:e.children)||[],n=[];for(let o=0;o<r.length;o+=1)n.push(r[o]);return n};U.getChildrenArray=Wa;var Xa=t=>(0,U.getChildrenArray)(t).map(e=>e.getBoundingClientRect().top+e.getBoundingClientRect().height);U.getChildrenPositions=Xa;var Ya=t=>{var e,r,n,o;if(!t)return;let i;if((t==null?void 0:t.changedTouches)||(t==null?void 0:t.touches)){let s=t;i=((r=(e=s.changedTouches)===null||e===void 0?void 0:e[0])===null||r===void 0?void 0:r.clientY)||((o=(n=s.touches)===null||n===void 0?void 0:n[0])===null||o===void 0?void 0:o.clientY)}else(t==null?void 0:t.clientY)&&(i=t.clientY);return i};U.getClientY=Ya;var Ro=t=>t.replace(/[^a-zA-Z0-9\-_]/gim,"");function Qa({search:t,sanatise:e}){if(!t)return{};let r=(0,Ga.parse)(t.replace(/^[?]/,"")),n={};return Object.keys(r).forEach(o=>{let i=e?Ro(o):o;o!==i&&(0,xo.debug)("sanatising qs input key for ",i),Array.isArray(r[i])?n[i]=r[i].join(""):n[i]=r[i];let s=e?Ro(n[i]):n[i];s!==n[i]&&((0,xo.debug)("sanatising qs input for ",i),n[i]=s)}),n}U.extractQs=Qa;var Za=t=>{let e=new URLSearchParams;return Object.entries(t).forEach(([r,n])=>e.append(r,n)),e};U.stringify=Za});var Po=f(Et=>{Object.defineProperty(Et,"__esModule",{value:!0});Et.extractAttributes=void 0;var eu=({idName:t})=>{var e;if(!((e=document==null?void 0:document.getElementById(t))===null||e===void 0?void 0:e.attributes))return{};let r={};return[...document.getElementById(t).attributes].forEach(n=>{r[n.name]=n.value}),r};Et.extractAttributes=eu});var jo=f(qt=>{Object.defineProperty(qt,"__esModule",{value:!0});qt.isEmailValid=void 0;var tu=/^[-!#$%&'*+/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/,ru=t=>{if(!t||t.length>256||!tu.test(t))return!1;let r=t.split("@");return!(r[0].length>64||r[1].split(".").some(o=>o.length>64))};qt.isEmailValid=ru});var Fo=f(K=>{Object.defineProperty(K,"__esModule",{value:!0});K.getRandomInt=K.sumArray=K.clamp=K.roundToHalf=K.toFixed=void 0;var nu=(t,e)=>{var r,n;let o=new RegExp(`^-?\\d+(?:.\\d{0,${e||-1}})?`),i=(n=(r=t==null?void 0:t.toString())===null||r===void 0?void 0:r.match(o))===null||n===void 0?void 0:n[0];return i?Number.parseFloat(i):t};K.toFixed=nu;function ou(t){let e=t-parseInt(t.toString(),10);return e=Math.round(e*10),e===5?parseInt(t.toString(),10)+.5:e<3||e>7?Math.round(t):parseInt(t.toString(),10)+.5}K.roundToHalf=ou;function iu({value:t,min:e,max:r}){return t<e?e:t>r?r:t}K.clamp=iu;function su(t){return t.reduce((e,r)=>e+r)}K.sumArray=su;var au=t=>Math.floor(Math.random()*Math.floor(t));K.getRandomInt=au});var hr=f(At=>{Object.defineProperty(At,"__esModule",{value:!0});At.useLockBodyScroll=void 0;var uu=require("react");function cu(t){(0,uu.useLayoutEffect)(()=>{let e;return t&&(e=window.getComputedStyle(document.body).overflow,document.body.style.overflow="hidden"),()=>{t&&(document.body.style.overflow=e||"")}},[t])}At.useLockBodyScroll=cu});var mr=f(St=>{Object.defineProperty(St,"__esModule",{value:!0});St.tryJsonParse=void 0;var lu=(t,e)=>{if(!t)return null;try{return JSON.parse(t)}catch(r){return e}};St.tryJsonParse=lu});var Bo=f(xt=>{Object.defineProperty(xt,"__esModule",{value:!0});xt.getTimeSeconds=void 0;var du=()=>Math.ceil(new Date().getTime()/1e3);xt.getTimeSeconds=du});var Lo=f(R=>{Object.defineProperty(R,"__esModule",{value:!0});R.useCookie=R.getCookieWrapper=R.wipeCookies=R.setCookieWrapper=R.fromBase64=R.toBase64=void 0;var fu=require("react"),pu="Thu, 01 Jan 1970 00:00:00 UTC",ko=4e3,hu=(t,e)=>t.match(new RegExp(`.{1,${e}}`,"g")),mu=t=>Buffer.from(t).toString("base64");R.toBase64=mu;var gu=t=>Buffer.from(decodeURIComponent(t),"base64").toString();R.fromBase64=gu;function gr(t,e,r=1){let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${!e||r<0?pu:n.toUTCString()}`;document.cookie=`${t}=${e||""};${o};path=/`}function vr(t,e){let r=`${t}=`,n=e||typeof window!="undefined"&&document.cookie;if(!n||!(n==null?void 0:n.trim()))return;let o=n.split(";").map(i=>i.trim());for(let i of o)if(i.indexOf(r)===0)return i.substring(r.length,i.length)}function Mo(t,e,r=1){let n=0;for(;vr(t+n);)gr(t+n,null,-1),n+=1;if(!e)return;let o=(0,R.toBase64)(JSON.stringify(e)),i=[o];o.length>ko&&(i=hu(o,ko));for(let s in i){let u=i[s];gr(t+s,u,r)}}R.setCookieWrapper=Mo;function Do(t){let e=0;for(;;)if(vr(t+e))gr(t+e,void 0),e+=1;else return}R.wipeCookies=Do;function No(t,e){let r="",n=0;for(;;){let o=vr(t+n,e);if(!o){if(n===0)return;try{return JSON.parse((0,R.fromBase64)(r))}catch(i){Do(t);return}}r+=o,n+=1}}R.getCookieWrapper=No;function vu(t){let[e,r]=(0,fu.useState)(No(t));return[e,n=>{Mo(t,n,2),r(n)}]}R.useCookie=vu});var Vo=f(k=>{Object.defineProperty(k,"__esModule",{value:!0});k.UseLocalStorage=k.getLocalStorageItem=k.setLocalStorageItem=k.clearLocalStorageItem=void 0;var yu=ae(),Io=mr(),Uo=()=>Math.ceil(new Date().getTime()/1e3),bu=t=>{typeof window!="undefined"&&window.localStorage.removeItem(t)};k.clearLocalStorageItem=bu;var _u=(t,e,r)=>{try{if(typeof window=="undefined")return;let n={expiry:r?Uo()+r:void 0,val:JSON.stringify(e)};window.localStorage.setItem(t,JSON.stringify(n))}catch(n){(0,yu.error)(`set LS error:${t}-${n}`)}};k.setLocalStorageItem=_u;var Cu=(t,e,r)=>{if(typeof window=="undefined")return e;let n=window.localStorage.getItem(t),o=(0,Io.tryJsonParse)(n,void 0);if(!o||o.expiry&&Uo()>o.expiry)return(0,k.setLocalStorageItem)(t,e,r),e;let i=(0,Io.tryJsonParse)(o.val,void 0);return i||((0,k.setLocalStorageItem)(t,e,r),e)};k.getLocalStorageItem=Cu;function Ou(t,e,r){let n=(0,k.getLocalStorageItem)(t,e,r);return[n,i=>{if(typeof window=="undefined")return;let s=i instanceof Function?i(n):i;(0,k.setLocalStorageItem)(t,s,r)}]}k.UseLocalStorage=Ou});var Ho=f(S=>{var wu=S&&S.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Y=S&&S.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&wu(e,t,r)};Object.defineProperty(S,"__esModule",{value:!0});Y(fr(),S);Y(To(),S);Y(Po(),S);Y(jo(),S);Y(Fo(),S);Y(hr(),S);Y(mr(),S);Y(Bo(),S);Y(Lo(),S);Y(Vo(),S);Y(Ot(),S)});var yr=f(Ce=>{Object.defineProperty(Ce,"__esModule",{value:!0});Ce.colours=void 0;Ce.colours={mainLight:"rgb(255,255,255)",lightest:"rgb(241,241,241)",darker:"rgb(0,0,0,0.1)",lighter:"rgb(255,255,255,0.1)",dark:"rgb(23,25,23)",charcoal:"rgb(50,50,50)",lightCharcoal:"rgb(154,154,154)",orangeRed:"#d65873",orange:"#e88070",yellow:"rgb(255,206,109)",lightBlue:"rgb(90,129,255)",lightGreen:"rgb(75,236,120)",darkGreen:"#228B22",peach:"rgb(245,169,169)",purple:"rgb(173,121,255)",notificationBlue:"rgb(70,114,255)",gradient:"---generated---"};var Eu=(t,e)=>`linear-gradient(to right, ${t}, ${e})`;Ce.colours.gradient=Eu(Ce.colours.orangeRed,Ce.colours.orange)});var zo=f(G=>{Object.defineProperty(G,"__esModule",{value:!0});G.FullHeight=G.FadeBottom=G.CssTransparentBlock=G.NoTextSelect=G.DropShadow=void 0;var $e=require("styled-components"),qu=yr(),Au=t=>(0,$e.css)`
|
7
7
|
filter: drop-shadow(1px 1px 0px ${t})
|
8
8
|
drop-shadow(-1px 1px 0px ${t}) drop-shadow(1px -1px 0px ${t})
|
9
9
|
drop-shadow(-1px -1px 0px ${t});
|
10
|
-
`;
|
10
|
+
`;G.DropShadow=Au;G.NoTextSelect=(0,$e.css)`
|
11
11
|
user-select: none; /* supported by Chrome and Opera */
|
12
12
|
-webkit-user-select: none; /* Safari */
|
13
13
|
-khtml-user-select: none; /* Konqueror HTML */
|
14
14
|
-moz-user-select: none; /* Firefox */
|
15
15
|
-ms-user-select: none; /* Internet Explorer/Edge */
|
16
|
-
`;
|
16
|
+
`;G.CssTransparentBlock=(0,$e.css)`
|
17
17
|
background-color: rgba(150, 150, 150, 0.5);
|
18
18
|
border-radius: 3px;
|
19
19
|
font-weight: 600;
|
@@ -46,9 +46,9 @@ var ji=Object.create;var Ie=Object.defineProperty,Fi=Object.defineProperties,Bi=
|
|
46
46
|
rgba(255, 255, 255, 1) 100%
|
47
47
|
);
|
48
48
|
}
|
49
|
-
`;
|
49
|
+
`;G.FadeBottom=Su;G.FullHeight=(0,$e.css)`
|
50
50
|
height: calc(100vh - calc(100vh - 100%));
|
51
|
-
`});var $o=f(Oe=>{Object.defineProperty(Oe,"__esModule",{value:!0});Oe.loadFonts=Oe.fonts=void 0;Oe.fonts={dmSans:'"DM Sans"'};Oe.loadFonts=[Oe.fonts.dmSans].map(t=>t.replace(/"/gim,""))});var Jo=f(F=>{Object.defineProperty(F,"__esModule",{value:!0});F.vBigScreen=F.bigScreen=F.smallScreen=F.bigScreenPx=F.smallScreenPx=void 0;F.smallScreenPx=1024;F.bigScreenPx=2e3;F.smallScreen=`(max-width: ${F.smallScreenPx}px)`;F.bigScreen=`(min-width: ${F.smallScreenPx}px)`;F.vBigScreen=`(min-width: ${F.bigScreenPx}px)`});var Ko=f(te=>{var xu=te&&te.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),
|
51
|
+
`});var $o=f(Oe=>{Object.defineProperty(Oe,"__esModule",{value:!0});Oe.loadFonts=Oe.fonts=void 0;Oe.fonts={dmSans:'"DM Sans"'};Oe.loadFonts=[Oe.fonts.dmSans].map(t=>t.replace(/"/gim,""))});var Jo=f(F=>{Object.defineProperty(F,"__esModule",{value:!0});F.vBigScreen=F.bigScreen=F.smallScreen=F.bigScreenPx=F.smallScreenPx=void 0;F.smallScreenPx=1024;F.bigScreenPx=2e3;F.smallScreen=`(max-width: ${F.smallScreenPx}px)`;F.bigScreen=`(min-width: ${F.smallScreenPx}px)`;F.vBigScreen=`(min-width: ${F.bigScreenPx}px)`});var Ko=f(te=>{var xu=te&&te.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Rt=te&&te.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&xu(e,t,r)};Object.defineProperty(te,"__esModule",{value:!0});Rt(yr(),te);Rt(zo(),te);Rt($o(),te);Rt(Jo(),te)});var Go=f(Je=>{Object.defineProperty(Je,"__esModule",{value:!0});Je.Sentiment=void 0;var Ru;(function(t){t.Good="good",t.Bad="bad",t.Neutral="neutral"})(Ru=Je.Sentiment||(Je.Sentiment={}))});var Xo=f(Wo=>{Object.defineProperty(Wo,"__esModule",{value:!0})});var Qo=f(Yo=>{Object.defineProperty(Yo,"__esModule",{value:!0})});var Zo=f(oe=>{var Tu=oe&&oe.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),br=oe&&oe.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Tu(e,t,r)};Object.defineProperty(oe,"__esModule",{value:!0});br(Go(),oe);br(Xo(),oe);br(Qo(),oe)});var ei=f(ie=>{var Pu=ie&&ie.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),_r=ie&&ie.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Pu(e,t,r)};Object.defineProperty(ie,"__esModule",{value:!0});_r(Ho(),ie);_r(Ko(),ie);_r(Zo(),ie)});var oi=f(Tt=>{"use strict";Tt.__esModule=!0;Tt.createRequires=void 0;var Bu=function(t){return typeof t=="function"?t():t||{}},ku=function(t){var e=!1;return function(r){if(e||(t=Bu(t),e=!0),!(r in t))throw new Error("Could not require '"+r+"'. '"+r+"' does not exist in dependencies.");return t[r]}};Tt.createRequires=ku});var ii=f(Or=>{"use strict";Or.__esModule=!0;var Mu=function(t){var e={};return function(r){return r in e||(e[r]=t(r)),e[r]}};Or.default=Mu});var si=f(fe=>{"use strict";fe.__esModule=!0;fe.DONE=fe.OPENED=fe.UNSENT=void 0;fe.UNSENT=0;fe.OPENED=1;fe.DONE=4});var ai=f(je=>{"use strict";je.__esModule=!0;je.InternalServerError=je.OK=void 0;je.OK=200;je.InternalServerError=500});var ui=f(wr=>{"use strict";wr.__esModule=!0;var Du=si(),Nu=ai(),Lu=function(t){return new Promise(function(e,r){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState===Du.DONE&&(n.status===Nu.OK?e(n.responseText):r(n.status+" "+n.statusText))},n.open("GET",t,!0),n.send()})};wr.default=Lu});var fi=f(Ge=>{"use strict";var ci=Ge&&Ge.__spreadArrays||function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<r;e++)for(var i=arguments[e],s=0,u=i.length;s<u;s++,o++)n[o]=i[s];return n};Ge.__esModule=!0;var li=require("http"),di=require("https"),Iu=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return typeof t!="string"?{on:function(n,o){o(new Error("URL must be a string."))}}:t.indexOf("https://")===0?di.get.apply(di,ci([t],e)):li.get.apply(li,ci([t],e))},Uu=function(t){return new Promise(function(e,r){Iu(t,function(n){var o=null;n.on("data",function(i){if(o===null){o=i;return}o+=i}),n.on("end",function(){return e(o)})}).on("error",r)})};Ge.default=Uu});var pi=f(Pt=>{"use strict";Pt.__esModule=!0;Pt.createLoadRemoteModule=void 0;var Vu=ii(),Hu=ui(),zu=fi(),$u=typeof window!="undefined"&&typeof window.document!="undefined",Ju=$u?Hu.default:zu.default,Ku=function(t){throw new Error("Could not require '"+t+"'. The 'requires' function was not provided.")},Gu=function(t){var e=t===void 0?{}:t,r=e.requires,n=e.fetcher,o=r||Ku,i=n||Ju;return Vu.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})})};Pt.createLoadRemoteModule=Gu});var hi=f(jt=>{"use strict";jt.__esModule=!0;jt.createRequires=void 0;var Wu=function(t){return function(e){var r=t||{};if(!(e in r))throw new Error("Could not require '"+e+"'. '"+e+"' does not exist in dependencies.");return r[e]}};jt.createRequires=Wu});var gi=f(pe=>{"use strict";var mi=pe&&pe.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]});pe.__esModule=!0;pe.createRequires=pe.default=void 0;var Xu=pi();mi(pe,Xu,"createLoadRemoteModule","default");var Yu=hi();mi(pe,Yu,"createRequires")});var yi=f(Fe=>{"use strict";var Qu=Fe&&Fe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Fe.__esModule=!0;Fe.createUseRemoteComponent=void 0;var vi=require("react"),Zu=Qu(gi()),ec=function(t){var e=Zu.default(t),r=function(n){var o=vi.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 vi.useEffect(function(){var a=d;return a({loading:!0,err:void 0,component:void 0}),e(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};Fe.createUseRemoteComponent=ec});var Ei=f(ke=>{var wi=ke&&ke.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ke,"__esModule",{value:!0});ke.Close=void 0;var oc=wi(require("styled-components")),ic=wi(require("react")),sc=oc.default.div`
|
52
52
|
position: absolute;
|
53
53
|
right: 32px;
|
54
54
|
top: 32px;
|
@@ -73,7 +73,7 @@ var ji=Object.create;var Ie=Object.defineProperty,Fi=Object.defineProperties,Bi=
|
|
73
73
|
&:after {
|
74
74
|
transform: rotate(-45deg);
|
75
75
|
}
|
76
|
-
`,ac=({className:t,onClick:e})=>ic.default.createElement(sc,{className:t,onClick:e});ke.Close=ac});var qi=f(
|
76
|
+
`,ac=({className:t,onClick:e})=>ic.default.createElement(sc,{className:t,onClick:e});ke.Close=ac});var qi=f(W=>{var uc=W&&W.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),cc=W&&W.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),lc=W&&W.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&uc(e,t,r);return cc(e,t),e},dc=W&&W.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(W,"__esModule",{value:!0});W.Modal=void 0;var Bt=dc(require("react")),Qe=lc(require("styled-components")),fc=hr(),pc=Ei(),hc=Qe.default.div`
|
77
77
|
top: 0;
|
78
78
|
left: 0;
|
79
79
|
right: 0;
|
@@ -84,18 +84,18 @@ var ji=Object.create;var Ie=Object.defineProperty,Fi=Object.defineProperties,Bi=
|
|
84
84
|
display: none;
|
85
85
|
cursor: pointer;
|
86
86
|
|
87
|
-
${({open:t})=>t&&(0,
|
87
|
+
${({open:t})=>t&&(0,Qe.css)`
|
88
88
|
z-index: 100;
|
89
89
|
display: flex;
|
90
90
|
justify-content: center;
|
91
91
|
align-items: center;
|
92
92
|
`}
|
93
|
-
`,mc=
|
93
|
+
`,mc=Qe.default.div`
|
94
94
|
position: absolute;
|
95
95
|
top: 0;
|
96
96
|
right: 0;
|
97
97
|
z-index: 100;
|
98
|
-
`,gc=
|
98
|
+
`,gc=Qe.default.div`
|
99
99
|
z-index: 101;
|
100
100
|
cursor: default;
|
101
101
|
margin: auto;
|
@@ -108,8 +108,8 @@ var ji=Object.create;var Ie=Object.defineProperty,Fi=Object.defineProperties,Bi=
|
|
108
108
|
max-height: 95vh;
|
109
109
|
overflow-y: auto;
|
110
110
|
position: relative;
|
111
|
-
`,vc=(0,
|
111
|
+
`,vc=(0,Qe.default)(pc.Close)`
|
112
112
|
cursor: pointer;
|
113
|
-
`,yc=({className:t,children:e,open:r,setOpen:n})=>((0,fc.useLockBodyScroll)(r),
|
113
|
+
`,yc=({className:t,children:e,open:r,setOpen:n})=>((0,fc.useLockBodyScroll)(r),Bt.default.createElement(hc,{open:r,onClick:()=>n&&n(!1)},Bt.default.createElement(gc,{className:t,open:r,onClick:o=>{o.stopPropagation()}},n&&Bt.default.createElement(mc,null,Bt.default.createElement(vc,{onClick:()=>n(!1)})),e)));W.Modal=yc});var xi=f(Me=>{var Ai=Me&&Me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Me,"__esModule",{value:!0});Me.ErrorBoundary=void 0;var kt=Ai(require("react")),bc=Ai(require("styled-components")),_c=qi(),Cc=bc.default.div`
|
114
114
|
font-size: 2rem;
|
115
|
-
`,Si=class extends
|
115
|
+
`,Si=class extends kt.default.Component{constructor(e){super(e);this.state={hasError:void 0}}static getDerivedStateFromError(e){var r;let n=typeof window!="undefined"&&((r=window==null?void 0:window.location)===null||r===void 0?void 0:r.href);return{hasError:Object.assign(Object.assign(Object.assign(Object.assign({},e),{message:(e==null?void 0:e.message)||e}),(e==null?void 0:e.stack)&&{stack:e==null?void 0:e.stack}),n&&{href:n})}}render(){let{hasError:e}=this.state,{children:r,notify:n}=this.props;return e?(n&&n(e),kt.default.createElement(_c.Modal,{open:!0},kt.default.createElement(Cc,null,"A fatal error has occurred - the admin has been notified.",kt.default.createElement("button",{type:"button",onClick:()=>window.location.reload()},"Press here to restart app")))):r}};Me.ErrorBoundary=Si});Li(exports,{AnalyticaConfigContext:()=>J,AnalyticaConfigProvider:()=>Ja,ErrorBoundary:()=>wc,ExternalComponent:()=>Xe,Feedback:()=>rc,GenerateCognitoAuth:()=>nc,errorTrack:()=>_e,feedback:()=>wt,getBearerToken:()=>Fu,page:()=>ni,tokenMissing:()=>ne,track:()=>Cr,useFeedback:()=>Ka,useTrack:()=>ju});var Oi=b(ae()),Be=b(require("react"));var ze=b(ae()),Ao=b(require("react")),So=b(Ot());var de=b(require("react"));var pr=b(ae()),qo=b(Ot()),_e=r=>se(void 0,[r],function*({data:t,overrideBaseUrl:e="https://api.analytica.click"}){var o;if(typeof window!="undefined"&&((o=window==null?void 0:window.location)==null?void 0:o.hostname)==="localhost")return(0,pr.debug)(`local error tracking ignored:${t.data.message} ${JSON.stringify(t)}, to ${e}`),{};(0,pr.debug)("error track",t.data.message,JSON.stringify(t));let n=yield(0,qo.callOpenApi)({apiUrl:e,func:i=>i.postError(t)});return n.error?{error:n.error.message}:{}});var za={analyticaToken:void 0,overrideBaseUrl:void 0},J=de.default.createContext(za);function $a(t){if(!t.analyticaToken)return;let e=window.console.error;window.console.error=n=>_e({data:{data:{href:window.location.href,message:JSON.stringify(n)},key:t.analyticaToken},overrideBaseUrl:t.overrideBaseUrl}).finally(()=>e(n));let r=window.console.warn;window.console.warn=n=>_e({data:{data:{href:window.location.href,message:JSON.stringify(n)},key:t.analyticaToken},overrideBaseUrl:t.overrideBaseUrl}).finally(()=>r(n))}var Ja=({children:t,values:e})=>{let[r,n]=(0,de.useState)(e);return(0,de.useEffect)(()=>{JSON.stringify(e)!==JSON.stringify(r)&&n(e)},[r,e]),(0,de.useEffect)(()=>{$a(e)},[]),de.default.createElement(J.Provider,{value:r},t)};var ne=t=>`[Analytica.${t}] Please load analytica token in AnalyticaConfigProvider to use this component`;var wt=n=>se(void 0,[n],function*({data:t,analyticaToken:e,overrideBaseUrl:r="https://api.analytica.click"}){var i;if(typeof window!="undefined"&&((i=window==null?void 0:window.location)==null?void 0:i.hostname)==="localhost")return(0,ze.debug)(`local feedback ignored:${JSON.stringify(t)}, to ${r}`),{};(0,ze.debug)("feedback",JSON.stringify(t));let o=yield(0,So.callOpenApi)({apiUrl:r,func:s=>s.putFeedback({key:e,data:t})});return o.error?{error:o.error.message}:{}}),Ka=()=>{let{analyticaToken:t,overrideBaseUrl:e}=(0,Ao.useContext)(J);return t?{trackWithToken:r=>wt(B(x({},r),{analyticaToken:t,overrideBaseUrl:e}))}:((0,ze.warn)(ne("useFeedback")),{trackWithToken:()=>({error:"no token"})})};var Ke=b(ae()),ti=b(require("react")),ri=b(ei());var Cr=o=>se(void 0,[o],function*({analyticaToken:t,userData:e,overrideBaseUrl:r="https://api.analytica.click",eventName:n}){var u,c,d;let i={eventName:n};if(typeof window!="undefined"&&(i=B(x({},i),{pageLocation:window.location.href,browserResolution:`${(u=window==null?void 0:window.screen)==null?void 0:u.width}:${(c=window==null?void 0:window.screen)==null?void 0:c.height}`})),typeof document!="undefined"&&(i=B(x({},i),{pageReferrer:document.referrer,pageTitle:document.title})),typeof navigator!="undefined"&&(i=B(x({},i),{browserLanguage:navigator.language})),typeof window!="undefined"&&((d=window==null?void 0:window.location)==null?void 0:d.hostname)==="localhost")return(0,Ke.debug)(`local page ignored: ${JSON.stringify(i)}, to ${r}`),{};(0,Ke.debug)("track",JSON.stringify(i));let s=yield(0,ri.callOpenApi)({apiUrl:r,func:a=>a.postPageTrack({key:t,data:i,userData:e})});return s.error?{error:s.error.message}:{}}),ni=n=>se(void 0,[n],function*({analyticaToken:t,userData:e,overrideBaseUrl:r="https://api.analytica.click"}){return Cr({analyticaToken:t,userData:e,overrideBaseUrl:r,eventName:"PAGE"})}),ju=()=>{let{analyticaToken:t,overrideBaseUrl:e}=(0,ti.useContext)(J);if(!t){(0,Ke.warn)(ne("useTrack"));let r=()=>se(void 0,null,function*(){return{error:"no token"}});return{page:r,track:r}}return{page:r=>ni(B(x({},r),{analyticaToken:t,overrideBaseUrl:e})),track:r=>Cr(B(x({},r),{analyticaToken:t,overrideBaseUrl:e}))}};var Fu=t=>(t==null?void 0:t.id_token)?`Bearer ${t.id_token}`:void 0;var We=b(require("react")),bi=b(oi()),_i=b(yi()),Ci=b(require("react-dom")),tc=require("styled-components"),Ft={},Xe=({url:t,props:e})=>{let r=(0,bi.createRequires)(()=>({react:We.default,"react-dom":Ci.default,"styled-components":tc})),n,o=!1,i;return Ft[t]?n=Ft[t]:[o,i,n]=(0,_i.createUseRemoteComponent)({requires:r})(t),!Ft[t]&&!o&&!i&&n&&(Ft[t]=n),We.default.createElement(We.default.Fragment,null,!o&&!i&&We.default.createElement(n,x({},e)),i&&i)};var rc=t=>{let{analyticaToken:e,overrideBaseUrl:r,devMode:n}=(0,Be.useContext)(J);if(!e)return(0,Oi.warn)(ne("Feedback")),Be.default.createElement(Be.default.Fragment,null);let o=B(x({},t),{submitFeedback:wt,analyticaToken:e,overrideBaseUrl:r}),i="https://cdn.analytica.click/feedback.js";return n&&(i="/dev-feedback"),Be.default.createElement(Xe,{url:i,props:o})};var Ye=b(require("react"));var nc=()=>{let{devMode:t}=(0,Ye.useContext)(J),e=Ye.default.createContext(void 0),r="https://cdn.analytica.click/cognito.js";return{CognitoAuthContext:e,CognitoAuthProvider:o=>{let i=B(x({},o),{Context:e});return t&&(r="/dev-cognito"),Ye.default.createElement(Xe,{url:r,props:i})}}};var Ri=b(xi()),he=b(require("react")),Ti=b(ae());function Oc({ev:t,analyticaToken:e,filterBrowserError:r}){if(r&&r(t)===!1)return;let n=(t==null?void 0:t.message)||(t==null?void 0:t.error),{href:o}=window.location,i=t==null?void 0:t.stack,s=t==null?void 0:t.filename;_e({data:{key:e,data:{message:n,stack:i,filename:s,href:o}}})}var wc=({children:t,filterBrowserError:e})=>{let{analyticaToken:r}=(0,he.useContext)(J);return(0,he.useEffect)(()=>{if(!r)return()=>{};let n=o=>Oc({ev:o,analyticaToken:r,filterBrowserError:e});return window.addEventListener("error",n),()=>{window.removeEventListener("error",n)}},[r,e]),r?he.default.createElement(Ri.ErrorBoundary,{notify:n=>{let{href:o}=window.location;_e({data:{key:r,data:B(x({},n),{href:o})}})}},t):((0,Ti.warn)(ne("ErrorBoundary")),he.default.createElement(he.default.Fragment,null,t))};0&&(module.exports={AnalyticaConfigContext,AnalyticaConfigProvider,ErrorBoundary,ExternalComponent,Feedback,GenerateCognitoAuth,errorTrack,feedback,getBearerToken,page,tokenMissing,track,useFeedback,useTrack});
|