mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2025-12-16 03:31:46 +01:00
77 lines
315 KiB
JavaScript
77 lines
315 KiB
JavaScript
(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 i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerpolicy&&(i.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?i.credentials="include":r.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();function hs(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}function cn(e){if(ce(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=Ve(s)?zc(s):cn(s);if(r)for(const i in r)t[i]=r[i]}return t}else{if(Ve(e))return e;if(Oe(e))return e}}const Wc=/;(?![^(]*\))/g,Uc=/:([^]+)/,Vc=/\/\*.*?\*\//gs;function zc(e){const t={};return e.replace(Vc,"").split(Wc).forEach(n=>{if(n){const s=n.split(Uc);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function $n(e){let t="";if(Ve(e))t=e;else if(ce(e))for(let n=0;n<e.length;n++){const s=$n(e[n]);s&&(t+=s+" ")}else if(Oe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Gc="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Kc=hs(Gc);function Da(e){return!!e||e===""}function Yc(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Gi(e[s],t[s]);return n}function Gi(e,t){if(e===t)return!0;let n=to(e),s=to(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=oi(e),s=oi(t),n||s)return e===t;if(n=ce(e),s=ce(t),n||s)return n&&s?Yc(e,t):!1;if(n=Oe(e),s=Oe(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),a=t.hasOwnProperty(o);if(l&&!a||!l&&a||!Gi(e[o],t[o]))return!1}}return String(e)===String(t)}const J=e=>Ve(e)?e:e==null?"":ce(e)||Oe(e)&&(e.toString===ja||!ge(e.toString))?JSON.stringify(e,Fa,2):String(e),Fa=(e,t)=>t&&t.__v_isRef?Fa(e,t.value):En(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Ba(t)?{[`Set(${t.size})`]:[...t.values()]}:Oe(t)&&!ce(t)&&!Wa(t)?String(t):t,Me={},wn=[],gt=()=>{},Xc=()=>!1,qc=/^on[^a-z]/,fr=e=>qc.test(e),ps=e=>e.startsWith("onUpdate:"),Ze=Object.assign,ms=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Qc=Object.prototype.hasOwnProperty,Se=(e,t)=>Qc.call(e,t),ce=Array.isArray,En=e=>yi(e)==="[object Map]",Ba=e=>yi(e)==="[object Set]",to=e=>yi(e)==="[object Date]",ge=e=>typeof e=="function",Ve=e=>typeof e=="string",oi=e=>typeof e=="symbol",Oe=e=>e!==null&&typeof e=="object",Ha=e=>Oe(e)&&ge(e.then)&&ge(e.catch),ja=Object.prototype.toString,yi=e=>ja.call(e),Jc=e=>yi(e).slice(8,-1),Wa=e=>yi(e)==="[object Object]",gs=e=>Ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Hi=hs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),dr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Zc=/-(\w)/g,Pt=dr(e=>e.replace(Zc,(t,n)=>n?n.toUpperCase():"")),eu=/\B([A-Z])/g,Dn=dr(e=>e.replace(eu,"-$1").toLowerCase()),hr=dr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ar=dr(e=>e?`on${hr(e)}`:""),ai=(e,t)=>!Object.is(e,t),ji=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ki=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ua=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let no;const tu=()=>no||(no=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Et;class Va{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Et,!t&&Et&&(this.index=(Et.scopes||(Et.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Et;try{return Et=this,t()}finally{Et=n}}}on(){Et=this}off(){Et=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this.active=!1}}}function nu(e){return new Va(e)}function iu(e,t=Et){t&&t.active&&t.effects.push(e)}const vs=e=>{const t=new Set(e);return t.w=0,t.n=0,t},za=e=>(e.w&Xt)>0,Ga=e=>(e.n&Xt)>0,ru=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Xt},su=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const r=t[s];za(r)&&!Ga(r)?r.delete(e):t[n++]=r,r.w&=~Xt,r.n&=~Xt}t.length=n}},Br=new WeakMap;let Yn=0,Xt=1;const Hr=30;let ht;const dn=Symbol(""),jr=Symbol("");class _s{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,iu(this,s)}run(){if(!this.active)return this.fn();let t=ht,n=Kt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ht,ht=this,Kt=!0,Xt=1<<++Yn,Yn<=Hr?ru(this):io(this),this.fn()}finally{Yn<=Hr&&su(this),Xt=1<<--Yn,ht=this.parent,Kt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ht===this?this.deferStop=!0:this.active&&(io(this),this.onStop&&this.onStop(),this.active=!1)}}function io(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Kt=!0;const Ka=[];function Fn(){Ka.push(Kt),Kt=!1}function Bn(){const e=Ka.pop();Kt=e===void 0?!0:e}function st(e,t,n){if(Kt&&ht){let s=Br.get(e);s||Br.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=vs()),Ya(r)}}function Ya(e,t){let n=!1;Yn<=Hr?Ga(e)||(e.n|=Xt,n=!za(e)):n=!e.has(ht),n&&(e.add(ht),ht.deps.push(e))}function Nt(e,t,n,s,r,i){const o=Br.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&ce(e)){const a=Ua(s);o.forEach((d,u)=>{(u==="length"||u>=a)&&l.push(d)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":ce(e)?gs(n)&&l.push(o.get("length")):(l.push(o.get(dn)),En(e)&&l.push(o.get(jr)));break;case"delete":ce(e)||(l.push(o.get(dn)),En(e)&&l.push(o.get(jr)));break;case"set":En(e)&&l.push(o.get(dn));break}if(l.length===1)l[0]&&Wr(l[0]);else{const a=[];for(const d of l)d&&a.push(...d);Wr(vs(a))}}function Wr(e,t){const n=ce(e)?e:[...e];for(const s of n)s.computed&&ro(s);for(const s of n)s.computed||ro(s)}function ro(e,t){(e!==ht||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const ou=hs("__proto__,__v_isRef,__isVue"),Xa=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(oi)),au=ys(),lu=ys(!1,!0),cu=ys(!0),so=uu();function uu(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Ae(this);for(let i=0,o=this.length;i<o;i++)st(s,"get",i+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(Ae)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Fn();const s=Ae(this)[t].apply(this,n);return Bn(),s}}),e}function ys(e=!1,t=!1){return function(s,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?ku:el:t?Za:Ja).get(s))return s;const o=ce(s);if(!e&&o&&Se(so,r))return Reflect.get(so,r,i);const l=Reflect.get(s,r,i);return(oi(r)?Xa.has(r):ou(r))||(e||st(s,"get",r),t)?l:Ye(l)?o&&gs(r)?l:l.value:Oe(l)?e?tl(l):xi(l):l}}const fu=qa(),du=qa(!0);function qa(e=!1){return function(n,s,r,i){let o=n[s];if(kn(o)&&Ye(o)&&!Ye(r))return!1;if(!e&&(!Yi(r)&&!kn(r)&&(o=Ae(o),r=Ae(r)),!ce(n)&&Ye(o)&&!Ye(r)))return o.value=r,!0;const l=ce(n)&&gs(s)?Number(s)<n.length:Se(n,s),a=Reflect.set(n,s,r,i);return n===Ae(i)&&(l?ai(r,o)&&Nt(n,"set",s,r):Nt(n,"add",s,r)),a}}function hu(e,t){const n=Se(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&Nt(e,"delete",t,void 0),s}function pu(e,t){const n=Reflect.has(e,t);return(!oi(t)||!Xa.has(t))&&st(e,"has",t),n}function mu(e){return st(e,"iterate",ce(e)?"length":dn),Reflect.ownKeys(e)}const Qa={get:au,set:fu,deleteProperty:hu,has:pu,ownKeys:mu},gu={get:cu,set(e,t){return!0},deleteProperty(e,t){return!0}},vu=Ze({},Qa,{get:lu,set:du}),xs=e=>e,pr=e=>Reflect.getPrototypeOf(e);function ki(e,t,n=!1,s=!1){e=e.__v_raw;const r=Ae(e),i=Ae(t);n||(t!==i&&st(r,"get",t),st(r,"get",i));const{has:o}=pr(r),l=s?xs:n?Es:li;if(o.call(r,t))return l(e.get(t));if(o.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function Ai(e,t=!1){const n=this.__v_raw,s=Ae(n),r=Ae(e);return t||(e!==r&&st(s,"has",e),st(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Ti(e,t=!1){return e=e.__v_raw,!t&&st(Ae(e),"iterate",dn),Reflect.get(e,"size",e)}function oo(e){e=Ae(e);const t=Ae(this);return pr(t).has.call(t,e)||(t.add(e),Nt(t,"add",e,e)),this}function ao(e,t){t=Ae(t);const n=Ae(this),{has:s,get:r}=pr(n);let i=s.call(n,e);i||(e=Ae(e),i=s.call(n,e));const o=r.call(n,e);return n.set(e,t),i?ai(t,o)&&Nt(n,"set",e,t):Nt(n,"add",e,t),this}function lo(e){const t=Ae(this),{has:n,get:s}=pr(t);let r=n.call(t,e);r||(e=Ae(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&Nt(t,"delete",e,void 0),i}function co(){const e=Ae(this),t=e.size!==0,n=e.clear();return t&&Nt(e,"clear",void 0,void 0),n}function Pi(e,t){return function(s,r){const i=this,o=i.__v_raw,l=Ae(o),a=t?xs:e?Es:li;return!e&&st(l,"iterate",dn),o.forEach((d,u)=>s.call(r,a(d),a(u),i))}}function Li(e,t,n){return function(...s){const r=this.__v_raw,i=Ae(r),o=En(i),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,d=r[e](...s),u=n?xs:t?Es:li;return!t&&st(i,"iterate",a?jr:dn),{next(){const{value:h,done:f}=d.next();return f?{value:h,done:f}:{value:l?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function Ft(e){return function(...t){return e==="delete"?!1:this}}function _u(){const e={get(i){return ki(this,i)},get size(){return Ti(this)},has:Ai,add:oo,set:ao,delete:lo,clear:co,forEach:Pi(!1,!1)},t={get(i){return ki(this,i,!1,!0)},get size(){return Ti(this)},has:Ai,add:oo,set:ao,delete:lo,clear:co,forEach:Pi(!1,!0)},n={get(i){return ki(this,i,!0)},get size(){return Ti(this,!0)},has(i){return Ai.call(this,i,!0)},add:Ft("add"),set:Ft("set"),delete:Ft("delete"),clear:Ft("clear"),forEach:Pi(!0,!1)},s={get(i){return ki(this,i,!0,!0)},get size(){return Ti(this,!0)},has(i){return Ai.call(this,i,!0)},add:Ft("add"),set:Ft("set"),delete:Ft("delete"),clear:Ft("clear"),forEach:Pi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Li(i,!1,!1),n[i]=Li(i,!0,!1),t[i]=Li(i,!1,!0),s[i]=Li(i,!0,!0)}),[e,n,t,s]}const[yu,xu,bu,wu]=_u();function bs(e,t){const n=t?e?wu:bu:e?xu:yu;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Se(n,r)&&r in s?n:s,r,i)}const Eu={get:bs(!1,!1)},Su={get:bs(!1,!0)},Cu={get:bs(!0,!1)},Ja=new WeakMap,Za=new WeakMap,el=new WeakMap,ku=new WeakMap;function Au(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Tu(e){return e.__v_skip||!Object.isExtensible(e)?0:Au(Jc(e))}function xi(e){return kn(e)?e:ws(e,!1,Qa,Eu,Ja)}function Pu(e){return ws(e,!1,vu,Su,Za)}function tl(e){return ws(e,!0,gu,Cu,el)}function ws(e,t,n,s,r){if(!Oe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=Tu(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function Sn(e){return kn(e)?Sn(e.__v_raw):!!(e&&e.__v_isReactive)}function kn(e){return!!(e&&e.__v_isReadonly)}function Yi(e){return!!(e&&e.__v_isShallow)}function nl(e){return Sn(e)||kn(e)}function Ae(e){const t=e&&e.__v_raw;return t?Ae(t):e}function il(e){return Ki(e,"__v_skip",!0),e}const li=e=>Oe(e)?xi(e):e,Es=e=>Oe(e)?tl(e):e;function rl(e){Kt&&ht&&(e=Ae(e),Ya(e.dep||(e.dep=vs())))}function sl(e,t){e=Ae(e),e.dep&&Wr(e.dep)}function Ye(e){return!!(e&&e.__v_isRef===!0)}function xe(e){return al(e,!1)}function ol(e){return al(e,!0)}function al(e,t){return Ye(e)?e:new Lu(e,t)}class Lu{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ae(t),this._value=n?t:li(t)}get value(){return rl(this),this._value}set value(t){const n=this.__v_isShallow||Yi(t)||kn(t);t=n?t:Ae(t),ai(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:li(t),sl(this))}}function $(e){return Ye(e)?e.value:e}const Iu={get:(e,t,n)=>$(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Ye(r)&&!Ye(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function ll(e){return Sn(e)?e:new Proxy(e,Iu)}var cl;class Ou{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[cl]=!1,this._dirty=!0,this.effect=new _s(t,()=>{this._dirty||(this._dirty=!0,sl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=Ae(this);return rl(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}cl="__v_isReadonly";function Mu(e,t,n=!1){let s,r;const i=ge(e);return i?(s=e,r=gt):(s=e.get,r=e.set),new Ou(s,r,i||!r,n)}function Yt(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){mr(i,t,n)}return r}function vt(e,t,n,s){if(ge(e)){const i=Yt(e,t,n,s);return i&&Ha(i)&&i.catch(o=>{mr(o,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(vt(e[i],t,n,s));return r}function mr(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,l=n;for(;i;){const d=i.ec;if(d){for(let u=0;u<d.length;u++)if(d[u](e,o,l)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){Yt(a,null,10,[e,o,l]);return}}Ru(e,n,r,s)}function Ru(e,t,n,s=!0){console.error(e)}let ci=!1,Ur=!1;const qe=[];let kt=0;const Cn=[];let Rt=null,sn=0;const ul=Promise.resolve();let Ss=null;function fl(e){const t=Ss||ul;return e?t.then(this?e.bind(this):e):t}function Nu(e){let t=kt+1,n=qe.length;for(;t<n;){const s=t+n>>>1;ui(qe[s])<e?t=s+1:n=s}return t}function Cs(e){(!qe.length||!qe.includes(e,ci&&e.allowRecurse?kt+1:kt))&&(e.id==null?qe.push(e):qe.splice(Nu(e.id),0,e),dl())}function dl(){!ci&&!Ur&&(Ur=!0,Ss=ul.then(pl))}function $u(e){const t=qe.indexOf(e);t>kt&&qe.splice(t,1)}function Du(e){ce(e)?Cn.push(...e):(!Rt||!Rt.includes(e,e.allowRecurse?sn+1:sn))&&Cn.push(e),dl()}function uo(e,t=ci?kt+1:0){for(;t<qe.length;t++){const n=qe[t];n&&n.pre&&(qe.splice(t,1),t--,n())}}function hl(e){if(Cn.length){const t=[...new Set(Cn)];if(Cn.length=0,Rt){Rt.push(...t);return}for(Rt=t,Rt.sort((n,s)=>ui(n)-ui(s)),sn=0;sn<Rt.length;sn++)Rt[sn]();Rt=null,sn=0}}const ui=e=>e.id==null?1/0:e.id,Fu=(e,t)=>{const n=ui(e)-ui(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function pl(e){Ur=!1,ci=!0,qe.sort(Fu);const t=gt;try{for(kt=0;kt<qe.length;kt++){const n=qe[kt];n&&n.active!==!1&&Yt(n,null,14)}}finally{kt=0,qe.length=0,hl(),ci=!1,Ss=null,(qe.length||Cn.length)&&pl()}}function Bu(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Me;let r=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in s){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=s[u]||Me;f&&(r=n.map(c=>Ve(c)?c.trim():c)),h&&(r=n.map(Ua))}let l,a=s[l=Ar(t)]||s[l=Ar(Pt(t))];!a&&i&&(a=s[l=Ar(Dn(t))]),a&&vt(a,e,6,r);const d=s[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,vt(d,e,6,r)}}function ml(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!ge(e)){const a=d=>{const u=ml(d,t,!0);u&&(l=!0,Ze(o,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(Oe(e)&&s.set(e,null),null):(ce(i)?i.forEach(a=>o[a]=null):Ze(o,i),Oe(e)&&s.set(e,o),o)}function gr(e,t){return!e||!fr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Se(e,t[0].toLowerCase()+t.slice(1))||Se(e,Dn(t))||Se(e,t))}let Xe=null,gl=null;function Xi(e){const t=Xe;return Xe=e,gl=e&&e.type.__scopeId||null,t}function Re(e,t=Xe,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&xo(-1);const i=Xi(t);let o;try{o=e(...r)}finally{Xi(i),s._d&&xo(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Tr(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:l,attrs:a,emit:d,render:u,renderCache:h,data:f,setupState:c,ctx:m,inheritAttrs:p}=e;let _,v;const S=Xi(e);try{if(n.shapeFlag&4){const g=r||s;_=St(u.call(g,g,h,i,c,f,m)),v=a}else{const g=t;_=St(g.length>1?g(i,{attrs:a,slots:l,emit:d}):g(i,null)),v=t.props?a:Hu(a)}}catch(g){Qn.length=0,mr(g,e,1),_=X(qt)}let C=_;if(v&&p!==!1){const g=Object.keys(v),{shapeFlag:y}=C;g.length&&y&7&&(o&&g.some(ps)&&(v=ju(v,o)),C=An(C,v))}return n.dirs&&(C=An(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),_=C,Xi(S),_}const Hu=e=>{let t;for(const n in e)(n==="class"||n==="style"||fr(n))&&((t||(t={}))[n]=e[n]);return t},ju=(e,t)=>{const n={};for(const s in e)(!ps(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Wu(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:a}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?fo(s,o,d):!!o;if(a&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(o[f]!==s[f]&&!gr(d,f))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?fo(s,o,d):!0:!!o;return!1}function fo(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(t[i]!==e[i]&&!gr(n,i))return!0}return!1}function Uu({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Vu=e=>e.__isSuspense;function zu(e,t){t&&t.pendingBranch?ce(e)?t.effects.push(...e):t.effects.push(e):Du(e)}function Wi(e,t){if(ze){let n=ze.provides;const s=ze.parent&&ze.parent.provides;s===n&&(n=ze.provides=Object.create(s)),n[e]=t}}function _t(e,t,n=!1){const s=ze||Xe;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ge(t)?t.call(s.proxy):t}}const Ii={};function At(e,t,n){return vl(e,t,n)}function vl(e,t,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:o}=Me){const l=ze;let a,d=!1,u=!1;if(Ye(e)?(a=()=>e.value,d=Yi(e)):Sn(e)?(a=()=>e,s=!0):ce(e)?(u=!0,d=e.some(C=>Sn(C)||Yi(C)),a=()=>e.map(C=>{if(Ye(C))return C.value;if(Sn(C))return un(C);if(ge(C))return Yt(C,l,2)})):ge(e)?t?a=()=>Yt(e,l,2):a=()=>{if(!(l&&l.isUnmounted))return h&&h(),vt(e,l,3,[f])}:a=gt,t&&s){const C=a;a=()=>un(C())}let h,f=C=>{h=v.onStop=()=>{Yt(C,l,4)}},c;if(hi)if(f=gt,t?n&&vt(t,l,3,[a(),u?[]:void 0,f]):a(),r==="sync"){const C=Ff();c=C.__watcherHandles||(C.__watcherHandles=[])}else return gt;let m=u?new Array(e.length).fill(Ii):Ii;const p=()=>{if(v.active)if(t){const C=v.run();(s||d||(u?C.some((g,y)=>ai(g,m[y])):ai(C,m)))&&(h&&h(),vt(t,l,3,[C,m===Ii?void 0:u&&m[0]===Ii?[]:m,f]),m=C)}else v.run()};p.allowRecurse=!!t;let _;r==="sync"?_=p:r==="post"?_=()=>tt(p,l&&l.suspense):(p.pre=!0,l&&(p.id=l.uid),_=()=>Cs(p));const v=new _s(a,_);t?n?p():m=v.run():r==="post"?tt(v.run.bind(v),l&&l.suspense):v.run();const S=()=>{v.stop(),l&&l.scope&&ms(l.scope.effects,v)};return c&&c.push(S),S}function Gu(e,t,n){const s=this.proxy,r=Ve(e)?e.includes(".")?_l(s,e):()=>s[e]:e.bind(s,s);let i;ge(t)?i=t:(i=t.handler,n=t);const o=ze;Tn(this);const l=vl(r,i.bind(s),n);return o?Tn(o):hn(),l}function _l(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function un(e,t){if(!Oe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Ye(e))un(e.value,t);else if(ce(e))for(let n=0;n<e.length;n++)un(e[n],t);else if(Ba(e)||En(e))e.forEach(n=>{un(n,t)});else if(Wa(e))for(const n in e)un(e[n],t);return e}function pe(e){return ge(e)?{setup:e,name:e.name}:e}const Xn=e=>!!e.type.__asyncLoader,yl=e=>e.type.__isKeepAlive;function Ku(e,t){xl(e,"a",t)}function Yu(e,t){xl(e,"da",t)}function xl(e,t,n=ze){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(vr(t,s,n),n){let r=n.parent;for(;r&&r.parent;)yl(r.parent.vnode)&&Xu(s,t,n,r),r=r.parent}}function Xu(e,t,n,s){const r=vr(t,e,s,!0);ks(()=>{ms(s[t],r)},n)}function vr(e,t,n=ze,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Fn(),Tn(n);const l=vt(t,n,e,o);return hn(),Bn(),l});return s?r.unshift(i):r.push(i),i}}const Dt=e=>(t,n=ze)=>(!hi||e==="sp")&&vr(e,(...s)=>t(...s),n),bl=Dt("bm"),ut=Dt("m"),qu=Dt("bu"),Qu=Dt("u"),Ju=Dt("bum"),ks=Dt("um"),Zu=Dt("sp"),ef=Dt("rtg"),tf=Dt("rtc");function nf(e,t=ze){vr("ec",e,t)}function Gt(e,t){const n=Xe;if(n===null)return e;const s=yr(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,l,a,d=Me]=t[i];o&&(ge(o)&&(o={mounted:o,updated:o}),o.deep&&un(l),r.push({dir:o,instance:s,value:l,oldValue:void 0,arg:a,modifiers:d}))}return e}function tn(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let a=l.dir[s];a&&(Fn(),vt(a,n,8,[e.el,l,e,t]),Bn())}}const wl="components";function rf(e,t){return of(wl,e,!0,t)||e}const sf=Symbol();function of(e,t,n=!0,s=!1){const r=Xe||ze;if(r){const i=r.type;if(e===wl){const l=Nf(i,!1);if(l&&(l===t||l===Pt(t)||l===hr(Pt(t))))return i}const o=ho(r[e]||i[e],t)||ho(r.appContext[e],t);return!o&&s?i:o}}function ho(e,t){return e&&(e[t]||e[Pt(t)]||e[hr(Pt(t))])}function qi(e,t,n,s){let r;const i=n&&n[s];if(ce(e)||Ve(e)){r=new Array(e.length);for(let o=0,l=e.length;o<l;o++)r[o]=t(e[o],o,void 0,i&&i[o])}else if(typeof e=="number"){r=new Array(e);for(let o=0;o<e;o++)r[o]=t(o+1,o,void 0,i&&i[o])}else if(Oe(e))if(e[Symbol.iterator])r=Array.from(e,(o,l)=>t(o,l,void 0,i&&i[l]));else{const o=Object.keys(e);r=new Array(o.length);for(let l=0,a=o.length;l<a;l++){const d=o[l];r[l]=t(e[d],d,l,i&&i[l])}}else r=[];return n&&(n[s]=r),r}function As(e,t,n={},s,r){if(Xe.isCE||Xe.parent&&Xn(Xe.parent)&&Xe.parent.isCE)return t!=="default"&&(n.name=t),X("slot",n,s&&s());let i=e[t];i&&i._c&&(i._d=!1),ne();const o=i&&El(i(n)),l=Ke(Fe,{key:n.key||o&&o.key||`_${t}`},o||(s?s():[]),o&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function El(e){return e.some(t=>Ji(t)?!(t.type===qt||t.type===Fe&&!El(t.children)):!0)?e:null}const Vr=e=>e?Rl(e)?yr(e)||e.proxy:Vr(e.parent):null,qn=Ze(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=>Vr(e.parent),$root:e=>Vr(e.root),$emit:e=>e.emit,$options:e=>Ts(e),$forceUpdate:e=>e.f||(e.f=()=>Cs(e.update)),$nextTick:e=>e.n||(e.n=fl.bind(e.proxy)),$watch:e=>Gu.bind(e)}),Pr=(e,t)=>e!==Me&&!e.__isScriptSetup&&Se(e,t),af={get({_:e},t){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:a}=e;let d;if(t[0]!=="$"){const c=o[t];if(c!==void 0)switch(c){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Pr(s,t))return o[t]=1,s[t];if(r!==Me&&Se(r,t))return o[t]=2,r[t];if((d=e.propsOptions[0])&&Se(d,t))return o[t]=3,i[t];if(n!==Me&&Se(n,t))return o[t]=4,n[t];zr&&(o[t]=0)}}const u=qn[t];let h,f;if(u)return t==="$attrs"&&st(e,"get",t),u(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==Me&&Se(n,t))return o[t]=4,n[t];if(f=a.config.globalProperties,Se(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Pr(r,t)?(r[t]=n,!0):s!==Me&&Se(s,t)?(s[t]=n,!0):Se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==Me&&Se(e,o)||Pr(t,o)||(l=i[0])&&Se(l,o)||Se(s,o)||Se(qn,o)||Se(r.config.globalProperties,o)},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)}};let zr=!0;function lf(e){const t=Ts(e),n=e.proxy,s=e.ctx;zr=!1,t.beforeCreate&&po(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:a,inject:d,created:u,beforeMount:h,mounted:f,beforeUpdate:c,updated:m,activated:p,deactivated:_,beforeDestroy:v,beforeUnmount:S,destroyed:C,unmounted:g,render:y,renderTracked:b,renderTriggered:w,errorCaptured:L,serverPrefetch:T,expose:O,inheritAttrs:I,components:N,directives:F,filters:z}=t;if(d&&cf(d,s,null,e.appContext.config.unwrapInjectedRef),o)for(const q in o){const te=o[q];ge(te)&&(s[q]=te.bind(n))}if(r){const q=r.call(n,n);Oe(q)&&(e.data=xi(q))}if(zr=!0,i)for(const q in i){const te=i[q],re=ge(te)?te.bind(n,n):ge(te.get)?te.get.bind(n,n):gt,me=!ge(te)&&ge(te.set)?te.set.bind(n):gt,de=$e({get:re,set:me});Object.defineProperty(s,q,{enumerable:!0,configurable:!0,get:()=>de.value,set:ue=>de.value=ue})}if(l)for(const q in l)Sl(l[q],s,n,q);if(a){const q=ge(a)?a.call(n):a;Reflect.ownKeys(q).forEach(te=>{Wi(te,q[te])})}u&&po(u,e,"c");function U(q,te){ce(te)?te.forEach(re=>q(re.bind(n))):te&&q(te.bind(n))}if(U(bl,h),U(ut,f),U(qu,c),U(Qu,m),U(Ku,p),U(Yu,_),U(nf,L),U(tf,b),U(ef,w),U(Ju,S),U(ks,g),U(Zu,T),ce(O))if(O.length){const q=e.exposed||(e.exposed={});O.forEach(te=>{Object.defineProperty(q,te,{get:()=>n[te],set:re=>n[te]=re})})}else e.exposed||(e.exposed={});y&&e.render===gt&&(e.render=y),I!=null&&(e.inheritAttrs=I),N&&(e.components=N),F&&(e.directives=F)}function cf(e,t,n=gt,s=!1){ce(e)&&(e=Gr(e));for(const r in e){const i=e[r];let o;Oe(i)?"default"in i?o=_t(i.from||r,i.default,!0):o=_t(i.from||r):o=_t(i),Ye(o)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[r]=o}}function po(e,t,n){vt(ce(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Sl(e,t,n,s){const r=s.includes(".")?_l(n,s):()=>n[s];if(Ve(e)){const i=t[e];ge(i)&&At(r,i)}else if(ge(e))At(r,e.bind(n));else if(Oe(e))if(ce(e))e.forEach(i=>Sl(i,t,n,s));else{const i=ge(e.handler)?e.handler.bind(n):t[e.handler];ge(i)&&At(r,i,e)}}function Ts(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(d=>Qi(a,d,o,!0)),Qi(a,t,o)),Oe(t)&&i.set(t,a),a}function Qi(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Qi(e,i,n,!0),r&&r.forEach(o=>Qi(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=uf[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const uf={data:mo,props:rn,emits:rn,methods:rn,computed:rn,beforeCreate:Qe,created:Qe,beforeMount:Qe,mounted:Qe,beforeUpdate:Qe,updated:Qe,beforeDestroy:Qe,beforeUnmount:Qe,destroyed:Qe,unmounted:Qe,activated:Qe,deactivated:Qe,errorCaptured:Qe,serverPrefetch:Qe,components:rn,directives:rn,watch:df,provide:mo,inject:ff};function mo(e,t){return t?e?function(){return Ze(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function ff(e,t){return rn(Gr(e),Gr(t))}function Gr(e){if(ce(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Qe(e,t){return e?[...new Set([].concat(e,t))]:t}function rn(e,t){return e?Ze(Ze(Object.create(null),e),t):t}function df(e,t){if(!e)return t;if(!t)return e;const n=Ze(Object.create(null),e);for(const s in t)n[s]=Qe(e[s],t[s]);return n}function hf(e,t,n,s=!1){const r={},i={};Ki(i,_r,1),e.propsDefaults=Object.create(null),Cl(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Pu(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function pf(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=Ae(r),[a]=e.propsOptions;let d=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(gr(e.emitsOptions,f))continue;const c=t[f];if(a)if(Se(i,f))c!==i[f]&&(i[f]=c,d=!0);else{const m=Pt(f);r[m]=Kr(a,l,m,c,e,!1)}else c!==i[f]&&(i[f]=c,d=!0)}}}else{Cl(e,t,r,i)&&(d=!0);let u;for(const h in l)(!t||!Se(t,h)&&((u=Dn(h))===h||!Se(t,u)))&&(a?n&&(n[h]!==void 0||n[u]!==void 0)&&(r[h]=Kr(a,l,h,void 0,e,!0)):delete r[h]);if(i!==l)for(const h in i)(!t||!Se(t,h))&&(delete i[h],d=!0)}d&&Nt(e,"set","$attrs")}function Cl(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(Hi(a))continue;const d=t[a];let u;r&&Se(r,u=Pt(a))?!i||!i.includes(u)?n[u]=d:(l||(l={}))[u]=d:gr(e.emitsOptions,a)||(!(a in s)||d!==s[a])&&(s[a]=d,o=!0)}if(i){const a=Ae(n),d=l||Me;for(let u=0;u<i.length;u++){const h=i[u];n[h]=Kr(r,a,h,d[h],e,!Se(d,h))}}return o}function Kr(e,t,n,s,r,i){const o=e[n];if(o!=null){const l=Se(o,"default");if(l&&s===void 0){const a=o.default;if(o.type!==Function&&ge(a)){const{propsDefaults:d}=r;n in d?s=d[n]:(Tn(r),s=d[n]=a.call(null,t),hn())}else s=a}o[0]&&(i&&!l?s=!1:o[1]&&(s===""||s===Dn(n))&&(s=!0))}return s}function kl(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},l=[];let a=!1;if(!ge(e)){const u=h=>{a=!0;const[f,c]=kl(h,t,!0);Ze(o,f),c&&l.push(...c)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return Oe(e)&&s.set(e,wn),wn;if(ce(i))for(let u=0;u<i.length;u++){const h=Pt(i[u]);go(h)&&(o[h]=Me)}else if(i)for(const u in i){const h=Pt(u);if(go(h)){const f=i[u],c=o[h]=ce(f)||ge(f)?{type:f}:Object.assign({},f);if(c){const m=yo(Boolean,c.type),p=yo(String,c.type);c[0]=m>-1,c[1]=p<0||m<p,(m>-1||Se(c,"default"))&&l.push(h)}}}const d=[o,l];return Oe(e)&&s.set(e,d),d}function go(e){return e[0]!=="$"}function vo(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function _o(e,t){return vo(e)===vo(t)}function yo(e,t){return ce(t)?t.findIndex(n=>_o(n,e)):ge(t)&&_o(t,e)?0:-1}const Al=e=>e[0]==="_"||e==="$stable",Ps=e=>ce(e)?e.map(St):[St(e)],mf=(e,t,n)=>{if(t._n)return t;const s=Re((...r)=>Ps(t(...r)),n);return s._c=!1,s},Tl=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Al(r))continue;const i=e[r];if(ge(i))t[r]=mf(r,i,s);else if(i!=null){const o=Ps(i);t[r]=()=>o}}},Pl=(e,t)=>{const n=Ps(t);e.slots.default=()=>n},gf=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ae(t),Ki(t,"_",n)):Tl(t,e.slots={})}else e.slots={},t&&Pl(e,t);Ki(e.slots,_r,1)},vf=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=Me;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Ze(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Tl(t,r)),o=t}else t&&(Pl(e,t),o={default:1});if(i)for(const l in r)!Al(l)&&!(l in o)&&delete r[l]};function Ll(){return{app:null,config:{isNativeTag:Xc,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let _f=0;function yf(e,t){return function(s,r=null){ge(s)||(s=Object.assign({},s)),r!=null&&!Oe(r)&&(r=null);const i=Ll(),o=new Set;let l=!1;const a=i.app={_uid:_f++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:Bf,get config(){return i.config},set config(d){},use(d,...u){return o.has(d)||(d&&ge(d.install)?(o.add(d),d.install(a,...u)):ge(d)&&(o.add(d),d(a,...u))),a},mixin(d){return i.mixins.includes(d)||i.mixins.push(d),a},component(d,u){return u?(i.components[d]=u,a):i.components[d]},directive(d,u){return u?(i.directives[d]=u,a):i.directives[d]},mount(d,u,h){if(!l){const f=X(s,r);return f.appContext=i,u&&t?t(f,d):e(f,d,h),l=!0,a._container=d,d.__vue_app__=a,yr(f.component)||f.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(d,u){return i.provides[d]=u,a}};return a}}function Yr(e,t,n,s,r=!1){if(ce(e)){e.forEach((f,c)=>Yr(f,t&&(ce(t)?t[c]:t),n,s,r));return}if(Xn(s)&&!r)return;const i=s.shapeFlag&4?yr(s.component)||s.component.proxy:s.el,o=r?null:i,{i:l,r:a}=e,d=t&&t.r,u=l.refs===Me?l.refs={}:l.refs,h=l.setupState;if(d!=null&&d!==a&&(Ve(d)?(u[d]=null,Se(h,d)&&(h[d]=null)):Ye(d)&&(d.value=null)),ge(a))Yt(a,l,12,[o,u]);else{const f=Ve(a),c=Ye(a);if(f||c){const m=()=>{if(e.f){const p=f?Se(h,a)?h[a]:u[a]:a.value;r?ce(p)&&ms(p,i):ce(p)?p.includes(i)||p.push(i):f?(u[a]=[i],Se(h,a)&&(h[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else f?(u[a]=o,Se(h,a)&&(h[a]=o)):c&&(a.value=o,e.k&&(u[e.k]=o))};o?(m.id=-1,tt(m,n)):m()}}}const tt=zu;function xf(e){return bf(e)}function bf(e,t){const n=tu();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:a,setText:d,setElementText:u,parentNode:h,nextSibling:f,setScopeId:c=gt,insertStaticContent:m}=e,p=(k,x,E,A=null,M=null,H=null,W=!1,V=null,G=!!x.dynamicChildren)=>{if(k===x)return;k&&!Wn(k,x)&&(A=K(k),ue(k,M,H,!0),k=null),x.patchFlag===-2&&(G=!1,x.dynamicChildren=null);const{type:j,ref:R,shapeFlag:D}=x;switch(j){case bi:_(k,x,E,A);break;case qt:v(k,x,E,A);break;case Lr:k==null&&S(x,E,A,W);break;case Fe:N(k,x,E,A,M,H,W,V,G);break;default:D&1?y(k,x,E,A,M,H,W,V,G):D&6?F(k,x,E,A,M,H,W,V,G):(D&64||D&128)&&j.process(k,x,E,A,M,H,W,V,G,le)}R!=null&&M&&Yr(R,k&&k.ref,H,x||k,!x)},_=(k,x,E,A)=>{if(k==null)s(x.el=l(x.children),E,A);else{const M=x.el=k.el;x.children!==k.children&&d(M,x.children)}},v=(k,x,E,A)=>{k==null?s(x.el=a(x.children||""),E,A):x.el=k.el},S=(k,x,E,A)=>{[k.el,k.anchor]=m(k.children,x,E,A,k.el,k.anchor)},C=({el:k,anchor:x},E,A)=>{let M;for(;k&&k!==x;)M=f(k),s(k,E,A),k=M;s(x,E,A)},g=({el:k,anchor:x})=>{let E;for(;k&&k!==x;)E=f(k),r(k),k=E;r(x)},y=(k,x,E,A,M,H,W,V,G)=>{W=W||x.type==="svg",k==null?b(x,E,A,M,H,W,V,G):T(k,x,M,H,W,V,G)},b=(k,x,E,A,M,H,W,V)=>{let G,j;const{type:R,props:D,shapeFlag:ie,transition:se,dirs:he}=k;if(G=k.el=o(k.type,H,D&&D.is,D),ie&8?u(G,k.children):ie&16&&L(k.children,G,null,A,M,H&&R!=="foreignObject",W,V),he&&tn(k,null,A,"created"),D){for(const _e in D)_e!=="value"&&!Hi(_e)&&i(G,_e,null,D[_e],H,k.children,A,M,Y);"value"in D&&i(G,"value",null,D.value),(j=D.onVnodeBeforeMount)&&bt(j,A,k)}w(G,k,k.scopeId,W,A),he&&tn(k,null,A,"beforeMount");const Ee=(!M||M&&!M.pendingBranch)&&se&&!se.persisted;Ee&&se.beforeEnter(G),s(G,x,E),((j=D&&D.onVnodeMounted)||Ee||he)&&tt(()=>{j&&bt(j,A,k),Ee&&se.enter(G),he&&tn(k,null,A,"mounted")},M)},w=(k,x,E,A,M)=>{if(E&&c(k,E),A)for(let H=0;H<A.length;H++)c(k,A[H]);if(M){let H=M.subTree;if(x===H){const W=M.vnode;w(k,W,W.scopeId,W.slotScopeIds,M.parent)}}},L=(k,x,E,A,M,H,W,V,G=0)=>{for(let j=G;j<k.length;j++){const R=k[j]=V?jt(k[j]):St(k[j]);p(null,R,x,E,A,M,H,W,V)}},T=(k,x,E,A,M,H,W)=>{const V=x.el=k.el;let{patchFlag:G,dynamicChildren:j,dirs:R}=x;G|=k.patchFlag&16;const D=k.props||Me,ie=x.props||Me;let se;E&&nn(E,!1),(se=ie.onVnodeBeforeUpdate)&&bt(se,E,x,k),R&&tn(x,k,E,"beforeUpdate"),E&&nn(E,!0);const he=M&&x.type!=="foreignObject";if(j?O(k.dynamicChildren,j,V,E,A,he,H):W||te(k,x,V,null,E,A,he,H,!1),G>0){if(G&16)I(V,x,D,ie,E,A,M);else if(G&2&&D.class!==ie.class&&i(V,"class",null,ie.class,M),G&4&&i(V,"style",D.style,ie.style,M),G&8){const Ee=x.dynamicProps;for(let _e=0;_e<Ee.length;_e++){const De=Ee[_e],ot=D[De],gn=ie[De];(gn!==ot||De==="value")&&i(V,De,ot,gn,M,k.children,E,A,Y)}}G&1&&k.children!==x.children&&u(V,x.children)}else!W&&j==null&&I(V,x,D,ie,E,A,M);((se=ie.onVnodeUpdated)||R)&&tt(()=>{se&&bt(se,E,x,k),R&&tn(x,k,E,"updated")},A)},O=(k,x,E,A,M,H,W)=>{for(let V=0;V<x.length;V++){const G=k[V],j=x[V],R=G.el&&(G.type===Fe||!Wn(G,j)||G.shapeFlag&70)?h(G.el):E;p(G,j,R,null,A,M,H,W,!0)}},I=(k,x,E,A,M,H,W)=>{if(E!==A){if(E!==Me)for(const V in E)!Hi(V)&&!(V in A)&&i(k,V,E[V],null,W,x.children,M,H,Y);for(const V in A){if(Hi(V))continue;const G=A[V],j=E[V];G!==j&&V!=="value"&&i(k,V,j,G,W,x.children,M,H,Y)}"value"in A&&i(k,"value",E.value,A.value)}},N=(k,x,E,A,M,H,W,V,G)=>{const j=x.el=k?k.el:l(""),R=x.anchor=k?k.anchor:l("");let{patchFlag:D,dynamicChildren:ie,slotScopeIds:se}=x;se&&(V=V?V.concat(se):se),k==null?(s(j,E,A),s(R,E,A),L(x.children,E,R,M,H,W,V,G)):D>0&&D&64&&ie&&k.dynamicChildren?(O(k.dynamicChildren,ie,E,M,H,W,V),(x.key!=null||M&&x===M.subTree)&&Il(k,x,!0)):te(k,x,E,R,M,H,W,V,G)},F=(k,x,E,A,M,H,W,V,G)=>{x.slotScopeIds=V,k==null?x.shapeFlag&512?M.ctx.activate(x,E,A,W,G):z(x,E,A,M,H,W,G):Q(k,x,G)},z=(k,x,E,A,M,H,W)=>{const V=k.component=Lf(k,A,M);if(yl(k)&&(V.ctx.renderer=le),If(V),V.asyncDep){if(M&&M.registerDep(V,U),!k.el){const G=V.subTree=X(qt);v(null,G,x,E)}return}U(V,k,x,E,M,H,W)},Q=(k,x,E)=>{const A=x.component=k.component;if(Wu(k,x,E))if(A.asyncDep&&!A.asyncResolved){q(A,x,E);return}else A.next=x,$u(A.update),A.update();else x.el=k.el,A.vnode=x},U=(k,x,E,A,M,H,W)=>{const V=()=>{if(k.isMounted){let{next:R,bu:D,u:ie,parent:se,vnode:he}=k,Ee=R,_e;nn(k,!1),R?(R.el=he.el,q(k,R,W)):R=he,D&&ji(D),(_e=R.props&&R.props.onVnodeBeforeUpdate)&&bt(_e,se,R,he),nn(k,!0);const De=Tr(k),ot=k.subTree;k.subTree=De,p(ot,De,h(ot.el),K(ot),k,M,H),R.el=De.el,Ee===null&&Uu(k,De.el),ie&&tt(ie,M),(_e=R.props&&R.props.onVnodeUpdated)&&tt(()=>bt(_e,se,R,he),M)}else{let R;const{el:D,props:ie}=x,{bm:se,m:he,parent:Ee}=k,_e=Xn(x);if(nn(k,!1),se&&ji(se),!_e&&(R=ie&&ie.onVnodeBeforeMount)&&bt(R,Ee,x),nn(k,!0),D&&oe){const De=()=>{k.subTree=Tr(k),oe(D,k.subTree,k,M,null)};_e?x.type.__asyncLoader().then(()=>!k.isUnmounted&&De()):De()}else{const De=k.subTree=Tr(k);p(null,De,E,A,k,M,H),x.el=De.el}if(he&&tt(he,M),!_e&&(R=ie&&ie.onVnodeMounted)){const De=x;tt(()=>bt(R,Ee,De),M)}(x.shapeFlag&256||Ee&&Xn(Ee.vnode)&&Ee.vnode.shapeFlag&256)&&k.a&&tt(k.a,M),k.isMounted=!0,x=E=A=null}},G=k.effect=new _s(V,()=>Cs(j),k.scope),j=k.update=()=>G.run();j.id=k.uid,nn(k,!0),j()},q=(k,x,E)=>{x.component=k;const A=k.vnode.props;k.vnode=x,k.next=null,pf(k,x.props,A,E),vf(k,x.children,E),Fn(),uo(),Bn()},te=(k,x,E,A,M,H,W,V,G=!1)=>{const j=k&&k.children,R=k?k.shapeFlag:0,D=x.children,{patchFlag:ie,shapeFlag:se}=x;if(ie>0){if(ie&128){me(j,D,E,A,M,H,W,V,G);return}else if(ie&256){re(j,D,E,A,M,H,W,V,G);return}}se&8?(R&16&&Y(j,M,H),D!==j&&u(E,D)):R&16?se&16?me(j,D,E,A,M,H,W,V,G):Y(j,M,H,!0):(R&8&&u(E,""),se&16&&L(D,E,A,M,H,W,V,G))},re=(k,x,E,A,M,H,W,V,G)=>{k=k||wn,x=x||wn;const j=k.length,R=x.length,D=Math.min(j,R);let ie;for(ie=0;ie<D;ie++){const se=x[ie]=G?jt(x[ie]):St(x[ie]);p(k[ie],se,E,null,M,H,W,V,G)}j>R?Y(k,M,H,!0,!1,D):L(x,E,A,M,H,W,V,G,D)},me=(k,x,E,A,M,H,W,V,G)=>{let j=0;const R=x.length;let D=k.length-1,ie=R-1;for(;j<=D&&j<=ie;){const se=k[j],he=x[j]=G?jt(x[j]):St(x[j]);if(Wn(se,he))p(se,he,E,null,M,H,W,V,G);else break;j++}for(;j<=D&&j<=ie;){const se=k[D],he=x[ie]=G?jt(x[ie]):St(x[ie]);if(Wn(se,he))p(se,he,E,null,M,H,W,V,G);else break;D--,ie--}if(j>D){if(j<=ie){const se=ie+1,he=se<R?x[se].el:A;for(;j<=ie;)p(null,x[j]=G?jt(x[j]):St(x[j]),E,he,M,H,W,V,G),j++}}else if(j>ie)for(;j<=D;)ue(k[j],M,H,!0),j++;else{const se=j,he=j,Ee=new Map;for(j=he;j<=ie;j++){const rt=x[j]=G?jt(x[j]):St(x[j]);rt.key!=null&&Ee.set(rt.key,j)}let _e,De=0;const ot=ie-he+1;let gn=!1,Js=0;const jn=new Array(ot);for(j=0;j<ot;j++)jn[j]=0;for(j=se;j<=D;j++){const rt=k[j];if(De>=ot){ue(rt,M,H,!0);continue}let xt;if(rt.key!=null)xt=Ee.get(rt.key);else for(_e=he;_e<=ie;_e++)if(jn[_e-he]===0&&Wn(rt,x[_e])){xt=_e;break}xt===void 0?ue(rt,M,H,!0):(jn[xt-he]=j+1,xt>=Js?Js=xt:gn=!0,p(rt,x[xt],E,null,M,H,W,V,G),De++)}const Zs=gn?wf(jn):wn;for(_e=Zs.length-1,j=ot-1;j>=0;j--){const rt=he+j,xt=x[rt],eo=rt+1<R?x[rt+1].el:A;jn[j]===0?p(null,xt,E,eo,M,H,W,V,G):gn&&(_e<0||j!==Zs[_e]?de(xt,E,eo,2):_e--)}}},de=(k,x,E,A,M=null)=>{const{el:H,type:W,transition:V,children:G,shapeFlag:j}=k;if(j&6){de(k.component.subTree,x,E,A);return}if(j&128){k.suspense.move(x,E,A);return}if(j&64){W.move(k,x,E,le);return}if(W===Fe){s(H,x,E);for(let D=0;D<G.length;D++)de(G[D],x,E,A);s(k.anchor,x,E);return}if(W===Lr){C(k,x,E);return}if(A!==2&&j&1&&V)if(A===0)V.beforeEnter(H),s(H,x,E),tt(()=>V.enter(H),M);else{const{leave:D,delayLeave:ie,afterLeave:se}=V,he=()=>s(H,x,E),Ee=()=>{D(H,()=>{he(),se&&se()})};ie?ie(H,he,Ee):Ee()}else s(H,x,E)},ue=(k,x,E,A=!1,M=!1)=>{const{type:H,props:W,ref:V,children:G,dynamicChildren:j,shapeFlag:R,patchFlag:D,dirs:ie}=k;if(V!=null&&Yr(V,null,E,k,!0),R&256){x.ctx.deactivate(k);return}const se=R&1&&ie,he=!Xn(k);let Ee;if(he&&(Ee=W&&W.onVnodeBeforeUnmount)&&bt(Ee,x,k),R&6)B(k.component,E,A);else{if(R&128){k.suspense.unmount(E,A);return}se&&tn(k,null,x,"beforeUnmount"),R&64?k.type.remove(k,x,E,M,le,A):j&&(H!==Fe||D>0&&D&64)?Y(j,x,E,!1,!0):(H===Fe&&D&384||!M&&R&16)&&Y(G,x,E),A&&ve(k)}(he&&(Ee=W&&W.onVnodeUnmounted)||se)&&tt(()=>{Ee&&bt(Ee,x,k),se&&tn(k,null,x,"unmounted")},E)},ve=k=>{const{type:x,el:E,anchor:A,transition:M}=k;if(x===Fe){ke(E,A);return}if(x===Lr){g(k);return}const H=()=>{r(E),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(k.shapeFlag&1&&M&&!M.persisted){const{leave:W,delayLeave:V}=M,G=()=>W(E,H);V?V(k.el,H,G):G()}else H()},ke=(k,x)=>{let E;for(;k!==x;)E=f(k),r(k),k=E;r(x)},B=(k,x,E)=>{const{bum:A,scope:M,update:H,subTree:W,um:V}=k;A&&ji(A),M.stop(),H&&(H.active=!1,ue(W,k,x,E)),V&&tt(V,x),tt(()=>{k.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&k.asyncDep&&!k.asyncResolved&&k.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve())},Y=(k,x,E,A=!1,M=!1,H=0)=>{for(let W=H;W<k.length;W++)ue(k[W],x,E,A,M)},K=k=>k.shapeFlag&6?K(k.component.subTree):k.shapeFlag&128?k.suspense.next():f(k.anchor||k.el),ee=(k,x,E)=>{k==null?x._vnode&&ue(x._vnode,null,null,!0):p(x._vnode||null,k,x,null,null,null,E),uo(),hl(),x._vnode=k},le={p,um:ue,m:de,r:ve,mt:z,mc:L,pc:te,pbc:O,n:K,o:e};let ye,oe;return t&&([ye,oe]=t(le)),{render:ee,hydrate:ye,createApp:yf(ee,ye)}}function nn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Il(e,t,n=!1){const s=e.children,r=t.children;if(ce(s)&&ce(r))for(let i=0;i<s.length;i++){const o=s[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=jt(r[i]),l.el=o.el),n||Il(o,l)),l.type===bi&&(l.el=o.el)}}function wf(e){const t=e.slice(),n=[0];let s,r,i,o,l;const a=e.length;for(s=0;s<a;s++){const d=e[s];if(d!==0){if(r=n[n.length-1],e[r]<d){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<d?i=l+1:o=l;d<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const Ef=e=>e.__isTeleport,Fe=Symbol(void 0),bi=Symbol(void 0),qt=Symbol(void 0),Lr=Symbol(void 0),Qn=[];let pt=null;function ne(e=!1){Qn.push(pt=e?null:[])}function Sf(){Qn.pop(),pt=Qn[Qn.length-1]||null}let fi=1;function xo(e){fi+=e}function Ol(e){return e.dynamicChildren=fi>0?pt||wn:null,Sf(),fi>0&&pt&&pt.push(e),e}function ae(e,t,n,s,r,i){return Ol(P(e,t,n,s,r,i,!0))}function Ke(e,t,n,s,r){return Ol(X(e,t,n,s,r,!0))}function Ji(e){return e?e.__v_isVNode===!0:!1}function Wn(e,t){return e.type===t.type&&e.key===t.key}const _r="__vInternal",Ml=({key:e})=>e??null,Ui=({ref:e,ref_key:t,ref_for:n})=>e!=null?Ve(e)||Ye(e)||ge(e)?{i:Xe,r:e,k:t,f:!!n}:e:null;function P(e,t=null,n=null,s=0,r=null,i=e===Fe?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ml(t),ref:t&&Ui(t),scopeId:gl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Xe};return l?(Ls(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Ve(n)?8:16),fi>0&&!o&&pt&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&pt.push(a),a}const X=Cf;function Cf(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===sf)&&(e=qt),Ji(e)){const l=An(e,t,!0);return n&&Ls(l,n),fi>0&&!i&&pt&&(l.shapeFlag&6?pt[pt.indexOf(e)]=l:pt.push(l)),l.patchFlag|=-2,l}if($f(e)&&(e=e.__vccOpts),t){t=kf(t);let{class:l,style:a}=t;l&&!Ve(l)&&(t.class=$n(l)),Oe(a)&&(nl(a)&&!ce(a)&&(a=Ze({},a)),t.style=cn(a))}const o=Ve(e)?1:Vu(e)?128:Ef(e)?64:Oe(e)?4:ge(e)?2:0;return P(e,t,n,s,r,o,i,!0)}function kf(e){return e?nl(e)||_r in e?Ze({},e):e:null}function An(e,t,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=e,l=t?Af(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ml(l),ref:t&&t.ref?n&&r?ce(r)?r.concat(Ui(t)):[r,Ui(t)]:Ui(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&An(e.ssContent),ssFallback:e.ssFallback&&An(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function Ie(e=" ",t=0){return X(bi,null,e,t)}function Be(e="",t=!1){return t?(ne(),Ke(qt,null,e)):X(qt,null,e)}function St(e){return e==null||typeof e=="boolean"?X(qt):ce(e)?X(Fe,null,e.slice()):typeof e=="object"?jt(e):X(bi,null,String(e))}function jt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:An(e)}function Ls(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ce(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Ls(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(_r in t)?t._ctx=Xe:r===3&&Xe&&(Xe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ge(t)?(t={default:t,_ctx:Xe},n=32):(t=String(t),s&64?(n=16,t=[Ie(t)]):n=8);e.children=t,e.shapeFlag|=n}function Af(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=$n([t.class,s.class]));else if(r==="style")t.style=cn([t.style,s.style]);else if(fr(r)){const i=t[r],o=s[r];o&&i!==o&&!(ce(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=s[r])}return t}function bt(e,t,n,s=null){vt(e,t,7,[n,s])}const Tf=Ll();let Pf=0;function Lf(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||Tf,i={uid:Pf++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Va(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:kl(s,r),emitsOptions:ml(s,r),emit:null,emitted:null,propsDefaults:Me,inheritAttrs:s.inheritAttrs,ctx:Me,data:Me,props:Me,attrs:Me,slots:Me,refs:Me,setupState:Me,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Bu.bind(null,i),e.ce&&e.ce(i),i}let ze=null;const di=()=>ze||Xe,Tn=e=>{ze=e,e.scope.on()},hn=()=>{ze&&ze.scope.off(),ze=null};function Rl(e){return e.vnode.shapeFlag&4}let hi=!1;function If(e,t=!1){hi=t;const{props:n,children:s}=e.vnode,r=Rl(e);hf(e,n,r,t),gf(e,s);const i=r?Of(e,t):void 0;return hi=!1,i}function Of(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=il(new Proxy(e.ctx,af));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Rf(e):null;Tn(e),Fn();const i=Yt(s,e,0,[e.props,r]);if(Bn(),hn(),Ha(i)){if(i.then(hn,hn),t)return i.then(o=>{bo(e,o,t)}).catch(o=>{mr(o,e,0)});e.asyncDep=i}else bo(e,i,t)}else Nl(e,t)}function bo(e,t,n){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Oe(t)&&(e.setupState=ll(t)),Nl(e,n)}let wo;function Nl(e,t,n){const s=e.type;if(!e.render){if(!t&&wo&&!s.render){const r=s.template||Ts(e).template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:a}=s,d=Ze(Ze({isCustomElement:i,delimiters:l},o),a);s.render=wo(r,d)}}e.render=s.render||gt}Tn(e),Fn(),lf(e),Bn(),hn()}function Mf(e){return new Proxy(e.attrs,{get(t,n){return st(e,"get","$attrs"),t[n]}})}function Rf(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=Mf(e))},slots:e.slots,emit:e.emit,expose:t}}function yr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ll(il(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in qn)return qn[n](e)},has(t,n){return n in t||n in qn}}))}function Nf(e,t=!0){return ge(e)?e.displayName||e.name:e.name||t&&e.__name}function $f(e){return ge(e)&&"__vccOpts"in e}const $e=(e,t)=>Mu(e,t,hi);function xr(e,t,n){const s=arguments.length;return s===2?Oe(t)&&!ce(t)?Ji(t)?X(e,null,[t]):X(e,t):X(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Ji(n)&&(n=[n]),X(e,t,n))}const Df=Symbol(""),Ff=()=>_t(Df),Bf="3.2.45",Hf="http://www.w3.org/2000/svg",on=typeof document<"u"?document:null,Eo=on&&on.createElement("template"),jf={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?on.createElementNS(Hf,e):on.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>on.createTextNode(e),createComment:e=>on.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>on.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Eo.innerHTML=s?`<svg>${e}</svg>`:e;const l=Eo.content;if(s){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Wf(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Uf(e,t,n){const s=e.style,r=Ve(n);if(n&&!r){for(const i in n)Xr(s,i,n[i]);if(t&&!Ve(t))for(const i in t)n[i]==null&&Xr(s,i,"")}else{const i=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=i)}}const So=/\s*!important$/;function Xr(e,t,n){if(ce(n))n.forEach(s=>Xr(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Vf(e,t);So.test(n)?e.setProperty(Dn(s),n.replace(So,""),"important"):e[s]=n}}const Co=["Webkit","Moz","ms"],Ir={};function Vf(e,t){const n=Ir[t];if(n)return n;let s=Pt(t);if(s!=="filter"&&s in e)return Ir[t]=s;s=hr(s);for(let r=0;r<Co.length;r++){const i=Co[r]+s;if(i in e)return Ir[t]=i}return t}const ko="http://www.w3.org/1999/xlink";function zf(e,t,n,s,r){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(ko,t.slice(6,t.length)):e.setAttributeNS(ko,t,n);else{const i=Kc(t);n==null||i&&!Da(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Gf(e,t,n,s,r,i,o){if(t==="innerHTML"||t==="textContent"){s&&o(s,r,i),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const a=n??"";(e.value!==a||e.tagName==="OPTION")&&(e.value=a),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Da(n):n==null&&a==="string"?(n="",l=!0):a==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function $l(e,t,n,s){e.addEventListener(t,n,s)}function Kf(e,t,n,s){e.removeEventListener(t,n,s)}function Yf(e,t,n,s,r=null){const i=e._vei||(e._vei={}),o=i[t];if(s&&o)o.value=s;else{const[l,a]=Xf(t);if(s){const d=i[t]=Jf(s,r);$l(e,l,d,a)}else o&&(Kf(e,l,o,a),i[t]=void 0)}}const Ao=/(?:Once|Passive|Capture)$/;function Xf(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):Dn(e.slice(2)),t]}let Or=0;const qf=Promise.resolve(),Qf=()=>Or||(qf.then(()=>Or=0),Or=Date.now());function Jf(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;vt(Zf(s,n.value),t,5,[s])};return n.value=e,n.attached=Qf(),n}function Zf(e,t){if(ce(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 To=/^on[a-z]/,ed=(e,t,n,s,r=!1,i,o,l,a)=>{t==="class"?Wf(e,s,r):t==="style"?Uf(e,n,s):fr(t)?ps(t)||Yf(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):td(e,t,s,r))?Gf(e,t,s,i,o,l,a):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),zf(e,t,s,r))};function td(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&To.test(t)&&ge(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||To.test(t)&&Ve(n)?!1:t in e}const Po=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ce(t)?n=>ji(t,n):t},nd={created(e,{value:t},n){e.checked=Gi(t,n.props.value),e._assign=Po(n),$l(e,"change",()=>{e._assign(id(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e._assign=Po(s),t!==n&&(e.checked=Gi(t,s.props.value))}};function id(e){return"_value"in e?e._value:e.value}const fn={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Un(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Un(e,!0),s.enter(e)):s.leave(e,()=>{Un(e,!1)}):Un(e,t))},beforeUnmount(e,{value:t}){Un(e,t)}};function Un(e,t){e.style.display=t?e._vod:"none"}const rd=Ze({patchProp:ed},jf);let Lo;function sd(){return Lo||(Lo=xf(rd))}const od=(...e)=>{const t=sd().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=ad(s);if(!r)return;const i=t._component;!ge(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function ad(e){return Ve(e)?document.querySelector(e):e}/*!
|
||
* vue-router v4.1.6
|
||
* (c) 2022 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const _n=typeof window<"u";function ld(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Te=Object.assign;function Mr(e,t){const n={};for(const s in t){const r=t[s];n[s]=yt(r)?r.map(e):e(r)}return n}const Jn=()=>{},yt=Array.isArray,cd=/\/$/,ud=e=>e.replace(cd,"");function Rr(e,t,n="/"){let s,r={},i="",o="";const l=t.indexOf("#");let a=t.indexOf("?");return l<a&&l>=0&&(a=-1),a>-1&&(s=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),r=e(i)),l>-1&&(s=s||t.slice(0,l),o=t.slice(l,t.length)),s=pd(s??t,n),{fullPath:s+(i&&"?")+i+o,path:s,query:r,hash:o}}function fd(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Io(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dd(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Pn(t.matched[s],n.matched[r])&&Dl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Pn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Dl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!hd(e[n],t[n]))return!1;return!0}function hd(e,t){return yt(e)?Oo(e,t):yt(t)?Oo(t,e):e===t}function Oo(e,t){return yt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function pd(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/");let r=n.length-1,i,o;for(i=0;i<s.length;i++)if(o=s[i],o!==".")if(o==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(i-(i===s.length?1:0)).join("/")}var pi;(function(e){e.pop="pop",e.push="push"})(pi||(pi={}));var Zn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Zn||(Zn={}));function md(e){if(!e)if(_n){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ud(e)}const gd=/^[^#]+#/;function vd(e,t){return e.replace(gd,"#")+t}function _d(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 br=()=>({left:window.pageXOffset,top:window.pageYOffset});function yd(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=_d(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Mo(e,t){return(history.state?history.state.position-t:-1)+e}const qr=new Map;function xd(e,t){qr.set(e,t)}function bd(e){const t=qr.get(e);return qr.delete(e),t}let wd=()=>location.protocol+"//"+location.host;function Fl(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let l=r.includes(e.slice(i))?e.slice(i).length:1,a=r.slice(l);return a[0]!=="/"&&(a="/"+a),Io(a,"")}return Io(n,e)+s+r}function Ed(e,t,n,s){let r=[],i=[],o=null;const l=({state:f})=>{const c=Fl(e,location),m=n.value,p=t.value;let _=0;if(f){if(n.value=c,t.value=f,o&&o===m){o=null;return}_=p?f.position-p.position:0}else s(c);r.forEach(v=>{v(n.value,m,{delta:_,type:pi.pop,direction:_?_>0?Zn.forward:Zn.back:Zn.unknown})})};function a(){o=n.value}function d(f){r.push(f);const c=()=>{const m=r.indexOf(f);m>-1&&r.splice(m,1)};return i.push(c),c}function u(){const{history:f}=window;f.state&&f.replaceState(Te({},f.state,{scroll:br()}),"")}function h(){for(const f of i)f();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u),{pauseListeners:a,listen:d,destroy:h}}function Ro(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?br():null}}function Sd(e){const{history:t,location:n}=window,s={value:Fl(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,d,u){const h=e.indexOf("#"),f=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+a:wd()+e+a;try{t[u?"replaceState":"pushState"](d,"",f),r.value=d}catch(c){console.error(c),n[u?"replace":"assign"](f)}}function o(a,d){const u=Te({},t.state,Ro(r.value.back,a,r.value.forward,!0),d,{position:r.value.position});i(a,u,!0),s.value=a}function l(a,d){const u=Te({},r.value,t.state,{forward:a,scroll:br()});i(u.current,u,!0);const h=Te({},Ro(s.value,a,null),{position:u.position+1},d);i(a,h,!1),s.value=a}return{location:s,state:r,push:l,replace:o}}function Cd(e){e=md(e);const t=Sd(e),n=Ed(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=Te({location:"",base:e,go:s,createHref:vd.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 kd(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Cd(e)}function Ad(e){return typeof e=="string"||e&&typeof e=="object"}function Bl(e){return typeof e=="string"||typeof e=="symbol"}const Bt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Hl=Symbol("");var No;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(No||(No={}));function Ln(e,t){return Te(new Error,{type:e,[Hl]:!0},t)}function Ot(e,t){return e instanceof Error&&Hl in e&&(t==null||!!(e.type&t))}const $o="[^/]+?",Td={sensitive:!1,strict:!1,start:!0,end:!0},Pd=/[.+*?^${}()[\]/\\]/g;function Ld(e,t){const n=Te({},Td,t),s=[];let r=n.start?"^":"";const i=[];for(const d of e){const u=d.length?[]:[90];n.strict&&!d.length&&(r+="/");for(let h=0;h<d.length;h++){const f=d[h];let c=40+(n.sensitive?.25:0);if(f.type===0)h||(r+="/"),r+=f.value.replace(Pd,"\\$&"),c+=40;else if(f.type===1){const{value:m,repeatable:p,optional:_,regexp:v}=f;i.push({name:m,repeatable:p,optional:_});const S=v||$o;if(S!==$o){c+=10;try{new RegExp(`(${S})`)}catch(g){throw new Error(`Invalid custom RegExp for param "${m}" (${S}): `+g.message)}}let C=p?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;h||(C=_&&d.length<2?`(?:/${C})`:"/"+C),_&&(C+="?"),r+=C,c+=20,_&&(c+=-8),p&&(c+=-20),S===".*"&&(c+=-50)}u.push(c)}s.push(u)}if(n.strict&&n.end){const d=s.length-1;s[d][s[d].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const o=new RegExp(r,n.sensitive?"":"i");function l(d){const u=d.match(o),h={};if(!u)return null;for(let f=1;f<u.length;f++){const c=u[f]||"",m=i[f-1];h[m.name]=c&&m.repeatable?c.split("/"):c}return h}function a(d){let u="",h=!1;for(const f of e){(!h||!u.endsWith("/"))&&(u+="/"),h=!1;for(const c of f)if(c.type===0)u+=c.value;else if(c.type===1){const{value:m,repeatable:p,optional:_}=c,v=m in d?d[m]:"";if(yt(v)&&!p)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const S=yt(v)?v.join("/"):v;if(!S)if(_)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):h=!0);else throw new Error(`Missing required param "${m}"`);u+=S}}return u||"/"}return{re:o,score:s,keys:i,parse:l,stringify:a}}function Id(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function Od(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const i=Id(s[n],r[n]);if(i)return i;n++}if(Math.abs(r.length-s.length)===1){if(Do(s))return 1;if(Do(r))return-1}return r.length-s.length}function Do(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Md={type:0,value:""},Rd=/[a-zA-Z0-9_]/;function Nd(e){if(!e)return[[]];if(e==="/")return[[Md]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(c){throw new Error(`ERR (${n})/"${d}": ${c}`)}let n=0,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let l=0,a,d="",u="";function h(){d&&(n===0?i.push({type:0,value:d}):n===1||n===2||n===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:d,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:a==="/"?(d&&h(),o()):a===":"?(h(),n=1):f();break;case 4:f(),n=s;break;case 1:a==="("?n=2:Rd.test(a)?f():(h(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case 2:a===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+a:n=3:u+=a;break;case 3:h(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${d}"`),h(),o(),r}function $d(e,t,n){const s=Ld(Nd(e.path),n),r=Te(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Dd(e,t){const n=[],s=new Map;t=Ho({strict:!1,end:!0,sensitive:!1},t);function r(u){return s.get(u)}function i(u,h,f){const c=!f,m=Fd(u);m.aliasOf=f&&f.record;const p=Ho(t,u),_=[m];if("alias"in u){const C=typeof u.alias=="string"?[u.alias]:u.alias;for(const g of C)_.push(Te({},m,{components:f?f.record.components:m.components,path:g,aliasOf:f?f.record:m}))}let v,S;for(const C of _){const{path:g}=C;if(h&&g[0]!=="/"){const y=h.record.path,b=y[y.length-1]==="/"?"":"/";C.path=h.record.path+(g&&b+g)}if(v=$d(C,h,p),f?f.alias.push(v):(S=S||v,S!==v&&S.alias.push(v),c&&u.name&&!Bo(v)&&o(u.name)),m.children){const y=m.children;for(let b=0;b<y.length;b++)i(y[b],v,f&&f.children[b])}f=f||v,(v.record.components&&Object.keys(v.record.components).length||v.record.name||v.record.redirect)&&a(v)}return S?()=>{o(S)}:Jn}function o(u){if(Bl(u)){const h=s.get(u);h&&(s.delete(u),n.splice(n.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=n.indexOf(u);h>-1&&(n.splice(h,1),u.record.name&&s.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function l(){return n}function a(u){let h=0;for(;h<n.length&&Od(u,n[h])>=0&&(u.record.path!==n[h].record.path||!jl(u,n[h]));)h++;n.splice(h,0,u),u.record.name&&!Bo(u)&&s.set(u.record.name,u)}function d(u,h){let f,c={},m,p;if("name"in u&&u.name){if(f=s.get(u.name),!f)throw Ln(1,{location:u});p=f.record.name,c=Te(Fo(h.params,f.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&Fo(u.params,f.keys.map(S=>S.name))),m=f.stringify(c)}else if("path"in u)m=u.path,f=n.find(S=>S.re.test(m)),f&&(c=f.parse(m),p=f.record.name);else{if(f=h.name?s.get(h.name):n.find(S=>S.re.test(h.path)),!f)throw Ln(1,{location:u,currentLocation:h});p=f.record.name,c=Te({},h.params,u.params),m=f.stringify(c)}const _=[];let v=f;for(;v;)_.unshift(v.record),v=v.parent;return{name:p,path:m,params:c,matched:_,meta:Hd(_)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:d,removeRoute:o,getRoutes:l,getRecordMatcher:r}}function Fo(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Fd(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Bd(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Bd(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=="boolean"?n:n[s];return t}function Bo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Hd(e){return e.reduce((t,n)=>Te(t,n.meta),{})}function Ho(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function jl(e,t){return t.children.some(n=>n===e||jl(e,n))}const Wl=/#/g,jd=/&/g,Wd=/\//g,Ud=/=/g,Vd=/\?/g,Ul=/\+/g,zd=/%5B/g,Gd=/%5D/g,Vl=/%5E/g,Kd=/%60/g,zl=/%7B/g,Yd=/%7C/g,Gl=/%7D/g,Xd=/%20/g;function Is(e){return encodeURI(""+e).replace(Yd,"|").replace(zd,"[").replace(Gd,"]")}function qd(e){return Is(e).replace(zl,"{").replace(Gl,"}").replace(Vl,"^")}function Qr(e){return Is(e).replace(Ul,"%2B").replace(Xd,"+").replace(Wl,"%23").replace(jd,"%26").replace(Kd,"`").replace(zl,"{").replace(Gl,"}").replace(Vl,"^")}function Qd(e){return Qr(e).replace(Ud,"%3D")}function Jd(e){return Is(e).replace(Wl,"%23").replace(Vd,"%3F")}function Zd(e){return e==null?"":Jd(e).replace(Wd,"%2F")}function Zi(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function eh(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<s.length;++r){const i=s[r].replace(Ul," "),o=i.indexOf("="),l=Zi(o<0?i:i.slice(0,o)),a=o<0?null:Zi(i.slice(o+1));if(l in t){let d=t[l];yt(d)||(d=t[l]=[d]),d.push(a)}else t[l]=a}return t}function jo(e){let t="";for(let n in e){const s=e[n];if(n=Qd(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(yt(s)?s.map(i=>i&&Qr(i)):[s&&Qr(s)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function th(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=yt(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const nh=Symbol(""),Wo=Symbol(""),Os=Symbol(""),Ms=Symbol(""),Jr=Symbol("");function Vn(){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,reset:n}}function Wt(e,t,n,s,r){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((o,l)=>{const a=h=>{h===!1?l(Ln(4,{from:n,to:t})):h instanceof Error?l(h):Ad(h)?l(Ln(2,{from:t,to:h})):(i&&s.enterCallbacks[r]===i&&typeof h=="function"&&i.push(h),o())},d=e.call(s&&s.instances[r],t,n,a);let u=Promise.resolve(d);e.length<3&&(u=u.then(a)),u.catch(h=>l(h))})}function Nr(e,t,n,s){const r=[];for(const i of e)for(const o in i.components){let l=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(ih(l)){const d=(l.__vccOpts||l)[t];d&&r.push(Wt(d,n,s,i,o))}else{let a=l();r.push(()=>a.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const u=ld(d)?d.default:d;i.components[o]=u;const f=(u.__vccOpts||u)[t];return f&&Wt(f,n,s,i,o)()}))}}return r}function ih(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Uo(e){const t=_t(Os),n=_t(Ms),s=$e(()=>t.resolve($(e.to))),r=$e(()=>{const{matched:a}=s.value,{length:d}=a,u=a[d-1],h=n.matched;if(!u||!h.length)return-1;const f=h.findIndex(Pn.bind(null,u));if(f>-1)return f;const c=Vo(a[d-2]);return d>1&&Vo(u)===c&&h[h.length-1].path!==c?h.findIndex(Pn.bind(null,a[d-2])):f}),i=$e(()=>r.value>-1&&ah(n.params,s.value.params)),o=$e(()=>r.value>-1&&r.value===n.matched.length-1&&Dl(n.params,s.value.params));function l(a={}){return oh(a)?t[$(e.replace)?"replace":"push"]($(e.to)).catch(Jn):Promise.resolve()}return{route:s,href:$e(()=>s.value.href),isActive:i,isExactActive:o,navigate:l}}const rh=pe({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:Uo,setup(e,{slots:t}){const n=xi(Uo(e)),{options:s}=_t(Os),r=$e(()=>({[zo(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[zo(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:xr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),sh=rh;function oh(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 ah(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(!yt(r)||r.length!==s.length||s.some((i,o)=>i!==r[o]))return!1}return!0}function Vo(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const zo=(e,t,n)=>e??t??n,lh=pe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=_t(Jr),r=$e(()=>e.route||s.value),i=_t(Wo,0),o=$e(()=>{let d=$(i);const{matched:u}=r.value;let h;for(;(h=u[d])&&!h.components;)d++;return d}),l=$e(()=>r.value.matched[o.value]);Wi(Wo,$e(()=>o.value+1)),Wi(nh,l),Wi(Jr,r);const a=xe();return At(()=>[a.value,l.value,e.name],([d,u,h],[f,c,m])=>{u&&(u.instances[h]=d,c&&c!==u&&d&&d===f&&(u.leaveGuards.size||(u.leaveGuards=c.leaveGuards),u.updateGuards.size||(u.updateGuards=c.updateGuards))),d&&u&&(!c||!Pn(u,c)||!f)&&(u.enterCallbacks[h]||[]).forEach(p=>p(d))},{flush:"post"}),()=>{const d=r.value,u=e.name,h=l.value,f=h&&h.components[u];if(!f)return Go(n.default,{Component:f,route:d});const c=h.props[u],m=c?c===!0?d.params:typeof c=="function"?c(d):c:null,_=xr(f,Te({},m,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(h.instances[u]=null)},ref:a}));return Go(n.default,{Component:_,route:d})||_}}});function Go(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Kl=lh;function ch(e){const t=Dd(e.routes,e),n=e.parseQuery||eh,s=e.stringifyQuery||jo,r=e.history,i=Vn(),o=Vn(),l=Vn(),a=ol(Bt);let d=Bt;_n&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Mr.bind(null,B=>""+B),h=Mr.bind(null,Zd),f=Mr.bind(null,Zi);function c(B,Y){let K,ee;return Bl(B)?(K=t.getRecordMatcher(B),ee=Y):ee=B,t.addRoute(ee,K)}function m(B){const Y=t.getRecordMatcher(B);Y&&t.removeRoute(Y)}function p(){return t.getRoutes().map(B=>B.record)}function _(B){return!!t.getRecordMatcher(B)}function v(B,Y){if(Y=Te({},Y||a.value),typeof B=="string"){const k=Rr(n,B,Y.path),x=t.resolve({path:k.path},Y),E=r.createHref(k.fullPath);return Te(k,x,{params:f(x.params),hash:Zi(k.hash),redirectedFrom:void 0,href:E})}let K;if("path"in B)K=Te({},B,{path:Rr(n,B.path,Y.path).path});else{const k=Te({},B.params);for(const x in k)k[x]==null&&delete k[x];K=Te({},B,{params:h(B.params)}),Y.params=h(Y.params)}const ee=t.resolve(K,Y),le=B.hash||"";ee.params=u(f(ee.params));const ye=fd(s,Te({},B,{hash:qd(le),path:ee.path})),oe=r.createHref(ye);return Te({fullPath:ye,hash:le,query:s===jo?th(B.query):B.query||{}},ee,{redirectedFrom:void 0,href:oe})}function S(B){return typeof B=="string"?Rr(n,B,a.value.path):Te({},B)}function C(B,Y){if(d!==B)return Ln(8,{from:Y,to:B})}function g(B){return w(B)}function y(B){return g(Te(S(B),{replace:!0}))}function b(B){const Y=B.matched[B.matched.length-1];if(Y&&Y.redirect){const{redirect:K}=Y;let ee=typeof K=="function"?K(B):K;return typeof ee=="string"&&(ee=ee.includes("?")||ee.includes("#")?ee=S(ee):{path:ee},ee.params={}),Te({query:B.query,hash:B.hash,params:"path"in ee?{}:B.params},ee)}}function w(B,Y){const K=d=v(B),ee=a.value,le=B.state,ye=B.force,oe=B.replace===!0,k=b(K);if(k)return w(Te(S(k),{state:typeof k=="object"?Te({},le,k.state):le,force:ye,replace:oe}),Y||K);const x=K;x.redirectedFrom=Y;let E;return!ye&&dd(s,ee,K)&&(E=Ln(16,{to:x,from:ee}),me(ee,ee,!0,!1)),(E?Promise.resolve(E):T(x,ee)).catch(A=>Ot(A)?Ot(A,2)?A:re(A):q(A,x,ee)).then(A=>{if(A){if(Ot(A,2))return w(Te({replace:oe},S(A.to),{state:typeof A.to=="object"?Te({},le,A.to.state):le,force:ye}),Y||x)}else A=I(x,ee,!0,oe,le);return O(x,ee,A),A})}function L(B,Y){const K=C(B,Y);return K?Promise.reject(K):Promise.resolve()}function T(B,Y){let K;const[ee,le,ye]=uh(B,Y);K=Nr(ee.reverse(),"beforeRouteLeave",B,Y);for(const k of ee)k.leaveGuards.forEach(x=>{K.push(Wt(x,B,Y))});const oe=L.bind(null,B,Y);return K.push(oe),vn(K).then(()=>{K=[];for(const k of i.list())K.push(Wt(k,B,Y));return K.push(oe),vn(K)}).then(()=>{K=Nr(le,"beforeRouteUpdate",B,Y);for(const k of le)k.updateGuards.forEach(x=>{K.push(Wt(x,B,Y))});return K.push(oe),vn(K)}).then(()=>{K=[];for(const k of B.matched)if(k.beforeEnter&&!Y.matched.includes(k))if(yt(k.beforeEnter))for(const x of k.beforeEnter)K.push(Wt(x,B,Y));else K.push(Wt(k.beforeEnter,B,Y));return K.push(oe),vn(K)}).then(()=>(B.matched.forEach(k=>k.enterCallbacks={}),K=Nr(ye,"beforeRouteEnter",B,Y),K.push(oe),vn(K))).then(()=>{K=[];for(const k of o.list())K.push(Wt(k,B,Y));return K.push(oe),vn(K)}).catch(k=>Ot(k,8)?k:Promise.reject(k))}function O(B,Y,K){for(const ee of l.list())ee(B,Y,K)}function I(B,Y,K,ee,le){const ye=C(B,Y);if(ye)return ye;const oe=Y===Bt,k=_n?history.state:{};K&&(ee||oe?r.replace(B.fullPath,Te({scroll:oe&&k&&k.scroll},le)):r.push(B.fullPath,le)),a.value=B,me(B,Y,K,oe),re()}let N;function F(){N||(N=r.listen((B,Y,K)=>{if(!ke.listening)return;const ee=v(B),le=b(ee);if(le){w(Te(le,{replace:!0}),ee).catch(Jn);return}d=ee;const ye=a.value;_n&&xd(Mo(ye.fullPath,K.delta),br()),T(ee,ye).catch(oe=>Ot(oe,12)?oe:Ot(oe,2)?(w(oe.to,ee).then(k=>{Ot(k,20)&&!K.delta&&K.type===pi.pop&&r.go(-1,!1)}).catch(Jn),Promise.reject()):(K.delta&&r.go(-K.delta,!1),q(oe,ee,ye))).then(oe=>{oe=oe||I(ee,ye,!1),oe&&(K.delta&&!Ot(oe,8)?r.go(-K.delta,!1):K.type===pi.pop&&Ot(oe,20)&&r.go(-1,!1)),O(ee,ye,oe)}).catch(Jn)}))}let z=Vn(),Q=Vn(),U;function q(B,Y,K){re(B);const ee=Q.list();return ee.length?ee.forEach(le=>le(B,Y,K)):console.error(B),Promise.reject(B)}function te(){return U&&a.value!==Bt?Promise.resolve():new Promise((B,Y)=>{z.add([B,Y])})}function re(B){return U||(U=!B,F(),z.list().forEach(([Y,K])=>B?K(B):Y()),z.reset()),B}function me(B,Y,K,ee){const{scrollBehavior:le}=e;if(!_n||!le)return Promise.resolve();const ye=!K&&bd(Mo(B.fullPath,0))||(ee||!K)&&history.state&&history.state.scroll||null;return fl().then(()=>le(B,Y,ye)).then(oe=>oe&&yd(oe)).catch(oe=>q(oe,B,Y))}const de=B=>r.go(B);let ue;const ve=new Set,ke={currentRoute:a,listening:!0,addRoute:c,removeRoute:m,hasRoute:_,getRoutes:p,resolve:v,options:e,push:g,replace:y,go:de,back:()=>de(-1),forward:()=>de(1),beforeEach:i.add,beforeResolve:o.add,afterEach:l.add,onError:Q.add,isReady:te,install(B){const Y=this;B.component("RouterLink",sh),B.component("RouterView",Kl),B.config.globalProperties.$router=Y,Object.defineProperty(B.config.globalProperties,"$route",{enumerable:!0,get:()=>$(a)}),_n&&!ue&&a.value===Bt&&(ue=!0,g(r.location).catch(le=>{}));const K={};for(const le in Bt)K[le]=$e(()=>a.value[le]);B.provide(Os,Y),B.provide(Ms,xi(K)),B.provide(Jr,a);const ee=B.unmount;ve.add(B),B.unmount=function(){ve.delete(B),ve.size<1&&(d=Bt,N&&N(),N=null,a.value=Bt,ue=!1,U=!1),ee()}}};return ke}function vn(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function uh(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const l=t.matched[o];l&&(e.matched.find(d=>Pn(d,l))?s.push(l):n.push(l));const a=e.matched[o];a&&(t.matched.find(d=>Pn(d,a))||r.push(a))}return[n,s,r]}function Rs(){return _t(Ms)}function er(){return localStorage.getItem("theme")??"dark"}function fh(e){e!=="dark"&&e!=="light"&&(e="dark"),localStorage.setItem("theme",e)}function dh(){fh(er()==="dark"?"light":"dark")}function Yl(e){switch(e||(e=er()),e){case"dark":document.documentElement.classList.add("dark");break;case"light":document.documentElement.classList.remove("dark");break;default:document.documentElement.classList.add("dark");break}}var $r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},dt={},hh={get exports(){return dt},set exports(e){dt=e}};/*!
|
||
* matter-js 0.18.0 by @liabru
|
||
* http://brm.io/matter-js/
|
||
* License MIT
|
||
*
|
||
* The MIT License (MIT)
|
||
*
|
||
* Copyright (c) Liam Brummitt and contributors.
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
* of this software and associated documentation files (the "Software"), to deal
|
||
* in the Software without restriction, including without limitation the rights
|
||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
* copies of the Software, and to permit persons to whom the Software is
|
||
* furnished to do so, subject to the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be included in
|
||
* all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||
* THE SOFTWARE.
|
||
*/(function(e,t){(function(s,r){e.exports=r()})($r,function(){return function(n){var s={};function r(i){if(s[i])return s[i].exports;var o=s[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=n,r.c=s,r.d=function(i,o,l){r.o(i,o)||Object.defineProperty(i,o,{enumerable:!0,get:l})},r.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},r.t=function(i,o){if(o&1&&(i=r(i)),o&8||o&4&&typeof i=="object"&&i&&i.__esModule)return i;var l=Object.create(null);if(r.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:i}),o&2&&typeof i!="string")for(var a in i)r.d(l,a,function(d){return i[d]}.bind(null,a));return l},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=21)}([function(n,s){var r={};n.exports=r,function(){r._nextId=0,r._seed=0,r._nowStartTime=+new Date,r._warnedOnce={},r._decomp=null,r.extend=function(o,l){var a,d;typeof l=="boolean"?(a=2,d=l):(a=1,d=!0);for(var u=a;u<arguments.length;u++){var h=arguments[u];if(h)for(var f in h)d&&h[f]&&h[f].constructor===Object&&(!o[f]||o[f].constructor===Object)?(o[f]=o[f]||{},r.extend(o[f],d,h[f])):o[f]=h[f]}return o},r.clone=function(o,l){return r.extend({},l,o)},r.keys=function(o){if(Object.keys)return Object.keys(o);var l=[];for(var a in o)l.push(a);return l},r.values=function(o){var l=[];if(Object.keys){for(var a=Object.keys(o),d=0;d<a.length;d++)l.push(o[a[d]]);return l}for(var u in o)l.push(o[u]);return l},r.get=function(o,l,a,d){l=l.split(".").slice(a,d);for(var u=0;u<l.length;u+=1)o=o[l[u]];return o},r.set=function(o,l,a,d,u){var h=l.split(".").slice(d,u);return r.get(o,l,0,-1)[h[h.length-1]]=a,a},r.shuffle=function(o){for(var l=o.length-1;l>0;l--){var a=Math.floor(r.random()*(l+1)),d=o[l];o[l]=o[a],o[a]=d}return o},r.choose=function(o){return o[Math.floor(r.random()*o.length)]},r.isElement=function(o){return typeof HTMLElement<"u"?o instanceof HTMLElement:!!(o&&o.nodeType&&o.nodeName)},r.isArray=function(o){return Object.prototype.toString.call(o)==="[object Array]"},r.isFunction=function(o){return typeof o=="function"},r.isPlainObject=function(o){return typeof o=="object"&&o.constructor===Object},r.isString=function(o){return toString.call(o)==="[object String]"},r.clamp=function(o,l,a){return o<l?l:o>a?a:o},r.sign=function(o){return o<0?-1:1},r.now=function(){if(typeof window<"u"&&window.performance){if(window.performance.now)return window.performance.now();if(window.performance.webkitNow)return window.performance.webkitNow()}return Date.now?Date.now():new Date-r._nowStartTime},r.random=function(o,l){return o=typeof o<"u"?o:0,l=typeof l<"u"?l:1,o+i()*(l-o)};var i=function(){return r._seed=(r._seed*9301+49297)%233280,r._seed/233280};r.colorToNumber=function(o){return o=o.replace("#",""),o.length==3&&(o=o.charAt(0)+o.charAt(0)+o.charAt(1)+o.charAt(1)+o.charAt(2)+o.charAt(2)),parseInt(o,16)},r.logLevel=1,r.log=function(){console&&r.logLevel>0&&r.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},r.info=function(){console&&r.logLevel>0&&r.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},r.warn=function(){console&&r.logLevel>0&&r.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},r.warnOnce=function(){var o=Array.prototype.slice.call(arguments).join(" ");r._warnedOnce[o]||(r.warn(o),r._warnedOnce[o]=!0)},r.deprecated=function(o,l,a){o[l]=r.chain(function(){r.warnOnce("🔅 deprecated 🔅",a)},o[l])},r.nextId=function(){return r._nextId++},r.indexOf=function(o,l){if(o.indexOf)return o.indexOf(l);for(var a=0;a<o.length;a++)if(o[a]===l)return a;return-1},r.map=function(o,l){if(o.map)return o.map(l);for(var a=[],d=0;d<o.length;d+=1)a.push(l(o[d]));return a},r.topologicalSort=function(o){var l=[],a=[],d=[];for(var u in o)!a[u]&&!d[u]&&r._topologicalSort(u,a,d,o,l);return l},r._topologicalSort=function(o,l,a,d,u){var h=d[o]||[];a[o]=!0;for(var f=0;f<h.length;f+=1){var c=h[f];a[c]||l[c]||r._topologicalSort(c,l,a,d,u)}a[o]=!1,l[o]=!0,u.push(o)},r.chain=function(){for(var o=[],l=0;l<arguments.length;l+=1){var a=arguments[l];a._chained?o.push.apply(o,a._chained):o.push(a)}var d=function(){for(var u,h=new Array(arguments.length),f=0,c=arguments.length;f<c;f++)h[f]=arguments[f];for(f=0;f<o.length;f+=1){var m=o[f].apply(u,h);typeof m<"u"&&(u=m)}return u};return d._chained=o,d},r.chainPathBefore=function(o,l,a){return r.set(o,l,r.chain(a,r.get(o,l)))},r.chainPathAfter=function(o,l,a){return r.set(o,l,r.chain(r.get(o,l),a))},r.setDecomp=function(o){r._decomp=o},r.getDecomp=function(){var o=r._decomp;try{!o&&typeof window<"u"&&(o=window.decomp),!o&&typeof $r<"u"&&(o=$r.decomp)}catch{o=null}return o}}()},function(n,s){var r={};n.exports=r,function(){r.create=function(i){var o={min:{x:0,y:0},max:{x:0,y:0}};return i&&r.update(o,i),o},r.update=function(i,o,l){i.min.x=1/0,i.max.x=-1/0,i.min.y=1/0,i.max.y=-1/0;for(var a=0;a<o.length;a++){var d=o[a];d.x>i.max.x&&(i.max.x=d.x),d.x<i.min.x&&(i.min.x=d.x),d.y>i.max.y&&(i.max.y=d.y),d.y<i.min.y&&(i.min.y=d.y)}l&&(l.x>0?i.max.x+=l.x:i.min.x+=l.x,l.y>0?i.max.y+=l.y:i.min.y+=l.y)},r.contains=function(i,o){return o.x>=i.min.x&&o.x<=i.max.x&&o.y>=i.min.y&&o.y<=i.max.y},r.overlaps=function(i,o){return i.min.x<=o.max.x&&i.max.x>=o.min.x&&i.max.y>=o.min.y&&i.min.y<=o.max.y},r.translate=function(i,o){i.min.x+=o.x,i.max.x+=o.x,i.min.y+=o.y,i.max.y+=o.y},r.shift=function(i,o){var l=i.max.x-i.min.x,a=i.max.y-i.min.y;i.min.x=o.x,i.max.x=o.x+l,i.min.y=o.y,i.max.y=o.y+a}}()},function(n,s){var r={};n.exports=r,function(){r.create=function(i,o){return{x:i||0,y:o||0}},r.clone=function(i){return{x:i.x,y:i.y}},r.magnitude=function(i){return Math.sqrt(i.x*i.x+i.y*i.y)},r.magnitudeSquared=function(i){return i.x*i.x+i.y*i.y},r.rotate=function(i,o,l){var a=Math.cos(o),d=Math.sin(o);l||(l={});var u=i.x*a-i.y*d;return l.y=i.x*d+i.y*a,l.x=u,l},r.rotateAbout=function(i,o,l,a){var d=Math.cos(o),u=Math.sin(o);a||(a={});var h=l.x+((i.x-l.x)*d-(i.y-l.y)*u);return a.y=l.y+((i.x-l.x)*u+(i.y-l.y)*d),a.x=h,a},r.normalise=function(i){var o=r.magnitude(i);return o===0?{x:0,y:0}:{x:i.x/o,y:i.y/o}},r.dot=function(i,o){return i.x*o.x+i.y*o.y},r.cross=function(i,o){return i.x*o.y-i.y*o.x},r.cross3=function(i,o,l){return(o.x-i.x)*(l.y-i.y)-(o.y-i.y)*(l.x-i.x)},r.add=function(i,o,l){return l||(l={}),l.x=i.x+o.x,l.y=i.y+o.y,l},r.sub=function(i,o,l){return l||(l={}),l.x=i.x-o.x,l.y=i.y-o.y,l},r.mult=function(i,o){return{x:i.x*o,y:i.y*o}},r.div=function(i,o){return{x:i.x/o,y:i.y/o}},r.perp=function(i,o){return o=o===!0?-1:1,{x:o*-i.y,y:o*i.x}},r.neg=function(i){return{x:-i.x,y:-i.y}},r.angle=function(i,o){return Math.atan2(o.y-i.y,o.x-i.x)},r._temp=[r.create(),r.create(),r.create(),r.create(),r.create(),r.create()]}()},function(n,s,r){var i={};n.exports=i;var o=r(2),l=r(0);(function(){i.create=function(a,d){for(var u=[],h=0;h<a.length;h++){var f=a[h],c={x:f.x,y:f.y,index:h,body:d,isInternal:!1};u.push(c)}return u},i.fromPath=function(a,d){var u=/L?\s*([-\d.e]+)[\s,]*([-\d.e]+)*/ig,h=[];return a.replace(u,function(f,c,m){h.push({x:parseFloat(c),y:parseFloat(m)})}),i.create(h,d)},i.centre=function(a){for(var d=i.area(a,!0),u={x:0,y:0},h,f,c,m=0;m<a.length;m++)c=(m+1)%a.length,h=o.cross(a[m],a[c]),f=o.mult(o.add(a[m],a[c]),h),u=o.add(u,f);return o.div(u,6*d)},i.mean=function(a){for(var d={x:0,y:0},u=0;u<a.length;u++)d.x+=a[u].x,d.y+=a[u].y;return o.div(d,a.length)},i.area=function(a,d){for(var u=0,h=a.length-1,f=0;f<a.length;f++)u+=(a[h].x-a[f].x)*(a[h].y+a[f].y),h=f;return d?u/2:Math.abs(u)/2},i.inertia=function(a,d){for(var u=0,h=0,f=a,c,m,p=0;p<f.length;p++)m=(p+1)%f.length,c=Math.abs(o.cross(f[m],f[p])),u+=c*(o.dot(f[m],f[m])+o.dot(f[m],f[p])+o.dot(f[p],f[p])),h+=c;return d/6*(u/h)},i.translate=function(a,d,u){u=typeof u<"u"?u:1;var h=a.length,f=d.x*u,c=d.y*u,m;for(m=0;m<h;m++)a[m].x+=f,a[m].y+=c;return a},i.rotate=function(a,d,u){if(d!==0){var h=Math.cos(d),f=Math.sin(d),c=u.x,m=u.y,p=a.length,_,v,S,C;for(C=0;C<p;C++)_=a[C],v=_.x-c,S=_.y-m,_.x=c+(v*h-S*f),_.y=m+(v*f+S*h);return a}},i.contains=function(a,d){for(var u=d.x,h=d.y,f=a.length,c=a[f-1],m,p=0;p<f;p++){if(m=a[p],(u-c.x)*(m.y-c.y)+(h-c.y)*(c.x-m.x)>0)return!1;c=m}return!0},i.scale=function(a,d,u,h){if(d===1&&u===1)return a;h=h||i.centre(a);for(var f,c,m=0;m<a.length;m++)f=a[m],c=o.sub(f,h),a[m].x=h.x+c.x*d,a[m].y=h.y+c.y*u;return a},i.chamfer=function(a,d,u,h,f){typeof d=="number"?d=[d]:d=d||[8],u=typeof u<"u"?u:-1,h=h||2,f=f||14;for(var c=[],m=0;m<a.length;m++){var p=a[m-1>=0?m-1:a.length-1],_=a[m],v=a[(m+1)%a.length],S=d[m<d.length?m:d.length-1];if(S===0){c.push(_);continue}var C=o.normalise({x:_.y-p.y,y:p.x-_.x}),g=o.normalise({x:v.y-_.y,y:_.x-v.x}),y=Math.sqrt(2*Math.pow(S,2)),b=o.mult(l.clone(C),S),w=o.normalise(o.mult(o.add(C,g),.5)),L=o.sub(_,o.mult(w,y)),T=u;u===-1&&(T=Math.pow(S,.32)*1.75),T=l.clamp(T,h,f),T%2===1&&(T+=1);for(var O=Math.acos(o.dot(C,g)),I=O/T,N=0;N<T;N++)c.push(o.add(o.rotate(b,I*N),L))}return c},i.clockwiseSort=function(a){var d=i.mean(a);return a.sort(function(u,h){return o.angle(d,u)-o.angle(d,h)}),a},i.isConvex=function(a){var d=0,u=a.length,h,f,c,m;if(u<3)return null;for(h=0;h<u;h++)if(f=(h+1)%u,c=(h+2)%u,m=(a[f].x-a[h].x)*(a[c].y-a[f].y),m-=(a[f].y-a[h].y)*(a[c].x-a[f].x),m<0?d|=1:m>0&&(d|=2),d===3)return!1;return d!==0?!0:null},i.hull=function(a){var d=[],u=[],h,f;for(a=a.slice(0),a.sort(function(c,m){var p=c.x-m.x;return p!==0?p:c.y-m.y}),f=0;f<a.length;f+=1){for(h=a[f];u.length>=2&&o.cross3(u[u.length-2],u[u.length-1],h)<=0;)u.pop();u.push(h)}for(f=a.length-1;f>=0;f-=1){for(h=a[f];d.length>=2&&o.cross3(d[d.length-2],d[d.length-1],h)<=0;)d.pop();d.push(h)}return d.pop(),u.pop(),d.concat(u)}})()},function(n,s,r){var i={};n.exports=i;var o=r(0);(function(){i.on=function(l,a,d){for(var u=a.split(" "),h,f=0;f<u.length;f++)h=u[f],l.events=l.events||{},l.events[h]=l.events[h]||[],l.events[h].push(d);return d},i.off=function(l,a,d){if(!a){l.events={};return}typeof a=="function"&&(d=a,a=o.keys(l.events).join(" "));for(var u=a.split(" "),h=0;h<u.length;h++){var f=l.events[u[h]],c=[];if(d&&f)for(var m=0;m<f.length;m++)f[m]!==d&&c.push(f[m]);l.events[u[h]]=c}},i.trigger=function(l,a,d){var u,h,f,c,m=l.events;if(m&&o.keys(m).length>0){d||(d={}),u=a.split(" ");for(var p=0;p<u.length;p++)if(h=u[p],f=m[h],f){c=o.clone(d,!1),c.name=h,c.source=l;for(var _=0;_<f.length;_++)f[_].apply(l,[c])}}}})()},function(n,s,r){var i={};n.exports=i;var o=r(4),l=r(0),a=r(1),d=r(6);(function(){i.create=function(u){return l.extend({id:l.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{},cache:{allBodies:null,allConstraints:null,allComposites:null}},u)},i.setModified=function(u,h,f,c){if(u.isModified=h,h&&u.cache&&(u.cache.allBodies=null,u.cache.allConstraints=null,u.cache.allComposites=null),f&&u.parent&&i.setModified(u.parent,h,f,c),c)for(var m=0;m<u.composites.length;m++){var p=u.composites[m];i.setModified(p,h,f,c)}},i.add=function(u,h){var f=[].concat(h);o.trigger(u,"beforeAdd",{object:h});for(var c=0;c<f.length;c++){var m=f[c];switch(m.type){case"body":if(m.parent!==m){l.warn("Composite.add: skipped adding a compound body part (you must add its parent instead)");break}i.addBody(u,m);break;case"constraint":i.addConstraint(u,m);break;case"composite":i.addComposite(u,m);break;case"mouseConstraint":i.addConstraint(u,m.constraint);break}}return o.trigger(u,"afterAdd",{object:h}),u},i.remove=function(u,h,f){var c=[].concat(h);o.trigger(u,"beforeRemove",{object:h});for(var m=0;m<c.length;m++){var p=c[m];switch(p.type){case"body":i.removeBody(u,p,f);break;case"constraint":i.removeConstraint(u,p,f);break;case"composite":i.removeComposite(u,p,f);break;case"mouseConstraint":i.removeConstraint(u,p.constraint);break}}return o.trigger(u,"afterRemove",{object:h}),u},i.addComposite=function(u,h){return u.composites.push(h),h.parent=u,i.setModified(u,!0,!0,!1),u},i.removeComposite=function(u,h,f){var c=l.indexOf(u.composites,h);if(c!==-1&&i.removeCompositeAt(u,c),f)for(var m=0;m<u.composites.length;m++)i.removeComposite(u.composites[m],h,!0);return u},i.removeCompositeAt=function(u,h){return u.composites.splice(h,1),i.setModified(u,!0,!0,!1),u},i.addBody=function(u,h){return u.bodies.push(h),i.setModified(u,!0,!0,!1),u},i.removeBody=function(u,h,f){var c=l.indexOf(u.bodies,h);if(c!==-1&&i.removeBodyAt(u,c),f)for(var m=0;m<u.composites.length;m++)i.removeBody(u.composites[m],h,!0);return u},i.removeBodyAt=function(u,h){return u.bodies.splice(h,1),i.setModified(u,!0,!0,!1),u},i.addConstraint=function(u,h){return u.constraints.push(h),i.setModified(u,!0,!0,!1),u},i.removeConstraint=function(u,h,f){var c=l.indexOf(u.constraints,h);if(c!==-1&&i.removeConstraintAt(u,c),f)for(var m=0;m<u.composites.length;m++)i.removeConstraint(u.composites[m],h,!0);return u},i.removeConstraintAt=function(u,h){return u.constraints.splice(h,1),i.setModified(u,!0,!0,!1),u},i.clear=function(u,h,f){if(f)for(var c=0;c<u.composites.length;c++)i.clear(u.composites[c],h,!0);return h?u.bodies=u.bodies.filter(function(m){return m.isStatic}):u.bodies.length=0,u.constraints.length=0,u.composites.length=0,i.setModified(u,!0,!0,!1),u},i.allBodies=function(u){if(u.cache&&u.cache.allBodies)return u.cache.allBodies;for(var h=[].concat(u.bodies),f=0;f<u.composites.length;f++)h=h.concat(i.allBodies(u.composites[f]));return u.cache&&(u.cache.allBodies=h),h},i.allConstraints=function(u){if(u.cache&&u.cache.allConstraints)return u.cache.allConstraints;for(var h=[].concat(u.constraints),f=0;f<u.composites.length;f++)h=h.concat(i.allConstraints(u.composites[f]));return u.cache&&(u.cache.allConstraints=h),h},i.allComposites=function(u){if(u.cache&&u.cache.allComposites)return u.cache.allComposites;for(var h=[].concat(u.composites),f=0;f<u.composites.length;f++)h=h.concat(i.allComposites(u.composites[f]));return u.cache&&(u.cache.allComposites=h),h},i.get=function(u,h,f){var c,m;switch(f){case"body":c=i.allBodies(u);break;case"constraint":c=i.allConstraints(u);break;case"composite":c=i.allComposites(u).concat(u);break}return c?(m=c.filter(function(p){return p.id.toString()===h.toString()}),m.length===0?null:m[0]):null},i.move=function(u,h,f){return i.remove(u,h),i.add(f,h),u},i.rebase=function(u){for(var h=i.allBodies(u).concat(i.allConstraints(u)).concat(i.allComposites(u)),f=0;f<h.length;f++)h[f].id=l.nextId();return u},i.translate=function(u,h,f){for(var c=f?i.allBodies(u):u.bodies,m=0;m<c.length;m++)d.translate(c[m],h);return u},i.rotate=function(u,h,f,c){for(var m=Math.cos(h),p=Math.sin(h),_=c?i.allBodies(u):u.bodies,v=0;v<_.length;v++){var S=_[v],C=S.position.x-f.x,g=S.position.y-f.y;d.setPosition(S,{x:f.x+(C*m-g*p),y:f.y+(C*p+g*m)}),d.rotate(S,h)}return u},i.scale=function(u,h,f,c,m){for(var p=m?i.allBodies(u):u.bodies,_=0;_<p.length;_++){var v=p[_],S=v.position.x-c.x,C=v.position.y-c.y;d.setPosition(v,{x:c.x+S*h,y:c.y+C*f}),d.scale(v,h,f)}return u},i.bounds=function(u){for(var h=i.allBodies(u),f=[],c=0;c<h.length;c+=1){var m=h[c];f.push(m.bounds.min,m.bounds.max)}return a.create(f)}})()},function(n,s,r){var i={};n.exports=i;var o=r(3),l=r(2),a=r(7);r(16);var d=r(0),u=r(1),h=r(11);(function(){i._inertiaScale=4,i._nextCollidingGroupId=1,i._nextNonCollidingGroupId=-1,i._nextCategory=1,i.create=function(c){var m={id:d.nextId(),type:"body",label:"Body",parts:[],plugin:{},angle:0,vertices:o.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"),position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},totalContacts:0,speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isSensor:!1,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:.001,restitution:0,friction:.1,frictionStatic:.5,frictionAir:.01,collisionFilter:{category:1,mask:4294967295,group:0},slop:.05,timeScale:1,render:{visible:!0,opacity:1,strokeStyle:null,fillStyle:null,lineWidth:null,sprite:{xScale:1,yScale:1,xOffset:0,yOffset:0}},events:null,bounds:null,chamfer:null,circleRadius:0,positionPrev:null,anglePrev:0,parent:null,axes:null,area:0,mass:0,inertia:0,_original:null},p=d.extend(m,c);return f(p,c),p},i.nextGroup=function(c){return c?i._nextNonCollidingGroupId--:i._nextCollidingGroupId++},i.nextCategory=function(){return i._nextCategory=i._nextCategory<<1,i._nextCategory};var f=function(c,m){m=m||{},i.set(c,{bounds:c.bounds||u.create(c.vertices),positionPrev:c.positionPrev||l.clone(c.position),anglePrev:c.anglePrev||c.angle,vertices:c.vertices,parts:c.parts||[c],isStatic:c.isStatic,isSleeping:c.isSleeping,parent:c.parent||c}),o.rotate(c.vertices,c.angle,c.position),h.rotate(c.axes,c.angle),u.update(c.bounds,c.vertices,c.velocity),i.set(c,{axes:m.axes||c.axes,area:m.area||c.area,mass:m.mass||c.mass,inertia:m.inertia||c.inertia});var p=c.isStatic?"#14151f":d.choose(["#f19648","#f5d259","#f55a3c","#063e7b","#ececd1"]),_=c.isStatic?"#555":"#ccc",v=c.isStatic&&c.render.fillStyle===null?1:0;c.render.fillStyle=c.render.fillStyle||p,c.render.strokeStyle=c.render.strokeStyle||_,c.render.lineWidth=c.render.lineWidth||v,c.render.sprite.xOffset+=-(c.bounds.min.x-c.position.x)/(c.bounds.max.x-c.bounds.min.x),c.render.sprite.yOffset+=-(c.bounds.min.y-c.position.y)/(c.bounds.max.y-c.bounds.min.y)};i.set=function(c,m,p){var _;typeof m=="string"&&(_=m,m={},m[_]=p);for(_ in m)if(Object.prototype.hasOwnProperty.call(m,_))switch(p=m[_],_){case"isStatic":i.setStatic(c,p);break;case"isSleeping":a.set(c,p);break;case"mass":i.setMass(c,p);break;case"density":i.setDensity(c,p);break;case"inertia":i.setInertia(c,p);break;case"vertices":i.setVertices(c,p);break;case"position":i.setPosition(c,p);break;case"angle":i.setAngle(c,p);break;case"velocity":i.setVelocity(c,p);break;case"angularVelocity":i.setAngularVelocity(c,p);break;case"parts":i.setParts(c,p);break;case"centre":i.setCentre(c,p);break;default:c[_]=p}},i.setStatic=function(c,m){for(var p=0;p<c.parts.length;p++){var _=c.parts[p];_.isStatic=m,m?(_._original={restitution:_.restitution,friction:_.friction,mass:_.mass,inertia:_.inertia,density:_.density,inverseMass:_.inverseMass,inverseInertia:_.inverseInertia},_.restitution=0,_.friction=1,_.mass=_.inertia=_.density=1/0,_.inverseMass=_.inverseInertia=0,_.positionPrev.x=_.position.x,_.positionPrev.y=_.position.y,_.anglePrev=_.angle,_.angularVelocity=0,_.speed=0,_.angularSpeed=0,_.motion=0):_._original&&(_.restitution=_._original.restitution,_.friction=_._original.friction,_.mass=_._original.mass,_.inertia=_._original.inertia,_.density=_._original.density,_.inverseMass=_._original.inverseMass,_.inverseInertia=_._original.inverseInertia,_._original=null)}},i.setMass=function(c,m){var p=c.inertia/(c.mass/6);c.inertia=p*(m/6),c.inverseInertia=1/c.inertia,c.mass=m,c.inverseMass=1/c.mass,c.density=c.mass/c.area},i.setDensity=function(c,m){i.setMass(c,m*c.area),c.density=m},i.setInertia=function(c,m){c.inertia=m,c.inverseInertia=1/c.inertia},i.setVertices=function(c,m){m[0].body===c?c.vertices=m:c.vertices=o.create(m,c),c.axes=h.fromVertices(c.vertices),c.area=o.area(c.vertices),i.setMass(c,c.density*c.area);var p=o.centre(c.vertices);o.translate(c.vertices,p,-1),i.setInertia(c,i._inertiaScale*o.inertia(c.vertices,c.mass)),o.translate(c.vertices,c.position),u.update(c.bounds,c.vertices,c.velocity)},i.setParts=function(c,m,p){var _;for(m=m.slice(0),c.parts.length=0,c.parts.push(c),c.parent=c,_=0;_<m.length;_++){var v=m[_];v!==c&&(v.parent=c,c.parts.push(v))}if(c.parts.length!==1){if(p=typeof p<"u"?p:!0,p){var S=[];for(_=0;_<m.length;_++)S=S.concat(m[_].vertices);o.clockwiseSort(S);var C=o.hull(S),g=o.centre(C);i.setVertices(c,C),o.translate(c.vertices,g)}var y=i._totalProperties(c);c.area=y.area,c.parent=c,c.position.x=y.centre.x,c.position.y=y.centre.y,c.positionPrev.x=y.centre.x,c.positionPrev.y=y.centre.y,i.setMass(c,y.mass),i.setInertia(c,y.inertia),i.setPosition(c,y.centre)}},i.setCentre=function(c,m,p){p?(c.positionPrev.x+=m.x,c.positionPrev.y+=m.y,c.position.x+=m.x,c.position.y+=m.y):(c.positionPrev.x=m.x-(c.position.x-c.positionPrev.x),c.positionPrev.y=m.y-(c.position.y-c.positionPrev.y),c.position.x=m.x,c.position.y=m.y)},i.setPosition=function(c,m){var p=l.sub(m,c.position);c.positionPrev.x+=p.x,c.positionPrev.y+=p.y;for(var _=0;_<c.parts.length;_++){var v=c.parts[_];v.position.x+=p.x,v.position.y+=p.y,o.translate(v.vertices,p),u.update(v.bounds,v.vertices,c.velocity)}},i.setAngle=function(c,m){var p=m-c.angle;c.anglePrev+=p;for(var _=0;_<c.parts.length;_++){var v=c.parts[_];v.angle+=p,o.rotate(v.vertices,p,c.position),h.rotate(v.axes,p),u.update(v.bounds,v.vertices,c.velocity),_>0&&l.rotateAbout(v.position,p,c.position,v.position)}},i.setVelocity=function(c,m){c.positionPrev.x=c.position.x-m.x,c.positionPrev.y=c.position.y-m.y,c.velocity.x=m.x,c.velocity.y=m.y,c.speed=l.magnitude(c.velocity)},i.setAngularVelocity=function(c,m){c.anglePrev=c.angle-m,c.angularVelocity=m,c.angularSpeed=Math.abs(c.angularVelocity)},i.translate=function(c,m){i.setPosition(c,l.add(c.position,m))},i.rotate=function(c,m,p){if(!p)i.setAngle(c,c.angle+m);else{var _=Math.cos(m),v=Math.sin(m),S=c.position.x-p.x,C=c.position.y-p.y;i.setPosition(c,{x:p.x+(S*_-C*v),y:p.y+(S*v+C*_)}),i.setAngle(c,c.angle+m)}},i.scale=function(c,m,p,_){var v=0,S=0;_=_||c.position;for(var C=0;C<c.parts.length;C++){var g=c.parts[C];o.scale(g.vertices,m,p,_),g.axes=h.fromVertices(g.vertices),g.area=o.area(g.vertices),i.setMass(g,c.density*g.area),o.translate(g.vertices,{x:-g.position.x,y:-g.position.y}),i.setInertia(g,i._inertiaScale*o.inertia(g.vertices,g.mass)),o.translate(g.vertices,{x:g.position.x,y:g.position.y}),C>0&&(v+=g.area,S+=g.inertia),g.position.x=_.x+(g.position.x-_.x)*m,g.position.y=_.y+(g.position.y-_.y)*p,u.update(g.bounds,g.vertices,c.velocity)}c.parts.length>1&&(c.area=v,c.isStatic||(i.setMass(c,c.density*v),i.setInertia(c,S))),c.circleRadius&&(m===p?c.circleRadius*=m:c.circleRadius=null)},i.update=function(c,m,p,_){var v=Math.pow(m*p*c.timeScale,2),S=1-c.frictionAir*p*c.timeScale,C=c.position.x-c.positionPrev.x,g=c.position.y-c.positionPrev.y;c.velocity.x=C*S*_+c.force.x/c.mass*v,c.velocity.y=g*S*_+c.force.y/c.mass*v,c.positionPrev.x=c.position.x,c.positionPrev.y=c.position.y,c.position.x+=c.velocity.x,c.position.y+=c.velocity.y,c.angularVelocity=(c.angle-c.anglePrev)*S*_+c.torque/c.inertia*v,c.anglePrev=c.angle,c.angle+=c.angularVelocity,c.speed=l.magnitude(c.velocity),c.angularSpeed=Math.abs(c.angularVelocity);for(var y=0;y<c.parts.length;y++){var b=c.parts[y];o.translate(b.vertices,c.velocity),y>0&&(b.position.x+=c.velocity.x,b.position.y+=c.velocity.y),c.angularVelocity!==0&&(o.rotate(b.vertices,c.angularVelocity,c.position),h.rotate(b.axes,c.angularVelocity),y>0&&l.rotateAbout(b.position,c.angularVelocity,c.position,b.position)),u.update(b.bounds,b.vertices,c.velocity)}},i.applyForce=function(c,m,p){c.force.x+=p.x,c.force.y+=p.y;var _={x:m.x-c.position.x,y:m.y-c.position.y};c.torque+=_.x*p.y-_.y*p.x},i._totalProperties=function(c){for(var m={mass:0,area:0,inertia:0,centre:{x:0,y:0}},p=c.parts.length===1?0:1;p<c.parts.length;p++){var _=c.parts[p],v=_.mass!==1/0?_.mass:1;m.mass+=v,m.area+=_.area,m.inertia+=_.inertia,m.centre=l.add(m.centre,l.mult(_.position,v))}return m.centre=l.div(m.centre,m.mass),m}})()},function(n,s,r){var i={};n.exports=i;var o=r(4);(function(){i._motionWakeThreshold=.18,i._motionSleepThreshold=.08,i._minBias=.9,i.update=function(l,a){for(var d=a*a*a,u=0;u<l.length;u++){var h=l[u],f=h.speed*h.speed+h.angularSpeed*h.angularSpeed;if(h.force.x!==0||h.force.y!==0){i.set(h,!1);continue}var c=Math.min(h.motion,f),m=Math.max(h.motion,f);h.motion=i._minBias*c+(1-i._minBias)*m,h.sleepThreshold>0&&h.motion<i._motionSleepThreshold*d?(h.sleepCounter+=1,h.sleepCounter>=h.sleepThreshold&&i.set(h,!0)):h.sleepCounter>0&&(h.sleepCounter-=1)}},i.afterCollisions=function(l,a){for(var d=a*a*a,u=0;u<l.length;u++){var h=l[u];if(h.isActive){var f=h.collision,c=f.bodyA.parent,m=f.bodyB.parent;if(!(c.isSleeping&&m.isSleeping||c.isStatic||m.isStatic)&&(c.isSleeping||m.isSleeping)){var p=c.isSleeping&&!c.isStatic?c:m,_=p===c?m:c;!p.isStatic&&_.motion>i._motionWakeThreshold*d&&i.set(p,!1)}}}},i.set=function(l,a){var d=l.isSleeping;a?(l.isSleeping=!0,l.sleepCounter=l.sleepThreshold,l.positionImpulse.x=0,l.positionImpulse.y=0,l.positionPrev.x=l.position.x,l.positionPrev.y=l.position.y,l.anglePrev=l.angle,l.speed=0,l.angularSpeed=0,l.motion=0,d||o.trigger(l,"sleepStart")):(l.isSleeping=!1,l.sleepCounter=0,d&&o.trigger(l,"sleepEnd"))}})()},function(n,s,r){var i={};n.exports=i;var o=r(3),l=r(9);(function(){var a=[],d={overlap:0,axis:null},u={overlap:0,axis:null};i.create=function(h,f){return{pair:null,collided:!1,bodyA:h,bodyB:f,parentA:h.parent,parentB:f.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[]}},i.collides=function(h,f,c){if(i._overlapAxes(d,h.vertices,f.vertices,h.axes),d.overlap<=0||(i._overlapAxes(u,f.vertices,h.vertices,f.axes),u.overlap<=0))return null;var m=c&&c.table[l.id(h,f)],p;m?p=m.collision:(p=i.create(h,f),p.collided=!0,p.bodyA=h.id<f.id?h:f,p.bodyB=h.id<f.id?f:h,p.parentA=p.bodyA.parent,p.parentB=p.bodyB.parent),h=p.bodyA,f=p.bodyB;var _;d.overlap<u.overlap?_=d:_=u;var v=p.normal,S=p.supports,C=_.axis,g=C.x,y=C.y;g*(f.position.x-h.position.x)+y*(f.position.y-h.position.y)<0?(v.x=g,v.y=y):(v.x=-g,v.y=-y),p.tangent.x=-v.y,p.tangent.y=v.x,p.depth=_.overlap,p.penetration.x=v.x*p.depth,p.penetration.y=v.y*p.depth;var b=i._findSupports(h,f,v,1),w=0;if(o.contains(h.vertices,b[0])&&(S[w++]=b[0]),o.contains(h.vertices,b[1])&&(S[w++]=b[1]),w<2){var L=i._findSupports(f,h,v,-1);o.contains(f.vertices,L[0])&&(S[w++]=L[0]),w<2&&o.contains(f.vertices,L[1])&&(S[w++]=L[1])}return w===0&&(S[w++]=b[0]),S.length=w,p},i._overlapAxes=function(h,f,c,m){var p=f.length,_=c.length,v=f[0].x,S=f[0].y,C=c[0].x,g=c[0].y,y=m.length,b=Number.MAX_VALUE,w=0,L,T,O,I,N,F;for(N=0;N<y;N++){var z=m[N],Q=z.x,U=z.y,q=v*Q+S*U,te=C*Q+g*U,re=q,me=te;for(F=1;F<p;F+=1)I=f[F].x*Q+f[F].y*U,I>re?re=I:I<q&&(q=I);for(F=1;F<_;F+=1)I=c[F].x*Q+c[F].y*U,I>me?me=I:I<te&&(te=I);if(T=re-te,O=me-q,L=T<O?T:O,L<b&&(b=L,w=N,L<=0))break}h.axis=m[w],h.overlap=b},i._projectToAxis=function(h,f,c){for(var m=f[0].x*c.x+f[0].y*c.y,p=m,_=1;_<f.length;_+=1){var v=f[_].x*c.x+f[_].y*c.y;v>p?p=v:v<m&&(m=v)}h.min=m,h.max=p},i._findSupports=function(h,f,c,m){var p=f.vertices,_=p.length,v=h.position.x,S=h.position.y,C=c.x*m,g=c.y*m,y=Number.MAX_VALUE,b,w,L,T,O;for(O=0;O<_;O+=1)w=p[O],T=C*(v-w.x)+g*(S-w.y),T<y&&(y=T,b=w);return L=p[(_+b.index-1)%_],y=C*(v-L.x)+g*(S-L.y),w=p[(b.index+1)%_],C*(v-w.x)+g*(S-w.y)<y?(a[0]=b,a[1]=w,a):(a[0]=b,a[1]=L,a)}})()},function(n,s,r){var i={};n.exports=i;var o=r(17);(function(){i.create=function(l,a){var d=l.bodyA,u=l.bodyB,h={id:i.id(d,u),bodyA:d,bodyB:u,collision:l,contacts:[],activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:d.isSensor||u.isSensor,timeCreated:a,timeUpdated:a,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return i.update(h,l,a),h},i.update=function(l,a,d){var u=l.contacts,h=a.supports,f=l.activeContacts,c=a.parentA,m=a.parentB,p=c.vertices.length;l.isActive=!0,l.timeUpdated=d,l.collision=a,l.separation=a.depth,l.inverseMass=c.inverseMass+m.inverseMass,l.friction=c.friction<m.friction?c.friction:m.friction,l.frictionStatic=c.frictionStatic>m.frictionStatic?c.frictionStatic:m.frictionStatic,l.restitution=c.restitution>m.restitution?c.restitution:m.restitution,l.slop=c.slop>m.slop?c.slop:m.slop,a.pair=l,f.length=0;for(var _=0;_<h.length;_++){var v=h[_],S=v.body===c?v.index:p+v.index,C=u[S];C?f.push(C):f.push(u[S]=o.create(v))}},i.setActive=function(l,a,d){a?(l.isActive=!0,l.timeUpdated=d):(l.isActive=!1,l.activeContacts.length=0)},i.id=function(l,a){return l.id<a.id?"A"+l.id+"B"+a.id:"A"+a.id+"B"+l.id}})()},function(n,s,r){var i={};n.exports=i;var o=r(3),l=r(2),a=r(7),d=r(1),u=r(11),h=r(0);(function(){i._warming=.4,i._torqueDampen=1,i._minLength=1e-6,i.create=function(f){var c=f;c.bodyA&&!c.pointA&&(c.pointA={x:0,y:0}),c.bodyB&&!c.pointB&&(c.pointB={x:0,y:0});var m=c.bodyA?l.add(c.bodyA.position,c.pointA):c.pointA,p=c.bodyB?l.add(c.bodyB.position,c.pointB):c.pointB,_=l.magnitude(l.sub(m,p));c.length=typeof c.length<"u"?c.length:_,c.id=c.id||h.nextId(),c.label=c.label||"Constraint",c.type="constraint",c.stiffness=c.stiffness||(c.length>0?1:.7),c.damping=c.damping||0,c.angularStiffness=c.angularStiffness||0,c.angleA=c.bodyA?c.bodyA.angle:c.angleA,c.angleB=c.bodyB?c.bodyB.angle:c.angleB,c.plugin={};var v={visible:!0,lineWidth:2,strokeStyle:"#ffffff",type:"line",anchors:!0};return c.length===0&&c.stiffness>.1?(v.type="pin",v.anchors=!1):c.stiffness<.9&&(v.type="spring"),c.render=h.extend(v,c.render),c},i.preSolveAll=function(f){for(var c=0;c<f.length;c+=1){var m=f[c],p=m.constraintImpulse;m.isStatic||p.x===0&&p.y===0&&p.angle===0||(m.position.x+=p.x,m.position.y+=p.y,m.angle+=p.angle)}},i.solveAll=function(f,c){for(var m=0;m<f.length;m+=1){var p=f[m],_=!p.bodyA||p.bodyA&&p.bodyA.isStatic,v=!p.bodyB||p.bodyB&&p.bodyB.isStatic;(_||v)&&i.solve(f[m],c)}for(m=0;m<f.length;m+=1)p=f[m],_=!p.bodyA||p.bodyA&&p.bodyA.isStatic,v=!p.bodyB||p.bodyB&&p.bodyB.isStatic,!_&&!v&&i.solve(f[m],c)},i.solve=function(f,c){var m=f.bodyA,p=f.bodyB,_=f.pointA,v=f.pointB;if(!(!m&&!p)){m&&!m.isStatic&&(l.rotate(_,m.angle-f.angleA,_),f.angleA=m.angle),p&&!p.isStatic&&(l.rotate(v,p.angle-f.angleB,v),f.angleB=p.angle);var S=_,C=v;if(m&&(S=l.add(m.position,_)),p&&(C=l.add(p.position,v)),!(!S||!C)){var g=l.sub(S,C),y=l.magnitude(g);y<i._minLength&&(y=i._minLength);var b=(y-f.length)/y,w=f.stiffness<1?f.stiffness*c:f.stiffness,L=l.mult(g,b*w),T=(m?m.inverseMass:0)+(p?p.inverseMass:0),O=(m?m.inverseInertia:0)+(p?p.inverseInertia:0),I=T+O,N,F,z,Q,U;if(f.damping){var q=l.create();z=l.div(g,y),U=l.sub(p&&l.sub(p.position,p.positionPrev)||q,m&&l.sub(m.position,m.positionPrev)||q),Q=l.dot(z,U)}m&&!m.isStatic&&(F=m.inverseMass/T,m.constraintImpulse.x-=L.x*F,m.constraintImpulse.y-=L.y*F,m.position.x-=L.x*F,m.position.y-=L.y*F,f.damping&&(m.positionPrev.x-=f.damping*z.x*Q*F,m.positionPrev.y-=f.damping*z.y*Q*F),N=l.cross(_,L)/I*i._torqueDampen*m.inverseInertia*(1-f.angularStiffness),m.constraintImpulse.angle-=N,m.angle-=N),p&&!p.isStatic&&(F=p.inverseMass/T,p.constraintImpulse.x+=L.x*F,p.constraintImpulse.y+=L.y*F,p.position.x+=L.x*F,p.position.y+=L.y*F,f.damping&&(p.positionPrev.x+=f.damping*z.x*Q*F,p.positionPrev.y+=f.damping*z.y*Q*F),N=l.cross(v,L)/I*i._torqueDampen*p.inverseInertia*(1-f.angularStiffness),p.constraintImpulse.angle+=N,p.angle+=N)}}},i.postSolveAll=function(f){for(var c=0;c<f.length;c++){var m=f[c],p=m.constraintImpulse;if(!(m.isStatic||p.x===0&&p.y===0&&p.angle===0)){a.set(m,!1);for(var _=0;_<m.parts.length;_++){var v=m.parts[_];o.translate(v.vertices,p),_>0&&(v.position.x+=p.x,v.position.y+=p.y),p.angle!==0&&(o.rotate(v.vertices,p.angle,m.position),u.rotate(v.axes,p.angle),_>0&&l.rotateAbout(v.position,p.angle,m.position,v.position)),d.update(v.bounds,v.vertices,m.velocity)}p.angle*=i._warming,p.x*=i._warming,p.y*=i._warming}}},i.pointAWorld=function(f){return{x:(f.bodyA?f.bodyA.position.x:0)+f.pointA.x,y:(f.bodyA?f.bodyA.position.y:0)+f.pointA.y}},i.pointBWorld=function(f){return{x:(f.bodyB?f.bodyB.position.x:0)+f.pointB.x,y:(f.bodyB?f.bodyB.position.y:0)+f.pointB.y}}})()},function(n,s,r){var i={};n.exports=i;var o=r(2),l=r(0);(function(){i.fromVertices=function(a){for(var d={},u=0;u<a.length;u++){var h=(u+1)%a.length,f=o.normalise({x:a[h].y-a[u].y,y:a[u].x-a[h].x}),c=f.y===0?1/0:f.x/f.y;c=c.toFixed(3).toString(),d[c]=f}return l.values(d)},i.rotate=function(a,d){if(d!==0)for(var u=Math.cos(d),h=Math.sin(d),f=0;f<a.length;f++){var c=a[f],m;m=c.x*u-c.y*h,c.y=c.x*h+c.y*u,c.x=m}}})()},function(n,s,r){var i={};n.exports=i;var o=r(3),l=r(0),a=r(6),d=r(1),u=r(2);(function(){i.rectangle=function(h,f,c,m,p){p=p||{};var _={label:"Rectangle Body",position:{x:h,y:f},vertices:o.fromPath("L 0 0 L "+c+" 0 L "+c+" "+m+" L 0 "+m)};if(p.chamfer){var v=p.chamfer;_.vertices=o.chamfer(_.vertices,v.radius,v.quality,v.qualityMin,v.qualityMax),delete p.chamfer}return a.create(l.extend({},_,p))},i.trapezoid=function(h,f,c,m,p,_){_=_||{},p*=.5;var v=(1-p*2)*c,S=c*p,C=S+v,g=C+S,y;p<.5?y="L 0 0 L "+S+" "+-m+" L "+C+" "+-m+" L "+g+" 0":y="L 0 0 L "+C+" "+-m+" L "+g+" 0";var b={label:"Trapezoid Body",position:{x:h,y:f},vertices:o.fromPath(y)};if(_.chamfer){var w=_.chamfer;b.vertices=o.chamfer(b.vertices,w.radius,w.quality,w.qualityMin,w.qualityMax),delete _.chamfer}return a.create(l.extend({},b,_))},i.circle=function(h,f,c,m,p){m=m||{};var _={label:"Circle Body",circleRadius:c};p=p||25;var v=Math.ceil(Math.max(10,Math.min(p,c)));return v%2===1&&(v+=1),i.polygon(h,f,v,c,l.extend({},_,m))},i.polygon=function(h,f,c,m,p){if(p=p||{},c<3)return i.circle(h,f,m,p);for(var _=2*Math.PI/c,v="",S=_*.5,C=0;C<c;C+=1){var g=S+C*_,y=Math.cos(g)*m,b=Math.sin(g)*m;v+="L "+y.toFixed(3)+" "+b.toFixed(3)+" "}var w={label:"Polygon Body",position:{x:h,y:f},vertices:o.fromPath(v)};if(p.chamfer){var L=p.chamfer;w.vertices=o.chamfer(w.vertices,L.radius,L.quality,L.qualityMin,L.qualityMax),delete p.chamfer}return a.create(l.extend({},w,p))},i.fromVertices=function(h,f,c,m,p,_,v,S){var C=l.getDecomp(),g,y,b,w,L,T,O,I,N,F,z;for(g=Boolean(C&&C.quickDecomp),m=m||{},b=[],p=typeof p<"u"?p:!1,_=typeof _<"u"?_:.01,v=typeof v<"u"?v:10,S=typeof S<"u"?S:.01,l.isArray(c[0])||(c=[c]),F=0;F<c.length;F+=1)if(T=c[F],w=o.isConvex(T),L=!w,L&&!g&&l.warnOnce("Bodies.fromVertices: Install the 'poly-decomp' library and use Common.setDecomp or provide 'decomp' as a global to decompose concave vertices."),w||!g)w?T=o.clockwiseSort(T):T=o.hull(T),b.push({position:{x:h,y:f},vertices:T});else{var Q=T.map(function(Y){return[Y.x,Y.y]});C.makeCCW(Q),_!==!1&&C.removeCollinearPoints(Q,_),S!==!1&&C.removeDuplicatePoints&&C.removeDuplicatePoints(Q,S);var U=C.quickDecomp(Q);for(O=0;O<U.length;O++){var q=U[O],te=q.map(function(Y){return{x:Y[0],y:Y[1]}});v>0&&o.area(te)<v||b.push({position:o.centre(te),vertices:te})}}for(O=0;O<b.length;O++)b[O]=a.create(l.extend(b[O],m));if(p){var re=5;for(O=0;O<b.length;O++){var me=b[O];for(I=O+1;I<b.length;I++){var de=b[I];if(d.overlaps(me.bounds,de.bounds)){var ue=me.vertices,ve=de.vertices;for(N=0;N<me.vertices.length;N++)for(z=0;z<de.vertices.length;z++){var ke=u.magnitudeSquared(u.sub(ue[(N+1)%ue.length],ve[z])),B=u.magnitudeSquared(u.sub(ue[N],ve[(z+1)%ve.length]));ke<re&&B<re&&(ue[N].isInternal=!0,ve[z].isInternal=!0)}}}}}return b.length>1?(y=a.create(l.extend({parts:b.slice(0)},m)),a.setPosition(y,{x:h,y:f}),y):b[0]}})()},function(n,s,r){var i={};n.exports=i;var o=r(0);(function(){i.create=function(l){var a={};return l||o.log("Mouse.create: element was undefined, defaulting to document.body","warn"),a.element=l||document.body,a.absolute={x:0,y:0},a.position={x:0,y:0},a.mousedownPosition={x:0,y:0},a.mouseupPosition={x:0,y:0},a.offset={x:0,y:0},a.scale={x:1,y:1},a.wheelDelta=0,a.button=-1,a.pixelRatio=parseInt(a.element.getAttribute("data-pixel-ratio"),10)||1,a.sourceEvents={mousemove:null,mousedown:null,mouseup:null,mousewheel:null},a.mousemove=function(d){var u=i._getRelativeMousePosition(d,a.element,a.pixelRatio),h=d.changedTouches;h&&(a.button=0,d.preventDefault()),a.absolute.x=u.x,a.absolute.y=u.y,a.position.x=a.absolute.x*a.scale.x+a.offset.x,a.position.y=a.absolute.y*a.scale.y+a.offset.y,a.sourceEvents.mousemove=d},a.mousedown=function(d){var u=i._getRelativeMousePosition(d,a.element,a.pixelRatio),h=d.changedTouches;h?(a.button=0,d.preventDefault()):a.button=d.button,a.absolute.x=u.x,a.absolute.y=u.y,a.position.x=a.absolute.x*a.scale.x+a.offset.x,a.position.y=a.absolute.y*a.scale.y+a.offset.y,a.mousedownPosition.x=a.position.x,a.mousedownPosition.y=a.position.y,a.sourceEvents.mousedown=d},a.mouseup=function(d){var u=i._getRelativeMousePosition(d,a.element,a.pixelRatio),h=d.changedTouches;h&&d.preventDefault(),a.button=-1,a.absolute.x=u.x,a.absolute.y=u.y,a.position.x=a.absolute.x*a.scale.x+a.offset.x,a.position.y=a.absolute.y*a.scale.y+a.offset.y,a.mouseupPosition.x=a.position.x,a.mouseupPosition.y=a.position.y,a.sourceEvents.mouseup=d},a.mousewheel=function(d){a.wheelDelta=Math.max(-1,Math.min(1,d.wheelDelta||-d.detail)),d.preventDefault()},i.setElement(a,a.element),a},i.setElement=function(l,a){l.element=a,a.addEventListener("mousemove",l.mousemove),a.addEventListener("mousedown",l.mousedown),a.addEventListener("mouseup",l.mouseup),a.addEventListener("mousewheel",l.mousewheel),a.addEventListener("DOMMouseScroll",l.mousewheel),a.addEventListener("touchmove",l.mousemove),a.addEventListener("touchstart",l.mousedown),a.addEventListener("touchend",l.mouseup)},i.clearSourceEvents=function(l){l.sourceEvents.mousemove=null,l.sourceEvents.mousedown=null,l.sourceEvents.mouseup=null,l.sourceEvents.mousewheel=null,l.wheelDelta=0},i.setOffset=function(l,a){l.offset.x=a.x,l.offset.y=a.y,l.position.x=l.absolute.x*l.scale.x+l.offset.x,l.position.y=l.absolute.y*l.scale.y+l.offset.y},i.setScale=function(l,a){l.scale.x=a.x,l.scale.y=a.y,l.position.x=l.absolute.x*l.scale.x+l.offset.x,l.position.y=l.absolute.y*l.scale.y+l.offset.y},i._getRelativeMousePosition=function(l,a,d){var u=a.getBoundingClientRect(),h=document.documentElement||document.body.parentNode||document.body,f=window.pageXOffset!==void 0?window.pageXOffset:h.scrollLeft,c=window.pageYOffset!==void 0?window.pageYOffset:h.scrollTop,m=l.changedTouches,p,_;return m?(p=m[0].pageX-u.left-f,_=m[0].pageY-u.top-c):(p=l.pageX-u.left-f,_=l.pageY-u.top-c),{x:p/(a.clientWidth/(a.width||a.clientWidth)*d),y:_/(a.clientHeight/(a.height||a.clientHeight)*d)}}})()},function(n,s,r){var i={};n.exports=i;var o=r(0),l=r(8);(function(){i.create=function(a){var d={bodies:[],pairs:null};return o.extend(d,a)},i.setBodies=function(a,d){a.bodies=d.slice(0)},i.clear=function(a){a.bodies=[]},i.collisions=function(a){var d=[],u=a.pairs,h=a.bodies,f=h.length,c=i.canCollide,m=l.collides,p,_;for(h.sort(i._compareBoundsX),p=0;p<f;p++){var v=h[p],S=v.bounds,C=v.bounds.max.x,g=v.bounds.max.y,y=v.bounds.min.y,b=v.isStatic||v.isSleeping,w=v.parts.length,L=w===1;for(_=p+1;_<f;_++){var T=h[_],O=T.bounds;if(O.min.x>C)break;if(!(g<O.min.y||y>O.max.y)&&!(b&&(T.isStatic||T.isSleeping))&&c(v.collisionFilter,T.collisionFilter)){var I=T.parts.length;if(L&&I===1){var N=m(v,T,u);N&&d.push(N)}else for(var F=w>1?1:0,z=I>1?1:0,Q=F;Q<w;Q++)for(var U=v.parts[Q],S=U.bounds,q=z;q<I;q++){var te=T.parts[q],O=te.bounds;if(!(S.min.x>O.max.x||S.max.x<O.min.x||S.max.y<O.min.y||S.min.y>O.max.y)){var N=m(U,te,u);N&&d.push(N)}}}}}return d},i.canCollide=function(a,d){return a.group===d.group&&a.group!==0?a.group>0:(a.mask&d.category)!==0&&(d.mask&a.category)!==0},i._compareBoundsX=function(a,d){return a.bounds.min.x-d.bounds.min.x}})()},function(n,s,r){var i={};n.exports=i;var o=r(0);(function(){i._registry={},i.register=function(l){if(i.isPlugin(l)||o.warn("Plugin.register:",i.toString(l),"does not implement all required fields."),l.name in i._registry){var a=i._registry[l.name],d=i.versionParse(l.version).number,u=i.versionParse(a.version).number;d>u?(o.warn("Plugin.register:",i.toString(a),"was upgraded to",i.toString(l)),i._registry[l.name]=l):d<u?o.warn("Plugin.register:",i.toString(a),"can not be downgraded to",i.toString(l)):l!==a&&o.warn("Plugin.register:",i.toString(l),"is already registered to different plugin object")}else i._registry[l.name]=l;return l},i.resolve=function(l){return i._registry[i.dependencyParse(l).name]},i.toString=function(l){return typeof l=="string"?l:(l.name||"anonymous")+"@"+(l.version||l.range||"0.0.0")},i.isPlugin=function(l){return l&&l.name&&l.version&&l.install},i.isUsed=function(l,a){return l.used.indexOf(a)>-1},i.isFor=function(l,a){var d=l.for&&i.dependencyParse(l.for);return!l.for||a.name===d.name&&i.versionSatisfies(a.version,d.range)},i.use=function(l,a){if(l.uses=(l.uses||[]).concat(a||[]),l.uses.length===0){o.warn("Plugin.use:",i.toString(l),"does not specify any dependencies to install.");return}for(var d=i.dependencies(l),u=o.topologicalSort(d),h=[],f=0;f<u.length;f+=1)if(u[f]!==l.name){var c=i.resolve(u[f]);if(!c){h.push("❌ "+u[f]);continue}i.isUsed(l,c.name)||(i.isFor(c,l)||(o.warn("Plugin.use:",i.toString(c),"is for",c.for,"but installed on",i.toString(l)+"."),c._warned=!0),c.install?c.install(l):(o.warn("Plugin.use:",i.toString(c),"does not specify an install function."),c._warned=!0),c._warned?(h.push("🔶 "+i.toString(c)),delete c._warned):h.push("✅ "+i.toString(c)),l.used.push(c.name))}h.length>0&&o.info(h.join(" "))},i.dependencies=function(l,a){var d=i.dependencyParse(l),u=d.name;if(a=a||{},!(u in a)){l=i.resolve(l)||l,a[u]=o.map(l.uses||[],function(f){i.isPlugin(f)&&i.register(f);var c=i.dependencyParse(f),m=i.resolve(f);return m&&!i.versionSatisfies(m.version,c.range)?(o.warn("Plugin.dependencies:",i.toString(m),"does not satisfy",i.toString(c),"used by",i.toString(d)+"."),m._warned=!0,l._warned=!0):m||(o.warn("Plugin.dependencies:",i.toString(f),"used by",i.toString(d),"could not be resolved."),l._warned=!0),c.name});for(var h=0;h<a[u].length;h+=1)i.dependencies(a[u][h],a);return a}},i.dependencyParse=function(l){if(o.isString(l)){var a=/^[\w-]+(@(\*|[\^~]?\d+\.\d+\.\d+(-[0-9A-Za-z-+]+)?))?$/;return a.test(l)||o.warn("Plugin.dependencyParse:",l,"is not a valid dependency string."),{name:l.split("@")[0],range:l.split("@")[1]||"*"}}return{name:l.name,range:l.range||l.version}},i.versionParse=function(l){var a=/^(\*)|(\^|~|>=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/;a.test(l)||o.warn("Plugin.versionParse:",l,"is not a valid version or range.");var d=a.exec(l),u=Number(d[4]),h=Number(d[5]),f=Number(d[6]);return{isRange:Boolean(d[1]||d[2]),version:d[3],range:l,operator:d[1]||d[2]||"",major:u,minor:h,patch:f,parts:[u,h,f],prerelease:d[7],number:u*1e8+h*1e4+f}},i.versionSatisfies=function(l,a){a=a||"*";var d=i.versionParse(a),u=i.versionParse(l);if(d.isRange){if(d.operator==="*"||l==="*")return!0;if(d.operator===">")return u.number>d.number;if(d.operator===">=")return u.number>=d.number;if(d.operator==="~")return u.major===d.major&&u.minor===d.minor&&u.patch>=d.patch;if(d.operator==="^")return d.major>0?u.major===d.major&&u.number>=d.number:d.minor>0?u.minor===d.minor&&u.patch>=d.patch:u.patch===d.patch}return l===a||l==="*"}})()},function(n,s,r){var i={};n.exports=i;var o=r(0),l=r(5),a=r(1),d=r(4),u=r(2),h=r(13);(function(){var f,c;typeof window<"u"&&(f=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(g){window.setTimeout(function(){g(o.now())},1e3/60)},c=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame),i._goodFps=30,i._goodDelta=1e3/60,i.create=function(g){var y={controller:i,engine:null,element:null,canvas:null,mouse:null,frameRequestId:null,timing:{historySize:60,delta:0,deltaHistory:[],lastTime:0,lastTimestamp:0,lastElapsed:0,timestampElapsed:0,timestampElapsedHistory:[],engineDeltaHistory:[],engineElapsedHistory:[],elapsedHistory:[]},options:{width:800,height:600,pixelRatio:1,background:"#14151f",wireframeBackground:"#14151f",hasBounds:!!g.bounds,enabled:!0,wireframes:!0,showSleeping:!0,showDebug:!1,showStats:!1,showPerformance:!1,showBounds:!1,showVelocity:!1,showCollisions:!1,showSeparations:!1,showAxes:!1,showPositions:!1,showAngleIndicator:!1,showIds:!1,showVertexNumbers:!1,showConvexHulls:!1,showInternalEdges:!1,showMousePosition:!1}},b=o.extend(y,g);return b.canvas&&(b.canvas.width=b.options.width||b.canvas.width,b.canvas.height=b.options.height||b.canvas.height),b.mouse=g.mouse,b.engine=g.engine,b.canvas=b.canvas||_(b.options.width,b.options.height),b.context=b.canvas.getContext("2d"),b.textures={},b.bounds=b.bounds||{min:{x:0,y:0},max:{x:b.canvas.width,y:b.canvas.height}},b.options.showBroadphase=!1,b.options.pixelRatio!==1&&i.setPixelRatio(b,b.options.pixelRatio),o.isElement(b.element)?b.element.appendChild(b.canvas):b.canvas.parentNode||o.log("Render.create: options.element was undefined, render.canvas was created but not appended","warn"),b},i.run=function(g){(function y(b){g.frameRequestId=f(y),m(g,b),i.world(g,b),(g.options.showStats||g.options.showDebug)&&i.stats(g,g.context,b),(g.options.showPerformance||g.options.showDebug)&&i.performance(g,g.context,b)})()},i.stop=function(g){c(g.frameRequestId)},i.setPixelRatio=function(g,y){var b=g.options,w=g.canvas;y==="auto"&&(y=v(w)),b.pixelRatio=y,w.setAttribute("data-pixel-ratio",y),w.width=b.width*y,w.height=b.height*y,w.style.width=b.width+"px",w.style.height=b.height+"px"},i.lookAt=function(g,y,b,w){w=typeof w<"u"?w:!0,y=o.isArray(y)?y:[y],b=b||{x:0,y:0};for(var L={min:{x:1/0,y:1/0},max:{x:-1/0,y:-1/0}},T=0;T<y.length;T+=1){var O=y[T],I=O.bounds?O.bounds.min:O.min||O.position||O,N=O.bounds?O.bounds.max:O.max||O.position||O;I&&N&&(I.x<L.min.x&&(L.min.x=I.x),N.x>L.max.x&&(L.max.x=N.x),I.y<L.min.y&&(L.min.y=I.y),N.y>L.max.y&&(L.max.y=N.y))}var F=L.max.x-L.min.x+2*b.x,z=L.max.y-L.min.y+2*b.y,Q=g.canvas.height,U=g.canvas.width,q=U/Q,te=F/z,re=1,me=1;te>q?me=te/q:re=q/te,g.options.hasBounds=!0,g.bounds.min.x=L.min.x,g.bounds.max.x=L.min.x+F*re,g.bounds.min.y=L.min.y,g.bounds.max.y=L.min.y+z*me,w&&(g.bounds.min.x+=F*.5-F*re*.5,g.bounds.max.x+=F*.5-F*re*.5,g.bounds.min.y+=z*.5-z*me*.5,g.bounds.max.y+=z*.5-z*me*.5),g.bounds.min.x-=b.x,g.bounds.max.x-=b.x,g.bounds.min.y-=b.y,g.bounds.max.y-=b.y,g.mouse&&(h.setScale(g.mouse,{x:(g.bounds.max.x-g.bounds.min.x)/g.canvas.width,y:(g.bounds.max.y-g.bounds.min.y)/g.canvas.height}),h.setOffset(g.mouse,g.bounds.min))},i.startViewTransform=function(g){var y=g.bounds.max.x-g.bounds.min.x,b=g.bounds.max.y-g.bounds.min.y,w=y/g.options.width,L=b/g.options.height;g.context.setTransform(g.options.pixelRatio/w,0,0,g.options.pixelRatio/L,0,0),g.context.translate(-g.bounds.min.x,-g.bounds.min.y)},i.endViewTransform=function(g){g.context.setTransform(g.options.pixelRatio,0,0,g.options.pixelRatio,0,0)},i.world=function(g,y){var b=o.now(),w=g.engine,L=w.world,T=g.canvas,O=g.context,I=g.options,N=g.timing,F=l.allBodies(L),z=l.allConstraints(L),Q=I.wireframes?I.wireframeBackground:I.background,U=[],q=[],te,re={timestamp:w.timing.timestamp};if(d.trigger(g,"beforeRender",re),g.currentBackground!==Q&&C(g,Q),O.globalCompositeOperation="source-in",O.fillStyle="transparent",O.fillRect(0,0,T.width,T.height),O.globalCompositeOperation="source-over",I.hasBounds){for(te=0;te<F.length;te++){var me=F[te];a.overlaps(me.bounds,g.bounds)&&U.push(me)}for(te=0;te<z.length;te++){var de=z[te],ue=de.bodyA,ve=de.bodyB,ke=de.pointA,B=de.pointB;ue&&(ke=u.add(ue.position,de.pointA)),ve&&(B=u.add(ve.position,de.pointB)),!(!ke||!B)&&(a.contains(g.bounds,ke)||a.contains(g.bounds,B))&&q.push(de)}i.startViewTransform(g),g.mouse&&(h.setScale(g.mouse,{x:(g.bounds.max.x-g.bounds.min.x)/g.options.width,y:(g.bounds.max.y-g.bounds.min.y)/g.options.height}),h.setOffset(g.mouse,g.bounds.min))}else q=z,U=F,g.options.pixelRatio!==1&&g.context.setTransform(g.options.pixelRatio,0,0,g.options.pixelRatio,0,0);!I.wireframes||w.enableSleeping&&I.showSleeping?i.bodies(g,U,O):(I.showConvexHulls&&i.bodyConvexHulls(g,U,O),i.bodyWireframes(g,U,O)),I.showBounds&&i.bodyBounds(g,U,O),(I.showAxes||I.showAngleIndicator)&&i.bodyAxes(g,U,O),I.showPositions&&i.bodyPositions(g,U,O),I.showVelocity&&i.bodyVelocity(g,U,O),I.showIds&&i.bodyIds(g,U,O),I.showSeparations&&i.separations(g,w.pairs.list,O),I.showCollisions&&i.collisions(g,w.pairs.list,O),I.showVertexNumbers&&i.vertexNumbers(g,U,O),I.showMousePosition&&i.mousePosition(g,g.mouse,O),i.constraints(q,O),I.hasBounds&&i.endViewTransform(g),d.trigger(g,"afterRender",re),N.lastElapsed=o.now()-b},i.stats=function(g,y,b){for(var w=g.engine,L=w.world,T=l.allBodies(L),O=0,I=55,N=44,F=0,z=0,Q=0;Q<T.length;Q+=1)O+=T[Q].parts.length;var U={Part:O,Body:T.length,Cons:l.allConstraints(L).length,Comp:l.allComposites(L).length,Pair:w.pairs.list.length};y.fillStyle="#0e0f19",y.fillRect(F,z,I*5.5,N),y.font="12px Arial",y.textBaseline="top",y.textAlign="right";for(var q in U){var te=U[q];y.fillStyle="#aaa",y.fillText(q,F+I,z+8),y.fillStyle="#eee",y.fillText(te,F+I,z+26),F+=I}},i.performance=function(g,y){var b=g.engine,w=g.timing,L=w.deltaHistory,T=w.elapsedHistory,O=w.timestampElapsedHistory,I=w.engineDeltaHistory,N=w.engineElapsedHistory,F=b.timing.lastDelta,z=p(L),Q=p(T),U=p(I),q=p(N),te=p(O),re=te/z||0,me=1e3/z||0,de=4,ue=12,ve=60,ke=34,B=10,Y=69;y.fillStyle="#0e0f19",y.fillRect(0,50,ue*4+ve*5+22,ke),i.status(y,B,Y,ve,de,L.length,Math.round(me)+" fps",me/i._goodFps,function(K){return L[K]/z-1}),i.status(y,B+ue+ve,Y,ve,de,I.length,F.toFixed(2)+" dt",i._goodDelta/F,function(K){return I[K]/U-1}),i.status(y,B+(ue+ve)*2,Y,ve,de,N.length,q.toFixed(2)+" ut",1-q/i._goodFps,function(K){return N[K]/q-1}),i.status(y,B+(ue+ve)*3,Y,ve,de,T.length,Q.toFixed(2)+" rt",1-Q/i._goodFps,function(K){return T[K]/Q-1}),i.status(y,B+(ue+ve)*4,Y,ve,de,O.length,re.toFixed(2)+" x",re*re*re,function(K){return(O[K]/L[K]/re||0)-1})},i.status=function(g,y,b,w,L,T,O,I,N){g.strokeStyle="#888",g.fillStyle="#444",g.lineWidth=1,g.fillRect(y,b+7,w,1),g.beginPath(),g.moveTo(y,b+7-L*o.clamp(.4*N(0),-2,2));for(var F=0;F<w;F+=1)g.lineTo(y+F,b+7-(F<T?L*o.clamp(.4*N(F),-2,2):0));g.stroke(),g.fillStyle="hsl("+o.clamp(25+95*I,0,120)+",100%,60%)",g.fillRect(y,b-7,4,4),g.font="12px Arial",g.textBaseline="middle",g.textAlign="right",g.fillStyle="#eee",g.fillText(O,y+w,b-5)},i.constraints=function(g,y){for(var b=y,w=0;w<g.length;w++){var L=g[w];if(!(!L.render.visible||!L.pointA||!L.pointB)){var T=L.bodyA,O=L.bodyB,I,N;if(T?I=u.add(T.position,L.pointA):I=L.pointA,L.render.type==="pin")b.beginPath(),b.arc(I.x,I.y,3,0,2*Math.PI),b.closePath();else{if(O?N=u.add(O.position,L.pointB):N=L.pointB,b.beginPath(),b.moveTo(I.x,I.y),L.render.type==="spring")for(var F=u.sub(N,I),z=u.perp(u.normalise(F)),Q=Math.ceil(o.clamp(L.length/5,12,20)),U,q=1;q<Q;q+=1)U=q%2===0?1:-1,b.lineTo(I.x+F.x*(q/Q)+z.x*U*4,I.y+F.y*(q/Q)+z.y*U*4);b.lineTo(N.x,N.y)}L.render.lineWidth&&(b.lineWidth=L.render.lineWidth,b.strokeStyle=L.render.strokeStyle,b.stroke()),L.render.anchors&&(b.fillStyle=L.render.strokeStyle,b.beginPath(),b.arc(I.x,I.y,3,0,2*Math.PI),b.arc(N.x,N.y,3,0,2*Math.PI),b.closePath(),b.fill())}}},i.bodies=function(g,y,b){var w=b;g.engine;var L=g.options,T=L.showInternalEdges||!L.wireframes,O,I,N,F;for(N=0;N<y.length;N++)if(O=y[N],!!O.render.visible){for(F=O.parts.length>1?1:0;F<O.parts.length;F++)if(I=O.parts[F],!!I.render.visible){if(L.showSleeping&&O.isSleeping?w.globalAlpha=.5*I.render.opacity:I.render.opacity!==1&&(w.globalAlpha=I.render.opacity),I.render.sprite&&I.render.sprite.texture&&!L.wireframes){var z=I.render.sprite,Q=S(g,z.texture);w.translate(I.position.x,I.position.y),w.rotate(I.angle),w.drawImage(Q,Q.width*-z.xOffset*z.xScale,Q.height*-z.yOffset*z.yScale,Q.width*z.xScale,Q.height*z.yScale),w.rotate(-I.angle),w.translate(-I.position.x,-I.position.y)}else{if(I.circleRadius)w.beginPath(),w.arc(I.position.x,I.position.y,I.circleRadius,0,2*Math.PI);else{w.beginPath(),w.moveTo(I.vertices[0].x,I.vertices[0].y);for(var U=1;U<I.vertices.length;U++)!I.vertices[U-1].isInternal||T?w.lineTo(I.vertices[U].x,I.vertices[U].y):w.moveTo(I.vertices[U].x,I.vertices[U].y),I.vertices[U].isInternal&&!T&&w.moveTo(I.vertices[(U+1)%I.vertices.length].x,I.vertices[(U+1)%I.vertices.length].y);w.lineTo(I.vertices[0].x,I.vertices[0].y),w.closePath()}L.wireframes?(w.lineWidth=1,w.strokeStyle="#bbb",w.stroke()):(w.fillStyle=I.render.fillStyle,I.render.lineWidth&&(w.lineWidth=I.render.lineWidth,w.strokeStyle=I.render.strokeStyle,w.stroke()),w.fill())}w.globalAlpha=1}}},i.bodyWireframes=function(g,y,b){var w=b,L=g.options.showInternalEdges,T,O,I,N,F;for(w.beginPath(),I=0;I<y.length;I++)if(T=y[I],!!T.render.visible)for(F=T.parts.length>1?1:0;F<T.parts.length;F++){for(O=T.parts[F],w.moveTo(O.vertices[0].x,O.vertices[0].y),N=1;N<O.vertices.length;N++)!O.vertices[N-1].isInternal||L?w.lineTo(O.vertices[N].x,O.vertices[N].y):w.moveTo(O.vertices[N].x,O.vertices[N].y),O.vertices[N].isInternal&&!L&&w.moveTo(O.vertices[(N+1)%O.vertices.length].x,O.vertices[(N+1)%O.vertices.length].y);w.lineTo(O.vertices[0].x,O.vertices[0].y)}w.lineWidth=1,w.strokeStyle="#bbb",w.stroke()},i.bodyConvexHulls=function(g,y,b){var w=b,L,T,O;for(w.beginPath(),T=0;T<y.length;T++)if(L=y[T],!(!L.render.visible||L.parts.length===1)){for(w.moveTo(L.vertices[0].x,L.vertices[0].y),O=1;O<L.vertices.length;O++)w.lineTo(L.vertices[O].x,L.vertices[O].y);w.lineTo(L.vertices[0].x,L.vertices[0].y)}w.lineWidth=1,w.strokeStyle="rgba(255,255,255,0.2)",w.stroke()},i.vertexNumbers=function(g,y,b){var w=b,L,T,O;for(L=0;L<y.length;L++){var I=y[L].parts;for(O=I.length>1?1:0;O<I.length;O++){var N=I[O];for(T=0;T<N.vertices.length;T++)w.fillStyle="rgba(255,255,255,0.2)",w.fillText(L+"_"+T,N.position.x+(N.vertices[T].x-N.position.x)*.8,N.position.y+(N.vertices[T].y-N.position.y)*.8)}}},i.mousePosition=function(g,y,b){var w=b;w.fillStyle="rgba(255,255,255,0.8)",w.fillText(y.position.x+" "+y.position.y,y.position.x+5,y.position.y-5)},i.bodyBounds=function(g,y,b){var w=b;g.engine;var L=g.options;w.beginPath();for(var T=0;T<y.length;T++){var O=y[T];if(O.render.visible)for(var I=y[T].parts,N=I.length>1?1:0;N<I.length;N++){var F=I[N];w.rect(F.bounds.min.x,F.bounds.min.y,F.bounds.max.x-F.bounds.min.x,F.bounds.max.y-F.bounds.min.y)}}L.wireframes?w.strokeStyle="rgba(255,255,255,0.08)":w.strokeStyle="rgba(0,0,0,0.1)",w.lineWidth=1,w.stroke()},i.bodyAxes=function(g,y,b){var w=b;g.engine;var L=g.options,T,O,I,N;for(w.beginPath(),O=0;O<y.length;O++){var F=y[O],z=F.parts;if(F.render.visible)if(L.showAxes)for(I=z.length>1?1:0;I<z.length;I++)for(T=z[I],N=0;N<T.axes.length;N++){var Q=T.axes[N];w.moveTo(T.position.x,T.position.y),w.lineTo(T.position.x+Q.x*20,T.position.y+Q.y*20)}else for(I=z.length>1?1:0;I<z.length;I++)for(T=z[I],N=0;N<T.axes.length;N++)w.moveTo(T.position.x,T.position.y),w.lineTo((T.vertices[0].x+T.vertices[T.vertices.length-1].x)/2,(T.vertices[0].y+T.vertices[T.vertices.length-1].y)/2)}L.wireframes?(w.strokeStyle="indianred",w.lineWidth=1):(w.strokeStyle="rgba(255, 255, 255, 0.4)",w.globalCompositeOperation="overlay",w.lineWidth=2),w.stroke(),w.globalCompositeOperation="source-over"},i.bodyPositions=function(g,y,b){var w=b;g.engine;var L=g.options,T,O,I,N;for(w.beginPath(),I=0;I<y.length;I++)if(T=y[I],!!T.render.visible)for(N=0;N<T.parts.length;N++)O=T.parts[N],w.arc(O.position.x,O.position.y,3,0,2*Math.PI,!1),w.closePath();for(L.wireframes?w.fillStyle="indianred":w.fillStyle="rgba(0,0,0,0.5)",w.fill(),w.beginPath(),I=0;I<y.length;I++)T=y[I],T.render.visible&&(w.arc(T.positionPrev.x,T.positionPrev.y,2,0,2*Math.PI,!1),w.closePath());w.fillStyle="rgba(255,165,0,0.8)",w.fill()},i.bodyVelocity=function(g,y,b){var w=b;w.beginPath();for(var L=0;L<y.length;L++){var T=y[L];T.render.visible&&(w.moveTo(T.position.x,T.position.y),w.lineTo(T.position.x+(T.position.x-T.positionPrev.x)*2,T.position.y+(T.position.y-T.positionPrev.y)*2))}w.lineWidth=3,w.strokeStyle="cornflowerblue",w.stroke()},i.bodyIds=function(g,y,b){var w=b,L,T;for(L=0;L<y.length;L++)if(y[L].render.visible){var O=y[L].parts;for(T=O.length>1?1:0;T<O.length;T++){var I=O[T];w.font="12px Arial",w.fillStyle="rgba(255,255,255,0.5)",w.fillText(I.id,I.position.x+10,I.position.y-10)}}},i.collisions=function(g,y,b){var w=b,L=g.options,T,O,I,N;for(w.beginPath(),I=0;I<y.length;I++)if(T=y[I],!!T.isActive)for(O=T.collision,N=0;N<T.activeContacts.length;N++){var F=T.activeContacts[N],z=F.vertex;w.rect(z.x-1.5,z.y-1.5,3.5,3.5)}for(L.wireframes?w.fillStyle="rgba(255,255,255,0.7)":w.fillStyle="orange",w.fill(),w.beginPath(),I=0;I<y.length;I++)if(T=y[I],!!T.isActive&&(O=T.collision,T.activeContacts.length>0)){var Q=T.activeContacts[0].vertex.x,U=T.activeContacts[0].vertex.y;T.activeContacts.length===2&&(Q=(T.activeContacts[0].vertex.x+T.activeContacts[1].vertex.x)/2,U=(T.activeContacts[0].vertex.y+T.activeContacts[1].vertex.y)/2),O.bodyB===O.supports[0].body||O.bodyA.isStatic===!0?w.moveTo(Q-O.normal.x*8,U-O.normal.y*8):w.moveTo(Q+O.normal.x*8,U+O.normal.y*8),w.lineTo(Q,U)}L.wireframes?w.strokeStyle="rgba(255,165,0,0.7)":w.strokeStyle="orange",w.lineWidth=1,w.stroke()},i.separations=function(g,y,b){var w=b,L=g.options,T,O,I,N,F;for(w.beginPath(),F=0;F<y.length;F++)if(T=y[F],!!T.isActive){O=T.collision,I=O.bodyA,N=O.bodyB;var z=1;!N.isStatic&&!I.isStatic&&(z=.5),N.isStatic&&(z=0),w.moveTo(N.position.x,N.position.y),w.lineTo(N.position.x-O.penetration.x*z,N.position.y-O.penetration.y*z),z=1,!N.isStatic&&!I.isStatic&&(z=.5),I.isStatic&&(z=0),w.moveTo(I.position.x,I.position.y),w.lineTo(I.position.x+O.penetration.x*z,I.position.y+O.penetration.y*z)}L.wireframes?w.strokeStyle="rgba(255,165,0,0.5)":w.strokeStyle="orange",w.stroke()},i.inspector=function(g,y){g.engine;var b=g.selected,w=g.render,L=w.options,T;if(L.hasBounds){var O=w.bounds.max.x-w.bounds.min.x,I=w.bounds.max.y-w.bounds.min.y,N=O/w.options.width,F=I/w.options.height;y.scale(1/N,1/F),y.translate(-w.bounds.min.x,-w.bounds.min.y)}for(var z=0;z<b.length;z++){var Q=b[z].data;switch(y.translate(.5,.5),y.lineWidth=1,y.strokeStyle="rgba(255,165,0,0.9)",y.setLineDash([1,2]),Q.type){case"body":T=Q.bounds,y.beginPath(),y.rect(Math.floor(T.min.x-3),Math.floor(T.min.y-3),Math.floor(T.max.x-T.min.x+6),Math.floor(T.max.y-T.min.y+6)),y.closePath(),y.stroke();break;case"constraint":var U=Q.pointA;Q.bodyA&&(U=Q.pointB),y.beginPath(),y.arc(U.x,U.y,10,0,2*Math.PI),y.closePath(),y.stroke();break}y.setLineDash([]),y.translate(-.5,-.5)}g.selectStart!==null&&(y.translate(.5,.5),y.lineWidth=1,y.strokeStyle="rgba(255,165,0,0.6)",y.fillStyle="rgba(255,165,0,0.1)",T=g.selectBounds,y.beginPath(),y.rect(Math.floor(T.min.x),Math.floor(T.min.y),Math.floor(T.max.x-T.min.x),Math.floor(T.max.y-T.min.y)),y.closePath(),y.stroke(),y.fill(),y.translate(-.5,-.5)),L.hasBounds&&y.setTransform(1,0,0,1,0,0)};var m=function(g,y){var b=g.engine,w=g.timing,L=w.historySize,T=b.timing.timestamp;w.delta=y-w.lastTime||i._goodDelta,w.lastTime=y,w.timestampElapsed=T-w.lastTimestamp||0,w.lastTimestamp=T,w.deltaHistory.unshift(w.delta),w.deltaHistory.length=Math.min(w.deltaHistory.length,L),w.engineDeltaHistory.unshift(b.timing.lastDelta),w.engineDeltaHistory.length=Math.min(w.engineDeltaHistory.length,L),w.timestampElapsedHistory.unshift(w.timestampElapsed),w.timestampElapsedHistory.length=Math.min(w.timestampElapsedHistory.length,L),w.engineElapsedHistory.unshift(b.timing.lastElapsed),w.engineElapsedHistory.length=Math.min(w.engineElapsedHistory.length,L),w.elapsedHistory.unshift(w.lastElapsed),w.elapsedHistory.length=Math.min(w.elapsedHistory.length,L)},p=function(g){for(var y=0,b=0;b<g.length;b+=1)y+=g[b];return y/g.length||0},_=function(g,y){var b=document.createElement("canvas");return b.width=g,b.height=y,b.oncontextmenu=function(){return!1},b.onselectstart=function(){return!1},b},v=function(g){var y=g.getContext("2d"),b=window.devicePixelRatio||1,w=y.webkitBackingStorePixelRatio||y.mozBackingStorePixelRatio||y.msBackingStorePixelRatio||y.oBackingStorePixelRatio||y.backingStorePixelRatio||1;return b/w},S=function(g,y){var b=g.textures[y];return b||(b=g.textures[y]=new Image,b.src=y,b)},C=function(g,y){var b=y;/(jpg|gif|png)$/.test(y)&&(b="url("+y+")"),g.canvas.style.background=b,g.canvas.style.backgroundSize="contain",g.currentBackground=y}})()},function(n,s){var r={};n.exports=r,function(){r.create=function(i){return{vertex:i,normalImpulse:0,tangentImpulse:0}}}()},function(n,s,r){var i={};n.exports=i;var o=r(7),l=r(19),a=r(14),d=r(20),u=r(4),h=r(5),f=r(10),c=r(0),m=r(6);(function(){i.create=function(p){p=p||{};var _={positionIterations:6,velocityIterations:4,constraintIterations:2,enableSleeping:!1,events:[],plugin:{},gravity:{x:0,y:1,scale:.001},timing:{timestamp:0,timeScale:1,lastDelta:0,lastElapsed:0}},v=c.extend(_,p);return v.world=p.world||h.create({label:"World"}),v.pairs=p.pairs||d.create(),v.detector=p.detector||a.create(),v.grid={buckets:[]},v.world.gravity=v.gravity,v.broadphase=v.grid,v.metrics={},v},i.update=function(p,_,v){var S=c.now();_=_||1e3/60,v=v||1;var C=p.world,g=p.detector,y=p.pairs,b=p.timing,w=b.timestamp,L;b.timestamp+=_*b.timeScale,b.lastDelta=_*b.timeScale;var T={timestamp:b.timestamp};u.trigger(p,"beforeUpdate",T);var O=h.allBodies(C),I=h.allConstraints(C);for(C.isModified&&a.setBodies(g,O),C.isModified&&h.setModified(C,!1,!1,!0),p.enableSleeping&&o.update(O,b.timeScale),i._bodiesApplyGravity(O,p.gravity),i._bodiesUpdate(O,_,b.timeScale,v,C.bounds),f.preSolveAll(O),L=0;L<p.constraintIterations;L++)f.solveAll(I,b.timeScale);f.postSolveAll(O),g.pairs=p.pairs;var N=a.collisions(g);for(d.update(y,N,w),p.enableSleeping&&o.afterCollisions(y.list,b.timeScale),y.collisionStart.length>0&&u.trigger(p,"collisionStart",{pairs:y.collisionStart}),l.preSolvePosition(y.list),L=0;L<p.positionIterations;L++)l.solvePosition(y.list,b.timeScale);for(l.postSolvePosition(O),f.preSolveAll(O),L=0;L<p.constraintIterations;L++)f.solveAll(I,b.timeScale);for(f.postSolveAll(O),l.preSolveVelocity(y.list),L=0;L<p.velocityIterations;L++)l.solveVelocity(y.list,b.timeScale);return y.collisionActive.length>0&&u.trigger(p,"collisionActive",{pairs:y.collisionActive}),y.collisionEnd.length>0&&u.trigger(p,"collisionEnd",{pairs:y.collisionEnd}),i._bodiesClearForces(O),u.trigger(p,"afterUpdate",T),p.timing.lastElapsed=c.now()-S,p},i.merge=function(p,_){if(c.extend(p,_),_.world){p.world=_.world,i.clear(p);for(var v=h.allBodies(p.world),S=0;S<v.length;S++){var C=v[S];o.set(C,!1),C.id=c.nextId()}}},i.clear=function(p){d.clear(p.pairs),a.clear(p.detector)},i._bodiesClearForces=function(p){for(var _=0;_<p.length;_++){var v=p[_];v.force.x=0,v.force.y=0,v.torque=0}},i._bodiesApplyGravity=function(p,_){var v=typeof _.scale<"u"?_.scale:.001;if(!(_.x===0&&_.y===0||v===0))for(var S=0;S<p.length;S++){var C=p[S];C.isStatic||C.isSleeping||(C.force.y+=C.mass*_.y*v,C.force.x+=C.mass*_.x*v)}},i._bodiesUpdate=function(p,_,v,S,C){for(var g=0;g<p.length;g++){var y=p[g];y.isStatic||y.isSleeping||m.update(y,_,v,S)}}})()},function(n,s,r){var i={};n.exports=i;var o=r(3),l=r(1);(function(){i._restingThresh=4,i._restingThreshTangent=6,i._positionDampen=.9,i._positionWarming=.8,i._frictionNormalMultiplier=5,i.preSolvePosition=function(a){var d,u,h,f=a.length;for(d=0;d<f;d++)u=a[d],u.isActive&&(h=u.activeContacts.length,u.collision.parentA.totalContacts+=h,u.collision.parentB.totalContacts+=h)},i.solvePosition=function(a,d){var u,h,f,c,m,p,_,v,S=i._positionDampen,C=a.length;for(u=0;u<C;u++)h=a[u],!(!h.isActive||h.isSensor)&&(f=h.collision,c=f.parentA,m=f.parentB,p=f.normal,h.separation=p.x*(m.positionImpulse.x+f.penetration.x-c.positionImpulse.x)+p.y*(m.positionImpulse.y+f.penetration.y-c.positionImpulse.y));for(u=0;u<C;u++)h=a[u],!(!h.isActive||h.isSensor)&&(f=h.collision,c=f.parentA,m=f.parentB,p=f.normal,v=(h.separation-h.slop)*d,(c.isStatic||m.isStatic)&&(v*=2),c.isStatic||c.isSleeping||(_=S/c.totalContacts,c.positionImpulse.x+=p.x*v*_,c.positionImpulse.y+=p.y*v*_),m.isStatic||m.isSleeping||(_=S/m.totalContacts,m.positionImpulse.x-=p.x*v*_,m.positionImpulse.y-=p.y*v*_))},i.postSolvePosition=function(a){for(var d=i._positionWarming,u=a.length,h=o.translate,f=l.update,c=0;c<u;c++){var m=a[c],p=m.positionImpulse,_=p.x,v=p.y,S=m.velocity;if(m.totalContacts=0,_!==0||v!==0){for(var C=0;C<m.parts.length;C++){var g=m.parts[C];h(g.vertices,p),f(g.bounds,g.vertices,S),g.position.x+=_,g.position.y+=v}m.positionPrev.x+=_,m.positionPrev.y+=v,_*S.x+v*S.y<0?(p.x=0,p.y=0):(p.x*=d,p.y*=d)}}},i.preSolveVelocity=function(a){var d=a.length,u,h;for(u=0;u<d;u++){var f=a[u];if(!(!f.isActive||f.isSensor)){var c=f.activeContacts,m=c.length,p=f.collision,_=p.parentA,v=p.parentB,S=p.normal,C=p.tangent;for(h=0;h<m;h++){var g=c[h],y=g.vertex,b=g.normalImpulse,w=g.tangentImpulse;if(b!==0||w!==0){var L=S.x*b+C.x*w,T=S.y*b+C.y*w;_.isStatic||_.isSleeping||(_.positionPrev.x+=L*_.inverseMass,_.positionPrev.y+=T*_.inverseMass,_.anglePrev+=_.inverseInertia*((y.x-_.position.x)*T-(y.y-_.position.y)*L)),v.isStatic||v.isSleeping||(v.positionPrev.x-=L*v.inverseMass,v.positionPrev.y-=T*v.inverseMass,v.anglePrev-=v.inverseInertia*((y.x-v.position.x)*T-(y.y-v.position.y)*L))}}}}},i.solveVelocity=function(a,d){var u=d*d,h=i._restingThresh*u,f=i._frictionNormalMultiplier,c=i._restingThreshTangent*u,m=Number.MAX_VALUE,p=a.length,_,v,S,C;for(S=0;S<p;S++){var g=a[S];if(!(!g.isActive||g.isSensor)){var y=g.collision,b=y.parentA,w=y.parentB,L=b.velocity,T=w.velocity,O=y.normal.x,I=y.normal.y,N=y.tangent.x,F=y.tangent.y,z=g.activeContacts,Q=z.length,U=1/Q,q=b.inverseMass+w.inverseMass,te=g.friction*g.frictionStatic*f*u;for(L.x=b.position.x-b.positionPrev.x,L.y=b.position.y-b.positionPrev.y,T.x=w.position.x-w.positionPrev.x,T.y=w.position.y-w.positionPrev.y,b.angularVelocity=b.angle-b.anglePrev,w.angularVelocity=w.angle-w.anglePrev,C=0;C<Q;C++){var re=z[C],me=re.vertex,de=me.x-b.position.x,ue=me.y-b.position.y,ve=me.x-w.position.x,ke=me.y-w.position.y,B=L.x-ue*b.angularVelocity,Y=L.y+de*b.angularVelocity,K=T.x-ke*w.angularVelocity,ee=T.y+ve*w.angularVelocity,le=B-K,ye=Y-ee,oe=O*le+I*ye,k=N*le+F*ye,x=g.separation+oe,E=Math.min(x,1);E=x<0?0:E;var A=E*te;k>A||-k>A?(v=k>0?k:-k,_=g.friction*(k>0?1:-1)*u,_<-v?_=-v:_>v&&(_=v)):(_=k,v=m);var M=de*I-ue*O,H=ve*I-ke*O,W=U/(q+b.inverseInertia*M*M+w.inverseInertia*H*H),V=(1+g.restitution)*oe*W;if(_*=W,oe*oe>h&&oe<0)re.normalImpulse=0;else{var G=re.normalImpulse;re.normalImpulse+=V,re.normalImpulse=Math.min(re.normalImpulse,0),V=re.normalImpulse-G}if(k*k>c)re.tangentImpulse=0;else{var j=re.tangentImpulse;re.tangentImpulse+=_,re.tangentImpulse<-v&&(re.tangentImpulse=-v),re.tangentImpulse>v&&(re.tangentImpulse=v),_=re.tangentImpulse-j}var R=O*V+N*_,D=I*V+F*_;b.isStatic||b.isSleeping||(b.positionPrev.x+=R*b.inverseMass,b.positionPrev.y+=D*b.inverseMass,b.anglePrev+=(de*D-ue*R)*b.inverseInertia),w.isStatic||w.isSleeping||(w.positionPrev.x-=R*w.inverseMass,w.positionPrev.y-=D*w.inverseMass,w.anglePrev-=(ve*D-ke*R)*w.inverseInertia)}}}}})()},function(n,s,r){var i={};n.exports=i;var o=r(9),l=r(0);(function(){i.create=function(a){return l.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},a)},i.update=function(a,d,u){var h=a.list,f=h.length,c=a.table,m=d.length,p=a.collisionStart,_=a.collisionEnd,v=a.collisionActive,S,C,g,y;for(p.length=0,_.length=0,v.length=0,y=0;y<f;y++)h[y].confirmedActive=!1;for(y=0;y<m;y++)S=d[y],g=S.pair,g?(g.isActive?v.push(g):p.push(g),o.update(g,S,u),g.confirmedActive=!0):(g=o.create(S,u),c[g.id]=g,p.push(g),h.push(g));var b=[];for(f=h.length,y=0;y<f;y++)g=h[y],g.confirmedActive||(o.setActive(g,!1,u),_.push(g),!g.collision.bodyA.isSleeping&&!g.collision.bodyB.isSleeping&&b.push(y));for(y=0;y<b.length;y++)C=b[y]-y,g=h[C],h.splice(C,1),delete c[g.id]},i.clear=function(a){return a.table={},a.list.length=0,a.collisionStart.length=0,a.collisionActive.length=0,a.collisionEnd.length=0,a}})()},function(n,s,r){var i=n.exports=r(22);i.Axes=r(11),i.Bodies=r(12),i.Body=r(6),i.Bounds=r(1),i.Collision=r(8),i.Common=r(0),i.Composite=r(5),i.Composites=r(23),i.Constraint=r(10),i.Contact=r(17),i.Detector=r(14),i.Engine=r(18),i.Events=r(4),i.Grid=r(24),i.Mouse=r(13),i.MouseConstraint=r(25),i.Pair=r(9),i.Pairs=r(20),i.Plugin=r(15),i.Query=r(26),i.Render=r(16),i.Resolver=r(19),i.Runner=r(27),i.SAT=r(28),i.Sleeping=r(7),i.Svg=r(29),i.Vector=r(2),i.Vertices=r(3),i.World=r(30),i.Engine.run=i.Runner.run,i.Common.deprecated(i.Engine,"run","Engine.run ➤ use Matter.Runner.run(engine) instead")},function(n,s,r){var i={};n.exports=i;var o=r(15),l=r(0);(function(){i.name="matter-js",i.version="0.18.0",i.uses=[],i.used=[],i.use=function(){o.use(i,Array.prototype.slice.call(arguments))},i.before=function(a,d){return a=a.replace(/^Matter./,""),l.chainPathBefore(i,a,d)},i.after=function(a,d){return a=a.replace(/^Matter./,""),l.chainPathAfter(i,a,d)}})()},function(n,s,r){var i={};n.exports=i;var o=r(5),l=r(10),a=r(0),d=r(6),u=r(12),h=a.deprecated;(function(){i.stack=function(f,c,m,p,_,v,S){for(var C=o.create({label:"Stack"}),g=f,y=c,b,w=0,L=0;L<p;L++){for(var T=0,O=0;O<m;O++){var I=S(g,y,O,L,b,w);if(I){var N=I.bounds.max.y-I.bounds.min.y,F=I.bounds.max.x-I.bounds.min.x;N>T&&(T=N),d.translate(I,{x:F*.5,y:N*.5}),g=I.bounds.max.x+_,o.addBody(C,I),b=I,w+=1}else g+=_}y+=T+v,g=f}return C},i.chain=function(f,c,m,p,_,v){for(var S=f.bodies,C=1;C<S.length;C++){var g=S[C-1],y=S[C],b=g.bounds.max.y-g.bounds.min.y,w=g.bounds.max.x-g.bounds.min.x,L=y.bounds.max.y-y.bounds.min.y,T=y.bounds.max.x-y.bounds.min.x,O={bodyA:g,pointA:{x:w*c,y:b*m},bodyB:y,pointB:{x:T*p,y:L*_}},I=a.extend(O,v);o.addConstraint(f,l.create(I))}return f.label+=" Chain",f},i.mesh=function(f,c,m,p,_){var v=f.bodies,S,C,g,y,b;for(S=0;S<m;S++){for(C=1;C<c;C++)g=v[C-1+S*c],y=v[C+S*c],o.addConstraint(f,l.create(a.extend({bodyA:g,bodyB:y},_)));if(S>0)for(C=0;C<c;C++)g=v[C+(S-1)*c],y=v[C+S*c],o.addConstraint(f,l.create(a.extend({bodyA:g,bodyB:y},_))),p&&C>0&&(b=v[C-1+(S-1)*c],o.addConstraint(f,l.create(a.extend({bodyA:b,bodyB:y},_)))),p&&C<c-1&&(b=v[C+1+(S-1)*c],o.addConstraint(f,l.create(a.extend({bodyA:b,bodyB:y},_))))}return f.label+=" Mesh",f},i.pyramid=function(f,c,m,p,_,v,S){return i.stack(f,c,m,p,_,v,function(C,g,y,b,w,L){var T=Math.min(p,Math.ceil(m/2)),O=w?w.bounds.max.x-w.bounds.min.x:0;if(!(b>T)){b=T-b;var I=b,N=m-1-b;if(!(y<I||y>N)){L===1&&d.translate(w,{x:(y+(m%2===1?1:-1))*O,y:0});var F=w?y*O:0;return S(f+F+y*_,g,y,b,w,L)}}})},i.newtonsCradle=function(f,c,m,p,_){for(var v=o.create({label:"Newtons Cradle"}),S=0;S<m;S++){var C=1.9,g=u.circle(f+S*(p*C),c+_,p,{inertia:1/0,restitution:1,friction:0,frictionAir:1e-4,slop:1}),y=l.create({pointA:{x:f+S*(p*C),y:c},bodyB:g});o.addBody(v,g),o.addConstraint(v,y)}return v},h(i,"newtonsCradle","Composites.newtonsCradle ➤ moved to newtonsCradle example"),i.car=function(f,c,m,p,_){var v=d.nextGroup(!0),S=20,C=-m*.5+S,g=m*.5-S,y=0,b=o.create({label:"Car"}),w=u.rectangle(f,c,m,p,{collisionFilter:{group:v},chamfer:{radius:p*.5},density:2e-4}),L=u.circle(f+C,c+y,_,{collisionFilter:{group:v},friction:.8}),T=u.circle(f+g,c+y,_,{collisionFilter:{group:v},friction:.8}),O=l.create({bodyB:w,pointB:{x:C,y},bodyA:L,stiffness:1,length:0}),I=l.create({bodyB:w,pointB:{x:g,y},bodyA:T,stiffness:1,length:0});return o.addBody(b,w),o.addBody(b,L),o.addBody(b,T),o.addConstraint(b,O),o.addConstraint(b,I),b},h(i,"car","Composites.car ➤ moved to car example"),i.softBody=function(f,c,m,p,_,v,S,C,g,y){g=a.extend({inertia:1/0},g),y=a.extend({stiffness:.2,render:{type:"line",anchors:!1}},y);var b=i.stack(f,c,m,p,_,v,function(w,L){return u.circle(w,L,C,g)});return i.mesh(b,m,p,S,y),b.label="Soft Body",b},h(i,"softBody","Composites.softBody ➤ moved to softBody and cloth examples")})()},function(n,s,r){var i={};n.exports=i;var o=r(9),l=r(0),a=l.deprecated;(function(){i.create=function(d){var u={buckets:{},pairs:{},pairsList:[],bucketWidth:48,bucketHeight:48};return l.extend(u,d)},i.update=function(d,u,h,f){var c,m,p,_=h.world,v=d.buckets,S,C,g=!1;for(c=0;c<u.length;c++){var y=u[c];if(!(y.isSleeping&&!f)&&!(_.bounds&&(y.bounds.max.x<_.bounds.min.x||y.bounds.min.x>_.bounds.max.x||y.bounds.max.y<_.bounds.min.y||y.bounds.min.y>_.bounds.max.y))){var b=i._getRegion(d,y);if(!y.region||b.id!==y.region.id||f){(!y.region||f)&&(y.region=b);var w=i._regionUnion(b,y.region);for(m=w.startCol;m<=w.endCol;m++)for(p=w.startRow;p<=w.endRow;p++){C=i._getBucketId(m,p),S=v[C];var L=m>=b.startCol&&m<=b.endCol&&p>=b.startRow&&p<=b.endRow,T=m>=y.region.startCol&&m<=y.region.endCol&&p>=y.region.startRow&&p<=y.region.endRow;!L&&T&&T&&S&&i._bucketRemoveBody(d,S,y),(y.region===b||L&&!T||f)&&(S||(S=i._createBucket(v,C)),i._bucketAddBody(d,S,y))}y.region=b,g=!0}}}g&&(d.pairsList=i._createActivePairsList(d))},a(i,"update","Grid.update ➤ replaced by Matter.Detector"),i.clear=function(d){d.buckets={},d.pairs={},d.pairsList=[]},a(i,"clear","Grid.clear ➤ replaced by Matter.Detector"),i._regionUnion=function(d,u){var h=Math.min(d.startCol,u.startCol),f=Math.max(d.endCol,u.endCol),c=Math.min(d.startRow,u.startRow),m=Math.max(d.endRow,u.endRow);return i._createRegion(h,f,c,m)},i._getRegion=function(d,u){var h=u.bounds,f=Math.floor(h.min.x/d.bucketWidth),c=Math.floor(h.max.x/d.bucketWidth),m=Math.floor(h.min.y/d.bucketHeight),p=Math.floor(h.max.y/d.bucketHeight);return i._createRegion(f,c,m,p)},i._createRegion=function(d,u,h,f){return{id:d+","+u+","+h+","+f,startCol:d,endCol:u,startRow:h,endRow:f}},i._getBucketId=function(d,u){return"C"+d+"R"+u},i._createBucket=function(d,u){var h=d[u]=[];return h},i._bucketAddBody=function(d,u,h){var f=d.pairs,c=o.id,m=u.length,p;for(p=0;p<m;p++){var _=u[p];if(!(h.id===_.id||h.isStatic&&_.isStatic)){var v=c(h,_),S=f[v];S?S[2]+=1:f[v]=[h,_,1]}}u.push(h)},i._bucketRemoveBody=function(d,u,h){var f=d.pairs,c=o.id,m;u.splice(l.indexOf(u,h),1);var p=u.length;for(m=0;m<p;m++){var _=f[c(h,u[m])];_&&(_[2]-=1)}},i._createActivePairsList=function(d){var u,h=d.pairs,f=l.keys(h),c=f.length,m=[],p;for(p=0;p<c;p++)u=h[f[p]],u[2]>0?m.push(u):delete h[f[p]];return m}})()},function(n,s,r){var i={};n.exports=i;var o=r(3),l=r(7),a=r(13),d=r(4),u=r(14),h=r(10),f=r(5),c=r(0),m=r(1);(function(){i.create=function(p,_){var v=(p?p.mouse:null)||(_?_.mouse:null);v||(p&&p.render&&p.render.canvas?v=a.create(p.render.canvas):_&&_.element?v=a.create(_.element):(v=a.create(),c.warn("MouseConstraint.create: options.mouse was undefined, options.element was undefined, may not function as expected")));var S=h.create({label:"Mouse Constraint",pointA:v.position,pointB:{x:0,y:0},length:.01,stiffness:.1,angularStiffness:1,render:{strokeStyle:"#90EE90",lineWidth:3}}),C={type:"mouseConstraint",mouse:v,element:null,body:null,constraint:S,collisionFilter:{category:1,mask:4294967295,group:0}},g=c.extend(C,_);return d.on(p,"beforeUpdate",function(){var y=f.allBodies(p.world);i.update(g,y),i._triggerEvents(g)}),g},i.update=function(p,_){var v=p.mouse,S=p.constraint,C=p.body;if(v.button===0){if(S.bodyB)l.set(S.bodyB,!1),S.pointA=v.position;else for(var g=0;g<_.length;g++)if(C=_[g],m.contains(C.bounds,v.position)&&u.canCollide(C.collisionFilter,p.collisionFilter))for(var y=C.parts.length>1?1:0;y<C.parts.length;y++){var b=C.parts[y];if(o.contains(b.vertices,v.position)){S.pointA=v.position,S.bodyB=p.body=C,S.pointB={x:v.position.x-C.position.x,y:v.position.y-C.position.y},S.angleB=C.angle,l.set(C,!1),d.trigger(p,"startdrag",{mouse:v,body:C});break}}}else S.bodyB=p.body=null,S.pointB=null,C&&d.trigger(p,"enddrag",{mouse:v,body:C})},i._triggerEvents=function(p){var _=p.mouse,v=_.sourceEvents;v.mousemove&&d.trigger(p,"mousemove",{mouse:_}),v.mousedown&&d.trigger(p,"mousedown",{mouse:_}),v.mouseup&&d.trigger(p,"mouseup",{mouse:_}),a.clearSourceEvents(_)}})()},function(n,s,r){var i={};n.exports=i;var o=r(2),l=r(8),a=r(1),d=r(12),u=r(3);(function(){i.collides=function(h,f){for(var c=[],m=f.length,p=h.bounds,_=l.collides,v=a.overlaps,S=0;S<m;S++){var C=f[S],g=C.parts.length,y=g===1?0:1;if(v(C.bounds,p))for(var b=y;b<g;b++){var w=C.parts[b];if(v(w.bounds,p)){var L=_(w,h);if(L){c.push(L);break}}}}return c},i.ray=function(h,f,c,m){m=m||1e-100;for(var p=o.angle(f,c),_=o.magnitude(o.sub(f,c)),v=(c.x+f.x)*.5,S=(c.y+f.y)*.5,C=d.rectangle(v,S,_,m,{angle:p}),g=i.collides(C,h),y=0;y<g.length;y+=1){var b=g[y];b.body=b.bodyB=b.bodyA}return g},i.region=function(h,f,c){for(var m=[],p=0;p<h.length;p++){var _=h[p],v=a.overlaps(_.bounds,f);(v&&!c||!v&&c)&&m.push(_)}return m},i.point=function(h,f){for(var c=[],m=0;m<h.length;m++){var p=h[m];if(a.contains(p.bounds,f))for(var _=p.parts.length===1?0:1;_<p.parts.length;_++){var v=p.parts[_];if(a.contains(v.bounds,f)&&u.contains(v.vertices,f)){c.push(p);break}}}return c}})()},function(n,s,r){var i={};n.exports=i;var o=r(4),l=r(18),a=r(0);(function(){var d,u;if(typeof window<"u"&&(d=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame,u=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame),!d){var h;d=function(f){h=setTimeout(function(){f(a.now())},1e3/60)},u=function(){clearTimeout(h)}}i.create=function(f){var c={fps:60,correction:1,deltaSampleSize:60,counterTimestamp:0,frameCounter:0,deltaHistory:[],timePrev:null,timeScalePrev:1,frameRequestId:null,isFixed:!1,enabled:!0},m=a.extend(c,f);return m.delta=m.delta||1e3/m.fps,m.deltaMin=m.deltaMin||1e3/m.fps,m.deltaMax=m.deltaMax||1e3/(m.fps*.5),m.fps=1e3/m.delta,m},i.run=function(f,c){return typeof f.positionIterations<"u"&&(c=f,f=i.create()),function m(p){f.frameRequestId=d(m),p&&f.enabled&&i.tick(f,c,p)}(),f},i.tick=function(f,c,m){var p=c.timing,_=1,v,S={timestamp:p.timestamp};o.trigger(f,"beforeTick",S),f.isFixed?v=f.delta:(v=m-f.timePrev||f.delta,f.timePrev=m,f.deltaHistory.push(v),f.deltaHistory=f.deltaHistory.slice(-f.deltaSampleSize),v=Math.min.apply(null,f.deltaHistory),v=v<f.deltaMin?f.deltaMin:v,v=v>f.deltaMax?f.deltaMax:v,_=v/f.delta,f.delta=v),f.timeScalePrev!==0&&(_*=p.timeScale/f.timeScalePrev),p.timeScale===0&&(_=0),f.timeScalePrev=p.timeScale,f.correction=_,f.frameCounter+=1,m-f.counterTimestamp>=1e3&&(f.fps=f.frameCounter*((m-f.counterTimestamp)/1e3),f.counterTimestamp=m,f.frameCounter=0),o.trigger(f,"tick",S),o.trigger(f,"beforeUpdate",S),l.update(c,v,_),o.trigger(f,"afterUpdate",S),o.trigger(f,"afterTick",S)},i.stop=function(f){u(f.frameRequestId)},i.start=function(f,c){i.run(f,c)}})()},function(n,s,r){var i={};n.exports=i;var o=r(8),l=r(0),a=l.deprecated;(function(){i.collides=function(d,u){return o.collides(d,u)},a(i,"collides","SAT.collides ➤ replaced by Collision.collides")})()},function(n,s,r){var i={};n.exports=i,r(1);var o=r(0);(function(){i.pathToVertices=function(l,a){typeof window<"u"&&!("SVGPathSeg"in window)&&o.warn("Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.");var d,u,h,f,c,m,p,_,v,S,C=[],g,y,b=0,w=0,L=0;a=a||15;var T=function(I,N,F){var z=F%2===1&&F>1;if(!v||I!=v.x||N!=v.y){v&&z?(g=v.x,y=v.y):(g=0,y=0);var Q={x:g+I,y:y+N};(z||!v)&&(v=Q),C.push(Q),w=g+I,L=y+N}},O=function(I){var N=I.pathSegTypeAsLetter.toUpperCase();if(N!=="Z"){switch(N){case"M":case"L":case"T":case"C":case"S":case"Q":w=I.x,L=I.y;break;case"H":w=I.x;break;case"V":L=I.y;break}T(w,L,I.pathSegType)}};for(i._svgPathToAbsolute(l),h=l.getTotalLength(),m=[],d=0;d<l.pathSegList.numberOfItems;d+=1)m.push(l.pathSegList.getItem(d));for(p=m.concat();b<h;){if(S=l.getPathSegAtLength(b),c=m[S],c!=_){for(;p.length&&p[0]!=c;)O(p.shift());_=c}switch(c.pathSegTypeAsLetter.toUpperCase()){case"C":case"T":case"S":case"Q":case"A":f=l.getPointAtLength(b),T(f.x,f.y,0);break}b+=a}for(d=0,u=p.length;d<u;++d)O(p[d]);return C},i._svgPathToAbsolute=function(l){for(var a,d,u,h,f,c,m=l.pathSegList,p=0,_=0,v=m.numberOfItems,S=0;S<v;++S){var C=m.getItem(S),g=C.pathSegTypeAsLetter;if(/[MLHVCSQTA]/.test(g))"x"in C&&(p=C.x),"y"in C&&(_=C.y);else switch("x1"in C&&(u=p+C.x1),"x2"in C&&(f=p+C.x2),"y1"in C&&(h=_+C.y1),"y2"in C&&(c=_+C.y2),"x"in C&&(p+=C.x),"y"in C&&(_+=C.y),g){case"m":m.replaceItem(l.createSVGPathSegMovetoAbs(p,_),S);break;case"l":m.replaceItem(l.createSVGPathSegLinetoAbs(p,_),S);break;case"h":m.replaceItem(l.createSVGPathSegLinetoHorizontalAbs(p),S);break;case"v":m.replaceItem(l.createSVGPathSegLinetoVerticalAbs(_),S);break;case"c":m.replaceItem(l.createSVGPathSegCurvetoCubicAbs(p,_,u,h,f,c),S);break;case"s":m.replaceItem(l.createSVGPathSegCurvetoCubicSmoothAbs(p,_,f,c),S);break;case"q":m.replaceItem(l.createSVGPathSegCurvetoQuadraticAbs(p,_,u,h),S);break;case"t":m.replaceItem(l.createSVGPathSegCurvetoQuadraticSmoothAbs(p,_),S);break;case"a":m.replaceItem(l.createSVGPathSegArcAbs(p,_,C.r1,C.r2,C.angle,C.largeArcFlag,C.sweepFlag),S);break;case"z":case"Z":p=a,_=d;break}(g=="M"||g=="m")&&(a=p,d=_)}}})()},function(n,s,r){var i={};n.exports=i;var o=r(5);r(0),function(){i.create=o.create,i.add=o.add,i.remove=o.remove,i.clear=o.clear,i.addComposite=o.addComposite,i.addBody=o.addBody,i.addConstraint=o.addConstraint}()}])})})(hh);const Xl="/assets/cookie-fc45e6c1.png";function ph(e){return e[Math.floor(Math.random()*e.length)]}function ql(e,t){return Math.random()*(t-e)+e}function mh(e,t){return Math.floor(ql(e,t))}function Ko(){return localStorage.getItem("cookie")==null}function gh(){localStorage.setItem("cookie","accept")}function vh(){localStorage.setItem("cookie","refuse")}/*!
|
||
* shared v9.2.2
|
||
* (c) 2022 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const Zr=typeof window<"u",_h=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Jt=e=>_h?Symbol(e):e,yh=(e,t,n)=>xh({l:e,k:t,s:n}),xh=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),We=e=>typeof e=="number"&&isFinite(e),bh=e=>$s(e)==="[object Date]",Qt=e=>$s(e)==="[object RegExp]",wr=e=>fe(e)&&Object.keys(e).length===0;function wh(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Ge=Object.assign;let Yo;const ei=()=>Yo||(Yo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xo(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Eh=Object.prototype.hasOwnProperty;function Ns(e,t){return Eh.call(e,t)}const Pe=Array.isArray,He=e=>typeof e=="function",Z=e=>typeof e=="string",be=e=>typeof e=="boolean",Le=e=>e!==null&&typeof e=="object",Ql=Object.prototype.toString,$s=e=>Ql.call(e),fe=e=>$s(e)==="[object Object]",Sh=e=>e==null?"":Pe(e)||fe(e)&&e.toString===Ql?JSON.stringify(e,null,2):String(e);/*!
|
||
* message-compiler v9.2.2
|
||
* (c) 2022 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const Ce={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function Er(e,t,n={}){const{domain:s,messages:r,args:i}=n,o=e,l=new SyntaxError(String(o));return l.code=e,t&&(l.location=t),l.domain=s,l}function Ch(e){throw e}function kh(e,t,n){return{line:e,column:t,offset:n}}function es(e,t,n){const s={start:e,end:t};return n!=null&&(s.source=n),s}const Mt=" ",Ah="\r",Je=`
|
||
`,Th=String.fromCharCode(8232),Ph=String.fromCharCode(8233);function Lh(e){const t=e;let n=0,s=1,r=1,i=0;const o=w=>t[w]===Ah&&t[w+1]===Je,l=w=>t[w]===Je,a=w=>t[w]===Ph,d=w=>t[w]===Th,u=w=>o(w)||l(w)||a(w)||d(w),h=()=>n,f=()=>s,c=()=>r,m=()=>i,p=w=>o(w)||a(w)||d(w)?Je:t[w],_=()=>p(n),v=()=>p(n+i);function S(){return i=0,u(n)&&(s++,r=0),o(n)&&n++,n++,r++,t[n]}function C(){return o(n+i)&&i++,i++,t[n+i]}function g(){n=0,s=1,r=1,i=0}function y(w=0){i=w}function b(){const w=n+i;for(;w!==n;)S();i=0}return{index:h,line:f,column:c,peekOffset:m,charAt:p,currentChar:_,currentPeek:v,next:S,peek:C,reset:g,resetPeek:y,skipToPeek:b}}const Ht=void 0,qo="'",Ih="tokenizer";function Oh(e,t={}){const n=t.location!==!1,s=Lh(e),r=()=>s.index(),i=()=>kh(s.line(),s.column(),s.index()),o=i(),l=r(),a={currentType:14,offset:l,startLoc:o,endLoc:o,lastType:14,lastOffset:l,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},d=()=>a,{onError:u}=t;function h(x,E,A,...M){const H=d();if(E.column+=A,E.offset+=A,u){const W=es(H.startLoc,E),V=Er(x,W,{domain:Ih,args:M});u(V)}}function f(x,E,A){x.endLoc=i(),x.currentType=E;const M={type:E};return n&&(M.loc=es(x.startLoc,x.endLoc)),A!=null&&(M.value=A),M}const c=x=>f(x,14);function m(x,E){return x.currentChar()===E?(x.next(),E):(h(Ce.EXPECTED_TOKEN,i(),0,E),"")}function p(x){let E="";for(;x.currentPeek()===Mt||x.currentPeek()===Je;)E+=x.currentPeek(),x.peek();return E}function _(x){const E=p(x);return x.skipToPeek(),E}function v(x){if(x===Ht)return!1;const E=x.charCodeAt(0);return E>=97&&E<=122||E>=65&&E<=90||E===95}function S(x){if(x===Ht)return!1;const E=x.charCodeAt(0);return E>=48&&E<=57}function C(x,E){const{currentType:A}=E;if(A!==2)return!1;p(x);const M=v(x.currentPeek());return x.resetPeek(),M}function g(x,E){const{currentType:A}=E;if(A!==2)return!1;p(x);const M=x.currentPeek()==="-"?x.peek():x.currentPeek(),H=S(M);return x.resetPeek(),H}function y(x,E){const{currentType:A}=E;if(A!==2)return!1;p(x);const M=x.currentPeek()===qo;return x.resetPeek(),M}function b(x,E){const{currentType:A}=E;if(A!==8)return!1;p(x);const M=x.currentPeek()===".";return x.resetPeek(),M}function w(x,E){const{currentType:A}=E;if(A!==9)return!1;p(x);const M=v(x.currentPeek());return x.resetPeek(),M}function L(x,E){const{currentType:A}=E;if(!(A===8||A===12))return!1;p(x);const M=x.currentPeek()===":";return x.resetPeek(),M}function T(x,E){const{currentType:A}=E;if(A!==10)return!1;const M=()=>{const W=x.currentPeek();return W==="{"?v(x.peek()):W==="@"||W==="%"||W==="|"||W===":"||W==="."||W===Mt||!W?!1:W===Je?(x.peek(),M()):v(W)},H=M();return x.resetPeek(),H}function O(x){p(x);const E=x.currentPeek()==="|";return x.resetPeek(),E}function I(x){const E=p(x),A=x.currentPeek()==="%"&&x.peek()==="{";return x.resetPeek(),{isModulo:A,hasSpace:E.length>0}}function N(x,E=!0){const A=(H=!1,W="",V=!1)=>{const G=x.currentPeek();return G==="{"?W==="%"?!1:H:G==="@"||!G?W==="%"?!0:H:G==="%"?(x.peek(),A(H,"%",!0)):G==="|"?W==="%"||V?!0:!(W===Mt||W===Je):G===Mt?(x.peek(),A(!0,Mt,V)):G===Je?(x.peek(),A(!0,Je,V)):!0},M=A();return E&&x.resetPeek(),M}function F(x,E){const A=x.currentChar();return A===Ht?Ht:E(A)?(x.next(),A):null}function z(x){return F(x,A=>{const M=A.charCodeAt(0);return M>=97&&M<=122||M>=65&&M<=90||M>=48&&M<=57||M===95||M===36})}function Q(x){return F(x,A=>{const M=A.charCodeAt(0);return M>=48&&M<=57})}function U(x){return F(x,A=>{const M=A.charCodeAt(0);return M>=48&&M<=57||M>=65&&M<=70||M>=97&&M<=102})}function q(x){let E="",A="";for(;E=Q(x);)A+=E;return A}function te(x){_(x);const E=x.currentChar();return E!=="%"&&h(Ce.EXPECTED_TOKEN,i(),0,E),x.next(),"%"}function re(x){let E="";for(;;){const A=x.currentChar();if(A==="{"||A==="}"||A==="@"||A==="|"||!A)break;if(A==="%")if(N(x))E+=A,x.next();else break;else if(A===Mt||A===Je)if(N(x))E+=A,x.next();else{if(O(x))break;E+=A,x.next()}else E+=A,x.next()}return E}function me(x){_(x);let E="",A="";for(;E=z(x);)A+=E;return x.currentChar()===Ht&&h(Ce.UNTERMINATED_CLOSING_BRACE,i(),0),A}function de(x){_(x);let E="";return x.currentChar()==="-"?(x.next(),E+=`-${q(x)}`):E+=q(x),x.currentChar()===Ht&&h(Ce.UNTERMINATED_CLOSING_BRACE,i(),0),E}function ue(x){_(x),m(x,"'");let E="",A="";const M=W=>W!==qo&&W!==Je;for(;E=F(x,M);)E==="\\"?A+=ve(x):A+=E;const H=x.currentChar();return H===Je||H===Ht?(h(Ce.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),H===Je&&(x.next(),m(x,"'")),A):(m(x,"'"),A)}function ve(x){const E=x.currentChar();switch(E){case"\\":case"'":return x.next(),`\\${E}`;case"u":return ke(x,E,4);case"U":return ke(x,E,6);default:return h(Ce.UNKNOWN_ESCAPE_SEQUENCE,i(),0,E),""}}function ke(x,E,A){m(x,E);let M="";for(let H=0;H<A;H++){const W=U(x);if(!W){h(Ce.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${E}${M}${x.currentChar()}`);break}M+=W}return`\\${E}${M}`}function B(x){_(x);let E="",A="";const M=H=>H!=="{"&&H!=="}"&&H!==Mt&&H!==Je;for(;E=F(x,M);)A+=E;return A}function Y(x){let E="",A="";for(;E=z(x);)A+=E;return A}function K(x){const E=(A=!1,M)=>{const H=x.currentChar();return H==="{"||H==="%"||H==="@"||H==="|"||!H||H===Mt?M:H===Je?(M+=H,x.next(),E(A,M)):(M+=H,x.next(),E(!0,M))};return E(!1,"")}function ee(x){_(x);const E=m(x,"|");return _(x),E}function le(x,E){let A=null;switch(x.currentChar()){case"{":return E.braceNest>=1&&h(Ce.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),x.next(),A=f(E,2,"{"),_(x),E.braceNest++,A;case"}":return E.braceNest>0&&E.currentType===2&&h(Ce.EMPTY_PLACEHOLDER,i(),0),x.next(),A=f(E,3,"}"),E.braceNest--,E.braceNest>0&&_(x),E.inLinked&&E.braceNest===0&&(E.inLinked=!1),A;case"@":return E.braceNest>0&&h(Ce.UNTERMINATED_CLOSING_BRACE,i(),0),A=ye(x,E)||c(E),E.braceNest=0,A;default:let H=!0,W=!0,V=!0;if(O(x))return E.braceNest>0&&h(Ce.UNTERMINATED_CLOSING_BRACE,i(),0),A=f(E,1,ee(x)),E.braceNest=0,E.inLinked=!1,A;if(E.braceNest>0&&(E.currentType===5||E.currentType===6||E.currentType===7))return h(Ce.UNTERMINATED_CLOSING_BRACE,i(),0),E.braceNest=0,oe(x,E);if(H=C(x,E))return A=f(E,5,me(x)),_(x),A;if(W=g(x,E))return A=f(E,6,de(x)),_(x),A;if(V=y(x,E))return A=f(E,7,ue(x)),_(x),A;if(!H&&!W&&!V)return A=f(E,13,B(x)),h(Ce.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,A.value),_(x),A;break}return A}function ye(x,E){const{currentType:A}=E;let M=null;const H=x.currentChar();switch((A===8||A===9||A===12||A===10)&&(H===Je||H===Mt)&&h(Ce.INVALID_LINKED_FORMAT,i(),0),H){case"@":return x.next(),M=f(E,8,"@"),E.inLinked=!0,M;case".":return _(x),x.next(),f(E,9,".");case":":return _(x),x.next(),f(E,10,":");default:return O(x)?(M=f(E,1,ee(x)),E.braceNest=0,E.inLinked=!1,M):b(x,E)||L(x,E)?(_(x),ye(x,E)):w(x,E)?(_(x),f(E,12,Y(x))):T(x,E)?(_(x),H==="{"?le(x,E)||M:f(E,11,K(x))):(A===8&&h(Ce.INVALID_LINKED_FORMAT,i(),0),E.braceNest=0,E.inLinked=!1,oe(x,E))}}function oe(x,E){let A={type:14};if(E.braceNest>0)return le(x,E)||c(E);if(E.inLinked)return ye(x,E)||c(E);switch(x.currentChar()){case"{":return le(x,E)||c(E);case"}":return h(Ce.UNBALANCED_CLOSING_BRACE,i(),0),x.next(),f(E,3,"}");case"@":return ye(x,E)||c(E);default:if(O(x))return A=f(E,1,ee(x)),E.braceNest=0,E.inLinked=!1,A;const{isModulo:H,hasSpace:W}=I(x);if(H)return W?f(E,0,re(x)):f(E,4,te(x));if(N(x))return f(E,0,re(x));break}return A}function k(){const{currentType:x,offset:E,startLoc:A,endLoc:M}=a;return a.lastType=x,a.lastOffset=E,a.lastStartLoc=A,a.lastEndLoc=M,a.offset=r(),a.startLoc=i(),s.currentChar()===Ht?f(a,14):oe(s,a)}return{nextToken:k,currentOffset:r,currentPosition:i,context:d}}const Mh="parser",Rh=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Nh(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"<22>"}}}function $h(e={}){const t=e.location!==!1,{onError:n}=e;function s(v,S,C,g,...y){const b=v.currentPosition();if(b.offset+=g,b.column+=g,n){const w=es(C,b),L=Er(S,w,{domain:Mh,args:y});n(L)}}function r(v,S,C){const g={type:v,start:S,end:S};return t&&(g.loc={start:C,end:C}),g}function i(v,S,C,g){v.end=S,g&&(v.type=g),t&&v.loc&&(v.loc.end=C)}function o(v,S){const C=v.context(),g=r(3,C.offset,C.startLoc);return g.value=S,i(g,v.currentOffset(),v.currentPosition()),g}function l(v,S){const C=v.context(),{lastOffset:g,lastStartLoc:y}=C,b=r(5,g,y);return b.index=parseInt(S,10),v.nextToken(),i(b,v.currentOffset(),v.currentPosition()),b}function a(v,S){const C=v.context(),{lastOffset:g,lastStartLoc:y}=C,b=r(4,g,y);return b.key=S,v.nextToken(),i(b,v.currentOffset(),v.currentPosition()),b}function d(v,S){const C=v.context(),{lastOffset:g,lastStartLoc:y}=C,b=r(9,g,y);return b.value=S.replace(Rh,Nh),v.nextToken(),i(b,v.currentOffset(),v.currentPosition()),b}function u(v){const S=v.nextToken(),C=v.context(),{lastOffset:g,lastStartLoc:y}=C,b=r(8,g,y);return S.type!==12?(s(v,Ce.UNEXPECTED_EMPTY_LINKED_MODIFIER,C.lastStartLoc,0),b.value="",i(b,g,y),{nextConsumeToken:S,node:b}):(S.value==null&&s(v,Ce.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,wt(S)),b.value=S.value||"",i(b,v.currentOffset(),v.currentPosition()),{node:b})}function h(v,S){const C=v.context(),g=r(7,C.offset,C.startLoc);return g.value=S,i(g,v.currentOffset(),v.currentPosition()),g}function f(v){const S=v.context(),C=r(6,S.offset,S.startLoc);let g=v.nextToken();if(g.type===9){const y=u(v);C.modifier=y.node,g=y.nextConsumeToken||v.nextToken()}switch(g.type!==10&&s(v,Ce.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,wt(g)),g=v.nextToken(),g.type===2&&(g=v.nextToken()),g.type){case 11:g.value==null&&s(v,Ce.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,wt(g)),C.key=h(v,g.value||"");break;case 5:g.value==null&&s(v,Ce.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,wt(g)),C.key=a(v,g.value||"");break;case 6:g.value==null&&s(v,Ce.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,wt(g)),C.key=l(v,g.value||"");break;case 7:g.value==null&&s(v,Ce.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,wt(g)),C.key=d(v,g.value||"");break;default:s(v,Ce.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const y=v.context(),b=r(7,y.offset,y.startLoc);return b.value="",i(b,y.offset,y.startLoc),C.key=b,i(C,y.offset,y.startLoc),{nextConsumeToken:g,node:C}}return i(C,v.currentOffset(),v.currentPosition()),{node:C}}function c(v){const S=v.context(),C=S.currentType===1?v.currentOffset():S.offset,g=S.currentType===1?S.endLoc:S.startLoc,y=r(2,C,g);y.items=[];let b=null;do{const T=b||v.nextToken();switch(b=null,T.type){case 0:T.value==null&&s(v,Ce.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,wt(T)),y.items.push(o(v,T.value||""));break;case 6:T.value==null&&s(v,Ce.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,wt(T)),y.items.push(l(v,T.value||""));break;case 5:T.value==null&&s(v,Ce.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,wt(T)),y.items.push(a(v,T.value||""));break;case 7:T.value==null&&s(v,Ce.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,wt(T)),y.items.push(d(v,T.value||""));break;case 8:const O=f(v);y.items.push(O.node),b=O.nextConsumeToken||null;break}}while(S.currentType!==14&&S.currentType!==1);const w=S.currentType===1?S.lastOffset:v.currentOffset(),L=S.currentType===1?S.lastEndLoc:v.currentPosition();return i(y,w,L),y}function m(v,S,C,g){const y=v.context();let b=g.items.length===0;const w=r(1,S,C);w.cases=[],w.cases.push(g);do{const L=c(v);b||(b=L.items.length===0),w.cases.push(L)}while(y.currentType!==14);return b&&s(v,Ce.MUST_HAVE_MESSAGES_IN_PLURAL,C,0),i(w,v.currentOffset(),v.currentPosition()),w}function p(v){const S=v.context(),{offset:C,startLoc:g}=S,y=c(v);return S.currentType===14?y:m(v,C,g,y)}function _(v){const S=Oh(v,Ge({},e)),C=S.context(),g=r(0,C.offset,C.startLoc);return t&&g.loc&&(g.loc.source=v),g.body=p(S),C.currentType!==14&&s(S,Ce.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,v[C.offset]||""),i(g,S.currentOffset(),S.currentPosition()),g}return{parse:_}}function wt(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Dh(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function Qo(e,t){for(let n=0;n<e.length;n++)Ds(e[n],t)}function Ds(e,t){switch(e.type){case 1:Qo(e.cases,t),t.helper("plural");break;case 2:Qo(e.items,t);break;case 6:Ds(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Fh(e,t={}){const n=Dh(e);n.helper("normalize"),e.body&&Ds(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Bh(e,t){const{sourceMap:n,filename:s,breakLineCode:r,needIndent:i}=t,o={source:e.loc.source,filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0},l=()=>o;function a(p,_){o.code+=p}function d(p,_=!0){const v=_?r:"";a(i?v+" ".repeat(p):v)}function u(p=!0){const _=++o.indentLevel;p&&d(_)}function h(p=!0){const _=--o.indentLevel;p&&d(_)}function f(){d(o.indentLevel)}return{context:l,push:a,indent:u,deindent:h,newline:f,helper:p=>`_${p}`,needIndent:()=>o.needIndent}}function Hh(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),In(e,t.key),t.modifier?(e.push(", "),In(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function jh(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const r=t.items.length;for(let i=0;i<r&&(In(e,t.items[i]),i!==r-1);i++)e.push(", ");e.deindent(s()),e.push("])")}function Wh(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const r=t.cases.length;for(let i=0;i<r&&(In(e,t.cases[i]),i!==r-1);i++)e.push(", ");e.deindent(s()),e.push("])")}}function Uh(e,t){t.body?In(e,t.body):e.push("null")}function In(e,t){const{helper:n}=e;switch(t.type){case 0:Uh(e,t);break;case 1:Wh(e,t);break;case 2:jh(e,t);break;case 6:Hh(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const Vh=(e,t={})=>{const n=Z(t.mode)?t.mode:"normal",s=Z(t.filename)?t.filename:"message.intl",r=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
||
`,o=t.needIndent?t.needIndent:n!=="arrow",l=e.helpers||[],a=Bh(e,{mode:n,filename:s,sourceMap:r,breakLineCode:i,needIndent:o});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(o),l.length>0&&(a.push(`const { ${l.map(h=>`${h}: _${h}`).join(", ")} } = ctx`),a.newline()),a.push("return "),In(a,e),a.deindent(o),a.push("}");const{code:d,map:u}=a.context();return{ast:e,code:d,map:u?u.toJSON():void 0}};function zh(e,t={}){const n=Ge({},t),r=$h(n).parse(e);return Fh(r,n),Vh(r,n)}/*!
|
||
* devtools-if v9.2.2
|
||
* (c) 2022 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const Jl={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
|
||
* core-base v9.2.2
|
||
* (c) 2022 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const Zt=[];Zt[0]={w:[0],i:[3,0],["["]:[4],o:[7]};Zt[1]={w:[1],["."]:[2],["["]:[4],o:[7]};Zt[2]={w:[2],i:[3,0],[0]:[3,0]};Zt[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};Zt[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};Zt[5]={["'"]:[4,0],o:8,l:[5,0]};Zt[6]={['"']:[4,0],o:8,l:[6,0]};const Gh=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Kh(e){return Gh.test(e)}function Yh(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Xh(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function qh(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Kh(t)?Yh(t):"*"+t}function Qh(e){const t=[];let n=-1,s=0,r=0,i,o,l,a,d,u,h;const f=[];f[0]=()=>{o===void 0?o=l:o+=l},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),r++},f[3]=()=>{if(r>0)r--,s=4,f[0]();else{if(r=0,o===void 0||(o=qh(o),o===!1))return!1;f[1]()}};function c(){const m=e[n+1];if(s===5&&m==="'"||s===6&&m==='"')return n++,l="\\"+m,f[0](),!0}for(;s!==null;)if(n++,i=e[n],!(i==="\\"&&c())){if(a=Xh(i),h=Zt[s],d=h[a]||h.l||8,d===8||(s=d[0],d[1]!==void 0&&(u=f[d[1]],u&&(l=i,u()===!1))))return;if(s===7)return t}}const Jo=new Map;function Jh(e,t){return Le(e)?e[t]:null}function Zh(e,t){if(!Le(e))return null;let n=Jo.get(t);if(n||(n=Qh(t),n&&Jo.set(t,n)),!n)return null;const s=n.length;let r=e,i=0;for(;i<s;){const o=r[n[i]];if(o===void 0)return null;r=o,i++}return r}const ep=e=>e,tp=e=>"",np="text",ip=e=>e.length===0?"":e.join(""),rp=Sh;function Zo(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function sp(e){const t=We(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(We(e.named.count)||We(e.named.n))?We(e.named.count)?e.named.count:We(e.named.n)?e.named.n:t:t}function op(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ap(e={}){const t=e.locale,n=sp(e),s=Le(e.pluralRules)&&Z(t)&&He(e.pluralRules[t])?e.pluralRules[t]:Zo,r=Le(e.pluralRules)&&Z(t)&&He(e.pluralRules[t])?Zo:void 0,i=v=>v[s(n,v.length,r)],o=e.list||[],l=v=>o[v],a=e.named||{};We(e.pluralIndex)&&op(n,a);const d=v=>a[v];function u(v){const S=He(e.messages)?e.messages(v):Le(e.messages)?e.messages[v]:!1;return S||(e.parent?e.parent.message(v):tp)}const h=v=>e.modifiers?e.modifiers[v]:ep,f=fe(e.processor)&&He(e.processor.normalize)?e.processor.normalize:ip,c=fe(e.processor)&&He(e.processor.interpolate)?e.processor.interpolate:rp,m=fe(e.processor)&&Z(e.processor.type)?e.processor.type:np,_={list:l,named:d,plural:i,linked:(v,...S)=>{const[C,g]=S;let y="text",b="";S.length===1?Le(C)?(b=C.modifier||b,y=C.type||y):Z(C)&&(b=C||b):S.length===2&&(Z(C)&&(b=C||b),Z(g)&&(y=g||y));let w=u(v)(_);return y==="vnode"&&Pe(w)&&b&&(w=w[0]),b?h(b)(w,y):w},message:u,type:m,interpolate:c,normalize:f};return _}let mi=null;function lp(e){mi=e}function cp(e,t,n){mi&&mi.emit(Jl.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const up=fp(Jl.FunctionTranslate);function fp(e){return t=>mi&&mi.emit(e,t)}const dp={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function hp(e,t,n){return[...new Set([n,...Pe(t)?t:Le(t)?Object.keys(t):Z(t)?[t]:[n]])]}function Zl(e,t,n){const s=Z(n)?n:wi,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(s);if(!i){i=[];let o=[n];for(;Pe(o);)o=ea(i,o,t);const l=Pe(t)||!fe(t)?t:t.default?t.default:null;o=Z(l)?[l]:l,Pe(o)&&ea(i,o,!1),r.__localeChainCache.set(s,i)}return i}function ea(e,t,n){let s=!0;for(let r=0;r<t.length&&be(s);r++){const i=t[r];Z(i)&&(s=pp(e,t[r],n))}return s}function pp(e,t,n){let s;const r=t.split("-");do{const i=r.join("-");s=mp(e,i,n),r.splice(-1,1)}while(r.length&&s===!0);return s}function mp(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(Pe(n)||fe(n))&&n[r]&&(s=n[r])}return s}const gp="9.2.2",Sr=-1,wi="en-US",ta="",na=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function vp(){return{upper:(e,t)=>t==="text"&&Z(e)?e.toUpperCase():t==="vnode"&&Le(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Z(e)?e.toLowerCase():t==="vnode"&&Le(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Z(e)?na(e):t==="vnode"&&Le(e)&&"__v_isVNode"in e?na(e.children):e}}let ec;function _p(e){ec=e}let tc;function yp(e){tc=e}let nc;function xp(e){nc=e}let ic=null;const ia=e=>{ic=e},bp=()=>ic;let rc=null;const ra=e=>{rc=e},wp=()=>rc;let sa=0;function Ep(e={}){const t=Z(e.version)?e.version:gp,n=Z(e.locale)?e.locale:wi,s=Pe(e.fallbackLocale)||fe(e.fallbackLocale)||Z(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,r=fe(e.messages)?e.messages:{[n]:{}},i=fe(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},o=fe(e.numberFormats)?e.numberFormats:{[n]:{}},l=Ge({},e.modifiers||{},vp()),a=e.pluralRules||{},d=He(e.missing)?e.missing:null,u=be(e.missingWarn)||Qt(e.missingWarn)?e.missingWarn:!0,h=be(e.fallbackWarn)||Qt(e.fallbackWarn)?e.fallbackWarn:!0,f=!!e.fallbackFormat,c=!!e.unresolving,m=He(e.postTranslation)?e.postTranslation:null,p=fe(e.processor)?e.processor:null,_=be(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter,S=He(e.messageCompiler)?e.messageCompiler:ec,C=He(e.messageResolver)?e.messageResolver:tc||Jh,g=He(e.localeFallbacker)?e.localeFallbacker:nc||hp,y=Le(e.fallbackContext)?e.fallbackContext:void 0,b=He(e.onWarn)?e.onWarn:wh,w=e,L=Le(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,T=Le(w.__numberFormatters)?w.__numberFormatters:new Map,O=Le(w.__meta)?w.__meta:{};sa++;const I={version:t,cid:sa,locale:n,fallbackLocale:s,messages:r,modifiers:l,pluralRules:a,missing:d,missingWarn:u,fallbackWarn:h,fallbackFormat:f,unresolving:c,postTranslation:m,processor:p,warnHtmlMessage:_,escapeParameter:v,messageCompiler:S,messageResolver:C,localeFallbacker:g,fallbackContext:y,onWarn:b,__meta:O};return I.datetimeFormats=i,I.numberFormats=o,I.__datetimeFormatters=L,I.__numberFormatters=T,__INTLIFY_PROD_DEVTOOLS__&&cp(I,t,O),I}function Fs(e,t,n,s,r){const{missing:i,onWarn:o}=e;if(i!==null){const l=i(e,n,t,r);return Z(l)?l:t}else return t}function zn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const Sp=e=>e;let oa=Object.create(null);function Cp(e,t={}){{const s=(t.onCacheKey||Sp)(e),r=oa[s];if(r)return r;let i=!1;const o=t.onError||Ch;t.onError=d=>{i=!0,o(d)};const{code:l}=zh(e,t),a=new Function(`return ${l}`)();return i?a:oa[s]=a}}let sc=Ce.__EXTEND_POINT__;const Dr=()=>++sc,yn={INVALID_ARGUMENT:sc,INVALID_DATE_ARGUMENT:Dr(),INVALID_ISO_DATE_ARGUMENT:Dr(),__EXTEND_POINT__:Dr()};function xn(e){return Er(e,null,void 0)}const aa=()=>"",Ct=e=>He(e);function la(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:r,messageCompiler:i,fallbackLocale:o,messages:l}=e,[a,d]=ts(...t),u=be(d.missingWarn)?d.missingWarn:e.missingWarn,h=be(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,f=be(d.escapeParameter)?d.escapeParameter:e.escapeParameter,c=!!d.resolvedMessage,m=Z(d.default)||be(d.default)?be(d.default)?i?a:()=>a:d.default:n?i?a:()=>a:"",p=n||m!=="",_=Z(d.locale)?d.locale:e.locale;f&&kp(d);let[v,S,C]=c?[a,_,l[_]||{}]:oc(e,a,_,o,h,u),g=v,y=a;if(!c&&!(Z(g)||Ct(g))&&p&&(g=m,y=g),!c&&(!(Z(g)||Ct(g))||!Z(S)))return r?Sr:a;let b=!1;const w=()=>{b=!0},L=Ct(g)?g:ac(e,a,S,g,y,w);if(b)return g;const T=Pp(e,S,C,d),O=ap(T),I=Ap(e,L,O),N=s?s(I,a):I;if(__INTLIFY_PROD_DEVTOOLS__){const F={timestamp:Date.now(),key:Z(a)?a:Ct(g)?g.key:"",locale:S||(Ct(g)?g.locale:""),format:Z(g)?g:Ct(g)?g.source:"",message:N};F.meta=Ge({},e.__meta,bp()||{}),up(F)}return N}function kp(e){Pe(e.list)?e.list=e.list.map(t=>Z(t)?Xo(t):t):Le(e.named)&&Object.keys(e.named).forEach(t=>{Z(e.named[t])&&(e.named[t]=Xo(e.named[t]))})}function oc(e,t,n,s,r,i){const{messages:o,onWarn:l,messageResolver:a,localeFallbacker:d}=e,u=d(e,s,n);let h={},f,c=null;const m="translate";for(let p=0;p<u.length&&(f=u[p],h=o[f]||{},(c=a(h,t))===null&&(c=h[t]),!(Z(c)||He(c)));p++){const _=Fs(e,t,f,i,m);_!==t&&(c=_)}return[c,f,h]}function ac(e,t,n,s,r,i){const{messageCompiler:o,warnHtmlMessage:l}=e;if(Ct(s)){const d=s;return d.locale=d.locale||n,d.key=d.key||t,d}if(o==null){const d=()=>s;return d.locale=n,d.key=t,d}const a=o(s,Tp(e,n,r,s,l,i));return a.locale=n,a.key=t,a.source=s,a}function Ap(e,t,n){return t(n)}function ts(...e){const[t,n,s]=e,r={};if(!Z(t)&&!We(t)&&!Ct(t))throw xn(yn.INVALID_ARGUMENT);const i=We(t)?String(t):(Ct(t),t);return We(n)?r.plural=n:Z(n)?r.default=n:fe(n)&&!wr(n)?r.named=n:Pe(n)&&(r.list=n),We(s)?r.plural=s:Z(s)?r.default=s:fe(s)&&Ge(r,s),[i,r]}function Tp(e,t,n,s,r,i){return{warnHtmlMessage:r,onError:o=>{throw i&&i(o),o},onCacheKey:o=>yh(t,n,o)}}function Pp(e,t,n,s){const{modifiers:r,pluralRules:i,messageResolver:o,fallbackLocale:l,fallbackWarn:a,missingWarn:d,fallbackContext:u}=e,f={locale:t,modifiers:r,pluralRules:i,messages:c=>{let m=o(n,c);if(m==null&&u){const[,,p]=oc(u,c,t,l,a,d);m=o(p,c)}if(Z(m)){let p=!1;const v=ac(e,c,t,m,c,()=>{p=!0});return p?aa:v}else return Ct(m)?m:aa}};return e.processor&&(f.processor=e.processor),s.list&&(f.list=s.list),s.named&&(f.named=s.named),We(s.plural)&&(f.pluralIndex=s.plural),f}function ca(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:r,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:l}=e,[a,d,u,h]=ns(...t),f=be(u.missingWarn)?u.missingWarn:e.missingWarn;be(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const c=!!u.part,m=Z(u.locale)?u.locale:e.locale,p=o(e,r,m);if(!Z(a)||a==="")return new Intl.DateTimeFormat(m,h).format(d);let _={},v,S=null;const C="datetime format";for(let b=0;b<p.length&&(v=p[b],_=n[v]||{},S=_[a],!fe(S));b++)Fs(e,a,v,f,C);if(!fe(S)||!Z(v))return s?Sr:a;let g=`${v}__${a}`;wr(h)||(g=`${g}__${JSON.stringify(h)}`);let y=l.get(g);return y||(y=new Intl.DateTimeFormat(v,Ge({},S,h)),l.set(g,y)),c?y.formatToParts(d):y.format(d)}const lc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ns(...e){const[t,n,s,r]=e,i={};let o={},l;if(Z(t)){const a=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!a)throw xn(yn.INVALID_ISO_DATE_ARGUMENT);const d=a[3]?a[3].trim().startsWith("T")?`${a[1].trim()}${a[3].trim()}`:`${a[1].trim()}T${a[3].trim()}`:a[1].trim();l=new Date(d);try{l.toISOString()}catch{throw xn(yn.INVALID_ISO_DATE_ARGUMENT)}}else if(bh(t)){if(isNaN(t.getTime()))throw xn(yn.INVALID_DATE_ARGUMENT);l=t}else if(We(t))l=t;else throw xn(yn.INVALID_ARGUMENT);return Z(n)?i.key=n:fe(n)&&Object.keys(n).forEach(a=>{lc.includes(a)?o[a]=n[a]:i[a]=n[a]}),Z(s)?i.locale=s:fe(s)&&(o=s),fe(r)&&(o=r),[i.key||"",l,i,o]}function ua(e,t,n){const s=e;for(const r in n){const i=`${t}__${r}`;s.__datetimeFormatters.has(i)&&s.__datetimeFormatters.delete(i)}}function fa(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:r,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:l}=e,[a,d,u,h]=is(...t),f=be(u.missingWarn)?u.missingWarn:e.missingWarn;be(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const c=!!u.part,m=Z(u.locale)?u.locale:e.locale,p=o(e,r,m);if(!Z(a)||a==="")return new Intl.NumberFormat(m,h).format(d);let _={},v,S=null;const C="number format";for(let b=0;b<p.length&&(v=p[b],_=n[v]||{},S=_[a],!fe(S));b++)Fs(e,a,v,f,C);if(!fe(S)||!Z(v))return s?Sr:a;let g=`${v}__${a}`;wr(h)||(g=`${g}__${JSON.stringify(h)}`);let y=l.get(g);return y||(y=new Intl.NumberFormat(v,Ge({},S,h)),l.set(g,y)),c?y.formatToParts(d):y.format(d)}const cc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function is(...e){const[t,n,s,r]=e,i={};let o={};if(!We(t))throw xn(yn.INVALID_ARGUMENT);const l=t;return Z(n)?i.key=n:fe(n)&&Object.keys(n).forEach(a=>{cc.includes(a)?o[a]=n[a]:i[a]=n[a]}),Z(s)?i.locale=s:fe(s)&&(o=s),fe(r)&&(o=r),[i.key||"",l,i,o]}function da(e,t,n){const s=e;for(const r in n){const i=`${t}__${r}`;s.__numberFormatters.has(i)&&s.__numberFormatters.delete(i)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ei().__INTLIFY_PROD_DEVTOOLS__=!1);/*!
|
||
* vue-i18n v9.2.2
|
||
* (c) 2022 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const Lp="9.2.2";function Ip(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ei().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ei().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ei().__INTLIFY_PROD_DEVTOOLS__=!1)}dp.__EXTEND_POINT__;let uc=Ce.__EXTEND_POINT__;const et=()=>++uc,je={UNEXPECTED_RETURN_TYPE:uc,INVALID_ARGUMENT:et(),MUST_BE_CALL_SETUP_TOP:et(),NOT_INSLALLED:et(),NOT_AVAILABLE_IN_LEGACY_MODE:et(),REQUIRED_VALUE:et(),INVALID_VALUE:et(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:et(),NOT_INSLALLED_WITH_PROVIDE:et(),UNEXPECTED_ERROR:et(),NOT_COMPATIBLE_LEGACY_VUE_I18N:et(),BRIDGE_SUPPORT_VUE_2_ONLY:et(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:et(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:et(),__EXTEND_POINT__:et()};function Ue(e,...t){return Er(e,null,void 0)}const rs=Jt("__transrateVNode"),ss=Jt("__datetimeParts"),os=Jt("__numberParts"),fc=Jt("__setPluralRules");Jt("__intlifyMeta");const dc=Jt("__injectWithOption");function as(e){if(!Le(e))return e;for(const t in e)if(Ns(e,t))if(!t.includes("."))Le(e[t])&&as(e[t]);else{const n=t.split("."),s=n.length-1;let r=e;for(let i=0;i<s;i++)n[i]in r||(r[n[i]]={}),r=r[n[i]];r[n[s]]=e[t],delete e[t],Le(r[n[s]])&&as(r[n[s]])}return e}function Cr(e,t){const{messages:n,__i18n:s,messageResolver:r,flatJson:i}=t,o=fe(n)?n:Pe(s)?{}:{[e]:{}};if(Pe(s)&&s.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:a,resource:d}=l;a?(o[a]=o[a]||{},ti(d,o[a])):ti(d,o)}else Z(l)&&ti(JSON.parse(l),o)}),r==null&&i)for(const l in o)Ns(o,l)&&as(o[l]);return o}const Oi=e=>!Le(e)||Pe(e);function ti(e,t){if(Oi(e)||Oi(t))throw Ue(je.INVALID_VALUE);for(const n in e)Ns(e,n)&&(Oi(e[n])||Oi(t[n])?t[n]=e[n]:ti(e[n],t[n]))}function hc(e){return e.type}function pc(e,t,n){let s=Le(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=Cr(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const r=Object.keys(s);r.length&&r.forEach(i=>{e.mergeLocaleMessage(i,s[i])});{if(Le(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(Le(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function ha(e){return X(bi,null,e,0)}const pa="__INTLIFY_META__";let ma=0;function ga(e){return(t,n,s,r)=>e(n,s,di()||void 0,r)}const Op=()=>{const e=di();let t=null;return e&&(t=hc(e)[pa])?{[pa]:t}:null};function Bs(e={},t){const{__root:n}=e,s=n===void 0;let r=be(e.inheritLocale)?e.inheritLocale:!0;const i=xe(n&&r?n.locale.value:Z(e.locale)?e.locale:wi),o=xe(n&&r?n.fallbackLocale.value:Z(e.fallbackLocale)||Pe(e.fallbackLocale)||fe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),l=xe(Cr(i.value,e)),a=xe(fe(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),d=xe(fe(e.numberFormats)?e.numberFormats:{[i.value]:{}});let u=n?n.missingWarn:be(e.missingWarn)||Qt(e.missingWarn)?e.missingWarn:!0,h=n?n.fallbackWarn:be(e.fallbackWarn)||Qt(e.fallbackWarn)?e.fallbackWarn:!0,f=n?n.fallbackRoot:be(e.fallbackRoot)?e.fallbackRoot:!0,c=!!e.fallbackFormat,m=He(e.missing)?e.missing:null,p=He(e.missing)?ga(e.missing):null,_=He(e.postTranslation)?e.postTranslation:null,v=n?n.warnHtmlMessage:be(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const C=n?n.modifiers:fe(e.modifiers)?e.modifiers:{};let g=e.pluralRules||n&&n.pluralRules,y;y=(()=>{s&&ra(null);const R={version:Lp,locale:i.value,fallbackLocale:o.value,messages:l.value,modifiers:C,pluralRules:g,missing:p===null?void 0:p,missingWarn:u,fallbackWarn:h,fallbackFormat:c,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:v,escapeParameter:S,messageResolver:e.messageResolver,__meta:{framework:"vue"}};R.datetimeFormats=a.value,R.numberFormats=d.value,R.__datetimeFormatters=fe(y)?y.__datetimeFormatters:void 0,R.__numberFormatters=fe(y)?y.__numberFormatters:void 0;const D=Ep(R);return s&&ra(D),D})(),zn(y,i.value,o.value);function w(){return[i.value,o.value,l.value,a.value,d.value]}const L=$e({get:()=>i.value,set:R=>{i.value=R,y.locale=i.value}}),T=$e({get:()=>o.value,set:R=>{o.value=R,y.fallbackLocale=o.value,zn(y,i.value,R)}}),O=$e(()=>l.value),I=$e(()=>a.value),N=$e(()=>d.value);function F(){return He(_)?_:null}function z(R){_=R,y.postTranslation=R}function Q(){return m}function U(R){R!==null&&(p=ga(R)),m=R,y.missing=p}const q=(R,D,ie,se,he,Ee)=>{w();let _e;if(__INTLIFY_PROD_DEVTOOLS__)try{ia(Op()),s||(y.fallbackContext=n?wp():void 0),_e=R(y)}finally{ia(null),s||(y.fallbackContext=void 0)}else _e=R(y);if(We(_e)&&_e===Sr){const[De,ot]=D();return n&&f?se(n):he(De)}else{if(Ee(_e))return _e;throw Ue(je.UNEXPECTED_RETURN_TYPE)}};function te(...R){return q(D=>Reflect.apply(la,null,[D,...R]),()=>ts(...R),"translate",D=>Reflect.apply(D.t,D,[...R]),D=>D,D=>Z(D))}function re(...R){const[D,ie,se]=R;if(se&&!Le(se))throw Ue(je.INVALID_ARGUMENT);return te(D,ie,Ge({resolvedMessage:!0},se||{}))}function me(...R){return q(D=>Reflect.apply(ca,null,[D,...R]),()=>ns(...R),"datetime format",D=>Reflect.apply(D.d,D,[...R]),()=>ta,D=>Z(D))}function de(...R){return q(D=>Reflect.apply(fa,null,[D,...R]),()=>is(...R),"number format",D=>Reflect.apply(D.n,D,[...R]),()=>ta,D=>Z(D))}function ue(R){return R.map(D=>Z(D)||We(D)||be(D)?ha(String(D)):D)}const ke={normalize:ue,interpolate:R=>R,type:"vnode"};function B(...R){return q(D=>{let ie;const se=D;try{se.processor=ke,ie=Reflect.apply(la,null,[se,...R])}finally{se.processor=null}return ie},()=>ts(...R),"translate",D=>D[rs](...R),D=>[ha(D)],D=>Pe(D))}function Y(...R){return q(D=>Reflect.apply(fa,null,[D,...R]),()=>is(...R),"number format",D=>D[os](...R),()=>[],D=>Z(D)||Pe(D))}function K(...R){return q(D=>Reflect.apply(ca,null,[D,...R]),()=>ns(...R),"datetime format",D=>D[ss](...R),()=>[],D=>Z(D)||Pe(D))}function ee(R){g=R,y.pluralRules=g}function le(R,D){const ie=Z(D)?D:i.value,se=k(ie);return y.messageResolver(se,R)!==null}function ye(R){let D=null;const ie=Zl(y,o.value,i.value);for(let se=0;se<ie.length;se++){const he=l.value[ie[se]]||{},Ee=y.messageResolver(he,R);if(Ee!=null){D=Ee;break}}return D}function oe(R){const D=ye(R);return D??(n?n.tm(R)||{}:{})}function k(R){return l.value[R]||{}}function x(R,D){l.value[R]=D,y.messages=l.value}function E(R,D){l.value[R]=l.value[R]||{},ti(D,l.value[R]),y.messages=l.value}function A(R){return a.value[R]||{}}function M(R,D){a.value[R]=D,y.datetimeFormats=a.value,ua(y,R,D)}function H(R,D){a.value[R]=Ge(a.value[R]||{},D),y.datetimeFormats=a.value,ua(y,R,D)}function W(R){return d.value[R]||{}}function V(R,D){d.value[R]=D,y.numberFormats=d.value,da(y,R,D)}function G(R,D){d.value[R]=Ge(d.value[R]||{},D),y.numberFormats=d.value,da(y,R,D)}ma++,n&&Zr&&(At(n.locale,R=>{r&&(i.value=R,y.locale=R,zn(y,i.value,o.value))}),At(n.fallbackLocale,R=>{r&&(o.value=R,y.fallbackLocale=R,zn(y,i.value,o.value))}));const j={id:ma,locale:L,fallbackLocale:T,get inheritLocale(){return r},set inheritLocale(R){r=R,R&&n&&(i.value=n.locale.value,o.value=n.fallbackLocale.value,zn(y,i.value,o.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:O,get modifiers(){return C},get pluralRules(){return g||{}},get isGlobal(){return s},get missingWarn(){return u},set missingWarn(R){u=R,y.missingWarn=u},get fallbackWarn(){return h},set fallbackWarn(R){h=R,y.fallbackWarn=h},get fallbackRoot(){return f},set fallbackRoot(R){f=R},get fallbackFormat(){return c},set fallbackFormat(R){c=R,y.fallbackFormat=c},get warnHtmlMessage(){return v},set warnHtmlMessage(R){v=R,y.warnHtmlMessage=R},get escapeParameter(){return S},set escapeParameter(R){S=R,y.escapeParameter=R},t:te,getLocaleMessage:k,setLocaleMessage:x,mergeLocaleMessage:E,getPostTranslationHandler:F,setPostTranslationHandler:z,getMissingHandler:Q,setMissingHandler:U,[fc]:ee};return j.datetimeFormats=I,j.numberFormats=N,j.rt=re,j.te=le,j.tm=oe,j.d=me,j.n=de,j.getDateTimeFormat=A,j.setDateTimeFormat=M,j.mergeDateTimeFormat=H,j.getNumberFormat=W,j.setNumberFormat=V,j.mergeNumberFormat=G,j[dc]=e.__injectWithOption,j[rs]=B,j[ss]=K,j[os]=Y,j}function Mp(e){const t=Z(e.locale)?e.locale:wi,n=Z(e.fallbackLocale)||Pe(e.fallbackLocale)||fe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=He(e.missing)?e.missing:void 0,r=be(e.silentTranslationWarn)||Qt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=be(e.silentFallbackWarn)||Qt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=be(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,a=fe(e.modifiers)?e.modifiers:{},d=e.pluralizationRules,u=He(e.postTranslation)?e.postTranslation:void 0,h=Z(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,c=be(e.sync)?e.sync:!0;let m=e.messages;if(fe(e.sharedMessages)){const y=e.sharedMessages;m=Object.keys(y).reduce((w,L)=>{const T=w[L]||(w[L]={});return Ge(T,y[L]),w},m||{})}const{__i18n:p,__root:_,__injectWithOption:v}=e,S=e.datetimeFormats,C=e.numberFormats,g=e.flatJson;return{locale:t,fallbackLocale:n,messages:m,flatJson:g,datetimeFormats:S,numberFormats:C,missing:s,missingWarn:r,fallbackWarn:i,fallbackRoot:o,fallbackFormat:l,modifiers:a,pluralRules:d,postTranslation:u,warnHtmlMessage:h,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:c,__i18n:p,__root:_,__injectWithOption:v}}function ls(e={},t){{const n=Bs(Mp(e)),s={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(r){},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return be(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=be(r)?!r:r},get silentFallbackWarn(){return be(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=be(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(r){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[i,o,l]=r,a={};let d=null,u=null;if(!Z(i))throw Ue(je.INVALID_ARGUMENT);const h=i;return Z(o)?a.locale=o:Pe(o)?d=o:fe(o)&&(u=o),Pe(l)?d=l:fe(l)&&(u=l),Reflect.apply(n.t,n,[h,d||u||{},a])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[i,o,l]=r,a={plural:1};let d=null,u=null;if(!Z(i))throw Ue(je.INVALID_ARGUMENT);const h=i;return Z(o)?a.locale=o:We(o)?a.plural=o:Pe(o)?d=o:fe(o)&&(u=o),Z(l)?a.locale=l:Pe(l)?d=l:fe(l)&&(u=l),Reflect.apply(n.t,n,[h,d||u||{},a])},te(r,i){return n.te(r,i)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,i){n.setLocaleMessage(r,i)},mergeLocaleMessage(r,i){n.mergeLocaleMessage(r,i)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,i){n.setDateTimeFormat(r,i)},mergeDateTimeFormat(r,i){n.mergeDateTimeFormat(r,i)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,i){n.setNumberFormat(r,i)},mergeNumberFormat(r,i){n.mergeNumberFormat(r,i)},getChoiceIndex(r,i){return-1},__onComponentInstanceCreated(r){const{componentInstanceCreatedListener:i}=e;i&&i(r,s)}};return s}}const Hs={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Rp({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,r)=>s=[...s,...Pe(r.children)?r.children:[r]],[]):t.reduce((n,s)=>{const r=e[s];return r&&(n[s]=r()),n},{})}function mc(e){return Fe}const va={name:"i18n-t",props:Ge({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>We(e)||!isNaN(e)}},Hs),setup(e,t){const{slots:n,attrs:s}=t,r=e.i18n||we({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(h=>h!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=Z(e.plural)?+e.plural:e.plural);const l=Rp(t,i),a=r[rs](e.keypath,l,o),d=Ge({},s),u=Z(e.tag)||Le(e.tag)?e.tag:mc();return xr(u,d,a)}}};function Np(e){return Pe(e)&&!Z(e[0])}function gc(e,t,n,s){const{slots:r,attrs:i}=t;return()=>{const o={part:!0};let l={};e.locale&&(o.locale=e.locale),Z(e.format)?o.key=e.format:Le(e.format)&&(Z(e.format.key)&&(o.key=e.format.key),l=Object.keys(e.format).reduce((f,c)=>n.includes(c)?Ge({},f,{[c]:e.format[c]}):f,{}));const a=s(e.value,o,l);let d=[o.key];Pe(a)?d=a.map((f,c)=>{const m=r[f.type],p=m?m({[f.type]:f.value,index:c,parts:a}):[f.value];return Np(p)&&(p[0].key=`${f.type}-${c}`),p}):Z(a)&&(d=[a]);const u=Ge({},i),h=Z(e.tag)||Le(e.tag)?e.tag:mc();return xr(h,u,d)}}const _a={name:"i18n-n",props:Ge({value:{type:Number,required:!0},format:{type:[String,Object]}},Hs),setup(e,t){const n=e.i18n||we({useScope:"parent",__useComponent:!0});return gc(e,t,cc,(...s)=>n[os](...s))}},ya={name:"i18n-d",props:Ge({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Hs),setup(e,t){const n=e.i18n||we({useScope:"parent",__useComponent:!0});return gc(e,t,lc,(...s)=>n[ss](...s))}};function $p(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Dp(e){const t=o=>{const{instance:l,modifiers:a,value:d}=o;if(!l||!l.$)throw Ue(je.UNEXPECTED_ERROR);const u=$p(e,l.$),h=xa(d);return[Reflect.apply(u.t,u,[...ba(h)]),u]};return{created:(o,l)=>{const[a,d]=t(l);Zr&&e.global===d&&(o.__i18nWatcher=At(d.locale,()=>{l.instance&&l.instance.$forceUpdate()})),o.__composer=d,o.textContent=a},unmounted:o=>{Zr&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:l})=>{if(o.__composer){const a=o.__composer,d=xa(l);o.textContent=Reflect.apply(a.t,a,[...ba(d)])}},getSSRProps:o=>{const[l]=t(o);return{textContent:l}}}}function xa(e){if(Z(e))return{path:e};if(fe(e)){if(!("path"in e))throw Ue(je.REQUIRED_VALUE,"path");return e}else throw Ue(je.INVALID_VALUE)}function ba(e){const{path:t,locale:n,args:s,choice:r,plural:i}=e,o={},l=s||{};return Z(n)&&(o.locale=n),We(r)&&(o.plural=r),We(i)&&(o.plural=i),[t,l,o]}function Fp(e,t,...n){const s=fe(n[0])?n[0]:{},r=!!s.useI18nComponentName;(be(s.globalInstall)?s.globalInstall:!0)&&(e.component(r?"i18n":va.name,va),e.component(_a.name,_a),e.component(ya.name,ya)),e.directive("t",Dp(t))}function Bp(e,t,n){return{beforeCreate(){const s=di();if(!s)throw Ue(je.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const i=r.i18n;r.__i18n&&(i.__i18n=r.__i18n),i.__root=t,this===this.$root?this.$i18n=wa(e,i):(i.__injectWithOption=!0,this.$i18n=ls(i))}else r.__i18n?this===this.$root?this.$i18n=wa(e,r):this.$i18n=ls({__i18n:r.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;r.__i18nGlobal&&pc(t,r,r),e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(s,this.$i18n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i)},mounted(){},unmounted(){const s=di();if(!s)throw Ue(je.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(s),delete this.$i18n}}}function wa(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[fc](t.pluralizationRules||e.pluralizationRules);const n=Cr(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const Hp=Jt("global-vue-i18n");function jp(e={},t){const n=__VUE_I18N_LEGACY_API__&&be(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=be(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,i=new Map,[o,l]=Wp(e,n),a=Jt("");function d(f){return i.get(f)||null}function u(f,c){i.set(f,c)}function h(f){i.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return r},async install(c,...m){c.__VUE_I18N_SYMBOL__=a,c.provide(c.__VUE_I18N_SYMBOL__,f),!n&&s&&Qp(c,f.global),__VUE_I18N_FULL_INSTALL__&&Fp(c,f,...m),__VUE_I18N_LEGACY_API__&&n&&c.mixin(Bp(l,l.__composer,f));const p=c.unmount;c.unmount=()=>{f.dispose(),p()}},get global(){return l},dispose(){o.stop()},__instances:i,__getInstance:d,__setInstance:u,__deleteInstance:h};return f}}function we(e={}){const t=di();if(t==null)throw Ue(je.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ue(je.NOT_INSLALLED);const n=Up(t),s=zp(n),r=hc(t),i=Vp(e,r);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Ue(je.NOT_AVAILABLE_IN_LEGACY_MODE);return Yp(t,i,s,e)}if(i==="global")return pc(s,e,r),s;if(i==="parent"){let a=Gp(n,t,e.__useComponent);return a==null&&(a=s),a}const o=n;let l=o.__getInstance(t);if(l==null){const a=Ge({},e);"__i18n"in r&&(a.__i18n=r.__i18n),s&&(a.__root=s),l=Bs(a),Kp(o,t),o.__setInstance(t,l)}return l}function Wp(e,t,n){const s=nu();{const r=__VUE_I18N_LEGACY_API__&&t?s.run(()=>ls(e)):s.run(()=>Bs(e));if(r==null)throw Ue(je.UNEXPECTED_ERROR);return[s,r]}}function Up(e){{const t=_t(e.isCE?Hp:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ue(e.isCE?je.NOT_INSLALLED_WITH_PROVIDE:je.UNEXPECTED_ERROR);return t}}function Vp(e,t){return wr(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function zp(e){return e.mode==="composition"?e.global:e.global.__composer}function Gp(e,t,n=!1){let s=null;const r=t.root;let i=t.parent;for(;i!=null;){const o=e;if(e.mode==="composition")s=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const l=o.__getInstance(i);l!=null&&(s=l.__composer,n&&s&&!s[dc]&&(s=null))}if(s!=null||r===i)break;i=i.parent}return s}function Kp(e,t,n){ut(()=>{},t),ks(()=>{e.__deleteInstance(t)},t)}function Yp(e,t,n,s={}){const r=t==="local",i=ol(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Ue(je.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=be(s.inheritLocale)?s.inheritLocale:!0,l=xe(r&&o?n.locale.value:Z(s.locale)?s.locale:wi),a=xe(r&&o?n.fallbackLocale.value:Z(s.fallbackLocale)||Pe(s.fallbackLocale)||fe(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:l.value),d=xe(Cr(l.value,s)),u=xe(fe(s.datetimeFormats)?s.datetimeFormats:{[l.value]:{}}),h=xe(fe(s.numberFormats)?s.numberFormats:{[l.value]:{}}),f=r?n.missingWarn:be(s.missingWarn)||Qt(s.missingWarn)?s.missingWarn:!0,c=r?n.fallbackWarn:be(s.fallbackWarn)||Qt(s.fallbackWarn)?s.fallbackWarn:!0,m=r?n.fallbackRoot:be(s.fallbackRoot)?s.fallbackRoot:!0,p=!!s.fallbackFormat,_=He(s.missing)?s.missing:null,v=He(s.postTranslation)?s.postTranslation:null,S=r?n.warnHtmlMessage:be(s.warnHtmlMessage)?s.warnHtmlMessage:!0,C=!!s.escapeParameter,g=r?n.modifiers:fe(s.modifiers)?s.modifiers:{},y=s.pluralRules||r&&n.pluralRules;function b(){return[l.value,a.value,d.value,u.value,h.value]}const w=$e({get:()=>i.value?i.value.locale.value:l.value,set:E=>{i.value&&(i.value.locale.value=E),l.value=E}}),L=$e({get:()=>i.value?i.value.fallbackLocale.value:a.value,set:E=>{i.value&&(i.value.fallbackLocale.value=E),a.value=E}}),T=$e(()=>i.value?i.value.messages.value:d.value),O=$e(()=>u.value),I=$e(()=>h.value);function N(){return i.value?i.value.getPostTranslationHandler():v}function F(E){i.value&&i.value.setPostTranslationHandler(E)}function z(){return i.value?i.value.getMissingHandler():_}function Q(E){i.value&&i.value.setMissingHandler(E)}function U(E){return b(),E()}function q(...E){return i.value?U(()=>Reflect.apply(i.value.t,null,[...E])):U(()=>"")}function te(...E){return i.value?Reflect.apply(i.value.rt,null,[...E]):""}function re(...E){return i.value?U(()=>Reflect.apply(i.value.d,null,[...E])):U(()=>"")}function me(...E){return i.value?U(()=>Reflect.apply(i.value.n,null,[...E])):U(()=>"")}function de(E){return i.value?i.value.tm(E):{}}function ue(E,A){return i.value?i.value.te(E,A):!1}function ve(E){return i.value?i.value.getLocaleMessage(E):{}}function ke(E,A){i.value&&(i.value.setLocaleMessage(E,A),d.value[E]=A)}function B(E,A){i.value&&i.value.mergeLocaleMessage(E,A)}function Y(E){return i.value?i.value.getDateTimeFormat(E):{}}function K(E,A){i.value&&(i.value.setDateTimeFormat(E,A),u.value[E]=A)}function ee(E,A){i.value&&i.value.mergeDateTimeFormat(E,A)}function le(E){return i.value?i.value.getNumberFormat(E):{}}function ye(E,A){i.value&&(i.value.setNumberFormat(E,A),h.value[E]=A)}function oe(E,A){i.value&&i.value.mergeNumberFormat(E,A)}const k={get id(){return i.value?i.value.id:-1},locale:w,fallbackLocale:L,messages:T,datetimeFormats:O,numberFormats:I,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(E){i.value&&(i.value.inheritLocale=E)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(d.value)},get modifiers(){return i.value?i.value.modifiers:g},get pluralRules(){return i.value?i.value.pluralRules:y},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:f},set missingWarn(E){i.value&&(i.value.missingWarn=E)},get fallbackWarn(){return i.value?i.value.fallbackWarn:c},set fallbackWarn(E){i.value&&(i.value.missingWarn=E)},get fallbackRoot(){return i.value?i.value.fallbackRoot:m},set fallbackRoot(E){i.value&&(i.value.fallbackRoot=E)},get fallbackFormat(){return i.value?i.value.fallbackFormat:p},set fallbackFormat(E){i.value&&(i.value.fallbackFormat=E)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:S},set warnHtmlMessage(E){i.value&&(i.value.warnHtmlMessage=E)},get escapeParameter(){return i.value?i.value.escapeParameter:C},set escapeParameter(E){i.value&&(i.value.escapeParameter=E)},t:q,getPostTranslationHandler:N,setPostTranslationHandler:F,getMissingHandler:z,setMissingHandler:Q,rt:te,d:re,n:me,tm:de,te:ue,getLocaleMessage:ve,setLocaleMessage:ke,mergeLocaleMessage:B,getDateTimeFormat:Y,setDateTimeFormat:K,mergeDateTimeFormat:ee,getNumberFormat:le,setNumberFormat:ye,mergeNumberFormat:oe};function x(E){E.locale.value=l.value,E.fallbackLocale.value=a.value,Object.keys(d.value).forEach(A=>{E.mergeLocaleMessage(A,d.value[A])}),Object.keys(u.value).forEach(A=>{E.mergeDateTimeFormat(A,u.value[A])}),Object.keys(h.value).forEach(A=>{E.mergeNumberFormat(A,h.value[A])}),E.escapeParameter=C,E.fallbackFormat=p,E.fallbackRoot=m,E.fallbackWarn=c,E.missingWarn=f,E.warnHtmlMessage=S}return bl(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Ue(je.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const E=i.value=e.proxy.$i18n.__composer;t==="global"?(l.value=E.locale.value,a.value=E.fallbackLocale.value,d.value=E.messages.value,u.value=E.datetimeFormats.value,h.value=E.numberFormats.value):r&&x(E)}),k}const Xp=["locale","fallbackLocale","availableLocales"],qp=["t","rt","d","n","tm"];function Qp(e,t){const n=Object.create(null);Xp.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r)throw Ue(je.UNEXPECTED_ERROR);const i=Ye(r.value)?{get(){return r.value.value},set(o){r.value.value=o}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,s,i)}),e.config.globalProperties.$i18n=n,qp.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r||!r.value)throw Ue(je.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,r)})}_p(Cp);yp(Zh);xp(Zl);Ip();if(__INTLIFY_PROD_DEVTOOLS__){const e=ei();e.__INTLIFY__=!0,lp(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const vc=["cookie","future","change-something","picture-bright","picture-nolights"];function gi(e){if(!vc.includes(e))return;let t=new Set(JSON.parse(localStorage.getItem("eastereggs")??"[]"));const n=!t.has(e);t.add(e),localStorage.setItem("eastereggs",JSON.stringify([...t])),n&&document.dispatchEvent(new CustomEvent("easteregg",{detail:e}))}function js(){return JSON.parse(localStorage.getItem("eastereggs")??"[]")}function Fr(){return js().length}function Jp(){return vc.length}const Zp={key:0,class:"w-full h-full"},em=["width","height"],tm={ref:"banner",class:"fixed bottom-0 left-0 z-50 bg-slate-200/90 border-slate-700 dark:bg-slate-800/90 dark:border-slate-400 border rounded w-fit lg:w-1/2 p-3 px-5 m-5"},nm={class:"text-sm"},im={class:"text-xs"},rm={class:"flex justify-end mt-2 text-sm"},sm=pe({__name:"Cookie",setup(e){const{t}=we({messages:{en:{"cookie policy title":"Cookie policy","cookie policy":"This website uses cookies but not for analysis purposes and they are not sent to third parties. The only cookies here are those that I ate this morning, although I prefer a savory breakfast. I don't know why you are reading this, but thanks for keeping me company, I wish you a great day. If you would like some cookies too, do not hesitate to click on the following link:","cookie policy link":"Click here to read the policy",accept:"Accept",reject:"Reject"},it:{"cookie policy title":"Informativa cookie","cookie policy":"Questo sito utilizza cookie ma non per fini di profilazione e non sono inviati a terze parti. Gli unici cookie presenti sono quelli che ho mangiato questa mattina, anche se in realtà preferisco una colazione salata. Non so perché stai leggendo questo, ma ti ringrazio per avermi fatto compagnia e ti auguro una buona giornata. Se gradisci dei biscotti, non esitare a cliccare l'informativa al seguente link:","cookie policy link":"Clicca qui per l'informativa cookie",accept:"Accetta",reject:"Rifiuta"}}}),n=xe(),s=xe(),r=xe(Ko()),i=xe(u()),o=xe(h());let l=null;ut(()=>{Ko()&&(c(),new ResizeObserver(()=>{f()}).observe(document.body))});function a(){gh(),r.value=!1}function d(){vh(),r.value=!1}function u(){return document.body.clientWidth}function h(){return document.body.scrollHeight}function f(){i.value=u(),o.value=h()}function c(){if(!l){l=dt.Engine.create();let _=dt.Render.create({element:n.value,canvas:s.value,engine:l,options:{width:u(),height:h(),wireframes:!1,background:"#00000000"}});dt.Render.run(_),dt.Runner.run(dt.Runner.create(),l)}f()}function m(){if(gi("cookie"),!l)return;let _=dt.Bodies.circle(mh(0,u()),document.documentElement.scrollTop+window.screen.height,30,{render:{sprite:{texture:Xl,xScale:.08,yScale:.08}}});dt.Composite.add(l.world,[_]);const v=.02*_.mass;dt.Body.applyForce(_,_.position,{x:v*(_.position.x>u()/2?-1:1),y:-v*ql(3,6)}),p(_)}function p(_){_.position.y>document.body.scrollHeight+1e3?dt.Composite.remove(l.world,_):setTimeout(()=>{p(_)},5e3)}return(_,v)=>r.value?(ne(),ae("div",Zp,[P("div",{ref_key:"container_cookie",ref:n,class:"absolute top-0 left-0 h-full w-full pointer-events-none z-40"},[P("canvas",{ref_key:"canvas_cookie",ref:s,width:i.value,height:o.value},null,8,em)],512),P("div",tm,[P("p",nm,J($(t)("cookie policy title")),1),P("div",im,[P("span",null,[Ie(J($(t)("cookie policy"))+" ",1),P("button",{onclick:m,class:"underline"},J($(t)("cookie policy link")),1)])]),P("div",rm,[P("button",{onclick:d,class:"mx-1 hover:text-slate-500 dark:hover:text-slate-300"},J($(t)("reject")),1),P("button",{onclick:a,class:"rounded p-2 mx-1 bg-slate-300 hover:bg-slate-400 dark:bg-slate-700 dark:hover:bg-slate-600"},J($(t)("accept")),1)])],512)])):Be("",!0)}}),om={class:"flex justify-center text-sm"},am={class:"flex items-center justify-center"},lm={class:"w-10 h-10 flex items-center justify-center overflow-hidden"},cm=["src"],um={class:"flex-1 ml-2"},fm={class:"font-bold text-base"},dm=pe({__name:"Cookie",setup(e){const{t}=we({messages:{en:{title:"Who wants a cookie?",description:"It appears that you read the cookie policy"},it:{title:"Chi vuole un biscotto?",description:"Sembra che hai letto l'informativa cookie"}}});return(n,s)=>(ne(),ae("div",om,[P("div",am,[P("div",lm,[P("img",{src:$(Xl),alt:"",class:"h-full w-full"},null,8,cm)])]),P("div",um,[P("p",fm,J($(t)("title")),1),P("p",null,J($(t)("description")),1)])]))}}),hm="/assets/future-cbee0ccf.png",pm={class:"flex text-sm"},mm={class:"flex items-center justify-center"},gm={class:"w-10 h-10 flex items-center justify-center overflow-hidden"},vm=["src"],_m={class:"flex-1 ml-2"},ym={class:"font-bold text-base"},xm=pe({__name:"Future",setup(e){const{t}=we({messages:{en:{title:"What a wonderful future",description:"What will happen next?"},it:{title:"Che bello il futuro",description:"Cosa ci riserverà?"}}});return(n,s)=>(ne(),ae("div",pm,[P("div",mm,[P("div",gm,[P("img",{src:$(hm),alt:"",class:"h-full w-full"},null,8,vm)])]),P("div",_m,[P("p",ym,J($(t)("title")),1),P("p",null,J($(t)("description")),1)])]))}}),bm="/assets/sad-334039fc.svg",wm={class:"flex text-sm"},Em={class:"flex items-center justify-center"},Sm={class:"w-10 h-10 flex items-center justify-center overflow-hidden"},Cm=["src"],km={class:"flex-1 ml-2"},Am={class:"font-bold text-base"},Tm=pe({__name:"Something",setup(e){const{t}=we({messages:{en:{title:"You didn't like that?",description:"I hope this one is better"},it:{title:"Non ti piaceva?",description:"Spero che questo sia meglio"}}});return(n,s)=>(ne(),ae("div",wm,[P("div",Em,[P("div",Sm,[P("img",{src:$(bm),alt:"",class:"h-full w-full dark:invert"},null,8,Cm)])]),P("div",km,[P("p",Am,J($(t)("title")),1),P("p",null,J($(t)("description")),1)])]))}}),Pm="/assets/sun-2c52867b.png",Lm={class:"flex text-sm"},Im={class:"flex items-center justify-center"},Om={class:"w-10 h-10 flex items-center justify-center overflow-hidden"},Mm=["src"],Rm={class:"flex-1 ml-2"},Nm={class:"font-bold text-base"},$m=pe({__name:"PictureBright",setup(e){let t={en:{title:"It's bright",description:"I don't like the light"},it:{title:"È luminoso",description:"Non mi piace la luce"}};js().includes("picture-nolights")&&(t.en.description="I don't like the light either",t.it.description="Non mi piace nemmeno la luce");const{t:n}=we({messages:t});return(s,r)=>(ne(),ae("div",Lm,[P("div",Im,[P("div",Om,[P("img",{src:$(Pm),alt:"",class:"h-full w-full"},null,8,Mm)])]),P("div",Rm,[P("p",Nm,J($(n)("title")),1),P("p",null,J($(n)("description")),1)])]))}}),Dm="/assets/moon-907b4d10.png",Fm={class:"flex text-sm"},Bm={class:"flex items-center justify-center"},Hm={class:"w-10 h-10 flex items-center justify-center overflow-hidden"},jm=["src"],Wm={class:"flex-1 ml-2"},Um={class:"font-bold text-base"},Vm=pe({__name:"PictureNoLight",setup(e){let t={en:{title:"It's dark",description:"I don't like the dark"},it:{title:"È buio",description:"Non mi piace il buio"}};js().includes("picture-bright")&&(t.en.description="I don't like the dark either",t.it.description="Non mi piace nemmeno il buio");const{t:n}=we({messages:t});return(s,r)=>(ne(),ae("div",Fm,[P("div",Bm,[P("div",Hm,[P("img",{src:$(Dm),alt:"",class:"h-full w-full"},null,8,jm)])]),P("div",Wm,[P("p",Um,J($(n)("title")),1),P("p",null,J($(n)("description")),1)])]))}}),zm={key:0,class:"fixed top-0 left-0 w-full pointer-events-none z-50"},Gm={class:"flex text-sm"},Km={class:"flex-1"},Ym={class:"mt-1 text-center"},Xm={key:0},qm={key:1},Qm=pe({__name:"EastereggBanner",setup(e,{expose:t}){const n=xe(!1),s=xe(""),r=xe(Jp()),i=xe(Fr()),{t:o}=we({messages:{en:{"easter eggs found":"easter eggs found","all easter eggs found":"You found all easter eggs 🥚"},it:{"easter eggs found":"easter egg trovati","all easter eggs found":"Hai trovato tutti gli easter egg 🥚"}}});let l=null;function a(u){s.value=u,i.value=Fr(),console.log(Fr()),n.value=!0,l&&clearTimeout(l),l=setTimeout(()=>{d()},7e3)}function d(){n.value=!1}return t({show:a}),(u,h)=>n.value?(ne(),ae("div",zm,[P("div",{class:$n(`border rounded-sm mx-auto w-fit max-w-xs md:max-w-md pointer-events-auto
|
||
bg-slate-200/90 border-slate-700 dark:bg-slate-800/90 dark:border-slate-400
|
||
transition-opacity ${n.value?"opacity-100 duration-300 p-3 px-5 my-2":"opacity-0 duration-200"}`),onClick:d},[P("div",Gm,[P("div",Km,[s.value==="cookie"?(ne(),Ke(dm,{key:0})):Be("",!0),s.value==="future"?(ne(),Ke(xm,{key:1})):Be("",!0),s.value==="change-something"?(ne(),Ke(Tm,{key:2})):Be("",!0),s.value==="picture-bright"?(ne(),Ke($m,{key:3})):Be("",!0),s.value==="picture-nolights"?(ne(),Ke(Vm,{key:4})):Be("",!0),P("div",Ym,[i.value!=r.value?(ne(),ae("p",Xm,J(i.value)+"/"+J(r.value)+" "+J($(o)("easter eggs found")),1)):Be("",!0),i.value===r.value?(ne(),ae("p",qm,J($(o)("all easter eggs found")),1)):Be("",!0)])])])],2)])):Be("",!0)}}),Jm={class:"bg-gray-100 text-gray-900 min-h-screen h-full dark:bg-gray-900 dark:text-slate-50",style:{"font-family":"'Comfortaa'","overflow-x":"hidden"}},Zm={style:{"margin-right":"calc(-1 * (100vw - 100%))"}},eg={class:"container mx-auto pb-8 px-3 md:px-8 min-h-screen w-screen flex flex-col"},tg=pe({__name:"App",setup(e){const{t,locale:n}=we({messages:{en:{title_home:"Hello",title_about:"About",title_projects:"Projects",title_resume:"Résumé",title_contacts:"Say hello",log_hello:"Hello 🐡"},it:{title_home:"Ciao",title_about:"Chi sono",title_projects:"Progetti",title_resume:"CV",title_contacts:"Salutami",log_hello:"Ciao 🐡"}}}),s=Rs(),r=xe();return ut(()=>{Yl(),document.addEventListener("easteregg",i=>{r.value.show(i.detail)}),console.log(t("log_hello"))}),At([()=>s.params,n],()=>{document.title=t(`title_${s.name}`)}),(i,o)=>(ne(),ae("div",Jm,[P("div",Zm,[P("div",eg,[X($(Kl))])]),X(sm),X(Qm,{ref_key:"easteregg",ref:r},null,512)]))}}),Gn=pe({__name:"NavLink",props:{to:{type:String,required:!0},label:String},setup(e){const t=e,n=Rs(),s=xe(n.path===t.to);return(r,i)=>{const o=rf("router-link");return ne(),ae("li",null,[X(o,{to:t.to,"aria-current":s.value?"page":null,class:$n(`block py-2 md:p-0 text-right md:text-center
|
||
${s.value?"font-bold text-zinc-900 dark:text-zinc-400":"font-normal hover:underline text-gray-700 dark:text-slate-50"}`)},{default:Re(()=>[Ie(J(t.label),1)]),_:1},8,["to","aria-current","class"])])}}}),ng="/assets/moon-275e1fc7.svg",ig="/assets/sun-d3368bbf.svg",rg={class:"w-5 h-5 flex items-center justify-center"},sg={key:0},og=["src"],ag={key:1},lg=["src"],cg=pe({__name:"ThemeSwitch",setup(e){const t=xe(er());function n(){dh(),t.value=er(),Yl(t.value)}return(s,r)=>(ne(),ae("button",{class:"rounded-full p-1 hover:bg-slate-200 dark:hover:bg-slate-700",onclick:n},[P("div",rg,[t.value==="light"?(ne(),ae("div",sg,[P("img",{src:$(ng),alt:"Dark theme",class:"h-full w-full"},null,8,og)])):Be("",!0),t.value==="dark"?(ne(),ae("div",ag,[P("img",{src:$(ig),alt:"Light theme",class:"invert h-full w-full"},null,8,lg)])):Be("",!0)])]))}});var ug=function(){function e(t,n){n===void 0&&(n=[]),this._eventType=t,this._eventFunctions=n}return e.prototype.init=function(){var t=this;this._eventFunctions.forEach(function(n){typeof window<"u"&&window.addEventListener(t._eventType,n)})},e}(),tr=globalThis&&globalThis.__assign||function(){return tr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},tr.apply(this,arguments)},nr={alwaysOpen:!1,activeClasses:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactiveClasses:"text-gray-500 dark:text-gray-400",onOpen:function(){},onClose:function(){},onToggle:function(){}},_c=function(){function e(t,n){t===void 0&&(t=[]),n===void 0&&(n=nr),this._items=t,this._options=tr(tr({},nr),n),this._init()}return e.prototype._init=function(){var t=this;this._items.length&&this._items.map(function(n){n.active&&t.open(n.id),n.triggerEl.addEventListener("click",function(){t.toggle(n.id)})})},e.prototype.getItem=function(t){return this._items.filter(function(n){return n.id===t})[0]},e.prototype.open=function(t){var n,s,r=this,i=this.getItem(t);this._options.alwaysOpen||this._items.map(function(o){var l,a;o!==i&&((l=o.triggerEl.classList).remove.apply(l,r._options.activeClasses.split(" ")),(a=o.triggerEl.classList).add.apply(a,r._options.inactiveClasses.split(" ")),o.targetEl.classList.add("hidden"),o.triggerEl.setAttribute("aria-expanded","false"),o.active=!1,o.iconEl&&o.iconEl.classList.remove("rotate-180"))}),(n=i.triggerEl.classList).add.apply(n,this._options.activeClasses.split(" ")),(s=i.triggerEl.classList).remove.apply(s,this._options.inactiveClasses.split(" ")),i.triggerEl.setAttribute("aria-expanded","true"),i.targetEl.classList.remove("hidden"),i.active=!0,i.iconEl&&i.iconEl.classList.add("rotate-180"),this._options.onOpen(this,i)},e.prototype.toggle=function(t){var n=this.getItem(t);n.active?this.close(t):this.open(t),this._options.onToggle(this,n)},e.prototype.close=function(t){var n,s,r=this.getItem(t);(n=r.triggerEl.classList).remove.apply(n,this._options.activeClasses.split(" ")),(s=r.triggerEl.classList).add.apply(s,this._options.inactiveClasses.split(" ")),r.targetEl.classList.add("hidden"),r.triggerEl.setAttribute("aria-expanded","false"),r.active=!1,r.iconEl&&r.iconEl.classList.remove("rotate-180"),this._options.onClose(this,r)},e}();typeof window<"u"&&(window.Accordion=_c);function fg(){document.querySelectorAll("[data-accordion]").forEach(function(e){var t=e.getAttribute("data-accordion"),n=e.getAttribute("data-active-classes"),s=e.getAttribute("data-inactive-classes"),r=[];e.querySelectorAll("[data-accordion-target]").forEach(function(i){var o={id:i.getAttribute("data-accordion-target"),triggerEl:i,targetEl:document.querySelector(i.getAttribute("data-accordion-target")),iconEl:i.querySelector("[data-accordion-icon]"),active:i.getAttribute("aria-expanded")==="true"};r.push(o)}),new _c(r,{alwaysOpen:t==="open",activeClasses:n||nr.activeClasses,inactiveClasses:s||nr.inactiveClasses})})}var ir=globalThis&&globalThis.__assign||function(){return ir=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ir.apply(this,arguments)},Ea={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},yc=function(){function e(t,n,s){t===void 0&&(t=null),n===void 0&&(n=null),s===void 0&&(s=Ea),this._targetEl=t,this._triggerEl=n,this._options=ir(ir({},Ea),s),this._visible=!1,this._init()}return e.prototype._init=function(){var t=this;this._triggerEl&&(this._triggerEl.hasAttribute("aria-expanded")?this._visible=this._triggerEl.getAttribute("aria-expanded")==="true":this._visible=!this._targetEl.classList.contains("hidden"),this._triggerEl.addEventListener("click",function(){t._visible?t.collapse():t.expand()}))},e.prototype.collapse=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onCollapse(this)},e.prototype.expand=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onExpand(this)},e.prototype.toggle=function(){this._visible?this.collapse():this.expand()},e}();typeof window<"u"&&(window.Collapse=yc);function xc(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(e){var t=e.getAttribute("data-collapse-toggle"),n=document.getElementById(t);n?new yc(n,e):console.error('The target element with id "'.concat(t,'" does not exist. Please check the data-collapse-toggle attribute.'))})}var an=globalThis&&globalThis.__assign||function(){return an=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},an.apply(this,arguments)},Vi={defaultPosition:0,indicators:{items:[],activeClasses:"bg-white dark:bg-gray-800",inactiveClasses:"bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800"},interval:3e3,onNext:function(){},onPrev:function(){},onChange:function(){}},bc=function(){function e(t,n){t===void 0&&(t=[]),n===void 0&&(n=Vi),this._items=t,this._options=an(an(an({},Vi),n),{indicators:an(an({},Vi.indicators),n.indicators)}),this._activeItem=this.getItem(this._options.defaultPosition),this._indicators=this._options.indicators.items,this._intervalDuration=this._options.interval,this._intervalInstance=null,this._init()}return e.prototype._init=function(){var t=this;this._items.map(function(n){n.el.classList.add("absolute","inset-0","transition-all","transform")}),this._getActiveItem()?this.slideTo(this._getActiveItem().position):this.slideTo(0),this._indicators.map(function(n,s){n.el.addEventListener("click",function(){t.slideTo(s)})})},e.prototype.getItem=function(t){return this._items[t]},e.prototype.slideTo=function(t){var n=this._items[t],s={left:n.position===0?this._items[this._items.length-1]:this._items[n.position-1],middle:n,right:n.position===this._items.length-1?this._items[0]:this._items[n.position+1]};this._rotate(s),this._setActiveItem(n),this._intervalInstance&&(this.pause(),this.cycle()),this._options.onChange(this)},e.prototype.next=function(){var t=this._getActiveItem(),n=null;t.position===this._items.length-1?n=this._items[0]:n=this._items[t.position+1],this.slideTo(n.position),this._options.onNext(this)},e.prototype.prev=function(){var t=this._getActiveItem(),n=null;t.position===0?n=this._items[this._items.length-1]:n=this._items[t.position-1],this.slideTo(n.position),this._options.onPrev(this)},e.prototype._rotate=function(t){this._items.map(function(n){n.el.classList.add("hidden")}),t.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),t.left.el.classList.add("-translate-x-full","z-10"),t.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),t.middle.el.classList.add("translate-x-0","z-20"),t.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),t.right.el.classList.add("translate-x-full","z-10")},e.prototype.cycle=function(){var t=this;typeof window<"u"&&(this._intervalInstance=window.setInterval(function(){t.next()},this._intervalDuration))},e.prototype.pause=function(){clearInterval(this._intervalInstance)},e.prototype._getActiveItem=function(){return this._activeItem},e.prototype._setActiveItem=function(t){var n,s,r=this;this._activeItem=t;var i=t.position;this._indicators.length&&(this._indicators.map(function(o){var l,a;o.el.setAttribute("aria-current","false"),(l=o.el.classList).remove.apply(l,r._options.indicators.activeClasses.split(" ")),(a=o.el.classList).add.apply(a,r._options.indicators.inactiveClasses.split(" "))}),(n=this._indicators[i].el.classList).add.apply(n,this._options.indicators.activeClasses.split(" ")),(s=this._indicators[i].el.classList).remove.apply(s,this._options.indicators.inactiveClasses.split(" ")),this._indicators[i].el.setAttribute("aria-current","true"))},e}();typeof window<"u"&&(window.Carousel=bc);function dg(){document.querySelectorAll("[data-carousel]").forEach(function(e){var t=e.getAttribute("data-carousel-interval"),n=e.getAttribute("data-carousel")==="slide",s=[],r=0;e.querySelectorAll("[data-carousel-item]").length&&Array.from(e.querySelectorAll("[data-carousel-item]")).map(function(d,u){s.push({position:u,el:d}),d.getAttribute("data-carousel-item")==="active"&&(r=u)});var i=[];e.querySelectorAll("[data-carousel-slide-to]").length&&Array.from(e.querySelectorAll("[data-carousel-slide-to]")).map(function(d){i.push({position:parseInt(d.getAttribute("data-carousel-slide-to")),el:d})});var o=new bc(s,{defaultPosition:r,indicators:{items:i},interval:t||Vi.interval});n&&o.cycle();var l=e.querySelector("[data-carousel-next]"),a=e.querySelector("[data-carousel-prev]");l&&l.addEventListener("click",function(){o.next()}),a&&a.addEventListener("click",function(){o.prev()})})}var rr=globalThis&&globalThis.__assign||function(){return rr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},rr.apply(this,arguments)},Sa={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},wc=function(){function e(t,n,s){t===void 0&&(t=null),n===void 0&&(n=null),s===void 0&&(s=Sa),this._targetEl=t,this._triggerEl=n,this._options=rr(rr({},Sa),s),this._init()}return e.prototype._init=function(){var t=this;this._triggerEl&&this._triggerEl.addEventListener("click",function(){t.hide()})},e.prototype.hide=function(){var t=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){t._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)},e}();typeof window<"u"&&(window.Dismiss=wc);function hg(){document.querySelectorAll("[data-dismiss-target]").forEach(function(e){var t=e.getAttribute("data-dismiss-target"),n=document.querySelector(t);n?new wc(n,e):console.error('The dismiss element with id "'.concat(t,'" does not exist. Please check the data-dismiss-target attribute.'))})}var nt="top",lt="bottom",ct="right",it="left",Ws="auto",Ei=[nt,lt,ct,it],On="start",vi="end",pg="clippingParents",Ec="viewport",Kn="popper",mg="reference",Ca=Ei.reduce(function(e,t){return e.concat([t+"-"+On,t+"-"+vi])},[]),Sc=[].concat(Ei,[Ws]).reduce(function(e,t){return e.concat([t,t+"-"+On,t+"-"+vi])},[]),gg="beforeRead",vg="read",_g="afterRead",yg="beforeMain",xg="main",bg="afterMain",wg="beforeWrite",Eg="write",Sg="afterWrite",Cg=[gg,vg,_g,yg,xg,bg,wg,Eg,Sg];function Lt(e){return e?(e.nodeName||"").toLowerCase():null}function ft(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function mn(e){var t=ft(e).Element;return e instanceof t||e instanceof Element}function at(e){var t=ft(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Us(e){if(typeof ShadowRoot>"u")return!1;var t=ft(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function kg(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var s=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!at(i)||!Lt(i)||(Object.assign(i.style,s),Object.keys(r).forEach(function(o){var l=r[o];l===!1?i.removeAttribute(o):i.setAttribute(o,l===!0?"":l)}))})}function Ag(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(s){var r=t.elements[s],i=t.attributes[s]||{},o=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:n[s]),l=o.reduce(function(a,d){return a[d]="",a},{});!at(r)||!Lt(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(a){r.removeAttribute(a)}))})}}const Tg={name:"applyStyles",enabled:!0,phase:"write",fn:kg,effect:Ag,requires:["computeStyles"]};function Tt(e){return e.split("-")[0]}var pn=Math.max,sr=Math.min,Mn=Math.round;function cs(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Cc(){return!/^((?!chrome|android).)*safari/i.test(cs())}function Rn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var s=e.getBoundingClientRect(),r=1,i=1;t&&at(e)&&(r=e.offsetWidth>0&&Mn(s.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Mn(s.height)/e.offsetHeight||1);var o=mn(e)?ft(e):window,l=o.visualViewport,a=!Cc()&&n,d=(s.left+(a&&l?l.offsetLeft:0))/r,u=(s.top+(a&&l?l.offsetTop:0))/i,h=s.width/r,f=s.height/i;return{width:h,height:f,top:u,right:d+h,bottom:u+f,left:d,x:d,y:u}}function Vs(e){var t=Rn(e),n=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:s}}function kc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Us(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function $t(e){return ft(e).getComputedStyle(e)}function Pg(e){return["table","td","th"].indexOf(Lt(e))>=0}function en(e){return((mn(e)?e.ownerDocument:e.document)||window.document).documentElement}function kr(e){return Lt(e)==="html"?e:e.assignedSlot||e.parentNode||(Us(e)?e.host:null)||en(e)}function ka(e){return!at(e)||$t(e).position==="fixed"?null:e.offsetParent}function Lg(e){var t=/firefox/i.test(cs()),n=/Trident/i.test(cs());if(n&&at(e)){var s=$t(e);if(s.position==="fixed")return null}var r=kr(e);for(Us(r)&&(r=r.host);at(r)&&["html","body"].indexOf(Lt(r))<0;){var i=$t(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function Si(e){for(var t=ft(e),n=ka(e);n&&Pg(n)&&$t(n).position==="static";)n=ka(n);return n&&(Lt(n)==="html"||Lt(n)==="body"&&$t(n).position==="static")?t:n||Lg(e)||t}function zs(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ni(e,t,n){return pn(e,sr(t,n))}function Ig(e,t,n){var s=ni(e,t,n);return s>n?n:s}function Ac(){return{top:0,right:0,bottom:0,left:0}}function Tc(e){return Object.assign({},Ac(),e)}function Pc(e,t){return t.reduce(function(n,s){return n[s]=e,n},{})}var Og=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Tc(typeof t!="number"?t:Pc(t,Ei))};function Mg(e){var t,n=e.state,s=e.name,r=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,l=Tt(n.placement),a=zs(l),d=[it,ct].indexOf(l)>=0,u=d?"height":"width";if(!(!i||!o)){var h=Og(r.padding,n),f=Vs(i),c=a==="y"?nt:it,m=a==="y"?lt:ct,p=n.rects.reference[u]+n.rects.reference[a]-o[a]-n.rects.popper[u],_=o[a]-n.rects.reference[a],v=Si(i),S=v?a==="y"?v.clientHeight||0:v.clientWidth||0:0,C=p/2-_/2,g=h[c],y=S-f[u]-h[m],b=S/2-f[u]/2+C,w=ni(g,b,y),L=a;n.modifiersData[s]=(t={},t[L]=w,t.centerOffset=w-b,t)}}function Rg(e){var t=e.state,n=e.options,s=n.element,r=s===void 0?"[data-popper-arrow]":s;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||kc(t.elements.popper,r)&&(t.elements.arrow=r))}const Ng={name:"arrow",enabled:!0,phase:"main",fn:Mg,effect:Rg,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nn(e){return e.split("-")[1]}var $g={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Dg(e){var t=e.x,n=e.y,s=window,r=s.devicePixelRatio||1;return{x:Mn(t*r)/r||0,y:Mn(n*r)/r||0}}function Aa(e){var t,n=e.popper,s=e.popperRect,r=e.placement,i=e.variation,o=e.offsets,l=e.position,a=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,h=e.isFixed,f=o.x,c=f===void 0?0:f,m=o.y,p=m===void 0?0:m,_=typeof u=="function"?u({x:c,y:p}):{x:c,y:p};c=_.x,p=_.y;var v=o.hasOwnProperty("x"),S=o.hasOwnProperty("y"),C=it,g=nt,y=window;if(d){var b=Si(n),w="clientHeight",L="clientWidth";if(b===ft(n)&&(b=en(n),$t(b).position!=="static"&&l==="absolute"&&(w="scrollHeight",L="scrollWidth")),b=b,r===nt||(r===it||r===ct)&&i===vi){g=lt;var T=h&&b===y&&y.visualViewport?y.visualViewport.height:b[w];p-=T-s.height,p*=a?1:-1}if(r===it||(r===nt||r===lt)&&i===vi){C=ct;var O=h&&b===y&&y.visualViewport?y.visualViewport.width:b[L];c-=O-s.width,c*=a?1:-1}}var I=Object.assign({position:l},d&&$g),N=u===!0?Dg({x:c,y:p}):{x:c,y:p};if(c=N.x,p=N.y,a){var F;return Object.assign({},I,(F={},F[g]=S?"0":"",F[C]=v?"0":"",F.transform=(y.devicePixelRatio||1)<=1?"translate("+c+"px, "+p+"px)":"translate3d("+c+"px, "+p+"px, 0)",F))}return Object.assign({},I,(t={},t[g]=S?p+"px":"",t[C]=v?c+"px":"",t.transform="",t))}function Fg(e){var t=e.state,n=e.options,s=n.gpuAcceleration,r=s===void 0?!0:s,i=n.adaptive,o=i===void 0?!0:i,l=n.roundOffsets,a=l===void 0?!0:l,d={placement:Tt(t.placement),variation:Nn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Aa(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Aa(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Bg={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fg,data:{}};var Mi={passive:!0};function Hg(e){var t=e.state,n=e.instance,s=e.options,r=s.scroll,i=r===void 0?!0:r,o=s.resize,l=o===void 0?!0:o,a=ft(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",n.update,Mi)}),l&&a.addEventListener("resize",n.update,Mi),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",n.update,Mi)}),l&&a.removeEventListener("resize",n.update,Mi)}}const jg={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Hg,data:{}};var Wg={left:"right",right:"left",bottom:"top",top:"bottom"};function zi(e){return e.replace(/left|right|bottom|top/g,function(t){return Wg[t]})}var Ug={start:"end",end:"start"};function Ta(e){return e.replace(/start|end/g,function(t){return Ug[t]})}function Gs(e){var t=ft(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function Ks(e){return Rn(en(e)).left+Gs(e).scrollLeft}function Vg(e,t){var n=ft(e),s=en(e),r=n.visualViewport,i=s.clientWidth,o=s.clientHeight,l=0,a=0;if(r){i=r.width,o=r.height;var d=Cc();(d||!d&&t==="fixed")&&(l=r.offsetLeft,a=r.offsetTop)}return{width:i,height:o,x:l+Ks(e),y:a}}function zg(e){var t,n=en(e),s=Gs(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=pn(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=pn(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-s.scrollLeft+Ks(e),a=-s.scrollTop;return $t(r||n).direction==="rtl"&&(l+=pn(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,x:l,y:a}}function Ys(e){var t=$t(e),n=t.overflow,s=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+s)}function Lc(e){return["html","body","#document"].indexOf(Lt(e))>=0?e.ownerDocument.body:at(e)&&Ys(e)?e:Lc(kr(e))}function ii(e,t){var n;t===void 0&&(t=[]);var s=Lc(e),r=s===((n=e.ownerDocument)==null?void 0:n.body),i=ft(s),o=r?[i].concat(i.visualViewport||[],Ys(s)?s:[]):s,l=t.concat(o);return r?l:l.concat(ii(kr(o)))}function us(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Gg(e,t){var n=Rn(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Pa(e,t,n){return t===Ec?us(Vg(e,n)):mn(t)?Gg(t,n):us(zg(en(e)))}function Kg(e){var t=ii(kr(e)),n=["absolute","fixed"].indexOf($t(e).position)>=0,s=n&&at(e)?Si(e):e;return mn(s)?t.filter(function(r){return mn(r)&&kc(r,s)&&Lt(r)!=="body"}):[]}function Yg(e,t,n,s){var r=t==="clippingParents"?Kg(e):[].concat(t),i=[].concat(r,[n]),o=i[0],l=i.reduce(function(a,d){var u=Pa(e,d,s);return a.top=pn(u.top,a.top),a.right=sr(u.right,a.right),a.bottom=sr(u.bottom,a.bottom),a.left=pn(u.left,a.left),a},Pa(e,o,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ic(e){var t=e.reference,n=e.element,s=e.placement,r=s?Tt(s):null,i=s?Nn(s):null,o=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(r){case nt:a={x:o,y:t.y-n.height};break;case lt:a={x:o,y:t.y+t.height};break;case ct:a={x:t.x+t.width,y:l};break;case it:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var d=r?zs(r):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case On:a[d]=a[d]-(t[u]/2-n[u]/2);break;case vi:a[d]=a[d]+(t[u]/2-n[u]/2);break}}return a}function _i(e,t){t===void 0&&(t={});var n=t,s=n.placement,r=s===void 0?e.placement:s,i=n.strategy,o=i===void 0?e.strategy:i,l=n.boundary,a=l===void 0?pg:l,d=n.rootBoundary,u=d===void 0?Ec:d,h=n.elementContext,f=h===void 0?Kn:h,c=n.altBoundary,m=c===void 0?!1:c,p=n.padding,_=p===void 0?0:p,v=Tc(typeof _!="number"?_:Pc(_,Ei)),S=f===Kn?mg:Kn,C=e.rects.popper,g=e.elements[m?S:f],y=Yg(mn(g)?g:g.contextElement||en(e.elements.popper),a,u,o),b=Rn(e.elements.reference),w=Ic({reference:b,element:C,strategy:"absolute",placement:r}),L=us(Object.assign({},C,w)),T=f===Kn?L:b,O={top:y.top-T.top+v.top,bottom:T.bottom-y.bottom+v.bottom,left:y.left-T.left+v.left,right:T.right-y.right+v.right},I=e.modifiersData.offset;if(f===Kn&&I){var N=I[r];Object.keys(O).forEach(function(F){var z=[ct,lt].indexOf(F)>=0?1:-1,Q=[nt,lt].indexOf(F)>=0?"y":"x";O[F]+=N[Q]*z})}return O}function Xg(e,t){t===void 0&&(t={});var n=t,s=n.placement,r=n.boundary,i=n.rootBoundary,o=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,d=a===void 0?Sc:a,u=Nn(s),h=u?l?Ca:Ca.filter(function(m){return Nn(m)===u}):Ei,f=h.filter(function(m){return d.indexOf(m)>=0});f.length===0&&(f=h);var c=f.reduce(function(m,p){return m[p]=_i(e,{placement:p,boundary:r,rootBoundary:i,padding:o})[Tt(p)],m},{});return Object.keys(c).sort(function(m,p){return c[m]-c[p]})}function qg(e){if(Tt(e)===Ws)return[];var t=zi(e);return[Ta(e),t,Ta(t)]}function Qg(e){var t=e.state,n=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,l=o===void 0?!0:o,a=n.fallbackPlacements,d=n.padding,u=n.boundary,h=n.rootBoundary,f=n.altBoundary,c=n.flipVariations,m=c===void 0?!0:c,p=n.allowedAutoPlacements,_=t.options.placement,v=Tt(_),S=v===_,C=a||(S||!m?[zi(_)]:qg(_)),g=[_].concat(C).reduce(function(ke,B){return ke.concat(Tt(B)===Ws?Xg(t,{placement:B,boundary:u,rootBoundary:h,padding:d,flipVariations:m,allowedAutoPlacements:p}):B)},[]),y=t.rects.reference,b=t.rects.popper,w=new Map,L=!0,T=g[0],O=0;O<g.length;O++){var I=g[O],N=Tt(I),F=Nn(I)===On,z=[nt,lt].indexOf(N)>=0,Q=z?"width":"height",U=_i(t,{placement:I,boundary:u,rootBoundary:h,altBoundary:f,padding:d}),q=z?F?ct:it:F?lt:nt;y[Q]>b[Q]&&(q=zi(q));var te=zi(q),re=[];if(i&&re.push(U[N]<=0),l&&re.push(U[q]<=0,U[te]<=0),re.every(function(ke){return ke})){T=I,L=!1;break}w.set(I,re)}if(L)for(var me=m?3:1,de=function(B){var Y=g.find(function(K){var ee=w.get(K);if(ee)return ee.slice(0,B).every(function(le){return le})});if(Y)return T=Y,"break"},ue=me;ue>0;ue--){var ve=de(ue);if(ve==="break")break}t.placement!==T&&(t.modifiersData[s]._skip=!0,t.placement=T,t.reset=!0)}}const Jg={name:"flip",enabled:!0,phase:"main",fn:Qg,requiresIfExists:["offset"],data:{_skip:!1}};function La(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ia(e){return[nt,ct,lt,it].some(function(t){return e[t]>=0})}function Zg(e){var t=e.state,n=e.name,s=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,o=_i(t,{elementContext:"reference"}),l=_i(t,{altBoundary:!0}),a=La(o,s),d=La(l,r,i),u=Ia(a),h=Ia(d);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const ev={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zg};function tv(e,t,n){var s=Tt(e),r=[it,nt].indexOf(s)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],l=i[1];return o=o||0,l=(l||0)*r,[it,ct].indexOf(s)>=0?{x:l,y:o}:{x:o,y:l}}function nv(e){var t=e.state,n=e.options,s=e.name,r=n.offset,i=r===void 0?[0,0]:r,o=Sc.reduce(function(u,h){return u[h]=tv(h,t.rects,i),u},{}),l=o[t.placement],a=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=d),t.modifiersData[s]=o}const iv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:nv};function rv(e){var t=e.state,n=e.name;t.modifiersData[n]=Ic({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const sv={name:"popperOffsets",enabled:!0,phase:"read",fn:rv,data:{}};function ov(e){return e==="x"?"y":"x"}function av(e){var t=e.state,n=e.options,s=e.name,r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,l=o===void 0?!1:o,a=n.boundary,d=n.rootBoundary,u=n.altBoundary,h=n.padding,f=n.tether,c=f===void 0?!0:f,m=n.tetherOffset,p=m===void 0?0:m,_=_i(t,{boundary:a,rootBoundary:d,padding:h,altBoundary:u}),v=Tt(t.placement),S=Nn(t.placement),C=!S,g=zs(v),y=ov(g),b=t.modifiersData.popperOffsets,w=t.rects.reference,L=t.rects.popper,T=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,O=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(b){if(i){var F,z=g==="y"?nt:it,Q=g==="y"?lt:ct,U=g==="y"?"height":"width",q=b[g],te=q+_[z],re=q-_[Q],me=c?-L[U]/2:0,de=S===On?w[U]:L[U],ue=S===On?-L[U]:-w[U],ve=t.elements.arrow,ke=c&&ve?Vs(ve):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ac(),Y=B[z],K=B[Q],ee=ni(0,w[U],ke[U]),le=C?w[U]/2-me-ee-Y-O.mainAxis:de-ee-Y-O.mainAxis,ye=C?-w[U]/2+me+ee+K+O.mainAxis:ue+ee+K+O.mainAxis,oe=t.elements.arrow&&Si(t.elements.arrow),k=oe?g==="y"?oe.clientTop||0:oe.clientLeft||0:0,x=(F=I==null?void 0:I[g])!=null?F:0,E=q+le-x-k,A=q+ye-x,M=ni(c?sr(te,E):te,q,c?pn(re,A):re);b[g]=M,N[g]=M-q}if(l){var H,W=g==="x"?nt:it,V=g==="x"?lt:ct,G=b[y],j=y==="y"?"height":"width",R=G+_[W],D=G-_[V],ie=[nt,it].indexOf(v)!==-1,se=(H=I==null?void 0:I[y])!=null?H:0,he=ie?R:G-w[j]-L[j]-se+O.altAxis,Ee=ie?G+w[j]+L[j]-se-O.altAxis:D,_e=c&&ie?Ig(he,G,Ee):ni(c?he:R,G,c?Ee:D);b[y]=_e,N[y]=_e-G}t.modifiersData[s]=N}}const lv={name:"preventOverflow",enabled:!0,phase:"main",fn:av,requiresIfExists:["offset"]};function cv(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function uv(e){return e===ft(e)||!at(e)?Gs(e):cv(e)}function fv(e){var t=e.getBoundingClientRect(),n=Mn(t.width)/e.offsetWidth||1,s=Mn(t.height)/e.offsetHeight||1;return n!==1||s!==1}function dv(e,t,n){n===void 0&&(n=!1);var s=at(t),r=at(t)&&fv(t),i=en(t),o=Rn(e,r,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(s||!s&&!n)&&((Lt(t)!=="body"||Ys(i))&&(l=uv(t)),at(t)?(a=Rn(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):i&&(a.x=Ks(i))),{x:o.left+l.scrollLeft-a.x,y:o.top+l.scrollTop-a.y,width:o.width,height:o.height}}function hv(e){var t=new Map,n=new Set,s=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&r(a)}}),s.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),s}function pv(e){var t=hv(e);return Cg.reduce(function(n,s){return n.concat(t.filter(function(r){return r.phase===s}))},[])}function mv(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function gv(e){var t=e.reduce(function(n,s){var r=n[s.name];return n[s.name]=r?Object.assign({},r,s,{options:Object.assign({},r.options,s.options),data:Object.assign({},r.data,s.data)}):s,n},{});return Object.keys(t).map(function(n){return t[n]})}var Oa={placement:"bottom",modifiers:[],strategy:"absolute"};function Ma(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function vv(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,s=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?Oa:r;return function(l,a,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Oa,i),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},h=[],f=!1,c={state:u,setOptions:function(v){var S=typeof v=="function"?v(u.options):v;p(),u.options=Object.assign({},i,u.options,S),u.scrollParents={reference:mn(l)?ii(l):l.contextElement?ii(l.contextElement):[],popper:ii(a)};var C=pv(gv([].concat(s,u.options.modifiers)));return u.orderedModifiers=C.filter(function(g){return g.enabled}),m(),c.update()},forceUpdate:function(){if(!f){var v=u.elements,S=v.reference,C=v.popper;if(Ma(S,C)){u.rects={reference:dv(S,Si(C),u.options.strategy==="fixed"),popper:Vs(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.data)});for(var g=0;g<u.orderedModifiers.length;g++){if(u.reset===!0){u.reset=!1,g=-1;continue}var y=u.orderedModifiers[g],b=y.fn,w=y.options,L=w===void 0?{}:w,T=y.name;typeof b=="function"&&(u=b({state:u,options:L,name:T,instance:c})||u)}}}},update:mv(function(){return new Promise(function(_){c.forceUpdate(),_(u)})}),destroy:function(){p(),f=!0}};if(!Ma(l,a))return c;c.setOptions(d).then(function(_){!f&&d.onFirstUpdate&&d.onFirstUpdate(_)});function m(){u.orderedModifiers.forEach(function(_){var v=_.name,S=_.options,C=S===void 0?{}:S,g=_.effect;if(typeof g=="function"){var y=g({state:u,name:v,instance:c,options:C}),b=function(){};h.push(y||b)}})}function p(){h.forEach(function(_){return _()}),h=[]}return c}}var _v=[jg,sv,Bg,Tg,iv,Jg,lv,Ng,ev],Xs=vv({defaultModifiers:_v}),Ut=globalThis&&globalThis.__assign||function(){return Ut=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ut.apply(this,arguments)},Ri=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var s=0,r=t.length,i;s<r;s++)(i||!(s in t))&&(i||(i=Array.prototype.slice.call(t,0,s)),i[s]=t[s]);return e.concat(i||Array.prototype.slice.call(t))},ri={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,onShow:function(){},onHide:function(){}},Oc=function(){function e(t,n,s){t===void 0&&(t=null),n===void 0&&(n=null),s===void 0&&(s=ri),this._targetEl=t,this._triggerEl=n,this._options=Ut(Ut({},ri),s),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return e.prototype._init=function(){var t=this;this._triggerEl&&this._triggerEl.addEventListener("click",function(){t.toggle()})},e.prototype._createPopperInstance=function(){return Xs(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},e.prototype._setupClickOutsideListener=function(){var t=this;this._clickOutsideEventListener=function(n){t._handleClickOutside(n,t._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._handleClickOutside=function(t,n){var s=t.target;s!==n&&!n.contains(s)&&!this._triggerEl.contains(s)&&this._visible&&this.hide()},e.prototype.toggle=function(){this._visible?this.hide():this.show()},e.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._popperInstance.setOptions(function(t){return Ut(Ut({},t),{modifiers:Ri(Ri([],t.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},e.prototype.hide=function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._popperInstance.setOptions(function(t){return Ut(Ut({},t),{modifiers:Ri(Ri([],t.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},e}();typeof window<"u"&&(window.Dropdown=Oc);function Mc(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(e){var t=e.getAttribute("data-dropdown-toggle"),n=document.getElementById(t);if(n){var s=e.getAttribute("data-dropdown-placement"),r=e.getAttribute("data-dropdown-offset-skidding"),i=e.getAttribute("data-dropdown-offset-distance");new Oc(n,e,{placement:s||ri.placement,offsetSkidding:r?parseInt(r):ri.offsetSkidding,offsetDistance:i?parseInt(i):ri.offsetDistance})}else console.error('The dropdown element with id "'.concat(t,'" does not exist. Please check the data-dropdown-toggle attribute.'))})}var or=globalThis&&globalThis.__assign||function(){return or=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},or.apply(this,arguments)},bn={placement:"center",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-40",backdrop:"dynamic",onHide:function(){},onShow:function(){},onToggle:function(){}},fs=function(){function e(t,n){t===void 0&&(t=null),n===void 0&&(n=bn),this._targetEl=t,this._options=or(or({},bn),n),this._isHidden=!0,this._backdropEl=null,this._init()}return e.prototype._init=function(){var t=this;this._targetEl&&this._getPlacementClasses().map(function(n){t._targetEl.classList.add(n)})},e.prototype._createBackdrop=function(){var t;if(this._isHidden){var n=document.createElement("div");n.setAttribute("modal-backdrop",""),(t=n.classList).add.apply(t,this._options.backdropClasses.split(" ")),document.querySelector("body").append(n),this._backdropEl=n}},e.prototype._destroyBackdropEl=function(){this._isHidden||document.querySelector("[modal-backdrop]").remove()},e.prototype._setupModalCloseEventListeners=function(){var t=this;this._options.backdrop==="dynamic"&&(this._clickOutsideEventListener=function(n){t._handleOutsideClick(n.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0)),this._keydownEventListener=function(n){n.key==="Escape"&&t.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},e.prototype._removeModalCloseEventListeners=function(){this._options.backdrop==="dynamic"&&this._targetEl.removeEventListener("click",this._clickOutsideEventListener,!0),document.body.removeEventListener("keydown",this._keydownEventListener,!0)},e.prototype._handleOutsideClick=function(t){(t===this._targetEl||t===this._backdropEl&&this.isVisible())&&this.hide()},e.prototype._getPlacementClasses=function(){switch(this._options.placement){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"];default:return["justify-center","items-center"]}},e.prototype.toggle=function(){this._isHidden?this.show():this.hide(),this._options.onToggle(this)},e.prototype.show=function(){this.isHidden&&(this._targetEl.classList.add("flex"),this._targetEl.classList.remove("hidden"),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._createBackdrop(),this._isHidden=!1,document.body.classList.add("overflow-hidden"),this._setupModalCloseEventListeners(),this._options.onShow(this))},e.prototype.hide=function(){this.isVisible&&(this._targetEl.classList.add("hidden"),this._targetEl.classList.remove("flex"),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._destroyBackdropEl(),this._isHidden=!0,document.body.classList.remove("overflow-hidden"),this._removeModalCloseEventListeners(),this._options.onHide(this))},e.prototype.isVisible=function(){return!this._isHidden},e.prototype.isHidden=function(){return this._isHidden},e}();typeof window<"u"&&(window.Modal=fs);var Ni=function(e,t){return t.some(function(n){return n.id===e})?t.find(function(n){return n.id===e}):null};function yv(){var e=[];document.querySelectorAll("[data-modal-target]").forEach(function(t){var n=t.getAttribute("data-modal-target"),s=document.getElementById(n);if(s){var r=s.getAttribute("data-modal-placement"),i=s.getAttribute("data-modal-backdrop");Ni(n,e)||e.push({id:n,object:new fs(s,{placement:r||bn.placement,backdrop:i||bn.backdrop})})}else console.error("Modal with id ".concat(n," does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?."))}),document.querySelectorAll("[data-modal-toggle]").forEach(function(t){var n=t.getAttribute("data-modal-toggle"),s=document.getElementById(n);if(s){var r=s.getAttribute("data-modal-placement"),i=s.getAttribute("data-modal-backdrop"),o=Ni(n,e);o||(o={id:n,object:new fs(s,{placement:r||bn.placement,backdrop:i||bn.backdrop})},e.push(o)),t.addEventListener("click",function(){o.object.toggle()})}else console.error("Modal with id ".concat(n," does not exist. Are you sure that the data-modal-toggle attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-show]").forEach(function(t){var n=t.getAttribute("data-modal-show"),s=document.getElementById(n);if(s){var r=Ni(n,e);r?t.addEventListener("click",function(){r.object.isHidden&&r.object.show()}):console.error("Modal with id ".concat(n," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(n," does not exist. Are you sure that the data-modal-show attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-hide]").forEach(function(t){var n=t.getAttribute("data-modal-hide"),s=document.getElementById(n);if(s){var r=Ni(n,e);r?t.addEventListener("click",function(){r.object.isVisible&&r.object.hide()}):console.error("Modal with id ".concat(n," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(n," does not exist. Are you sure that the data-modal-hide attribute points to the correct modal id?"))})}var ar=globalThis&&globalThis.__assign||function(){return ar=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ar.apply(this,arguments)},ln={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-30",onShow:function(){},onHide:function(){},onToggle:function(){}},Rc=function(){function e(t,n){t===void 0&&(t=null),n===void 0&&(n=ln),this._targetEl=t,this._options=ar(ar({},ln),n),this._visible=!1,this._init()}return e.prototype._init=function(){var t=this;this._targetEl&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform")),this._getPlacementClasses(this._options.placement).base.map(function(n){t._targetEl.classList.add(n)}),document.addEventListener("keydown",function(n){n.key==="Escape"&&t.isVisible()&&t.hide()})},e.prototype.hide=function(){var t=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(n){t._targetEl.classList.remove(n)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(n){t._targetEl.classList.add(n)})):(this._getPlacementClasses(this._options.placement).active.map(function(n){t._targetEl.classList.remove(n)}),this._getPlacementClasses(this._options.placement).inactive.map(function(n){t._targetEl.classList.add(n)})),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._options.bodyScrolling||document.body.classList.remove("overflow-hidden"),this._options.backdrop&&this._destroyBackdropEl(),this._visible=!1,this._options.onHide(this)},e.prototype.show=function(){var t=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(n){t._targetEl.classList.add(n)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(n){t._targetEl.classList.remove(n)})):(this._getPlacementClasses(this._options.placement).active.map(function(n){t._targetEl.classList.add(n)}),this._getPlacementClasses(this._options.placement).inactive.map(function(n){t._targetEl.classList.remove(n)})),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._options.bodyScrolling||document.body.classList.add("overflow-hidden"),this._options.backdrop&&this._createBackdrop(),this._visible=!0,this._options.onShow(this)},e.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},e.prototype._createBackdrop=function(){var t,n=this;if(!this._visible){var s=document.createElement("div");s.setAttribute("drawer-backdrop",""),(t=s.classList).add.apply(t,this._options.backdropClasses.split(" ")),document.querySelector("body").append(s),s.addEventListener("click",function(){n.hide()})}},e.prototype._destroyBackdropEl=function(){this._visible&&document.querySelector("[drawer-backdrop]").remove()},e.prototype._getPlacementClasses=function(t){switch(t){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]};default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]}}},e.prototype.isHidden=function(){return!this._visible},e.prototype.isVisible=function(){return this._visible},e}();typeof window<"u"&&(window.Drawer=Rc);var $i=function(e,t){if(t.some(function(n){return n.id===e}))return t.find(function(n){return n.id===e})};function xv(){var e=[];document.querySelectorAll("[data-drawer-target]").forEach(function(t){var n=t.getAttribute("data-drawer-target"),s=document.getElementById(n);if(s){var r=t.getAttribute("data-drawer-placement"),i=t.getAttribute("data-drawer-body-scrolling"),o=t.getAttribute("data-drawer-backdrop"),l=t.getAttribute("data-drawer-edge"),a=t.getAttribute("data-drawer-edge-offset");$i(n,e)||e.push({id:n,object:new Rc(s,{placement:r||ln.placement,bodyScrolling:i?i==="true":ln.bodyScrolling,backdrop:o?o==="true":ln.backdrop,edge:l?l==="true":ln.edge,edgeOffset:a||ln.edgeOffset})})}else console.error("Drawer with id ".concat(n," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-toggle]").forEach(function(t){var n=t.getAttribute("data-drawer-toggle"),s=document.getElementById(n);if(s){var r=$i(n,e);r?t.addEventListener("click",function(){r.object.toggle()}):console.error("Drawer with id ".concat(n," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(n," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-dismiss], [data-drawer-hide]").forEach(function(t){var n=t.getAttribute("data-drawer-dismiss")?t.getAttribute("data-drawer-dismiss"):t.getAttribute("data-drawer-hide"),s=document.getElementById(n);if(s){var r=$i(n,e);r?t.addEventListener("click",function(){r.object.hide()}):console.error("Drawer with id ".concat(n," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(n," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id"))}),document.querySelectorAll("[data-drawer-show]").forEach(function(t){var n=t.getAttribute("data-drawer-show"),s=document.getElementById(n);if(s){var r=$i(n,e);r?t.addEventListener("click",function(){r.object.show()}):console.error("Drawer with id ".concat(n," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(n," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})}var lr=globalThis&&globalThis.__assign||function(){return lr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},lr.apply(this,arguments)},Ra={defaultTabId:null,activeClasses:"text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",inactiveClasses:"dark:border-transparent text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300",onShow:function(){}},Nc=function(){function e(t,n){t===void 0&&(t=[]),n===void 0&&(n=Ra),this._items=t,this._activeTab=n?this.getTab(n.defaultTabId):null,this._options=lr(lr({},Ra),n),this._init()}return e.prototype._init=function(){var t=this;this._items.length&&(this._activeTab||this._setActiveTab(this._items[0]),this.show(this._activeTab.id,!0),this._items.map(function(n){n.triggerEl.addEventListener("click",function(){t.show(n.id)})}))},e.prototype.getActiveTab=function(){return this._activeTab},e.prototype._setActiveTab=function(t){this._activeTab=t},e.prototype.getTab=function(t){return this._items.filter(function(n){return n.id===t})[0]},e.prototype.show=function(t,n){var s,r,i=this;n===void 0&&(n=!1);var o=this.getTab(t);o===this._activeTab&&!n||(this._items.map(function(l){var a,d;l!==o&&((a=l.triggerEl.classList).remove.apply(a,i._options.activeClasses.split(" ")),(d=l.triggerEl.classList).add.apply(d,i._options.inactiveClasses.split(" ")),l.targetEl.classList.add("hidden"),l.triggerEl.setAttribute("aria-selected","false"))}),(s=o.triggerEl.classList).add.apply(s,this._options.activeClasses.split(" ")),(r=o.triggerEl.classList).remove.apply(r,this._options.inactiveClasses.split(" ")),o.triggerEl.setAttribute("aria-selected","true"),o.targetEl.classList.remove("hidden"),this._setActiveTab(o),this._options.onShow(this,o))},e}();typeof window<"u"&&(window.Tabs=Nc);function bv(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(e){var t=[],n=null;e.querySelectorAll('[role="tab"]').forEach(function(s){var r=s.getAttribute("aria-selected")==="true",i={id:s.getAttribute("data-tabs-target"),triggerEl:s,targetEl:document.querySelector(s.getAttribute("data-tabs-target"))};t.push(i),r&&(n=i.id)}),new Nc(t,{defaultTabId:n})})}var Vt=globalThis&&globalThis.__assign||function(){return Vt=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Vt.apply(this,arguments)},Di=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var s=0,r=t.length,i;s<r;s++)(i||!(s in t))&&(i||(i=Array.prototype.slice.call(t,0,s)),i[s]=t[s]);return e.concat(i||Array.prototype.slice.call(t))},cr={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){}},$c=function(){function e(t,n,s){t===void 0&&(t=null),n===void 0&&(n=null),s===void 0&&(s=cr),this._targetEl=t,this._triggerEl=n,this._options=Vt(Vt({},cr),s),this._popperInstance=this._createPopperInstance(),this._init()}return e.prototype._init=function(){var t=this;if(this._triggerEl){var n=this._getTriggerEvents();n.showEvents.forEach(function(s){t._triggerEl.addEventListener(s,function(){t.show()})}),n.hideEvents.forEach(function(s){t._triggerEl.addEventListener(s,function(){t.hide()})})}},e.prototype._createPopperInstance=function(){return Xs(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})},e.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},e.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(t){return Vt(Vt({},t),{modifiers:Di(Di([],t.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._popperInstance.update(),this._options.onShow(this)},e.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(t){return Vt(Vt({},t),{modifiers:Di(Di([],t.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._options.onHide(this)},e}();typeof window<"u"&&(window.Tooltip=$c);function Dc(){document.querySelectorAll("[data-tooltip-target]").forEach(function(e){var t=e.getAttribute("data-tooltip-target"),n=document.getElementById(t);if(n){var s=e.getAttribute("data-tooltip-trigger"),r=e.getAttribute("data-tooltip-placement");new $c(n,e,{placement:r||cr.placement,triggerType:s||cr.triggerType})}else console.error('The tooltip element with id "'.concat(t,'" does not exist. Please check the data-tooltip-target attribute.'))})}var zt=globalThis&&globalThis.__assign||function(){return zt=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},zt.apply(this,arguments)},Fi=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var s=0,r=t.length,i;s<r;s++)(i||!(s in t))&&(i||(i=Array.prototype.slice.call(t,0,s)),i[s]=t[s]);return e.concat(i||Array.prototype.slice.call(t))},si={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){}},Fc=function(){function e(t,n,s){t===void 0&&(t=null),n===void 0&&(n=null),s===void 0&&(s=si),this._targetEl=t,this._triggerEl=n,this._options=zt(zt({},si),s),this._popperInstance=this._createPopperInstance(),this._init()}return e.prototype._init=function(){var t=this;if(this._triggerEl){var n=this._getTriggerEvents();n.showEvents.forEach(function(s){t._triggerEl.addEventListener(s,function(){t.show()}),t._targetEl.addEventListener(s,function(){t.show()})}),n.hideEvents.forEach(function(s){t._triggerEl.addEventListener(s,function(){setTimeout(function(){t._targetEl.matches(":hover")||t.hide()},100)}),t._targetEl.addEventListener(s,function(){setTimeout(function(){t._triggerEl.matches(":hover")||t.hide()},100)})})}},e.prototype._createPopperInstance=function(){return Xs(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})},e.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},e.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(t){return zt(zt({},t),{modifiers:Fi(Fi([],t.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._popperInstance.update(),this._options.onShow(this)},e.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(t){return zt(zt({},t),{modifiers:Fi(Fi([],t.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._options.onHide(this)},e}();typeof window<"u"&&(window.Popover=Fc);function Bc(){document.querySelectorAll("[data-popover-target]").forEach(function(e){var t=e.getAttribute("data-popover-target"),n=document.getElementById(t);if(n){var s=e.getAttribute("data-popover-trigger"),r=e.getAttribute("data-popover-placement"),i=e.getAttribute("data-popover-offset");new Fc(n,e,{placement:r||si.placement,offset:i?parseInt(i):si.offset,triggerType:s||si.triggerType})}else console.error('The popover element with id "'.concat(t,'" does not exist. Please check the data-popover-target attribute.'))})}var ur=globalThis&&globalThis.__assign||function(){return ur=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ur.apply(this,arguments)},ds={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},Hc=function(){function e(t,n,s,r){t===void 0&&(t=null),n===void 0&&(n=null),s===void 0&&(s=null),r===void 0&&(r=ds),this._parentEl=t,this._triggerEl=n,this._targetEl=s,this._options=ur(ur({},ds),r),this._visible=!1,this._init()}return e.prototype._init=function(){var t=this;if(this._triggerEl){var n=this._getTriggerEventTypes(this._options.triggerType);n.show.forEach(function(s){t._triggerEl.addEventListener(s,function(){t.show()}),t._targetEl.addEventListener(s,function(){t.show()})}),n.hide.forEach(function(s){t._parentEl.addEventListener(s,function(){setTimeout(function(){t._parentEl.matches(":hover")||t.hide()},100)})})}},e.prototype.hide=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onHide(this)},e.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onShow(this)},e.prototype.toggle=function(){this._visible?this.hide():this.show()},e.prototype.isHidden=function(){return!this._visible},e.prototype.isVisible=function(){return this._visible},e.prototype._getTriggerEventTypes=function(t){switch(t){case"hover":return{show:["mouseenter","focus"],hide:["mouseleave","blur"]};case"click":return{show:["click","focus"],hide:["focusout","blur"]};default:return{show:["mouseenter","focus"],hide:["mouseleave","blur"]}}},e}();typeof window<"u"&&(window.Dial=Hc);function wv(){document.querySelectorAll("[data-dial-init]").forEach(function(e){var t=e.querySelector("[data-dial-toggle]");if(t){var n=t.getAttribute("data-dial-toggle"),s=document.getElementById(n);if(s){var r=t.getAttribute("data-dial-trigger");new Hc(e,t,s,{triggerType:r||ds.triggerType})}else console.error("Dial with id ".concat(n," does not exist. Are you sure that the data-dial-toggle attribute points to the correct modal id?"))}else console.error("Dial with id ".concat(e.id," does not have a trigger element. Are you sure that the data-dial-toggle attribute exists?"))})}var Ev=new ug("load",[fg,xc,dg,hg,Mc,yv,xv,bv,Dc,Bc,wv]);Ev.init();function Sv(){return localStorage.getItem("locale")??window.navigator.language.split("-")[0]}function Cv(e){localStorage.setItem("locale",e)}const kv="/assets/globe-ab1f599e.svg",Av={id:"button-dropdown-locales","data-dropdown-toggle":"dropdown-locales",type:"button",class:"rounded-full p-1 hover:bg-slate-200 dark:hover:bg-slate-700"},Tv={class:"w-5 h-5 flex items-center justify-center"},Pv=["src"],Lv={id:"dropdown-locales",class:"z-10 hidden bg-white divide-y divide-gray-100 rounded shadow dark:bg-gray-700 dark:divide-gray-600"},Iv={class:"p-3 space-y-1 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"button-dropdown-locales"},Ov=["id","value","onUpdate:modelValue"],Mv=["for"],Rv={class:"flex items-center p-2 px-5 rounded hover:bg-gray-100 dark:hover:bg-gray-600"},Nv=pe({__name:"LanguageSelector",setup(e){ut(()=>{Mc()});function t(n){Cv(n.target.value)}return(n,s)=>(ne(),ae("div",null,[P("button",Av,[P("div",Tv,[P("img",{src:$(kv),alt:"Language",class:"h-full w-full dark:invert"},null,8,Pv)])]),P("div",Lv,[P("ul",Iv,[(ne(!0),ae(Fe,null,qi(n.$i18n.availableLocales,r=>(ne(),ae("li",{key:`locale-${r}`},[Gt(P("input",{id:`radio-locale-${r}`,type:"radio",value:r,name:"locale",class:"hidden","onUpdate:modelValue":i=>n.$i18n.locale=i,onChange:t},null,40,Ov),[[nd,n.$i18n.locale]]),P("label",{for:`radio-locale-${r}`,class:"text-sm font-medium uppercase text-gray-900 rounded dark:text-gray-300"},[P("div",Rv,J(r),1)],8,Mv)]))),128))])])]))}}),$v={"open nav":"Apri menù di navigazione",home:"Home",projects:"Progetti",about:"Chi sono",resume:"CV",contacts:"Contatti"},Dv={"open nav":"Open navbar",home:"Home",projects:"Projects",about:"About",resume:"Résumé",contacts:"Contacts"},Fv={it:$v,en:Dv},Bv="/assets/github-7a0dd11e.svg",Hv={class:"bg-transparent border-gray-200 py-2.5"},jv={class:"container flex flex-wrap items-center justify-end md:justify-start mx-auto"},Wv={class:"block md:flex w-full"},Uv={class:"flex justify-end items-center order-2 md:w-1/2"},Vv={href:"https://github.com/NotXia",class:"rounded-full p-1 mx-1 hover:bg-slate-200 dark:hover:bg-slate-700"},zv=["src"],Gv={class:"inline-flex items-center mx-3 text-sm text-gray-500 md:hidden dark:text-gray-400","data-collapse-toggle":"navbar-main",type:"button","aria-controls":"navbar-main","aria-expanded":"false"},Kv={class:"sr-only"},Yv=P("svg",{class:"w-6 h-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[P("path",{"fill-rule":"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z","clip-rule":"evenodd"})],-1),Xv={class:"flex items-center order-1 md:w-full"},qv={class:"hidden w-full md:block md:w-auto",id:"navbar-main"},Qv={class:"flex flex-col py-4 pr-4 mt-0 md:flex-row md:space-x-8 md:text-sm md:font-medium bg-transparent"},Ci=pe({__name:"Navbar",setup(e){const{t}=we({messages:Fv});return ut(()=>{xc()}),(n,s)=>(ne(),ae("nav",Hv,[P("div",jv,[P("div",Wv,[P("div",Uv,[P("a",Vv,[P("img",{src:$(Bv),alt:"Github",class:"h-5 dark:invert"},null,8,zv)]),X(cg,{class:"mx-1"}),X(Nv,{class:"mx-1"}),P("button",Gv,[P("span",Kv,J($(t)("open nav")),1),Yv])]),P("div",Xv,[P("div",qv,[P("ul",Qv,[X(Gn,{to:"/",label:$(t)("home")},null,8,["label"]),X(Gn,{to:"/about",label:$(t)("about")},null,8,["label"]),X(Gn,{to:"/projects",label:$(t)("projects")},null,8,["label"]),X(Gn,{to:"/resume",label:$(t)("resume")},null,8,["label"]),X(Gn,{to:"/contacts",label:$(t)("contacts")},null,8,["label"])])])])])])]))}}),jc=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Jv={},Zv={class:"flex flex-1 items-center py-0"},e_={class:"w-full"};function t_(e,t){return ne(),ae("div",Zv,[P("div",e_,[As(e.$slots,"default")])])}const qs=jc(Jv,[["render",t_]]),n_="/assets/penguin-29e5f450.png",i_="/assets/llama-b63bb9a2.png",r_="/assets/rock-3ce48816.png",s_="/assets/coconut-10cfad46.png",o_="/assets/red-panda-14ec54d4.png",a_={class:"w-52"},l_=["src"],c_={class:"text-center text-sm mt-2 select-none"},u_=pe({__name:"RandomSomething",setup(e){const{t}=we({messages:{en:{penguin:"This is a penguin",llama:"This is a llama",rock:"This is a rock",coconut:"This is a coconut","red panda":"This is a red panda"},it:{penguin:"Questo è un pinguino",llama:"Questo è un lama",rock:"Questo è un sasso",coconut:"Questa è una noce di cocco","red panda":"Questo è un panda rosso"}}}),n=[{name:"penguin",image:n_},{name:"llama",image:i_},{name:"rock",image:r_},{name:"coconut",image:s_},{name:"red panda",image:o_}],s=xe(""),r=xe("");i();function i(){const l=ph(n.filter(a=>a.name!==s.value));s.value=l.name,r.value=l.image}function o(){gi("change-something"),i()}return(l,a)=>(ne(),ae("div",a_,[P("img",{src:r.value,alt:"",class:"h-40 max-w-xs max-w- mx-auto",onclick:o},null,8,l_),P("p",c_,J($(t)(s.value)),1)]))}}),f_={"i am a":"I'm a","cs student":"Computer Science Student","a very accurate description of me":"Sometimes a bit distracted"},d_={"i am a":"Sono uno","cs student":"Studente di Informatica","a very accurate description of me":"A volte un po' distratto"},h_={en:f_,it:d_},p_={class:"relative z-10"},m_={class:"block md:flex justify-center items-center"},g_={class:"text-center md:text-left"},v_={class:"text-2xl md:text-3xl font-semibold uppercase"},__={class:"text-4xl md:text-5xl font-semibold uppercase"},y_={class:"text-xl lowercase"},x_={class:"w-fit mx-auto mt-5 md:m-0 md:ml-10"},b_=pe({__name:"Home",setup(e){const{t}=we({messages:h_});return(n,s)=>(ne(),ae(Fe,null,[P("div",p_,[X(Ci)]),X(qs,null,{default:Re(()=>[P("main",null,[P("div",m_,[P("div",g_,[P("p",v_,J($(t)("i am a")),1),P("p",__,J($(t)("cs student")),1),P("p",y_,J($(t)("a very accurate description of me")),1)]),P("div",x_,[X(u_)])])])]),_:1})],64))}}),w_={class:"h-full w-fit"},E_={key:0,class:"flex h-full w-full items-center justify-center"},S_=P("span",{class:"animate-ping absolute inline-flex h-5 w-5 rounded-full bg-slate-800 dark:bg-slate-200 opacity-75"},null,-1),C_=[S_],k_={id:"gr_grid_widget_1673812364",class:"h-full"},A_=pe({__name:"Goodreads",setup(e){const t=xe(!0);return ut(()=>{var r;document.querySelector("#script-goodreads")&&((r=document.querySelector("#script-goodreads"))==null||r.remove());let n=document.createElement("script");n.src="https://www.goodreads.com/review/grid_widget/158866642?cover_size=medium&hide_link=true&hide_title=true&num_books=20&order=d&shelf=currently-reading&sort=date_updated&widget_id=1673812364",n.id="script-goodreads",n.type="text/javascript",document.getElementsByTagName("head")[0].appendChild(n);let s=new MutationObserver(function(i){document.querySelectorAll("#gr_grid_widget_1673812364 > * img").forEach(o=>o.src=o.src.replace("_SX98_","_SY475_")),s.disconnect(),t.value=!1});s.observe(document.querySelector("#gr_grid_widget_1673812364"),{childList:!0})}),(n,s)=>(ne(),ae("div",w_,[t.value?(ne(),ae("div",E_,C_)):Be("",!0),Gt(P("div",k_,null,512),[[fn,!t.value]])]))}});const Na="/assets/picture-dark-ad19452c.png",T_="/assets/picture-light-a3c44647.png",P_="/assets/picture-bright-9bdab578.png",L_="/assets/picture-nolight-9ff9bfb3.png",I_={class:"relative"},O_={class:"flex items-center h-60 w-60"},M_=["src"],R_=["src"],N_=["src"],$_=["src"],D_={key:0,class:"absolute bottom-0 left-0 w-full"},F_={class:"w-fit mx-auto px-2 pt-1 mb-1 bg-gray-200 dark:bg-gray-700"},B_=pe({__name:"ProfilePicture",setup(e){var u;const{t,locale:n}=we({messages:{en:{"that's bright":"That's bright",better:"Better","where lights":"Who turned off the lights?","here lights":"Here they are"},it:{"that's bright":"È luminoso",better:"Meglio","where lights":"Chi ha spento le luci?","here lights":"Eccole"}}}),s=xe(Na),r=xe("picture_dark"),i=Rs();let o=(u=document.querySelector("html"))!=null&&u.classList.contains("dark")?"dark1":"light1",l={dark1:{image:"dark",message:"",expect:"dark",next:"bright"},bright:{image:"bright",message:"that's bright",expect:"light",next:"dark2"},dark2:{image:"dark",message:"better",expect:"dark",next:"light_final"},light1:{image:"light",message:"",expect:"light",next:"nolights"},nolights:{image:"no light",message:"where lights",expect:"dark",next:"light2"},light2:{image:"light",message:"here lights",expect:"light",next:"dark_final"},dark_final:{image:"dark",message:"",expect:"dark",next:"light_final"},light_final:{image:"light",message:"",expect:"light",next:"dark_final"}};function a(){var h,f;s.value=(h=l[o])==null?void 0:h.image,r.value=t((f=l[o])==null?void 0:f.message)}function d(){var h;o=(h=l[o])==null?void 0:h.next}return ut(()=>{a();let h=new MutationObserver(function(f){var m;if(i.path!=="/about"){h.disconnect();return}const c=(m=document.querySelector("html"))==null?void 0:m.classList.contains("dark");l[l[o].next].expect===(c?"dark":"light")&&(d(),a(),o==="bright"?gi("picture-bright"):o==="nolights"&&gi("picture-nolights"))});h.observe(document.querySelector("html"),{attributes:!0,attributeFilter:["class"]})}),At(n,()=>{a()}),(h,f)=>(ne(),ae("div",I_,[P("div",O_,[Gt(P("img",{src:$(Na),alt:"",class:"max-h-full max-w-full"},null,8,M_),[[fn,s.value==="dark"]]),Gt(P("img",{src:$(T_),alt:"",class:"max-h-full max-w-full"},null,8,R_),[[fn,s.value==="light"]]),Gt(P("img",{src:$(P_),alt:"",class:"max-h-full max-w-full"},null,8,N_),[[fn,s.value==="bright"]]),Gt(P("img",{src:$(L_),alt:"",class:"max-h-full max-w-full"},null,8,$_),[[fn,s.value==="no light"]])]),r.value?(ne(),ae("div",D_,[P("p",F_,J(r.value),1)])):Be("",!0)]))}}),H_={class:"flex flex-col md:flex-row md:justify-between items-center h-full"},j_={class:"text-xl order-2 md:order-1 [&>*>p]:mb-2"},W_={class:"text-5xl font-bold mb-5"},U_=P("p",null,[Ie(" Mi chiamo "),P("span",{"data-popover-target":"popover-name",class:"underline decoration-dashed decoration-slate-900/70 dark:decoration-slate-50/70"},"Xia Tian Cheng"),Ie(", spesso conosciuto come Xia (cognome) o Riccardo. Studio informatica all'Università di Bologna e al momento i miei interessi sono orientati verso l'analisi dati e l'intelligenza artificiale. ")],-1),V_=P("p",null,[Ie(" Oltre a premere tasti sulla tastiera, mi piace leggere, sperimentare in cucina "),P("span",{class:"text-xs"},"(preferibilmente con un estintore nei paraggi)"),Ie(" e giocare a giochi strategici. ")],-1),z_=P("p",null,[Ie(" Secondo "),P("a",{class:"hover:underline italic",href:"https://www.16personalities.com"},"16Personalities"),Ie(" sono un "),P("a",{class:"font-mono hover:underline",href:"https://www.16personalities.com/profiles/6b57f54bf1242"},"Architetto (INTJ)"),Ie(". Devo dire che la descrizione è decisamente accurata. ")],-1),G_=[U_,V_,z_],K_=P("p",null,[Ie(" My name is "),P("span",{"data-popover-target":"popover-name",class:"underline decoration-dashed decoration-slate-900/70 dark:decoration-slate-50/70"},"Xia Tian Cheng"),Ie(", frequently known as Xia (surname) or Richard. I am a computer science student at the University of Bologna and currently my interests are focused on data analysis and artificial intelligence. ")],-1),Y_=P("p",null,[Ie(" Aside from pressing keys on a keyboard, I like reading, cooking "),P("span",{class:"text-xs"},"(preferably with a fire extinguisher nearby)"),Ie(" and playing strategic games. ")],-1),X_=P("p",null,[Ie(" According to "),P("a",{class:"hover:underline italic",href:"https://www.16personalities.com"},"16Personalities"),Ie(" I'm an "),P("a",{class:"font-mono hover:underline",href:"https://www.16personalities.com/profiles/6b57f54bf1242"},"Architect (INTJ)"),Ie(". I must admit that the description is quite accurate. ")],-1),q_=[K_,Y_,X_],Q_={class:"order-1 mb-3 ml-0 md:order-2 md:mb-0 md:ml-10"},J_={class:"mt-5"},Z_={class:"text-center text-xl"},e0={class:"flex justify-center"},t0=P("div",{"data-popover":"",id:"popover-name",role:"tooltip",class:"absolute z-10 invisible inline-block transition-opacity duration-500 opacity-0"},[P("div",{class:"text-lg px-3 py-2 bg-slate-200 dark:bg-slate-800 rounded"}," 夏天成 ")],-1),n0=pe({__name:"About",setup(e){const{t,locale:n}=we({messages:{en:{"about me":"About me",reading:"Currently I'm reading","that's bright":"That's bright",thanks:"Thanks"},it:{"about me":"Su di me",reading:"Attualmente sto leggendo","that's bright":"È luminoso",thanks:"Grazie"}}}),s=xe(n.value);return $e(()=>{const r=new Date,i=new Date(2001,8,29),o=r.getMonth()-i.getMonth();let l=r.getFullYear()-i.getFullYear();return(o<0||o===0&&r.getDate()<i.getDate())&&l--,l}),ut(()=>{Bc()}),At(n,()=>{s.value=n.value}),(r,i)=>(ne(),ae(Fe,null,[X(Ci),X(qs,null,{default:Re(()=>[P("main",null,[P("div",H_,[P("div",j_,[P("h1",W_,J($(t)("about me")),1),Gt(P("div",null,G_,512),[[fn,s.value==="it"]]),Gt(P("div",null,q_,512),[[fn,s.value==="en"]])]),P("div",Q_,[X(B_)])]),P("div",J_,[P("p",Z_,J($(t)("reading")),1),P("div",e0,[X(A_,{class:"h-48"})])])])]),_:1}),t0],64))}}),i0={class:"border border-gray-500 dark:border-gray-300 rounded-md p-3 mx-auto w-full lg:w-2/3 xl:w-1/2"},r0={class:"text-2xl font-semibold text-center text-gray-900 dark:text-white"},s0={class:"text-center mb-2"},o0=["href"],a0={class:"text-lg whitespace-pre-wrap mb-2 text-gray-500 dark:text-gray-400"},l0=["src"],It=pe({__name:"ProjectCard",props:{title:String,links:Object,image:String},setup(e){const t=e;return(n,s)=>(ne(),ae("div",i0,[P("h3",r0,J(t.title),1),P("div",s0,[(ne(!0),ae(Fe,null,qi(t.links,r=>(ne(),ae("a",{href:r.url,class:"font-mono inline-block hover:underline mx-2"},J(r.label),9,o0))),256))]),P("p",a0,[As(n.$slots,"default")]),P("img",{src:t.image,alt:"",class:"max-w-full max-h-96 mx-auto"},null,8,l0)]))}}),c0={class:"text-center"},u0=pe({__name:"Wirefilter",setup(e){const{t}=we({messages:{en:{unibo:"University of Bologna, A.Y. 2022-2023",description:`Virtual Distributed Ethernet (VDE) is an open source project that allows the creation of virtual networks through a set of plugins.
|
||
Wirefilter is a plugin that allows to manipulate packet flow by changing the parameters of the virtual cable.`},it:{unibo:"Università di Bologna, A.A. 2022-2023",description:`Virtual Distributed Ethernet (VDE) è un progetto open source che consente di creare reti virtuali tramite l'utilizzo modulare di plugin.
|
||
Wirefilter è un plugin che consente di manipolare il flusso dei pacchetti in transito impostando parametri per il cavo virtuale.`}}});return(n,s)=>(ne(),Ke(It,{title:"Wirefilter",links:[{label:"Repository",url:"https://github.com/NotXia/vdeplug_wirefilter"},{label:"VirtualSquare",url:"http://wiki.virtualsquare.org/#!index.md"}]},{default:Re(()=>[P("p",c0,J($(t)("unibo")),1),P("p",null,J($(t)("description")),1)]),_:1},8,["links"]))}}),f0="/assets/sorting-visualizer-7ca3c484.png",d0=pe({__name:"SortingVisualizer",setup(e){const{t}=we({messages:{en:{description:"Visualizer of some sorting algorithms."},it:{description:"Visualizzazione di alcuni algoritmi di ordinamento."}}});return(n,s)=>(ne(),Ke(It,{title:"Sorting visualizer",image:$(f0),description:$(t)("description"),links:[{label:"Repository",url:"https://github.com/NotXia/sorting-visualizer"},{label:"Demo",url:"https://notxia.github.io/sorting-visualizer/"}]},{default:Re(()=>[Ie(J($(t)("description")),1)]),_:1},8,["image","description","links"]))}}),h0="/assets/pathfinding-visualizer-4308823e.png",p0=pe({__name:"PathfindingVisualizer",setup(e){const{t}=we({messages:{en:{description:"Visualizer of some graph search algorithms."},it:{description:"Visualizzazione di alcuni algoritmi di ricerca su grafi."}}});return(n,s)=>(ne(),Ke(It,{title:"Pathfinding visualizer",image:$(h0),description:$(t)("description"),links:[{label:"Repository",url:"https://github.com/NotXia/pathfinding-visualizer"},{label:"Demo",url:"https://notxia.github.io/pathfinding-visualizer/"}]},{default:Re(()=>[Ie(J($(t)("description")),1)]),_:1},8,["image","description","links"]))}}),m0="/assets/mnkgame-9468ace0.png",g0={class:"text-center"},v0=pe({__name:"MNKGame",setup(e){const{t}=we({messages:{en:{unibo:"University of Bologna, A.Y. 2020-2021",description:`Project for the Algorithms and Data Structures course.
|
||
Algorithm able to efficiently play a generalized version of tic-tac-toe.`},it:{unibo:"Università di Bologna, A.A. 2020-2021",description:`Progetto per il corso di Algoritmi e Strutture Dati.
|
||
Algoritmo in grado di giocare in modo efficiente ad una versione generalizzata del tris.`}}});return(n,s)=>(ne(),Ke(It,{title:"MNK Game",image:$(m0),description:$(t)("description"),links:[{label:"Repository",url:"https://github.com/NotXia/MNKGame"}]},{default:Re(()=>[P("p",g0,J($(t)("unibo")),1),P("p",null,J($(t)("description")),1)]),_:1},8,["image","description","links"]))}}),_0="/assets/imaging-29f5091c.png",y0={class:"text-center"},x0=pe({__name:"Imaging",setup(e){const{t}=we({messages:{en:{unibo:"University of Bologna, A.Y. 2021-2022",description:`Project for the Numerical Computing course.
|
||
Image deblurring solved as a minimization problem.`},it:{unibo:"Università di Bologna, A.A. 2021-2022",description:`Progetto per il corso di Calcolo Numerico.
|
||
Deblurring di immagini risolto come problema di minimizzazione.`}}});return(n,s)=>(ne(),Ke(It,{title:"Image deblur",image:$(_0),description:$(t)("description"),links:[{label:"Repository",url:"https://github.com/NotXia/imaging"}]},{default:Re(()=>[P("p",y0,J($(t)("unibo")),1),P("p",null,J($(t)("description")),1)]),_:1},8,["image","description","links"]))}}),b0="/assets/platform-70851a6c.png",w0={class:"text-center"},E0=pe({__name:"Platform",setup(e){const{t}=we({messages:{en:{unibo:"University of Bologna, A.Y. 2020-2021",description:`Project for the Programmin course.
|
||
Text based platform game with randomly generated levels.`},it:{unibo:"Università di Bologna, A.A. 2020-2021",description:`Progetto per il corso di Programmazione.
|
||
Gioco platform su terminale con livelli generati casualmente.`}}});return(n,s)=>(ne(),Ke(It,{title:"Platform game",image:$(b0),description:$(t)("description"),links:[{label:"Repository",url:"https://github.com/NotXia/platform-game"}]},{default:Re(()=>[P("p",w0,J($(t)("unibo")),1),P("p",null,J($(t)("description")),1)]),_:1},8,["image","description","links"]))}}),S0={class:"text-center"},C0=pe({__name:"PandOSplus",setup(e){const{t}=we({messages:{en:{unibo:"University of Bologna, A.Y. 2021-2022",description:`Project for the Operating Systems course.
|
||
Minimal operating system for the MIPS architecture.`},it:{unibo:"Università di Bologna, A.A. 2021-2022",description:`Progetto per il corso di Sistemi Operativi.
|
||
Sistema operativo minimale per architettura MIPS.`}}});return(n,s)=>(ne(),Ke(It,{title:"PandOS+",description:$(t)("description"),links:[{label:"Repository",url:"https://github.com/NotXia/pandos-plus"}]},{default:Re(()=>[P("p",S0,J($(t)("unibo")),1),P("p",null,J($(t)("description")),1)]),_:1},8,["description","links"]))}}),k0={key:0},A0={class:"w-full h-72 relative"},T0={key:0,role:"status",class:"absolute top-0 left-0 w-full h-full flex justify-center items-center"},P0=P("svg",{"aria-hidden":"true",class:"w-8 h-8 animate-spin text-gray-200 fill-gray-600 dark:text-gray-600 dark:fill-gray-300",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[P("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),P("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),L0=[P0],I0={key:1,class:"flex justify-center items-center w-full h-full"},O0=pe({__name:"NotXiaGithubio",setup(e){const t=xe(!1),n=xe(!1);ut(()=>{try{window.frameElement&&(n.value=!0)}catch{n.value=!1}});const{t:s}=we({messages:{en:{description:"Here's a secret preview of my website.","no recursion":"Recursion out of service, sorry for the inconvenience."},it:{description:"Ecco un'anteprima segreta del mio sito.","no recursion":"Ricorsione fuori servizio, mi scuso per il disagio."}}});return(r,i)=>(ne(),Ke(It,{title:"notxia.github.io",links:[{label:"Repository",url:"https://github.com/NotXia/notxia.github.io"}]},{default:Re(()=>[n.value?Be("",!0):(ne(),ae("p",k0,J($(s)("description")),1)),P("div",A0,[!t.value&&!n.value?(ne(),ae("div",T0,L0)):Be("",!0),n.value?(ne(),ae("div",I0,[P("p",null,J($(s)("no recursion")),1)])):Be("",!0),P("iframe",{src:"/",frameborder:"0",width:"100%",height:"100%",onLoad:i[0]||(i[0]=o=>t.value=!0)},null,32)])]),_:1},8,["links"]))}}),M0="/assets/animal-house-c9987528.png",R0={class:"text-center"},N0={class:"list-inside list-['-_']"},$0=pe({__name:"AnimalHouse",setup(e){const{t}=we({messages:{en:{unibo:"University of Bologna, A.Y. 2021-2022",description:`Project for the Web Technology course.
|
||
Web app with three sections:`,"description game":"Game: area with games and facts about animals","description frontoffice":"Frontoffice: area to access services as a logged user","description backoffice":"Backoffice: administration panel"},it:{unibo:"Università di Bologna, A.A. 2021-2022",description:`Progetto per il corso di Tecnologie Web.
|
||
Web app suddivisa in tre sezioni:`,"description game":"Game: area con giochi e curiosità sugli animali","description frontoffice":"Frontoffice: area con servizi per gli utenti autenticati","description backoffice":"Backoffice: pannello di amministrazione"}}});return(n,s)=>(ne(),Ke(It,{title:"Animal House",image:$(M0),description:$(t)("description"),links:[{label:"Repository",url:"https://github.com/NotXia/animal-house"}]},{default:Re(()=>[P("p",R0,J($(t)("unibo")),1),P("p",null,J($(t)("description")),1),P("ul",N0,[P("li",null,J($(t)("description game")),1),P("li",null,J($(t)("description frontoffice")),1),P("li",null,J($(t)("description backoffice")),1)])]),_:1},8,["image","description","links"]))}}),D0="/assets/tweet-analysis-0dffd059.png",F0={class:"text-center"},B0=pe({__name:"TweetAnalysis",setup(e){const{t}=we({messages:{en:{unibo:"University of Bologna, A.Y. 2022-2023",description:`Project for the Software Engineering course.
|
||
Twitter client with analytics features developed using the Scrum methodology.`},it:{unibo:"Università di Bologna, A.A. 2022-2023",description:`Progetto per il corso di Ingegneria del Software.
|
||
Webapp per l'analisi di tweet sviluppata con metodologia Scrum.`}}});return(n,s)=>(ne(),Ke(It,{title:"Tweet Analysis",image:$(D0),description:$(t)("description"),links:[{label:"Repository",url:"https://github.com/NotXia/tweet-analysis"}]},{default:Re(()=>[P("p",F0,J($(t)("unibo")),1),P("p",null,J($(t)("description")),1)]),_:1},8,["image","description","links"]))}}),H0={projects:"Projects",wip:"Currently I'm working on",completed:"Completed projects"},j0={projects:"Progetti",wip:"Attualmente sto lavorando a",completed:"Progetti completati"},W0={en:H0,it:j0},U0={class:"text-5xl font-bold text-center mb-5"},V0={class:"text-3xl text-center mt-10 mb-3"},z0={class:"[&>*]:my-14 first:[&>*]:mt-8"},G0={class:"text-3xl text-center mt-10 mb-3"},K0={class:"[&>*]:my-14 first:[&>*]:mt-8"},Y0=pe({__name:"Projects",setup(e){const{t}=we({messages:W0});return(n,s)=>(ne(),ae(Fe,null,[X(Ci),P("main",null,[P("h1",U0,J($(t)("projects")),1),P("h2",V0,J($(t)("wip")),1),P("div",z0,[X(u0),X(O0)]),P("h2",G0,J($(t)("completed")),1),P("div",K0,[X(B0),X($0),X(C0),X(x0),X(v0),X(E0),X(p0),X(d0)])])],64))}}),X0={key:0,class:"flex justify-center w-full h-full"},q0={class:"relative border-r text-right w-1/2 border-zinc-300 dark:border-zinc-700"},Q0={class:"relative"},J0=P("div",{class:"absolute w-3 h-3 z-10 bg-gray-400 rounded-full border border-white dark:border-gray-900 dark:bg-gray-500",style:{right:"-1.43rem"}},null,-1),Z0={key:0},ey={key:0,class:"absolute w-3 h-3 z-10 bg-gray-400 rounded-full border border-white dark:border-gray-900 dark:bg-gray-500",style:{right:"-1.43rem",bottom:"0"}},ty=P("div",{class:"absolute rounded-full border-l-2 border-gray-400 dark:border-gray-500",style:{height:"100%",top:"0",right:"-1.12rem"}},null,-1),ny={class:"text-xs mb-0 font-normal leading-5 whitespace-pre-wrap text-gray-500 dark:text-gray-400"},iy={class:"text-base mb-0 font-semibold leading-5 whitespace-pre-wrap text-gray-900 dark:text-white"},ry={class:"text-sm mb-0 font-normal leading-5 whitespace-pre-wrap text-gray-500 dark:text-gray-400"},sy=P("div",{class:"w-4"},null,-1),oy={class:"relative w-1/2 border-l border-zinc-300 dark:border-zinc-700"},ay={class:"relative"},ly=P("div",{class:"absolute w-3 h-3 z-10 bg-gray-400 rounded-full border border-white dark:border-gray-900 dark:bg-gray-500",style:{left:"-1.43rem",bottom:"0"}},null,-1),cy={key:0},uy={key:0,class:"absolute w-3 h-3 z-10 bg-gray-400 rounded-full border border-white dark:border-gray-900 dark:bg-gray-500",style:{left:"-1.43rem"}},fy=P("div",{class:"absolute rounded-full border-l-2 border-we border-gray-400 dark:border-gray-500",style:{height:"100%",top:"0",left:"-1.12rem"}},null,-1),dy={class:"mb-0 text-xs font-normal leading-5 whitespace-pre-wrap text-gray-500 dark:text-gray-400"},hy={class:"mb-0 text-base font-semibold leading-5 whitespace-pre-wrap text-gray-900 dark:text-white"},py={class:"mb-0 text-sm font-normal leading-5 whitespace-pre-wrap text-gray-500 dark:text-gray-400"},my=pe({__name:"Timeline",props:{right:{type:Object,default:[]},left:{type:Object,default:[]}},setup(e){const t=e,n=xe(),s=xe(-1),r=xe([]),i=xe([]),o=xe(new Date),l=xe(new Date);function a(u,h){return h.getMonth()-u.getMonth()+12*(h.getFullYear()-u.getFullYear())}function d(){var c;const u=((c=n.value)==null?void 0:c.clientHeight)??0;let h=new Date,f=new Date(0);[...t.right,...t.left].forEach(m=>{(!h||m.start<h)&&(h=m.start),(!f||m.end>f)&&(f=m.end)}),o.value=h,l.value=f,s.value=Math.floor(u/a(h,f))}return ut(()=>{d(),r.value=t.right.map((u,h)=>({offset:a(u.end,l.value),index:h})),i.value=t.left.map((u,h)=>({offset:a(u.end,l.value),index:h})),new ResizeObserver(d).observe(document.querySelector("#app"))}),(u,h)=>(ne(),ae("div",{class:"w-full h-full",ref_key:"container_timeline",ref:n},[s.value>0&&o.value&&l.value?(ne(),ae("div",X0,[P("ol",q0,[(ne(!0),ae(Fe,null,qi(i.value,f=>(ne(),ae("li",{class:"mr-4 absolute right-0",key:t.left[f.index].title,style:cn(`top: ${f.offset*s.value}px`)},[P("div",Q0,[J0,a(t.left[f.index].start,t.left[f.index].end)>0?(ne(),ae("div",Z0,[t.left[f.index].current?Be("",!0):(ne(),ae("div",ey)),ty])):Be("",!0),P("div",{class:"flex items-center",style:cn(`height: ${a(t.left[f.index].start,t.left[f.index].end)*s.value}px`)},[P("div",null,[P("span",ny,J(t.left[f.index].time_label),1),P("h3",iy,J(t.left[f.index].title),1),P("p",ry,J(t.left[f.index].description),1)])],4)])],4))),128))]),sy,P("ol",oy,[(ne(!0),ae(Fe,null,qi(r.value,f=>(ne(),ae("li",{class:"ml-4 absolute left-0",key:t.right[f.index].title,style:cn(`top: ${f.offset*s.value}px`)},[P("div",ay,[ly,a(t.right[f.index].start,t.right[f.index].end)>0?(ne(),ae("div",cy,[t.right[f.index].current?Be("",!0):(ne(),ae("div",uy)),fy])):Be("",!0),P("div",{class:"flex items-center",style:cn(`height: ${a(t.right[f.index].start,t.right[f.index].end)*s.value}px`)},[P("div",null,[P("span",dy,J(t.right[f.index].time_label),1),P("h3",hy,J(t.right[f.index].title),1),P("p",py,J(t.right[f.index].description),1)])],4)])],4))),128))])])):Be("",!0)],512))}}),Hn={en:{education:"Education","working experience":"Work experience",certificates:"Certificates",skills:"Skills",other:"Other activities","link to certificate":"Link to certificate",future:"What will happen?",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December",m_1:"Jan",m_2:"Feb",m_3:"Mar",m_4:"Apr",m_5:"May",m_6:"June",m_7:"July",m_8:"Aug",m_9:"Sept",m_10:"Oct",m_11:"Nov",m_12:"Dec",present:"present","final degree":"Final degree","with honors":"with honors","bs in cs":"Bachelor's Degree in Computer Science",unibo:"Alma Mater Studiorum, University of Bologna",diploma:"High school diploma, major in IT",aldini:"Aldini Valeriani, Bologna, Italy","web development":"Web development",devops:"DevOps","data analysis":"Data analysis","other programming languages":"Other programming languages","cisco it essentials description":`Maintenance and administration of IT systems.
|
||
Configuration and management of network devices.`,"cs50 ai description":"Problem solving through algorithms based on graphs, statistics, optimization and machine learning.","pcto toyota":"IT/IS Office, Internship","pcto toyota description":`Internship organized during high school.
|
||
IT support, maintenance and initial setup of network devices.
|
||
SQL programming, automation with bash and batch scripts.`,ois:"Informatics Olympiad in Teams","ois description":"Team based programming competition.","MAST foundation":"MAST Foundation","MAST expeditions description":"Design and implementation of an IOT box with Flip & Click programmable microcontrollers and Zerynth Studio development environment."},it:{education:"Istruzione","working experience":"Esperienze lavorative",certificates:"Certificati",skills:"Competenze",other:"Altre attività","link to certificate":"Link al certificato",future:"Chissà cosa succederà",january:"Gennaio",february:"Febbraio",march:"Marzo",april:"Aprile",may:"Maggio",june:"Giugno",july:"Luglio",august:"Agosto",september:"Settembre",october:"Ottobre",november:"Novembre",december:"Dicembre",m_1:"Gen",m_2:"Feb",m_3:"Mar",m_4:"Apr",m_5:"Mag",m_6:"Giu",m_7:"Lug",m_8:"Ago",m_9:"Set",m_10:"Ott",m_11:"Nov",m_12:"Dic",present:"in corso","final degree":"Valutazione finale","with honors":"e lode","bs in cs":"Laurea Triennale in Informatica",unibo:"Alma Mater Studiorum, Università di Bologna",diploma:"Diploma di perito informatico",aldini:"I.T.I Aldini Valeriani, Bologna","web development":"Sviluppo web",devops:"DevOps","data analysis":"Data analysis","other programming languages":"Altri linguaggi di programmazione","cisco it essentials description":`Manutenzione e amministrazione di sistemi informatici.
|
||
Configurazione e gestione di apparati di rete.`,"cs50 ai description":"Risoluzione di problemi con algoritmi basati su grafi, statistica, ottimizzazione e machine learning.","pcto toyota":"Ufficio IT/IS, Stage","pcto toyota description":`Percorsi per le Competenze Trasversali e per l'Orientamento (PCTO)
|
||
Attività di helpdesk, manutenzione e configurazione di apparati di rete.
|
||
Programmazione SQL, automazioni con script bash e batch.`,ois:"Olimpiadi di informatica a squadre","ois description":"Programmazione competitiva a squadre.","MAST foundation":"Fondazione MAST","MAST expeditions description":"Progettazione e realizzazione di una scatola IOT attraverso l'utilizzo di schede programmabili Flip & Click e l'ambiente di sviluppo Zerynth Studio."}},gy={class:"flex h-full justify-center relative"},vy={class:"absolute top-0 left-0 w-full"},_y={id:"tooltip-future",role:"tooltip",class:"absolute z-10 invisible inline-block px-2 py-1 text-xs font-medium transition-opacity duration-1000 rounded-lg opacity-0 tooltip"},yy={class:"w-full timeline-height"},xy={class:"text-center text-xs text-gray-400 dark:text-slate-600"},by=pe({__name:"ExperienceTimeline",setup(e){const t=Hn;t.en["like timelines"]="I like timelines",t.it["like timelines"]="Mi piacciono le linee del tempo";const{t:n}=we({messages:t}),s=1,r=5,i=8,o=11;ut(()=>{Dc()});let l=null;function a(){l=setTimeout(()=>{gi("future"),l=null},500)}function d(){l&&clearTimeout(l)}return(u,h)=>(ne(),ae(Fe,null,[P("div",gy,[P("div",vy,[P("div",{"data-tooltip-target":"tooltip-future",class:"relative w-6 h-2 mx-auto z-50",onMouseover:a,onMouseleave:d},null,32),P("div",_y,J($(n)("future")),1)]),P("div",yy,[X(my,{right:[{title:$(n)("diploma"),time_label:"2015 - 2020",description:$(n)("aldini"),start:new Date(2015,i,1),end:new Date(2020,r,1)},{title:$(n)("bs in cs"),time_label:"2020 - 2023",description:$(n)("unibo"),start:new Date(2020,i,1),end:new Date,current:!0}],left:[{title:$(n)("pcto toyota"),time_label:`${$(n)("m_12")} 2019 | ${$(n)("m_7")} 2019 | ${$(n)("m_2")} 2019`,description:"Toyota Material Handling Manufacturing Italy",start:new Date(2019,s,1),end:new Date(2019,o,1)},{title:"CS50’s Introduction to AI with Python",time_label:"2022",description:"HarvardX",start:new Date(2022,i,1),end:new Date(2022,i,1)},{title:"CISCO: IT Essentials",time_label:"2018",description:"CISCO Networking Academy",start:new Date(2018,i,1),end:new Date(2018,i,1)}]},null,8,["right","left"])])]),P("p",xy,J($(n)("like timelines")),1)],64))}});const wy=jc(by,[["__scopeId","data-v-859067a4"]]),Ey={class:"md:ml-2 mt-4"},Sy={class:"flex justify-between"},Cy={class:"text-xl font-semibold tracking-wide"},ky={class:"text-right text-gray-500 dark:text-gray-400"},Ay={class:"leading-5 text-gray-500 dark:text-gray-400"},Ty={class:"mt-1 whitespace-pre-wrap"},mt=pe({__name:"ActivityParagraph",props:{title:String,subtitle:String,right_text:String},setup(e){const t=e;return(n,s)=>(ne(),ae("div",Ey,[P("div",Sy,[P("h3",Cy,J(t.title),1),P("div",ky,J(t.right_text),1)]),P("div",Ay,J(t.subtitle),1),P("div",Ty,[As(n.$slots,"default")])]))}}),Py={class:"text-4xl font-bold tracking-wide"},Ly=pe({__name:"Education",setup(e){const{t}=we({messages:Hn});return(n,s)=>(ne(),ae("div",null,[P("h2",Py,J($(t)("education")),1),X(mt,{title:$(t)("bs in cs"),subtitle:$(t)("unibo"),right_text:`2020 - ${$(t)("present")}`},null,8,["title","subtitle","right_text"]),X(mt,{title:$(t)("diploma"),subtitle:$(t)("aldini"),right_text:"2015 - 2020"},{default:Re(()=>[Ie(J($(t)("final degree"))+": 100/100 "+J($(t)("with honors")),1)]),_:1},8,["title","subtitle"])]))}}),Iy={class:"text-4xl font-bold tracking-wide"},Oy={class:"font-mono hover:underline",href:"https://certificates.cs50.io/bb09e788-f9da-4055-8645-aba7ef163683.pdf?size=a4"},My=pe({__name:"Certificates",setup(e){const{t}=we({messages:Hn});return(n,s)=>(ne(),ae("div",null,[P("h2",Iy,J($(t)("certificates")),1),X(mt,{title:"CS50’s Introduction to AI with Python",subtitle:"HarvardX",right_text:"2022"},{default:Re(()=>[P("a",Oy,J($(t)("link to certificate")),1),P("p",null,J($(t)("cs50 ai description")),1)]),_:1}),X(mt,{title:"CISCO: IT Essentials",subtitle:"CISCO Networking Academy",right_text:"2018"},{default:Re(()=>[Ie(J($(t)("cisco it essentials description")),1)]),_:1})]))}}),Ry={class:"inline-block"},Ny={class:"flex items-center"},$y=["src"],Ne=pe({__name:"ProgrammingLogo",props:{language:String,logo:String,needInvert:Boolean},setup(e){const t=e;return(n,s)=>(ne(),ae("div",Ry,[P("div",Ny,[P("img",{src:t.logo,alt:"",class:$n(`h-5 mr-1 ${t.needInvert?"dark:invert":""}`)},null,10,$y),Ie(" "+J(t.language),1)])]))}}),Dy="/assets/nodejs-e3af091e.svg",Fy="/assets/php-2132ce69.svg",By="/assets/react-8351f38f.svg",Hy="/assets/vue-17ff892a.svg",jy="/assets/docker-05d03b2d.svg",Wy="/assets/ansible-10b27c72.svg",Uy="/assets/jenkins-2e6acb68.svg",Vy="/assets/gitlab-56217928.svg",zy="/assets/github-actions-eb6c6db8.svg",Gy="/assets/numpy-7b069cbe.svg",Ky="/assets/pandas-ea6d5355.svg",Yy="/assets/matplotlib-595bf301.svg",Xy="/assets/seaborn-67f563f0.svg",qy="/assets/scikitlearn-1f8cdf07.svg",Qy="/assets/tensorflow-8bd4566a.svg",Jy="/assets/keras-93d0631e.svg",Zy="/assets/database-4cb7148f.svg",ex="/assets/mongo-97bcdd7b.svg",tx="/assets/c-6dca6d06.svg",nx="/assets/cpp-ebd2d699.svg",ix="/assets/java-e124cc96.svg",rx="/assets/python-99a19b1d.svg",sx="/assets/cpu-ea75fcd8.svg",ox={class:"[&_li]:mr-4"},ax={class:"text-4xl font-bold tracking-wide"},lx={class:"flex flex-wrap items-center"},cx={class:"flex flex-wrap items-center"},ux={class:"flex flex-wrap items-center"},fx={class:"flex flex-wrap items-center"},dx={class:"flex flex-wrap items-center"},hx={class:"flex flex-wrap items-center"},px={class:"flex flex-wrap items-center"},mx={class:"flex flex-wrap items-center"},gx={class:"flex flex-wrap items-center"},vx={class:"flex flex-wrap items-center"},_x=pe({__name:"Skills",setup(e){const{t}=we({messages:Hn});return(n,s)=>(ne(),ae("div",ox,[P("h2",ax,J($(t)("skills")),1),X(mt,{title:$(t)("data analysis")},{default:Re(()=>[P("ul",lx,[P("li",null,[X(Ne,{logo:$(rx),language:"Python"},null,8,["logo"])]),P("li",null,[X(Ne,{logo:$(Zy),language:"SQL",needInvert:""},null,8,["logo"])]),P("li",null,[X(Ne,{logo:$(ex),language:"MongoDB"},null,8,["logo"])])]),P("ul",cx,[P("li",null,[X(Ne,{logo:$(Gy),language:"Numpy"},null,8,["logo"])]),P("li",null,[X(Ne,{logo:$(Ky),language:"Pandas"},null,8,["logo"])])]),P("ul",ux,[P("li",null,[X(Ne,{logo:$(Yy),language:"Matplotlib"},null,8,["logo"])]),P("li",null,[X(Ne,{logo:$(Xy),language:"Seaborn"},null,8,["logo"])])]),P("ul",fx,[P("li",null,[X(Ne,{logo:$(qy),language:"Scikit-learn"},null,8,["logo"])]),P("li",null,[X(Ne,{logo:$(Qy),language:"Tensorflow"},null,8,["logo"])]),P("li",null,[X(Ne,{logo:$(Jy),language:"Keras"},null,8,["logo"])])])]),_:1},8,["title"]),X(mt,{title:$(t)("devops")},{default:Re(()=>[P("ul",dx,[P("li",null,[X(Ne,{logo:$(jy),language:"Docker"},null,8,["logo"])])]),P("ul",hx,[P("li",null,[X(Ne,{logo:$(Wy),language:"Ansible"},null,8,["logo"])])]),P("ul",px,[P("li",null,[X(Ne,{logo:$(Uy),language:"Jenkins"},null,8,["logo"])]),P("li",null,[X(Ne,{logo:$(Vy),language:"Gitlab Runner"},null,8,["logo"])]),P("li",null,[X(Ne,{logo:$(zy),language:"Github Actions"},null,8,["logo"])])])]),_:1},8,["title"]),X(mt,{title:$(t)("web development")},{default:Re(()=>[P("ul",mx,[P("li",null,[X(Ne,{logo:$(Dy),language:"NodeJS"},null,8,["logo"])]),P("li",null,[X(Ne,{logo:$(Fy),language:"PHP"},null,8,["logo"])])]),P("ul",gx,[P("li",null,[X(Ne,{logo:$(By),language:"React"},null,8,["logo"])]),P("li",null,[X(Ne,{logo:$(Hy),language:"Vue"},null,8,["logo"])])])]),_:1},8,["title"]),X(mt,{title:$(t)("other programming languages")},{default:Re(()=>[P("ul",vx,[P("li",null,[X(Ne,{logo:$(tx),language:"C"},null,8,["logo"])]),P("li",null,[X(Ne,{logo:$(nx),language:"C++"},null,8,["logo"])]),P("li",null,[X(Ne,{logo:$(ix),language:"Java"},null,8,["logo"])]),P("li",null,[X(Ne,{logo:$(sx),language:"Assembly x86",needInvert:""},null,8,["logo"])])])]),_:1},8,["title"])]))}}),yx={class:"text-4xl font-bold tracking-wide"},xx=pe({__name:"Work",setup(e){const{t}=we({messages:Hn});return(n,s)=>(ne(),ae("div",null,[P("h2",yx,J($(t)("working experience")),1),X(mt,{title:$(t)("pcto toyota"),subtitle:"Toyota Material Handling Manufacturing Italy",right_text:`${$(t)("december")} 2019 | ${$(t)("july")} 2019 | ${$(t)("february")} 2019`},{default:Re(()=>[Ie(J($(t)("pcto toyota description")),1)]),_:1},8,["title","right_text"])]))}}),bx={class:"text-4xl font-bold tracking-wide"},wx=pe({__name:"Other",setup(e){const{t}=we({messages:Hn});return(n,s)=>(ne(),ae("div",null,[P("h2",bx,J($(t)("other")),1),X(mt,{title:$(t)("ois"),subtitle:$(t)("aldini"),right_text:"2017-18 | 2018-19 | 2019-20"},{default:Re(()=>[Ie(J($(t)("ois description")),1)]),_:1},8,["title","subtitle"]),X(mt,{title:"MAST Academy: Expeditions",subtitle:$(t)("MAST foundation"),right_text:"2018"},{default:Re(()=>[Ie(J($(t)("MAST expeditions description")),1)]),_:1},8,["subtitle"])]))}}),$a="/assets/pdf-9d170c0d.svg",Ex="/assets/it-fe77b9df.pdf",Sx="/assets/en-6331f054.pdf",Cx="/assets/it_color-db1ddac8.pdf",kx="/assets/en_color-b3c59253.pdf",Ax={class:"flex justify-center items-start mt-2 mb-6"},Tx={class:"w-20 mx-5"},Px=["href"],Lx=["src"],Ix=P("p",{class:"text-sm text-center mt-1"},"CV",-1),Ox={class:"w-20 mx-5"},Mx=["href"],Rx=["src"],Nx={class:"text-sm text-center mt-1"},$x={class:"text-xs"},Dx={class:"flex flex-col md:flex-row"},Fx={class:"w-full md:w-2/3 order-1 md:order-2 md:pl-4 [&>*]:mt-8 first:[&>*]:mt-0"},Bx={class:"w-full md:w-1/3 mt-5 md:mt-0 order-2 md:order-1"},Hx=pe({__name:"Resume",setup(e){const{t}=we({messages:{en:{cv_link:Sx,cv_link_color:kx,with_colors:"but colored"},it:{cv_link:Ex,cv_link_color:Cx,with_colors:"ma colorato"}}});return(n,s)=>(ne(),ae(Fe,null,[X(Ci),P("main",null,[P("div",Ax,[P("div",Tx,[P("a",{href:$(t)("cv_link")},[P("img",{src:$($a),alt:"Download",class:"h-10 mx-auto dark:invert"},null,8,Lx),Ix],8,Px)]),P("div",Ox,[P("a",{href:$(t)("cv_link_color")},[P("img",{src:$($a),alt:"Download",class:"h-10 mx-auto dark:invert"},null,8,Rx),P("p",Nx,[Ie("CV"),P("span",$x,", "+J($(t)("with_colors")),1)])],8,Mx)])]),P("div",Dx,[P("div",Fx,[X(Ly),X(My),X(xx),X(_x),X(wx)]),P("div",Bx,[X(wy)])])])],64))}}),jx={contacts:"Contacts"},Wx={contacts:"Contatti"},Ux={en:jx,it:Wx},Vx={class:"my-4 text-left md:text-center"},zx=["href"],Gx={class:"inline-flex items-center"},Kx=["src"],Yx={class:"text-xl text-left"},Bi=pe({__name:"ContactLink",props:{url:String,label:String,icon:String,alt:String},setup(e){const t=e;return(n,s)=>(ne(),ae("p",Vx,[P("a",{href:t.url},[P("div",Gx,[P("img",{src:t.icon,alt:"Github",class:"h-7 mr-2 select-none dark:invert"},null,8,Kx),P("span",Yx,J(t.label),1)])],8,zx)]))}}),Xx="/assets/mail-915cc70d.svg",qx="/assets/telegram-a6f663c5.svg",Qx="/assets/linkedin-5f5fad7e.svg",Jx="/assets/discord-c4410c78.svg",Zx={class:"relative z-10"},eb={class:"md:flex justify-center"},tb=pe({__name:"Contacts",setup(e){return we({messages:Ux}),(t,n)=>(ne(),ae(Fe,null,[P("div",Zx,[X(Ci)]),X(qs,null,{default:Re(()=>[P("main",null,[P("div",eb,[P("div",null,[X(Bi,{label:"tcxia2001@gmail.com",url:"mailto:tcxia2001@gmail.com",icon:$(Xx),alt:"E-mail"},null,8,["icon"]),X(Bi,{label:"t.me/notxia",url:"https://t.me/notxia",icon:$(qx),alt:"Telegram"},null,8,["icon"]),X(Bi,{label:"Panda#9784",url:"https://discordapp.com/users/272354672969515009",icon:$(Jx),alt:"Discord"},null,8,["icon"]),X(Bi,{label:"linkedin.com/in/tian-cheng-xia",url:"https://www.linkedin.com/in/tian-cheng-xia/",icon:$(Qx),alt:"LinkedIn"},null,8,["icon"])])])])]),_:1})],64))}}),nb=ch({history:kd(),routes:[{path:"/",name:"home",component:b_},{path:"/about",name:"about",component:n0},{path:"/projects",name:"projects",component:Y0},{path:"/resume",name:"resume",component:Hx},{path:"/contacts",name:"contacts",component:tb}]});const Qs=od(tg);Qs.use(nb);Qs.use(jp({legacy:!1,locale:Sv(),fallbackLocale:"it",messages:{en:{},it:{}}}));Qs.mount("#app");
|