analytica.click 0.0.134 → 0.0.138
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.js +12 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
var
|
2
|
-
`),r=[],n=t[0].split(",");for(let o=1;o<t.length;o+=1){let s={},i=t[o].split(",");for(let u=0;u<n.length;u+=1)s[n[u]]=i[u];r.push(s)}return r};U.csvJSON=
|
1
|
+
var ps=Object.create;var $e=Object.defineProperty,hs=Object.defineProperties,ms=Object.getOwnPropertyDescriptor,vs=Object.getOwnPropertyDescriptors,gs=Object.getOwnPropertyNames,Er=Object.getOwnPropertySymbols,ys=Object.getPrototypeOf,qr=Object.prototype.hasOwnProperty,bs=Object.prototype.propertyIsEnumerable;var Ar=(e,t,r)=>t in e?$e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))qr.call(t,r)&&Ar(e,r,t[r]);if(Er)for(var r of Er(t))bs.call(t,r)&&Ar(e,r,t[r]);return e},F=(e,t)=>hs(e,vs(t)),Tr=e=>$e(e,"__esModule",{value:!0});var f=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Os=(e,t)=>{for(var r in t)$e(e,r,{get:t[r],enumerable:!0})},Rr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of gs(t))!qr.call(e,o)&&(r||o!=="default")&&$e(e,o,{get:()=>t[o],enumerable:!(n=ms(t,o))||n.enumerable});return e},D=(e,t)=>Rr(Tr($e(e!=null?ps(ys(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),ws=(e=>(t,r)=>e&&e.get(t)||(r=Rr(Tr({}),t,1),e&&e.set(t,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var $=(e,t,r)=>new Promise((n,o)=>{var s=c=>{try{u(r.next(c))}catch(d){o(d)}},i=c=>{try{u(r.throw(c))}catch(d){o(d)}},u=c=>c.done?n(c.value):Promise.resolve(c.value).then(s,i);u((r=r.apply(e,t)).next())});var jt=f(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.notEmpty=I.partition=I.chunk=I.take=I.flat=I.toObject=void 0;var Cs=(e,t)=>{let r={};return!e||!t||e.forEach(n=>{let o=t(n);r[o]=n}),r};I.toObject=Cs;var _s=e=>[].concat(...e);I.flat=_s;var Es=(e,t)=>{let r=JSON.parse(JSON.stringify(e));return{part:r.slice(0,t),rest:r.slice(t)}};I.take=Es;var qs=(e,t)=>{let r=[],n=[];for(let o in e){let s=e[o];n.push(s),n.length>=t&&(r.push(n),n=[])}return n.length>0&&r.push(n),r};I.chunk=qs;var As=(e,t)=>(e==null?void 0:e.length)?[e.filter(r=>t(r)),e.filter(r=>!t(r))]:null;I.partition=As;function Ts(e){return e!=null&&e!==!1}I.notEmpty=Ts});var xr=f(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.dateTimeToNearestMinute=_.CSharpToJs=_.dateDiffDays=_.lastDayInMonth=_.addMinutes=_.addDays=_.addHours=_.getTimeSeconds=void 0;var Rs=()=>Math.ceil(new Date().getTime()/1e3);_.getTimeSeconds=Rs;var xs=(e,t)=>new Date(e+t*60*60*1e3);_.addHours=xs;var Ss=(e,t)=>{let r=new Date(e);return r.setDate(r.getDate()+t),r};_.addDays=Ss;var Ps=(e,t)=>new Date(e.getTime()+t*6e4);_.addMinutes=Ps;var js=e=>new Date(e.getFullYear(),e.getMonth()+1,0);_.lastDayInMonth=js;var ks=(e,t)=>{let r=new Date(e),n=new Date(t);return Math.floor((Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())-Date.UTC(r.getFullYear(),r.getMonth(),r.getDate()))/1e3)};_.dateDiffDays=ks;var Fs=e=>{let t=e/1e4,r=Math.abs(new Date(0,0,1).setFullYear(1));return new Date(t-r)};_.CSharpToJs=Fs;var Ds=(e,t)=>{let r=1e3*60*e;return t||(t=new Date),new Date(Math.round(t.getTime()/r)*r)};_.dateTimeToNearestMinute=Ds});var Sr=f(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.distinct=qe.distinctBy=void 0;function Ms(e,t,r){if(!e||e.length===0)return e;let n=new Set;return e.filter(o=>{let s;return typeof t=="string"?s=o[t]:s=t(o),!s&&r||n.has(s)?!1:(n.add(s),!0)})}qe.distinctBy=Ms;var Bs=e=>[...new Set(e)];qe.distinct=Bs});var Pr=f(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.getEmailsErrors=re.getEmailErrors=re.isEmailValid=void 0;var Ns=jt(),Ls=/^[-!#$%&'*+/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])+$/,Is=e=>{if(!e||e.length>256||!Ls.test(e))return!1;let r=e.split("@");return!(r[0].length>64||r[1].split(".").some(o=>o.length>64))};re.isEmailValid=Is;var Us=(e,t)=>{if(!(0,re.isEmailValid)(e))return`email not valid:${e}`;if(t.creatorId===e)return"You cannot add the creator of this event as an admin"};re.getEmailErrors=Us;var Vs=(e,t)=>e.map(r=>(0,re.getEmailErrors)(r,t)).filter(Ns.notEmpty);re.getEmailsErrors=Vs});var jr=f(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.groupByTwice=ae.groupByList=ae.groupBy=void 0;function $s(e,t){let r={};return e.forEach(n=>{let o=t(n);r[o]||(r[o]=[]),r[o].push(n)}),r}ae.groupBy=$s;function Hs(e,t){let r=[];return e.forEach(n=>{let o=t(n),s=r.find(i=>i.key===o);s?s.items.push(n):r.push({key:o,items:[n]})}),r}ae.groupByList=Hs;function zs(e,t,r){let n={};return e.forEach(o=>{let s=t(o),i=r(o);n[s]||(n[s]={}),n[s][i]=o}),n}ae.groupByTwice=zs});var kr=f(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.generateNewPK=ye.hashCode=void 0;var Js=(e,t=0)=>{if(!e)return"";let r=3735928559^t,n=1103547991^t;for(let s=0,i;s<e.length;s+=1)i=e.charCodeAt(s),r=Math.imul(r^i,2654435761),n=Math.imul(n^i,1597334677);return r=Math.imul(r^r>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),(4294967296*(2097151&n)+(r>>>0)).toString()};ye.hashCode=Js;var Ks=()=>(0,ye.hashCode)(new Date().getTime().toString());ye.generateNewPK=Ks});var Fr=f(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.t=oe.getValidatedLang=oe.AllLang=void 0;oe.AllLang=["en","id","vi"];var Gs=e=>{let t=oe.AllLang.find(r=>r===e);return t||"en"};oe.getValidatedLang=Gs;var Ws=(e,t)=>{var r;return(r=e[t])!==null&&r!==void 0?r:e.en};oe.t=Ws});var Dr=f(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.toFixedDown=M.isNumber=M.getRandomInt=M.sumArray=M.clamp=M.roundToHalf=M.toFixed=void 0;var Xs=(e,t)=>{var r,n;let o=new RegExp(`^-?\\d+(?:.\\d{0,${t||-1}})?`),s=(n=(r=e==null?void 0:e.toString())===null||r===void 0?void 0:r.match(o))===null||n===void 0?void 0:n[0];return s?Number.parseFloat(s):e};M.toFixed=Xs;function Ys(e){let t=e-parseInt(e.toString(),10);return t=Math.round(t*10),t===5?parseInt(e.toString(),10)+.5:t<3||t>7?Math.round(e):parseInt(e.toString(),10)+.5}M.roundToHalf=Ys;function Qs({value:e,min:t,max:r}){return e<t?t:e>r?r:e}M.clamp=Qs;function Zs(e){return e.reduce((t,r)=>t+r)}M.sumArray=Zs;var ei=e=>Math.floor(Math.random()*Math.floor(e));M.getRandomInt=ei;function ti(e){let t=new RegExp("(\\d+\\.?\\d*)(\\d)");return!!e.toString().match(t)}M.isNumber=ti;function ri(e,t){if(!`${e}`.includes("e"))return+`${Math.round(`${e}e+${t}`)}e-${t}`;let r=`${e}`.split("e"),n="";return+r[1]+t>0&&(n="+"),+`${Math.round(`${+r[0]}e${n}${+r[1]+t}`)}e-${t}`}M.toFixedDown=ri});var Mr=f(H=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0});H.objectToArray=H.getObjectKeysAsNumber=H.objectKeysToLowerCase=H.isJson=H.tryJsonParse=void 0;var ni=(e,t)=>{if(!e)return null;try{return JSON.parse(e)}catch{return t}};H.tryJsonParse=ni;function oi(e){try{JSON.parse(typeof e=="string"?e:JSON.stringify(e))}catch{return!1}return!0}H.isJson=oi;var si=e=>!e||Object.keys(e).length===0?{}:Object.keys(e).reduce((t,r)=>{let n=e[r],o=typeof n=="object"?(0,H.objectKeysToLowerCase)(n):n;return t[r.toLowerCase()]=o,t},{});H.objectKeysToLowerCase=si;var ii=e=>Object.keys(e).map(t=>parseInt(t,10));H.getObjectKeysAsNumber=ii;function ai(e){if(!e)return[];let t=[];return Object.keys(e).forEach(r=>{t.push({key:r,value:e[r]})}),t}H.objectToArray=ai});var Br=f(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.shuffle=void 0;function ui(e,t){let r=e.length,n,o;t=t||1;let s=function(){let i=Math.sin(t+=1)*1e4;return i-Math.floor(i)};for(;r!==0;)o=Math.floor(s()*r),r-=1,n=e[r],e[r]=e[o],e[o]=n;return e}nt.shuffle=ui});var Nr=f(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.secondsInNearest=void 0;var ot=(e,t)=>{var r,n;let o=new RegExp(`^-?\\d+(?:.\\d{0,${t||-1}})?`),s=(n=(r=e==null?void 0:e.toString())===null||r===void 0?void 0:r.match(o))===null||n===void 0?void 0:n[0];return s?Number.parseFloat(s):e},ci=({seconds:e,precision:t=2})=>{if(e<=0)return"Now";if(e<90){let i=ot(e,t);return`${i} ${i===1?"second":"seconds"}`}let r=e/60;if(r<120){let i=ot(r,t);return`${i} ${i===1?"minute":"minutes"}`}let n=r/60;if(n<24){let i=ot(n,t);return`${i} ${i===1?"hour":"hours"}`}let o=n/24,s=ot(o,t);return`${s} ${s===1?"day":"days"}`};st.secondsInNearest=ci});var Ir=f(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.toTitleCase=U.niceUrl=U.truncate=U.trim=U.trimSide=U.csvJSON=void 0;var li=e=>{let t=e.split(`
|
2
|
+
`),r=[],n=t[0].split(",");for(let o=1;o<t.length;o+=1){let s={},i=t[o].split(",");for(let u=0;u<n.length;u+=1)s[n[u]]=i[u];r.push(s)}return r};U.csvJSON=li;function kt(e,t=!0,...r){let n=r.join("");if(!e)return e;let o=e.replace(new RegExp(`[${n}]*$`,"g"),"");return t?o.replace(new RegExp(`^[${n}]*`,"g"),""):o}U.trimSide=kt;function Lr(e,...t){return e=kt(e,!0,...t),e=kt(e,!1,...t),e}U.trim=Lr;function di(e,t,r){if(!!e)return e.length>t?e.substr(0,t-1)+r:e}U.truncate=di;var fi=e=>{if(!e)return;let t=e.substring(e.indexOf(":")+1).replace("sc-domain:","").replace("https://","").replace("http://","");return t=Lr(t,"/"),{siteUrl:e,niceSiteUrl:t}};U.niceUrl=fi;function pi(e){return e&&e.replace(/\w\S*/g,t=>t&&t.charAt(0).toUpperCase()+t.substring(1).toLowerCase())}U.toTitleCase=pi});var Ur=f(O=>{"use strict";var hi=O&&O.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),z=O&&O.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&hi(t,e,r)};Object.defineProperty(O,"__esModule",{value:!0});z(jt(),O);z(xr(),O);z(Sr(),O);z(Pr(),O);z(jr(),O);z(kr(),O);z(Fr(),O);z(be(),O);z(Dr(),O);z(Mr(),O);z(Br(),O);z(Nr(),O);z(Ir(),O)});var be=f(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.fatal=E.error=E.trace=E.warn=E.info=E.debug=E.GetLogLevel=void 0;var mi=Ur(),vi=e=>["TRACE","DEBUG","INFO","WARN","ERROR","FATAL"].findIndex(t=>t===e);E.GetLogLevel=vi;function gi(){let e=new Date;return`${e.getHours()}:${e.getMinutes()}:${e.getSeconds()}`}function Ae(e,t){var r;let n=(0,E.GetLogLevel)((r=process.env.LOG_LEVEL)===null||r===void 0?void 0:r.toUpperCase())||"WARN";if((0,E.GetLogLevel)(e)<n)return;let s=[`[${gi()}]`,e,...t.filter(mi.notEmpty)];switch(e){case"TRACE":{console.trace(...s);break}case"DEBUG":{console.debug(...s);break}case"INFO":{console.log(...s);break}case"WARN":{console.warn(...s);break}case"ERROR":{console.error(...s);break}case"FATAL":{console.error(...s);break}default:{console.log(...s);break}}}function Ft(...e){let t=[],r=!1;try{throw new Error("Test")}catch(n){let o=n;if(o.stack){let s=o.stack.split(`
|
3
3
|
`);for(let i=0,u=s.length;i<u;i+=1)t.push(` ${s[i]} `);t.shift(),r=!0}else if(window.opera&&o.message){let s=o.message.split(`
|
4
4
|
`);for(let i=0,u=s.length;i<u;i+=1)if(s[i].match(/^\s*[A-Za-z0-9\-_$]+\(/)){let c=s[i];s[i+1]&&(c+=` at ${s[i+1]}`,i+=1),t.push(c)}t.shift(),r=!0}}if(!r){let n=e.callee.caller;for(;n;){let o=n.toString(),s=o.substring(o.indexOf("function")+8,o.indexOf("("))||"anonymous";t.push(s),n=n.caller}}return t.join(`
|
5
|
-
`)}var bi=(...e)=>{let t=Te(e);e.push($r()),Re("TRACE",Ae(),t)};E.trace=bi;var Oi=(...e)=>Re("DEBUG",Ae(),Te(e));E.debug=Oi;var wi=(...e)=>Re("INFO",Ae(),Te(e));E.info=wi;var Ci=(...e)=>Re("WARN",Ae(),Te(e));E.warn=Ci;var _i=(...e)=>Re("ERROR",Ae(),Te(e));E.error=_i;var Ei=(...e)=>{let t=Te(e);e.push($r()),Re("FATAL",Ae(),t)};E.fatal=Ei});var Gr=f(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.useCookie=N.getCookieWrapper=N.wipeCookies=N.setCookieWrapper=N.fromBase64=N.toBase64=void 0;var qi=require("react"),Ai="Thu, 01 Jan 1970 00:00:00 UTC",Hr=4e3,Ti=(e,t)=>e.match(new RegExp(`.{1,${t}}`,"g")),Ri=e=>Buffer.from(e).toString("base64");N.toBase64=Ri;var xi=e=>Buffer.from(decodeURIComponent(e),"base64").toString();N.fromBase64=xi;function ut(e,t,r=1){let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${!t||r<0?Ai:n.toUTCString()}`;document.cookie=`${e}=${t||""};${o};path=/`}function Mt({cname:e,cookieDocument:t}){let r=`${e}=`,n=t||typeof window!="undefined"&&document.cookie;if(!n||!(n==null?void 0:n.trim()))return;let o=n.split(";").map(s=>s.trim());for(let s of o)if(s.indexOf(r)===0)return s.substr(r.length,s.length)}function Jr(e,t,r=1){let n=0;for(;Mt({cname:e+n});)ut(e+n,null,-1),n+=1;if(!t)return;let o=(0,N.toBase64)(JSON.stringify(t)),s=[o];o.length>Hr&&(s=Ti(o,Hr));for(let i in s){let u=s[i];ut(e+i,u,r)}}N.setCookieWrapper=Jr;function zr(e){let t=0;for(;;)if(Mt({cname:e+t}))ut(e+t,void 0),t+=1;else return}N.wipeCookies=zr;function Kr({cname:e,cookieDocument:t,defaultValue:r}){let n="",o=0;for(;;){let s=Mt({cname:e+o,cookieDocument:t});if(!s){if(o===0)return r?(ut(e,r),r):void 0;try{return JSON.parse((0,N.fromBase64)(n))}catch{zr(e);return}}n+=s,o+=1}}N.getCookieWrapper=Kr;function Si({key:e,defaultValue:t,cookieDocument:r}){let[n,o]=(0,qi.useState)(Kr({cname:e,defaultValue:t,cookieDocument:r}));return[n,s=>{Jr(e,s,2),o(s)}]}N.useCookie=Si});var Yr=f(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.debounce=ue.sleep=ue.useDebounce=void 0;var Wr=require("react");function Pi(e,t){let[r,n]=(0,Wr.useState)(e);return(0,Wr.useEffect)(()=>{let o=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(o)}},[t,e]),r}ue.useDebounce=Pi;var ji=e=>new Promise(t=>setTimeout(t,e));ue.sleep=ji;var Xr={};function ki(e,{key:t,time:r}){let n=new Date().getTime(),o=Xr[t]||0;n-o<r||(Xr[t]=n,e())}ue.debounce=ki});var Qr=f(xe=>{"use strict";var Nt=xe&&xe.__awaiter||function(e,t,r,n){function o(s){return s instanceof r?s:new r(function(i){i(s)})}return new(r||(r=Promise))(function(s,i){function u(a){try{d(n.next(a))}catch(l){i(l)}}function c(a){try{d(n.throw(a))}catch(l){i(l)}}function d(a){a.done?s(a.value):o(a.value).then(u,c)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(xe,"__esModule",{value:!0});xe.callOpenApi=void 0;var Fi=Gr(),Di=Yr(),Mi=({func:e,apiUrl:t,overrideAuth:r,refreshToken:n,logout:o,newDefaultApi:s})=>Nt(void 0,void 0,void 0,function*(){var i,u,c,d,a,l;let p,k,Z={basePath:t,baseOptions:{headers:{authorization:""}}},x=!!(0,Fi.getCookieWrapper)({cname:"id_token"});if(r==null?void 0:r.id_token)Z.baseOptions.headers.authorization=`Bearer ${r==null?void 0:r.id_token}`;else if(x){let b=yield n();((i=b==null?void 0:b.jwt)===null||i===void 0?void 0:i.id_token)&&(Z.baseOptions.headers.authorization=`Bearer ${(u=b==null?void 0:b.jwt)===null||u===void 0?void 0:u.id_token}`)}let m=s(Z),v=0,w=3;for(;v<=w;){v+=1;try{let b=yield e(m);if(b.status<400){k=b.data;break}throw new Error(JSON.stringify(b.data)||b.statusText)}catch(b){let S=b,Ee=(c=S.response)===null||c===void 0?void 0:c.status,me=((d=S.response)===null||d===void 0?void 0:d.data)||((a=S.response)===null||a===void 0?void 0:a.statusText)||((l=S.response)===null||l===void 0?void 0:l.status)||"ERROR";if(Ee===403)return o(),{error:S,data:void 0,datetime:new Date().getTime(),loading:!1,reFetch:()=>Nt(void 0,void 0,void 0,function*(){}),url:e.toString()};if(Ee!==500||v===w){p=Object.assign(Object.assign({},S),{message:me});break}}yield(0,Di.sleep)(2e3)}return{data:k,error:p,loading:!1,reFetch:()=>Nt(void 0,void 0,void 0,function*(){return e(m)}),url:e.toString(),datetime:new Date().getTime()}});xe.callOpenApi=Mi});var Bt=f((Vc,Zr)=>{"use strict";Zr.exports=function(t,r){return function(){for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];return t.apply(r,o)}}});var L=f(($c,rn)=>{"use strict";var Ni=Bt(),be=Object.prototype.toString;function Lt(e){return be.call(e)==="[object Array]"}function It(e){return typeof e=="undefined"}function Bi(e){return e!==null&&!It(e)&&e.constructor!==null&&!It(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Li(e){return be.call(e)==="[object ArrayBuffer]"}function Ii(e){return typeof FormData!="undefined"&&e instanceof FormData}function Ui(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Vi(e){return typeof e=="string"}function $i(e){return typeof e=="number"}function en(e){return e!==null&&typeof e=="object"}function ct(e){if(be.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Hi(e){return be.call(e)==="[object Date]"}function Ji(e){return be.call(e)==="[object File]"}function zi(e){return be.call(e)==="[object Blob]"}function tn(e){return be.call(e)==="[object Function]"}function Ki(e){return en(e)&&tn(e.pipe)}function Gi(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function Wi(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Xi(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function Ut(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),Lt(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function Vt(){var e={};function t(o,s){ct(e[s])&&ct(o)?e[s]=Vt(e[s],o):ct(o)?e[s]=Vt({},o):Lt(o)?e[s]=o.slice():e[s]=o}for(var r=0,n=arguments.length;r<n;r++)Ut(arguments[r],t);return e}function Yi(e,t,r){return Ut(t,function(o,s){r&&typeof o=="function"?e[s]=Ni(o,r):e[s]=o}),e}function Qi(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}rn.exports={isArray:Lt,isArrayBuffer:Li,isBuffer:Bi,isFormData:Ii,isArrayBufferView:Ui,isString:Vi,isNumber:$i,isObject:en,isPlainObject:ct,isUndefined:It,isDate:Hi,isFile:Ji,isBlob:zi,isFunction:tn,isStream:Ki,isURLSearchParams:Gi,isStandardBrowserEnv:Xi,forEach:Ut,merge:Vt,extend:Yi,trim:Wi,stripBOM:Qi}});var lt=f((Hc,on)=>{"use strict";var Se=L();function nn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}on.exports=function(t,r,n){if(!r)return t;var o;if(n)o=n(r);else if(Se.isURLSearchParams(r))o=r.toString();else{var s=[];Se.forEach(r,function(c,d){c===null||typeof c=="undefined"||(Se.isArray(c)?d=d+"[]":c=[c],Se.forEach(c,function(l){Se.isDate(l)?l=l.toISOString():Se.isObject(l)&&(l=JSON.stringify(l)),s.push(nn(d)+"="+nn(l))}))}),o=s.join("&")}if(o){var i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}});var an=f((Jc,sn)=>{"use strict";var Zi=L();function dt(){this.handlers=[]}dt.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};dt.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};dt.prototype.forEach=function(t){Zi.forEach(this.handlers,function(n){n!==null&&t(n)})};sn.exports=dt});var cn=f((zc,un)=>{"use strict";var ea=L();un.exports=function(t,r){ea.forEach(t,function(o,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(t[r]=o,delete t[s])})}});var ft=f((Kc,ln)=>{"use strict";ln.exports=function(t,r,n,o,s){return t.config=r,n&&(t.code=n),t.request=o,t.response=s,t.isAxiosError=!0,t.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}},t}});var pt=f((Gc,dn)=>{"use strict";var ta=ft();dn.exports=function(t,r,n,o,s){var i=new Error(t);return ta(i,r,n,o,s)}});var $t=f((Wc,fn)=>{"use strict";var ra=pt();fn.exports=function(t,r,n){var o=n.config.validateStatus;!n.status||!o||o(n.status)?t(n):r(ra("Request failed with status code "+n.status,n.config,null,n.request,n))}});var hn=f((Xc,pn)=>{"use strict";var ht=L();pn.exports=ht.isStandardBrowserEnv()?function(){return{write:function(r,n,o,s,i,u){var c=[];c.push(r+"="+encodeURIComponent(n)),ht.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),ht.isString(s)&&c.push("path="+s),ht.isString(i)&&c.push("domain="+i),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 gn=f((Yc,mn)=>{"use strict";mn.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}});var yn=f((Qc,vn)=>{"use strict";vn.exports=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}});var Ht=f((Zc,bn)=>{"use strict";var na=gn(),oa=yn();bn.exports=function(t,r){return t&&!na(r)?oa(t,r):r}});var wn=f((el,On)=>{"use strict";var Jt=L(),sa=["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"];On.exports=function(t){var r={},n,o,s;return t&&Jt.forEach(t.split(`
|
6
|
-
`),function(u){if(s=u.indexOf(":"),n=Jt.trim(u.substr(0,s)).toLowerCase(),o=Jt.trim(u.substr(s+1)),n){if(r[n]&&sa.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 En=f((tl,_n)=>{"use strict";var Cn=L();_n.exports=Cn.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function o(s){var i=s;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{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(i){var u=Cn.isString(i)?o(i):i;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}()});var Pe=f((rl,qn)=>{"use strict";function zt(e){this.message=e}zt.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};zt.prototype.__CANCEL__=!0;qn.exports=zt});var Tn=f((nl,An)=>{"use strict";var mt=L(),ia=$t(),aa=hn(),ua=lt(),ca=Ht(),la=wn(),da=En(),Kt=pt(),fa=je(),pa=Pe();An.exports=function(t){return new Promise(function(n,o){var s=t.data,i=t.headers,u=t.responseType,c;function d(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}mt.isFormData(s)&&delete i["Content-Type"];var a=new XMLHttpRequest;if(t.auth){var l=t.auth.username||"",p=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(l+":"+p)}var k=ca(t.baseURL,t.url);a.open(t.method.toUpperCase(),ua(k,t.params,t.paramsSerializer),!0),a.timeout=t.timeout;function Z(){if(!!a){var m="getAllResponseHeaders"in a?la(a.getAllResponseHeaders()):null,v=!u||u==="text"||u==="json"?a.responseText:a.response,w={data:v,status:a.status,statusText:a.statusText,headers:m,config:t,request:a};ia(function(S){n(S),d()},function(S){o(S),d()},w),a=null}}if("onloadend"in a?a.onloadend=Z:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(Z)},a.onabort=function(){!a||(o(Kt("Request aborted",t,"ECONNABORTED",a)),a=null)},a.onerror=function(){o(Kt("Network Error",t,null,a)),a=null},a.ontimeout=function(){var v=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",w=t.transitional||fa.transitional;t.timeoutErrorMessage&&(v=t.timeoutErrorMessage),o(Kt(v,t,w.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},mt.isStandardBrowserEnv()){var x=(t.withCredentials||da(k))&&t.xsrfCookieName?aa.read(t.xsrfCookieName):void 0;x&&(i[t.xsrfHeaderName]=x)}"setRequestHeader"in a&&mt.forEach(i,function(v,w){typeof s=="undefined"&&w.toLowerCase()==="content-type"?delete i[w]:a.setRequestHeader(w,v)}),mt.isUndefined(t.withCredentials)||(a.withCredentials=!!t.withCredentials),u&&u!=="json"&&(a.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&a.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(c=function(m){!a||(o(!m||m&&m.type?new pa("canceled"):m),a.abort(),a=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c))),s||(s=null),a.send(s)})}});var xn=f((ol,Rn)=>{var ke=1e3,Fe=ke*60,De=Fe*60,Oe=De*24,ha=Oe*7,ma=Oe*365.25;Rn.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return ga(e);if(r==="number"&&isFinite(e))return t.long?ya(e):va(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function ga(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*ma;case"weeks":case"week":case"w":return r*ha;case"days":case"day":case"d":return r*Oe;case"hours":case"hour":case"hrs":case"hr":case"h":return r*De;case"minutes":case"minute":case"mins":case"min":case"m":return r*Fe;case"seconds":case"second":case"secs":case"sec":case"s":return r*ke;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function va(e){var t=Math.abs(e);return t>=Oe?Math.round(e/Oe)+"d":t>=De?Math.round(e/De)+"h":t>=Fe?Math.round(e/Fe)+"m":t>=ke?Math.round(e/ke)+"s":e+"ms"}function ya(e){var t=Math.abs(e);return t>=Oe?gt(e,t,Oe,"day"):t>=De?gt(e,t,De,"hour"):t>=Fe?gt(e,t,Fe,"minute"):t>=ke?gt(e,t,ke,"second"):e+" ms"}function gt(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var Gt=f((sl,Sn)=>{function ba(e){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=o,r.enabled=i,r.humanize=xn(),r.destroy=d,Object.keys(e).forEach(a=>{r[a]=e[a]}),r.names=[],r.skips=[],r.formatters={};function t(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=t;function r(a){let l,p=null,k,Z;function x(...m){if(!x.enabled)return;let v=x,w=Number(new Date),b=w-(l||w);v.diff=b,v.prev=l,v.curr=w,l=w,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let S=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(me,X)=>{if(me==="%%")return"%";S++;let ee=r.formatters[X];if(typeof ee=="function"){let tt=m[S];me=ee.call(v,tt),m.splice(S,1),S--}return me}),r.formatArgs.call(v,m),(v.log||r.log).apply(v,m)}return x.namespace=a,x.useColors=r.useColors(),x.color=r.selectColor(a),x.extend=n,x.destroy=r.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(k!==r.namespaces&&(k=r.namespaces,Z=r.enabled(a)),Z),set:m=>{p=m}}),typeof r.init=="function"&&r.init(x),x}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,]+/),k=p.length;for(l=0;l<k;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 s(){let a=[...r.names.map(u),...r.skips.map(u).map(l=>"-"+l)].join(",");return r.enable(""),a}function i(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}Sn.exports=ba});var Pn=f((z,vt)=>{z.formatArgs=wa;z.save=Ca;z.load=_a;z.useColors=Oa;z.storage=Ea();z.destroy=(()=>{let e=!1;return()=>{e||(e=!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`."))}})();z.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 Oa(){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 wa(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+vt.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}z.log=console.debug||console.log||(()=>{});function Ca(e){try{e?z.storage.setItem("debug",e):z.storage.removeItem("debug")}catch{}}function _a(){let e;try{e=z.storage.getItem("debug")}catch{}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}function Ea(){try{return localStorage}catch{}}vt.exports=Gt()(z);var{formatters:qa}=vt.exports;qa.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var kn=f((il,jn)=>{"use strict";jn.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var Mn=f((al,Dn)=>{"use strict";var Aa=require("os"),Fn=require("tty"),Y=kn(),{env:q}=process,ce;Y("no-color")||Y("no-colors")||Y("color=false")||Y("color=never")?ce=0:(Y("color")||Y("colors")||Y("color=true")||Y("color=always"))&&(ce=1);"FORCE_COLOR"in q&&(q.FORCE_COLOR==="true"?ce=1:q.FORCE_COLOR==="false"?ce=0:ce=q.FORCE_COLOR.length===0?1:Math.min(parseInt(q.FORCE_COLOR,10),3));function Wt(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Xt(e,t){if(ce===0)return 0;if(Y("color=16m")||Y("color=full")||Y("color=truecolor"))return 3;if(Y("color=256"))return 2;if(e&&!t&&ce===void 0)return 0;let r=ce||0;if(q.TERM==="dumb")return r;if(process.platform==="win32"){let n=Aa.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in q)||q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(q.TEAMCITY_VERSION)?1:0;if(q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in q){let n=parseInt((q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(q.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(q.TERM)||"COLORTERM"in q?1:r}function Ta(e){let t=Xt(e,e&&e.isTTY);return Wt(t)}Dn.exports={supportsColor:Ta,stdout:Wt(Xt(!0,Fn.isatty(1))),stderr:Wt(Xt(!0,Fn.isatty(2)))}});var Bn=f((P,bt)=>{var Ra=require("tty"),yt=require("util");P.init=Da;P.log=ja;P.formatArgs=Sa;P.save=ka;P.load=Fa;P.useColors=xa;P.destroy=yt.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");P.colors=[6,2,3,4,5,1];try{let e=Mn();e&&(e.stderr||e).level>=2&&(P.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{}P.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(o,s)=>s.toUpperCase()),n=process.env[t];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),e[r]=n,e},{});function xa(){return"colors"in P.inspectOpts?Boolean(P.inspectOpts.colors):Ra.isatty(process.stderr.fd)}function Sa(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,o="[3"+(n<8?n:"8;5;"+n),s=` ${o};1m${t} [0m`;e[0]=s+e[0].split(`
|
5
|
+
`)}var yi=(...e)=>Ae("DEBUG",e);E.debug=yi;var bi=(...e)=>Ae("INFO",e);E.info=bi;var Oi=(...e)=>Ae("WARN",e);E.warn=Oi;var wi=(...e)=>{e.push(Ft()),Ae("TRACE",e)};E.trace=wi;var Ci=(...e)=>{e.push(Ft()),Ae("ERROR",e)};E.error=Ci;var _i=(...e)=>{e.push(Ft()),Ae("FATAL",e)};E.fatal=_i});var Jr=f(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.useCookie=B.getCookieWrapper=B.wipeCookies=B.setCookieWrapper=B.fromBase64=B.toBase64=void 0;var Ei=require("react"),qi="Thu, 01 Jan 1970 00:00:00 UTC",Vr=4e3,Ai=(e,t)=>e.match(new RegExp(`.{1,${t}}`,"g")),Ti=e=>Buffer.from(e).toString("base64");B.toBase64=Ti;var Ri=e=>Buffer.from(decodeURIComponent(e),"base64").toString();B.fromBase64=Ri;function it(e,t,r=1){let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${!t||r<0?qi:n.toUTCString()}`;document.cookie=`${e}=${t||""};${o};path=/`}function Dt({cname:e,cookieDocument:t}){let r=`${e}=`,n=t||typeof window!="undefined"&&document.cookie;if(!n||!(n==null?void 0:n.trim()))return;let o=n.split(";").map(s=>s.trim());for(let s of o)if(s.indexOf(r)===0)return s.substr(r.length,s.length)}function $r(e,t,r=1){let n=0;for(;Dt({cname:e+n});)it(e+n,null,-1),n+=1;if(!t)return;let o=(0,B.toBase64)(JSON.stringify(t)),s=[o];o.length>Vr&&(s=Ai(o,Vr));for(let i in s){let u=s[i];it(e+i,u,r)}}B.setCookieWrapper=$r;function Hr(e){let t=0;for(;;)if(Dt({cname:e+t}))it(e+t,void 0),t+=1;else return}B.wipeCookies=Hr;function zr({cname:e,cookieDocument:t,defaultValue:r}){let n="",o=0;for(;;){let s=Dt({cname:e+o,cookieDocument:t});if(!s){if(o===0)return r?(it(e,r),r):void 0;try{return JSON.parse((0,B.fromBase64)(n))}catch{Hr(e);return}}n+=s,o+=1}}B.getCookieWrapper=zr;function xi({key:e,defaultValue:t,cookieDocument:r}){let[n,o]=(0,Ei.useState)(zr({cname:e,defaultValue:t,cookieDocument:r}));return[n,s=>{$r(e,s,2),o(s)}]}B.useCookie=xi});var Wr=f(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.debounce=ue.sleep=ue.useDebounce=void 0;var Kr=require("react");function Si(e,t){let[r,n]=(0,Kr.useState)(e);return(0,Kr.useEffect)(()=>{let o=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(o)}},[t,e]),r}ue.useDebounce=Si;var Pi=e=>new Promise(t=>setTimeout(t,e));ue.sleep=Pi;var Gr={};function ji(e,{key:t,time:r}){let n=new Date().getTime(),o=Gr[t]||0;n-o<r||(Gr[t]=n,e())}ue.debounce=ji});var Xr=f(Te=>{"use strict";var Mt=Te&&Te.__awaiter||function(e,t,r,n){function o(s){return s instanceof r?s:new r(function(i){i(s)})}return new(r||(r=Promise))(function(s,i){function u(a){try{d(n.next(a))}catch(l){i(l)}}function c(a){try{d(n.throw(a))}catch(l){i(l)}}function d(a){a.done?s(a.value):o(a.value).then(u,c)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(Te,"__esModule",{value:!0});Te.callOpenApi=void 0;var ki=Jr(),Fi=Wr(),Di=({func:e,apiUrl:t,overrideAuth:r,refreshToken:n,logout:o,newDefaultApi:s})=>Mt(void 0,void 0,void 0,function*(){var i,u,c,d,a,l;let p,k,Z={basePath:t,baseOptions:{headers:{authorization:""}}},x=!!(0,ki.getCookieWrapper)({cname:"id_token"});if(r==null?void 0:r.id_token)Z.baseOptions.headers.authorization=`Bearer ${r==null?void 0:r.id_token}`;else if(x){let b=yield n();((i=b==null?void 0:b.jwt)===null||i===void 0?void 0:i.id_token)&&(Z.baseOptions.headers.authorization=`Bearer ${(u=b==null?void 0:b.jwt)===null||u===void 0?void 0:u.id_token}`)}let m=s(Z),g=0,w=3;for(;g<=w;){g+=1;try{let b=yield e(m);if(b.status<400){k=b.data;break}throw new Error(JSON.stringify(b.data)||b.statusText)}catch(b){let S=b,me=(c=S.response)===null||c===void 0?void 0:c.status,ve=((d=S.response)===null||d===void 0?void 0:d.data)||((a=S.response)===null||a===void 0?void 0:a.statusText)||((l=S.response)===null||l===void 0?void 0:l.status)||"ERROR";if(me===403||me===401)return o(),{error:S,data:void 0,datetime:new Date().getTime(),loading:!1,reFetch:()=>Mt(void 0,void 0,void 0,function*(){}),url:e.toString()};if(me!==500||g===w){p=Object.assign(Object.assign({},S),{message:ve});break}}yield(0,Fi.sleep)(2e3)}return{data:k,error:p,loading:!1,reFetch:()=>Mt(void 0,void 0,void 0,function*(){return e(m)}),url:e.toString(),datetime:new Date().getTime()}});Te.callOpenApi=Di});var Bt=f((Uc,Yr)=>{"use strict";Yr.exports=function(t,r){return function(){for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];return t.apply(r,o)}}});var L=f((Vc,en)=>{"use strict";var Mi=Bt(),Oe=Object.prototype.toString;function Nt(e){return Oe.call(e)==="[object Array]"}function Lt(e){return typeof e=="undefined"}function Bi(e){return e!==null&&!Lt(e)&&e.constructor!==null&&!Lt(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Ni(e){return Oe.call(e)==="[object ArrayBuffer]"}function Li(e){return typeof FormData!="undefined"&&e instanceof FormData}function Ii(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Ui(e){return typeof e=="string"}function Vi(e){return typeof e=="number"}function Qr(e){return e!==null&&typeof e=="object"}function at(e){if(Oe.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function $i(e){return Oe.call(e)==="[object Date]"}function Hi(e){return Oe.call(e)==="[object File]"}function zi(e){return Oe.call(e)==="[object Blob]"}function Zr(e){return Oe.call(e)==="[object Function]"}function Ji(e){return Qr(e)&&Zr(e.pipe)}function Ki(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function Gi(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Wi(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function It(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),Nt(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function Ut(){var e={};function t(o,s){at(e[s])&&at(o)?e[s]=Ut(e[s],o):at(o)?e[s]=Ut({},o):Nt(o)?e[s]=o.slice():e[s]=o}for(var r=0,n=arguments.length;r<n;r++)It(arguments[r],t);return e}function Xi(e,t,r){return It(t,function(o,s){r&&typeof o=="function"?e[s]=Mi(o,r):e[s]=o}),e}function Yi(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}en.exports={isArray:Nt,isArrayBuffer:Ni,isBuffer:Bi,isFormData:Li,isArrayBufferView:Ii,isString:Ui,isNumber:Vi,isObject:Qr,isPlainObject:at,isUndefined:Lt,isDate:$i,isFile:Hi,isBlob:zi,isFunction:Zr,isStream:Ji,isURLSearchParams:Ki,isStandardBrowserEnv:Wi,forEach:It,merge:Ut,extend:Xi,trim:Gi,stripBOM:Yi}});var ut=f(($c,rn)=>{"use strict";var Re=L();function tn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}rn.exports=function(t,r,n){if(!r)return t;var o;if(n)o=n(r);else if(Re.isURLSearchParams(r))o=r.toString();else{var s=[];Re.forEach(r,function(c,d){c===null||typeof c=="undefined"||(Re.isArray(c)?d=d+"[]":c=[c],Re.forEach(c,function(l){Re.isDate(l)?l=l.toISOString():Re.isObject(l)&&(l=JSON.stringify(l)),s.push(tn(d)+"="+tn(l))}))}),o=s.join("&")}if(o){var i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}});var on=f((Hc,nn)=>{"use strict";var Qi=L();function ct(){this.handlers=[]}ct.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};ct.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};ct.prototype.forEach=function(t){Qi.forEach(this.handlers,function(n){n!==null&&t(n)})};nn.exports=ct});var an=f((zc,sn)=>{"use strict";var Zi=L();sn.exports=function(t,r){Zi.forEach(t,function(o,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(t[r]=o,delete t[s])})}});var lt=f((Jc,un)=>{"use strict";un.exports=function(t,r,n,o,s){return t.config=r,n&&(t.code=n),t.request=o,t.response=s,t.isAxiosError=!0,t.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}},t}});var dt=f((Kc,cn)=>{"use strict";var ea=lt();cn.exports=function(t,r,n,o,s){var i=new Error(t);return ea(i,r,n,o,s)}});var Vt=f((Gc,ln)=>{"use strict";var ta=dt();ln.exports=function(t,r,n){var o=n.config.validateStatus;!n.status||!o||o(n.status)?t(n):r(ta("Request failed with status code "+n.status,n.config,null,n.request,n))}});var fn=f((Wc,dn)=>{"use strict";var ft=L();dn.exports=ft.isStandardBrowserEnv()?function(){return{write:function(r,n,o,s,i,u){var c=[];c.push(r+"="+encodeURIComponent(n)),ft.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),ft.isString(s)&&c.push("path="+s),ft.isString(i)&&c.push("domain="+i),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 hn=f((Xc,pn)=>{"use strict";pn.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}});var vn=f((Yc,mn)=>{"use strict";mn.exports=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}});var $t=f((Qc,gn)=>{"use strict";var ra=hn(),na=vn();gn.exports=function(t,r){return t&&!ra(r)?na(t,r):r}});var bn=f((Zc,yn)=>{"use strict";var Ht=L(),oa=["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"];yn.exports=function(t){var r={},n,o,s;return t&&Ht.forEach(t.split(`
|
6
|
+
`),function(u){if(s=u.indexOf(":"),n=Ht.trim(u.substr(0,s)).toLowerCase(),o=Ht.trim(u.substr(s+1)),n){if(r[n]&&oa.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 Cn=f((el,wn)=>{"use strict";var On=L();wn.exports=On.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function o(s){var i=s;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{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(i){var u=On.isString(i)?o(i):i;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}()});var xe=f((tl,_n)=>{"use strict";function zt(e){this.message=e}zt.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};zt.prototype.__CANCEL__=!0;_n.exports=zt});var qn=f((rl,En)=>{"use strict";var pt=L(),sa=Vt(),ia=fn(),aa=ut(),ua=$t(),ca=bn(),la=Cn(),Jt=dt(),da=Se(),fa=xe();En.exports=function(t){return new Promise(function(n,o){var s=t.data,i=t.headers,u=t.responseType,c;function d(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}pt.isFormData(s)&&delete i["Content-Type"];var a=new XMLHttpRequest;if(t.auth){var l=t.auth.username||"",p=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(l+":"+p)}var k=ua(t.baseURL,t.url);a.open(t.method.toUpperCase(),aa(k,t.params,t.paramsSerializer),!0),a.timeout=t.timeout;function Z(){if(!!a){var m="getAllResponseHeaders"in a?ca(a.getAllResponseHeaders()):null,g=!u||u==="text"||u==="json"?a.responseText:a.response,w={data:g,status:a.status,statusText:a.statusText,headers:m,config:t,request:a};sa(function(S){n(S),d()},function(S){o(S),d()},w),a=null}}if("onloadend"in a?a.onloadend=Z:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(Z)},a.onabort=function(){!a||(o(Jt("Request aborted",t,"ECONNABORTED",a)),a=null)},a.onerror=function(){o(Jt("Network Error",t,null,a)),a=null},a.ontimeout=function(){var g=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",w=t.transitional||da.transitional;t.timeoutErrorMessage&&(g=t.timeoutErrorMessage),o(Jt(g,t,w.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},pt.isStandardBrowserEnv()){var x=(t.withCredentials||la(k))&&t.xsrfCookieName?ia.read(t.xsrfCookieName):void 0;x&&(i[t.xsrfHeaderName]=x)}"setRequestHeader"in a&&pt.forEach(i,function(g,w){typeof s=="undefined"&&w.toLowerCase()==="content-type"?delete i[w]:a.setRequestHeader(w,g)}),pt.isUndefined(t.withCredentials)||(a.withCredentials=!!t.withCredentials),u&&u!=="json"&&(a.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&a.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(c=function(m){!a||(o(!m||m&&m.type?new fa("canceled"):m),a.abort(),a=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c))),s||(s=null),a.send(s)})}});var Tn=f((nl,An)=>{var Pe=1e3,je=Pe*60,ke=je*60,we=ke*24,pa=we*7,ha=we*365.25;An.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return ma(e);if(r==="number"&&isFinite(e))return t.long?ga(e):va(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function ma(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*ha;case"weeks":case"week":case"w":return r*pa;case"days":case"day":case"d":return r*we;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ke;case"minutes":case"minute":case"mins":case"min":case"m":return r*je;case"seconds":case"second":case"secs":case"sec":case"s":return r*Pe;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function va(e){var t=Math.abs(e);return t>=we?Math.round(e/we)+"d":t>=ke?Math.round(e/ke)+"h":t>=je?Math.round(e/je)+"m":t>=Pe?Math.round(e/Pe)+"s":e+"ms"}function ga(e){var t=Math.abs(e);return t>=we?ht(e,t,we,"day"):t>=ke?ht(e,t,ke,"hour"):t>=je?ht(e,t,je,"minute"):t>=Pe?ht(e,t,Pe,"second"):e+" ms"}function ht(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var Kt=f((ol,Rn)=>{function ya(e){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=o,r.enabled=i,r.humanize=Tn(),r.destroy=d,Object.keys(e).forEach(a=>{r[a]=e[a]}),r.names=[],r.skips=[],r.formatters={};function t(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=t;function r(a){let l,p=null,k,Z;function x(...m){if(!x.enabled)return;let g=x,w=Number(new Date),b=w-(l||w);g.diff=b,g.prev=l,g.curr=w,l=w,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let S=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(ve,X)=>{if(ve==="%%")return"%";S++;let ee=r.formatters[X];if(typeof ee=="function"){let Ze=m[S];ve=ee.call(g,Ze),m.splice(S,1),S--}return ve}),r.formatArgs.call(g,m),(g.log||r.log).apply(g,m)}return x.namespace=a,x.useColors=r.useColors(),x.color=r.selectColor(a),x.extend=n,x.destroy=r.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(k!==r.namespaces&&(k=r.namespaces,Z=r.enabled(a)),Z),set:m=>{p=m}}),typeof r.init=="function"&&r.init(x),x}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,]+/),k=p.length;for(l=0;l<k;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 s(){let a=[...r.names.map(u),...r.skips.map(u).map(l=>"-"+l)].join(",");return r.enable(""),a}function i(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}Rn.exports=ya});var xn=f((J,mt)=>{J.formatArgs=Oa;J.save=wa;J.load=Ca;J.useColors=ba;J.storage=_a();J.destroy=(()=>{let e=!1;return()=>{e||(e=!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`."))}})();J.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 ba(){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 Oa(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+mt.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}J.log=console.debug||console.log||(()=>{});function wa(e){try{e?J.storage.setItem("debug",e):J.storage.removeItem("debug")}catch{}}function Ca(){let e;try{e=J.storage.getItem("debug")}catch{}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}function _a(){try{return localStorage}catch{}}mt.exports=Kt()(J);var{formatters:Ea}=mt.exports;Ea.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Pn=f((sl,Sn)=>{"use strict";Sn.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var Fn=f((il,kn)=>{"use strict";var qa=require("os"),jn=require("tty"),Y=Pn(),{env:q}=process,ce;Y("no-color")||Y("no-colors")||Y("color=false")||Y("color=never")?ce=0:(Y("color")||Y("colors")||Y("color=true")||Y("color=always"))&&(ce=1);"FORCE_COLOR"in q&&(q.FORCE_COLOR==="true"?ce=1:q.FORCE_COLOR==="false"?ce=0:ce=q.FORCE_COLOR.length===0?1:Math.min(parseInt(q.FORCE_COLOR,10),3));function Gt(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Wt(e,t){if(ce===0)return 0;if(Y("color=16m")||Y("color=full")||Y("color=truecolor"))return 3;if(Y("color=256"))return 2;if(e&&!t&&ce===void 0)return 0;let r=ce||0;if(q.TERM==="dumb")return r;if(process.platform==="win32"){let n=qa.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in q)||q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(q.TEAMCITY_VERSION)?1:0;if(q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in q){let n=parseInt((q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(q.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(q.TERM)||"COLORTERM"in q?1:r}function Aa(e){let t=Wt(e,e&&e.isTTY);return Gt(t)}kn.exports={supportsColor:Aa,stdout:Gt(Wt(!0,jn.isatty(1))),stderr:Gt(Wt(!0,jn.isatty(2)))}});var Mn=f((P,gt)=>{var Ta=require("tty"),vt=require("util");P.init=Fa;P.log=Pa;P.formatArgs=xa;P.save=ja;P.load=ka;P.useColors=Ra;P.destroy=vt.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");P.colors=[6,2,3,4,5,1];try{let e=Fn();e&&(e.stderr||e).level>=2&&(P.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{}P.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(o,s)=>s.toUpperCase()),n=process.env[t];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),e[r]=n,e},{});function Ra(){return"colors"in P.inspectOpts?Boolean(P.inspectOpts.colors):Ta.isatty(process.stderr.fd)}function xa(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,o="[3"+(n<8?n:"8;5;"+n),s=` ${o};1m${t} [0m`;e[0]=s+e[0].split(`
|
7
7
|
`).join(`
|
8
|
-
`+s),e.push(o+"m+"+
|
9
|
-
`)}function
|
10
|
-
`).map(t=>t.trim()).join(" ")};Nn.O=function(e){return this.inspectOpts.colors=this.useColors,yt.inspect(e,this.inspectOpts)}});var Ln=f((ul,Yt)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?Yt.exports=Pn():Yt.exports=Bn()});var Un=f((cl,In)=>{var ze;In.exports=function(){if(!ze){try{ze=Ln()("follow-redirects")}catch{}typeof ze!="function"&&(ze=function(){})}ze.apply(null,arguments)}});var rr=f((ll,tr)=>{var we=require("url"),Qt=we.URL,Ma=require("http"),Na=require("https"),Vn=require("stream").Writable,Ba=require("assert"),$n=Un(),Ce=["abort","aborted","connect","error","socket","timeout"],Zt=Object.create(null);Ce.forEach(function(e){Zt[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var Hn=Ot("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),La=Ot("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Ia=Ot("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Ua=Ot("ERR_STREAM_WRITE_AFTER_END","write after end");function K(e,t){Vn.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}K.prototype=Object.create(Vn.prototype);K.prototype.abort=function(){Kn(this._currentRequest),this.emit("abort")};K.prototype.write=function(e,t,r){if(this._ending)throw new Ua;if(!(typeof e=="string"||typeof e=="object"&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(typeof t=="function"&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Ia),this.abort())};K.prototype.end=function(e,t,r){if(typeof e=="function"?(r=e,e=t=null):typeof t=="function"&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,o=this._currentRequest;this.write(e,t,function(){n._ended=!0,o.end(null,null,r)}),this._ending=!0}};K.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};K.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};K.prototype.setTimeout=function(e,t){var r=this;function n(i){i.setTimeout(e),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function o(i){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),n(i)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){K.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(K.prototype,e,{get:function(){return this._currentRequest[e]}})});K.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};K.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=we.format(this._options),n._redirectable=this;for(var o=0;o<Ce.length;o++)n.on(Ce[o],Zt[Ce[o]]);if(this._isRedirect){var s=0,i=this,u=this._requestBodyBuffers;(function c(d){if(n===i._currentRequest)if(d)i.emit("error",d);else if(s<u.length){var a=u[s++];n.finished||n.write(a.data,a.encoding,c)}else i._ended&&n.end()})()}};K.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(r&&this._options.followRedirects!==!1&&t>=300&&t<400){if(Kn(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new La);return}((t===301||t===302)&&this._options.method==="POST"||t===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),o=we.parse(this._currentUrl),s=n||o.host,i=/^\w+:/.test(r)?this._currentUrl:we.format(Object.assign(o,{host:s})),u;try{u=we.resolve(i,r)}catch(a){this.emit("error",new Hn(a));return}$n("redirecting to",u),this._isRedirect=!0;var c=we.parse(u);if(Object.assign(this._options,c),c.host===s||$a(c.host,s)||er(/^authorization$/i,this._options.headers),typeof this._options.beforeRedirect=="function"){var d={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,d)}catch(a){this.emit("error",a);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(a){this.emit("error",new Hn(a))}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]};function Jn(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024},r={};return Object.keys(e).forEach(function(n){var o=n+":",s=r[o]=e[n],i=t[n]=Object.create(s);function u(d,a,l){if(typeof d=="string"){var p=d;try{d=zn(new Qt(p))}catch{d=we.parse(p)}}else Qt&&d instanceof Qt?d=zn(d):(l=a,a=d,d={protocol:o});return typeof a=="function"&&(l=a,a=null),a=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},d,a),a.nativeProtocols=r,Ba.equal(a.protocol,o,"protocol mismatch"),$n("options",a),new K(a,l)}function c(d,a,l){var p=i.request(d,a,l);return p.end(),p}Object.defineProperties(i,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function Va(){}function zn(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return e.port!==""&&(t.port=Number(e.port)),t}function er(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r=="undefined"?void 0:String(r).trim()}function Ot(e,t){function r(n){Error.captureStackTrace(this,this.constructor),n?(this.message=t+": "+n.message,this.cause=n):this.message=t}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+e+"]",r.prototype.code=e,r}function Kn(e){for(var t=0;t<Ce.length;t++)e.removeListener(Ce[t],Zt[Ce[t]]);e.on("error",Va),e.abort()}function $a(e,t){let r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}tr.exports=Jn({http:Ma,https:Na});tr.exports.wrap=Jn});var wt=f((dl,Gn)=>{Gn.exports={version:"0.24.0"}});var eo=f((fl,Zn)=>{"use strict";var Ke=L(),Wn=$t(),Ha=Ht(),Ja=lt(),za=require("http"),Ka=require("https"),Ga=rr().http,Wa=rr().https,Xn=require("url"),Xa=require("zlib"),Ya=wt().version,Ct=pt(),nr=ft(),Qa=je(),Za=Pe(),Yn=/https:?/;function Qn(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(s){s.headers.host=s.host,Qn(s,t,s.href)}}Zn.exports=function(t){return new Promise(function(n,o){var s;function i(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}var u=function(g){i(),n(g)},c=function(g){i(),o(g)},d=t.data,a=t.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/"+Ya,d&&!Ke.isStream(d)){if(!Buffer.isBuffer(d))if(Ke.isArrayBuffer(d))d=Buffer.from(new Uint8Array(d));else if(Ke.isString(d))d=Buffer.from(d,"utf-8");else return c(Ct("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));l["content-length"]||(a["Content-Length"]=d.length)}var p=void 0;if(t.auth){var k=t.auth.username||"",Z=t.auth.password||"";p=k+":"+Z}var x=Ha(t.baseURL,t.url),m=Xn.parse(x),v=m.protocol||"http:";if(!p&&m.auth){var w=m.auth.split(":"),b=w[0]||"",S=w[1]||"";p=b+":"+S}p&&l.authorization&&delete a[l.authorization];var Ee=Yn.test(v),me=Ee?t.httpsAgent:t.httpAgent,X={path:Ja(m.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:a,agent:me,agents:{http:t.httpAgent,https:t.httpsAgent},auth:p};t.socketPath?X.socketPath=t.socketPath:(X.hostname=m.hostname,X.port=m.port);var ee=t.proxy;if(!ee&&ee!==!1){var tt=v.slice(0,-1)+"_proxy",vr=process.env[tt]||process.env[tt.toUpperCase()];if(vr){var He=Xn.parse(vr),yr=process.env.no_proxy||process.env.NO_PROXY,br=!0;if(yr){var hs=yr.split(",").map(function(g){return g.trim()});br=!hs.some(function(g){return g?g==="*"||g[0]==="."&&m.hostname.substr(m.hostname.length-g.length)===g?!0:m.hostname===g:!1})}if(br&&(ee={host:He.hostname,port:He.port,protocol:He.protocol},He.auth)){var Or=He.auth.split(":");ee.auth={username:Or[0],password:Or[1]}}}}ee&&(X.headers.host=m.hostname+(m.port?":"+m.port:""),Qn(X,ee,v+"//"+m.hostname+(m.port?":"+m.port:"")+X.path));var rt,wr=Ee&&(ee?Yn.test(ee.protocol):!0);t.transport?rt=t.transport:t.maxRedirects===0?rt=wr?Ka:za:(t.maxRedirects&&(X.maxRedirects=t.maxRedirects),rt=wr?Wa:Ga),t.maxBodyLength>-1&&(X.maxBodyLength=t.maxBodyLength),t.insecureHTTPParser&&(X.insecureHTTPParser=t.insecureHTTPParser);var B=rt.request(X,function(g){if(!B.aborted){var ge=g,nt=g.req||B;if(g.statusCode!==204&&nt.method!=="HEAD"&&t.decompress!==!1)switch(g.headers["content-encoding"]){case"gzip":case"compress":case"deflate":ge=ge.pipe(Xa.createUnzip()),delete g.headers["content-encoding"];break}var ot={status:g.statusCode,statusText:g.statusMessage,headers:g.headers,config:t,request:nt};if(t.responseType==="stream")ot.data=ge,Wn(u,c,ot);else{var Cr=[],_r=0;ge.on("data",function(te){Cr.push(te),_r+=te.length,t.maxContentLength>-1&&_r>t.maxContentLength&&(ge.destroy(),c(Ct("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,nt)))}),ge.on("error",function(te){B.aborted||c(nr(te,t,null,nt))}),ge.on("end",function(){var te=Buffer.concat(Cr);t.responseType!=="arraybuffer"&&(te=te.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(te=Ke.stripBOM(te))),ot.data=te,Wn(u,c,ot)})}}});if(B.on("error",function(g){B.aborted&&g.code!=="ERR_FR_TOO_MANY_REDIRECTS"||c(nr(g,t,null,B))}),t.timeout){var kt=parseInt(t.timeout,10);if(isNaN(kt)){c(Ct("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",B));return}B.setTimeout(kt,function(){B.abort();var g=t.transitional||Qa.transitional;c(Ct("timeout of "+kt+"ms exceeded",t,g.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",B))})}(t.cancelToken||t.signal)&&(s=function(V){B.aborted||(B.abort(),c(!V||V&&V.type?new Za("canceled"):V))},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s))),Ke.isStream(d)?d.on("error",function(g){c(nr(g,t,null,B))}).pipe(B):B.end(d)})}});var je=f((pl,no)=>{"use strict";var j=L(),to=cn(),eu=ft(),tu={"Content-Type":"application/x-www-form-urlencoded"};function ro(e,t){!j.isUndefined(e)&&j.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function ru(){var e;return typeof XMLHttpRequest!="undefined"?e=Tn():typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]"&&(e=eo()),e}function nu(e,t,r){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var _t={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:ru(),transformRequest:[function(t,r){return to(r,"Accept"),to(r,"Content-Type"),j.isFormData(t)||j.isArrayBuffer(t)||j.isBuffer(t)||j.isStream(t)||j.isFile(t)||j.isBlob(t)?t:j.isArrayBufferView(t)?t.buffer:j.isURLSearchParams(t)?(ro(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):j.isObject(t)||r&&r["Content-Type"]==="application/json"?(ro(r,"application/json"),nu(t)):t}],transformResponse:[function(t){var r=this.transitional||_t.transitional,n=r&&r.silentJSONParsing,o=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||o&&j.isString(t)&&t.length)try{return JSON.parse(t)}catch(i){if(s)throw i.name==="SyntaxError"?eu(i,this,"E_JSON_PARSE"):i}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};j.forEach(["delete","get","head"],function(t){_t.headers[t]={}});j.forEach(["post","put","patch"],function(t){_t.headers[t]=j.merge(tu)});no.exports=_t});var so=f((hl,oo)=>{"use strict";var ou=L(),su=je();oo.exports=function(t,r,n){var o=this||su;return ou.forEach(n,function(i){t=i.call(o,t,r)}),t}});var or=f((ml,io)=>{"use strict";io.exports=function(t){return!!(t&&t.__CANCEL__)}});var co=f((gl,uo)=>{"use strict";var ao=L(),sr=so(),iu=or(),au=je(),uu=Pe();function ir(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new uu("canceled")}uo.exports=function(t){ir(t),t.headers=t.headers||{},t.data=sr.call(t,t.data,t.headers,t.transformRequest),t.headers=ao.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),ao.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var r=t.adapter||au.adapter;return r(t).then(function(o){return ir(t),o.data=sr.call(t,o.data,o.headers,t.transformResponse),o},function(o){return iu(o)||(ir(t),o&&o.response&&(o.response.data=sr.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})}});var ar=f((vl,lo)=>{"use strict";var G=L();lo.exports=function(t,r){r=r||{};var n={};function o(a,l){return G.isPlainObject(a)&&G.isPlainObject(l)?G.merge(a,l):G.isPlainObject(l)?G.merge({},l):G.isArray(l)?l.slice():l}function s(a){if(G.isUndefined(r[a])){if(!G.isUndefined(t[a]))return o(void 0,t[a])}else return o(t[a],r[a])}function i(a){if(!G.isUndefined(r[a]))return o(void 0,r[a])}function u(a){if(G.isUndefined(r[a])){if(!G.isUndefined(t[a]))return o(void 0,t[a])}else return o(void 0,r[a])}function c(a){if(a in r)return o(t[a],r[a]);if(a in t)return o(void 0,t[a])}var d={url:i,method:i,data:i,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:c};return G.forEach(Object.keys(t).concat(Object.keys(r)),function(l){var p=d[l]||s,k=p(l);G.isUndefined(k)&&p!==c||(n[l]=k)}),n}});var ho=f((yl,po)=>{"use strict";var cu=wt().version,ur={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){ur[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var fo={};ur.transitional=function(t,r,n){function o(s,i){return"[Axios v"+cu+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return function(s,i,u){if(t===!1)throw new Error(o(i," has been removed"+(r?" in "+r:"")));return r&&!fo[i]&&(fo[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,u):!0}};function lu(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var s=n[o],i=t[s];if(i){var u=e[s],c=u===void 0||i(u,s,e);if(c!==!0)throw new TypeError("option "+s+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+s)}}po.exports={assertOptions:lu,validators:ur}});var Oo=f((bl,bo)=>{"use strict";var mo=L(),du=lt(),go=an(),vo=co(),Et=ar(),yo=ho(),Me=yo.validators;function Ge(e){this.defaults=e,this.interceptors={request:new go,response:new go}}Ge.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Et(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&yo.assertOptions(r,{silentJSONParsing:Me.transitional(Me.boolean),forcedJSONParsing:Me.transitional(Me.boolean),clarifyTimeoutError:Me.transitional(Me.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(o=o&&p.synchronous,n.unshift(p.fulfilled,p.rejected))});var s=[];this.interceptors.response.forEach(function(p){s.push(p.fulfilled,p.rejected)});var i;if(!o){var u=[vo,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(s),i=Promise.resolve(t);u.length;)i=i.then(u.shift(),u.shift());return i}for(var c=t;n.length;){var d=n.shift(),a=n.shift();try{c=d(c)}catch(l){a(l);break}}try{i=vo(c)}catch(l){return Promise.reject(l)}for(;s.length;)i=i.then(s.shift(),s.shift());return i};Ge.prototype.getUri=function(t){return t=Et(this.defaults,t),du(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};mo.forEach(["delete","get","head","options"],function(t){Ge.prototype[t]=function(r,n){return this.request(Et(n||{},{method:t,url:r,data:(n||{}).data}))}});mo.forEach(["post","put","patch"],function(t){Ge.prototype[t]=function(r,n,o){return this.request(Et(o||{},{method:t,url:r,data:n}))}});bo.exports=Ge});var Co=f((Ol,wo)=>{"use strict";var fu=Pe();function Ne(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(o){t=o});var r=this;this.promise.then(function(n){if(!!r._listeners){var o,s=r._listeners.length;for(o=0;o<s;o++)r._listeners[o](n);r._listeners=null}}),this.promise.then=function(n){var o,s=new Promise(function(i){r.subscribe(i),o=i}).then(n);return s.cancel=function(){r.unsubscribe(o)},s},e(function(o){r.reason||(r.reason=new fu(o),t(r.reason))})}Ne.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Ne.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};Ne.prototype.unsubscribe=function(t){if(!!this._listeners){var r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}};Ne.source=function(){var t,r=new Ne(function(o){t=o});return{token:r,cancel:t}};wo.exports=Ne});var Eo=f((wl,_o)=>{"use strict";_o.exports=function(t){return function(n){return t.apply(null,n)}}});var Ao=f((Cl,qo)=>{"use strict";qo.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var xo=f((_l,cr)=>{"use strict";var To=L(),pu=Bt(),qt=Oo(),hu=ar(),mu=je();function Ro(e){var t=new qt(e),r=pu(qt.prototype.request,t);return To.extend(r,qt.prototype,t),To.extend(r,t),r.create=function(o){return Ro(hu(e,o))},r}var ne=Ro(mu);ne.Axios=qt;ne.Cancel=Pe();ne.CancelToken=Co();ne.isCancel=or();ne.VERSION=wt().version;ne.all=function(t){return Promise.all(t)};ne.spread=Eo();ne.isAxiosError=Ao();cr.exports=ne;cr.exports.default=ne});var lr=f((El,So)=>{So.exports=xo()});var ko=f(W=>{var gu=W&&W.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(W,"__esModule",{value:!0});W.RequiredError=W.BaseAPI=W.COLLECTION_FORMATS=W.BASE_PATH=void 0;var vu=gu(lr());W.BASE_PATH="https://api.analytica.click".replace(/\/+$/,"");W.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:" ",pipes:"|"};var Po=class{constructor(t,r=W.BASE_PATH,n=vu.default){this.basePath=r,this.axios=n,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}};W.BaseAPI=Po;var jo=class extends Error{constructor(t,r){super(r);this.field=t,this.name="RequiredError"}};W.RequiredError=jo});var Do=f(h=>{var yu=h&&h.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),bu=h&&h.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Ou=h&&h.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&yu(t,e,r);return bu(t,e),t},A=h&&h.__awaiter||function(e,t,r,n){function o(s){return s instanceof r?s:new r(function(i){i(s)})}return new(r||(r=Promise))(function(s,i){function u(a){try{d(n.next(a))}catch(l){i(l)}}function c(a){try{d(n.throw(a))}catch(l){i(l)}}function d(a){a.done?s(a.value):o(a.value).then(u,c)}d((n=n.apply(e,t||[])).next())})},wu=h&&h.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(h,"__esModule",{value:!0});h.DefaultApi=h.DefaultApiFactory=h.DefaultApiFp=h.DefaultApiAxiosParamCreator=h.Sentiment=void 0;var T=Ou(require("url")),se=wu(lr()),y=ko(),Cu;(function(e){e.Good="good",e.Bad="bad",e.Neutral="neutral"})(Cu=h.Sentiment||(h.Sentiment={}));var _u=function(e){return{accountGet:(t={})=>A(this,void 0,void 0,function*(){let r="/account",n=T.parse(r,!0),o;e&&(o=e.baseOptions);let s=Object.assign(Object.assign({method:"GET"},o),t),i={},u={};if(e&&e.apiKey){let d=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;i.authorization=d}n.query=Object.assign(Object.assign(Object.assign({},n.query),u),t.query),delete n.search;let c=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},i),c),t.headers),{url:T.format(n),options:s}}),bingIntegrationPost:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new y.RequiredError("bingIntegration","Required parameter bingIntegration was null or undefined when calling bingIntegrationPost.");let n="/account/integrations/bing",o=T.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:T.format(o),options:i}}),getTrackingAllSites:(t,r,n={})=>A(this,void 0,void 0,function*(){if(t==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",s=T.parse(o,!0),i;e&&(i=e.baseOptions);let u=Object.assign(Object.assign({method:"GET"},i),n),c={},d={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;c.authorization=l}t!==void 0&&(d.minDate=t),r!==void 0&&(d.maxDate=r),s.query=Object.assign(Object.assign(Object.assign({},s.query),d),n.query),delete s.search;let a=i&&i.headers?i.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},c),a),n.headers),{url:T.format(s),options:u}}),getTrackingSite:(t,r,n,o={})=>A(this,void 0,void 0,function*(){if(t==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 s="/site/tracking/{id}".replace("{id}",encodeURIComponent(String(t))),i=T.parse(s,!0),u;e&&(u=e.baseOptions);let c=Object.assign(Object.assign({method:"GET"},u),o),d={},a={};if(e&&e.apiKey){let p=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;d.authorization=p}r!==void 0&&(a.minDate=r),n!==void 0&&(a.maxDate=n),i.query=Object.assign(Object.assign(Object.assign({},i.query),a),o.query),delete i.search;let l=u&&u.headers?u.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},d),l),o.headers),{url:T.format(i),options:c}}),googleIntegrationPost:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new y.RequiredError("googleIntegration","Required parameter googleIntegration was null or undefined when calling googleIntegrationPost.");let n="/account/integrations/google",o=T.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:T.format(o),options:i}}),postError:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new y.RequiredError("postError","Required parameter postError was null or undefined when calling postError.");let n="/error",o=T.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),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=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:T.format(o),options:i}}),postPageTrack:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new y.RequiredError("postSiteTrack","Required parameter postSiteTrack was null or undefined when calling postPageTrack.");let n="/site",o=T.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),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=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:T.format(o),options:i}}),putFeedback:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new y.RequiredError("feedbackPutData","Required parameter feedbackPutData was null or undefined when calling putFeedback.");let n="/feedback",o=T.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"PUT"},s),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=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:T.format(o),options:i}}),sitePost:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new y.RequiredError("postAccount","Required parameter postAccount was null or undefined when calling sitePost.");let n="/account/site",o=T.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:T.format(o),options:i}})}};h.DefaultApiAxiosParamCreator=_u;var Eu=function(e){return{accountGet(t){return A(this,void 0,void 0,function*(){let r=yield(0,h.DefaultApiAxiosParamCreator)(e).accountGet(t);return(n=se.default,o=y.BASE_PATH)=>{let s=Object.assign(Object.assign({},r.options),{url:o+r.url});return n.request(s)}})},bingIntegrationPost(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).bingIntegrationPost(t,r);return(o=se.default,s=y.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},getTrackingAllSites(t,r,n){return A(this,void 0,void 0,function*(){let o=yield(0,h.DefaultApiAxiosParamCreator)(e).getTrackingAllSites(t,r,n);return(s=se.default,i=y.BASE_PATH)=>{let u=Object.assign(Object.assign({},o.options),{url:i+o.url});return s.request(u)}})},getTrackingSite(t,r,n,o){return A(this,void 0,void 0,function*(){let s=yield(0,h.DefaultApiAxiosParamCreator)(e).getTrackingSite(t,r,n,o);return(i=se.default,u=y.BASE_PATH)=>{let c=Object.assign(Object.assign({},s.options),{url:u+s.url});return i.request(c)}})},googleIntegrationPost(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).googleIntegrationPost(t,r);return(o=se.default,s=y.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},postError(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).postError(t,r);return(o=se.default,s=y.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},postPageTrack(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).postPageTrack(t,r);return(o=se.default,s=y.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},putFeedback(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).putFeedback(t,r);return(o=se.default,s=y.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},sitePost(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).sitePost(t,r);return(o=se.default,s=y.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})}}};h.DefaultApiFp=Eu;var qu=function(e,t,r){return{accountGet(n){return(0,h.DefaultApiFp)(e).accountGet(n).then(o=>o(r,t))},bingIntegrationPost(n,o){return(0,h.DefaultApiFp)(e).bingIntegrationPost(n,o).then(s=>s(r,t))},getTrackingAllSites(n,o,s){return(0,h.DefaultApiFp)(e).getTrackingAllSites(n,o,s).then(i=>i(r,t))},getTrackingSite(n,o,s,i){return(0,h.DefaultApiFp)(e).getTrackingSite(n,o,s,i).then(u=>u(r,t))},googleIntegrationPost(n,o){return(0,h.DefaultApiFp)(e).googleIntegrationPost(n,o).then(s=>s(r,t))},postError(n,o){return(0,h.DefaultApiFp)(e).postError(n,o).then(s=>s(r,t))},postPageTrack(n,o){return(0,h.DefaultApiFp)(e).postPageTrack(n,o).then(s=>s(r,t))},putFeedback(n,o){return(0,h.DefaultApiFp)(e).putFeedback(n,o).then(s=>s(r,t))},sitePost(n,o){return(0,h.DefaultApiFp)(e).sitePost(n,o).then(s=>s(r,t))}}};h.DefaultApiFactory=qu;var Fo=class extends y.BaseAPI{accountGet(t){return(0,h.DefaultApiFp)(this.configuration).accountGet(t).then(r=>r(this.axios,this.basePath))}bingIntegrationPost(t,r){return(0,h.DefaultApiFp)(this.configuration).bingIntegrationPost(t,r).then(n=>n(this.axios,this.basePath))}getTrackingAllSites(t,r,n){return(0,h.DefaultApiFp)(this.configuration).getTrackingAllSites(t,r,n).then(o=>o(this.axios,this.basePath))}getTrackingSite(t,r,n,o){return(0,h.DefaultApiFp)(this.configuration).getTrackingSite(t,r,n,o).then(s=>s(this.axios,this.basePath))}googleIntegrationPost(t,r){return(0,h.DefaultApiFp)(this.configuration).googleIntegrationPost(t,r).then(n=>n(this.axios,this.basePath))}postError(t,r){return(0,h.DefaultApiFp)(this.configuration).postError(t,r).then(n=>n(this.axios,this.basePath))}postPageTrack(t,r){return(0,h.DefaultApiFp)(this.configuration).postPageTrack(t,r).then(n=>n(this.axios,this.basePath))}putFeedback(t,r){return(0,h.DefaultApiFp)(this.configuration).putFeedback(t,r).then(n=>n(this.axios,this.basePath))}sitePost(t,r){return(0,h.DefaultApiFp)(this.configuration).sitePost(t,r).then(n=>n(this.axios,this.basePath))}};h.DefaultApi=Fo});var Uo=f(Tt=>{"use strict";Tt.__esModule=!0;Tt.createRequires=void 0;var Pu=function(e){return typeof e=="function"?e():e||{}},ju=function(e){var t=!1;return function(r){if(t||(e=Pu(e),t=!0),!(r in e))throw new Error("Could not require '"+r+"'. '"+r+"' does not exist in dependencies.");return e[r]}};Tt.createRequires=ju});var Vo=f(pr=>{"use strict";pr.__esModule=!0;var ku=function(e){var t={};return function(r){return r in t||(t[r]=e(r)),t[r]}};pr.default=ku});var hr=f(Le=>{"use strict";Le.__esModule=!0;Le.InternalServerError=Le.OK=void 0;Le.OK=200;Le.InternalServerError=500});var $o=f(de=>{"use strict";de.__esModule=!0;de.DONE=de.OPENED=de.UNSENT=void 0;de.UNSENT=0;de.OPENED=1;de.DONE=4});var Ho=f(mr=>{"use strict";mr.__esModule=!0;var Fu=hr(),Du=$o(),Mu=function(e){return new Promise(function(t,r){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState===Du.DONE&&(n.status===Fu.OK?t(n.responseText):r(new Error("HTTP Error Response: "+n.status+" "+n.statusText+" ("+e+")")))},n.open("GET",e,!0),n.send()})};mr.default=Mu});var Go=f(Ye=>{"use strict";var Jo=Ye&&Ye.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Ye.__esModule=!0;var zo=require("http"),Ko=require("https"),Nu=hr(),Bu=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return typeof e!="string"?{on:function(n,o){o(new Error("URL must be a string."))}}:e.indexOf("https://")===0?Ko.get.apply(Ko,Jo([e],t,!1)):zo.get.apply(zo,Jo([e],t,!1))},Lu=function(e){return new Promise(function(t,r){Bu(e,function(n){if(n.statusCode!==Nu.OK)return r(new Error("HTTP Error Response: "+n.statusCode+" "+n.statusMessage+" ("+e+")"));var o=null;n.on("data",function(s){if(o===null){o=s;return}o+=s}),n.on("end",function(){return t(o)})}).on("error",r)})};Ye.default=Lu});var Wo=f(Rt=>{"use strict";Rt.__esModule=!0;Rt.createLoadRemoteModule=void 0;var Iu=Vo(),Uu=Ho(),Vu=Go(),$u=typeof window!="undefined"&&typeof window.document!="undefined",Hu=$u?Uu.default:Vu.default,Ju=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},zu=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,o=r||Ju,s=n||Hu;return(0,Iu.default)(function(i){return s(i).then(function(u){var c={},d={exports:c},a=new Function("require","module","exports",u);return a(o,d,c),d.exports})})};Rt.createLoadRemoteModule=zu});var Xo=f(xt=>{"use strict";xt.__esModule=!0;xt.createRequires=void 0;var Ku=function(e){return function(t){var r=e||{};if(!(t in r))throw new Error("Could not require '"+t+"'. '"+t+"' does not exist in dependencies.");return r[t]}};xt.createRequires=Ku});var Qo=f(fe=>{"use strict";var Yo=fe&&fe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});fe.__esModule=!0;fe.createRequires=fe.default=void 0;var Gu=Wo();Yo(fe,Gu,"createLoadRemoteModule","default");var Wu=Xo();Yo(fe,Wu,"createRequires")});var es=f(Ie=>{"use strict";var Xu=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Ie.__esModule=!0;Ie.createUseRemoteComponent=void 0;var Zo=require("react"),Yu=Xu(Qo()),Qu=function(e){var t=Yu.default(e),r=function(n){var o=Zo.useState({loading:!0,err:void 0,component:void 0}),s=o[0],i=s.loading,u=s.err,c=s.component,d=o[1];return Zo.useEffect(function(){var a=d;return a({loading:!0,err:void 0,component:void 0}),t(n).then(function(l){return a({loading:!1,err:void 0,component:l.default})}).catch(function(l){return a({loading:!1,err:l,component:void 0})}),function(){a=function(){}}},[n]),[i,u,c]};return r};Ie.createUseRemoteComponent=Qu});var is=f(Ve=>{"use strict";var ss=Ve&&Ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.Close=void 0;var rc=ss(require("styled-components")),nc=ss(require("react")),oc=rc.default.div`
|
8
|
+
`+s),e.push(o+"m+"+gt.exports.humanize(this.diff)+"[0m")}else e[0]=Sa()+t+" "+e[0]}function Sa(){return P.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Pa(...e){return process.stderr.write(vt.format(...e)+`
|
9
|
+
`)}function ja(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function ka(){return process.env.DEBUG}function Fa(e){e.inspectOpts={};let t=Object.keys(P.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=P.inspectOpts[t[r]]}gt.exports=Kt()(P);var{formatters:Dn}=gt.exports;Dn.o=function(e){return this.inspectOpts.colors=this.useColors,vt.inspect(e,this.inspectOpts).split(`
|
10
|
+
`).map(t=>t.trim()).join(" ")};Dn.O=function(e){return this.inspectOpts.colors=this.useColors,vt.inspect(e,this.inspectOpts)}});var Bn=f((al,Xt)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?Xt.exports=xn():Xt.exports=Mn()});var Ln=f((ul,Nn)=>{var He;Nn.exports=function(){if(!He){try{He=Bn()("follow-redirects")}catch{}typeof He!="function"&&(He=function(){})}He.apply(null,arguments)}});var tr=f((cl,er)=>{var Ce=require("url"),Yt=Ce.URL,Da=require("http"),Ma=require("https"),In=require("stream").Writable,Ba=require("assert"),Un=Ln(),_e=["abort","aborted","connect","error","socket","timeout"],Qt=Object.create(null);_e.forEach(function(e){Qt[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var Vn=yt("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Na=yt("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),La=yt("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Ia=yt("ERR_STREAM_WRITE_AFTER_END","write after end");function K(e,t){In.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}K.prototype=Object.create(In.prototype);K.prototype.abort=function(){zn(this._currentRequest),this.emit("abort")};K.prototype.write=function(e,t,r){if(this._ending)throw new Ia;if(!(typeof e=="string"||typeof e=="object"&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(typeof t=="function"&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new La),this.abort())};K.prototype.end=function(e,t,r){if(typeof e=="function"?(r=e,e=t=null):typeof t=="function"&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,o=this._currentRequest;this.write(e,t,function(){n._ended=!0,o.end(null,null,r)}),this._ending=!0}};K.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};K.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};K.prototype.setTimeout=function(e,t){var r=this;function n(i){i.setTimeout(e),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function o(i){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),n(i)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){K.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(K.prototype,e,{get:function(){return this._currentRequest[e]}})});K.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};K.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=Ce.format(this._options),n._redirectable=this;for(var o=0;o<_e.length;o++)n.on(_e[o],Qt[_e[o]]);if(this._isRedirect){var s=0,i=this,u=this._requestBodyBuffers;(function c(d){if(n===i._currentRequest)if(d)i.emit("error",d);else if(s<u.length){var a=u[s++];n.finished||n.write(a.data,a.encoding,c)}else i._ended&&n.end()})()}};K.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(r&&this._options.followRedirects!==!1&&t>=300&&t<400){if(zn(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new Na);return}((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Zt(/^content-/i,this._options.headers));var n=Zt(/^host$/i,this._options.headers),o=Ce.parse(this._currentUrl),s=n||o.host,i=/^\w+:/.test(r)?this._currentUrl:Ce.format(Object.assign(o,{host:s})),u;try{u=Ce.resolve(i,r)}catch(a){this.emit("error",new Vn(a));return}Un("redirecting to",u),this._isRedirect=!0;var c=Ce.parse(u);if(Object.assign(this._options,c),c.host===s||Va(c.host,s)||Zt(/^authorization$/i,this._options.headers),typeof this._options.beforeRedirect=="function"){var d={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,d)}catch(a){this.emit("error",a);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(a){this.emit("error",new Vn(a))}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]};function $n(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024},r={};return Object.keys(e).forEach(function(n){var o=n+":",s=r[o]=e[n],i=t[n]=Object.create(s);function u(d,a,l){if(typeof d=="string"){var p=d;try{d=Hn(new Yt(p))}catch{d=Ce.parse(p)}}else Yt&&d instanceof Yt?d=Hn(d):(l=a,a=d,d={protocol:o});return typeof a=="function"&&(l=a,a=null),a=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},d,a),a.nativeProtocols=r,Ba.equal(a.protocol,o,"protocol mismatch"),Un("options",a),new K(a,l)}function c(d,a,l){var p=i.request(d,a,l);return p.end(),p}Object.defineProperties(i,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function Ua(){}function Hn(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return e.port!==""&&(t.port=Number(e.port)),t}function Zt(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r=="undefined"?void 0:String(r).trim()}function yt(e,t){function r(n){Error.captureStackTrace(this,this.constructor),n?(this.message=t+": "+n.message,this.cause=n):this.message=t}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+e+"]",r.prototype.code=e,r}function zn(e){for(var t=0;t<_e.length;t++)e.removeListener(_e[t],Qt[_e[t]]);e.on("error",Ua),e.abort()}function Va(e,t){let r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}er.exports=$n({http:Da,https:Ma});er.exports.wrap=$n});var bt=f((ll,Jn)=>{Jn.exports={version:"0.24.0"}});var Qn=f((dl,Yn)=>{"use strict";var ze=L(),Kn=Vt(),$a=$t(),Ha=ut(),za=require("http"),Ja=require("https"),Ka=tr().http,Ga=tr().https,Gn=require("url"),Wa=require("zlib"),Xa=bt().version,Ot=dt(),rr=lt(),Ya=Se(),Qa=xe(),Wn=/https:?/;function Xn(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(s){s.headers.host=s.host,Xn(s,t,s.href)}}Yn.exports=function(t){return new Promise(function(n,o){var s;function i(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}var u=function(v){i(),n(v)},c=function(v){i(),o(v)},d=t.data,a=t.headers,l={};if(Object.keys(a).forEach(function(v){l[v.toLowerCase()]=v}),"user-agent"in l?a[l["user-agent"]]||delete a[l["user-agent"]]:a["User-Agent"]="axios/"+Xa,d&&!ze.isStream(d)){if(!Buffer.isBuffer(d))if(ze.isArrayBuffer(d))d=Buffer.from(new Uint8Array(d));else if(ze.isString(d))d=Buffer.from(d,"utf-8");else return c(Ot("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));l["content-length"]||(a["Content-Length"]=d.length)}var p=void 0;if(t.auth){var k=t.auth.username||"",Z=t.auth.password||"";p=k+":"+Z}var x=$a(t.baseURL,t.url),m=Gn.parse(x),g=m.protocol||"http:";if(!p&&m.auth){var w=m.auth.split(":"),b=w[0]||"",S=w[1]||"";p=b+":"+S}p&&l.authorization&&delete a[l.authorization];var me=Wn.test(g),ve=me?t.httpsAgent:t.httpAgent,X={path:Ha(m.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:a,agent:ve,agents:{http:t.httpAgent,https:t.httpsAgent},auth:p};t.socketPath?X.socketPath=t.socketPath:(X.hostname=m.hostname,X.port=m.port);var ee=t.proxy;if(!ee&&ee!==!1){var Ze=g.slice(0,-1)+"_proxy",vr=process.env[Ze]||process.env[Ze.toUpperCase()];if(vr){var Ve=Gn.parse(vr),gr=process.env.no_proxy||process.env.NO_PROXY,yr=!0;if(gr){var fs=gr.split(",").map(function(v){return v.trim()});yr=!fs.some(function(v){return v?v==="*"||v[0]==="."&&m.hostname.substr(m.hostname.length-v.length)===v?!0:m.hostname===v:!1})}if(yr&&(ee={host:Ve.hostname,port:Ve.port,protocol:Ve.protocol},Ve.auth)){var br=Ve.auth.split(":");ee.auth={username:br[0],password:br[1]}}}}ee&&(X.headers.host=m.hostname+(m.port?":"+m.port:""),Xn(X,ee,g+"//"+m.hostname+(m.port?":"+m.port:"")+X.path));var et,Or=me&&(ee?Wn.test(ee.protocol):!0);t.transport?et=t.transport:t.maxRedirects===0?et=Or?Ja:za:(t.maxRedirects&&(X.maxRedirects=t.maxRedirects),et=Or?Ga:Ka),t.maxBodyLength>-1&&(X.maxBodyLength=t.maxBodyLength),t.insecureHTTPParser&&(X.insecureHTTPParser=t.insecureHTTPParser);var N=et.request(X,function(v){if(!N.aborted){var ge=v,tt=v.req||N;if(v.statusCode!==204&&tt.method!=="HEAD"&&t.decompress!==!1)switch(v.headers["content-encoding"]){case"gzip":case"compress":case"deflate":ge=ge.pipe(Wa.createUnzip()),delete v.headers["content-encoding"];break}var rt={status:v.statusCode,statusText:v.statusMessage,headers:v.headers,config:t,request:tt};if(t.responseType==="stream")rt.data=ge,Kn(u,c,rt);else{var wr=[],Cr=0;ge.on("data",function(te){wr.push(te),Cr+=te.length,t.maxContentLength>-1&&Cr>t.maxContentLength&&(ge.destroy(),c(Ot("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,tt)))}),ge.on("error",function(te){N.aborted||c(rr(te,t,null,tt))}),ge.on("end",function(){var te=Buffer.concat(wr);t.responseType!=="arraybuffer"&&(te=te.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(te=ze.stripBOM(te))),rt.data=te,Kn(u,c,rt)})}}});if(N.on("error",function(v){N.aborted&&v.code!=="ERR_FR_TOO_MANY_REDIRECTS"||c(rr(v,t,null,N))}),t.timeout){var Pt=parseInt(t.timeout,10);if(isNaN(Pt)){c(Ot("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",N));return}N.setTimeout(Pt,function(){N.abort();var v=t.transitional||Ya.transitional;c(Ot("timeout of "+Pt+"ms exceeded",t,v.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",N))})}(t.cancelToken||t.signal)&&(s=function(V){N.aborted||(N.abort(),c(!V||V&&V.type?new Qa("canceled"):V))},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s))),ze.isStream(d)?d.on("error",function(v){c(rr(v,t,null,N))}).pipe(N):N.end(d)})}});var Se=f((fl,to)=>{"use strict";var j=L(),Zn=an(),Za=lt(),eu={"Content-Type":"application/x-www-form-urlencoded"};function eo(e,t){!j.isUndefined(e)&&j.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function tu(){var e;return typeof XMLHttpRequest!="undefined"?e=qn():typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]"&&(e=Qn()),e}function ru(e,t,r){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var wt={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:tu(),transformRequest:[function(t,r){return Zn(r,"Accept"),Zn(r,"Content-Type"),j.isFormData(t)||j.isArrayBuffer(t)||j.isBuffer(t)||j.isStream(t)||j.isFile(t)||j.isBlob(t)?t:j.isArrayBufferView(t)?t.buffer:j.isURLSearchParams(t)?(eo(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):j.isObject(t)||r&&r["Content-Type"]==="application/json"?(eo(r,"application/json"),ru(t)):t}],transformResponse:[function(t){var r=this.transitional||wt.transitional,n=r&&r.silentJSONParsing,o=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||o&&j.isString(t)&&t.length)try{return JSON.parse(t)}catch(i){if(s)throw i.name==="SyntaxError"?Za(i,this,"E_JSON_PARSE"):i}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};j.forEach(["delete","get","head"],function(t){wt.headers[t]={}});j.forEach(["post","put","patch"],function(t){wt.headers[t]=j.merge(eu)});to.exports=wt});var no=f((pl,ro)=>{"use strict";var nu=L(),ou=Se();ro.exports=function(t,r,n){var o=this||ou;return nu.forEach(n,function(i){t=i.call(o,t,r)}),t}});var nr=f((hl,oo)=>{"use strict";oo.exports=function(t){return!!(t&&t.__CANCEL__)}});var ao=f((ml,io)=>{"use strict";var so=L(),or=no(),su=nr(),iu=Se(),au=xe();function sr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new au("canceled")}io.exports=function(t){sr(t),t.headers=t.headers||{},t.data=or.call(t,t.data,t.headers,t.transformRequest),t.headers=so.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),so.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var r=t.adapter||iu.adapter;return r(t).then(function(o){return sr(t),o.data=or.call(t,o.data,o.headers,t.transformResponse),o},function(o){return su(o)||(sr(t),o&&o.response&&(o.response.data=or.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})}});var ir=f((vl,uo)=>{"use strict";var G=L();uo.exports=function(t,r){r=r||{};var n={};function o(a,l){return G.isPlainObject(a)&&G.isPlainObject(l)?G.merge(a,l):G.isPlainObject(l)?G.merge({},l):G.isArray(l)?l.slice():l}function s(a){if(G.isUndefined(r[a])){if(!G.isUndefined(t[a]))return o(void 0,t[a])}else return o(t[a],r[a])}function i(a){if(!G.isUndefined(r[a]))return o(void 0,r[a])}function u(a){if(G.isUndefined(r[a])){if(!G.isUndefined(t[a]))return o(void 0,t[a])}else return o(void 0,r[a])}function c(a){if(a in r)return o(t[a],r[a]);if(a in t)return o(void 0,t[a])}var d={url:i,method:i,data:i,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:c};return G.forEach(Object.keys(t).concat(Object.keys(r)),function(l){var p=d[l]||s,k=p(l);G.isUndefined(k)&&p!==c||(n[l]=k)}),n}});var fo=f((gl,lo)=>{"use strict";var uu=bt().version,ar={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){ar[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var co={};ar.transitional=function(t,r,n){function o(s,i){return"[Axios v"+uu+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return function(s,i,u){if(t===!1)throw new Error(o(i," has been removed"+(r?" in "+r:"")));return r&&!co[i]&&(co[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,u):!0}};function cu(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var s=n[o],i=t[s];if(i){var u=e[s],c=u===void 0||i(u,s,e);if(c!==!0)throw new TypeError("option "+s+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+s)}}lo.exports={assertOptions:cu,validators:ar}});var yo=f((yl,go)=>{"use strict";var po=L(),lu=ut(),ho=on(),mo=ao(),Ct=ir(),vo=fo(),Fe=vo.validators;function Je(e){this.defaults=e,this.interceptors={request:new ho,response:new ho}}Je.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Ct(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&vo.assertOptions(r,{silentJSONParsing:Fe.transitional(Fe.boolean),forcedJSONParsing:Fe.transitional(Fe.boolean),clarifyTimeoutError:Fe.transitional(Fe.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(o=o&&p.synchronous,n.unshift(p.fulfilled,p.rejected))});var s=[];this.interceptors.response.forEach(function(p){s.push(p.fulfilled,p.rejected)});var i;if(!o){var u=[mo,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(s),i=Promise.resolve(t);u.length;)i=i.then(u.shift(),u.shift());return i}for(var c=t;n.length;){var d=n.shift(),a=n.shift();try{c=d(c)}catch(l){a(l);break}}try{i=mo(c)}catch(l){return Promise.reject(l)}for(;s.length;)i=i.then(s.shift(),s.shift());return i};Je.prototype.getUri=function(t){return t=Ct(this.defaults,t),lu(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};po.forEach(["delete","get","head","options"],function(t){Je.prototype[t]=function(r,n){return this.request(Ct(n||{},{method:t,url:r,data:(n||{}).data}))}});po.forEach(["post","put","patch"],function(t){Je.prototype[t]=function(r,n,o){return this.request(Ct(o||{},{method:t,url:r,data:n}))}});go.exports=Je});var Oo=f((bl,bo)=>{"use strict";var du=xe();function De(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(o){t=o});var r=this;this.promise.then(function(n){if(!!r._listeners){var o,s=r._listeners.length;for(o=0;o<s;o++)r._listeners[o](n);r._listeners=null}}),this.promise.then=function(n){var o,s=new Promise(function(i){r.subscribe(i),o=i}).then(n);return s.cancel=function(){r.unsubscribe(o)},s},e(function(o){r.reason||(r.reason=new du(o),t(r.reason))})}De.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};De.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};De.prototype.unsubscribe=function(t){if(!!this._listeners){var r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}};De.source=function(){var t,r=new De(function(o){t=o});return{token:r,cancel:t}};bo.exports=De});var Co=f((Ol,wo)=>{"use strict";wo.exports=function(t){return function(n){return t.apply(null,n)}}});var Eo=f((wl,_o)=>{"use strict";_o.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var To=f((Cl,ur)=>{"use strict";var qo=L(),fu=Bt(),_t=yo(),pu=ir(),hu=Se();function Ao(e){var t=new _t(e),r=fu(_t.prototype.request,t);return qo.extend(r,_t.prototype,t),qo.extend(r,t),r.create=function(o){return Ao(pu(e,o))},r}var ne=Ao(hu);ne.Axios=_t;ne.Cancel=xe();ne.CancelToken=Oo();ne.isCancel=nr();ne.VERSION=bt().version;ne.all=function(t){return Promise.all(t)};ne.spread=Co();ne.isAxiosError=Eo();ur.exports=ne;ur.exports.default=ne});var cr=f((_l,Ro)=>{Ro.exports=To()});var Po=f(W=>{var mu=W&&W.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(W,"__esModule",{value:!0});W.RequiredError=W.BaseAPI=W.COLLECTION_FORMATS=W.BASE_PATH=void 0;var vu=mu(cr());W.BASE_PATH="https://api.analytica.click".replace(/\/+$/,"");W.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:" ",pipes:"|"};var xo=class{constructor(t,r=W.BASE_PATH,n=vu.default){this.basePath=r,this.axios=n,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}};W.BaseAPI=xo;var So=class extends Error{constructor(t,r){super(r);this.field=t,this.name="RequiredError"}};W.RequiredError=So});var ko=f(h=>{var gu=h&&h.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),yu=h&&h.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),bu=h&&h.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&gu(t,e,r);return yu(t,e),t},A=h&&h.__awaiter||function(e,t,r,n){function o(s){return s instanceof r?s:new r(function(i){i(s)})}return new(r||(r=Promise))(function(s,i){function u(a){try{d(n.next(a))}catch(l){i(l)}}function c(a){try{d(n.throw(a))}catch(l){i(l)}}function d(a){a.done?s(a.value):o(a.value).then(u,c)}d((n=n.apply(e,t||[])).next())})},Ou=h&&h.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(h,"__esModule",{value:!0});h.DefaultApi=h.DefaultApiFactory=h.DefaultApiFp=h.DefaultApiAxiosParamCreator=h.Sentiment=void 0;var T=bu(require("url")),se=Ou(cr()),y=Po(),wu;(function(e){e.Good="good",e.Bad="bad",e.Neutral="neutral"})(wu=h.Sentiment||(h.Sentiment={}));var Cu=function(e){return{accountGet:(t={})=>A(this,void 0,void 0,function*(){let r="/account",n=T.parse(r,!0),o;e&&(o=e.baseOptions);let s=Object.assign(Object.assign({method:"GET"},o),t),i={},u={};if(e&&e.apiKey){let d=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;i.authorization=d}n.query=Object.assign(Object.assign(Object.assign({},n.query),u),t.query),delete n.search;let c=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},i),c),t.headers),{url:T.format(n),options:s}}),bingIntegrationPost:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new y.RequiredError("bingIntegration","Required parameter bingIntegration was null or undefined when calling bingIntegrationPost.");let n="/account/integrations/bing",o=T.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:T.format(o),options:i}}),getTrackingAllSites:(t,r,n={})=>A(this,void 0,void 0,function*(){if(t==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",s=T.parse(o,!0),i;e&&(i=e.baseOptions);let u=Object.assign(Object.assign({method:"GET"},i),n),c={},d={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;c.authorization=l}t!==void 0&&(d.minDate=t),r!==void 0&&(d.maxDate=r),s.query=Object.assign(Object.assign(Object.assign({},s.query),d),n.query),delete s.search;let a=i&&i.headers?i.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},c),a),n.headers),{url:T.format(s),options:u}}),getTrackingSite:(t,r,n,o={})=>A(this,void 0,void 0,function*(){if(t==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 s="/site/tracking/{id}".replace("{id}",encodeURIComponent(String(t))),i=T.parse(s,!0),u;e&&(u=e.baseOptions);let c=Object.assign(Object.assign({method:"GET"},u),o),d={},a={};if(e&&e.apiKey){let p=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;d.authorization=p}r!==void 0&&(a.minDate=r),n!==void 0&&(a.maxDate=n),i.query=Object.assign(Object.assign(Object.assign({},i.query),a),o.query),delete i.search;let l=u&&u.headers?u.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},d),l),o.headers),{url:T.format(i),options:c}}),googleIntegrationPost:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new y.RequiredError("googleIntegration","Required parameter googleIntegration was null or undefined when calling googleIntegrationPost.");let n="/account/integrations/google",o=T.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:T.format(o),options:i}}),postError:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new y.RequiredError("postError","Required parameter postError was null or undefined when calling postError.");let n="/error",o=T.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),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=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:T.format(o),options:i}}),postPageTrack:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new y.RequiredError("postSiteTrack","Required parameter postSiteTrack was null or undefined when calling postPageTrack.");let n="/site",o=T.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),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=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:T.format(o),options:i}}),putFeedback:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new y.RequiredError("feedbackPutData","Required parameter feedbackPutData was null or undefined when calling putFeedback.");let n="/feedback",o=T.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"PUT"},s),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=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:T.format(o),options:i}}),sitePost:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new y.RequiredError("postAccount","Required parameter postAccount was null or undefined when calling sitePost.");let n="/account/site",o=T.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:T.format(o),options:i}})}};h.DefaultApiAxiosParamCreator=Cu;var _u=function(e){return{accountGet(t){return A(this,void 0,void 0,function*(){let r=yield(0,h.DefaultApiAxiosParamCreator)(e).accountGet(t);return(n=se.default,o=y.BASE_PATH)=>{let s=Object.assign(Object.assign({},r.options),{url:o+r.url});return n.request(s)}})},bingIntegrationPost(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).bingIntegrationPost(t,r);return(o=se.default,s=y.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},getTrackingAllSites(t,r,n){return A(this,void 0,void 0,function*(){let o=yield(0,h.DefaultApiAxiosParamCreator)(e).getTrackingAllSites(t,r,n);return(s=se.default,i=y.BASE_PATH)=>{let u=Object.assign(Object.assign({},o.options),{url:i+o.url});return s.request(u)}})},getTrackingSite(t,r,n,o){return A(this,void 0,void 0,function*(){let s=yield(0,h.DefaultApiAxiosParamCreator)(e).getTrackingSite(t,r,n,o);return(i=se.default,u=y.BASE_PATH)=>{let c=Object.assign(Object.assign({},s.options),{url:u+s.url});return i.request(c)}})},googleIntegrationPost(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).googleIntegrationPost(t,r);return(o=se.default,s=y.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},postError(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).postError(t,r);return(o=se.default,s=y.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},postPageTrack(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).postPageTrack(t,r);return(o=se.default,s=y.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},putFeedback(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).putFeedback(t,r);return(o=se.default,s=y.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},sitePost(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).sitePost(t,r);return(o=se.default,s=y.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})}}};h.DefaultApiFp=_u;var Eu=function(e,t,r){return{accountGet(n){return(0,h.DefaultApiFp)(e).accountGet(n).then(o=>o(r,t))},bingIntegrationPost(n,o){return(0,h.DefaultApiFp)(e).bingIntegrationPost(n,o).then(s=>s(r,t))},getTrackingAllSites(n,o,s){return(0,h.DefaultApiFp)(e).getTrackingAllSites(n,o,s).then(i=>i(r,t))},getTrackingSite(n,o,s,i){return(0,h.DefaultApiFp)(e).getTrackingSite(n,o,s,i).then(u=>u(r,t))},googleIntegrationPost(n,o){return(0,h.DefaultApiFp)(e).googleIntegrationPost(n,o).then(s=>s(r,t))},postError(n,o){return(0,h.DefaultApiFp)(e).postError(n,o).then(s=>s(r,t))},postPageTrack(n,o){return(0,h.DefaultApiFp)(e).postPageTrack(n,o).then(s=>s(r,t))},putFeedback(n,o){return(0,h.DefaultApiFp)(e).putFeedback(n,o).then(s=>s(r,t))},sitePost(n,o){return(0,h.DefaultApiFp)(e).sitePost(n,o).then(s=>s(r,t))}}};h.DefaultApiFactory=Eu;var jo=class extends y.BaseAPI{accountGet(t){return(0,h.DefaultApiFp)(this.configuration).accountGet(t).then(r=>r(this.axios,this.basePath))}bingIntegrationPost(t,r){return(0,h.DefaultApiFp)(this.configuration).bingIntegrationPost(t,r).then(n=>n(this.axios,this.basePath))}getTrackingAllSites(t,r,n){return(0,h.DefaultApiFp)(this.configuration).getTrackingAllSites(t,r,n).then(o=>o(this.axios,this.basePath))}getTrackingSite(t,r,n,o){return(0,h.DefaultApiFp)(this.configuration).getTrackingSite(t,r,n,o).then(s=>s(this.axios,this.basePath))}googleIntegrationPost(t,r){return(0,h.DefaultApiFp)(this.configuration).googleIntegrationPost(t,r).then(n=>n(this.axios,this.basePath))}postError(t,r){return(0,h.DefaultApiFp)(this.configuration).postError(t,r).then(n=>n(this.axios,this.basePath))}postPageTrack(t,r){return(0,h.DefaultApiFp)(this.configuration).postPageTrack(t,r).then(n=>n(this.axios,this.basePath))}putFeedback(t,r){return(0,h.DefaultApiFp)(this.configuration).putFeedback(t,r).then(n=>n(this.axios,this.basePath))}sitePost(t,r){return(0,h.DefaultApiFp)(this.configuration).sitePost(t,r).then(n=>n(this.axios,this.basePath))}};h.DefaultApi=jo});var Lo=f(qt=>{"use strict";qt.__esModule=!0;qt.createRequires=void 0;var Su=function(e){return typeof e=="function"?e():e||{}},Pu=function(e){var t=!1;return function(r){if(t||(e=Su(e),t=!0),!(r in e))throw new Error("Could not require '"+r+"'. '"+r+"' does not exist in dependencies.");return e[r]}};qt.createRequires=Pu});var Io=f(fr=>{"use strict";fr.__esModule=!0;var ju=function(e){var t={};return function(r){return r in t||(t[r]=e(r)),t[r]}};fr.default=ju});var pr=f(Be=>{"use strict";Be.__esModule=!0;Be.InternalServerError=Be.OK=void 0;Be.OK=200;Be.InternalServerError=500});var Uo=f(de=>{"use strict";de.__esModule=!0;de.DONE=de.OPENED=de.UNSENT=void 0;de.UNSENT=0;de.OPENED=1;de.DONE=4});var Vo=f(hr=>{"use strict";hr.__esModule=!0;var ku=pr(),Fu=Uo(),Du=function(e){return new Promise(function(t,r){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState===Fu.DONE&&(n.status===ku.OK?t(n.responseText):r(new Error("HTTP Error Response: "+n.status+" "+n.statusText+" ("+e+")")))},n.open("GET",e,!0),n.send()})};hr.default=Du});var Jo=f(We=>{"use strict";var $o=We&&We.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};We.__esModule=!0;var Ho=require("http"),zo=require("https"),Mu=pr(),Bu=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return typeof e!="string"?{on:function(n,o){o(new Error("URL must be a string."))}}:e.indexOf("https://")===0?zo.get.apply(zo,$o([e],t,!1)):Ho.get.apply(Ho,$o([e],t,!1))},Nu=function(e){return new Promise(function(t,r){Bu(e,function(n){if(n.statusCode!==Mu.OK)return r(new Error("HTTP Error Response: "+n.statusCode+" "+n.statusMessage+" ("+e+")"));var o=null;n.on("data",function(s){if(o===null){o=s;return}o+=s}),n.on("end",function(){return t(o)})}).on("error",r)})};We.default=Nu});var Ko=f(At=>{"use strict";At.__esModule=!0;At.createLoadRemoteModule=void 0;var Lu=Io(),Iu=Vo(),Uu=Jo(),Vu=typeof window!="undefined"&&typeof window.document!="undefined",$u=Vu?Iu.default:Uu.default,Hu=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},zu=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,o=r||Hu,s=n||$u;return(0,Lu.default)(function(i){return s(i).then(function(u){var c={},d={exports:c},a=new Function("require","module","exports",u);return a(o,d,c),d.exports})})};At.createLoadRemoteModule=zu});var Go=f(Tt=>{"use strict";Tt.__esModule=!0;Tt.createRequires=void 0;var Ju=function(e){return function(t){var r=e||{};if(!(t in r))throw new Error("Could not require '"+t+"'. '"+t+"' does not exist in dependencies.");return r[t]}};Tt.createRequires=Ju});var Xo=f(fe=>{"use strict";var Wo=fe&&fe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});fe.__esModule=!0;fe.createRequires=fe.default=void 0;var Ku=Ko();Wo(fe,Ku,"createLoadRemoteModule","default");var Gu=Go();Wo(fe,Gu,"createRequires")});var Qo=f(Ne=>{"use strict";var Wu=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Ne.__esModule=!0;Ne.createUseRemoteComponent=void 0;var Yo=require("react"),Xu=Wu(Xo()),Yu=function(e){var t=Xu.default(e),r=function(n){var o=Yo.useState({loading:!0,err:void 0,component:void 0}),s=o[0],i=s.loading,u=s.err,c=s.component,d=o[1];return Yo.useEffect(function(){var a=d;return a({loading:!0,err:void 0,component:void 0}),t(n).then(function(l){return a({loading:!1,err:void 0,component:l.default})}).catch(function(l){return a({loading:!1,err:l,component:void 0})}),function(){a=function(){}}},[n]),[i,u,c]};return r};Ne.createUseRemoteComponent=Yu});var os=f(Ie=>{"use strict";var ns=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.Close=void 0;var tc=ns(require("styled-components")),rc=ns(require("react")),nc=tc.default.div`
|
11
11
|
position: absolute;
|
12
12
|
width: 32px;
|
13
13
|
height: 32px;
|
@@ -33,7 +33,7 @@ var ms=Object.create;var Je=Object.defineProperty,gs=Object.defineProperties,vs=
|
|
33
33
|
&:after {
|
34
34
|
transform: rotate(-45deg);
|
35
35
|
}
|
36
|
-
`,
|
36
|
+
`,oc=({className:e,onClick:t})=>rc.default.createElement(nc,{className:e,onClick:r=>t==null?void 0:t(r)});Ie.Close=oc});var ss=f(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.useOnClickOutside=void 0;var sc=require("react");function ic({ref:e,moveMouseOutside:t},r){(0,sc.useEffect)(()=>{let n=o=>{let s=e==null?void 0:e.current;!s||s.contains((o==null?void 0:o.target)||null)||r(o)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),t&&document.addEventListener("mousemove",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n),document.removeEventListener("mousemove",n)}},[e,r,t])}xt.useOnClickOutside=ic});var is=f(R=>{"use strict";var ac=R&&R.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),uc=R&&R.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),cc=R&&R.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&ac(t,e,r);return uc(t,e),t},lc=R&&R.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(R,"__esModule",{value:!0});R.ModalDropList=R.Modal=R.ModalItem=void 0;var pe=cc(require("react")),mr=lc(require("styled-components")),dc=os(),fc=ss(),pc=mr.default.div`
|
37
37
|
position: fixed;
|
38
38
|
top: 0;
|
39
39
|
left: 0;
|
@@ -44,7 +44,7 @@ var ms=Object.create;var Je=Object.defineProperty,gs=Object.defineProperties,vs=
|
|
44
44
|
display: flex;
|
45
45
|
justify-content: center;
|
46
46
|
align-items: center;
|
47
|
-
`,
|
47
|
+
`,hc=mr.default.div`
|
48
48
|
position: absolute;
|
49
49
|
z-index: 1;
|
50
50
|
background-color: white;
|
@@ -63,13 +63,13 @@ var ms=Object.create;var Je=Object.defineProperty,gs=Object.defineProperties,vs=
|
|
63
63
|
&[data-topposition='top'] {
|
64
64
|
bottom: 0;
|
65
65
|
}
|
66
|
-
`;R.ModalItem=
|
66
|
+
`;R.ModalItem=mr.default.div`
|
67
67
|
display: flex;
|
68
68
|
padding: 1rem;
|
69
69
|
|
70
70
|
&:hover {
|
71
71
|
background-color: #eee;
|
72
72
|
}
|
73
|
-
`;var
|
73
|
+
`;var mc=({open:e,setOpen:t,children:r,position:n="left",topPosition:o="bottom",showCloseButton:s=!0,closeOnMoveMouseOutside:i=!1,className:u})=>{let c=(0,pe.useRef)(null);return(0,fc.useOnClickOutside)({ref:c,moveMouseOutside:i},()=>{e&&t(!1)}),e?pe.default.createElement(pc,{className:u},pe.default.createElement(hc,{"data-position":n,"data-topposition":o,ref:c},s&&pe.default.createElement(dc.Close,{onClick:()=>t(!1)}),r)):pe.default.createElement(pe.default.Fragment,null)};R.Modal=mc;var vc=e=>pe.default.createElement(R.Modal,Object.assign({},e,{className:e.className}),e.options.map((t,r)=>pe.default.createElement(R.ModalItem,{key:t,onClick:n=>{var o;n.stopPropagation(),n.preventDefault(),(o=e.onSelect)===null||o===void 0||o.call(e,r,n),e.setOpen(!1)}},t)));R.ModalDropList=vc});var cs=f(Ue=>{var as=Ue&&Ue.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.ErrorBoundary=void 0;var gc=is(),St=as(require("react")),yc=as(require("styled-components")),bc=yc.default.div`
|
74
74
|
font-size: 2rem;
|
75
|
-
`,
|
75
|
+
`,us=class extends St.default.Component{constructor(t){super(t);this.state={hasError:void 0}}static getDerivedStateFromError(t){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({},t),{message:(t==null?void 0:t.message)||t}),(t==null?void 0:t.stack)&&{stack:t==null?void 0:t.stack}),n&&{href:n})}}render(){let{hasError:t}=this.state,{children:r,notify:n}=this.props;return t?(n&&n(t),St.default.createElement(gc.Modal,{open:!0,setOpen:()=>{}},St.default.createElement(bc,null,"A fatal error has occurred - the admin has been notified.",St.default.createElement("button",{type:"button",onClick:()=>window.location.reload()},"Press here to restart app")))):r}};Ue.ErrorBoundary=us});var Cc={};Os(Cc,{AnalyticaConfigContext:()=>Q,AnalyticaConfigProvider:()=>Tu,ErrorBoundary:()=>wc,ExternalComponent:()=>Ye,Feedback:()=>Zu,GenerateCognitoAuth:()=>ec,errorTrack:()=>Ee,feedback:()=>Et,page:()=>No,tokenMissing:()=>ie,track:()=>dr,useFeedback:()=>Ru,useTrack:()=>xu});var rs=D(be()),Le=D(require("react"));var Ke=D(be()),Mo=require("react");var le=D(require("react"));var lr=D(be());var Fo=D(Xr()),Do=D(ko());function Me(e){return(0,Fo.callOpenApi)(F(C({},e),{func:t=>e.func(t),newDefaultApi:t=>new Do.DefaultApi(t),logout:()=>window.location.reload(),refreshToken:()=>$(this,null,function*(){})}))}var Ee=r=>$(void 0,[r],function*({data:e,overrideBaseUrl:t="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,lr.debug)(`local error tracking ignored:${e.data.message} ${JSON.stringify(e)}, to ${t}`),{};(0,lr.debug)("error track",e.data.message,JSON.stringify(e));let n=yield Me({apiUrl:t,func:s=>s.postError(e)});return n.error?{error:n.error.message}:{}});var qu={analyticaToken:void 0,overrideBaseUrl:void 0},Q=le.default.createContext(qu);function Au(e){if(!e.analyticaToken)return;let t=window.console.error;window.console.error=(...n)=>Ee({data:{data:{href:window.location.href,message:JSON.stringify(n)},key:e.analyticaToken},overrideBaseUrl:e.overrideBaseUrl}).finally(()=>t(...n));let r=window.console.warn;window.console.warn=(...n)=>Ee({data:{data:{href:window.location.href,message:JSON.stringify(n)},key:e.analyticaToken},overrideBaseUrl:e.overrideBaseUrl}).finally(()=>r(...n))}var Tu=({children:e,values:t})=>{let[r,n]=(0,le.useState)(t);return(0,le.useEffect)(()=>{JSON.stringify(t)!==JSON.stringify(r)&&n(t)},[r,t]),(0,le.useEffect)(()=>{Au(t)},[]),le.default.createElement(Q.Provider,{value:r},e)};var ie=e=>`[Analytica.${e}] Please load analytica token in AnalyticaConfigProvider to use this component`;var Et=n=>$(void 0,[n],function*({data:e,analyticaToken:t,overrideBaseUrl:r="https://api.analytica.click"}){var s;if(typeof window!="undefined"&&((s=window==null?void 0:window.location)==null?void 0:s.hostname)==="localhost")return(0,Ke.debug)(`local feedback ignored:${JSON.stringify(e)}, to ${r}`),{};(0,Ke.debug)("feedback",JSON.stringify(e));let o=yield Me({apiUrl:r,func:i=>i.putFeedback({key:t,data:e})});return o.error?{error:o.error.message}:{}}),Ru=()=>{let{analyticaToken:e,overrideBaseUrl:t}=(0,Mo.useContext)(Q);return e?{trackWithToken:r=>Et(F(C({},r),{analyticaToken:e,overrideBaseUrl:t}))}:((0,Ke.warn)(ie("useFeedback")),{trackWithToken:()=>({error:"no token"})})};var Ge=D(be()),Bo=require("react");var dr=o=>$(void 0,[o],function*({analyticaToken:e,userData:t,overrideBaseUrl:r="https://api.analytica.click",eventName:n}){var u,c,d;let s={eventName:n};if(typeof window!="undefined"&&(s=F(C({},s),{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"&&(s=F(C({},s),{pageReferrer:document.referrer,pageTitle:document.title})),typeof navigator!="undefined"&&(s=F(C({},s),{browserLanguage:navigator.language})),typeof window!="undefined"&&((d=window==null?void 0:window.location)==null?void 0:d.hostname)==="localhost")return(0,Ge.debug)(`local page ignored: ${JSON.stringify(s)}, to ${r}`),{};(0,Ge.debug)("track",JSON.stringify(s));let i=yield Me({apiUrl:r,func:a=>a.postPageTrack({key:e,data:s,userData:t})});return i.error?{error:i.error.message}:{}}),No=n=>$(void 0,[n],function*({analyticaToken:e,userData:t,overrideBaseUrl:r="https://api.analytica.click"}){return dr({analyticaToken:e,userData:t,overrideBaseUrl:r,eventName:"PAGE"})}),xu=()=>{let{analyticaToken:e,overrideBaseUrl:t}=(0,Bo.useContext)(Q);if(!e){(0,Ge.warn)(ie("useTrack"));let r=()=>$(void 0,null,function*(){return{error:"no token"}});return{page:r,track:r}}return{page:r=>No(F(C({},r),{analyticaToken:e,overrideBaseUrl:t})),track:r=>dr(F(C({},r),{analyticaToken:e,overrideBaseUrl:t}))}};var Xe=D(require("react")),Zo=D(Lo()),es=D(Qo()),ts=D(require("react-dom")),Qu=require("styled-components"),Rt={},Ye=({url:e,props:t})=>{let r=(0,Zo.createRequires)(()=>({react:Xe.default,"react-dom":ts.default,"styled-components":Qu})),n,o=!1,s;return Rt[e]?n=Rt[e]:[o,s,n]=(0,es.createUseRemoteComponent)({requires:r})(e),!Rt[e]&&!o&&!s&&n&&(Rt[e]=n),Xe.default.createElement(Xe.default.Fragment,null,!o&&!s&&Xe.default.createElement(n,C({},t)),s&&s)};var Zu=e=>{let{analyticaToken:t,overrideBaseUrl:r,devMode:n}=(0,Le.useContext)(Q);if(!t)return(0,rs.warn)(ie("Feedback")),Le.default.createElement(Le.default.Fragment,null);let o=F(C({},e),{submitFeedback:Et,analyticaToken:t,overrideBaseUrl:r}),s="https://cdn.analytica.click/feedback.js";return n&&(s="/feedback.js"),Le.default.createElement(Ye,{url:s,props:o})};var Qe=D(require("react"));var ec=()=>{let{devMode:e}=(0,Qe.useContext)(Q),t=Qe.default.createContext(void 0),r="https://cdn.analytica.click/cognito.js";return{CognitoAuthContext:t,CognitoAuthProvider:o=>{let s=F(C({},o),{Context:t});return e&&(r="/cognito.js"),Qe.default.createElement(Ye,{url:r,props:s})}}};var ls=D(cs()),he=D(require("react")),ds=D(be());function Oc(n){return $(this,arguments,function*({ev:e,analyticaToken:t,filterBrowserError:r}){if(r&&r(e)===!1)return;let o=(e==null?void 0:e.message)||(e==null?void 0:e.error),{href:s}=window.location,i=e==null?void 0:e.stack,u=e==null?void 0:e.filename;yield Ee({data:{key:t,data:{message:o,stack:i,filename:u,href:s}}})})}var wc=({children:e,filterBrowserError:t})=>{let{analyticaToken:r}=(0,he.useContext)(Q);return(0,he.useEffect)(()=>{if(!r)return()=>{};let n=o=>Oc({ev:o,analyticaToken:r,filterBrowserError:t});return window.addEventListener("error",n),()=>{window.removeEventListener("error",n)}},[r,t]),r?he.default.createElement(ls.ErrorBoundary,{notify:n=>$(void 0,null,function*(){let{href:o}=window.location;yield Ee({data:{key:r,data:F(C({},n),{href:o})}})})},e):((0,ds.warn)(ie("ErrorBoundary")),he.default.createElement(he.default.Fragment,null,e))};module.exports=ws(Cc);0&&(module.exports={AnalyticaConfigContext,AnalyticaConfigProvider,ErrorBoundary,ExternalComponent,Feedback,GenerateCognitoAuth,errorTrack,feedback,page,tokenMissing,track,useFeedback,useTrack});
|