UNPKG

straydog-js

Version:

Drop-in API monitoring for any Node.js backend

21 lines 59 kB
import{i as ut,b as _t,k as ae,g as V,j as w,l as Ze,r as g,a as It,u as gt,R as Dn,m as dt,A as jn,P as H,d as j,n as te,f as Ln,o as Dt,V as kn,p as Mn,q as Bn,s as Fn,t as Un,F as Hn,D as Vn,C as qn,h as zn,c as he}from"./index-B_jzwMIy.js";/** * @license lucide-react v0.338.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wn=ut("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.338.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jt=ut("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.338.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $n=ut("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);function Lt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Kn}=Object.prototype,{getPrototypeOf:ft}=Object,{iterator:je,toStringTag:kt}=Symbol,Le=(e=>t=>{const n=Kn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),W=e=>(e=e.toLowerCase(),t=>Le(t)===e),ke=e=>t=>typeof t===e,{isArray:me}=Array,be=ke("undefined");function Ee(e){return e!==null&&!be(e)&&e.constructor!==null&&!be(e.constructor)&&B(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Mt=W("ArrayBuffer");function Jn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Mt(e.buffer),t}const Gn=ke("string"),B=ke("function"),Bt=ke("number"),Re=e=>e!==null&&typeof e=="object",Xn=e=>e===!0||e===!1,Ae=e=>{if(Le(e)!=="object")return!1;const t=ft(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(kt in e)&&!(je in e)},Yn=e=>{if(!Re(e)||Ee(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Zn=W("Date"),Qn=W("File"),er=W("Blob"),tr=W("FileList"),nr=e=>Re(e)&&B(e.pipe),rr=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||B(e.append)&&((t=Le(e))==="formdata"||t==="object"&&B(e.toString)&&e.toString()==="[object FormData]"))},or=W("URLSearchParams"),[sr,ir,ar,cr]=["ReadableStream","Request","Response","Headers"].map(W),lr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ce(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),me(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Ee(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function Ft(e,t){if(Ee(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ce=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ut=e=>!be(e)&&e!==ce;function Qe(){const{caseless:e}=Ut(this)&&this||{},t={},n=(r,o)=>{const i=e&&Ft(t,o)||o;Ae(t[i])&&Ae(r)?t[i]=Qe(t[i],r):Ae(r)?t[i]=Qe({},r):me(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Ce(arguments[r],n);return t}const ur=(e,t,n,{allOwnKeys:r}={})=>(Ce(t,(o,i)=>{n&&B(o)?e[i]=Lt(o,n):e[i]=o},{allOwnKeys:r}),e),dr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fr=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},pr=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&ft(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},hr=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},mr=e=>{if(!e)return null;if(me(e))return e;let t=e.length;if(!Bt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},gr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ft(Uint8Array)),wr=(e,t)=>{const r=(e&&e[je]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},yr=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Sr=W("HTMLFormElement"),xr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),wt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),br=W("RegExp"),Ht=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ce(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},Er=e=>{Ht(e,(t,n)=>{if(B(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(B(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Rr=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return me(e)?r(e):r(String(e).split(t)),n},Cr=()=>{},vr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Tr(e){return!!(e&&B(e.append)&&e[kt]==="FormData"&&e[je])}const Or=e=>{const t=new Array(10),n=(r,o)=>{if(Re(r)){if(t.indexOf(r)>=0)return;if(Ee(r))return r;if(!("toJSON"in r)){t[o]=r;const i=me(r)?[]:{};return Ce(r,(s,a)=>{const u=n(s,o+1);!be(u)&&(i[a]=u)}),t[o]=void 0,i}}return r};return n(e,0)},Ar=W("AsyncFunction"),Nr=e=>e&&(Re(e)||B(e))&&B(e.then)&&B(e.catch),Vt=((e,t)=>e?setImmediate:t?((n,r)=>(ce.addEventListener("message",({source:o,data:i})=>{o===ce&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),ce.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",B(ce.postMessage)),Pr=typeof queueMicrotask<"u"?queueMicrotask.bind(ce):typeof process<"u"&&process.nextTick||Vt,_r=e=>e!=null&&B(e[je]),c={isArray:me,isArrayBuffer:Mt,isBuffer:Ee,isFormData:rr,isArrayBufferView:Jn,isString:Gn,isNumber:Bt,isBoolean:Xn,isObject:Re,isPlainObject:Ae,isEmptyObject:Yn,isReadableStream:sr,isRequest:ir,isResponse:ar,isHeaders:cr,isUndefined:be,isDate:Zn,isFile:Qn,isBlob:er,isRegExp:br,isFunction:B,isStream:nr,isURLSearchParams:or,isTypedArray:gr,isFileList:tr,forEach:Ce,merge:Qe,extend:ur,trim:lr,stripBOM:dr,inherits:fr,toFlatObject:pr,kindOf:Le,kindOfTest:W,endsWith:hr,toArray:mr,forEachEntry:wr,matchAll:yr,isHTMLForm:Sr,hasOwnProperty:wt,hasOwnProp:wt,reduceDescriptors:Ht,freezeMethods:Er,toObjectSet:Rr,toCamelCase:xr,noop:Cr,toFiniteNumber:vr,findKey:Ft,global:ce,isContextDefined:Ut,isSpecCompliantForm:Tr,toJSONObject:Or,isAsyncFn:Ar,isThenable:Nr,setImmediate:Vt,asap:Pr,isIterable:_r};function E(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}c.inherits(E,Error,{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:c.toJSONObject(this.config),code:this.code,status:this.status}}});const qt=E.prototype,zt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{zt[e]={value:e}});Object.defineProperties(E,zt);Object.defineProperty(qt,"isAxiosError",{value:!0});E.from=(e,t,n,r,o,i)=>{const s=Object.create(qt);return c.toFlatObject(e,s,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),E.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Ir=null;function et(e){return c.isPlainObject(e)||c.isArray(e)}function Wt(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function yt(e,t,n){return e?e.concat(t).map(function(o,i){return o=Wt(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Dr(e){return c.isArray(e)&&!e.some(et)}const jr=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function Me(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,p){return!c.isUndefined(p[f])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(c.isDate(m))return m.toISOString();if(c.isBoolean(m))return m.toString();if(!u&&c.isBlob(m))throw new E("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(m)||c.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,f,p){let x=m;if(m&&!p&&typeof m=="object"){if(c.endsWith(f,"{}"))f=r?f:f.slice(0,-2),m=JSON.stringify(m);else if(c.isArray(m)&&Dr(m)||(c.isFileList(m)||c.endsWith(f,"[]"))&&(x=c.toArray(m)))return f=Wt(f),x.forEach(function(S,T){!(c.isUndefined(S)||S===null)&&t.append(s===!0?yt([f],T,i):s===null?f:f+"[]",l(S))}),!1}return et(m)?!0:(t.append(yt(p,f,i),l(m)),!1)}const h=[],b=Object.assign(jr,{defaultVisitor:d,convertValue:l,isVisitable:et});function R(m,f){if(!c.isUndefined(m)){if(h.indexOf(m)!==-1)throw Error("Circular reference detected in "+f.join("."));h.push(m),c.forEach(m,function(x,y){(!(c.isUndefined(x)||x===null)&&o.call(t,x,c.isString(y)?y.trim():y,f,b))===!0&&R(x,f?f.concat(y):[y])}),h.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return R(e),t}function St(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function pt(e,t){this._pairs=[],e&&Me(e,this,t)}const $t=pt.prototype;$t.append=function(t,n){this._pairs.push([t,n])};$t.toString=function(t){const n=t?function(r){return t.call(this,r,St)}:St;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Lr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Kt(e,t,n){if(!t)return e;const r=n&&n.encode||Lr;c.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=c.isURLSearchParams(t)?t.toString():new pt(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class xt{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Jt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},kr=typeof URLSearchParams<"u"?URLSearchParams:pt,Mr=typeof FormData<"u"?FormData:null,Br=typeof Blob<"u"?Blob:null,Fr={isBrowser:!0,classes:{URLSearchParams:kr,FormData:Mr,Blob:Br},protocols:["http","https","file","blob","url","data"]},ht=typeof window<"u"&&typeof document<"u",tt=typeof navigator=="object"&&navigator||void 0,Ur=ht&&(!tt||["ReactNative","NativeScript","NS"].indexOf(tt.product)<0),Hr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Vr=ht&&window.location.href||"http://localhost",qr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ht,hasStandardBrowserEnv:Ur,hasStandardBrowserWebWorkerEnv:Hr,navigator:tt,origin:Vr},Symbol.toStringTag,{value:"Module"})),L={...qr,...Fr};function zr(e,t){return Me(e,new L.classes.URLSearchParams,{visitor:function(n,r,o,i){return L.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Wr(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $r(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Gt(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),u=i>=n.length;return s=!s&&c.isArray(o)?o.length:s,u?(c.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!c.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&c.isArray(o[s])&&(o[s]=$r(o[s])),!a)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,o)=>{t(Wr(r),o,n,0)}),n}return null}function Kr(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ve={transitional:Jt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=c.isObject(t);if(i&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return o?JSON.stringify(Gt(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return zr(t,this.formSerializer).toString();if((a=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Me(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Kr(t)):t}],transformResponse:[function(t){const n=this.transitional||ve.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?E.from(a,E.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:L.classes.FormData,Blob:L.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{ve.headers[e]={}});const Jr=c.toObjectSet(["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"]),Gr=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Jr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},bt=Symbol("internals");function Se(e){return e&&String(e).trim().toLowerCase()}function Ne(e){return e===!1||e==null?e:c.isArray(e)?e.map(Ne):String(e)}function Xr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Yr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ge(e,t,n,r,o){if(c.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function Zr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Qr(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let F=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,u,l){const d=Se(u);if(!d)throw new Error("header name must be a non-empty string");const h=c.findKey(o,d);(!h||o[h]===void 0||l===!0||l===void 0&&o[h]!==!1)&&(o[h||u]=Ne(a))}const s=(a,u)=>c.forEach(a,(l,d)=>i(l,d,u));if(c.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(c.isString(t)&&(t=t.trim())&&!Yr(t))s(Gr(t),n);else if(c.isObject(t)&&c.isIterable(t)){let a={},u,l;for(const d of t){if(!c.isArray(d))throw TypeError("Object iterator must return a key-value pair");a[l=d[0]]=(u=a[l])?c.isArray(u)?[...u,d[1]]:[u,d[1]]:d[1]}s(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Se(t),t){const r=c.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Xr(o);if(c.isFunction(n))return n.call(this,o,r);if(c.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Se(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ge(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Se(s),s){const a=c.findKey(r,s);a&&(!n||Ge(r,r[a],a,n))&&(delete r[a],o=!0)}}return c.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Ge(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return c.forEach(this,(o,i)=>{const s=c.findKey(r,i);if(s){n[s]=Ne(o),delete n[i];return}const a=t?Zr(i):String(i).trim();a!==i&&delete n[i],n[a]=Ne(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[bt]=this[bt]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Se(s);r[a]||(Qr(o,s),r[a]=!0)}return c.isArray(t)?t.forEach(i):i(t),this}};F.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(F.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});c.freezeMethods(F);function Xe(e,t){const n=this||ve,r=t||n,o=F.from(r.headers);let i=r.data;return c.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Xt(e){return!!(e&&e.__CANCEL__)}function ge(e,t,n){E.call(this,e??"canceled",E.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(ge,E,{__CANCEL__:!0});function Yt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new E("Request failed with status code "+n.status,[E.ERR_BAD_REQUEST,E.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function eo(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function to(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),d=r[i];s||(s=l),n[o]=u,r[o]=l;let h=i,b=0;for(;h!==o;)b+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-s<t)return;const R=d&&l-d;return R?Math.round(b*1e3/R):void 0}}function no(e,t){let n=0,r=1e3/t,o,i;const s=(l,d=Date.now())=>{n=d,o=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const d=Date.now(),h=d-n;h>=r?s(l,d):(o=l,i||(i=setTimeout(()=>{i=null,s(o)},r-h)))},()=>o&&s(o)]}const _e=(e,t,n=3)=>{let r=0;const o=to(50,250);return no(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,u=s-r,l=o(u),d=s<=a;r=s;const h={loaded:s,total:a,progress:a?s/a:void 0,bytes:u,rate:l||void 0,estimated:l&&a&&d?(a-s)/l:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},Et=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Rt=e=>(...t)=>c.asap(()=>e(...t)),ro=L.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,L.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(L.origin),L.navigator&&/(msie|trident)/i.test(L.navigator.userAgent)):()=>!0,oo=L.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];c.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),c.isString(r)&&s.push("path="+r),c.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function so(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function io(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Zt(e,t,n){let r=!so(t);return e&&(r||n==!1)?io(e,t):t}const Ct=e=>e instanceof F?{...e}:e;function ue(e,t){t=t||{};const n={};function r(l,d,h,b){return c.isPlainObject(l)&&c.isPlainObject(d)?c.merge.call({caseless:b},l,d):c.isPlainObject(d)?c.merge({},d):c.isArray(d)?d.slice():d}function o(l,d,h,b){if(c.isUndefined(d)){if(!c.isUndefined(l))return r(void 0,l,h,b)}else return r(l,d,h,b)}function i(l,d){if(!c.isUndefined(d))return r(void 0,d)}function s(l,d){if(c.isUndefined(d)){if(!c.isUndefined(l))return r(void 0,l)}else return r(void 0,d)}function a(l,d,h){if(h in t)return r(l,d);if(h in e)return r(void 0,l)}const u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(l,d,h)=>o(Ct(l),Ct(d),h,!0)};return c.forEach(Object.keys({...e,...t}),function(d){const h=u[d]||o,b=h(e[d],t[d],d);c.isUndefined(b)&&h!==a||(n[d]=b)}),n}const Qt=e=>{const t=ue({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=F.from(s),t.url=Kt(Zt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(c.isFormData(n)){if(L.hasStandardBrowserEnv||L.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[l,...d]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];s.setContentType([l||"multipart/form-data",...d].join("; "))}}if(L.hasStandardBrowserEnv&&(r&&c.isFunction(r)&&(r=r(t)),r||r!==!1&&ro(t.url))){const l=o&&i&&oo.read(i);l&&s.set(o,l)}return t},ao=typeof XMLHttpRequest<"u",co=ao&&function(e){return new Promise(function(n,r){const o=Qt(e);let i=o.data;const s=F.from(o.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:l}=o,d,h,b,R,m;function f(){R&&R(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function x(){if(!p)return;const S=F.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),v={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:S,config:e,request:p};Yt(function(O){n(O),f()},function(O){r(O),f()},v),p=null}"onloadend"in p?p.onloadend=x:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(x)},p.onabort=function(){p&&(r(new E("Request aborted",E.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new E("Network Error",E.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let T=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const v=o.transitional||Jt;o.timeoutErrorMessage&&(T=o.timeoutErrorMessage),r(new E(T,v.clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,e,p)),p=null},i===void 0&&s.setContentType(null),"setRequestHeader"in p&&c.forEach(s.toJSON(),function(T,v){p.setRequestHeader(v,T)}),c.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),a&&a!=="json"&&(p.responseType=o.responseType),l&&([b,m]=_e(l,!0),p.addEventListener("progress",b)),u&&p.upload&&([h,R]=_e(u),p.upload.addEventListener("progress",h),p.upload.addEventListener("loadend",R)),(o.cancelToken||o.signal)&&(d=S=>{p&&(r(!S||S.type?new ge(null,e,p):S),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const y=eo(o.url);if(y&&L.protocols.indexOf(y)===-1){r(new E("Unsupported protocol "+y+":",E.ERR_BAD_REQUEST,e));return}p.send(i||null)})},lo=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(l){if(!o){o=!0,a();const d=l instanceof Error?l:this.reason;r.abort(d instanceof E?d:new ge(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,i(new E(`timeout ${t} of ms exceeded`,E.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:u}=r;return u.unsubscribe=()=>c.asap(a),u}},uo=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},fo=async function*(e,t){for await(const n of po(e))yield*uo(n,t)},po=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},vt=(e,t,n,r)=>{const o=fo(e,t);let i=0,s,a=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:l,value:d}=await o.next();if(l){a(),u.close();return}let h=d.byteLength;if(n){let b=i+=h;n(b)}u.enqueue(new Uint8Array(d))}catch(l){throw a(l),l}},cancel(u){return a(u),o.return()}},{highWaterMark:2})},Be=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",en=Be&&typeof ReadableStream=="function",ho=Be&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),tn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},mo=en&&tn(()=>{let e=!1;const t=new Request(L.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Tt=64*1024,nt=en&&tn(()=>c.isReadableStream(new Response("").body)),Ie={stream:nt&&(e=>e.body)};Be&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ie[t]&&(Ie[t]=c.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new E(`Response type '${t}' is not supported`,E.ERR_NOT_SUPPORT,r)})})})(new Response);const go=async e=>{if(e==null)return 0;if(c.isBlob(e))return e.size;if(c.isSpecCompliantForm(e))return(await new Request(L.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(c.isArrayBufferView(e)||c.isArrayBuffer(e))return e.byteLength;if(c.isURLSearchParams(e)&&(e=e+""),c.isString(e))return(await ho(e)).byteLength},wo=async(e,t)=>{const n=c.toFiniteNumber(e.getContentLength());return n??go(t)},yo=Be&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:u,responseType:l,headers:d,withCredentials:h="same-origin",fetchOptions:b}=Qt(e);l=l?(l+"").toLowerCase():"text";let R=lo([o,i&&i.toAbortSignal()],s),m;const f=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let p;try{if(u&&mo&&n!=="get"&&n!=="head"&&(p=await wo(d,r))!==0){let v=new Request(t,{method:"POST",body:r,duplex:"half"}),_;if(c.isFormData(r)&&(_=v.headers.get("content-type"))&&d.setContentType(_),v.body){const[O,k]=Et(p,_e(Rt(u)));r=vt(v.body,Tt,O,k)}}c.isString(h)||(h=h?"include":"omit");const x="credentials"in Request.prototype;m=new Request(t,{...b,signal:R,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:x?h:void 0});let y=await fetch(m,b);const S=nt&&(l==="stream"||l==="response");if(nt&&(a||S&&f)){const v={};["status","statusText","headers"].forEach(q=>{v[q]=y[q]});const _=c.toFiniteNumber(y.headers.get("content-length")),[O,k]=a&&Et(_,_e(Rt(a),!0))||[];y=new Response(vt(y.body,Tt,O,()=>{k&&k(),f&&f()}),v)}l=l||"text";let T=await Ie[c.findKey(Ie,l)||"text"](y,e);return!S&&f&&f(),await new Promise((v,_)=>{Yt(v,_,{data:T,headers:F.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:m})})}catch(x){throw f&&f(),x&&x.name==="TypeError"&&/Load failed|fetch/i.test(x.message)?Object.assign(new E("Network Error",E.ERR_NETWORK,e,m),{cause:x.cause||x}):E.from(x,x&&x.code,e,m)}}),rt={http:Ir,xhr:co,fetch:yo};c.forEach(rt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ot=e=>`- ${e}`,So=e=>c.isFunction(e)||e===null||e===!1,nn={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let s;if(r=n,!So(n)&&(r=rt[(s=String(n)).toLowerCase()],r===void 0))throw new E(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : `+i.map(Ot).join(` `):" "+Ot(i[0]):"as no adapter specified";throw new E("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:rt};function Ye(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ge(null,e)}function At(e){return Ye(e),e.headers=F.from(e.headers),e.data=Xe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nn.getAdapter(e.adapter||ve.adapter)(e).then(function(r){return Ye(e),r.data=Xe.call(e,e.transformResponse,r),r.headers=F.from(r.headers),r},function(r){return Xt(r)||(Ye(e),r&&r.response&&(r.response.data=Xe.call(e,e.transformResponse,r.response),r.response.headers=F.from(r.response.headers))),Promise.reject(r)})}const rn="1.11.0",Fe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Fe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Nt={};Fe.transitional=function(t,n,r){function o(i,s){return"[Axios v"+rn+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new E(o(s," has been removed"+(n?" in "+n:"")),E.ERR_DEPRECATED);return n&&!Nt[s]&&(Nt[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};Fe.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function xo(e,t,n){if(typeof e!="object")throw new E("options must be an object",E.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],u=a===void 0||s(a,i,e);if(u!==!0)throw new E("option "+i+" must be "+u,E.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new E("Unknown option "+i,E.ERR_BAD_OPTION)}}const Pe={assertOptions:xo,validators:Fe},K=Pe.validators;let le=class{constructor(t){this.defaults=t||{},this.interceptors={request:new xt,response:new xt}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ue(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Pe.assertOptions(r,{silentJSONParsing:K.transitional(K.boolean),forcedJSONParsing:K.transitional(K.boolean),clarifyTimeoutError:K.transitional(K.boolean)},!1),o!=null&&(c.isFunction(o)?n.paramsSerializer={serialize:o}:Pe.assertOptions(o,{encode:K.function,serialize:K.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Pe.assertOptions(n,{baseUrl:K.spelling("baseURL"),withXsrfToken:K.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&c.merge(i.common,i[n.method]);i&&c.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=F.concat(s,i);const a=[];let u=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(u=u&&f.synchronous,a.unshift(f.fulfilled,f.rejected))});const l=[];this.interceptors.response.forEach(function(f){l.push(f.fulfilled,f.rejected)});let d,h=0,b;if(!u){const m=[At.bind(this),void 0];for(m.unshift(...a),m.push(...l),b=m.length,d=Promise.resolve(n);h<b;)d=d.then(m[h++],m[h++]);return d}b=a.length;let R=n;for(h=0;h<b;){const m=a[h++],f=a[h++];try{R=m(R)}catch(p){f.call(this,p);break}}try{d=At.call(this,R)}catch(m){return Promise.reject(m)}for(h=0,b=l.length;h<b;)d=d.then(l[h++],l[h++]);return d}getUri(t){t=ue(this.defaults,t);const n=Zt(t.baseURL,t.url,t.allowAbsoluteUrls);return Kt(n,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){le.prototype[t]=function(n,r){return this.request(ue(r||{},{method:t,url:n,data:(r||{}).data}))}});c.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,a){return this.request(ue(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}le.prototype[t]=n(),le.prototype[t+"Form"]=n(!0)});let bo=class on{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new ge(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new on(function(o){t=o}),cancel:t}}};function Eo(e){return function(n){return e.apply(null,n)}}function Ro(e){return c.isObject(e)&&e.isAxiosError===!0}const ot={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ot).forEach(([e,t])=>{ot[t]=e});function sn(e){const t=new le(e),n=Lt(le.prototype.request,t);return c.extend(n,le.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return sn(ue(e,o))},n}const P=sn(ve);P.Axios=le;P.CanceledError=ge;P.CancelToken=bo;P.isCancel=Xt;P.VERSION=rn;P.toFormData=Me;P.AxiosError=E;P.Cancel=P.CanceledError;P.all=function(t){return Promise.all(t)};P.spread=Eo;P.isAxiosError=Ro;P.mergeConfig=ue;P.AxiosHeaders=F;P.formToJSON=e=>Gt(c.isHTMLForm(e)?new FormData(e):e);P.getAdapter=nn.getAdapter;P.HttpStatusCode=ot;P.default=P;const{Axios:hs,AxiosError:ms,CanceledError:gs,isCancel:ws,CancelToken:ys,VERSION:Ss,all:xs,Cancel:bs,isAxiosError:Es,spread:Rs,toFormData:Cs,AxiosHeaders:vs,HttpStatusCode:Ts,formToJSON:Os,getAdapter:As,mergeConfig:Ns}=P,Ps=P.create({baseURL:"http://localhost:7111/straydog/api"});function Pt(e,[t,n]){return Math.min(n,Math.max(t,e))}function Co(e){const t=e+"CollectionProvider",[n,r]=_t(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=f=>{const{scope:p,children:x}=f,y=ae.useRef(null),S=ae.useRef(new Map).current;return w.jsx(o,{scope:p,itemMap:S,collectionRef:y,children:x})};s.displayName=t;const a=e+"CollectionSlot",u=Ze(a),l=ae.forwardRef((f,p)=>{const{scope:x,children:y}=f,S=i(a,x),T=V(p,S.collectionRef);return w.jsx(u,{ref:T,children:y})});l.displayName=a;const d=e+"CollectionItemSlot",h="data-radix-collection-item",b=Ze(d),R=ae.forwardRef((f,p)=>{const{scope:x,children:y,...S}=f,T=ae.useRef(null),v=V(p,T),_=i(d,x);return ae.useEffect(()=>(_.itemMap.set(T,{ref:T,...S}),()=>void _.itemMap.delete(T))),w.jsx(b,{[h]:"",ref:v,children:y})});R.displayName=d;function m(f){const p=i(e+"CollectionConsumer",f);return ae.useCallback(()=>{const y=p.collectionRef.current;if(!y)return[];const S=Array.from(y.querySelectorAll(`[${h}]`));return Array.from(p.itemMap.values()).sort((_,O)=>S.indexOf(_.ref.current)-S.indexOf(O.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:s,Slot:l,ItemSlot:R},m,r]}var vo=g.createContext(void 0);function To(e){const t=g.useContext(vo);return e||t||"ltr"}function Oo(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ao=[" ","Enter","ArrowUp","ArrowDown"],No=[" ","Enter"],de="Select",[Ue,He,Po]=Co(de),[we,_s]=_t(de,[Po,It]),Ve=It(),[_o,ne]=we(de),[Io,Do]=we(de),an=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:u,dir:l,name:d,autoComplete:h,disabled:b,required:R,form:m}=e,f=Ve(t),[p,x]=g.useState(null),[y,S]=g.useState(null),[T,v]=g.useState(!1),_=To(l),[O,k]=gt({prop:r,defaultProp:o??!1,onChange:i,caller:de}),[q,oe]=gt({prop:s,defaultProp:a,onChange:u,caller:de}),J=g.useRef(null),G=p?m||!!p.closest("form"):!0,[Q,X]=g.useState(new Set),Y=Array.from(Q).map(M=>M.props.value).join(";");return w.jsx(Dn,{...f,children:w.jsxs(_o,{required:R,scope:t,trigger:p,onTriggerChange:x,valueNode:y,onValueNodeChange:S,valueNodeHasChildren:T,onValueNodeHasChildrenChange:v,contentId:dt(),value:q,onValueChange:oe,open:O,onOpenChange:k,dir:_,triggerPointerDownPosRef:J,disabled:b,children:[w.jsx(Ue.Provider,{scope:t,children:w.jsx(Io,{scope:e.__scopeSelect,onNativeOptionAdd:g.useCallback(M=>{X($=>new Set($).add(M))},[]),onNativeOptionRemove:g.useCallback(M=>{X($=>{const Z=new Set($);return Z.delete(M),Z})},[]),children:n})}),G?w.jsxs(Nn,{"aria-hidden":!0,required:R,tabIndex:-1,name:d,autoComplete:h,value:q,onChange:M=>oe(M.target.value),disabled:b,form:m,children:[q===void 0?w.jsx("option",{value:""}):null,Array.from(Q)]},Y):null]})})};an.displayName=de;var cn="SelectTrigger",ln=g.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=Ve(n),s=ne(cn,n),a=s.disabled||r,u=V(t,s.onTriggerChange),l=He(n),d=g.useRef("touch"),[h,b,R]=_n(f=>{const p=l().filter(S=>!S.disabled),x=p.find(S=>S.value===s.value),y=In(p,f,x);y!==void 0&&s.onValueChange(y.value)}),m=f=>{a||(s.onOpenChange(!0),R()),f&&(s.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return w.jsx(jn,{asChild:!0,...i,children:w.jsx(H.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Pn(s.value)?"":void 0,...o,ref:u,onClick:j(o.onClick,f=>{f.currentTarget.focus(),d.current!=="mouse"&&m(f)}),onPointerDown:j(o.onPointerDown,f=>{d.current=f.pointerType;const p=f.target;p.hasPointerCapture(f.pointerId)&&p.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(m(f),f.preventDefault())}),onKeyDown:j(o.onKeyDown,f=>{const p=h.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&b(f.key),!(p&&f.key===" ")&&Ao.includes(f.key)&&(m(),f.preventDefault())})})})});ln.displayName=cn;var un="SelectValue",dn=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...a}=e,u=ne(un,n),{onValueNodeHasChildrenChange:l}=u,d=i!==void 0,h=V(t,u.onValueNodeChange);return te(()=>{l(d)},[l,d]),w.jsx(H.span,{...a,ref:h,style:{pointerEvents:"none"},children:Pn(u.value)?w.jsx(w.Fragment,{children:s}):i})});dn.displayName=un;var jo="SelectIcon",fn=g.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return w.jsx(H.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});fn.displayName=jo;var Lo="SelectPortal",pn=e=>w.jsx(Ln,{asChild:!0,...e});pn.displayName=Lo;var fe="SelectContent",hn=g.forwardRef((e,t)=>{const n=ne(fe,e.__scopeSelect),[r,o]=g.useState();if(te(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Dt.createPortal(w.jsx(mn,{scope:e.__scopeSelect,children:w.jsx(Ue.Slot,{scope:e.__scopeSelect,children:w.jsx("div",{children:e.children})})}),i):null}return w.jsx(gn,{...e,ref:t})});hn.displayName=fe;var z=10,[mn,re]=we(fe),ko="SelectContentImpl",Mo=Ze("SelectContent.RemoveScroll"),gn=g.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:u,align:l,alignOffset:d,arrowPadding:h,collisionBoundary:b,collisionPadding:R,sticky:m,hideWhenDetached:f,avoidCollisions:p,...x}=e,y=ne(fe,n),[S,T]=g.useState(null),[v,_]=g.useState(null),O=V(t,C=>T(C)),[k,q]=g.useState(null),[oe,J]=g.useState(null),G=He(n),[Q,X]=g.useState(!1),Y=g.useRef(!1);g.useEffect(()=>{if(S)return Bn(S)},[S]),Fn();const M=g.useCallback(C=>{const[I,...U]=G().map(D=>D.ref.current),[A]=U.slice(-1),N=document.activeElement;for(const D of C)if(D===N||(D?.scrollIntoView({block:"nearest"}),D===I&&v&&(v.scrollTop=0),D===A&&v&&(v.scrollTop=v.scrollHeight),D?.focus(),document.activeElement!==N))return},[G,v]),$=g.useCallback(()=>M([k,S]),[M,k,S]);g.useEffect(()=>{Q&&$()},[Q,$]);const{onOpenChange:Z,triggerPointerDownPosRef:ee}=y;g.useEffect(()=>{if(S){let C={x:0,y:0};const I=A=>{C={x:Math.abs(Math.round(A.pageX)-(ee.current?.x??0)),y:Math.abs(Math.round(A.pageY)-(ee.current?.y??0))}},U=A=>{C.x<=10&&C.y<=10?A.preventDefault():S.contains(A.target)||Z(!1),document.removeEventListener("pointermove",I),ee.current=null};return ee.current!==null&&(document.addEventListener("pointermove",I),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",I),document.removeEventListener("pointerup",U,{capture:!0})}}},[S,Z,ee]),g.useEffect(()=>{const C=()=>Z(!1);return window.addEventListener("blur",C),window.addEventListener("resize",C),()=>{window.removeEventListener("blur",C),window.removeEventListener("resize",C)}},[Z]);const[qe,Te]=_n(C=>{const I=G().filter(N=>!N.disabled),U=I.find(N=>N.ref.current===document.activeElement),A=In(I,C,U);A&&setTimeout(()=>A.ref.current.focus())}),ze=g.useCallback((C,I,U)=>{const A=!Y.current&&!U;(y.value!==void 0&&y.value===I||A)&&(q(C),A&&(Y.current=!0))},[y.value]),We=g.useCallback(()=>S?.focus(),[S]),pe=g.useCallback((C,I,U)=>{const A=!Y.current&&!U;(y.value!==void 0&&y.value===I||A)&&J(C)},[y.value]),Oe=r==="popper"?st:wn,ye=Oe===st?{side:a,sideOffset:u,align:l,alignOffset:d,arrowPadding:h,collisionBoundary:b,collisionPadding:R,sticky:m,hideWhenDetached:f,avoidCollisions:p}:{};return w.jsx(mn,{scope:n,content:S,viewport:v,onViewportChange:_,itemRefCallback:ze,selectedItem:k,onItemLeave:We,itemTextRefCallback:pe,focusSelectedItem:$,selectedItemText:oe,position:r,isPositioned:Q,searchRef:qe,children:w.jsx(Un,{as:Mo,allowPinchZoom:!0,children:w.jsx(Hn,{asChild:!0,trapped:y.open,onMountAutoFocus:C=>{C.preventDefault()},onUnmountAutoFocus:j(o,C=>{y.trigger?.focus({preventScroll:!0}),C.preventDefault()}),children:w.jsx(Vn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:C=>C.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:w.jsx(Oe,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:C=>C.preventDefault(),...x,...ye,onPlaced:()=>X(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:j(x.onKeyDown,C=>{const I=C.ctrlKey||C.altKey||C.metaKey;if(C.key==="Tab"&&C.preventDefault(),!I&&C.key.length===1&&Te(C.key),["ArrowUp","ArrowDown","Home","End"].includes(C.key)){let A=G().filter(N=>!N.disabled).map(N=>N.ref.current);if(["ArrowUp","End"].includes(C.key)&&(A=A.slice().reverse()),["ArrowUp","ArrowDown"].includes(C.key)){const N=C.target,D=A.indexOf(N);A=A.slice(D+1)}setTimeout(()=>M(A)),C.preventDefault()}})})})})})})});gn.displayName=ko;var Bo="SelectItemAlignedPosition",wn=g.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=ne(fe,n),s=re(fe,n),[a,u]=g.useState(null),[l,d]=g.useState(null),h=V(t,O=>d(O)),b=He(n),R=g.useRef(!1),m=g.useRef(!0),{viewport:f,selectedItem:p,selectedItemText:x,focusSelectedItem:y}=s,S=g.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&l&&f&&p&&x){const O=i.trigger.getBoundingClientRect(),k=l.getBoundingClientRect(),q=i.valueNode.getBoundingClientRect(),oe=x.getBoundingClientRect();if(i.dir!=="rtl"){const N=oe.left-k.left,D=q.left-N,se=O.left-D,ie=O.width+se,$e=Math.max(ie,k.width),Ke=window.innerWidth-z,Je=Pt(D,[z,Math.max(z,Ke-$e)]);a.style.minWidth=ie+"px",a.style.left=Je+"px"}else{const N=k.right-oe.right,D=window.innerWidth-q.right-N,se=window.innerWidth-O.right-D,ie=O.width+se,$e=Math.max(ie,k.width),Ke=window.innerWidth-z,Je=Pt(D,[z,Math.max(z,Ke-$e)]);a.style.minWidth=ie+"px",a.style.right=Je+"px"}const J=b(),G=window.innerHeight-z*2,Q=f.scrollHeight,X=window.getComputedStyle(l),Y=parseInt(X.borderTopWidth,10),M=parseInt(X.paddingTop,10),$=parseInt(X.borderBottomWidth,10),Z=parseInt(X.paddingBottom,10),ee=Y+M+Q+Z+$,qe=Math.min(p.offsetHeight*5,ee),Te=window.getComputedStyle(f),ze=parseInt(Te.paddingTop,10),We=parseInt(Te.paddingBottom,10),pe=O.top+O.height/2-z,Oe=G-pe,ye=p.offsetHeight/2,C=p.offsetTop+ye,I=Y+M+C,U=ee-I;if(I<=pe){const N=J.length>0&&p===J[J.length-1].ref.current;a.style.bottom="0px";const D=l.clientHeight-f.offsetTop-f.offsetHeight,se=Math.max(Oe,ye+(N?We:0)+D+$),ie=I+se;a.style.height=ie+"px"}else{const N=J.length>0&&p===J[0].ref.current;a.style.top="0px";const se=Math.max(pe,Y+f.offsetTop+(N?ze:0)+ye)+U;a.style.height=se+"px",f.scrollTop=I-pe+f.offsetTop}a.style.margin=`${z}px 0`,a.style.minHeight=qe+"px",a.style.maxHeight=G+"px",r?.(),requestAnimationFrame(()=>R.current=!0)}},[b,i.trigger,i.valueNode,a,l,f,p,x,i.dir,r]);te(()=>S(),[S]);const[T,v]=g.useState();te(()=>{l&&v(window.getComputedStyle(l).zIndex)},[l]);const _=g.useCallback(O=>{O&&m.current===!0&&(S(),y?.(),m.current=!1)},[S,y]);return w.jsx(Uo,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:R,onScrollButtonChange:_,children:w.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:w.jsx(H.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});wn.displayName=Bo;var Fo="SelectPopperPosition",st=g.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=z,...i}=e,s=Ve(n);return w.jsx(qn,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});st.displayName=Fo;var[Uo,mt]=we(fe,{}),it="SelectViewport",yn=g.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=re(it,n),s=mt(it,n),a=V(t,i.onViewportChange),u=g.useRef(0);return w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),w.jsx(Ue.Slot,{scope:n,children:w.jsx(H.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:j(o.onScroll,l=>{const d=l.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:b}=s;if(b?.current&&h){const R=Math.abs(u.current-d.scrollTop);if(R>0){const m=window.innerHeight-z*2,f=parseFloat(h.style.minHeight),p=parseFloat(h.style.height),x=Math.max(f,p);if(x<m){const y=x+R,S=Math.min(m,y),T=y-S;h.style.height=S+"px",h.style.bottom==="0px"&&(d.scrollTop=T>0?T:0,h.style.justifyContent="flex-end")}}}u.current=d.scrollTop})})})]})});yn.displayName=it;var Sn="SelectGroup",[Ho,Vo]=we(Sn),qo=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=dt();return w.jsx(Ho,{scope:n,id:o,children:w.jsx(H.div,{role:"group","aria-labelledby":o,...r,ref:t})})});qo.displayName=Sn;var xn="SelectLabel",zo=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Vo(xn,n);return w.jsx(H.div,{id:o.id,...r,ref:t})});zo.displayName=xn;var De="SelectItem",[Wo,bn]=we(De),En=g.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,a=ne(De,n),u=re(De,n),l=a.value===r,[d,h]=g.useState(i??""),[b,R]=g.useState(!1),m=V(t,y=>u.itemRefCallback?.(y,r,o)),f=dt(),p=g.useRef("touch"),x=()=>{o||(a.onValueChange(r),a.onOpenC