diff --git a/API/.coverage b/API/.coverage index f9f8a7e9..0e882919 100644 Binary files a/API/.coverage and b/API/.coverage differ diff --git a/API/AcheiUnB/static/dist/js/index-DdAcjziC.js b/API/AcheiUnB/static/dist/js/index-DdAcjziC.js new file mode 100644 index 00000000..853e4170 --- /dev/null +++ b/API/AcheiUnB/static/dist/js/index-DdAcjziC.js @@ -0,0 +1,26 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function Sr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ue={},tn=[],dt=()=>{},aa=()=>!1,ms=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Cr=e=>e.startsWith("onUpdate:"),Re=Object.assign,Ar=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ca=Object.prototype.hasOwnProperty,se=(e,t)=>ca.call(e,t),H=Array.isArray,nn=e=>Fn(e)==="[object Map]",gs=e=>Fn(e)==="[object Set]",Xr=e=>Fn(e)==="[object Date]",K=e=>typeof e=="function",_e=e=>typeof e=="string",pt=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",ui=e=>(pe(e)||K(e))&&K(e.then)&&K(e.catch),fi=Object.prototype.toString,Fn=e=>fi.call(e),ua=e=>Fn(e).slice(8,-1),di=e=>Fn(e)==="[object Object]",Rr=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,wn=Sr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),bs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},fa=/-(\w)/g,Ge=bs(e=>e.replace(fa,(t,n)=>n?n.toUpperCase():"")),da=/\B([A-Z])/g,jt=bs(e=>e.replace(da,"-$1").toLowerCase()),xs=bs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Bs=bs(e=>e?`on${xs(e)}`:""),$t=(e,t)=>!Object.is(e,t),Jn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},ss=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let eo;const ys=()=>eo||(eo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Bn(e){if(H(e)){const t={};for(let n=0;n{if(n){const s=n.split(ha);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function X(e){let t="";if(_e(e))t=e;else if(H(e))for(let n=0;nvs(n,t))}const mi=e=>!!(e&&e.__v_isRef===!0),G=e=>_e(e)?e:e==null?"":H(e)||pe(e)&&(e.toString===fi||!K(e.toString))?mi(e)?G(e.value):JSON.stringify(e,gi,2):String(e),gi=(e,t)=>mi(t)?gi(e,t.value):nn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Ns(s,o)+" =>"]=r,n),{})}:gs(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ns(n))}:pt(t)?Ns(t):pe(t)&&!H(t)&&!di(t)?String(t):t,Ns=(e,t="")=>{var n;return pt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let He;class _a{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=He,!t&&He&&(this.index=(He.scopes||(He.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(Sn){let t=Sn;for(Sn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;En;){let t=En;for(En=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function vi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function _i(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Or(s),Ea(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function sr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(wi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function wi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===On))return;e.globalVersion=On;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!sr(e)){e.flags&=-3;return}const n=de,s=Xe;de=e,Xe=!0;try{vi(e);const r=e.fn(e._value);(t.version===0||$t(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{de=n,Xe=s,_i(e),e.flags&=-3}}function Or(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Or(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ea(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Xe=!0;const Ei=[];function Mt(){Ei.push(Xe),Xe=!1}function Lt(){const e=Ei.pop();Xe=e===void 0?!0:e}function to(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=de;de=void 0;try{t()}finally{de=n}}}let On=0;class Sa{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ir{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!de||!Xe||de===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==de)n=this.activeLink=new Sa(de,this),de.deps?(n.prevDep=de.depsTail,de.depsTail.nextDep=n,de.depsTail=n):de.deps=de.depsTail=n,Si(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=de.depsTail,n.nextDep=void 0,de.depsTail.nextDep=n,de.depsTail=n,de.deps===n&&(de.deps=s)}return n}trigger(t){this.version++,On++,this.notify(t)}notify(t){kr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Tr()}}}function Si(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Si(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const rr=new WeakMap,Ht=Symbol(""),or=Symbol(""),In=Symbol("");function Oe(e,t,n){if(Xe&&de){let s=rr.get(e);s||rr.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Ir),r.map=s,r.key=n),r.track()}}function wt(e,t,n,s,r,o){const i=rr.get(e);if(!i){On++;return}const l=c=>{c&&c.trigger()};if(kr(),t==="clear")i.forEach(l);else{const c=H(e),a=c&&Rr(n);if(c&&n==="length"){const u=Number(s);i.forEach((d,m)=>{(m==="length"||m===In||!pt(m)&&m>=u)&&l(d)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),a&&l(i.get(In)),t){case"add":c?a&&l(i.get("length")):(l(i.get(Ht)),nn(e)&&l(i.get(or)));break;case"delete":c||(l(i.get(Ht)),nn(e)&&l(i.get(or)));break;case"set":nn(e)&&l(i.get(Ht));break}}Tr()}function Yt(e){const t=ne(e);return t===e?t:(Oe(t,"iterate",In),Qe(e)?t:t.map(Ie))}function _s(e){return Oe(e=ne(e),"iterate",In),e}const Ca={__proto__:null,[Symbol.iterator](){return zs(this,Symbol.iterator,Ie)},concat(...e){return Yt(this).concat(...e.map(t=>H(t)?Yt(t):t))},entries(){return zs(this,"entries",e=>(e[1]=Ie(e[1]),e))},every(e,t){return yt(this,"every",e,t,void 0,arguments)},filter(e,t){return yt(this,"filter",e,t,n=>n.map(Ie),arguments)},find(e,t){return yt(this,"find",e,t,Ie,arguments)},findIndex(e,t){return yt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return yt(this,"findLast",e,t,Ie,arguments)},findLastIndex(e,t){return yt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return yt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Hs(this,"includes",e)},indexOf(...e){return Hs(this,"indexOf",e)},join(e){return Yt(this).join(e)},lastIndexOf(...e){return Hs(this,"lastIndexOf",e)},map(e,t){return yt(this,"map",e,t,void 0,arguments)},pop(){return bn(this,"pop")},push(...e){return bn(this,"push",e)},reduce(e,...t){return no(this,"reduce",e,t)},reduceRight(e,...t){return no(this,"reduceRight",e,t)},shift(){return bn(this,"shift")},some(e,t){return yt(this,"some",e,t,void 0,arguments)},splice(...e){return bn(this,"splice",e)},toReversed(){return Yt(this).toReversed()},toSorted(e){return Yt(this).toSorted(e)},toSpliced(...e){return Yt(this).toSpliced(...e)},unshift(...e){return bn(this,"unshift",e)},values(){return zs(this,"values",Ie)}};function zs(e,t,n){const s=_s(e),r=s[t]();return s!==e&&!Qe(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.value&&(o.value=n(o.value)),o}),r}const Aa=Array.prototype;function yt(e,t,n,s,r,o){const i=_s(e),l=i!==e&&!Qe(e),c=i[t];if(c!==Aa[t]){const d=c.apply(e,o);return l?Ie(d):d}let a=n;i!==e&&(l?a=function(d,m){return n.call(this,Ie(d),m,e)}:n.length>2&&(a=function(d,m){return n.call(this,d,m,e)}));const u=c.call(i,a,s);return l&&r?r(u):u}function no(e,t,n,s){const r=_s(e);let o=n;return r!==e&&(Qe(e)?n.length>3&&(o=function(i,l,c){return n.call(this,i,l,c,e)}):o=function(i,l,c){return n.call(this,i,Ie(l),c,e)}),r[t](o,...s)}function Hs(e,t,n){const s=ne(e);Oe(s,"iterate",In);const r=s[t](...n);return(r===-1||r===!1)&&jr(n[0])?(n[0]=ne(n[0]),s[t](...n)):r}function bn(e,t,n=[]){Mt(),kr();const s=ne(e)[t].apply(e,n);return Tr(),Lt(),s}const Ra=Sr("__proto__,__v_isRef,__isVue"),Ci=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(pt));function ka(e){pt(e)||(e=String(e));const t=ne(this);return Oe(t,"has",e),t.hasOwnProperty(e)}class Ai{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?Fa:Oi:o?Ti:ki).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=H(t);if(!r){let c;if(i&&(c=Ca[n]))return c;if(n==="hasOwnProperty")return ka}const l=Reflect.get(t,n,je(t)?t:s);return(pt(n)?Ci.has(n):Ra(n))||(r||Oe(t,"get",n),o)?l:je(l)?i&&Rr(n)?l:l.value:pe(l)?r?Pi(l):Nn(l):l}}class Ri extends Ai{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._isShallow){const c=Vt(o);if(!Qe(s)&&!Vt(s)&&(o=ne(o),s=ne(s)),!H(t)&&je(o)&&!je(s))return c?!1:(o.value=s,!0)}const i=H(t)&&Rr(n)?Number(n)e,Wn=e=>Reflect.getPrototypeOf(e);function $a(e,t,n){return function(...s){const r=this.__v_raw,o=ne(r),i=nn(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,a=r[e](...s),u=n?ir:t?lr:Ie;return!t&&Oe(o,"iterate",c?or:Ht),{next(){const{value:d,done:m}=a.next();return m?{value:d,done:m}:{value:l?[u(d[0]),u(d[1])]:u(d),done:m}},[Symbol.iterator](){return this}}}}function Qn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ja(e,t){const n={get(r){const o=this.__v_raw,i=ne(o),l=ne(r);e||($t(r,l)&&Oe(i,"get",r),Oe(i,"get",l));const{has:c}=Wn(i),a=t?ir:e?lr:Ie;if(c.call(i,r))return a(o.get(r));if(c.call(i,l))return a(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&Oe(ne(r),"iterate",Ht),Reflect.get(r,"size",r)},has(r){const o=this.__v_raw,i=ne(o),l=ne(r);return e||($t(r,l)&&Oe(i,"has",r),Oe(i,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const i=this,l=i.__v_raw,c=ne(l),a=t?ir:e?lr:Ie;return!e&&Oe(c,"iterate",Ht),l.forEach((u,d)=>r.call(o,a(u),a(d),i))}};return Re(n,e?{add:Qn("add"),set:Qn("set"),delete:Qn("delete"),clear:Qn("clear")}:{add(r){!t&&!Qe(r)&&!Vt(r)&&(r=ne(r));const o=ne(this);return Wn(o).has.call(o,r)||(o.add(r),wt(o,"add",r,r)),this},set(r,o){!t&&!Qe(o)&&!Vt(o)&&(o=ne(o));const i=ne(this),{has:l,get:c}=Wn(i);let a=l.call(i,r);a||(r=ne(r),a=l.call(i,r));const u=c.call(i,r);return i.set(r,o),a?$t(o,u)&&wt(i,"set",r,o):wt(i,"add",r,o),this},delete(r){const o=ne(this),{has:i,get:l}=Wn(o);let c=i.call(o,r);c||(r=ne(r),c=i.call(o,r)),l&&l.call(o,r);const a=o.delete(r);return c&&wt(o,"delete",r,void 0),a},clear(){const r=ne(this),o=r.size!==0,i=r.clear();return o&&wt(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=$a(r,e,t)}),n}function Pr(e,t){const n=ja(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(se(n,r)&&r in s?n:s,r,o)}const Ma={get:Pr(!1,!1)},La={get:Pr(!1,!0)},Da={get:Pr(!0,!1)};const ki=new WeakMap,Ti=new WeakMap,Oi=new WeakMap,Fa=new WeakMap;function Ba(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Na(e){return e.__v_skip||!Object.isExtensible(e)?0:Ba(ua(e))}function Nn(e){return Vt(e)?e:$r(e,!1,Oa,Ma,ki)}function Ii(e){return $r(e,!1,Pa,La,Ti)}function Pi(e){return $r(e,!0,Ia,Da,Oi)}function $r(e,t,n,s,r){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=Na(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function sn(e){return Vt(e)?sn(e.__v_raw):!!(e&&e.__v_isReactive)}function Vt(e){return!!(e&&e.__v_isReadonly)}function Qe(e){return!!(e&&e.__v_isShallow)}function jr(e){return e?!!e.__v_raw:!1}function ne(e){const t=e&&e.__v_raw;return t?ne(t):e}function Ua(e){return!se(e,"__v_skip")&&Object.isExtensible(e)&&pi(e,"__v_skip",!0),e}const Ie=e=>pe(e)?Nn(e):e,lr=e=>pe(e)?Pi(e):e;function je(e){return e?e.__v_isRef===!0:!1}function J(e){return $i(e,!1)}function za(e){return $i(e,!0)}function $i(e,t){return je(e)?e:new Ha(e,t)}class Ha{constructor(t,n){this.dep=new Ir,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ne(t),this._value=n?t:Ie(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Qe(t)||Vt(t);t=s?t:ne(t),$t(t,n)&&(this._rawValue=t,this._value=s?t:Ie(t),this.dep.trigger())}}function Ee(e){return je(e)?e.value:e}const qa={get:(e,t,n)=>t==="__v_raw"?e:Ee(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return je(r)&&!je(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function ji(e){return sn(e)?e:new Proxy(e,qa)}class Va{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ir(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=On-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&de!==this)return yi(this,!0),!0}get value(){const t=this.dep.track();return wi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ka(e,t,n=!1){let s,r;return K(e)?s=e:(s=e.get,r=e.set),new Va(s,r,n)}const Gn={},rs=new WeakMap;let Nt;function Wa(e,t=!1,n=Nt){if(n){let s=rs.get(n);s||rs.set(n,s=[]),s.push(e)}}function Qa(e,t,n=ue){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:c}=n,a=j=>r?j:Qe(j)||r===!1||r===0?Et(j,1):Et(j);let u,d,m,g,v=!1,w=!1;if(je(e)?(d=()=>e.value,v=Qe(e)):sn(e)?(d=()=>a(e),v=!0):H(e)?(w=!0,v=e.some(j=>sn(j)||Qe(j)),d=()=>e.map(j=>{if(je(j))return j.value;if(sn(j))return a(j);if(K(j))return c?c(j,2):j()})):K(e)?t?d=c?()=>c(e,2):e:d=()=>{if(m){Mt();try{m()}finally{Lt()}}const j=Nt;Nt=u;try{return c?c(e,3,[g]):e(g)}finally{Nt=j}}:d=dt,t&&r){const j=d,V=r===!0?1/0:r;d=()=>Et(j(),V)}const x=wa(),R=()=>{u.stop(),x&&x.active&&Ar(x.effects,u)};if(o&&t){const j=t;t=(...V)=>{j(...V),R()}}let O=w?new Array(e.length).fill(Gn):Gn;const I=j=>{if(!(!(u.flags&1)||!u.dirty&&!j))if(t){const V=u.run();if(r||v||(w?V.some((ee,Z)=>$t(ee,O[Z])):$t(V,O))){m&&m();const ee=Nt;Nt=u;try{const Z=[V,O===Gn?void 0:w&&O[0]===Gn?[]:O,g];c?c(t,3,Z):t(...Z),O=V}finally{Nt=ee}}}else u.run()};return l&&l(I),u=new bi(d),u.scheduler=i?()=>i(I,!1):I,g=j=>Wa(j,!1,u),m=u.onStop=()=>{const j=rs.get(u);if(j){if(c)c(j,4);else for(const V of j)V();rs.delete(u)}},t?s?I(!0):O=u.run():i?i(I.bind(null,!0),!0):u.run(),R.pause=u.pause.bind(u),R.resume=u.resume.bind(u),R.stop=R,R}function Et(e,t=1/0,n){if(t<=0||!pe(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,je(e))Et(e.value,t,n);else if(H(e))for(let s=0;s{Et(s,t,n)});else if(di(e)){for(const s in e)Et(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Et(e[s],t,n)}return e}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Un(e,t,n,s){try{return s?e(...s):e()}catch(r){ws(r,t,n)}}function ht(e,t,n,s){if(K(e)){const r=Un(e,t,n,s);return r&&ui(r)&&r.catch(o=>{ws(o,t,n)}),r}if(H(e)){const r=[];for(let o=0;o>>1,r=Le[s],o=Pn(r);o=Pn(n)?Le.push(e):Le.splice(Ja(t),0,e),e.flags|=1,Li()}}function Li(){os||(os=Mi.then(Fi))}function Za(e){H(e)?rn.push(...e):kt&&e.id===-1?kt.splice(Xt+1,0,e):e.flags&1||(rn.push(e),e.flags|=1),Li()}function so(e,t,n=ct+1){for(;nPn(n)-Pn(s));if(rn.length=0,kt){kt.push(...t);return}for(kt=t,Xt=0;Xte.id==null?e.flags&2?-1:1/0:e.id;function Fi(e){try{for(ct=0;ct{s._d&&po(-1);const o=is(t);let i;try{i=e(...r)}finally{is(o),s._d&&po(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Ae(e,t){if(qe===null)return e;const n=As(qe),s=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport;function Dr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Dr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Ni(e,t){return K(e)?Re({name:e.name},t,{setup:e}):e}function Ui(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ls(e,t,n,s,r=!1){if(H(e)){e.forEach((v,w)=>ls(v,t&&(H(t)?t[w]:t),n,s,r));return}if(Cn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&ls(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?As(s.component):s.el,i=r?null:o,{i:l,r:c}=e,a=t&&t.r,u=l.refs===ue?l.refs={}:l.refs,d=l.setupState,m=ne(d),g=d===ue?()=>!1:v=>se(m,v);if(a!=null&&a!==c&&(_e(a)?(u[a]=null,g(a)&&(d[a]=null)):je(a)&&(a.value=null)),K(c))Un(c,l,12,[i,u]);else{const v=_e(c),w=je(c);if(v||w){const x=()=>{if(e.f){const R=v?g(c)?d[c]:u[c]:c.value;r?H(R)&&Ar(R,o):H(R)?R.includes(o)||R.push(o):v?(u[c]=[o],g(c)&&(d[c]=u[c])):(c.value=[o],e.k&&(u[e.k]=c.value))}else v?(u[c]=i,g(c)&&(d[c]=i)):w&&(c.value=i,e.k&&(u[e.k]=i))};i?(x.id=-1,ze(x,n)):x()}}}ys().requestIdleCallback;ys().cancelIdleCallback;const Cn=e=>!!e.type.__asyncLoader,zi=e=>e.type.__isKeepAlive;function ec(e,t){Hi(e,"a",t)}function tc(e,t){Hi(e,"da",t)}function Hi(e,t,n=Pe){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Es(t,s,n),n){let r=n.parent;for(;r&&r.parent;)zi(r.parent.vnode)&&nc(s,t,n,r),r=r.parent}}function nc(e,t,n,s){const r=Es(t,e,s,!0);Vi(()=>{Ar(s[t],r)},n)}function Es(e,t,n=Pe,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Mt();const l=zn(n),c=ht(t,n,e,i);return l(),Lt(),c});return s?r.unshift(o):r.push(o),o}}const St=e=>(t,n=Pe)=>{(!jn||e==="sp")&&Es(e,(...s)=>t(...s),n)},sc=St("bm"),gt=St("m"),rc=St("bu"),oc=St("u"),qi=St("bum"),Vi=St("um"),ic=St("sp"),lc=St("rtg"),ac=St("rtc");function cc(e,t=Pe){Es("ec",e,t)}const uc="components";function he(e,t){return dc(uc,e,!0,t)||e}const fc=Symbol.for("v-ndc");function dc(e,t,n=!0,s=!1){const r=qe||Pe;if(r){const o=r.type;{const l=Xc(o,!1);if(l&&(l===t||l===Ge(t)||l===xs(Ge(t))))return o}const i=ro(r[e]||o[e],t)||ro(r.appContext[e],t);return!i&&s?o:i}}function ro(e,t){return e&&(e[t]||e[Ge(t)]||e[xs(Ge(t))])}function xe(e,t,n,s){let r;const o=n,i=H(e);if(i||_e(e)){const l=i&&sn(e);let c=!1;l&&(c=!Qe(e),e=_s(e)),r=new Array(e.length);for(let a=0,u=e.length;at(l,c,void 0,o));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,a=l.length;ce?ul(e)?As(e):ar(e.parent):null,An=Re(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ar(e.parent),$root:e=>ar(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Fr(e),$forceUpdate:e=>e.f||(e.f=()=>{Lr(e.update)}),$nextTick:e=>e.n||(e.n=Mr.bind(e.proxy)),$watch:e=>jc.bind(e)}),qs=(e,t)=>e!==ue&&!e.__isScriptSetup&&se(e,t),pc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:c}=e;let a;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(qs(s,t))return i[t]=1,s[t];if(r!==ue&&se(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&se(a,t))return i[t]=3,o[t];if(n!==ue&&se(n,t))return i[t]=4,n[t];cr&&(i[t]=0)}}const u=An[t];let d,m;if(u)return t==="$attrs"&&Oe(e.attrs,"get",""),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==ue&&se(n,t))return i[t]=4,n[t];if(m=c.config.globalProperties,se(m,t))return m[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return qs(r,t)?(r[t]=n,!0):s!==ue&&se(s,t)?(s[t]=n,!0):se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==ue&&se(e,i)||qs(t,i)||(l=o[0])&&se(l,i)||se(s,i)||se(An,i)||se(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:se(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function oo(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let cr=!0;function hc(e){const t=Fr(e),n=e.proxy,s=e.ctx;cr=!1,t.beforeCreate&&io(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:a,created:u,beforeMount:d,mounted:m,beforeUpdate:g,updated:v,activated:w,deactivated:x,beforeDestroy:R,beforeUnmount:O,destroyed:I,unmounted:j,render:V,renderTracked:ee,renderTriggered:Z,errorCaptured:we,serverPrefetch:Je,expose:st,inheritAttrs:Ct,components:Dt,directives:rt,filters:mn}=t;if(a&&mc(a,s,null),i)for(const ae in i){const te=i[ae];K(te)&&(s[ae]=te.bind(n))}if(r){const ae=r.call(n,n);pe(ae)&&(e.data=Nn(ae))}if(cr=!0,o)for(const ae in o){const te=o[ae],xt=K(te)?te.bind(n,n):K(te.get)?te.get.bind(n,n):dt,At=!K(te)&&K(te.set)?te.set.bind(n):dt,ot=Ye({get:xt,set:At});Object.defineProperty(s,ae,{enumerable:!0,configurable:!0,get:()=>ot.value,set:De=>ot.value=De})}if(l)for(const ae in l)Ki(l[ae],s,n,ae);if(c){const ae=K(c)?c.call(n):c;Reflect.ownKeys(ae).forEach(te=>{Zn(te,ae[te])})}u&&io(u,e,"c");function Ce(ae,te){H(te)?te.forEach(xt=>ae(xt.bind(n))):te&&ae(te.bind(n))}if(Ce(sc,d),Ce(gt,m),Ce(rc,g),Ce(oc,v),Ce(ec,w),Ce(tc,x),Ce(cc,we),Ce(ac,ee),Ce(lc,Z),Ce(qi,O),Ce(Vi,j),Ce(ic,Je),H(st))if(st.length){const ae=e.exposed||(e.exposed={});st.forEach(te=>{Object.defineProperty(ae,te,{get:()=>n[te],set:xt=>n[te]=xt})})}else e.exposed||(e.exposed={});V&&e.render===dt&&(e.render=V),Ct!=null&&(e.inheritAttrs=Ct),Dt&&(e.components=Dt),rt&&(e.directives=rt),Je&&Ui(e)}function mc(e,t,n=dt){H(e)&&(e=ur(e));for(const s in e){const r=e[s];let o;pe(r)?"default"in r?o=et(r.from||s,r.default,!0):o=et(r.from||s):o=et(r),je(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function io(e,t,n){ht(H(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ki(e,t,n,s){let r=s.includes(".")?ol(n,s):()=>n[s];if(_e(e)){const o=t[e];K(o)&&ln(r,o)}else if(K(e))ln(r,e.bind(n));else if(pe(e))if(H(e))e.forEach(o=>Ki(o,t,n,s));else{const o=K(e.handler)?e.handler.bind(n):t[e.handler];K(o)&&ln(r,o,e)}}function Fr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(a=>as(c,a,i,!0)),as(c,t,i)),pe(t)&&o.set(t,c),c}function as(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&as(e,o,n,!0),r&&r.forEach(i=>as(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=gc[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const gc={data:lo,props:ao,emits:ao,methods:_n,computed:_n,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:_n,directives:_n,watch:xc,provide:lo,inject:bc};function lo(e,t){return t?e?function(){return Re(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function bc(e,t){return _n(ur(e),ur(t))}function ur(e){if(H(e)){const t={};for(let n=0;n1)return n&&K(t)?t.call(s&&s.proxy):t}}const Qi={},Gi=()=>Object.create(Qi),Ji=e=>Object.getPrototypeOf(e)===Qi;function _c(e,t,n,s=!1){const r={},o=Gi();e.propsDefaults=Object.create(null),Zi(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:Ii(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function wc(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=ne(r),[c]=e.propsOptions;let a=!1;if((s||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d{c=!0;const[m,g]=Yi(d,t,!0);Re(i,m),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!c)return pe(e)&&s.set(e,tn),tn;if(H(o))for(let u=0;ue[0]==="_"||e==="$stable",Br=e=>H(e)?e.map(ut):[ut(e)],Sc=(e,t,n)=>{if(t._n)return t;const s=ge((...r)=>Br(t(...r)),n);return s._c=!1,s},el=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Xi(r))continue;const o=e[r];if(K(o))t[r]=Sc(r,o,s);else if(o!=null){const i=Br(o);t[r]=()=>i}}},tl=(e,t)=>{const n=Br(t);e.slots.default=()=>n},nl=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},Cc=(e,t,n)=>{const s=e.slots=Gi();if(e.vnode.shapeFlag&32){const r=t._;r?(nl(s,t,n),n&&pi(s,"_",r,!0)):el(t,s)}else t&&tl(e,t)},Ac=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=ue;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:nl(r,t,n):(o=!t.$stable,el(t,r)),i=t}else t&&(tl(e,t),i={default:1});if(o)for(const l in r)!Xi(l)&&i[l]==null&&delete r[l]},ze=Uc;function Rc(e){return kc(e)}function kc(e,t){const n=ys();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:a,setElementText:u,parentNode:d,nextSibling:m,setScopeId:g=dt,insertStaticContent:v}=e,w=(p,h,b,A=null,E=null,k=null,M=void 0,$=null,P=!!h.dynamicChildren)=>{if(p===h)return;p&&!xn(p,h)&&(A=S(p),De(p,E,k,!0),p=null),h.patchFlag===-2&&(P=!1,h.dynamicChildren=null);const{type:T,ref:z,shapeFlag:F}=h;switch(T){case Cs:x(p,h,b,A);break;case Kt:R(p,h,b,A);break;case Ws:p==null&&O(h,b,A,M);break;case Q:Dt(p,h,b,A,E,k,M,$,P);break;default:F&1?V(p,h,b,A,E,k,M,$,P):F&6?rt(p,h,b,A,E,k,M,$,P):(F&64||F&128)&&T.process(p,h,b,A,E,k,M,$,P,N)}z!=null&&E&&ls(z,p&&p.ref,k,h||p,!h)},x=(p,h,b,A)=>{if(p==null)s(h.el=l(h.children),b,A);else{const E=h.el=p.el;h.children!==p.children&&a(E,h.children)}},R=(p,h,b,A)=>{p==null?s(h.el=c(h.children||""),b,A):h.el=p.el},O=(p,h,b,A)=>{[p.el,p.anchor]=v(p.children,h,b,A,p.el,p.anchor)},I=({el:p,anchor:h},b,A)=>{let E;for(;p&&p!==h;)E=m(p),s(p,b,A),p=E;s(h,b,A)},j=({el:p,anchor:h})=>{let b;for(;p&&p!==h;)b=m(p),r(p),p=b;r(h)},V=(p,h,b,A,E,k,M,$,P)=>{h.type==="svg"?M="svg":h.type==="math"&&(M="mathml"),p==null?ee(h,b,A,E,k,M,$,P):Je(p,h,E,k,M,$,P)},ee=(p,h,b,A,E,k,M,$)=>{let P,T;const{props:z,shapeFlag:F,transition:U,dirs:q}=p;if(P=p.el=i(p.type,k,z&&z.is,z),F&8?u(P,p.children):F&16&&we(p.children,P,null,A,E,Vs(p,k),M,$),q&&Ft(p,null,A,"created"),Z(P,p,p.scopeId,M,A),z){for(const fe in z)fe!=="value"&&!wn(fe)&&o(P,fe,null,z[fe],k,A);"value"in z&&o(P,"value",null,z.value,k),(T=z.onVnodeBeforeMount)&<(T,A,p)}q&&Ft(p,null,A,"beforeMount");const Y=Tc(E,U);Y&&U.beforeEnter(P),s(P,h,b),((T=z&&z.onVnodeMounted)||Y||q)&&ze(()=>{T&<(T,A,p),Y&&U.enter(P),q&&Ft(p,null,A,"mounted")},E)},Z=(p,h,b,A,E)=>{if(b&&g(p,b),A)for(let k=0;k{for(let T=P;T{const $=h.el=p.el;let{patchFlag:P,dynamicChildren:T,dirs:z}=h;P|=p.patchFlag&16;const F=p.props||ue,U=h.props||ue;let q;if(b&&Bt(b,!1),(q=U.onVnodeBeforeUpdate)&<(q,b,h,p),z&&Ft(h,p,b,"beforeUpdate"),b&&Bt(b,!0),(F.innerHTML&&U.innerHTML==null||F.textContent&&U.textContent==null)&&u($,""),T?st(p.dynamicChildren,T,$,b,A,Vs(h,E),k):M||te(p,h,$,null,b,A,Vs(h,E),k,!1),P>0){if(P&16)Ct($,F,U,b,E);else if(P&2&&F.class!==U.class&&o($,"class",null,U.class,E),P&4&&o($,"style",F.style,U.style,E),P&8){const Y=h.dynamicProps;for(let fe=0;fe{q&<(q,b,h,p),z&&Ft(h,p,b,"updated")},A)},st=(p,h,b,A,E,k,M)=>{for(let $=0;${if(h!==b){if(h!==ue)for(const k in h)!wn(k)&&!(k in b)&&o(p,k,h[k],null,E,A);for(const k in b){if(wn(k))continue;const M=b[k],$=h[k];M!==$&&k!=="value"&&o(p,k,$,M,E,A)}"value"in b&&o(p,"value",h.value,b.value,E)}},Dt=(p,h,b,A,E,k,M,$,P)=>{const T=h.el=p?p.el:l(""),z=h.anchor=p?p.anchor:l("");let{patchFlag:F,dynamicChildren:U,slotScopeIds:q}=h;q&&($=$?$.concat(q):q),p==null?(s(T,b,A),s(z,b,A),we(h.children||[],b,z,E,k,M,$,P)):F>0&&F&64&&U&&p.dynamicChildren?(st(p.dynamicChildren,U,b,E,k,M,$),(h.key!=null||E&&h===E.subTree)&&sl(p,h,!0)):te(p,h,b,z,E,k,M,$,P)},rt=(p,h,b,A,E,k,M,$,P)=>{h.slotScopeIds=$,p==null?h.shapeFlag&512?E.ctx.activate(h,b,A,M,P):mn(h,b,A,E,k,M,P):Gt(p,h,P)},mn=(p,h,b,A,E,k,M)=>{const $=p.component=Qc(p,A,E);if(zi(p)&&($.ctx.renderer=N),Gc($,!1,M),$.asyncDep){if(E&&E.registerDep($,Ce,M),!p.el){const P=$.subTree=L(Kt);R(null,P,h,b)}}else Ce($,p,h,b,E,k,M)},Gt=(p,h,b)=>{const A=h.component=p.component;if(Bc(p,h,b))if(A.asyncDep&&!A.asyncResolved){ae(A,h,b);return}else A.next=h,A.update();else h.el=p.el,A.vnode=h},Ce=(p,h,b,A,E,k,M)=>{const $=()=>{if(p.isMounted){let{next:F,bu:U,u:q,parent:Y,vnode:fe}=p;{const Ne=rl(p);if(Ne){F&&(F.el=fe.el,ae(p,F,M)),Ne.asyncDep.then(()=>{p.isUnmounted||$()});return}}let oe=F,Be;Bt(p,!1),F?(F.el=fe.el,ae(p,F,M)):F=fe,U&&Jn(U),(Be=F.props&&F.props.onVnodeBeforeUpdate)&<(Be,Y,F,fe),Bt(p,!0);const Te=Ks(p),Ze=p.subTree;p.subTree=Te,w(Ze,Te,d(Ze.el),S(Ze),p,E,k),F.el=Te.el,oe===null&&Nc(p,Te.el),q&&ze(q,E),(Be=F.props&&F.props.onVnodeUpdated)&&ze(()=>lt(Be,Y,F,fe),E)}else{let F;const{el:U,props:q}=h,{bm:Y,m:fe,parent:oe,root:Be,type:Te}=p,Ze=Cn(h);if(Bt(p,!1),Y&&Jn(Y),!Ze&&(F=q&&q.onVnodeBeforeMount)&<(F,oe,h),Bt(p,!0),U&&be){const Ne=()=>{p.subTree=Ks(p),be(U,p.subTree,p,E,null)};Ze&&Te.__asyncHydrate?Te.__asyncHydrate(U,p,Ne):Ne()}else{Be.ce&&Be.ce._injectChildStyle(Te);const Ne=p.subTree=Ks(p);w(null,Ne,b,A,p,E,k),h.el=Ne.el}if(fe&&ze(fe,E),!Ze&&(F=q&&q.onVnodeMounted)){const Ne=h;ze(()=>lt(F,oe,Ne),E)}(h.shapeFlag&256||oe&&Cn(oe.vnode)&&oe.vnode.shapeFlag&256)&&p.a&&ze(p.a,E),p.isMounted=!0,h=b=A=null}};p.scope.on();const P=p.effect=new bi($);p.scope.off();const T=p.update=P.run.bind(P),z=p.job=P.runIfDirty.bind(P);z.i=p,z.id=p.uid,P.scheduler=()=>Lr(z),Bt(p,!0),T()},ae=(p,h,b)=>{h.component=p;const A=p.vnode.props;p.vnode=h,p.next=null,wc(p,h.props,A,b),Ac(p,h.children,b),Mt(),so(p),Lt()},te=(p,h,b,A,E,k,M,$,P=!1)=>{const T=p&&p.children,z=p?p.shapeFlag:0,F=h.children,{patchFlag:U,shapeFlag:q}=h;if(U>0){if(U&128){At(T,F,b,A,E,k,M,$,P);return}else if(U&256){xt(T,F,b,A,E,k,M,$,P);return}}q&8?(z&16&&We(T,E,k),F!==T&&u(b,F)):z&16?q&16?At(T,F,b,A,E,k,M,$,P):We(T,E,k,!0):(z&8&&u(b,""),q&16&&we(F,b,A,E,k,M,$,P))},xt=(p,h,b,A,E,k,M,$,P)=>{p=p||tn,h=h||tn;const T=p.length,z=h.length,F=Math.min(T,z);let U;for(U=0;Uz?We(p,E,k,!0,!1,F):we(h,b,A,E,k,M,$,P,F)},At=(p,h,b,A,E,k,M,$,P)=>{let T=0;const z=h.length;let F=p.length-1,U=z-1;for(;T<=F&&T<=U;){const q=p[T],Y=h[T]=P?Tt(h[T]):ut(h[T]);if(xn(q,Y))w(q,Y,b,null,E,k,M,$,P);else break;T++}for(;T<=F&&T<=U;){const q=p[F],Y=h[U]=P?Tt(h[U]):ut(h[U]);if(xn(q,Y))w(q,Y,b,null,E,k,M,$,P);else break;F--,U--}if(T>F){if(T<=U){const q=U+1,Y=qU)for(;T<=F;)De(p[T],E,k,!0),T++;else{const q=T,Y=T,fe=new Map;for(T=Y;T<=U;T++){const Ue=h[T]=P?Tt(h[T]):ut(h[T]);Ue.key!=null&&fe.set(Ue.key,T)}let oe,Be=0;const Te=U-Y+1;let Ze=!1,Ne=0;const gn=new Array(Te);for(T=0;T=Te){De(Ue,E,k,!0);continue}let it;if(Ue.key!=null)it=fe.get(Ue.key);else for(oe=Y;oe<=U;oe++)if(gn[oe-Y]===0&&xn(Ue,h[oe])){it=oe;break}it===void 0?De(Ue,E,k,!0):(gn[it-Y]=T+1,it>=Ne?Ne=it:Ze=!0,w(Ue,h[it],b,null,E,k,M,$,P),Be++)}const Zr=Ze?Oc(gn):tn;for(oe=Zr.length-1,T=Te-1;T>=0;T--){const Ue=Y+T,it=h[Ue],Yr=Ue+1{const{el:k,type:M,transition:$,children:P,shapeFlag:T}=p;if(T&6){ot(p.component.subTree,h,b,A);return}if(T&128){p.suspense.move(h,b,A);return}if(T&64){M.move(p,h,b,N);return}if(M===Q){s(k,h,b);for(let F=0;F$.enter(k),E);else{const{leave:F,delayLeave:U,afterLeave:q}=$,Y=()=>s(k,h,b),fe=()=>{F(k,()=>{Y(),q&&q()})};U?U(k,Y,fe):fe()}else s(k,h,b)},De=(p,h,b,A=!1,E=!1)=>{const{type:k,props:M,ref:$,children:P,dynamicChildren:T,shapeFlag:z,patchFlag:F,dirs:U,cacheIndex:q}=p;if(F===-2&&(E=!1),$!=null&&ls($,null,b,p,!0),q!=null&&(h.renderCache[q]=void 0),z&256){h.ctx.deactivate(p);return}const Y=z&1&&U,fe=!Cn(p);let oe;if(fe&&(oe=M&&M.onVnodeBeforeUnmount)&<(oe,h,p),z&6)Kn(p.component,b,A);else{if(z&128){p.suspense.unmount(b,A);return}Y&&Ft(p,null,h,"beforeUnmount"),z&64?p.type.remove(p,h,b,N,A):T&&!T.hasOnce&&(k!==Q||F>0&&F&64)?We(T,h,b,!1,!0):(k===Q&&F&384||!E&&z&16)&&We(P,h,b),A&&Jt(p)}(fe&&(oe=M&&M.onVnodeUnmounted)||Y)&&ze(()=>{oe&<(oe,h,p),Y&&Ft(p,null,h,"unmounted")},b)},Jt=p=>{const{type:h,el:b,anchor:A,transition:E}=p;if(h===Q){Zt(b,A);return}if(h===Ws){j(p);return}const k=()=>{r(b),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(p.shapeFlag&1&&E&&!E.persisted){const{leave:M,delayLeave:$}=E,P=()=>M(b,k);$?$(p.el,k,P):P()}else k()},Zt=(p,h)=>{let b;for(;p!==h;)b=m(p),r(p),p=b;r(h)},Kn=(p,h,b)=>{const{bum:A,scope:E,job:k,subTree:M,um:$,m:P,a:T}=p;uo(P),uo(T),A&&Jn(A),E.stop(),k&&(k.flags|=8,De(M,p,h,b)),$&&ze($,h),ze(()=>{p.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},We=(p,h,b,A=!1,E=!1,k=0)=>{for(let M=k;M{if(p.shapeFlag&6)return S(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const h=m(p.anchor||p.el),b=h&&h[Ya];return b?m(b):h};let B=!1;const D=(p,h,b)=>{p==null?h._vnode&&De(h._vnode,null,null,!0):w(h._vnode||null,p,h,null,null,null,b),h._vnode=p,B||(B=!0,so(),Di(),B=!1)},N={p:w,um:De,m:ot,r:Jt,mt:mn,mc:we,pc:te,pbc:st,n:S,o:e};let re,be;return{render:D,hydrate:re,createApp:vc(D,re)}}function Vs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Bt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Tc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function sl(e,t,n=!1){const s=e.children,r=t.children;if(H(s)&&H(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function rl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:rl(t)}function uo(e){if(e)for(let t=0;tet(Ic);function $c(e,t){return Nr(e,null,t)}function ln(e,t,n){return Nr(e,t,n)}function Nr(e,t,n=ue){const{immediate:s,deep:r,flush:o,once:i}=n,l=Re({},n),c=t&&s||!t&&o!=="post";let a;if(jn){if(o==="sync"){const g=Pc();a=g.__watcherHandles||(g.__watcherHandles=[])}else if(!c){const g=()=>{};return g.stop=dt,g.resume=dt,g.pause=dt,g}}const u=Pe;l.call=(g,v,w)=>ht(g,u,v,w);let d=!1;o==="post"?l.scheduler=g=>{ze(g,u&&u.suspense)}:o!=="sync"&&(d=!0,l.scheduler=(g,v)=>{v?g():Lr(g)}),l.augmentJob=g=>{t&&(g.flags|=4),d&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const m=Qa(e,t,l);return jn&&(a?a.push(m):c&&m()),m}function jc(e,t,n){const s=this.proxy,r=_e(e)?e.includes(".")?ol(s,e):()=>s[e]:e.bind(s,s);let o;K(t)?o=t:(o=t.handler,n=t);const i=zn(this),l=Nr(r,o.bind(s),n);return i(),l}function ol(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ge(t)}Modifiers`]||e[`${jt(t)}Modifiers`];function Lc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ue;let r=n;const o=t.startsWith("update:"),i=o&&Mc(s,t.slice(7));i&&(i.trim&&(r=n.map(u=>_e(u)?u.trim():u)),i.number&&(r=n.map(ss)));let l,c=s[l=Bs(t)]||s[l=Bs(Ge(t))];!c&&o&&(c=s[l=Bs(jt(t))]),c&&ht(c,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ht(a,e,6,r)}}function il(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!K(e)){const c=a=>{const u=il(a,t,!0);u&&(l=!0,Re(i,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(pe(e)&&s.set(e,null),null):(H(o)?o.forEach(c=>i[c]=null):Re(i,o),pe(e)&&s.set(e,i),i)}function Ss(e,t){return!e||!ms(t)?!1:(t=t.slice(2).replace(/Once$/,""),se(e,t[0].toLowerCase()+t.slice(1))||se(e,jt(t))||se(e,t))}function Ks(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:c,render:a,renderCache:u,props:d,data:m,setupState:g,ctx:v,inheritAttrs:w}=e,x=is(e);let R,O;try{if(n.shapeFlag&4){const j=r||s,V=j;R=ut(a.call(V,j,u,d,g,m,v)),O=l}else{const j=t;R=ut(j.length>1?j(d,{attrs:l,slots:i,emit:c}):j(d,null)),O=t.props?l:Dc(l)}}catch(j){Rn.length=0,ws(j,e,1),R=L(Kt)}let I=R;if(O&&w!==!1){const j=Object.keys(O),{shapeFlag:V}=I;j.length&&V&7&&(o&&j.some(Cr)&&(O=Fc(O,o)),I=cn(I,O,!1,!0))}return n.dirs&&(I=cn(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(n.dirs):n.dirs),n.transition&&Dr(I,n.transition),R=I,is(x),R}const Dc=e=>{let t;for(const n in e)(n==="class"||n==="style"||ms(n))&&((t||(t={}))[n]=e[n]);return t},Fc=(e,t)=>{const n={};for(const s in e)(!Cr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Bc(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?fo(s,i,a):!!i;if(c&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function Uc(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):Za(e)}const Q=Symbol.for("v-fgt"),Cs=Symbol.for("v-txt"),Kt=Symbol.for("v-cmt"),Ws=Symbol.for("v-stc"),Rn=[];let Ve=null;function _(e=!1){Rn.push(Ve=e?null:[])}function zc(){Rn.pop(),Ve=Rn[Rn.length-1]||null}let $n=1;function po(e,t=!1){$n+=e,e<0&&Ve&&t&&(Ve.hasOnce=!0)}function al(e){return e.dynamicChildren=$n>0?Ve||tn:null,zc(),$n>0&&Ve&&Ve.push(e),e}function C(e,t,n,s,r,o){return al(f(e,t,n,s,r,o,!0))}function ke(e,t,n,s,r){return al(L(e,t,n,s,r,!0))}function cs(e){return e?e.__v_isVNode===!0:!1}function xn(e,t){return e.type===t.type&&e.key===t.key}const cl=({key:e})=>e??null,Yn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||je(e)||K(e)?{i:qe,r:e,k:t,f:!!n}:e:null);function f(e,t=null,n=null,s=0,r=null,o=e===Q?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cl(t),ref:t&&Yn(t),scopeId:Bi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:qe};return l?(Ur(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=_e(n)?8:16),$n>0&&!i&&Ve&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ve.push(c),c}const L=Hc;function Hc(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===fc)&&(e=Kt),cs(e)){const l=cn(e,t,!0);return n&&Ur(l,n),$n>0&&!o&&Ve&&(l.shapeFlag&6?Ve[Ve.indexOf(e)]=l:Ve.push(l)),l.patchFlag=-2,l}if(eu(e)&&(e=e.__vccOpts),t){t=qc(t);let{class:l,style:c}=t;l&&!_e(l)&&(t.class=X(l)),pe(c)&&(jr(c)&&!H(c)&&(c=Re({},c)),t.style=Bn(c))}const i=_e(e)?1:ll(e)?128:Xa(e)?64:pe(e)?4:K(e)?2:0;return f(e,t,n,s,r,i,o,!0)}function qc(e){return e?jr(e)||Ji(e)?Re({},e):e:null}function cn(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:c}=e,a=t?Vc(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&cl(a),ref:t&&t.ref?n&&o?H(o)?o.concat(Yn(t)):[o,Yn(t)]:Yn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Q?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cn(e.ssContent),ssFallback:e.ssFallback&&cn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Dr(u,c.clone(u)),u}function ve(e=" ",t=0){return L(Cs,null,e,t)}function ye(e="",t=!1){return t?(_(),ke(Kt,null,e)):L(Kt,null,e)}function ut(e){return e==null||typeof e=="boolean"?L(Kt):H(e)?L(Q,null,e.slice()):cs(e)?Tt(e):L(Cs,null,String(e))}function Tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:cn(e)}function Ur(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Ur(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Ji(t)?t._ctx=qe:r===3&&qe&&(qe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:qe},n=32):(t=String(t),s&64?(n=16,t=[ve(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vc(...e){const t={};for(let n=0;n{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};us=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),dr=t("__VUE_SSR_SETTERS__",n=>jn=n)}const zn=e=>{const t=Pe;return us(e),e.scope.on(),()=>{e.scope.off(),us(t)}},ho=()=>{Pe&&Pe.scope.off(),us(null)};function ul(e){return e.vnode.shapeFlag&4}let jn=!1;function Gc(e,t=!1,n=!1){t&&dr(t);const{props:s,children:r}=e.vnode,o=ul(e);_c(e,s,o,t),Cc(e,r,n);const i=o?Jc(e,t):void 0;return t&&dr(!1),i}function Jc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,pc);const{setup:s}=n;if(s){Mt();const r=e.setupContext=s.length>1?Yc(e):null,o=zn(e),i=Un(s,e,0,[e.props,r]),l=ui(i);if(Lt(),o(),(l||e.sp)&&!Cn(e)&&Ui(e),l){if(i.then(ho,ho),t)return i.then(c=>{mo(e,c,t)}).catch(c=>{ws(c,e,0)});e.asyncDep=i}else mo(e,i,t)}else fl(e,t)}function mo(e,t,n){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=ji(t)),fl(e,n)}let go;function fl(e,t,n){const s=e.type;if(!e.render){if(!t&&go&&!s.render){const r=s.template||Fr(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,a=Re(Re({isCustomElement:o,delimiters:l},i),c);s.render=go(r,a)}}e.render=s.render||dt}{const r=zn(e);Mt();try{hc(e)}finally{Lt(),r()}}}const Zc={get(e,t){return Oe(e,"get",""),e[t]}};function Yc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Zc),slots:e.slots,emit:e.emit,expose:t}}function As(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ji(Ua(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in An)return An[n](e)},has(t,n){return n in t||n in An}})):e.proxy}function Xc(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function eu(e){return K(e)&&"__vccOpts"in e}const Ye=(e,t)=>Ka(e,t,jn);function dl(e,t,n){const s=arguments.length;return s===2?pe(t)&&!H(t)?cs(t)?L(e,null,[t]):L(e,t):L(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&cs(n)&&(n=[n]),L(e,t,n))}const tu="3.5.13";/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let pr;const bo=typeof window<"u"&&window.trustedTypes;if(bo)try{pr=bo.createPolicy("vue",{createHTML:e=>e})}catch{}const pl=pr?e=>pr.createHTML(e):e=>e,nu="http://www.w3.org/2000/svg",su="http://www.w3.org/1998/Math/MathML",_t=typeof document<"u"?document:null,xo=_t&&_t.createElement("template"),ru={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?_t.createElementNS(nu,e):t==="mathml"?_t.createElementNS(su,e):n?_t.createElement(e,{is:n}):_t.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>_t.createTextNode(e),createComment:e=>_t.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>_t.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{xo.innerHTML=pl(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=xo.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ou=Symbol("_vtc");function iu(e,t,n){const s=e[ou];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const yo=Symbol("_vod"),lu=Symbol("_vsh"),au=Symbol(""),cu=/(^|;)\s*display\s*:/;function uu(e,t,n){const s=e.style,r=_e(n);let o=!1;if(n&&!r){if(t)if(_e(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&Xn(s,l,"")}else for(const i in t)n[i]==null&&Xn(s,i,"");for(const i in n)i==="display"&&(o=!0),Xn(s,i,n[i])}else if(r){if(t!==n){const i=s[au];i&&(n+=";"+i),s.cssText=n,o=cu.test(n)}}else t&&e.removeAttribute("style");yo in e&&(e[yo]=o?s.display:"",e[lu]&&(s.display="none"))}const vo=/\s*!important$/;function Xn(e,t,n){if(H(n))n.forEach(s=>Xn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=fu(e,t);vo.test(n)?e.setProperty(jt(s),n.replace(vo,""),"important"):e[s]=n}}const _o=["Webkit","Moz","ms"],Qs={};function fu(e,t){const n=Qs[t];if(n)return n;let s=Ge(t);if(s!=="filter"&&s in e)return Qs[t]=s;s=xs(s);for(let r=0;r<_o.length;r++){const o=_o[r]+s;if(o in e)return Qs[t]=o}return t}const wo="http://www.w3.org/1999/xlink";function Eo(e,t,n,s,r,o=xa(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(wo,t.slice(6,t.length)):e.setAttributeNS(wo,t,n):n==null||o&&!hi(n)?e.removeAttribute(t):e.setAttribute(t,o?"":pt(n)?String(n):n)}function So(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?pl(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=hi(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(r||t)}function Ut(e,t,n,s){e.addEventListener(t,n,s)}function du(e,t,n,s){e.removeEventListener(t,n,s)}const Co=Symbol("_vei");function pu(e,t,n,s,r=null){const o=e[Co]||(e[Co]={}),i=o[t];if(s&&i)i.value=s;else{const[l,c]=hu(t);if(s){const a=o[t]=bu(s,r);Ut(e,l,a,c)}else i&&(du(e,l,i,c),o[t]=void 0)}}const Ao=/(?:Once|Passive|Capture)$/;function hu(e){let t;if(Ao.test(e)){t={};let s;for(;s=e.match(Ao);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):jt(e.slice(2)),t]}let Gs=0;const mu=Promise.resolve(),gu=()=>Gs||(mu.then(()=>Gs=0),Gs=Date.now());function bu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;ht(xu(s,n.value),t,5,[s])};return n.value=e,n.attached=gu(),n}function xu(e,t){if(H(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Ro=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,yu=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?iu(e,s,i):t==="style"?uu(e,n,s):ms(t)?Cr(t)||pu(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vu(e,t,s,i))?(So(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Eo(e,t,s,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!_e(s))?So(e,Ge(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Eo(e,t,s,i))};function vu(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ro(t)&&K(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Ro(t)&&_e(n)?!1:t in e}const fs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>Jn(t,n):t};function _u(e){e.target.composing=!0}function ko(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const an=Symbol("_assign"),ft={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[an]=fs(r);const o=s||r.props&&r.props.type==="number";Ut(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=ss(l)),e[an](l)}),n&&Ut(e,"change",()=>{e.value=e.value.trim()}),t||(Ut(e,"compositionstart",_u),Ut(e,"compositionend",ko),Ut(e,"change",ko))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[an]=fs(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?ss(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c))}},It={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=gs(t);Ut(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?ss(ds(i)):ds(i));e[an](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,Mr(()=>{e._assigning=!1})}),e[an]=fs(s)},mounted(e,{value:t}){To(e,t)},beforeUpdate(e,t,n){e[an]=fs(n)},updated(e,{value:t}){e._assigning||To(e,t)}};function To(e,t){const n=e.multiple,s=H(t);if(!(n&&!s&&!gs(t))){for(let r=0,o=e.options.length;rString(a)===String(l)):i.selected=va(t,l)>-1}else i.selected=t.has(l);else if(vs(ds(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ds(e){return"_value"in e?e._value:e.value}const wu=["ctrl","shift","alt","meta"],Eu={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>wu.some(n=>e[`${n}Key`]&&!t.includes(n))},Oo=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const o=jt(r.key);if(t.some(i=>i===o||Su[i]===o))return e(r)})},Au=Re({patchProp:yu},ru);let Io;function Ru(){return Io||(Io=Rc(Au))}const ku=(...e)=>{const t=Ru().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Ou(s);if(!r)return;const o=t._component;!K(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,Tu(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Tu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ou(e){return _e(e)?document.querySelector(e):e}/*! + * vue-router v4.4.5 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const en=typeof document<"u";function hl(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Iu(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&hl(e.default)}const ie=Object.assign;function Js(e,t){const n={};for(const s in t){const r=t[s];n[s]=tt(r)?r.map(e):e(r)}return n}const kn=()=>{},tt=Array.isArray,ml=/#/g,Pu=/&/g,$u=/\//g,ju=/=/g,Mu=/\?/g,gl=/\+/g,Lu=/%5B/g,Du=/%5D/g,bl=/%5E/g,Fu=/%60/g,xl=/%7B/g,Bu=/%7C/g,yl=/%7D/g,Nu=/%20/g;function zr(e){return encodeURI(""+e).replace(Bu,"|").replace(Lu,"[").replace(Du,"]")}function Uu(e){return zr(e).replace(xl,"{").replace(yl,"}").replace(bl,"^")}function hr(e){return zr(e).replace(gl,"%2B").replace(Nu,"+").replace(ml,"%23").replace(Pu,"%26").replace(Fu,"`").replace(xl,"{").replace(yl,"}").replace(bl,"^")}function zu(e){return hr(e).replace(ju,"%3D")}function Hu(e){return zr(e).replace(ml,"%23").replace(Mu,"%3F")}function qu(e){return e==null?"":Hu(e).replace($u,"%2F")}function Mn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Vu=/\/$/,Ku=e=>e.replace(Vu,"");function Zs(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(s=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=Ju(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:Mn(i)}}function Wu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Po(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Qu(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&un(t.matched[s],n.matched[r])&&vl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function un(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function vl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Gu(e[n],t[n]))return!1;return!0}function Gu(e,t){return tt(e)?$o(e,t):tt(t)?$o(t,e):e===t}function $o(e,t){return tt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Ju(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const Rt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ln;(function(e){e.pop="pop",e.push="push"})(Ln||(Ln={}));var Tn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Tn||(Tn={}));function Zu(e){if(!e)if(en){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ku(e)}const Yu=/^[^#]+#/;function Xu(e,t){return e.replace(Yu,"#")+t}function ef(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Rs=()=>({left:window.scrollX,top:window.scrollY});function tf(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=ef(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function jo(e,t){return(history.state?history.state.position-t:-1)+e}const mr=new Map;function nf(e,t){mr.set(e,t)}function sf(e){const t=mr.get(e);return mr.delete(e),t}let rf=()=>location.protocol+"//"+location.host;function _l(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let l=r.includes(e.slice(o))?e.slice(o).length:1,c=r.slice(l);return c[0]!=="/"&&(c="/"+c),Po(c,"")}return Po(n,e)+s+r}function of(e,t,n,s){let r=[],o=[],i=null;const l=({state:m})=>{const g=_l(e,location),v=n.value,w=t.value;let x=0;if(m){if(n.value=g,t.value=m,i&&i===v){i=null;return}x=w?m.position-w.position:0}else s(g);r.forEach(R=>{R(n.value,v,{delta:x,type:Ln.pop,direction:x?x>0?Tn.forward:Tn.back:Tn.unknown})})};function c(){i=n.value}function a(m){r.push(m);const g=()=>{const v=r.indexOf(m);v>-1&&r.splice(v,1)};return o.push(g),g}function u(){const{history:m}=window;m.state&&m.replaceState(ie({},m.state,{scroll:Rs()}),"")}function d(){for(const m of o)m();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:a,destroy:d}}function Mo(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Rs():null}}function lf(e){const{history:t,location:n}=window,s={value:_l(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,a,u){const d=e.indexOf("#"),m=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+c:rf()+e+c;try{t[u?"replaceState":"pushState"](a,"",m),r.value=a}catch(g){console.error(g),n[u?"replace":"assign"](m)}}function i(c,a){const u=ie({},t.state,Mo(r.value.back,c,r.value.forward,!0),a,{position:r.value.position});o(c,u,!0),s.value=c}function l(c,a){const u=ie({},r.value,t.state,{forward:c,scroll:Rs()});o(u.current,u,!0);const d=ie({},Mo(s.value,c,null),{position:u.position+1},a);o(c,d,!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function af(e){e=Zu(e);const t=lf(e),n=of(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=ie({location:"",base:e,go:s,createHref:Xu.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function cf(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),af(e)}function uf(e){return typeof e=="string"||e&&typeof e=="object"}function wl(e){return typeof e=="string"||typeof e=="symbol"}const El=Symbol("");var Lo;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Lo||(Lo={}));function fn(e,t){return ie(new Error,{type:e,[El]:!0},t)}function vt(e,t){return e instanceof Error&&El in e&&(t==null||!!(e.type&t))}const Do="[^/]+?",ff={sensitive:!1,strict:!1,start:!0,end:!0},df=/[.+*?^${}()[\]/\\]/g;function pf(e,t){const n=ie({},ff,t),s=[];let r=n.start?"^":"";const o=[];for(const a of e){const u=a.length?[]:[90];n.strict&&!a.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function Sl(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const mf={type:0,value:""},gf=/[a-zA-Z0-9_]/;function bf(e){if(!e)return[[]];if(e==="/")return[[mf]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${a}": ${g}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,a="",u="";function d(){a&&(n===0?o.push({type:0,value:a}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:a,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),a="")}function m(){a+=c}for(;l{i(I)}:kn}function i(d){if(wl(d)){const m=s.get(d);m&&(s.delete(d),n.splice(n.indexOf(m),1),m.children.forEach(i),m.alias.forEach(i))}else{const m=n.indexOf(d);m>-1&&(n.splice(m,1),d.record.name&&s.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function c(d){const m=wf(d,n);n.splice(m,0,d),d.record.name&&!Uo(d)&&s.set(d.record.name,d)}function a(d,m){let g,v={},w,x;if("name"in d&&d.name){if(g=s.get(d.name),!g)throw fn(1,{location:d});x=g.record.name,v=ie(Bo(m.params,g.keys.filter(I=>!I.optional).concat(g.parent?g.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),d.params&&Bo(d.params,g.keys.map(I=>I.name))),w=g.stringify(v)}else if(d.path!=null)w=d.path,g=n.find(I=>I.re.test(w)),g&&(v=g.parse(w),x=g.record.name);else{if(g=m.name?s.get(m.name):n.find(I=>I.re.test(m.path)),!g)throw fn(1,{location:d,currentLocation:m});x=g.record.name,v=ie({},m.params,d.params),w=g.stringify(v)}const R=[];let O=g;for(;O;)R.unshift(O.record),O=O.parent;return{name:x,path:w,params:v,matched:R,meta:_f(R)}}e.forEach(d=>o(d));function u(){n.length=0,s.clear()}return{addRoute:o,resolve:a,removeRoute:i,clearRoutes:u,getRoutes:l,getRecordMatcher:r}}function Bo(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function No(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:vf(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function vf(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Uo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function _f(e){return e.reduce((t,n)=>ie(t,n.meta),{})}function zo(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function wf(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;Sl(e,t[o])<0?s=o:n=o+1}const r=Ef(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function Ef(e){let t=e;for(;t=t.parent;)if(Cl(t)&&Sl(e,t)===0)return t}function Cl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Sf(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&hr(o)):[s&&hr(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Cf(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=tt(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Af=Symbol(""),qo=Symbol(""),ks=Symbol(""),Hr=Symbol(""),gr=Symbol("");function yn(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ot(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const a=m=>{m===!1?c(fn(4,{from:n,to:t})):m instanceof Error?c(m):uf(m)?c(fn(2,{from:t,to:m})):(i&&s.enterCallbacks[r]===i&&typeof m=="function"&&i.push(m),l())},u=o(()=>e.call(s&&s.instances[r],t,n,a));let d=Promise.resolve(u);e.length<3&&(d=d.then(a)),d.catch(m=>c(m))})}function Ys(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(hl(c)){const u=(c.__vccOpts||c)[t];u&&o.push(Ot(u,n,s,i,l,r))}else{let a=c();o.push(()=>a.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const d=Iu(u)?u.default:u;i.mods[l]=u,i.components[l]=d;const g=(d.__vccOpts||d)[t];return g&&Ot(g,n,s,i,l,r)()}))}}return o}function Vo(e){const t=et(ks),n=et(Hr),s=Ye(()=>{const c=Ee(e.to);return t.resolve(c)}),r=Ye(()=>{const{matched:c}=s.value,{length:a}=c,u=c[a-1],d=n.matched;if(!u||!d.length)return-1;const m=d.findIndex(un.bind(null,u));if(m>-1)return m;const g=Ko(c[a-2]);return a>1&&Ko(u)===g&&d[d.length-1].path!==g?d.findIndex(un.bind(null,c[a-2])):m}),o=Ye(()=>r.value>-1&&Of(n.params,s.value.params)),i=Ye(()=>r.value>-1&&r.value===n.matched.length-1&&vl(n.params,s.value.params));function l(c={}){return Tf(c)?t[Ee(e.replace)?"replace":"push"](Ee(e.to)).catch(kn):Promise.resolve()}return{route:s,href:Ye(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}const Rf=Ni({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Vo,setup(e,{slots:t}){const n=Nn(Vo(e)),{options:s}=et(ks),r=Ye(()=>({[Wo(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Wo(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:dl("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),kf=Rf;function Tf(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Of(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!tt(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function Ko(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Wo=(e,t,n)=>e??t??n,If=Ni({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=et(gr),r=Ye(()=>e.route||s.value),o=et(qo,0),i=Ye(()=>{let a=Ee(o);const{matched:u}=r.value;let d;for(;(d=u[a])&&!d.components;)a++;return a}),l=Ye(()=>r.value.matched[i.value]);Zn(qo,Ye(()=>i.value+1)),Zn(Af,l),Zn(gr,r);const c=J();return ln(()=>[c.value,l.value,e.name],([a,u,d],[m,g,v])=>{u&&(u.instances[d]=a,g&&g!==u&&a&&a===m&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),a&&u&&(!g||!un(u,g)||!m)&&(u.enterCallbacks[d]||[]).forEach(w=>w(a))},{flush:"post"}),()=>{const a=r.value,u=e.name,d=l.value,m=d&&d.components[u];if(!m)return Qo(n.default,{Component:m,route:a});const g=d.props[u],v=g?g===!0?a.params:typeof g=="function"?g(a):g:null,x=dl(m,ie({},v,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(d.instances[u]=null)},ref:c}));return Qo(n.default,{Component:x,route:a})||x}}});function Qo(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Al=If;function Pf(e){const t=yf(e.routes,e),n=e.parseQuery||Sf,s=e.stringifyQuery||Ho,r=e.history,o=yn(),i=yn(),l=yn(),c=za(Rt);let a=Rt;en&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Js.bind(null,S=>""+S),d=Js.bind(null,qu),m=Js.bind(null,Mn);function g(S,B){let D,N;return wl(S)?(D=t.getRecordMatcher(S),N=B):N=S,t.addRoute(N,D)}function v(S){const B=t.getRecordMatcher(S);B&&t.removeRoute(B)}function w(){return t.getRoutes().map(S=>S.record)}function x(S){return!!t.getRecordMatcher(S)}function R(S,B){if(B=ie({},B||c.value),typeof S=="string"){const h=Zs(n,S,B.path),b=t.resolve({path:h.path},B),A=r.createHref(h.fullPath);return ie(h,b,{params:m(b.params),hash:Mn(h.hash),redirectedFrom:void 0,href:A})}let D;if(S.path!=null)D=ie({},S,{path:Zs(n,S.path,B.path).path});else{const h=ie({},S.params);for(const b in h)h[b]==null&&delete h[b];D=ie({},S,{params:d(h)}),B.params=d(B.params)}const N=t.resolve(D,B),re=S.hash||"";N.params=u(m(N.params));const be=Wu(s,ie({},S,{hash:Uu(re),path:N.path})),p=r.createHref(be);return ie({fullPath:be,hash:re,query:s===Ho?Cf(S.query):S.query||{}},N,{redirectedFrom:void 0,href:p})}function O(S){return typeof S=="string"?Zs(n,S,c.value.path):ie({},S)}function I(S,B){if(a!==S)return fn(8,{from:B,to:S})}function j(S){return Z(S)}function V(S){return j(ie(O(S),{replace:!0}))}function ee(S){const B=S.matched[S.matched.length-1];if(B&&B.redirect){const{redirect:D}=B;let N=typeof D=="function"?D(S):D;return typeof N=="string"&&(N=N.includes("?")||N.includes("#")?N=O(N):{path:N},N.params={}),ie({query:S.query,hash:S.hash,params:N.path!=null?{}:S.params},N)}}function Z(S,B){const D=a=R(S),N=c.value,re=S.state,be=S.force,p=S.replace===!0,h=ee(D);if(h)return Z(ie(O(h),{state:typeof h=="object"?ie({},re,h.state):re,force:be,replace:p}),B||D);const b=D;b.redirectedFrom=B;let A;return!be&&Qu(s,N,D)&&(A=fn(16,{to:b,from:N}),ot(N,N,!0,!1)),(A?Promise.resolve(A):st(b,N)).catch(E=>vt(E)?vt(E,2)?E:At(E):te(E,b,N)).then(E=>{if(E){if(vt(E,2))return Z(ie({replace:p},O(E.to),{state:typeof E.to=="object"?ie({},re,E.to.state):re,force:be}),B||b)}else E=Dt(b,N,!0,p,re);return Ct(b,N,E),E})}function we(S,B){const D=I(S,B);return D?Promise.reject(D):Promise.resolve()}function Je(S){const B=Zt.values().next().value;return B&&typeof B.runWithContext=="function"?B.runWithContext(S):S()}function st(S,B){let D;const[N,re,be]=$f(S,B);D=Ys(N.reverse(),"beforeRouteLeave",S,B);for(const h of N)h.leaveGuards.forEach(b=>{D.push(Ot(b,S,B))});const p=we.bind(null,S,B);return D.push(p),We(D).then(()=>{D=[];for(const h of o.list())D.push(Ot(h,S,B));return D.push(p),We(D)}).then(()=>{D=Ys(re,"beforeRouteUpdate",S,B);for(const h of re)h.updateGuards.forEach(b=>{D.push(Ot(b,S,B))});return D.push(p),We(D)}).then(()=>{D=[];for(const h of be)if(h.beforeEnter)if(tt(h.beforeEnter))for(const b of h.beforeEnter)D.push(Ot(b,S,B));else D.push(Ot(h.beforeEnter,S,B));return D.push(p),We(D)}).then(()=>(S.matched.forEach(h=>h.enterCallbacks={}),D=Ys(be,"beforeRouteEnter",S,B,Je),D.push(p),We(D))).then(()=>{D=[];for(const h of i.list())D.push(Ot(h,S,B));return D.push(p),We(D)}).catch(h=>vt(h,8)?h:Promise.reject(h))}function Ct(S,B,D){l.list().forEach(N=>Je(()=>N(S,B,D)))}function Dt(S,B,D,N,re){const be=I(S,B);if(be)return be;const p=B===Rt,h=en?history.state:{};D&&(N||p?r.replace(S.fullPath,ie({scroll:p&&h&&h.scroll},re)):r.push(S.fullPath,re)),c.value=S,ot(S,B,D,p),At()}let rt;function mn(){rt||(rt=r.listen((S,B,D)=>{if(!Kn.listening)return;const N=R(S),re=ee(N);if(re){Z(ie(re,{replace:!0}),N).catch(kn);return}a=N;const be=c.value;en&&nf(jo(be.fullPath,D.delta),Rs()),st(N,be).catch(p=>vt(p,12)?p:vt(p,2)?(Z(p.to,N).then(h=>{vt(h,20)&&!D.delta&&D.type===Ln.pop&&r.go(-1,!1)}).catch(kn),Promise.reject()):(D.delta&&r.go(-D.delta,!1),te(p,N,be))).then(p=>{p=p||Dt(N,be,!1),p&&(D.delta&&!vt(p,8)?r.go(-D.delta,!1):D.type===Ln.pop&&vt(p,20)&&r.go(-1,!1)),Ct(N,be,p)}).catch(kn)}))}let Gt=yn(),Ce=yn(),ae;function te(S,B,D){At(S);const N=Ce.list();return N.length?N.forEach(re=>re(S,B,D)):console.error(S),Promise.reject(S)}function xt(){return ae&&c.value!==Rt?Promise.resolve():new Promise((S,B)=>{Gt.add([S,B])})}function At(S){return ae||(ae=!S,mn(),Gt.list().forEach(([B,D])=>S?D(S):B()),Gt.reset()),S}function ot(S,B,D,N){const{scrollBehavior:re}=e;if(!en||!re)return Promise.resolve();const be=!D&&sf(jo(S.fullPath,0))||(N||!D)&&history.state&&history.state.scroll||null;return Mr().then(()=>re(S,B,be)).then(p=>p&&tf(p)).catch(p=>te(p,S,B))}const De=S=>r.go(S);let Jt;const Zt=new Set,Kn={currentRoute:c,listening:!0,addRoute:g,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:x,getRoutes:w,resolve:R,options:e,push:j,replace:V,go:De,back:()=>De(-1),forward:()=>De(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:Ce.add,isReady:xt,install(S){const B=this;S.component("RouterLink",kf),S.component("RouterView",Al),S.config.globalProperties.$router=B,Object.defineProperty(S.config.globalProperties,"$route",{enumerable:!0,get:()=>Ee(c)}),en&&!Jt&&c.value===Rt&&(Jt=!0,j(r.location).catch(re=>{}));const D={};for(const re in Rt)Object.defineProperty(D,re,{get:()=>c.value[re],enumerable:!0});S.provide(ks,B),S.provide(Hr,Ii(D)),S.provide(gr,c);const N=S.unmount;Zt.add(S),S.unmount=function(){Zt.delete(S),Zt.size<1&&(a=Rt,rt&&rt(),rt=null,c.value=Rt,Jt=!1,ae=!1),N()}}};function We(S){return S.reduce((B,D)=>B.then(()=>Je(D)),Promise.resolve())}return Kn}function $f(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iun(a,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(a=>un(a,c))||r.push(c))}return[n,s,r]}function Ts(){return et(ks)}function qr(e){return et(Hr)}const jf={__name:"App",setup(e){return(t,n)=>(_(),ke(Ee(Al)))}},Mf="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2023%2023'%3e%3cpath%20fill='%23f3f3f3'%20d='M0%200h23v23H0z'/%3e%3cpath%20fill='%23f35325'%20d='M1%201h10v10H1z'/%3e%3cpath%20fill='%2381bc06'%20d='M12%201h10v10H12z'/%3e%3cpath%20fill='%2305a6f0'%20d='M1%2012h10v10H1z'/%3e%3cpath%20fill='%23ffba08'%20d='M12%2012h10v10H12z'/%3e%3c/svg%3e",Se=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Lf={props:{customClass:{type:String},sizeClass:{type:String,default:"text-5xl"}}},Df={class:"flex space-x-1"};function Ff(e,t,n,s,r,o){return _(),C("div",Df,[f("h1",{class:X([n.customClass||"text-light"])},[f("span",{class:X(["italic",n.sizeClass])},"Achei",2)],2),f("h1",{class:X([n.customClass||"text-light"])},[f("span",{class:X(["font-bold",n.sizeClass])},"UnB",2)],2)])}const mt=Se(Lf,[["render",Ff]]),Bf={id:"transition-screen",class:"fixed inset-0 flex items-center justify-center z-50"},Nf={class:"fixed inset-0 flex items-center justify-center z-50"},Uf={id:"main-content",class:"telaInteira bg-azul text-white p-4 min-h-screen hidden"},zf={class:"titulo flex space-x-1 mt-20 mb-20 ml-8 md:flex md:justify-center md:mb-52"},Hf={__name:"Login",setup(e){window.addEventListener("load",()=>{const n=document.getElementById("transition-screen"),s=document.getElementById("main-content");setTimeout(()=>{n.classList.add("fade-out")},500),n.addEventListener("animationend",()=>{n.classList.add("hidden"),s.classList.remove("hidden"),s.classList.add("fade-in")})});function t(){window.location.href="https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=f1b79927-10ff-4601-a361-f9cab58fb250&scope=User.Read&response_type=code&state=Zay5NfY4tSn7JgvO&domain=alunos.unb.br"}return(n,s)=>(_(),C(Q,null,[f("div",Bf,[f("div",Nf,[L(mt,{customClass:"text-azul"})])]),f("div",Uf,[f("div",zf,[L(mt)]),s[1]||(s[1]=f("div",{class:"slogan max-w-72 ml-8 md:mr-8 md:max-w-none md:w-auto md:text-center"},[f("p",{class:"text-5xl font-bold mb-4 md:text-6xl"},"Perdeu algo no campus?"),f("p",{class:"text-5xl italic font-light mb-4 md:text-6xl"},"A gente te ajuda!")],-1)),f("div",{class:"flex justify-center mt-52"},[f("button",{onClick:t,class:"flex items-center rounded-full bg-gray-50 px-5 py-3 text-md font-medium text-azul ring-1 ring-inset ring-gray-500/10"},s[0]||(s[0]=[f("img",{src:Mf,alt:"Logo Microsoft",class:"h-6 w-auto mr-2"},null,-1),ve(" Entre com a conta da Microsoft ")]))])])],64))}},qf=Se(Hf,[["__scopeId","data-v-cdb7a9e0"]]),Vf={name:"AboutHeader",props:{text:String}},Kf={class:"h-[100px] bg-verde shadow-md rounded-b-xl flex items-center justify-center text-white p-6"},Wf={class:"font-inter font-semibold text-2xl"};function Qf(e,t,n,s,r,o){return _(),C("div",Kf,[f("div",null,[f("span",Wf,G(n.text?n.text:"Sobre o projeto"),1)])])}const Gf=Se(Vf,[["render",Qf]]),Jf={name:"MainMenu",props:{activeIcon:String}},Zf={class:"h-full bg-azul shadow-md rounded-t-xl flex items-center justify-center text-white gap-x-9 p-8"};function Yf(e,t,n,s,r,o){const i=he("router-link");return _(),C("div",Zf,[L(i,{to:"/found",class:"no-underline"},{default:ge(()=>[(_(),C("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:X(["size-6 hover:text-laranja hover:cursor-pointer",{"text-laranja":n.activeIcon=="search"}])},t[0]||(t[0]=[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"},null,-1)]),2))]),_:1}),L(i,{to:"/user",class:"no-underline"},{default:ge(()=>[(_(),C("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:X(["size-6 hover:text-laranja hover:cursor-pointer",{"text-laranja":n.activeIcon=="user"}])},t[1]||(t[1]=[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"},null,-1)]),2))]),_:1}),L(i,{to:"/about",class:"no-underline"},{default:ge(()=>[(_(),C("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:X(["size-6 hover:text-laranja hover:cursor-pointer",{"text-laranja":n.activeIcon=="info"}])},t[2]||(t[2]=[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"},null,-1)]),2))]),_:1}),L(i,{to:"/chats",class:"no-underline"},{default:ge(()=>[(_(),C("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:X(["size-6 hover:text-laranja hover:cursor-pointer",{"text-laranja":n.activeIcon=="chat"}])},t[3]||(t[3]=[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 0 1-2.555-.337A5.972 5.972 0 0 1 5.41 20.97a5.969 5.969 0 0 1-.474-.065 4.48 4.48 0 0 0 .978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25Z"},null,-1)]),2))]),_:1})])}const bt=Se(Jf,[["render",Yf]]),Rl="/static/dist/assets/Favicon-DZaE_dAz.png",Xf={class:"relative min-h-screen"},ed={class:"fixed w-full top-0",style:{"z-index":"1"}},td={class:"pt-[120px] flex justify-center my-6 text-azul"},nd={class:"max-w-4xl mx-auto mt-10 p-5 pb-[140px]"},sd={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6"},rd=["href"],od=["src","alt"],id={class:"text-center mt-2"},ld={class:"font-inter font-medium"},ad={class:"fixed bottom-0 w-full"},cd={__name:"About",setup(e){const t=J(Rl),n=[{name:"Ana Elisa Ramos",github:"https://github.com/anaelisaramos",image:"https://github.com/anaelisaramos.png"},{name:"Davi Camilo",github:"https://github.com/DaviCamilo23",image:"https://github.com/DaviCamilo23.png"},{name:"Euller Júlio da Silva",github:"https://github.com/potatoyz908",image:"https://github.com/potatoyz908.png"},{name:"Leonardo Ramiro",github:"https://github.com/leoramiroo",image:"https://github.com/leoramiroo.png"},{name:"Pedro Everton",github:"https://github.com/pedroeverton217",image:"https://github.com/pedroeverton217.png"},{name:"Pedro Martins Silva",github:"https://github.com/314dro",image:"https://github.com/314dro.png"},{name:"Tiago Balieiro",github:"https://github.com/TiagoBalieiro",image:"https://github.com/TiagoBalieiro.png"}];return(s,r)=>{const o=he("ButtonAdd");return _(),C("div",Xf,[f("div",{class:"absolute inset-0 bg-no-repeat bg-cover bg-center opacity-10 z-[-1]",style:Bn({backgroundImage:`url(${t.value})`,backgroundSize:s.isLargeScreen?"50%":"contain",backgroundAttachment:"fixed"})},null,4),f("div",ed,[L(Gf)]),f("div",td,[L(mt)]),r[2]||(r[2]=f("span",{class:"font-inter text-azul text-center flex justify-center items-center mx-auto max-w-3xl sm:px-0 px-4 md:max-w-2xl mt-7"},[ve(" Somos um grupo da disciplina Métodos de Desenvolvimento de Software da Universidade de Brasília."),f("br"),ve(" Temos como objetivo solucionar um dos problemas da faculdade, que é a falta de ferramentas para organizar itens achados e perdidos pelos estudantes."),f("br"),ve(" Com o AcheiUnB você consegue de forma simples e intuitiva procurar pelo seu item perdido ou cadastrar um item que você encontrou. ")],-1)),r[3]||(r[3]=f("div",{class:"flex justify-center mt-6"},[f("a",{href:"https://unb-mds.github.io/2024-2-AcheiUnB/CONTRIBUTING/",target:"_blank",class:"bg-laranja text-white font-semibold px-8 py-3 text-lg lg:text-xl rounded-full hover:bg-azulEscuro transition hover:text-white duration-300 shadow-md hover:scale-110 transition-transform"}," Como Contribuir? ")],-1)),f("div",nd,[r[1]||(r[1]=f("div",{class:"text-azul text-lg text-center font-semibold mb-7"},"Criado por:",-1)),f("div",sd,[(_(),C(Q,null,xe(n,i=>f("div",{key:i.name,class:"flex flex-col items-center"},[f("a",{href:i.github,target:"_blank"},[f("img",{src:i.image,alt:i.name,class:"w-[100px] rounded-full hover:scale-110 transition-transform"},null,8,od)],8,rd),f("div",id,[f("p",ld,G(i.name),1),r[0]||(r[0]=f("p",{class:"text-sm text-cinza3"},"Engenharia de Software",-1))])])),64))])]),L(o),f("div",ad,[L(bt,{activeIcon:"info"})])])}}},Vr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%238899a8'%20class='size-6'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='m14.74%209-.346%209m-4.788%200L9.26%209m9.968-3.21c.342.052.682.107%201.022.166m-1.022-.165L18.16%2019.673a2.25%202.25%200%200%201-2.244%202.077H8.084a2.25%202.25%200%200%201-2.244-2.077L4.772%205.79m14.456%200a48.108%2048.108%200%200%200-3.478-.397m-12%20.562c.34-.059.68-.114%201.022-.165m0%200a48.11%2048.11%200%200%201%203.478-.397m7.5%200v-.916c0-1.18-.91-2.164-2.09-2.201a51.964%2051.964%200%200%200-3.32%200c-1.18.037-2.09%201.022-2.09%202.201v.916m7.5%200a48.667%2048.667%200%200%200-7.5%200'%20/%3e%3c/svg%3e",ud="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%23133E78'%20%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M15%2010.5a3%203%200%201%201-6%200%203%203%200%200%201%206%200Z'%20/%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M19.5%2010.5c0%207.142-7.5%2011.25-7.5%2011.25S4.5%2017.642%204.5%2010.5a7.5%207.5%200%201%201%2015%200Z'%20/%3e%3c/svg%3e",fd={class:"w-full h-[120px] bg-cinza2 rounded-sm flex justify-center items-start"},dd=["src"],pd={key:1,class:"fixed inset-0 flex items-center justify-center"},hd={class:"flex flex-col sm:flex-row justify-center mt-4 gap-4"},md={class:"text-azul font-bold font-inter mt-1 truncate"},gd={class:"flex items-start"},bd={class:"text-azul font-inter text-sm"},xd={class:"text-right font-inter font-bold text-xs text-cinza3 p-1 flex justify-end items-center"},Os={__name:"Item-Card",props:{id:Number,image:String,name:String,time:String,location:String,isMyItem:{type:Boolean,default:!1}},emits:["delete"],setup(e,{emit:t}){const n=e,s=t,r=Ts(),o=J(!1),i=()=>{o.value||r.push({name:"ListItem",query:{idItem:n.id}})},l=()=>{s("delete",n.id),o.value=!1};return(c,a)=>(_(),C("div",{class:"w-[170px] sm:w-[190px] h-[230px] bg-cinza1 rounded-sm shadow-complete p-2 flex flex-col relative z-0",onClick:a[3]||(a[3]=u=>i())},[f("div",fd,[f("img",{src:e.image,class:"rounded-sm w-full h-full max-w-full max-h-full object-cover"},null,8,dd)]),e.isMyItem?(_(),C("button",{key:0,class:"absolute p-1 bottom-2 border-2 border-laranja right-2 w-7 h-7 bg-white flex items-center justify-center text-xs rounded-full cursor-pointer",onClick:a[0]||(a[0]=Oo(u=>o.value=!0,["stop"]))},a[4]||(a[4]=[f("img",{src:Vr,alt:"Excluir"},null,-1)]))):ye("",!0),o.value?(_(),C("div",pd,[f("div",{class:"bg-azul p-6 rounded-lg shadow-lg w-full max-w-sm sm:max-w-md lg:max-w-lg text-center",onClick:a[2]||(a[2]=Oo(()=>{},["stop"]))},[a[5]||(a[5]=f("p",{class:"text-white font-inter text-lg"}," Você realmente deseja excluir este item do AcheiUnB? ",-1)),f("div",hd,[f("button",{class:"bg-red-500 text-white font-inter px-4 py-2 rounded-md hover:bg-red-600 transition w-full sm:w-auto",onClick:l}," Excluir "),f("button",{class:"bg-white font-inter px-4 py-2 rounded-md hover:bg-gray-200 transition w-full sm:w-auto",onClick:a[1]||(a[1]=u=>o.value=!1)}," Cancelar ")])])])):ye("",!0),a[7]||(a[7]=f("div",{class:"h-[2px] w-1/4 bg-laranja mt-4"},null,-1)),f("div",md,G(e.name),1),f("div",gd,[a[6]||(a[6]=f("img",{src:ud,alt:"",class:"w-[15px] h-[15px] mr-1"},null,-1)),f("div",bd,G(e.location),1)]),f("span",xd,[e.isMyItem?ye("",!0):(_(),C(Q,{key:0},[ve(G(e.time),1)],64))])]))}},kl="data:image/svg+xml,%3csvg%20class='svg%20w-8'%20fill='none'%20height='24'%20stroke='%23133E78'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20viewBox='0%200%2024%2024'%20width='24'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cline%20x1='12'%20x2='12'%20y1='5'%20y2='19'%3e%3c/line%3e%3cline%20x1='5'%20x2='19'%20y1='12'%20y2='12'%3e%3c/line%3e%3c/svg%3e",yd={props:{customClass:{name:"ButtonAdd",type:String}}};function vd(e,t,n,s,r,o){const i=he("router-link");return _(),ke(i,{to:"/register-lost"},{default:ge(()=>t[0]||(t[0]=[f("button",{class:"fixed right-0 bottom-28 rounded-l-lg w-60 h-12 cursor-pointer flex items-center border border-laranja bg-laranja group hover:bg-laranja active:bg-laranja active:border-laranja"},[f("span",{class:"text-azul font-inter font-medium ml-6 transform group-hover:translate-x-0"},"Adicionar item perdido"),f("span",{class:"absolute right-0 h-full w-10 rounded-lg bg-laranja flex items-center justify-center transform group-hover:translate-x-0 group-hover:w-full transition-all duration-300"},[f("img",{src:kl,alt:""})])],-1)])),_:1})}const _d=Se(yd,[["render",vd]]),ce=Nn({searchQuery:"",activeCategory:null,activeLocation:null}),wd=e=>{ce.searchQuery=e},Ed=e=>{ce.activeCategory==e?ce.activeCategory=null:ce.activeCategory=e},Sd=e=>{ce.activeLocation==e?ce.activeLocation=null:ce.activeLocation=e},Cd={name:"SearchBar",setup(){return{filtersState:ce,setSearchQuery:wd,setActiveCategory:Ed,setActiveLocation:Sd}},data(){return{showFilters:!1,isActive:!1,categories:[{label:"Animais",active:!1},{label:"Eletrônicos",active:!1},{label:"Mochilas e Bolsas",active:!1},{label:"Chaves",active:!1},{label:"Livros e Materiais Acadêmicos",active:!1},{label:"Documentos e Cartões",active:!1},{label:"Equipamentos Esportivos",active:!1},{label:"Roupas e Acessórios",active:!1},{label:"Itens Pessoais",active:!1},{label:"Outros",active:!1}],locations:[{label:"RU",active:!1},{label:"Biblioteca",active:!1},{label:"UED",active:!1},{label:"UAC",active:!1},{label:"LTDEA",active:!1},{label:"Centro Acadêmico",active:!1}]}},computed:{isMediumOrLarger(){return window.innerWidth>=768},searchQueryWithoutAccents(){return this.searchQuery?this.searchQuery.normalize("NFD").replace(/[\u0300-\u036f]/g,""):""}},methods:{toggleActive(){this.isActive=!this.isActive},toggleFilters(){this.showFilters=!this.showFilters},toggleFilter(e,t){e==="category"?this.categories.forEach((n,s)=>{s===t?n.active=!n.active:n.active=!1}):e==="location"&&this.locations.forEach((n,s)=>{s===t?n.active=!n.active:n.active=!1})}}},Ad={class:"flex gap-2 flex-wrap mt-4"},Rd=["onClick"],kd={class:"flex gap-2 flex-wrap mt-4"},Td=["onClick"];function Od(e,t,n,s,r,o){return _(),C("form",{class:X(["absolute flex items-center",{"fixed w-full top-6 pr-8 z-50":r.isActive&&!o.isMediumOrLarger,"relative w-auto":!r.isActive||o.isMediumOrLarger}])},[f("button",{onClick:t[0]||(t[0]=i=>{o.toggleFilters(),o.toggleActive()}),class:"absolute left-3 text-gray-500 hover:text-gray-700 transition-colors z-50",type:"button"},t[5]||(t[5]=[f("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})],-1)])),Ae(f("input",{"onUpdate:modelValue":t[1]||(t[1]=i=>s.filtersState.searchQuery=i),class:"input bg-gray-200 rounded-full px-10 py-2 my-1 border-2 border-transparent focus:outline-none focus:border-laranja placeholder-gray-500 text-gray-700 transition-all duration-300 shadow-md pr-10 w-full z-40",placeholder:"Pesquise seu item",type:"text",onInput:t[2]||(t[2]=i=>s.setSearchQuery(s.filtersState.searchQuery)),onFocus:t[3]||(t[3]=i=>r.isActive=!0),onBlur:t[4]||(t[4]=i=>{r.isActive=!1,r.showFilters=!1})},null,544),[[ft,s.filtersState.searchQuery]]),f("button",{class:X(["absolute right-4 top-1/2 -translate-y-1/2 p-1 text-gray-400 hover:text-gray-600 transition-colors duration-200 z-50",{"pr-8":r.isActive&&!o.isMediumOrLarger}]),type:"submit"},t[6]||(t[6]=[f("svg",{width:"17",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-labelledby":"search",class:"w-5 h-5"},[f("path",{d:"M7.667 12.667A5.333 5.333 0 107.667 2a5.333 5.333 0 000 10.667zM14.334 14l-2.9-2.9",stroke:"currentColor","stroke-width":"1.333","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2),r.showFilters?(_(),C("div",{key:0,class:X(["absolute left-0 bg-gray-200 shadow-lg rounded-xl p-4 z-30",{"w-fit mr-8":r.isActive&&!o.isMediumOrLarger,"w-full":o.isMediumOrLarger}]),style:{top:"calc(50% - 4px)"}},[f("div",Ad,[t[7]||(t[7]=f("span",{class:"w-full text-azul text-2xl font-bold"},"Categoria ",-1)),(_(!0),C(Q,null,xe(r.categories,(i,l)=>(_(),C("button",{key:l,onClick:c=>(o.toggleFilter("category",l),s.setActiveCategory(i.label)),class:X(["px-4 py-2 rounded-full border text-sm",i.active?"bg-laranja text-azul border-black":"bg-gray-200 text-azul border-black"])},G(i.label),11,Rd))),128))]),t[9]||(t[9]=f("div",{class:"h-[2px] w-full bg-laranja mt-4"},null,-1)),f("div",kd,[t[8]||(t[8]=f("span",{class:"w-full text-azul text-2xl font-bold"},"Local ",-1)),(_(!0),C(Q,null,xe(r.locations,(i,l)=>(_(),C("button",{key:l,onClick:c=>(o.toggleFilter("location",l),s.setActiveLocation(i.label)),class:X(["px-4 py-2 rounded-full border text-sm",i.active?"bg-laranja text-azul border-black":"bg-gray-200 text-azul border-black"])},G(i.label),11,Td))),128))])],2)):ye("",!0)],2)}const Id=Se(Cd,[["render",Od]]),Pd={name:"SearchHeader",components:{SearchBar:Id,Logo:mt}},$d={class:"h-[100px] bg-verde shadow-md rounded-b-xl flex items-center justify-between text-white gap-x-9 p-4"},jd={class:"flex-1"};function Md(e,t,n,s,r,o){const i=he("SearchBar"),l=he("Logo"),c=he("router-link");return _(),C("div",$d,[f("div",jd,[L(i)]),f("button",null,[L(c,{to:"/about",class:"no-underline text-white"},{default:ge(()=>[L(l,{class:"pr-4",sizeClass:"text-2xl"})]),_:1})])])}const Kr=Se(Pd,[["render",Md]]),Ld={name:"SubMenu"},Dd={class:"flex pt-8 space-x-8 justify-center"};function Fd(e,t,n,s,r,o){const i=he("router-link");return _(),C("div",Dd,[L(i,{to:"/found",class:"no-underline font-inter font-bold text-cinza3"},{default:ge(()=>t[0]||(t[0]=[ve(" Achados ")])),_:1}),t[1]||(t[1]=f("div",{class:"flex-col space-y-1"},[f("span",{class:"font-inter font-bold text-laranja"},"Perdidos"),f("div",{class:"h-[2px] bg-laranja"})],-1))])}const Bd=Se(Ld,[["render",Fd]]);function Tl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Nd}=Object.prototype,{getPrototypeOf:Wr}=Object,Is=(e=>t=>{const n=Nd.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),nt=e=>(e=e.toLowerCase(),t=>Is(t)===e),Ps=e=>t=>typeof t===e,{isArray:dn}=Array,Dn=Ps("undefined");function Ud(e){return e!==null&&!Dn(e)&&e.constructor!==null&&!Dn(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ol=nt("ArrayBuffer");function zd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ol(e.buffer),t}const Hd=Ps("string"),Ke=Ps("function"),Il=Ps("number"),$s=e=>e!==null&&typeof e=="object",qd=e=>e===!0||e===!1,es=e=>{if(Is(e)!=="object")return!1;const t=Wr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Vd=nt("Date"),Kd=nt("File"),Wd=nt("Blob"),Qd=nt("FileList"),Gd=e=>$s(e)&&Ke(e.pipe),Jd=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ke(e.append)&&((t=Is(e))==="formdata"||t==="object"&&Ke(e.toString)&&e.toString()==="[object FormData]"))},Zd=nt("URLSearchParams"),[Yd,Xd,ep,tp]=["ReadableStream","Request","Response","Headers"].map(nt),np=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Hn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),dn(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const zt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,$l=e=>!Dn(e)&&e!==zt;function br(){const{caseless:e}=$l(this)&&this||{},t={},n=(s,r)=>{const o=e&&Pl(t,r)||r;es(t[o])&&es(s)?t[o]=br(t[o],s):es(s)?t[o]=br({},s):dn(s)?t[o]=s.slice():t[o]=s};for(let s=0,r=arguments.length;s(Hn(t,(r,o)=>{n&&Ke(r)?e[o]=Tl(r,n):e[o]=r},{allOwnKeys:s}),e),rp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),op=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ip=(e,t,n,s)=>{let r,o,i;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Wr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},lp=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},ap=e=>{if(!e)return null;if(dn(e))return e;let t=e.length;if(!Il(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},cp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wr(Uint8Array)),up=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},fp=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},dp=nt("HTMLFormElement"),pp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Go=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hp=nt("RegExp"),jl=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Hn(n,(r,o)=>{let i;(i=t(r,o,e))!==!1&&(s[o]=i||r)}),Object.defineProperties(e,s)},mp=e=>{jl(e,(t,n)=>{if(Ke(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(Ke(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},gp=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return dn(e)?s(e):s(String(e).split(t)),n},bp=()=>{},xp=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Xs="abcdefghijklmnopqrstuvwxyz",Jo="0123456789",Ml={DIGIT:Jo,ALPHA:Xs,ALPHA_DIGIT:Xs+Xs.toUpperCase()+Jo},yp=(e=16,t=Ml.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function vp(e){return!!(e&&Ke(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const _p=e=>{const t=new Array(10),n=(s,r)=>{if($s(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const o=dn(s)?[]:{};return Hn(s,(i,l)=>{const c=n(i,r+1);!Dn(c)&&(o[l]=c)}),t[r]=void 0,o}}return s};return n(e,0)},wp=nt("AsyncFunction"),Ep=e=>e&&($s(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),Ll=((e,t)=>e?setImmediate:t?((n,s)=>(zt.addEventListener("message",({source:r,data:o})=>{r===zt&&o===n&&s.length&&s.shift()()},!1),r=>{s.push(r),zt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ke(zt.postMessage)),Sp=typeof queueMicrotask<"u"?queueMicrotask.bind(zt):typeof process<"u"&&process.nextTick||Ll,y={isArray:dn,isArrayBuffer:Ol,isBuffer:Ud,isFormData:Jd,isArrayBufferView:zd,isString:Hd,isNumber:Il,isBoolean:qd,isObject:$s,isPlainObject:es,isReadableStream:Yd,isRequest:Xd,isResponse:ep,isHeaders:tp,isUndefined:Dn,isDate:Vd,isFile:Kd,isBlob:Wd,isRegExp:hp,isFunction:Ke,isStream:Gd,isURLSearchParams:Zd,isTypedArray:cp,isFileList:Qd,forEach:Hn,merge:br,extend:sp,trim:np,stripBOM:rp,inherits:op,toFlatObject:ip,kindOf:Is,kindOfTest:nt,endsWith:lp,toArray:ap,forEachEntry:up,matchAll:fp,isHTMLForm:dp,hasOwnProperty:Go,hasOwnProp:Go,reduceDescriptors:jl,freezeMethods:mp,toObjectSet:gp,toCamelCase:pp,noop:bp,toFiniteNumber:xp,findKey:Pl,global:zt,isContextDefined:$l,ALPHABET:Ml,generateString:yp,isSpecCompliantForm:vp,toJSONObject:_p,isAsyncFn:wp,isThenable:Ep,setImmediate:Ll,asap:Sp};function W(e,t,n,s,r){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),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}y.inherits(W,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:y.toJSONObject(this.config),code:this.code,status:this.status}}});const Dl=W.prototype,Fl={};["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=>{Fl[e]={value:e}});Object.defineProperties(W,Fl);Object.defineProperty(Dl,"isAxiosError",{value:!0});W.from=(e,t,n,s,r,o)=>{const i=Object.create(Dl);return y.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),W.call(i,e.message,t,n,s,r),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Cp=null;function xr(e){return y.isPlainObject(e)||y.isArray(e)}function Bl(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function Zo(e,t,n){return e?e.concat(t).map(function(r,o){return r=Bl(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function Ap(e){return y.isArray(e)&&!e.some(xr)}const Rp=y.toFlatObject(y,{},null,function(t){return/^is[A-Z]/.test(t)});function js(e,t,n){if(!y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,x){return!y.isUndefined(x[w])});const s=n.metaTokens,r=n.visitor||u,o=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(t);if(!y.isFunction(r))throw new TypeError("visitor must be a function");function a(v){if(v===null)return"";if(y.isDate(v))return v.toISOString();if(!c&&y.isBlob(v))throw new W("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(v)||y.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,w,x){let R=v;if(v&&!x&&typeof v=="object"){if(y.endsWith(w,"{}"))w=s?w:w.slice(0,-2),v=JSON.stringify(v);else if(y.isArray(v)&&Ap(v)||(y.isFileList(v)||y.endsWith(w,"[]"))&&(R=y.toArray(v)))return w=Bl(w),R.forEach(function(I,j){!(y.isUndefined(I)||I===null)&&t.append(i===!0?Zo([w],j,o):i===null?w:w+"[]",a(I))}),!1}return xr(v)?!0:(t.append(Zo(x,w,o),a(v)),!1)}const d=[],m=Object.assign(Rp,{defaultVisitor:u,convertValue:a,isVisitable:xr});function g(v,w){if(!y.isUndefined(v)){if(d.indexOf(v)!==-1)throw Error("Circular reference detected in "+w.join("."));d.push(v),y.forEach(v,function(R,O){(!(y.isUndefined(R)||R===null)&&r.call(t,R,y.isString(O)?O.trim():O,w,m))===!0&&g(R,w?w.concat(O):[O])}),d.pop()}}if(!y.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Yo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Qr(e,t){this._pairs=[],e&&js(e,this,t)}const Nl=Qr.prototype;Nl.append=function(t,n){this._pairs.push([t,n])};Nl.toString=function(t){const n=t?function(s){return t.call(this,s,Yo)}:Yo;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function kp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ul(e,t,n){if(!t)return e;const s=n&&n.encode||kp;y.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let o;if(r?o=r(t,n):o=y.isURLSearchParams(t)?t.toString():new Qr(t,n).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Xo{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){y.forEach(this.handlers,function(s){s!==null&&t(s)})}}const zl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tp=typeof URLSearchParams<"u"?URLSearchParams:Qr,Op=typeof FormData<"u"?FormData:null,Ip=typeof Blob<"u"?Blob:null,Pp={isBrowser:!0,classes:{URLSearchParams:Tp,FormData:Op,Blob:Ip},protocols:["http","https","file","blob","url","data"]},Gr=typeof window<"u"&&typeof document<"u",yr=typeof navigator=="object"&&navigator||void 0,$p=Gr&&(!yr||["ReactNative","NativeScript","NS"].indexOf(yr.product)<0),jp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Mp=Gr&&window.location.href||"http://localhost",Lp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gr,hasStandardBrowserEnv:$p,hasStandardBrowserWebWorkerEnv:jp,navigator:yr,origin:Mp},Symbol.toStringTag,{value:"Module"})),$e={...Lp,...Pp};function Dp(e,t){return js(e,new $e.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,o){return $e.isNode&&y.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Fp(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Bp(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s=n.length;return i=!i&&y.isArray(r)?r.length:i,c?(y.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!l):((!r[i]||!y.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&y.isArray(r[i])&&(r[i]=Bp(r[i])),!l)}if(y.isFormData(e)&&y.isFunction(e.entries)){const n={};return y.forEachEntry(e,(s,r)=>{t(Fp(s),r,n,0)}),n}return null}function Np(e,t,n){if(y.isString(e))try{return(t||JSON.parse)(e),y.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const qn={transitional:zl,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=y.isObject(t);if(o&&y.isHTMLForm(t)&&(t=new FormData(t)),y.isFormData(t))return r?JSON.stringify(Hl(t)):t;if(y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t)||y.isReadableStream(t))return t;if(y.isArrayBufferView(t))return t.buffer;if(y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Dp(t,this.formSerializer).toString();if((l=y.isFileList(t))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return js(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),Np(t)):t}],transformResponse:[function(t){const n=this.transitional||qn.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(y.isResponse(t)||y.isReadableStream(t))return t;if(t&&y.isString(t)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?W.from(l,W.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$e.classes.FormData,Blob:$e.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],e=>{qn.headers[e]={}});const Up=y.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"]),zp=e=>{const t={};let n,s,r;return e&&e.split(` +`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&Up[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},ei=Symbol("internals");function vn(e){return e&&String(e).trim().toLowerCase()}function ts(e){return e===!1||e==null?e:y.isArray(e)?e.map(ts):String(e)}function Hp(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const qp=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function er(e,t,n,s,r){if(y.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!y.isString(t)){if(y.isString(s))return t.indexOf(s)!==-1;if(y.isRegExp(s))return s.test(t)}}function Vp(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Kp(e,t){const n=y.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}class Fe{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(l,c,a){const u=vn(c);if(!u)throw new Error("header name must be a non-empty string");const d=y.findKey(r,u);(!d||r[d]===void 0||a===!0||a===void 0&&r[d]!==!1)&&(r[d||c]=ts(l))}const i=(l,c)=>y.forEach(l,(a,u)=>o(a,u,c));if(y.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(y.isString(t)&&(t=t.trim())&&!qp(t))i(zp(t),n);else if(y.isHeaders(t))for(const[l,c]of t.entries())o(c,l,s);else t!=null&&o(n,t,s);return this}get(t,n){if(t=vn(t),t){const s=y.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return Hp(r);if(y.isFunction(n))return n.call(this,r,s);if(y.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=vn(t),t){const s=y.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||er(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=vn(i),i){const l=y.findKey(s,i);l&&(!n||er(s,s[l],l,n))&&(delete s[l],r=!0)}}return y.isArray(t)?t.forEach(o):o(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const o=n[s];(!t||er(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const n=this,s={};return y.forEach(this,(r,o)=>{const i=y.findKey(s,o);if(i){n[i]=ts(r),delete n[o];return}const l=t?Vp(o):String(o).trim();l!==o&&delete n[o],n[l]=ts(r),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return y.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&y.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[ei]=this[ei]={accessors:{}}).accessors,r=this.prototype;function o(i){const l=vn(i);s[l]||(Kp(r,i),s[l]=!0)}return y.isArray(t)?t.forEach(o):o(t),this}}Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);y.reduceDescriptors(Fe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});y.freezeMethods(Fe);function tr(e,t){const n=this||qn,s=t||n,r=Fe.from(s.headers);let o=s.data;return y.forEach(e,function(l){o=l.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function ql(e){return!!(e&&e.__CANCEL__)}function pn(e,t,n){W.call(this,e??"canceled",W.ERR_CANCELED,t,n),this.name="CanceledError"}y.inherits(pn,W,{__CANCEL__:!0});function Vl(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Wp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Qp(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const a=Date.now(),u=s[o];i||(i=a),n[r]=c,s[r]=a;let d=o,m=0;for(;d!==r;)m+=n[d++],d=d%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),a-i{n=u,r=null,o&&(clearTimeout(o),o=null),e.apply(null,a)};return[(...a)=>{const u=Date.now(),d=u-n;d>=s?i(a,u):(r=a,o||(o=setTimeout(()=>{o=null,i(r)},s-d)))},()=>r&&i(r)]}const ps=(e,t,n=3)=>{let s=0;const r=Qp(50,250);return Gp(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,c=i-s,a=r(c),u=i<=l;s=i;const d={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:a||void 0,estimated:a&&l&&u?(l-i)/a:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(d)},n)},ti=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},ni=e=>(...t)=>y.asap(()=>e(...t)),Jp=$e.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,$e.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL($e.origin),$e.navigator&&/(msie|trident)/i.test($e.navigator.userAgent)):()=>!0,Zp=$e.hasStandardBrowserEnv?{write(e,t,n,s,r,o){const i=[e+"="+encodeURIComponent(t)];y.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),y.isString(s)&&i.push("path="+s),y.isString(r)&&i.push("domain="+r),o===!0&&i.push("secure"),document.cookie=i.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 Yp(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Xp(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Kl(e,t){return e&&!Yp(t)?Xp(e,t):t}const si=e=>e instanceof Fe?{...e}:e;function Wt(e,t){t=t||{};const n={};function s(a,u,d,m){return y.isPlainObject(a)&&y.isPlainObject(u)?y.merge.call({caseless:m},a,u):y.isPlainObject(u)?y.merge({},u):y.isArray(u)?u.slice():u}function r(a,u,d,m){if(y.isUndefined(u)){if(!y.isUndefined(a))return s(void 0,a,d,m)}else return s(a,u,d,m)}function o(a,u){if(!y.isUndefined(u))return s(void 0,u)}function i(a,u){if(y.isUndefined(u)){if(!y.isUndefined(a))return s(void 0,a)}else return s(void 0,u)}function l(a,u,d){if(d in t)return s(a,u);if(d in e)return s(void 0,a)}const c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(a,u,d)=>r(si(a),si(u),d,!0)};return y.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||r,m=d(e[u],t[u],u);y.isUndefined(m)&&d!==l||(n[u]=m)}),n}const Wl=e=>{const t=Wt({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:o,headers:i,auth:l}=t;t.headers=i=Fe.from(i),t.url=Ul(Kl(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(y.isFormData(n)){if($e.hasStandardBrowserEnv||$e.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[a,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([a||"multipart/form-data",...u].join("; "))}}if($e.hasStandardBrowserEnv&&(s&&y.isFunction(s)&&(s=s(t)),s||s!==!1&&Jp(t.url))){const a=r&&o&&Zp.read(o);a&&i.set(r,a)}return t},eh=typeof XMLHttpRequest<"u",th=eh&&function(e){return new Promise(function(n,s){const r=Wl(e);let o=r.data;const i=Fe.from(r.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:a}=r,u,d,m,g,v;function w(){g&&g(),v&&v(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let x=new XMLHttpRequest;x.open(r.method.toUpperCase(),r.url,!0),x.timeout=r.timeout;function R(){if(!x)return;const I=Fe.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),V={data:!l||l==="text"||l==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:I,config:e,request:x};Vl(function(Z){n(Z),w()},function(Z){s(Z),w()},V),x=null}"onloadend"in x?x.onloadend=R:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(R)},x.onabort=function(){x&&(s(new W("Request aborted",W.ECONNABORTED,e,x)),x=null)},x.onerror=function(){s(new W("Network Error",W.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let j=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const V=r.transitional||zl;r.timeoutErrorMessage&&(j=r.timeoutErrorMessage),s(new W(j,V.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,x)),x=null},o===void 0&&i.setContentType(null),"setRequestHeader"in x&&y.forEach(i.toJSON(),function(j,V){x.setRequestHeader(V,j)}),y.isUndefined(r.withCredentials)||(x.withCredentials=!!r.withCredentials),l&&l!=="json"&&(x.responseType=r.responseType),a&&([m,v]=ps(a,!0),x.addEventListener("progress",m)),c&&x.upload&&([d,g]=ps(c),x.upload.addEventListener("progress",d),x.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(u=I=>{x&&(s(!I||I.type?new pn(null,e,x):I),x.abort(),x=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const O=Wp(r.url);if(O&&$e.protocols.indexOf(O)===-1){s(new W("Unsupported protocol "+O+":",W.ERR_BAD_REQUEST,e));return}x.send(o||null)})},nh=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const o=function(a){if(!r){r=!0,l();const u=a instanceof Error?a:this.reason;s.abort(u instanceof W?u:new pn(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(o):a.removeEventListener("abort",o)}),e=null)};e.forEach(a=>a.addEventListener("abort",o));const{signal:c}=s;return c.unsubscribe=()=>y.asap(l),c}},sh=function*(e,t){let n=e.byteLength;if(n{const r=rh(e,t);let o=0,i,l=c=>{i||(i=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:a,value:u}=await r.next();if(a){l(),c.close();return}let d=u.byteLength;if(n){let m=o+=d;n(m)}c.enqueue(new Uint8Array(u))}catch(a){throw l(a),a}},cancel(c){return l(c),r.return()}},{highWaterMark:2})},Ms=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ql=Ms&&typeof ReadableStream=="function",ih=Ms&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Gl=(e,...t)=>{try{return!!e(...t)}catch{return!1}},lh=Ql&&Gl(()=>{let e=!1;const t=new Request($e.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),oi=64*1024,vr=Ql&&Gl(()=>y.isReadableStream(new Response("").body)),hs={stream:vr&&(e=>e.body)};Ms&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!hs[t]&&(hs[t]=y.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,s)})})})(new Response);const ah=async e=>{if(e==null)return 0;if(y.isBlob(e))return e.size;if(y.isSpecCompliantForm(e))return(await new Request($e.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(y.isArrayBufferView(e)||y.isArrayBuffer(e))return e.byteLength;if(y.isURLSearchParams(e)&&(e=e+""),y.isString(e))return(await ih(e)).byteLength},ch=async(e,t)=>{const n=y.toFiniteNumber(e.getContentLength());return n??ah(t)},uh=Ms&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:o,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:a,headers:u,withCredentials:d="same-origin",fetchOptions:m}=Wl(e);a=a?(a+"").toLowerCase():"text";let g=nh([r,o&&o.toAbortSignal()],i),v;const w=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let x;try{if(c&&lh&&n!=="get"&&n!=="head"&&(x=await ch(u,s))!==0){let V=new Request(t,{method:"POST",body:s,duplex:"half"}),ee;if(y.isFormData(s)&&(ee=V.headers.get("content-type"))&&u.setContentType(ee),V.body){const[Z,we]=ti(x,ps(ni(c)));s=ri(V.body,oi,Z,we)}}y.isString(d)||(d=d?"include":"omit");const R="credentials"in Request.prototype;v=new Request(t,{...m,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:R?d:void 0});let O=await fetch(v);const I=vr&&(a==="stream"||a==="response");if(vr&&(l||I&&w)){const V={};["status","statusText","headers"].forEach(Je=>{V[Je]=O[Je]});const ee=y.toFiniteNumber(O.headers.get("content-length")),[Z,we]=l&&ti(ee,ps(ni(l),!0))||[];O=new Response(ri(O.body,oi,Z,()=>{we&&we(),w&&w()}),V)}a=a||"text";let j=await hs[y.findKey(hs,a)||"text"](O,e);return!I&&w&&w(),await new Promise((V,ee)=>{Vl(V,ee,{data:j,headers:Fe.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:v})})}catch(R){throw w&&w(),R&&R.name==="TypeError"&&/fetch/i.test(R.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,v),{cause:R.cause||R}):W.from(R,R&&R.code,e,v)}}),_r={http:Cp,xhr:th,fetch:uh};y.forEach(_r,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ii=e=>`- ${e}`,fh=e=>y.isFunction(e)||e===null||e===!1,Jl={getAdapter:e=>{e=y.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let o=0;o`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : +`+o.map(ii).join(` +`):" "+ii(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return s},adapters:_r};function nr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pn(null,e)}function li(e){return nr(e),e.headers=Fe.from(e.headers),e.data=tr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Jl.getAdapter(e.adapter||qn.adapter)(e).then(function(s){return nr(e),s.data=tr.call(e,e.transformResponse,s),s.headers=Fe.from(s.headers),s},function(s){return ql(s)||(nr(e),s&&s.response&&(s.response.data=tr.call(e,e.transformResponse,s.response),s.response.headers=Fe.from(s.response.headers))),Promise.reject(s)})}const Zl="1.7.8",Ls={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ls[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const ai={};Ls.transitional=function(t,n,s){function r(o,i){return"[Axios v"+Zl+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,l)=>{if(t===!1)throw new W(r(i," has been removed"+(n?" in "+n:"")),W.ERR_DEPRECATED);return n&&!ai[i]&&(ai[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};Ls.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function dh(e,t,n){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const l=e[o],c=l===void 0||i(l,o,e);if(c!==!0)throw new W("option "+o+" must be "+c,W.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new W("Unknown option "+o,W.ERR_BAD_OPTION)}}const ns={assertOptions:dh,validators:Ls},at=ns.validators;class qt{constructor(t){this.defaults=t,this.interceptors={request:new Xo,response:new Xo}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=` +`+o):s.stack=o}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Wt(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&ns.assertOptions(s,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),r!=null&&(y.isFunction(r)?n.paramsSerializer={serialize:r}:ns.assertOptions(r,{encode:at.function,serialize:at.function},!0)),ns.assertOptions(n,{baseUrl:at.spelling("baseURL"),withXsrfToken:at.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&y.merge(o.common,o[n.method]);o&&y.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=Fe.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(c=c&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const a=[];this.interceptors.response.forEach(function(w){a.push(w.fulfilled,w.rejected)});let u,d=0,m;if(!c){const v=[li.bind(this),void 0];for(v.unshift.apply(v,l),v.push.apply(v,a),m=v.length,u=Promise.resolve(n);d{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(l=>{s.subscribe(l),o=l}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new pn(o,i,l),n(s.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=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Jr(function(r){t=r}),cancel:t}}}function ph(e){return function(n){return e.apply(null,n)}}function hh(e){return y.isObject(e)&&e.isAxiosError===!0}const wr={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(wr).forEach(([e,t])=>{wr[t]=e});function Yl(e){const t=new qt(e),n=Tl(qt.prototype.request,t);return y.extend(n,qt.prototype,t,{allOwnKeys:!0}),y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Yl(Wt(e,r))},n}const me=Yl(qn);me.Axios=qt;me.CanceledError=pn;me.CancelToken=Jr;me.isCancel=ql;me.VERSION=Zl;me.toFormData=js;me.AxiosError=W;me.Cancel=me.CanceledError;me.all=function(t){return Promise.all(t)};me.spread=ph;me.isAxiosError=hh;me.mergeConfig=Wt;me.AxiosHeaders=Fe;me.formToJSON=e=>Hl(y.isHTMLForm(e)?new FormData(e):e);me.getAdapter=Jl.getAdapter;me.HttpStatusCode=wr;me.default=me;const Vn="http://localhost:8000/api/items",mh=async({page:e=1,search:t="",category_name:n="",location_name:s=""})=>{const r={page:e,...ce.searchQuery&&{search:ce.searchQuery},...ce.activeCategory&&{category_name:ce.activeCategory},...ce.activeLocation&&{location_name:ce.activeLocation}};return(await me.get(`${Vn}/lost/`,{params:r})).data},gh=async({page:e=1,search:t="",category_name:n="",location_name:s=""})=>{const r={page:e,...ce.searchQuery&&{search:ce.searchQuery},...ce.activeCategory&&{category_name:ce.activeCategory},...ce.activeLocation&&{location_name:ce.activeLocation}};return(await me.get(`${Vn}/found/`,{params:r})).data},bh=async()=>{try{return(await me.get(`${Vn}/found/my-items/`)).data}catch(e){throw console.error("Erro ao buscar itens encontrados:",e),e}},xh=async()=>{try{return(await me.get(`${Vn}/lost/my-items/`)).data}catch(e){throw console.error("Erro ao buscar itens encontrados:",e),e}},Xl=async e=>{try{await me.delete(`${Vn}/${e}/`)}catch(t){throw console.error("Erro ao deletar o item:",t),t}},Ds=e=>{const t=new Date,n=new Date(e),s=Math.floor((t-n)/1e3);if(s<60)return"Agora a pouco";if(s<3600){const r=Math.floor(s/60);return`Há ${r} minuto${r>1?"s":""}`}else if(s<86400){const r=Math.floor(s/3600);return`Há ${r} hora${r>1?"s":""}`}else{const r=Math.floor(s/86400);return`Há ${r} dia${r>1?"s":""}`}},Qt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAACLCAYAAADCvR0YAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAASASURBVHhe7dxrT9RoHMbhinjCs0g8YyDE7/91MCoqalBjIB5BRTf/pjWsy+7OndhOX1xX0kynM74x/PL0edrOic3NzZ8NMLOF7hWYkWggJBoIiQZCooGQaCAkGgiJBkKigZBoICQaCIkGQqKBkGggJBoIiQZCooGQaCAkGgiJBkKigZBoICQaCIkGQqKBkGggJBoIiQZCooGQaCAkGgiJBkKigZBoICQaCIkGQqKBkGggJBoIiQZCooGQaCAkGgiJBkKigZBoICQaCIkGQqKBkGggJBoIiQZCooHQic3NzZ/dPgNYWFhoLl++3L4O5cePH82HDx+a79+/d0cYkmgGdOrUqeb+/fuDBtM7PDxsXr161Xz58qU7wlBEM6C7d+82S0tL7Ujw8ePH7uifdfLkyeb06dNtoBXO48ePu08YimgG9ODBg/b13bt37TaUOv27ceNGu//kyROnaQOzEAAh0UBINBO3uLjYnDt3rt2YBtFMVE3sayFhfX29uXfvXrutra01ly5d6r7BvIhmgvpgauXtqDp+8+bN5sqVK90R5kE0E7S8vNwGUkvVL168aB4+fNg8f/68+fbt26/Px7j2w/H8z0/QhQsX2te6yv/58+d2f39/v9nZ2Wn369rM2bNn233GJ5oJq5HmqN/fMx+imaAaVUpN+vtRp07H+guYdZrWf4fxiWaCXr9+3Y4qdRp2+/bt9s6CjY2NX6dku7u7Rp05Es0E1Ujy7Nmzf9x8WaG8fPmy2dvb644wD6KZqApne3u72draalfQ6vXRo0fNp0+fum8wL6IZWc1Nzpw5M/MV/oqnVtD65WbmTzQjqljq+Zra+iv8dZvMLGpRoOY3tZ0/f747yjyIZiQXL15sQ+kvWpbar2P/F8HKykp7J0CtpNV2586d5tq1a92njE00I6hR4tatW+2pWZ1mPX36tJ3o136F828R9MvMV69ebd/XqtnBwUG7f/369WZ1dXXmkYo/RzQjqDBKrYZVLPWQWP3x1wS/n6tUBDWi9CqYuv+sHjAr9RDb27dv23/fP9BWS9CzjFT8WaIZSY0StRp29PpKBVMR9I9C14hSo0ctEtS8p78u8+bNm789+Vn79XsA/UjVXwBlHKIZQQVTo8RxKqIK4PfRo5/71P1mx12XqdCOjlSMRzQj6Och/6WiqUD6kahea2R6//59+/44FUxdv6koGY9oJqQCqdO1iqAWC2aJrXz9+rXbYwyimZgaPepUzi/KTJdoICSaAfXzk37JeSi1PM14/FjggI4+5z/kKlcfZb8wwLBEM6D6Y65whh5pSgVTq23mQsMTzQhqtBkynAqmnuTsTwcZlmggZAYJIdFASDQQEg2ERAMh0UBINBASDYREAyHRQEg0EBINhEQDIdFASDQQEg2ERAMh0UBINBASDYREAyHRQEg0EBINhEQDIdFASDQQEg2ERAMh0UBINBASDYREAyHRQEg0EBINhEQDIdFASDQQEg2ERAMh0UBINBASDYREAyHRQEg0EBINhEQDIdFASDQQEg2ERAORpvkL2ph89ykfsE8AAAAASUVORK5CYII=",ea="/static/dist/assets/found-and-lost-box-BB3OpleO.jpg",yh={class:"flex flex-col items-center justify-center h-64 text-center"},vh=["src"],_h={class:"text-cinza3 font-inter text-lg"},ta={__name:"Empty-State",props:{message:String},setup(e){return(t,n)=>(_(),C("div",yh,[f("img",{src:Ee(ea),class:"w-40 h-40 mb-4"},null,8,vh),f("p",_h,[n[0]||(n[0]=ve(" Parece que o ")),n[1]||(n[1]=f("span",{class:"text-azul font-bold"},"AcheiUnB",-1)),ve(" "+G(e.message),1)])]))}},wh={class:"min-h-screen"},Eh={class:"fixed w-full top-0 z-10"},Sh={class:"pt-24 pb-8"},Ch={key:1,class:"grid grid-cols-[repeat(auto-fit,_minmax(180px,_1fr))] sm:grid-cols-[repeat(auto-fit,_minmax(200px,_1fr))] justify-items-center align-items-center lg:px-3 gap-y-3 pb-10"},Ah={class:"flex w-full justify-start sm:justify-center"},Rh={class:"ml-24 transform -translate-x-1/2 flex gap-4 z-10"},kh={class:"fixed bottom-0 w-full"},Th={__name:"Lost",setup(e){const t=J([]),n=J(1),s=J(1),r=async(l=1)=>{const{searchQuery:c,activeCategory:a,activeLocation:u}=ce,d=await mh({page:l,search:c,category_name:a,location_name:u});t.value=d.results,s.value=Math.ceil(d.count/27)},o=()=>{n.value>1&&(n.value-=1,r(n.value))},i=()=>{n.value[ce.searchQuery,ce.activeCategory,ce.activeLocation],()=>{n.value=1,r()}),gt(()=>r(n.value)),(l,c)=>(_(),C("div",wh,[f("div",Eh,[L(Kr)]),f("div",Sh,[L(Bd)]),t.value.length===0?(_(),ke(ta,{key:0,message:"está sem itens perdidos... Você pode adicionar um!"})):(_(),C("div",Ch,[(_(!0),C(Q,null,xe(t.value,a=>(_(),ke(Os,{key:a.id,name:a.name,location:a.location_name,time:Ee(Ds)(a.created_at),image:a.image_urls[0]||Ee(Qt),id:a.id},null,8,["name","location","time","image","id"]))),128))])),f("div",Ah,[f("div",Rh,[(_(),C("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-10 text-azul hover:text-laranja transition duration-200 cursor-pointer",onClick:o},c[0]||(c[0]=[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 9-3 3m0 0 3 3m-3-3h7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"},null,-1)]))),(_(),C("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-10 text-azul hover:text-laranja transition duration-200 cursor-pointer",onClick:i},c[1]||(c[1]=[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m12.75 15 3-3m0 0-3-3m3 3h-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"},null,-1)])))])]),L(_d),f("div",kh,[L(bt,{activeIcon:"search"})])]))}},Oh={props:{customClass:{name:"ButtonAdd",type:String}}};function Ih(e,t,n,s,r,o){const i=he("router-link");return _(),ke(i,{to:"/register-found"},{default:ge(()=>t[0]||(t[0]=[f("button",{class:"fixed right-0 bottom-28 rounded-l-lg w-60 h-12 cursor-pointer flex items-center border border-laranja bg-laranja group hover:bg-laranja active:bg-laranja active:border-laranja"},[f("span",{class:"text-azul font-inter font-medium ml-6 transform group-hover:translate-x-0"},"Adicionar item achado"),f("span",{class:"absolute right-0 h-full w-10 rounded-lg bg-laranja flex items-center justify-center transform group-hover:translate-x-0 group-hover:w-full transition-all duration-300"},[f("img",{src:kl,alt:""})])],-1)])),_:1})}const Ph=Se(Oh,[["render",Ih]]),$h={name:"SubMenu"},jh={class:"flex pt-8 space-x-8 justify-center"};function Mh(e,t,n,s,r,o){const i=he("router-link");return _(),C("div",jh,[t[1]||(t[1]=f("div",{class:"flex-col space-y-1"},[f("span",{class:"font-inter font-bold text-laranja"},"Achados"),f("div",{class:"h-[2px] bg-laranja"})],-1)),L(i,{to:"/lost",class:"no-underline font-inter font-bold text-cinza3"},{default:ge(()=>t[0]||(t[0]=[ve(" Perdidos ")])),_:1})])}const Lh=Se($h,[["render",Mh]]),Dh={class:"min-h-screen"},Fh={class:"fixed w-full top-0 z-10"},Bh={class:"pt-24 pb-8"},Nh={key:1,class:"grid grid-cols-[repeat(auto-fit,_minmax(180px,_1fr))] sm:grid-cols-[repeat(auto-fit,_minmax(200px,_1fr))] justify-items-center align-items-center lg:px-3 gap-y-3 pb-10"},Uh={class:"flex w-full justify-start sm:justify-center"},zh={class:"bottom-32 ml-24 transform -translate-x-1/2 flex gap-4 z-10"},Hh={class:"fixed bottom-0 w-full"},qh={__name:"Found",setup(e){const t=J([]),n=J(1),s=J(1),r=async(l=1)=>{const{searchQuery:c,activeCategory:a,activeLocation:u}=ce,d=await gh({page:l,search:c,category_name:a,location_name:u});t.value=d.results,s.value=Math.ceil(d.count/27)},o=()=>{n.value>1&&(n.value-=1,r(n.value))},i=()=>{n.value[ce.searchQuery,ce.activeCategory,ce.activeLocation],()=>{n.value=1,r()}),gt(()=>r(n.value)),(l,c)=>(_(),C("div",Dh,[f("div",Fh,[L(Kr)]),f("div",Bh,[L(Lh)]),t.value.length===0?(_(),ke(ta,{key:0,message:"está sem itens achados... Você pode adicionar um!"})):(_(),C("div",Nh,[(_(!0),C(Q,null,xe(t.value,a=>(_(),ke(Os,{key:a.id,name:a.name,location:a.location_name,time:Ee(Ds)(a.created_at),image:a.image_urls[0]||Ee(Qt),id:a.id},null,8,["name","location","time","image","id"]))),128))])),f("div",Uh,[f("div",zh,[(_(),C("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-10 text-azul hover:text-laranja transition duration-200 cursor-pointer",onClick:o},c[0]||(c[0]=[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 9-3 3m0 0 3 3m-3-3h7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"},null,-1)]))),(_(),C("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-10 text-azul hover:text-laranja transition duration-200 cursor-pointer",onClick:i},c[1]||(c[1]=[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m12.75 15 3-3m0 0-3-3m3 3h-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"},null,-1)])))])]),L(Ph),f("div",Hh,[L(bt,{activeIcon:"search"})])]))}};class na{constructor(t){this.entity=t}validate(){for(const t of this.entity.requiredFields){const n=this.entity[t];if(!n||n==="")return!1}return!0}toFormData(){const t=new FormData;for(const[n,s]of Object.entries(this.entity))n!=="requiredFields"&&s!==void 0&&s!==null&&(Array.isArray(s)?s.forEach((r,o)=>{t.append(`${n}[${o}]`,r)}):t.append(n,s??null));return t}setFieldValue(t,n){this.entity[t]=n}}class sa{constructor(t=null,n="",s="",r="",o="",i="",l="",c=null,a=null,u="",d="",m=["name","category","location"]){this.user=t,this.name=n,this.category=s,this.location=r,this.color=o,this.brand=l,this.description=c,this.images=a,this.status=u,this.found_lost_date=i,this.barcode=d,this.requiredFields=m}}const Vh={props:{type:{type:String,default:"info",validator:e=>["success","error","info","warning"].includes(e)},message:{type:String,required:!0},duration:{type:Number,default:3e3}},data(){return{visible:!0}},computed:{alertClasses(){return{success:"bg-green-200 border-r-4 border-green-600 text-green-600",error:"bg-red-200 border-r-4 border-red-600 text-red-600",info:"bg-blue-500",warning:"bg-yellow-500 text-black"}},alertClassesText(){return{success:"text-green-600",error:"text-red-600",info:"text-blue-600",warning:"text-black-600"}}},mounted(){this.duration>0&&setTimeout(()=>{this.closeAlert()},this.duration)},methods:{closeAlert(){this.visible=!1,this.$emit("closed")}}};function Kh(e,t,n,s,r,o){return r.visible?(_(),C("div",{key:0,class:X(["fixed top-4 right-4 z-50 px-4 py-3 rounded flex items-center justify-between font-inter",o.alertClasses[n.type]]),role:"alert"},[f("p",null,G(n.message),1),f("button",{onClick:t[0]||(t[0]=(...i)=>o.closeAlert&&o.closeAlert(...i)),class:X(["ml-4 font-bold focus:outline-none",o.alertClassesText[n.type]])}," ✕ ",2)],2)):ye("",!0)}const Wh=Se(Vh,[["render",Kh]]),le=me.create({baseURL:"http://localhost:8000/api",withCredentials:!0});le.interceptors.response.use(e=>e,e=>(e.response.status===401&&la.push({name:"Login"}),Promise.reject(e)));const Pt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='currentColor'%20class='size-6%20stroke-white'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='m19.5%208.25-7.5%207.5-7.5-7.5'%20/%3e%3c/svg%3e",ra="data:image/svg+xml,%3csvg%20class='svg%20w-8'%20fill='none'%20height='24'%20stroke='%23FFFFFF'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20viewBox='0%200%2024%2024'%20width='24'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cline%20x1='12'%20x2='12'%20y1='5'%20y2='19'%3e%3c/line%3e%3cline%20x1='5'%20x2='19'%20y1='12'%20y2='12'%3e%3c/line%3e%3c/svg%3e",Qh={name:"FormComponent",data(){return{item:new sa,foundTime:"",previews:[],submitError:!1,formSubmitted:!1,alertMessage:"",categories:[],locations:[],colors:[],brands:[]}},mounted(){this.initializeData()},methods:{initializeData(){this.initializeCategories(),this.initializeLocations(),this.initializeColors(),this.initializeBrands()},async initializeCategories(){try{const e=await le.get("/categories/");this.categories=e.data.results}catch{console.log("Erro ao carregar categorias")}},async initializeLocations(){try{const e=await le.get("/locations/");this.locations=e.data.results}catch{console.log("Erro ao carregar locais")}},async initializeColors(){try{const e=await le.get("/colors/");this.colors=e.data.results}catch{console.log("Erro ao carregar cores")}},async initializeBrands(){try{const e=await le.get("/brands/");this.brands=e.data.results}catch{console.log("Erro ao carregar marcas")}},async save(){this.item.status="lost";const e=new na(this.item);if(!e.validate()){this.alertMessage="Verifique os campos marcados com *.",this.submitError=!0;return}e.foundLostDate&&this.setFoundLostDate();const t=e.toFormData();try{await le.post("/items/",t),this.formSubmitted=!0,setTimeout(()=>{window.location.replace("http://localhost:8000/#/lost")},1e3)}catch{this.alertMessage="Erro ao publicar item.",this.submitError=!0}},onFileChange(e){this.item.images||(this.item.images=[]);const t=Array.from(e.target.files);this.item.images.push(...t),t.forEach(n=>{const s=new FileReader;s.onload=r=>{this.previews.push(r.target.result)},s.readAsDataURL(n)})},setFoundLostDate(){const[e,t,n]=this.item.foundLostDate.split("-").map(Number),[s,r]=this.lostTime.split(":").map(Number);this.item.foundLostDate=new Date(n,t-1,e,s??0,r??0)},removeImage(e){this.previews.splice(e,1),this.item.images.splice(e,1)},handleSelectChange(e){const t=e.target;t.value=="clear"&&(this.item[`${t.id}`]="")}}},Gh={class:"grid md:grid-cols-4 gap-4"},Jh={class:"mb-4 col-span-2"},Zh={class:"block relative mb-4 col-span-2"},Yh=["value"],Xh={class:"block relative mb-4 col-span-2"},em=["value"],tm={class:"block relative mb-4 col-span-2"},nm=["value"],sm={class:"block relative mb-4 col-span-2"},rm=["value"],om={class:"mb-4 col-span-2"},im={class:"mb-4 col-span-2"},lm={class:"mb-4 col-span-2"},am=["disabled"],cm={class:"flex flex-wrap gap-4 col-span-3"},um=["src"],fm=["onClick"],dm={class:"col-span-4"};function pm(e,t,n,s,r,o){var l,c;const i=he("Alert");return _(),C(Q,null,[f("form",{id:"app",onSubmit:t[14]||(t[14]=(...a)=>o.save&&o.save(...a))},[f("div",Gh,[f("div",Jh,[t[17]||(t[17]=f("label",{for:"name",class:"font-inter block text-azul text-sm font-bold mb-2"},[ve("Item "),f("span",{class:"text-red-500"},"*")],-1)),Ae(f("input",{id:"name",class:"appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline","onUpdate:modelValue":t[0]||(t[0]=a=>r.item.name=a),type:"text",name:"name",placeholder:"Escreva o nome do item"},null,512),[[ft,r.item.name]])]),f("div",Zh,[t[20]||(t[20]=f("label",{for:"category",class:"font-inter block text-azul text-sm font-bold mb-2"},[ve("Categoria "),f("span",{class:"text-red-500"},"*")],-1)),Ae(f("select",{id:"category",class:X(["appearance-none border rounded w-full py-2 px-3 leading-tight focus:outline-none focus:shadow-outline",r.item.category===""?"text-gray-400":"text-gray-700"]),"onUpdate:modelValue":t[1]||(t[1]=a=>r.item.category=a),onChange:t[2]||(t[2]=(...a)=>o.handleSelectChange&&o.handleSelectChange(...a)),name:"category"},[t[18]||(t[18]=f("option",{disabled:"",value:""},"Selecione",-1)),t[19]||(t[19]=f("option",{value:"clear"},"Limpar seleção",-1)),(_(!0),C(Q,null,xe(r.categories,a=>(_(),C("option",{key:a.id,value:a.id,class:"block text-gray-700"},G(a.name),9,Yh))),128))],34),[[It,r.item.category]]),t[21]||(t[21]=f("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700 mt-6"},[f("img",{src:Pt,alt:"chevron-down",class:"w-[15px] h-[15px]"})],-1))]),f("div",Xh,[t[24]||(t[24]=f("label",{for:"location",class:"font-inter block text-azul text-sm font-bold mb-2"},[ve("Local "),f("span",{class:"text-red-500"},"*")],-1)),Ae(f("select",{id:"location",class:X(["appearance-none border rounded w-full py-2 px-3 leading-tight focus:outline-none focus:shadow-outline",r.item.location===""?"text-gray-400":"text-gray-700"]),"onUpdate:modelValue":t[3]||(t[3]=a=>r.item.location=a),onChange:t[4]||(t[4]=(...a)=>o.handleSelectChange&&o.handleSelectChange(...a)),name:"location"},[t[22]||(t[22]=f("option",{value:"",disabled:"",selected:""},"Selecione",-1)),t[23]||(t[23]=f("option",{value:"clear"},"Limpar seleção",-1)),(_(!0),C(Q,null,xe(r.locations,a=>(_(),C("option",{key:a.id,value:a.id,class:"block text-gray-700"},G(a.name),9,em))),128))],34),[[It,r.item.location]]),t[25]||(t[25]=f("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700 mt-6"},[f("img",{src:Pt,alt:"chevron-down",class:"w-[15px] h-[15px]"})],-1))]),f("div",tm,[t[28]||(t[28]=f("label",{for:"color",class:"font-inter block text-azul text-sm font-bold mb-2"},"Cor",-1)),Ae(f("select",{id:"color",class:X(["appearance-none border rounded w-full py-2 px-3 leading-tight focus:outline-none focus:shadow-outline",r.item.color===""?"text-gray-400":"text-gray-700"]),"onUpdate:modelValue":t[5]||(t[5]=a=>r.item.color=a),onChange:t[6]||(t[6]=(...a)=>o.handleSelectChange&&o.handleSelectChange(...a)),name:"color"},[t[26]||(t[26]=f("option",{value:"",disabled:"",selected:""},"Selecione",-1)),t[27]||(t[27]=f("option",{value:"clear"},"Limpar seleção",-1)),(_(!0),C(Q,null,xe(r.colors,a=>(_(),C("option",{key:a.id,value:a.id,class:"block text-gray-700"},G(a.name),9,nm))),128))],34),[[It,r.item.color]]),t[29]||(t[29]=f("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700 mt-6"},[f("img",{src:Pt,alt:"chevron-down",class:"w-[15px] h-[15px] fill-current text-white"})],-1))]),f("div",sm,[t[32]||(t[32]=f("label",{for:"color",class:"font-inter block text-azul text-sm font-bold mb-2"},"Marca",-1)),Ae(f("select",{id:"brand",class:X(["appearance-none border rounded w-full py-2 px-3 leading-tight focus:outline-none focus:shadow-outline",r.item.brand===""?"text-gray-400":"text-gray-700"]),"onUpdate:modelValue":t[7]||(t[7]=a=>r.item.brand=a),onChange:t[8]||(t[8]=(...a)=>o.handleSelectChange&&o.handleSelectChange(...a)),name:"color"},[t[30]||(t[30]=f("option",{value:"",disabled:"",selected:""},"Selecione",-1)),t[31]||(t[31]=f("option",{value:"clear"},"Limpar seleção",-1)),(_(!0),C(Q,null,xe(r.brands,a=>(_(),C("option",{key:a.id,value:a.id,class:"block text-gray-700"},G(a.name),9,rm))),128))],34),[[It,r.item.brand]]),t[33]||(t[33]=f("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700 mt-6"},[f("img",{src:Pt,alt:"chevron-down",class:"w-[15px] h-[15px] fill-current text-white"})],-1))]),f("div",om,[t[34]||(t[34]=f("label",{for:"foundLostDate",class:"font-inter block text-azul text-sm font-bold mb-2"},"Data em que foi perdido",-1)),Ae(f("input",{id:"foundLostDate",class:X(["appearance-none border rounded w-full py-2 px-3 leading-tight focus:outline-none focus:shadow-outline",r.item.foundLostDate===""?"text-gray-400":"text-gray-700"]),"onUpdate:modelValue":t[9]||(t[9]=a=>r.item.foundLostDate=a),type:"date",name:"foundLostDate"},null,2),[[ft,r.item.foundLostDate]])]),f("div",im,[t[35]||(t[35]=f("label",{for:"foundTime",class:"font-inter block text-azul text-sm font-bold mb-2"},"Horário em que foi perdido",-1)),Ae(f("input",{id:"foundTime",class:X(["appearance-none border rounded w-full py-2 px-3 leading-tight focus:outline-none focus:shadow-outline",r.foundTime===""?"text-gray-400":"text-gray-700"]),"onUpdate:modelValue":t[10]||(t[10]=a=>r.foundTime=a),type:"time",name:"foundTime"},null,2),[[ft,r.foundTime]])]),f("div",lm,[t[36]||(t[36]=f("label",{for:"description",class:"font-inter block text-azul text-sm font-bold mb-2"}," Descrição ",-1)),Ae(f("textarea",{id:"description","onUpdate:modelValue":t[11]||(t[11]=a=>r.item.description=a),name:"description",rows:"4",placeholder:"Descreva detalhadamente o item",class:"w-full px-3 py-2 text-gray-700 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,512),[[ft,r.item.description]])]),f("div",null,[f("label",{for:"images",class:X(["flex bg-azul text-white text-base px-5 py-3 outline-none rounded cursor-pointer font-inter",((l=r.item.images)==null?void 0:l.length)>1?"opacity-50 cursor-not-allowed":""])},[t[37]||(t[37]=f("img",{src:ra,alt:"",class:"mr-2"},null,-1)),t[38]||(t[38]=ve(" Adicionar imagens ")),f("input",{type:"file",id:"images",class:"hidden",onChange:t[12]||(t[12]=(...a)=>o.onFileChange&&o.onFileChange(...a)),disabled:((c=r.item.images)==null?void 0:c.length)>1},null,40,am)],2)]),f("div",cm,[(_(!0),C(Q,null,xe(r.previews,(a,u)=>(_(),C("div",{key:u,class:"w-64 h-64 border rounded relative"},[f("img",{src:a,alt:"Preview",class:"w-full h-full object-cover rounded"},null,8,um),f("div",{class:"absolute p-1 bottom-2 border-2 border-laranja right-2 w-12 h-12 bg-white flex items-center justify-center text-xs rounded-full cursor-pointer",onClick:d=>o.removeImage(u)},t[39]||(t[39]=[f("img",{src:Vr,alt:""},null,-1)]),8,fm)]))),128))]),f("div",dm,[f("button",{type:"button",onClick:t[13]||(t[13]=(...a)=>o.save&&o.save(...a)),class:"inline-block text-center rounded-full bg-laranja px-5 py-3 text-md text-white w-full"}," Enviar ")])])],32),r.submitError?(_(),ke(i,{key:0,type:"error",message:r.alertMessage,onClosed:t[15]||(t[15]=a=>r.submitError=!1)},null,8,["message"])):ye("",!0),r.formSubmitted?(_(),ke(i,{key:1,type:"success",message:"Item publicado com sucesso",onClosed:t[16]||(t[16]=a=>r.formSubmitted=!1)})):ye("",!0)],64)}const hm=Se(Qh,[["render",pm]]),hn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%23FFFFFF'%20class='size-6'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='m11.25%209-3%203m0%200%203%203m-3-3h7.5M21%2012a9%209%200%201%201-18%200%209%209%200%200%201%2018%200Z'%20/%3e%3c/svg%3e",mm={name:"LostHeader",components:{Logo:mt},props:{text:String}},gm={class:"h-[100px] bg-verde shadow-md rounded-b-xl flex items-center justify-start text-white gap-x-9 p-6"},bm={class:"font-inter font-semibold text-2xl"},xm={class:"ml-auto"};function ym(e,t,n,s,r,o){const i=he("router-link"),l=he("Logo");return _(),C("div",gm,[L(i,{to:"/lost",class:"inline-block"},{default:ge(()=>t[0]||(t[0]=[f("img",{src:hn,alt:"Voltar",class:"w-[30px] h-[30px] text-white"},null,-1)])),_:1}),f("div",null,[f("span",bm,G(n.text??"Cadastro de item perdido"),1)]),f("button",xm,[L(i,{to:"/about",class:"no-underline text-white"},{default:ge(()=>[L(l,{class:"pr-4",sizeClass:"text-2xl"})]),_:1})])])}const vm=Se(mm,[["render",ym]]),_m={class:"fixed w-full top-0",style:{"z-index":"1"}},wm={class:"px-6 py-[120px]",style:{"z-index":"2"}},Em={class:"fixed bottom-0 w-full"},Sm={__name:"Register-Lost",setup(e){return(t,n)=>(_(),C(Q,null,[f("div",_m,[L(vm)]),f("div",wm,[L(hm)]),f("div",Em,[L(bt,{activeIcon:"search"})])],64))}},Cm={name:"FormComponent",data(){return{item:new sa,foundTime:"",foundDate:"",previews:[],submitError:!1,formSubmitted:!1,alertMessage:"",categories:[],locations:[],colors:[],brands:[]}},mounted(){this.initializeData()},methods:{initializeData(){this.initializeCategories(),this.initializeLocations(),this.initializeColors(),this.initializeBrands()},async initializeCategories(){try{const e=await le.get("/categories/");this.categories=e.data.results}catch{console.log("Erro ao carregar categorias")}},async initializeLocations(){try{const e=await le.get("/locations/");this.locations=e.data.results}catch{console.log("Erro ao carregar locais")}},async initializeColors(){try{const e=await le.get("/colors/");this.colors=e.data.results}catch{console.log("Erro ao carregar cores")}},async initializeBrands(){try{const e=await le.get("/brands/");this.brands=e.data.results}catch{console.log("Erro ao carregar marcas")}},async save(){this.item.status="found";const e=new na(this.item);if(!e.validate()){this.alertMessage="Verifique os campos marcados com *.",this.submitError=!0;return}if(this.item.foundDate){const n=this.formatFoundLostDate();e.setFieldValue("found_lost_date",n)}const t=e.toFormData();try{await le.post("/items/",t),this.formSubmitted=!0,setTimeout(()=>{window.location.replace("http://localhost:8000/#/found")},1e3)}catch{this.alertMessage="Erro ao publicar item.",this.submitError=!0}},onFileChange(e){this.item.images||(this.item.images=[]);const t=Array.from(e.target.files);this.item.images.push(...t),t.forEach(n=>{const s=new FileReader;s.onload=r=>{this.previews.push(r.target.result)},s.readAsDataURL(n)})},formatFoundLostDate(){var d;const[e,t,n]=this.item.foundDate.split("-").map(Number),[s,r]=(d=this.foundTime)==null?void 0:d.split(":").map(Number),o=new Date(e,t-1,n,s??0,r??0),i=o.getTimezoneOffset(),l=i>0?"-":"+",c=Math.abs(i),a=String(Math.floor(c/60)).padStart(2,"0"),u=String(c%60).padStart(2,"0");return`${o.getFullYear()}-${String(o.getMonth()+1).padStart(2,"0")}-${String(o.getDate()).padStart(2,"0")}T${String(o.getHours()).padStart(2,"0")}:${String(o.getMinutes()).padStart(2,"0")}:${String(o.getSeconds()).padStart(2,"0")}${l}${a}${u}`},removeImage(e){this.previews.splice(e,1),this.item.images.splice(e,1)},handleSelectChange(e){const t=e.target;t.value=="clear"&&(this.item[`${t.id}`]="")}}},Am={class:"grid md:grid-cols-4 gap-4"},Rm={class:"mb-4 col-span-2"},km={class:"block relative mb-4 col-span-2"},Tm=["value"],Om={class:"block relative mb-4 col-span-2"},Im=["value"],Pm={class:"block relative mb-4 col-span-2"},$m=["value"],jm={class:"block relative mb-4 col-span-2"},Mm=["value"],Lm={class:"mb-4 col-span-2"},Dm={class:"mb-4 col-span-2"},Fm={class:"mb-4 col-span-2"},Bm=["disabled"],Nm={class:"flex flex-wrap gap-4 col-span-3"},Um=["src"],zm=["onClick"],Hm={class:"col-span-4"};function qm(e,t,n,s,r,o){var l,c;const i=he("Alert");return _(),C(Q,null,[f("form",{id:"app",onSubmit:t[14]||(t[14]=(...a)=>o.save&&o.save(...a))},[f("div",Am,[f("div",Rm,[t[17]||(t[17]=f("label",{for:"name",class:"font-inter block text-azul text-sm font-bold mb-2"},[ve("Item "),f("span",{class:"text-red-500"},"*")],-1)),Ae(f("input",{id:"name",class:"appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline","onUpdate:modelValue":t[0]||(t[0]=a=>r.item.name=a),type:"text",name:"name",placeholder:"Escreva o nome do item"},null,512),[[ft,r.item.name]])]),f("div",km,[t[20]||(t[20]=f("label",{for:"category",class:"font-inter block text-azul text-sm font-bold mb-2"},[ve("Categoria "),f("span",{class:"text-red-500"},"*")],-1)),Ae(f("select",{id:"category",class:X(["appearance-none border rounded w-full py-2 px-3 leading-tight focus:outline-none focus:shadow-outline",r.item.category===""?"text-gray-400":"text-gray-700"]),"onUpdate:modelValue":t[1]||(t[1]=a=>r.item.category=a),onChange:t[2]||(t[2]=(...a)=>o.handleSelectChange&&o.handleSelectChange(...a)),name:"category"},[t[18]||(t[18]=f("option",{disabled:"",value:""},"Selecione",-1)),t[19]||(t[19]=f("option",{value:"clear"},"Limpar seleção",-1)),(_(!0),C(Q,null,xe(r.categories,a=>(_(),C("option",{key:a.id,value:a.id,class:"block text-gray-700"},G(a.name),9,Tm))),128))],34),[[It,r.item.category]]),t[21]||(t[21]=f("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700 mt-6"},[f("img",{src:Pt,alt:"chevron-down",class:"w-[15px] h-[15px]"})],-1))]),f("div",Om,[t[24]||(t[24]=f("label",{for:"location",class:"font-inter block text-azul text-sm font-bold mb-2"},[ve("Local "),f("span",{class:"text-red-500"},"*")],-1)),Ae(f("select",{id:"location",class:X(["appearance-none border rounded w-full py-2 px-3 leading-tight focus:outline-none focus:shadow-outline",r.item.location===""?"text-gray-400":"text-gray-700"]),"onUpdate:modelValue":t[3]||(t[3]=a=>r.item.location=a),onChange:t[4]||(t[4]=(...a)=>o.handleSelectChange&&o.handleSelectChange(...a)),name:"location"},[t[22]||(t[22]=f("option",{value:"",disabled:"",selected:""},"Selecione",-1)),t[23]||(t[23]=f("option",{value:"clear"},"Limpar seleção",-1)),(_(!0),C(Q,null,xe(r.locations,a=>(_(),C("option",{key:a.id,value:a.id,class:"block text-gray-700"},G(a.name),9,Im))),128))],34),[[It,r.item.location]]),t[25]||(t[25]=f("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700 mt-6"},[f("img",{src:Pt,alt:"chevron-down",class:"w-[15px] h-[15px]"})],-1))]),f("div",Pm,[t[28]||(t[28]=f("label",{for:"color",class:"font-inter block text-azul text-sm font-bold mb-2"},"Cor",-1)),Ae(f("select",{id:"color",class:X(["appearance-none border rounded w-full py-2 px-3 leading-tight focus:outline-none focus:shadow-outline",r.item.color===""?"text-gray-400":"text-gray-700"]),"onUpdate:modelValue":t[5]||(t[5]=a=>r.item.color=a),onChange:t[6]||(t[6]=(...a)=>o.handleSelectChange&&o.handleSelectChange(...a)),name:"color"},[t[26]||(t[26]=f("option",{value:"",disabled:"",selected:""},"Selecione",-1)),t[27]||(t[27]=f("option",{value:"clear"},"Limpar seleção",-1)),(_(!0),C(Q,null,xe(r.colors,a=>(_(),C("option",{key:a.id,value:a.id,class:"block text-gray-700"},G(a.name),9,$m))),128))],34),[[It,r.item.color]]),t[29]||(t[29]=f("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700 mt-6"},[f("img",{src:Pt,alt:"chevron-down",class:"w-[15px] h-[15px] fill-current text-white"})],-1))]),f("div",jm,[t[32]||(t[32]=f("label",{for:"color",class:"font-inter block text-azul text-sm font-bold mb-2"},"Marca",-1)),Ae(f("select",{id:"brand",class:X(["appearance-none border rounded w-full py-2 px-3 leading-tight focus:outline-none focus:shadow-outline",r.item.brand===""?"text-gray-400":"text-gray-700"]),"onUpdate:modelValue":t[7]||(t[7]=a=>r.item.brand=a),onChange:t[8]||(t[8]=(...a)=>o.handleSelectChange&&o.handleSelectChange(...a)),name:"color"},[t[30]||(t[30]=f("option",{value:"",disabled:"",selected:""},"Selecione",-1)),t[31]||(t[31]=f("option",{value:"clear"},"Limpar seleção",-1)),(_(!0),C(Q,null,xe(r.brands,a=>(_(),C("option",{key:a.id,value:a.id,class:"block text-gray-700"},G(a.name),9,Mm))),128))],34),[[It,r.item.brand]]),t[33]||(t[33]=f("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700 mt-6"},[f("img",{src:Pt,alt:"chevron-down",class:"w-[15px] h-[15px] fill-current text-white"})],-1))]),f("div",Lm,[t[34]||(t[34]=f("label",{for:"foundDate",class:"font-inter block text-azul text-sm font-bold mb-2"},"Data em que foi achado",-1)),Ae(f("input",{id:"foundDate",class:X(["appearance-none border rounded w-full py-2 px-3 leading-tight focus:outline-none focus:shadow-outline",r.item.foundDate===""?"text-gray-400":"text-gray-700"]),"onUpdate:modelValue":t[9]||(t[9]=a=>r.item.foundDate=a),type:"date",name:"foundDate"},null,2),[[ft,r.item.foundDate]])]),f("div",Dm,[t[35]||(t[35]=f("label",{for:"foundTime",class:"font-inter block text-azul text-sm font-bold mb-2"},"Horário em que foi achado",-1)),Ae(f("input",{id:"foundTime",class:X(["appearance-none border rounded w-full py-2 px-3 leading-tight focus:outline-none focus:shadow-outline",r.foundTime===""?"text-gray-400":"text-gray-700"]),"onUpdate:modelValue":t[10]||(t[10]=a=>r.foundTime=a),type:"time",name:"foundTime"},null,2),[[ft,r.foundTime]])]),f("div",Fm,[t[36]||(t[36]=f("label",{for:"description",class:"font-inter block text-azul text-sm font-bold mb-2"}," Descrição ",-1)),Ae(f("textarea",{id:"description","onUpdate:modelValue":t[11]||(t[11]=a=>r.item.description=a),name:"description",rows:"4",placeholder:"Descreva detalhadamente o item",class:"w-full px-3 py-2 text-gray-700 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,512),[[ft,r.item.description]])]),f("div",null,[f("label",{for:"images",class:X(["flex bg-azul text-white text-base px-5 py-3 outline-none rounded cursor-pointer font-inter",((l=r.item.images)==null?void 0:l.length)>1?"opacity-50 cursor-not-allowed":""])},[t[37]||(t[37]=f("img",{src:ra,alt:"",class:"mr-2"},null,-1)),t[38]||(t[38]=ve(" Adicionar imagens ")),f("input",{type:"file",id:"images",class:"hidden",onChange:t[12]||(t[12]=(...a)=>o.onFileChange&&o.onFileChange(...a)),disabled:((c=r.item.images)==null?void 0:c.length)>1},null,40,Bm)],2)]),f("div",Nm,[(_(!0),C(Q,null,xe(r.previews,(a,u)=>(_(),C("div",{key:u,class:"w-64 h-64 border rounded relative"},[f("img",{src:a,alt:"Preview",class:"w-full h-full object-cover rounded"},null,8,Um),f("div",{class:"absolute p-1 bottom-2 border-2 border-laranja right-2 w-12 h-12 bg-white flex items-center justify-center text-xs rounded-full cursor-pointer",onClick:d=>o.removeImage(u)},t[39]||(t[39]=[f("img",{src:Vr,alt:""},null,-1)]),8,zm)]))),128))]),f("div",Hm,[f("button",{type:"button",onClick:t[13]||(t[13]=(...a)=>o.save&&o.save(...a)),class:"inline-block text-center rounded-full bg-laranja px-5 py-3 text-md text-white w-full"}," Enviar ")])])],32),r.submitError?(_(),ke(i,{key:0,type:"error",message:r.alertMessage,onClosed:t[15]||(t[15]=a=>r.submitError=!1)},null,8,["message"])):ye("",!0),r.formSubmitted?(_(),ke(i,{key:1,type:"success",message:"Item publicado com sucesso",onClosed:t[16]||(t[16]=a=>r.formSubmitted=!1)})):ye("",!0)],64)}const Vm=Se(Cm,[["render",qm]]),Km={name:"FoundHeader",components:{Logo:mt},props:{text:String}},Wm={class:"h-[100px] bg-verde shadow-md rounded-b-xl flex items-center justify-start text-white gap-x-9 p-6"},Qm={class:"font-inter font-semibold text-2xl"},Gm={class:"ml-auto"};function Jm(e,t,n,s,r,o){const i=he("router-link"),l=he("Logo");return _(),C("div",Wm,[L(i,{to:"/found",class:"inline-block"},{default:ge(()=>t[0]||(t[0]=[f("img",{src:hn,alt:"Voltar",class:"w-[30px] h-[30px] text-white"},null,-1)])),_:1}),f("div",null,[f("span",Qm,G(n.text??"Cadastro de item achado"),1)]),f("button",Gm,[L(i,{to:"/about",class:"no-underline text-white"},{default:ge(()=>[L(l,{class:"pr-4",sizeClass:"text-2xl"})]),_:1})])])}const Zm=Se(Km,[["render",Jm]]),Ym={class:"fixed w-full top-0",style:{"z-index":"1"}},Xm={class:"px-6 py-[120px]",style:{"z-index":"2"}},eg={class:"fixed bottom-0 w-full"},tg={__name:"Register-Found",setup(e){return(t,n)=>(_(),C(Q,null,[f("div",Ym,[L(Zm)]),f("div",Xm,[L(Vm)]),f("div",eg,[L(bt,{activeIcon:"search"})])],64))}},ng={class:"flex flex-col items-center px-6 pt-10 lg:pt-16"},sg={class:"w-24 h-24 lg:w-32 lg:h-32 rounded-full flex items-center justify-center border-4 border-laranja overflow-hidden"},rg=["src"],og={key:1,class:"w-full h-full bg-cinza2 flex items-center justify-center text-cinza3 text-sm lg:text-lg"},ig={class:"text-xl lg:text-3xl font-bold text-azul mt-4 lg:mt-6"},lg={class:"text-sm lg:text-lg text-cinza3"},ag={key:0,class:"text-sm lg:text-lg text-cinza3"},cg={class:"pt-[30px] lg:pt-[50px] flex flex-col items-center w-full mt-6 space-y-4 lg:space-y-6"},ug={class:"fixed bottom-0 w-full"},fg={__name:"User",setup(e){const t=J({foto:"",first_name:"",last_name:"",email:"",username:"",matricula:null});async function n(){try{console.log("Buscando dados do usuário logado...");const s=await le.get("/auth/user/");console.log("Dados do usuário recebidos:",s.data),t.value={foto:s.data.foto||null,first_name:s.data.first_name,last_name:s.data.last_name,email:s.data.email,username:s.data.username,matricula:s.data.matricula}}catch(s){console.error("Erro ao carregar dados do usuário:",s)}}return gt(n),(s,r)=>{const o=he("router-link");return _(),C("div",ng,[f("div",sg,[t.value.foto?(_(),C("img",{key:0,src:t.value.foto,alt:"Foto do Usuário",class:"w-full h-full object-cover"},null,8,rg)):(_(),C("div",og,r[0]||(r[0]=[f("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"white",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#FFFFFF",class:"w-10 h-10"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})],-1)])))]),f("h1",ig,G(t.value.first_name||t.value.last_name?t.value.first_name+" "+t.value.last_name:t.value.username),1),f("p",lg,G(t.value.email||"Email não disponível"),1),t.value.matricula?(_(),C("p",ag," Matrícula: "+G(t.value.matricula),1)):ye("",!0),f("div",cg,[L(o,{to:"/user-items-lost",class:"w-full flex justify-center"},{default:ge(()=>r[1]||(r[1]=[f("button",{class:"bg-verde text-white w-full md:w-[70%] lg:w-[40%] font-medium py-4 rounded-full hover:scale-110 transition-transform duration-300 text-center text-lg lg:text-xl"}," Meus itens ativos ",-1)])),_:1}),r[3]||(r[3]=f("a",{href:"mailto:acheiunb2024@gmail.com",class:"w-full flex justify-center"},[f("button",{class:"bg-verde text-white w-full md:w-[70%] lg:w-[40%] font-medium py-4 rounded-full hover:scale-110 transition-transform duration-300 text-center text-lg lg:text-xl"}," Reportar um problema ")],-1)),L(o,{to:"/",class:"w-full flex justify-center"},{default:ge(()=>r[2]||(r[2]=[f("button",{class:"bg-verde text-white w-full md:w-[70%] lg:w-[40%] font-medium py-4 rounded-full hover:scale-110 transition-transform duration-300 text-center text-lg lg:text-xl"}," Sair da Conta ",-1)])),_:1})]),r[4]||(r[4]=f("div",{class:"h-16 lg:h-24"},null,-1)),f("div",ug,[L(bt,{activeIcon:"user"})])])}}},dg={name:"ItemHeader",components:{Logo:mt},props:{title:{type:String,required:!0}},methods:{goBack(){this.$router.back()}}},pg={class:"h-[100px] bg-verde shadow-md rounded-b-xl flex items-center text-white p-4 md:p-6"},hg={class:"flex items-center w-1/4"},mg={class:"flex-grow flex justify-center"},gg={class:"font-inter font-semibold text-lg md:text-2xl text-center break-words"},bg={class:"flex items-center w-1/4 justify-end"};function xg(e,t,n,s,r,o){const i=he("Logo"),l=he("router-link");return _(),C("div",pg,[f("div",hg,[f("img",{onClick:t[0]||(t[0]=(...c)=>o.goBack&&o.goBack(...c)),src:hn,alt:"Voltar",class:"w-[30px] h-[30px] text-white cursor-pointer"})]),f("div",mg,[f("span",gg,G(n.title),1)]),f("div",bg,[L(l,{to:"/about",class:"no-underline text-white"},{default:ge(()=>[L(i,{class:"pr-2 md:pr-4",sizeClass:"text-xl md:text-2xl"})]),_:1})])])}const oa=Se(dg,[["render",xg]]),Er="/static/dist/assets/default-avatar-BpcudYYH.png",yg={class:"fixed w-full top-0 z-[1]"},vg={key:0,class:"pt-32 pb-24 space-y-4"},_g={key:1,class:"pt-32 pb-24"},wg=["onClick"],Eg=["src"],Sg={class:"ml-5"},Cg={class:"text-xl font-semibold text-gray-800"},Ag={class:"text-md text-gray-500"},Rg={key:2,class:"flex flex-col items-center justify-center h-96"},kg={class:"fixed bottom-0 w-full bg-white shadow-md"},Tg={__name:"Chats",setup(e){const t=Ts(),n=J(null),s=J([]),r=J(!0),o=c=>{!c.id||!c.recipient||!c.item_id||t.push({path:`/chat/${c.id}`,query:{userId:c.recipient.id,itemId:c.item_id}})};async function i(){try{const c=await le.get("/auth/user/");n.value=c.data,await l()}catch(c){console.error("Erro ao buscar usuário:",c)}}async function l(){var c;if((c=n.value)!=null&&c.id)try{const a=await le.get("/chat/chatrooms/");let u=[];for(const d of a.data.results)if(d.participant_1===n.value.id||d.participant_2===n.value.id){let m,g,v;d.participant_1===n.value.id?(m=d.participant_2,g=d.participant_2_username):(m=d.participant_1,g=d.participant_1_username);const w=await le.get(`/users/${m}/`);v=w.data.foto?w.data.foto:Er,u.push({...d,recipient:{id:m,name:g,foto:v}})}s.value=u}catch(a){console.error("Erro ao buscar conversas:",a)}finally{r.value=!1}}return gt(()=>{i()}),(c,a)=>(_(),C(Q,null,[f("div",yg,[L(oa,{title:"Mensagens"})]),r.value?(_(),C("div",vg,[(_(),C(Q,null,xe(3,u=>f("div",{key:u,class:"flex items-center px-6"},a[0]||(a[0]=[f("div",{class:"w-[90px] h-[90px] rounded-full bg-cinza2 animate-pulse"},null,-1),f("div",{class:"flex-1 px-4 space-y-2"},[f("div",{class:"h-7 bg-cinza2 rounded-md animate-pulse"}),f("div",{class:"h-5 bg-cinza2 rounded-md animate-pulse"})],-1)]))),64))])):s.value.length?(_(),C("div",_g,[(_(!0),C(Q,null,xe(s.value,u=>(_(),C("div",{key:u.id,class:"flex items-center px-6 py-5 cursor-pointer transition-all duration-200 hover:bg-gray-200",onClick:d=>o(u)},[f("img",{src:u.recipient.foto,alt:"Foto do usuário",class:"w-16 h-16 md:w-20 md:h-20 rounded-full object-cover border-2 border-white"},null,8,Eg),f("div",Sg,[f("p",Cg,G(u.recipient.name),1),f("p",Ag,"Sobre o item: "+G(u.item_name),1)])],8,wg))),128))])):(_(),C("div",Rg,a[1]||(a[1]=[f("p",{class:"text-xl text-cinza4"},"Nenhuma conversa encontrada.",-1)]))),f("div",kg,[L(bt,{activeIcon:"chat"})])],64))}},Og=Se(Tg,[["__scopeId","data-v-73de17b8"]]),Ig={key:0,class:"fixed w-full top-0 z-[1]"},Pg={key:1,class:"px-6 py-[120px] flex flex-col items-center gap-6"},$g={class:"w-full md:flex md:gap-8 md:max-w-4xl"},jg={class:"w-full max-w-md md:max-w-none md:w-1/2 relative"},Mg={key:0,class:"w-full h-64"},Lg=["src"],Dg=["src","alt"],Fg={key:2,class:"md:hidden overflow-hidden relative"},Bg=["src","alt"],Ng={key:0,class:"absolute bottom-4 left-1/2 transform -translate-x-1/2 flex gap-2"},Ug={class:"w-full md:w-1/2 mt-6 md:mt-0"},zg={class:"text-lg md:text-2xl font-bold text-left"},Hg={class:"text-sm md:text-base text-gray-500 text-left mt-2"},qg={key:0,class:"text-sm md:text-base text-gray-500 text-left mt-1"},Vg={key:1,class:"text-sm md:text-base text-gray-500 text-left mt-1"},Kg={class:"flex flex-wrap gap-2 justify-start mt-4"},Wg={key:0,class:"px-4 py-2 rounded-full text-sm font-medium text-white bg-blue-500"},Qg={key:1,class:"px-4 py-2 rounded-full text-sm font-medium text-white bg-laranja"},Gg={key:2,class:"px-4 py-2 rounded-full text-sm font-medium text-white bg-gray-500"},Jg={class:"text-sm md:text-base text-gray-700 text-left mt-4"},Zg={class:"fixed bottom-0 w-full"},Yg={__name:"ListItem",setup(e){const t=qr(),n=Ts(),s=J(null),r=J(""),o=J(null),i=J(0),l=J(window.innerWidth<768),c=J(!1),a=x=>{const R=new Date(x);return`${R.toLocaleDateString("pt-BR",{timeZone:"America/Sao_Paulo"})} às ${R.toLocaleTimeString("pt-BR",{hour:"2-digit",minute:"2-digit",timeZone:"America/Sao_Paulo"})}`},u=()=>{i.value=(i.value+1)%s.value.image_urls.length},d=()=>{i.value=(i.value-1+s.value.image_urls.length)%s.value.image_urls.length},m=()=>{l.value=window.innerWidth<768};async function g(){try{const x=await le.get(`/items/${t.query.idItem}/`);s.value=x.data,r.value=s.value.status,c.value=!0,console.log("Item carregado:",s.value)}catch(x){console.error("Erro ao carregar item:",x)}}async function v(){try{const x=await le.get("/auth/user/");o.value=x.data,console.log("Usuário atual:",o.value)}catch(x){console.error("Erro ao buscar usuário:",x)}}const w=async()=>{var x,R,O,I;try{if(!s.value||!s.value.id){console.error("Item inválido ou não carregado:",s.value);return}if(!((x=o.value)!=null&&x.id)||!((R=s.value)!=null&&R.user_id)){console.error("IDs de usuário inválidos:",{currentUser:o.value,item:s.value});return}console.log("Item atual (ID):",s.value.id),console.log("Dono do item (user_id):",s.value.user_id),console.log("Usuário atual (ID):",o.value.id);const j={participant_1:o.value.id,participant_2:s.value.user_id,item_id:s.value.id};console.log("Parâmetros para busca de chat:",j);const ee=(await le.get("/chat/chatrooms/",{params:j})).data;if(console.log("Chats encontrados:",ee),ee&&ee.length>0){n.push(`/chat/${ee[0].id}?itemId=${s.value.id}`);return}const Z={participant_1:o.value.id,participant_2:s.value.user_id,item_id:s.value.id};console.log("Dados para criação de chat:",Z);const we=await le.post("/chat/chatrooms/",Z);if(console.log("Resposta da criação de chat:",we.data),(O=we.data)!=null&&O.id)n.push(`/chat/${we.data.id}?itemId=${s.value.id}`);else throw new Error("Resposta inválida ao criar chatroom")}catch(j){console.error("Erro ao criar/aceder chat:",((I=j.response)==null?void 0:I.data)||j.message),alert("Ocorreu um erro ao iniciar o chat. Por favor, tente novamente.")}};return gt(async()=>{await v(),await g(),window.addEventListener("resize",m)}),qi(()=>{window.removeEventListener("resize",m)}),(x,R)=>(_(),C(Q,null,[c.value?(_(),C("div",Ig,[L(oa,{title:r.value==="found"?"Item Achado":"Item Perdido"},null,8,["title"])])):ye("",!0),s.value?(_(),C("div",Pg,[f("div",$g,[f("div",jg,[!s.value.image_urls||s.value.image_urls.length===0?(_(),C("div",Mg,[f("img",{src:Ee(Qt),alt:"Imagem não disponível",class:"w-full h-full object-contain"},null,8,Lg)])):(_(),C("div",{key:1,class:X(["hidden md:grid",s.value.image_urls.length===1?"grid-cols-1":"grid-cols-2 gap-4"])},[(_(!0),C(Q,null,xe(s.value.image_urls.slice(0,2),(O,I)=>(_(),C("img",{key:I,src:O,alt:`Imagem ${I+1} do item`,class:"h-64 w-full object-cover rounded-lg"},null,8,Dg))),128))],2)),s.value.image_urls&&s.value.image_urls.length>0?(_(),C("div",Fg,[f("div",{class:"flex transition-transform duration-300 ease-out snap-x snap-mandatory",style:Bn({transform:`translateX(-${i.value*100}%)`})},[(_(!0),C(Q,null,xe(s.value.image_urls,(O,I)=>(_(),C("div",{key:I,class:"w-full flex-shrink-0 relative snap-start"},[f("img",{src:O,alt:`Imagem ${I+1} do item`,class:"w-full h-64 object-cover rounded-lg"},null,8,Bg)]))),128))],4),s.value.image_urls.length>1?(_(),C("div",Ng,[(_(!0),C(Q,null,xe(s.value.image_urls,(O,I)=>(_(),C("div",{key:I,class:X(["w-2 h-2 rounded-full transition-colors duration-300",i.value===I?"bg-white":"bg-gray-300"])},null,2))),128))])):ye("",!0),s.value.image_urls.length>1?(_(),C("button",{key:1,onClick:d,class:"absolute left-2 top-1/2 transform -translate-y-1/2 bg-white/30 rounded-full p-2 backdrop-blur-sm"}," ← ")):ye("",!0),s.value.image_urls.length>1?(_(),C("button",{key:2,onClick:u,class:"absolute right-2 top-1/2 transform -translate-y-1/2 bg-white/30 rounded-full p-2 backdrop-blur-sm"}," → ")):ye("",!0)])):ye("",!0)]),f("div",Ug,[f("h1",zg,G(s.value.name),1),f("p",Hg," Achado em: "+G(s.value.location_name||"Não especificado"),1),s.value.found_lost_date&&r.value==="found"?(_(),C("p",qg," Data do achado: "+G(a(s.value.found_lost_date)),1)):s.value.found_lost_date&&r.value==="lost"?(_(),C("p",Vg," Data da perda: "+G(a(s.value.found_lost_date)),1)):ye("",!0),f("div",Kg,[s.value.category_name?(_(),C("span",Wg," Categoria: "+G(s.value.category_name),1)):ye("",!0),s.value.brand_name?(_(),C("span",Qg," Marca: "+G(s.value.brand_name),1)):ye("",!0),s.value.color_name?(_(),C("span",Gg," Cor: "+G(s.value.color_name),1)):ye("",!0)]),f("p",Jg,G(s.value.description),1)])]),f("button",{class:"bg-laranja text-white w-full md:w-[70%] lg:w-[40%] font-medium py-4 rounded-full hover:scale-110 transition-transform duration-300 text-center text-lg lg:text-xl",onClick:w}," É meu item ")])):ye("",!0),f("div",Zg,[L(bt,{activeIcon:r.value==="found"?"found":"lost"},null,8,["activeIcon"])])],64))}},Xg={name:"SubMenu"},e0={class:"flex pt-8 space-x-8 justify-center"};function t0(e,t,n,s,r,o){const i=he("router-link");return _(),C("div",e0,[L(i,{to:"/user-items-found",class:"no-underline font-inter font-bold text-cinza3"},{default:ge(()=>t[0]||(t[0]=[ve(" Achados ")])),_:1}),t[1]||(t[1]=f("div",{class:"flex-col space-y-1"},[f("span",{class:"font-inter font-bold text-laranja"},"Perdidos"),f("div",{class:"h-[2px] bg-laranja"})],-1))])}const n0=Se(Xg,[["render",t0]]),s0={class:"flex flex-col items-center justify-center h-64 text-center"},r0=["src"],o0={class:"text-cinza3 font-inter text-lg"},i0={class:"text-azul font-bold"},ia={__name:"Empty-State-User",props:{message:String,highlightText:String},setup(e){return(t,n)=>(_(),C("div",s0,[f("img",{src:Ee(ea),class:"w-40 h-40 mb-4"},null,8,r0),f("p",o0,[ve(" Parece que você não tem itens "+G(e.message)+" ",1),f("span",i0,G(e.highlightText),1)])]))}},l0={class:"fixed w-full top-0 h-[100px] bg-verde shadow-md rounded-b-xl flex items-center justify-between px-6 text-white z-10"},a0={class:"pb-8 pt-24"},c0={key:1,class:"grid grid-cols-[repeat(auto-fit,_minmax(180px,_1fr))] sm:grid-cols-[repeat(auto-fit,_minmax(200px,_1fr))] justify-items-center align-items-center lg:px-3 gap-y-3 pb-24"},u0={class:"fixed bottom-0 w-full"},f0={__name:"UserItems-Lost",setup(e){const t=J([]),n=J(!1);J(!1);const s=J(""),r=async()=>{try{const i=await xh();t.value=i}catch{s.value="Erro ao carregar itens perdidos.",n.value=!0}},o=async i=>{try{await Xl(i),myItemsFound.value=myItemsFound.value.filter(l=>l.id!==i)}catch(l){console.error("Erro ao excluir item:",l)}};return gt(()=>r()),(i,l)=>{const c=he("router-link"),a=he("ButtonAdd");return _(),C(Q,null,[f("div",l0,[L(c,{to:"/user",class:"inline-block"},{default:ge(()=>l[0]||(l[0]=[f("img",{src:hn,alt:"Voltar",class:"w-[30px] h-[30px] text-white"},null,-1)])),_:1}),l[1]||(l[1]=f("h1",{class:"text-2xl font-bold absolute left-1/2 transform -translate-x-1/2"}," Meus Itens ",-1)),f("button",null,[L(c,{to:"/about",class:"no-underline text-white"},{default:ge(()=>[L(mt,{class:"pr-4",sizeClass:"text-2xl"})]),_:1})])]),f("div",a0,[L(n0)]),t.value.length===0?(_(),ke(ia,{key:0,message:"perdidos registrados... Você pode adicionar um no",highlightText:"AcheiUnB"})):(_(),C("div",c0,[(_(!0),C(Q,null,xe(t.value,u=>(_(),ke(Os,{key:u.id,id:u.id,name:u.name,location:u.location_name,time:Ee(Ds)(u.created_at),image:u.image_urls[0]||Ee(Qt),isMyItem:!0,onDelete:o},null,8,["id","name","location","time","image"]))),128))])),L(a),f("div",u0,[L(bt,{activeIcon:"search"})])],64)}}},d0={name:"SubMenu"},p0={class:"flex pt-8 space-x-8 justify-center"};function h0(e,t,n,s,r,o){const i=he("router-link");return _(),C("div",p0,[t[1]||(t[1]=f("div",{class:"flex-col space-y-1"},[f("span",{class:"font-inter font-bold text-laranja"},"Achados"),f("div",{class:"h-[2px] bg-laranja"})],-1)),L(i,{to:"/user-items-lost",class:"no-underline font-inter font-bold text-cinza3"},{default:ge(()=>t[0]||(t[0]=[ve(" Perdidos ")])),_:1})])}const m0=Se(d0,[["render",h0]]),g0={class:"fixed w-full top-0 h-[100px] bg-verde shadow-md rounded-b-xl flex items-center justify-between px-6 text-white z-10"},b0={class:"pb-8 pt-24"},x0={key:1,class:"grid grid-cols-[repeat(auto-fit,_minmax(180px,_1fr))] sm:grid-cols-[repeat(auto-fit,_minmax(200px,_1fr))] justify-items-center align-items-center lg:px-3 gap-y-3 pb-24"},y0={class:"fixed bottom-0 w-full"},v0={__name:"UserItems-Found",setup(e){const t=J([]),n=J(!1);J(!1);const s=J(""),r=async()=>{try{const i=await bh();t.value=i}catch{s.value="Erro ao carregar itens encontrados.",n.value=!0}},o=async i=>{try{await Xl(i),t.value=t.value.filter(l=>l.id!==i)}catch(l){console.error("Erro ao excluir item:",l)}};return gt(()=>r()),(i,l)=>{const c=he("router-link"),a=he("ButtonAdd");return _(),C(Q,null,[f("div",g0,[L(c,{to:"/user",class:"inline-block"},{default:ge(()=>l[0]||(l[0]=[f("img",{src:hn,alt:"Voltar",class:"w-[30px] h-[30px] text-white"},null,-1)])),_:1}),l[1]||(l[1]=f("h1",{class:"text-2xl font-bold absolute left-1/2 transform -translate-x-1/2"}," Meus Itens ",-1)),f("button",null,[L(c,{to:"/about",class:"no-underline text-white"},{default:ge(()=>[L(mt,{class:"pr-4",sizeClass:"text-2xl"})]),_:1})])]),f("div",b0,[L(m0)]),t.value.length===0?(_(),ke(ia,{key:0,message:"achados registrados... Você pode adicionar um no",highlightText:"AcheiUnB"})):(_(),C("div",x0,[(_(!0),C(Q,null,xe(t.value,u=>(_(),ke(Os,{key:u.id,id:u.id,name:u.name,location:u.location_name,time:Ee(Ds)(u.created_at),image:u.image_urls[0]||Ee(Qt),isMyItem:!0,onDelete:o},null,8,["id","name","location","time","image"]))),128))])),L(a),f("div",y0,[L(bt,{activeIcon:"search"})])],64)}}},_0={class:"fixed top-0 left-0 w-full bg-verde shadow-md py-3 px-4 flex items-center z-10"},w0=["src"],E0={class:"flex items-center space-x-4 ml-2"},S0=["src"],C0={class:"text-white font-semibold text-sm md:text-base truncate max-w-[120px] md:max-w-[200px]"},A0=["src"],R0={class:"ml-auto md:absolute md:left-1/2 md:transform md:-translate-x-1/2"},k0={__name:"Header-Message",setup(e){const t=qr(),n=Ts(),s=J(t.params.chatroomId||t.query.chatroomId),r=J("Usuário"),o=J(Er),i=J(Qt),l=J(null),c=J(null),a=J(null),u=async()=>{try{const w=await le.get("/auth/user/");a.value=w.data}catch{}},d=async()=>{var w;if(!(!s.value||!((w=a.value)!=null&&w.id)))try{const R=(await le.get(`/chat/chatrooms/${s.value}/`)).data;l.value=R.participant_1===a.value.id?R.participant_2:R.participant_1,c.value=R.item_id,m(),g()}catch{}},m=async()=>{if(l.value)try{const w=await le.get(`/users/${l.value}/`);r.value=w.data.first_name||"Usuário",o.value=w.data.foto||Er}catch{}},g=async()=>{var w;if(c.value)try{const x=await le.get(`/items/${c.value}`);i.value=((w=x.data.image_urls)==null?void 0:w[0])||Qt}catch{}},v=()=>{n.back()};return $c(()=>{a.value?d():u()}),gt(()=>{u()}),(w,x)=>{const R=he("router-link");return _(),C("div",_0,[f("img",{onClick:v,src:Ee(hn),alt:"Voltar",class:"w-6 h-6 md:w-8 md:h-8 cursor-pointer"},null,8,w0),f("div",E0,[f("img",{src:o.value,alt:"Foto do usuário",class:"w-10 h-10 md:w-12 md:h-12 rounded-full object-cover border-2 border-white"},null,8,S0),f("span",C0,G(r.value||"Usuário"),1),f("img",{src:i.value,alt:"Imagem do item",class:"w-10 h-10 md:w-12 md:h-12 rounded-lg object-cover border-2 border-white"},null,8,A0)]),f("div",R0,[L(R,{to:"/about",class:"no-underline text-white"},{default:ge(()=>[L(mt,{class:"pr-4",sizeClass:"text-2xl"})]),_:1})])])}}},T0={class:"relative flex flex-col h-screen bg-gray-100"},O0={ref:"messagesContainer",class:"relative flex-1 pt-32 pb-24 px-4 overflow-y-auto z-10"},I0={key:0,class:"flex w-full justify-end"},P0={class:"bg-laranja text-white p-3 rounded-2xl max-w-[70%] break-words shadow-md"},$0={class:"text-sm"},j0={class:"text-xs opacity-75 mt-1 block text-right"},M0={key:1,class:"flex w-full justify-start"},L0={class:"bg-gray-300 text-gray-800 p-3 rounded-2xl max-w-[70%] break-words shadow-md"},D0={class:"text-sm"},F0={class:"text-xs opacity-75 mt-1 block text-left"},B0={class:"fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 p-4 z-20"},N0={class:"flex"},U0=["disabled"],ci={__name:"Message",setup(e){const t=qr(),n=J([]),s=J(""),r=J(null),o=J(null),i=J(null),l=J(t.params.chatroomId||t.query.chatroomId),c=J(t.params.itemId||t.query.itemId);l.value?console.log("chatroomId:",l.value):console.error("ID do chat não encontrado na rota");const a=async()=>{var x;if(!l.value){console.error("ID do chat não encontrado, não é possível enviar mensagem");return}if(!s.value.trim()){console.warn("Mensagem vazia, nada a enviar");return}try{console.log("Enviando mensagem para room:",l.value,"Conteúdo:",s.value),await le.post("/chat/messages/",{room:l.value,content:s.value}),s.value="",await u()}catch(R){console.error("Erro ao enviar mensagem:",((x=R.response)==null?void 0:x.data)||R.message)}},u=async()=>{if(l.value)try{const x=await le.get("/chat/messages/",{params:{room:l.value}});n.value=x.data.results||x.data}catch(x){console.error("Erro ao buscar mensagens:",x)}},d=async()=>{try{const x=await le.get("/auth/user/");r.value=x.data}catch(x){console.error("Erro ao buscar usuário:",x)}},m=async()=>{if(c.value)try{const x=await le.get(`/items/${c.value}`);o.value=x.data}catch(x){console.error("Erro ao buscar item:",x)}},g=async()=>{if(c.value)try{const x=await le.get(`/items/${c.value}`);i.value=x.data.user_id}catch(x){console.error("Erro ao buscar dono do item:",x)}},v=x=>new Date(x).toLocaleTimeString("pt-BR",{hour:"2-digit",minute:"2-digit"}),w=async()=>{if(l.value)try{await le.get(`/chat/chatrooms/${l.value}/`)}catch(x){console.error("Erro ao buscar dados do chatroom:",x)}};return gt(async()=>{await d(),await m(),await g(),await w(),await u()}),(x,R)=>(_(),C("div",T0,[R[1]||(R[1]=f("div",{class:"flex absolute inset-0 justify-center items-center pointer-events-none z-0"},[f("img",{src:Rl,alt:"Watermark",class:"w-48 md:w-64 lg:w-80 opacity-20"})],-1)),i.value&&c.value?(_(),ke(k0,{key:0,itemId:String(c.value),userId:String(i.value),class:"fixed top-0 left-0 w-full z-20"},null,8,["itemId","userId"])):ye("",!0),f("div",O0,[(_(!0),C(Q,null,xe(n.value,O=>{var I;return _(),C("div",{key:O.id,class:"mb-2 flex"},[O.sender===((I=r.value)==null?void 0:I.id)?(_(),C("div",I0,[f("div",P0,[f("p",$0,G(O.content),1),f("span",j0,G(v(O.timestamp)),1)])])):(_(),C("div",M0,[f("div",L0,[f("p",D0,G(O.content),1),f("span",F0,G(v(O.timestamp)),1)])]))])}),128))],512),f("div",B0,[f("div",N0,[Ae(f("input",{"onUpdate:modelValue":R[0]||(R[0]=O=>s.value=O),onKeyup:Cu(a,["enter"]),type:"text",maxlength:"80",placeholder:"Digite uma mensagem (máx. 80 caracteres)...",class:"flex-1 border border-gray-300 rounded-full px-4 py-2 focus:outline-none focus:border-laranja"},null,544),[[ft,s.value]]),f("button",{onClick:a,disabled:!s.value.trim(),class:"ml-2 bg-laranja text-white px-4 py-2 rounded-full hover:bg-laranja-dark disabled:opacity-50 disabled:cursor-not-allowed transition-colors"}," Enviar ",8,U0)])])]))}},z0=[{path:"/",name:"Login",component:qf},{path:"/about",name:"About",component:cd,meta:{requiresAuth:!0}},{path:"/lost",name:"Lost",component:Th,meta:{requiresAuth:!0}},{path:"/found",name:"Found",component:qh,meta:{requiresAuth:!0}},{path:"/register-lost",name:"RegisterLost",component:Sm,meta:{requiresAuth:!0}},{path:"/register-found",name:"RegisterFound",component:tg,meta:{requiresAuth:!0}},{path:"/user",name:"User",component:fg,meta:{requiresAuth:!0}},{path:"/chats",name:"Chats",component:Og,meta:{requiresAuth:!0}},{path:"/list-item",name:"ListItem",component:Yg,meta:{requiresAuth:!0}},{path:"/user-items-lost",name:"UserItemsLost",component:f0},{path:"/user-items-found",name:"UserItemsFound",component:v0},{path:"/chat/new",name:"NewChat",component:ci,meta:{requiresAuth:!0}},{path:"/chat/:chatroomId",name:"Chat",component:ci,meta:{requiresAuth:!0},props:e=>({chatroomId:e.params.chatroomId||e.query.chatroomId,itemId:e.params.itemId||e.query.itemId})}],la=Pf({history:cf(),routes:z0}),Fs=ku(jf);Fs.use(la);Fs.component("Header",Kr);Fs.component("Alert",Wh);Fs.mount("#app"); diff --git a/API/AcheiUnB/tests/test_integration.py b/API/AcheiUnB/tests/test_integration.py index e69de29b..d9d3c78c 100644 --- a/API/AcheiUnB/tests/test_integration.py +++ b/API/AcheiUnB/tests/test_integration.py @@ -0,0 +1,108 @@ +import uuid +from unittest.mock import patch + +import pytest +import requests +from django.contrib.auth import get_user_model +from rest_framework_simplejwt.tokens import AccessToken + +User = get_user_model() + + +def get_jwt_token(user): + token = str(AccessToken.for_user(user)) + return token + + +@pytest.fixture() +def mock_authentication(): + user = User.objects.create_user( + username="testuser", email="test@example.com", password="testpass" + ) + token = get_jwt_token(user) + + with patch("users.authentication.CookieJWTAuthentication.authenticate") as mock_auth: + mock_auth.return_value = (user, token) + yield mock_auth + + +@pytest.mark.django_db() +def test_create_item(mock_authentication): + item_data = { + "barcode": "01010102", + "name": "testeEditar", + "user_id": 1, + "description": "Descrição do item aqui", + "category": 1, + "category_name": "Calçado", + "location": 1, + "location_name": "Biblioteca", + "color": 1, + "color_name": "Rosa", + "brand": 1, + "brand_name": "Stanley", + "status": "found", + "found_lost_date": "2025-01-19T15:49:28.598322-03:00", + } + + response = requests.post( + "http://localhost:8000/api/items/", + json=item_data, + cookies={"access_token": mock_authentication.return_value[1]}, + ) + + assert response.status_code == 201 + + +@pytest.mark.django_db() +def test_list_items(mock_authentication): + response = requests.get( + "http://localhost:8000/api/items/", + cookies={"access_token": mock_authentication.return_value[1]}, + ) + + assert response.status_code == 200 + assert "results" in response.json() + + +@pytest.mark.django_db() +def test_filter_items(mock_authentication): + params = { + "location_name": "Biblioteca", + "category_name": "Calçado", + } + + response = requests.get( + "http://localhost:8000/api/items/", + cookies={"access_token": mock_authentication.return_value[1]}, + params=params, + ) + + assert response.status_code == 200 + + +@pytest.mark.django_db() +def test_search_items(mock_authentication): + params = {"search": "teste"} + + response = requests.get( + "http://localhost:8000/api/items/", + cookies={"access_token": mock_authentication.return_value[1]}, + params=params, + ) + + assert response.status_code == 200 + + +@pytest.mark.django_db() +def test_get_messages(mock_authentication): + user1 = User.objects.create_user(username="usuario1@unb.br", password="senha123") + User.objects.create_user(username="usuario2@unb.br", password="senha123") + + mock_authentication.return_value = (user1, get_jwt_token(user1)) + + requests.post( + "http://localhost:8000/api/chat/messages/", + json={"room": 6, "content": "Oi, esse item é seu?"}, + headers={"Authorization": f"Bearer {mock_authentication.return_value[1]}"}, + )