diff --git a/assets/GraphView-BY2yBi6p.js b/assets/GraphView-BY2yBi6p.js deleted file mode 100644 index e68452a..0000000 --- a/assets/GraphView-BY2yBi6p.js +++ /dev/null @@ -1 +0,0 @@ -import{z as Rn,m as K,b as Ct,A as Gt,B as P,_ as ht,o as T,h as ot,i as nt,c as Z,F as ie,r as we,t as Bn,L as Yr,C as be,D as ue,E as Fn,e as F,k as Xr,f as R,G as ln,u as te,H as zt,s as $t,I as vt,q as Se,J as Uo,d as Q,j as Ke,n as At,y as Ht,T as qo,K as Wo,M as Kr,N as Re,O as Yo,P as Xo,Q as jr,R as Zn,S as $e,p as Qr,U as cn,l as Ko,V as jo,a as Qo,W as wr,X as br,Y as Jo}from"./index-D-1Npho3.js";import{T as ta}from"./TheVideo-C4pT0RJ-.js";import{I as Ln}from"./InputButton-BAiGn1bm.js";import{T as ea}from"./TheHeader-B4i9M5s4.js";var na={value:()=>{}};function fn(){for(var t=0,e=arguments.length,n={},r;t=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Ue.prototype=fn.prototype={constructor:Ue,on:function(t,e){var n=this._,r=ra(t+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Lr.hasOwnProperty(e)?{space:Lr[e],local:t}:t}function oa(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===An&&e.documentElement.namespaceURI===An?e.createElement(t):e.createElementNS(n,t)}}function aa(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Jr(t){var e=hn(t);return(e.local?aa:oa)(e)}function sa(){}function Hn(t){return t==null?sa:function(){return this.querySelector(t)}}function ua(t){typeof t!="function"&&(t=Hn(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=$&&($=L+1);!(H=v[$])&&++$=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function Ia(t){t||(t=za);function e(h,d){return h&&d?t(h.__data__,d.__data__):!h-!d}for(var n=this._groups,r=n.length,i=new Array(r),o=0;oe?1:t>=e?0:NaN}function Da(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Pa(){return Array.from(this)}function Oa(){for(var t=this._groups,e=0,n=t.length;e1?this.each((e==null?Ya:typeof e=="function"?Ka:Xa)(t,e,n??"")):ae(this.node(),t)}function ae(t,e){return t.style.getPropertyValue(e)||ii(t).getComputedStyle(t,null).getPropertyValue(e)}function Qa(t){return function(){delete this[t]}}function Ja(t,e){return function(){this[t]=e}}function ts(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function es(t,e){return arguments.length>1?this.each((e==null?Qa:typeof e=="function"?ts:Ja)(t,e)):this.node()[t]}function oi(t){return t.trim().split(/^|\s+/)}function Gn(t){return t.classList||new ai(t)}function ai(t){this._node=t,this._names=oi(t.getAttribute("class")||"")}ai.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function si(t,e){for(var n=Gn(t),r=-1,i=e.length;++r=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function Ns(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Be(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Be(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Zs.exec(t))?new pt(e[1],e[2],e[3],1):(e=Hs.exec(t))?new pt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Gs.exec(t))?Be(e[1],e[2],e[3],e[4]):(e=Vs.exec(t))?Be(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Us.exec(t))?Tr(e[1],e[2]/100,e[3]/100,1):(e=qs.exec(t))?Tr(e[1],e[2]/100,e[3]/100,e[4]):Mr.hasOwnProperty(t)?Ar(Mr[t]):t==="transparent"?new pt(NaN,NaN,NaN,0):null}function Ar(t){return new pt(t>>16&255,t>>8&255,t&255,1)}function Be(t,e,n,r){return r<=0&&(t=e=n=NaN),new pt(t,e,n,r)}function Xs(t){return t instanceof Ne||(t=Qt(t)),t?(t=t.rgb(),new pt(t.r,t.g,t.b,t.opacity)):new pt}function Tn(t,e,n,r){return arguments.length===1?Xs(t):new pt(t,e,n,r??1)}function pt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Vn(pt,Tn,fi(Ne,{brighter(t){return t=t==null?Qe:Math.pow(Qe,t),new pt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ce:Math.pow(Ce,t),new pt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new pt(jt(this.r),jt(this.g),jt(this.b),Je(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Nr,formatHex:Nr,formatHex8:Ks,formatRgb:kr,toString:kr}));function Nr(){return`#${Kt(this.r)}${Kt(this.g)}${Kt(this.b)}`}function Ks(){return`#${Kt(this.r)}${Kt(this.g)}${Kt(this.b)}${Kt((isNaN(this.opacity)?1:this.opacity)*255)}`}function kr(){const t=Je(this.opacity);return`${t===1?"rgb(":"rgba("}${jt(this.r)}, ${jt(this.g)}, ${jt(this.b)}${t===1?")":`, ${t})`}`}function Je(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function jt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Kt(t){return t=jt(t),(t<16?"0":"")+t.toString(16)}function Tr(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new wt(t,e,n,r)}function hi(t){if(t instanceof wt)return new wt(t.h,t.s,t.l,t.opacity);if(t instanceof Ne||(t=Qt(t)),!t)return new wt;if(t instanceof wt)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,f=(o+i)/2;return s?(e===o?a=(n-r)/s+(n0&&f<1?0:a,new wt(a,s,f,t.opacity)}function js(t,e,n,r){return arguments.length===1?hi(t):new wt(t,e,n,r??1)}function wt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Vn(wt,js,fi(Ne,{brighter(t){return t=t==null?Qe:Math.pow(Qe,t),new wt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ce:Math.pow(Ce,t),new wt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new pt(Mn(t>=240?t-240:t+120,i,r),Mn(t,i,r),Mn(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new wt(Er(this.h),Fe(this.s),Fe(this.l),Je(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Je(this.opacity);return`${t===1?"hsl(":"hsla("}${Er(this.h)}, ${Fe(this.s)*100}%, ${Fe(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Er(t){return t=(t||0)%360,t<0?t+360:t}function Fe(t){return Math.max(0,Math.min(1,t||0))}function Mn(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const Un=t=>()=>t;function Qs(t,e){return function(n){return t+n*e}}function Js(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function tu(t){return(t=+t)==1?di:function(e,n){return n-e?Js(e,n,t):Un(isNaN(e)?n:e)}}function di(t,e){var n=e-t;return n?Qs(t,n):Un(isNaN(t)?e:t)}const tn=function t(e){var n=tu(e);function r(i,o){var a=n((i=Tn(i)).r,(o=Tn(o)).r),s=n(i.g,o.g),f=n(i.b,o.b),u=di(i.opacity,o.opacity);return function(l){return i.r=a(l),i.g=s(l),i.b=f(l),i.opacity=u(l),i+""}}return r.gamma=t,r}(1);function eu(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;in&&(o=e.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,f.push({i:a,x:St(r,i)})),n=Sn.lastIndex;return n180?l+=360:l-u>180&&(u+=360),d.push({i:h.push(i(h)+"rotate(",null,r)-2,x:St(u,l)})):l&&h.push(i(h)+"rotate("+l+r)}function s(u,l,h,d){u!==l?d.push({i:h.push(i(h)+"skewX(",null,r)-2,x:St(u,l)}):l&&h.push(i(h)+"skewX("+l+r)}function f(u,l,h,d,p,x){if(u!==h||l!==d){var m=p.push(i(p)+"scale(",null,",",null,")");x.push({i:m-4,x:St(u,h)},{i:m-2,x:St(l,d)})}else(h!==1||d!==1)&&p.push(i(p)+"scale("+h+","+d+")")}return function(u,l){var h=[],d=[];return u=t(u),l=t(l),o(u.translateX,u.translateY,l.translateX,l.translateY,h,d),a(u.rotate,l.rotate,h,d),s(u.skewX,l.skewX,h,d),f(u.scaleX,u.scaleY,l.scaleX,l.scaleY,h,d),u=l=null,function(p){for(var x=-1,m=d.length,v;++x=0&&t._call.call(void 0,e),t=t._next;--se}function Dr(){Jt=(rn=Me.now())+dn,se=ve=0;try{yu()}finally{se=0,_u(),Jt=0}}function mu(){var t=Me.now(),e=t-rn;e>yi&&(dn-=e,rn=t)}function _u(){for(var t,e=nn,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:nn=n);ye=t,zn(r)}function zn(t){if(!se){ve&&(ve=clearTimeout(ve));var e=t-Jt;e>24?(t<1/0&&(ve=setTimeout(Dr,t-Me.now()-dn)),pe&&(pe=clearInterval(pe))):(pe||(rn=Me.now(),pe=setInterval(mu,yi)),se=1,mi(Dr))}}function Pr(t,e,n){var r=new on;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var xu=fn("start","end","cancel","interrupt"),wu=[],_i=0,Or=1,Dn=2,qe=3,Rr=4,Pn=5,We=6;function pn(t,e,n,r,i,o){var a=t.__transition;if(!a)t.__transition={};else if(n in a)return;bu(t,n,{name:e,index:r,group:i,on:xu,tween:wu,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:_i})}function Yn(t,e){var n=Lt(t,e);if(n.state>_i)throw new Error("too late; already scheduled");return n}function kt(t,e){var n=Lt(t,e);if(n.state>qe)throw new Error("too late; already running");return n}function Lt(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function bu(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Wn(o,0,n.time);function o(u){n.state=Or,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var l,h,d,p;if(n.state!==Or)return f();for(l in r)if(p=r[l],p.name===n.name){if(p.state===qe)return Pr(a);p.state===Rr?(p.state=We,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[l]):+lDn&&r.state=0&&(e=e.slice(0,n)),!e||e==="start"})}function Qu(t,e,n){var r,i,o=ju(e)?Yn:kt;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}function Ju(t,e){var n=this._id;return arguments.length<2?Lt(this.node(),n).on.on(t):this.each(Qu(n,t,e))}function tl(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function el(){return this.on("end.remove",tl(this._id))}function nl(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Hn(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a()=>t;function $l(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Dt(t,e,n){this.k=t,this.x=e,this.y=n}Dt.prototype={constructor:Dt,scale:function(t){return t===1?this:new Dt(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Dt(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var an=new Dt(1,0,0);Dt.prototype;function $n(t){t.stopImmediatePropagation()}function ge(t){t.preventDefault(),t.stopImmediatePropagation()}function Al(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Nl(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Br(){return this.__zoom||an}function kl(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Tl(){return navigator.maxTouchPoints||"ontouchstart"in this}function El(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function Il(){var t=Al,e=Nl,n=El,r=kl,i=Tl,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,f=gu,u=fn("start","zoom","end"),l,h,d,p=500,x=150,m=0,v=10;function y(_){_.property("__zoom",Br).on("wheel.zoom",Y,{passive:!1}).on("mousedown.zoom",J).on("dblclick.zoom",W).filter(i).on("touchstart.zoom",E).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",G).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(_,A,C,N){var z=_.selection?_.selection():_;z.property("__zoom",Br),_!==z?H(_,A,C,N):z.interrupt().each(function(){U(this,arguments).event(N).start().zoom(null,typeof A=="function"?A.apply(this,arguments):A).end()})},y.scaleBy=function(_,A,C,N){y.scaleTo(_,function(){var z=this.__zoom.k,D=typeof A=="function"?A.apply(this,arguments):A;return z*D},C,N)},y.scaleTo=function(_,A,C,N){y.transform(_,function(){var z=e.apply(this,arguments),D=this.__zoom,w=C==null?M(z):typeof C=="function"?C.apply(this,arguments):C,S=D.invert(w),I=typeof A=="function"?A.apply(this,arguments):A;return n($(L(D,I),w,S),z,a)},C,N)},y.translateBy=function(_,A,C,N){y.transform(_,function(){return n(this.__zoom.translate(typeof A=="function"?A.apply(this,arguments):A,typeof C=="function"?C.apply(this,arguments):C),e.apply(this,arguments),a)},null,N)},y.translateTo=function(_,A,C,N,z){y.transform(_,function(){var D=e.apply(this,arguments),w=this.__zoom,S=N==null?M(D):typeof N=="function"?N.apply(this,arguments):N;return n(an.translate(S[0],S[1]).scale(w.k).translate(typeof A=="function"?-A.apply(this,arguments):-A,typeof C=="function"?-C.apply(this,arguments):-C),D,a)},N,z)};function L(_,A){return A=Math.max(o[0],Math.min(o[1],A)),A===_.k?_:new Dt(A,_.x,_.y)}function $(_,A,C){var N=A[0]-C[0]*_.k,z=A[1]-C[1]*_.k;return N===_.x&&z===_.y?_:new Dt(_.k,N,z)}function M(_){return[(+_[0][0]+ +_[1][0])/2,(+_[0][1]+ +_[1][1])/2]}function H(_,A,C,N){_.on("start.zoom",function(){U(this,arguments).event(N).start()}).on("interrupt.zoom end.zoom",function(){U(this,arguments).event(N).end()}).tween("zoom",function(){var z=this,D=arguments,w=U(z,D).event(N),S=e.apply(z,D),I=C==null?M(S):typeof C=="function"?C.apply(z,D):C,X=Math.max(S[1][0]-S[0][0],S[1][1]-S[0][1]),q=z.__zoom,B=typeof A=="function"?A.apply(z,D):A,at=f(q.invert(I).concat(X/q.k),B.invert(I).concat(X/B.k));return function(ut){if(ut===1)ut=B;else{var tt=at(ut),ee=X/tt[2];ut=new Dt(ee,I[0]-tt[0]*ee,I[1]-tt[1]*ee)}w.zoom(null,ut)}})}function U(_,A,C){return!C&&_.__zooming||new j(_,A)}function j(_,A){this.that=_,this.args=A,this.active=0,this.sourceEvent=null,this.extent=e.apply(_,A),this.taps=0}j.prototype={event:function(_){return _&&(this.sourceEvent=_),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(_,A){return this.mouse&&_!=="mouse"&&(this.mouse[1]=A.invert(this.mouse[0])),this.touch0&&_!=="touch"&&(this.touch0[1]=A.invert(this.touch0[0])),this.touch1&&_!=="touch"&&(this.touch1[1]=A.invert(this.touch1[0])),this.that.__zoom=A,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(_){var A=Ft(this.that).datum();u.call(_,this.that,new $l(_,{sourceEvent:this.sourceEvent,target:y,type:_,transform:this.that.__zoom,dispatch:u}),A)}};function Y(_,...A){if(!t.apply(this,arguments))return;var C=U(this,A).event(_),N=this.__zoom,z=Math.max(o[0],Math.min(o[1],N.k*Math.pow(2,r.apply(this,arguments)))),D=Xt(_);if(C.wheel)(C.mouse[0][0]!==D[0]||C.mouse[0][1]!==D[1])&&(C.mouse[1]=N.invert(C.mouse[0]=D)),clearTimeout(C.wheel);else{if(N.k===z)return;C.mouse=[D,N.invert(D)],Ye(this),C.start()}ge(_),C.wheel=setTimeout(w,x),C.zoom("mouse",n($(L(N,z),C.mouse[0],C.mouse[1]),C.extent,a));function w(){C.wheel=null,C.end()}}function J(_,...A){if(d||!t.apply(this,arguments))return;var C=_.currentTarget,N=U(this,A,!0).event(_),z=Ft(_.view).on("mousemove.zoom",I,!0).on("mouseup.zoom",X,!0),D=Xt(_,C),w=_.clientX,S=_.clientY;Rs(_.view),$n(_),N.mouse=[D,this.__zoom.invert(D)],Ye(this),N.start();function I(q){if(ge(q),!N.moved){var B=q.clientX-w,at=q.clientY-S;N.moved=B*B+at*at>m}N.event(q).zoom("mouse",n($(N.that.__zoom,N.mouse[0]=Xt(q,C),N.mouse[1]),N.extent,a))}function X(q){z.on("mousemove.zoom mouseup.zoom",null),Bs(q.view,N.moved),ge(q),N.event(q).end()}}function W(_,...A){if(t.apply(this,arguments)){var C=this.__zoom,N=Xt(_.changedTouches?_.changedTouches[0]:_,this),z=C.invert(N),D=C.k*(_.shiftKey?.5:2),w=n($(L(C,D),N,z),e.apply(this,A),a);ge(_),s>0?Ft(this).transition().duration(s).call(H,w,N,_):Ft(this).call(y.transform,w,N,_)}}function E(_,...A){if(t.apply(this,arguments)){var C=_.touches,N=C.length,z=U(this,A,_.changedTouches.length===N).event(_),D,w,S,I;for($n(_),w=0;w{const t=K({}),e=K({x:0,y:0}),n=K({x:0,y:0,k:1});return{nodes:t,offset:e,transform:n}});function zl(t,e){var n,r=1;t==null&&(t=0),e==null&&(e=0);function i(){var o,a=n.length,s,f=0,u=0;for(o=0;o=(h=(s+u)/2))?s=h:u=h,(v=n>=(d=(f+l)/2))?f=d:l=d,i=o,!(o=o[y=v<<1|m]))return i[y]=a,t;if(p=+t._x.call(null,o.data),x=+t._y.call(null,o.data),e===p&&n===x)return a.next=o,i?i[y]=a:t._root=a,t;do i=i?i[y]=new Array(4):t._root=new Array(4),(m=e>=(h=(s+u)/2))?s=h:u=h,(v=n>=(d=(f+l)/2))?f=d:l=d;while((y=v<<1|m)===(L=(x>=d)<<1|p>=h));return i[L]=o,i[y]=a,t}function Pl(t){var e,n,r=t.length,i,o,a=new Array(r),s=new Array(r),f=1/0,u=1/0,l=-1/0,h=-1/0;for(n=0;nl&&(l=i),oh&&(h=o));if(f>l||u>h)return this;for(this.cover(f,u).cover(l,h),n=0;nt||t>=i||r>e||e>=o;)switch(u=(el||(s=x.y0)>h||(f=x.x1)=y)<<1|t>=v)&&(x=d[d.length-1],d[d.length-1]=d[d.length-1-m],d[d.length-1-m]=x)}else{var L=t-+this._x.call(null,p.data),$=e-+this._y.call(null,p.data),M=L*L+$*$;if(M=(d=(a+f)/2))?a=d:f=d,(m=h>=(p=(s+u)/2))?s=p:u=p,e=n,!(n=n[v=m<<1|x]))return this;if(!n.length)break;(e[v+1&3]||e[v+2&3]||e[v+3&3])&&(r=e,y=v)}for(;n.data!==t;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):e?(o?e[v]=o:delete e[v],(n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length&&(r?r[y]=n:this._root=n),this):(this._root=o,this)}function Hl(t){for(var e=0,n=t.length;ed.index){var E=p-Y.x-Y.vx,O=x-Y.y-Y.vy,G=E*E+O*O;Gp+W||Ux+W||ju.r&&(u.r=u[l].r)}function f(){if(e){var u,l=e.length,h;for(n=new Array(l),u=0;u[e(H,U,a),H])),M;for(v=0,s=new Array(y);v(t=(nc*t+rc)%Hr)/Hr}function oc(t){return t.x}function ac(t){return t.y}var sc=10,uc=Math.PI*(3-Math.sqrt(5));function lc(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,s=new Map,f=Wn(h),u=fn("tick","end"),l=ic();t==null&&(t=[]);function h(){d(),u.call("tick",e),n1?(v==null?s.delete(m):s.set(m,x(v)),e):s.get(m)},find:function(m,v,y){var L=0,$=t.length,M,H,U,j,Y;for(y==null?y=1/0:y*=y,L=0;L<$;++L)j=t[L],M=m-j.x,H=v-j.y,U=M*M+H*H,U1?(u.on(m,v),e):u.on(m)}}}function cc(){var t,e,n,r,i=bt(-30),o,a=1,s=1/0,f=.81;function u(p){var x,m=t.length,v=Kn(t,oc,ac).visitAfter(h);for(r=p,x=0;x=s)return;(p.data!==e||p.next)&&(y===0&&(y=Zt(n),M+=y*y),L===0&&(L=Zt(n),M+=L*L),Mh.id))].filter(h=>{var d;return["entity","predicate"].includes((d=Xe.data.nodes[h])==null?void 0:d.type)}),o=[...r.map(h=>{const d=n.filter(p=>p.id===h).map(({depth:p})=>p);return{id:h,depth:1-Math.max(...d)}}).map(({id:h,depth:d})=>({id:h,depth:d,...f(h)}))],a=[...Xe.data.edges.filter(h=>r.includes(h.nodes[0])&&r.includes(h.nodes[1])).map(h=>({source:h.nodes[0],target:h.nodes[1]}))],s=lc(o).force("link",ec(a).id(h=>h.id).distance(100)).force("collide",Jl().radius(h=>{var d;return((d=Xe.data.nodes[h.id])==null?void 0:d.type)==="graph"?160:50})).force("charge",cc().strength(-5e3)).force("center",zl(0,0)).force("radial",fc(h=>h.depth*550,0,0).strength(2));for(let h=0;h<1e3;h++)s.tick();return Object.fromEntries(o.filter(({proxy:h})=>!h).map(({id:h,x:d,y:p})=>[h,{x:d,y:p}]));function f(h){if(h===t)return{x:0,y:0};if(re.nodes[h]!=null)return re.nodes[h];const d=Math.random()*Math.PI*2;return{x:Math.cos(d)*250,y:Math.sin(d)*250}}}function Li(t,e=1){return[{id:t,depth:e},...Xe.data.edges.filter(n=>n.nodes.includes(t)).map(n=>{const r=n.nodes.find(i=>i!==t);return e===1?{id:r,depth:0}:Li(r,e-1)})]}const Qn=Rn("display",()=>{const t=Gt(),e=Ct(),n=P(()=>{var u,l;return((u=e.node)==null?void 0:u.marker)==null?[]:(l=e.node)==null?void 0:l.marker.filter(h=>h.time<=t.time).sort((h,d)=>h.time-d.time)}),r=P(()=>{var u,l;return(l=(u=e.node)==null?void 0:u.marker)==null?void 0:l.find(h=>h.time===t.time)}),i=P(()=>n.value.reduce((u,l)=>({...u,...l.states}),{states:{}})),o=P(()=>{var u;return(u=n.value.findLast(l=>l.bounds!=null))==null?void 0:u.bounds});function a(u){return u.includes("hide")?"hide":u.every(l=>l==="highlight")?"highlight":"default"}function s(u){const l=u.map(h=>e.data.nodes[h].inheritDisplay?f(h):i.value[h]);return a(l)}function f(u){const l=e.data.edges.filter(h=>h.nodes.includes(u)).map(h=>{const d=h.nodes.find(p=>p!==u);return i.value[d]});return a(l)}return{markers:n,exactMarker:r,states:i,bounds:o,inheritStateFromNodes:s,inheritStateFromNeighbor:f}}),dc=["onClick"],pc={__name:"ContextMenuList",props:["context"],setup(t){return(e,n)=>(T(),ot(Yr,{class:"context-menu-list"},{default:nt(()=>[(T(!0),Z(ie,null,we(t.context,(r,i)=>(T(),Z("button",{key:i,onClick:r.action},Bn(r.label),9,dc))),128))]),_:1}))}},gn=ht(pc,[["__scopeId","data-v-5b0e52e5"]]),gc=Rn("connect",()=>{const t=Ct(),e=K(!1),n=K({x:100,y:100}),r=K(null),i=K(null),o=K(null),a=new AbortController;function s(u,l,h){e.value=!0,i.value=l,r.value=u,o.value=h,window.addEventListener("keydown",d=>{d.key==="Escape"&&(a.abort(),e.value=!1)},{signal:a.signal})}function f(u){a.abort(),e.value=!1,t.data.edges.push({nodes:[r.value,u],arrow:i.value,graph:o.value,id:crypto.randomUUID()})}return{connecting:e,offset:n,open:s,start:r,close:f}}),_e=le();function vc(t){var r;const e=document.createRange(),n=(r=t.value)==null?void 0:r.childNodes;return n==null?0:(e.setStartBefore(n[0]),e.setEndAfter(n[n.length-1]),`${e.getBoundingClientRect().width/_e.transform.k}px`)}function Mi(t,e,n,r=0,i=0){var d;const o=document.createRange();if(((d=t.value)==null?void 0:d.childNodes)==null)return{};let s=t.value.firstElementChild;for(let p=r;p>0;p--)s=s.nextElementSibling;let f=t.value.lastElementChild;for(let p=i;p>0;p--)f=f.previousElementSibling;o.setStartBefore(s),o.setEndAfter(f);const u=o.getBoundingClientRect(),l=t.value.getBoundingClientRect().width,h={...n,width:Math.min(u.width,l)/_e.transform.k,height:u.height/_e.transform.k};return _e.nodes[e]=h,h}function Gr(t){if(t!=null)return t.getBoundingClientRect().width/_e.transform.k}const yc={class:"horizontal-slider"},mc=["disabled"],_c=["disabled"],xc={__name:"HorizontalSlider",props:{itemWidth:{type:Number,default:250},noArrows:Boolean},setup(t){const e=t,n=K(null),r=K(0),i=K(0),o=K(0),a=K(null),s=K(null),f=new ResizeObserver(p=>{for(const x of p)x.contentRect&&(a.value=`${(window.innerWidth-800)/2-30}px`,s.value=`${Math.max((window.innerWidth-800)/2-10,30)}px`,be(()=>{r.value=n.value.scrollWidth,i.value=n.value.offsetWidth}))}),u=P(()=>o.value>35&&!e.noArrows),l=P(()=>o.value{const v=Math.max(Math.floor(250/e.itemWidth),1);n.value.scrollBy({left:v*(e.itemWidth+10)*p,behavior:"smooth"})};return ue(()=>{f.observe(n.value)}),Fn(()=>{f.unobserve(n.value)}),(p,x)=>(T(),Z("div",yc,[F("button",{disabled:!u.value,tabindex:"-1",class:"arrow left",onClick:x[0]||(x[0]=m=>d(-1))}," ← ",8,mc),F("button",{disabled:!l.value,tabindex:"-1",class:"arrow right",onClick:x[1]||(x[1]=m=>d(1))}," → ",8,_c),F("div",{ref_key:"wrapper",ref:n,class:"wrapper",onScroll:h,style:{scrollPaddingInlineStart:"0px"}},[Xr(p.$slots,"default",{},void 0,!0)],544)]))}},wc=ht(xc,[["__scopeId","data-v-0b4d1e9f"]]),bc={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function Cc(t,e){return T(),Z("svg",bc,e[0]||(e[0]=[F("path",{d:"M17,15.7895644 L17,29.2104356 C17,29.7627203 17.4477153,30.2104356 18,30.2104356 C18.1850598,30.2104356 18.3664897,30.1590832 18.5240974,30.0620939 L29.4285552,23.3516583 C29.8989131,23.0622073 30.0455671,22.4462605 29.7561161,21.9759026 C29.6740728,21.8425821 29.5618757,21.730385 29.4285552,21.6483417 L18.5240974,14.9379061 C18.0537395,14.6484551 17.4377927,14.7951091 17.1483417,15.265467 C17.0513523,15.4230747 17,15.6045046 17,15.7895644 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const Si={name:"base-ControlsPlay",render:Cc},Lc={class:"icon",width:"21",height:"21",viewBox:"0 0 21 21",xmlns:"http://www.w3.org/2000/svg"};function Mc(t,e){return T(),Z("svg",Lc,e[0]||(e[0]=[F("path",{d:"M10.5,21 C16.2989899,21 21,16.2989899 21,10.5 C21,4.70101013 16.2989899,0 10.5,0 C4.70101013,0 0,4.70101013 0,10.5 C0,16.2989899 4.70101013,21 10.5,21 Z M10.5,14 C12.4329966,14 14,12.4329966 14,10.5 C14,8.56700338 12.4329966,7 10.5,7 C8.56700338,7 7,8.56700338 7,10.5 C7,12.4329966 8.56700338,14 10.5,14 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const Sc={name:"base-IconPlaying",render:Mc},$c={__name:"IconPlaying",setup(t){return(e,n)=>(T(),ot(R(Sc)))}},Ac=ht($c,[["__scopeId","data-v-aea62c91"]]),Nc=["src"],kc={class:"icon"},Tc={__name:"GraphNodeGraph",props:{node:Object,id:String,position:Object},setup(t,{expose:e}){const n=t,r=ln(),i=Gt(),o=te(),a=K(null),s=K(null),f=P(()=>r.localize(n.node.label)),u=P(()=>r.getMediaUrl(n.node.image)),l=P(()=>({"--graph-accent":`var(--${n.node.color})`})),h=P(()=>i.graphId===n.id&&i.playing),d=P(()=>i.next===n.id),p=P(()=>{if(!d.value)return;const m=i.duration-i.time;if(!(m>5))return{"--autoplay":`${100-m*20}%`}});ue(()=>{x()}),zt(()=>o.lang,()=>be(()=>x()));function x(m){Mi(s,n.id,n.position,null,m),console.log()}return e({el:s}),(m,v)=>(T(),Z("div",{class:"node-graph",ref_key:"el",ref:s,style:vt({...l.value,...p.value})},[u.value?(T(),Z("img",{key:0,src:u.value,draggable:"false"},null,8,Nc)):$t("",!0),F("div",kc,[h.value?(T(),ot(Ac,{key:1})):(T(),ot(R(Si),{key:0}))]),F("div",{class:"text",ref_key:"textElement",ref:a},[F("span",null,[F("span",null,Bn(f.value),1)])],512)],4))}},$i=ht(Tc,[["__scopeId","data-v-7ca53d01"]]),Ec={key:0},Ic={__name:"GraphNodeEntity",props:{node:Object,id:String,occurances:Object,position:Object},setup(t,{expose:e}){const n=Se(),r=t,i=Ct(),o=te(),a=K(null),s=K(null),f=K(null),u=K(!1),l=K(null),h=K(null),d=P(()=>{var v;return(v=i.data.nodes[r.node.class])==null?void 0:v.label}),p=P(()=>n.params.id===r.id);ue(()=>{x()}),zt(p,v=>{v&&(u.value=!0);const y=(Gr(a.value.querySelector(".label"))-250)/2;l.value={margin:`0 ${-y}px 0 ${y}px`};const L=(Gr(a.value.querySelector(".class"))-250)/2;h.value={margin:`0 ${-L}px 0 ${L}px`},be(()=>{x(v?0:1),v||(u.value=!0,l.value=null,h.value=null)})}),zt(()=>o.lang,()=>be(()=>x())),e({el:a});function x(v){const y=Mi(a,r.id,r.position,null,v);f.value=`${y.height}px`}function m(v){console.log(v.propertyName),v.propertyName==="margin-left"&&(u.value=!1,l.value=null,h.value=null)}return(v,y)=>{const L=Uo("RouterLink");return T(),Z("div",{class:At(["entity",{detail:p.value}]),ref_key:"el",ref:a,style:vt({width:s.value,height:f.value})},[F("span",{class:At(["label",{"animate-text-align":u.value}]),style:vt(l.value),onTransitionend:m},[Q(Ke,{text:t.node.label},null,8,["text"])],38),d.value?(T(),Z("br",Ec)):$t("",!0),d.value?(T(),Z("span",{key:1,class:At(["class",{"animate-text-align":u.value}]),style:vt(h.value)},[Q(Ke,{text:d.value},null,8,["text"])],6)):$t("",!0),Q(qo,{name:"stories"},{default:nt(()=>[p.value?(T(),ot(wc,{key:0,class:"occurances",onWheel:y[1]||(y[1]=Ht(()=>{},["stop"])),"no-arrows":u.value},{default:nt(()=>[(T(!0),Z(ie,null,we(t.occurances,$=>(T(),ot(L,{class:"occurance",onClick:y[0]||(y[0]=Ht(()=>{},["stop"])),key:$.id,to:{name:"graph",params:{type:"graph",id:$.id}}},{default:nt(()=>[Q($i,{id:$.id,node:$,class:"compact"},null,8,["id","node"])]),_:2},1032,["to"]))),128))]),_:1},8,["no-arrows"])):$t("",!0)]),_:1})],6)}}},zc=ht(Ic,[["__scopeId","data-v-8221faae"]]),Dc={data(){return{count:0}},props:{node:Object},computed:{label(){return this.helperStore.localize(this.node.label??this.node.text)},...Wo(ln)}},Pc={class:"entity",ref:"el"},Oc={class:"text measure-width"};function Rc(t,e,n,r,i,o){return T(),Z("div",Pc,[F("span",Oc,Bn(o.label),1)],512)}const Bc=ht(Dc,[["render",Rc],["__scopeId","data-v-b64e33c2"]]),Fc={class:"image"},Zc=["srcset"],Hc={__name:"GraphNodeImage",props:{node:Object},setup(t,{expose:e}){const n=t,r=ln(),i=K(null),o=P(()=>r.getMediaUrl(n.node.file));return e({el:i}),(a,s)=>(T(),Z("div",Fc,[F("img",{ref_key:"el",ref:i,srcset:`${o.value} 2x`,draggable:"false"},null,8,Zc)]))}},Gc=ht(Hc,[["__scopeId","data-v-7cbb6b98"]]),Vc={__name:"GraphNodeNote",props:{node:Object,occurances:Array},setup(t,{expose:e}){const n=t,r=ln(),i=K(null),o=K(null);P(()=>r.localize(n.node.text));const a=P(()=>{if(!(n.occurances.length!==1||n.occurances[0].color==null))return{"--graph-accent":`var(--${n.occurances[0].color})`}});return ue(()=>{o.value=vc(i)}),e({el:i}),(s,f)=>(T(),Z("div",{class:"note",ref_key:"el",ref:i,style:vt({...a.value,width:o.value})},null,4))}},Uc=ht(Vc,[["__scopeId","data-v-4fff4b26"]]),Vr={default:Bc,entity:zc,graph:$i,image:Gc,note:Uc};function qc(t){return Vr[t]??Vr.default}var Wc=4,Yc=.001,Xc=1e-7,Kc=10,me=11,Ge=1/(me-1),jc=typeof Float32Array=="function";function Ai(t,e){return 1-3*e+3*t}function Ni(t,e){return 3*e-6*t}function ki(t){return 3*t}function sn(t,e,n){return((Ai(e,n)*t+Ni(e,n))*t+ki(e))*t}function Ti(t,e,n){return 3*Ai(e,n)*t*t+2*Ni(e,n)*t+ki(e)}function Qc(t,e,n,r,i){var o,a,s=0;do a=e+(n-e)/2,o=sn(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>Xc&&++s=Yc?Jc(f,p,e,r):x===0?p:Qc(f,u,u+Ge,e,r)}return function(u){return u===0?0:u===1?1:sn(s(u),n,i)}};const nf=Kr(ef);var un={exports:{}};un.exports;(function(t,e){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",f="[object Array]",u="[object AsyncFunction]",l="[object Boolean]",h="[object Date]",d="[object Error]",p="[object Function]",x="[object GeneratorFunction]",m="[object Map]",v="[object Number]",y="[object Null]",L="[object Object]",$="[object Promise]",M="[object Proxy]",H="[object RegExp]",U="[object Set]",j="[object String]",Y="[object Symbol]",J="[object Undefined]",W="[object WeakMap]",E="[object ArrayBuffer]",O="[object DataView]",G="[object Float32Array]",_="[object Float64Array]",A="[object Int8Array]",C="[object Int16Array]",N="[object Int32Array]",z="[object Uint8Array]",D="[object Uint8ClampedArray]",w="[object Uint16Array]",S="[object Uint32Array]",I=/[\\^$.*+?()[\]{}|]/g,X=/^\[object .+?Constructor\]$/,q=/^(?:0|[1-9]\d*)$/,B={};B[G]=B[_]=B[A]=B[C]=B[N]=B[z]=B[D]=B[w]=B[S]=!0,B[s]=B[f]=B[E]=B[l]=B[O]=B[h]=B[d]=B[p]=B[m]=B[v]=B[L]=B[H]=B[U]=B[j]=B[W]=!1;var at=typeof Re=="object"&&Re&&Re.Object===Object&&Re,ut=typeof self=="object"&&self&&self.Object===Object&&self,tt=at||ut||Function("return this")(),ee=e&&!e.nodeType&&e,Jn=ee&&!0&&t&&!t.nodeType&&t,tr=Jn&&Jn.exports===ee,vn=tr&&at.process,er=function(){try{return vn&&vn.binding&&vn.binding("util")}catch{}}(),nr=er&&er.isTypedArray;function zi(c,g){for(var b=-1,k=c==null?0:c.length,et=0,V=[];++b-1}function co(c,g){var b=this.__data__,k=Ie(b,c);return k<0?(++this.size,b.push([c,g])):b[k][1]=g,this}Tt.prototype.clear=ao,Tt.prototype.delete=so,Tt.prototype.get=uo,Tt.prototype.has=lo,Tt.prototype.set=co;function qt(c){var g=-1,b=c==null?0:c.length;for(this.clear();++gst))return!1;var rt=V.get(c);if(rt&&V.get(g))return rt==g;var gt=-1,xt=!0,ct=b&o?new Ee:void 0;for(V.set(c,g),V.set(g,c);++gt-1&&c%1==0&&c-1&&c%1==0&&c<=a}function mr(c){var g=typeof c;return c!=null&&(g=="object"||g=="function")}function de(c){return c!=null&&typeof c=="object"}var _r=nr?Ri(nr):Ao;function Ho(c){return Fo(c)?Lo(c):No(c)}function Go(){return[]}function Vo(){return!1}t.exports=Zo})(un,un.exports);var rf=un.exports;const of=Kr(rf),xe=+getComputedStyle(document.documentElement).getPropertyValue("--transition").replace(/(.+)ms/,(t,e)=>e).replace(/(.+)s/,(t,e)=>e*1e3),On=+getComputedStyle(document.documentElement).getPropertyValue("--spacing").replace(/px$/,""),af={__name:"BaseInterpolate",props:{props:Object,duration:{type:Number,default:xe},delay:{type:Number,default:0}},setup(t){const e=t,n=K(e.props);let r=null;const i=nf(.25,.1,.25,1);let o=en(null,e.props);zt(()=>e.props,(s,f)=>{of(s,f)||(o=en(n.value,e.props),r=null,requestAnimationFrame(a))},{deep:!1});function a(s){if(e.duration===0)return n.value={...e.props};r===null&&(r=s);const f=Math.max(Math.min((s-r-e.delay)/e.duration,1),0);n.value={...o(i(f))},f<1&&requestAnimationFrame(a)}return(s,f)=>Xr(s.$slots,"default",Yo(Xo(n.value)))}},sf={class:"node-wrapper"},uf={__name:"GraphNode",props:{id:String,view:String,position:Object,graph:[String,Boolean]},setup(t){const e=t,n=jr();Se();const r=Ct(),i=le(),o=Qn(),a=Zn(),s=Gt(),f=te(),u=$e(),l=Qr(),h=gc(),d=cn(),p=K(null),x=P(()=>r.data.nodes[e.id]),m=P(()=>({transform:`translate(${e.position.x+i.offset.x}px, ${e.position.y+i.offset.y}px) translate(-50%, -50%)`})),v=P(()=>qc(x.value.type)),y=P(()=>p.value.el??p.value.$el),L=P(()=>r.graphs.filter(E=>Object.prototype.hasOwnProperty.call(E.allocations??{},e.id))),$=P(()=>x.value.inheritDisplay?o.inheritStateFromNeighbor(e.id):o.states[e.id]),M=P(()=>{var E,O,G,_;return(_=(G=(O=(E=r.data.nodes)==null?void 0:E[e.graph])==null?void 0:O.allocations)==null?void 0:G[e.id])==null?void 0:_.locked}),H=new ResizeObserver(E=>{for(const O of E)O.contentRect});function U(E){!f.edit||E.metaKey?n.push({name:"graph",params:{type:x.value.type,id:e.id}}):h.connecting?h.close(e.id):d.mode==="add-edge"?h.open(e.id,"→",e.graph):d.mode==="display-blur"?d.setDisplay(e.id,"hide",e.graph):d.mode==="display-default"?d.setDisplay(e.id,"default",e.graph):d.mode==="display-highlight"?d.setDisplay(e.id,"highlight",e.graph):d.mode==="display-unset"&&d.setDisplay(e.id,null,e.graph)}function j(){f.edit&&l.open(e.id,"node")}function Y(E){if(!f.edit||e.view!=="diagram"||E.button!==0||M.value)return;E.stopPropagation();const O={x:E.x,y:E.y},G={x:r.data.nodes[e.graph].allocations[e.id].x,y:r.data.nodes[e.graph].allocations[e.id].y},_=new AbortController;window.addEventListener("mousemove",C=>{const N={x:(C.x-O.x)/i.transform.k,y:(C.y-O.y)/i.transform.k},z=C.shiftKey?.5:20,D=Math.round((G.x+N.x)/z)*z,w=Math.round((G.y+N.y)/z)*z;r.data.nodes[e.graph].allocations[e.id].x=D,r.data.nodes[e.graph].allocations[e.id].y=w},{signal:_.signal}),window.addEventListener("mouseup",()=>{A()},{once:!0,signal:_.signal}),window.addEventListener("keydown",C=>{C.key==="Escape"&&A()},{signal:_.signal});function A(){_.abort()}}function J(E,O){return E?[O]:[]}function W(E){f.edit&&(E.preventDefault(),E.stopPropagation(),u.open(gn,[...J(e.view==="diagram",{label:"delete",action:()=>{r.deleteNode(e.id,e.graph)}}),{label:"edit",action:()=>{l.open(e.id,"node")}},...J(e.view==="diagram",{label:"→",action:()=>{e.view==="diagram"&&h.open(e.id,"→",e.graph)}}),...J(e.view==="diagram",{label:M.value?"unlock":"lock",action:()=>{r.data.nodes[e.graph].allocations[e.id].locked=!M.value}}),{label:"log",action:()=>{console.log(e.id,r.data.nodes[e.graph].allocations[e.id])}}],{x:E.x,y:E.y}))}return zt(()=>[e.position.y,e.position.x],()=>{i.nodes[e.id]={...i.nodes[e.id],x:e.position.x,y:e.position.y}}),ue(()=>{H.observe(y.value)}),Fn(()=>{y.value!=null&&H.unobserve(y.value),delete i.nodes[e.id]}),(E,O)=>{var G,_;return T(),Z("div",sf,[F("div",{style:vt(m.value)},[(T(),ot(Ko(v.value),{ref_key:"componentRef",ref:p,id:t.id,class:At(["node",[$.value,t.view,`mode-${R(d).mode}`,{"user-active":!R(a).inactivityShort||!R(s).playing,edit:R(f).edit,locked:M.value,exact:(_=(G=R(o).exactMarker)==null?void 0:G.states)==null?void 0:_.hasOwnProperty(t.id)}]]),"no-style":m.value,node:x.value,occurances:L.value,position:t.position,onClick:U,onDblclick:Ht(j,["stop"]),onMousedown:Y,onContextmenu:W},null,40,["id","class","no-style","node","occurances","position"]))],4)])}}},lf=ht(uf,[["__scopeId","data-v-3a90b1e0"]]);function Ur(t,e,n,r,i,o,a,s,f){const u=i+a,l=o+s,h=i+f,d=o+f,p=i+a-f,x=o+s-f,m=[[i,x,i,d,i,o],[h,o,p,o,u,o],[u,d,u,x,u,l],[p,l,h,l,i,l]],v=[[h,d,Math.PI,Math.PI*1.5],[p,d,Math.PI*1.5,Math.PI*2],[p,x,0,Math.PI*.5],[h,x,Math.PI*.5,Math.PI]];let y=[];return m.forEach((L,$)=>{const[M,H,U,j]=L,[Y,J,W,E]=v[$];df(Y,J,f,t,e,n,r).filter(G=>{const _=ff(hf(Y,J,G[0],G[1]));return _>W&&_y.push({point:G,anchor:$*2+1}));const O=cf(t,e,n,r,M,H,U,j);O&&y.push({point:O,anchor:$*2})}),y}function cf(t,e,n,r,i,o,a,s){const f=(s-o)*(n-t)-(a-i)*(r-e),u=(a-i)*(e-o)-(s-o)*(t-i),l=(n-t)*(e-o)-(r-e)*(t-i);if(f===0)return void 0;const h=u/f,d=l/f;if(h>=0&&h<=1&&d>=0&&d<=1)return[t+h*(n-t),e+h*(r-e)]}function ff(t){return t-Math.PI*2*Math.floor(t/(Math.PI*2))}function hf(t,e,n,r){return Math.atan2(r-e,n-t)}function df(t,e,n,r,i,o,a){var s,f,u,l,h,d,p,x,m=[o-r,a-i],v=[r-t,i-e];return s=m[0]*v[0]+m[1]*v[1],f=2*(m[0]*m[0]+m[1]*m[1]),s*=-2,u=Math.sqrt(s*s-2*f*(v[0]*v[0]+v[1]*v[1]-n*n)),isNaN(u)?[]:(l=(s-u)/f,h=(s+u)/f,p=[],x=[],d=[],l<=1&&l>=0&&(p[0]=r+m[0]*l,p[1]=i+m[1]*l,d[0]=p),h<=1&&h>=0&&(x[0]=r+m[0]*h,x[1]=i+m[1]*h,d[d.length]=x),d)}const pf=["id"],gf=["id"],vf=["d"],yf=["d","marker-end","marker-start"],mf=["x","y"],_f=["x","y"],xf={__name:"GraphEdge",props:{edge:Object,view:String},setup(t){const e=le(),n=Qn(),r=Zn(),i=Gt(),o=Ct(),a=te(),s=Qr(),f=$e(),u=Se(),l=t,h=P(()=>u.params.type!=="graph"),d=P(()=>e.nodes[l.edge.nodes[0]]),p=P(()=>e.nodes[l.edge.nodes[1]]),x=P(()=>{var O;const E=(O=o.data.nodes[l.edge.graph])==null?void 0:O.color;return{"--graph-accent":E?`var(--${E})`:null}}),m=P(()=>n.inheritStateFromNodes(l.edge.nodes)),v=P(()=>{if(d.value==null||p.value==null)return;const E=On,O=On,G=d.value.width+E,_=d.value.height+E,A=p.value.width+E,C=p.value.height+E,N=Ur(d.value.x,d.value.y,p.value.x,p.value.y,d.value.x-G/2,d.value.y-_/2,G,_,Math.min(O,_/2-.1))[0],z=Ur(d.value.x,d.value.y,p.value.x,p.value.y,p.value.x-A/2,p.value.y-C/2,A,C,Math.min(O,C/2-.1))[0];if(N==null||z==null)return;const D={x:N.point[0]+e.offset.x,y:N.point[1]+e.offset.y},w={x:z.point[0]+e.offset.x,y:z.point[1]+e.offset.y},S={x:(D.x+w.x)/2,y:(D.y+w.y)/2};if(h.value)return[D,S,S,w];const I=[{x:-1,y:0},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:1,y:0},{x:1,y:1},{x:0,y:1},{x:-1,y:1}];return[D,{x:D.x+I[N.anchor].x*100,y:D.y+I[N.anchor].y*100},{x:w.x+I[z.anchor].x*100,y:w.y+I[z.anchor].y*100},w]}),y=P(()=>{if(v.value!=null)return`M${v.value.map((E,O)=>`${O===1?"C":""}${E.x},${E.y}`).join(" ")}`}),L=P(()=>v.value==null?[]:{x:(v.value[0].x+v.value[v.value.length-1].x)/2,y:(v.value[0].y+v.value[v.value.length-1].y)/2}),$=P(()=>l.edge.nodes.join("-")),M=P(()=>`url('#marker-${$.value}')`),H=P(()=>`url('#marker-${$.value}-alt')`),U=P(()=>(l.edge.arrow==="→"||l.edge.arrow==="↔")&&M.value),j=P(()=>(l.edge.arrow==="←"||l.edge.arrow==="↔")&&H.value);function Y(E){if(!E.metaKey)return;E.stopPropagation(),E.preventDefault();const O=[null,"→","←","↔"],G=Math.max(O.indexOf(l.edge.arrow),0);o.data.edges.find(_=>_.id===l.edge.id).arrow=O[(G+1)%O.length]}function J(E){!a.edit||E.metaKey||s.open(l.edge.id,"edge")}function W(E){a.edit&&(E.preventDefault(),E.stopPropagation(),f.open(gn,[{label:"delete",action:()=>{o.data.edges=o.data.edges.filter(O=>O.id!==l.edge.id)}},{label:"edit",action:()=>{s.open(l.edge.id,"edge")}}],{x:E.x,y:E.y}))}return(E,O)=>(T(),Z("g",{class:At(["edge",[m.value,t.view,{"user-active":!R(r).inactivityShort||!R(i).playing}]]),style:vt(x.value)},[F("defs",null,[F("marker",{id:`marker-${$.value}`,markerWidth:"10",markerHeight:"20",refX:"10",refY:"10",orient:"auto"},O[0]||(O[0]=[F("path",{d:"M2,6.5 L10,10 L2,13.5"},null,-1)]),8,pf),F("marker",{id:`marker-${$.value}-alt`,markerWidth:"10",markerHeight:"20",refX:"00",refY:"10",orient:"auto"},O[1]||(O[1]=[F("path",{d:"M8,6.5 L0,10 L8,13.5"},null,-1)]),8,gf)]),Q(af,{props:{d:y.value,...L.value},delay:0,duration:R(a).edit?0:R(xe)},{default:nt(G=>[R(a).edit?(T(),Z("path",{key:0,class:"edit",d:G.d,onDblclick:Ht(J,["stop"]),onContextmenu:W,onClick:Y},null,40,vf)):$t("",!0),F("path",{d:G.d,"marker-end":U.value,"marker-start":j.value},null,8,yf),F("text",{class:At(["shadow",{edit:R(a).edit}]),x:G.x,y:G.y,onDblclick:Ht(J,["stop"]),onContextmenu:W,onClick:Y},[Q(Ke,{text:t.edge.label},null,8,["text"])],42,mf),F("text",{x:G.x,y:G.y},[Q(Ke,{text:t.edge.label},null,8,["text"])],8,_f)]),_:1},8,["props","duration"])],6))}},wf=ht(xf,[["__scopeId","data-v-56a16983"]]),Ve={__name:"ContextMenuSearch",props:{context:{type:Object,default:()=>({nodeType:"entity"})}},setup(t){const e=Ct(),n=$e(),r=le();function i(o){e.data.nodes[e.nodeId].allocations==null&&(e.data.nodes[e.nodeId].allocations={}),e.data.nodes[e.nodeId].allocations[o]={x:(n.offset.x-r.transform.x)/r.transform.k,y:(n.offset.y-r.transform.y)/r.transform.k}}return(o,a)=>(T(),ot(jo,{onSelectItem:i,context:t.context},null,8,["context"]))}},bf=["d"],Cf={__name:"TheGraph",setup(t){const e=Se(),n=jr(),r=Ct();Qo();const i=Qn(),o=Zn(),a=Gt(),s=le(),f=te(),u=$e(),l=cn(),h=K([]),d=K(null),p=K(null),x=K(null),m=K(null),v=P(()=>e.params.id),y=K(r.data.nodes[v.value]),L=P(()=>e.params.type==="graph"?"diagram":"network"),$=P(()=>`translate(${s.transform.x}px, ${s.transform.y}px) scale(${s.transform.k})`),M=P(()=>{if(h.value==null)return;if(i.bounds!=null)return{x1:i.bounds.x1+s.offset.x,y1:i.bounds.y1+s.offset.y,x2:i.bounds.x2+s.offset.x,y2:i.bounds.y2+s.offset.y};const w=Object.values(h.value),S=w.map(({x:B})=>B),I=w.map(({y:B})=>B),X=200,q=100;return{x1:Math.min(...S)-X+s.offset.x,y1:Math.min(...I)-q+s.offset.y,x2:Math.max(...S)+X+s.offset.x,y2:Math.max(...I)+q+s.offset.y}}),H=P(()=>{const w=Object.keys(h.value??{});return r.data.edges.filter(S=>w.includes(S.nodes[0])&&w.includes(S.nodes[1])&&(S.graph===v.value||y.value.type!=="graph"))}),U=P(()=>Object.keys(h.value??{}).sort()),j=P(()=>{if(y.value.color!=null)return{"--graph-accent":`var(--${y.value.color})`}}),Y=P(()=>{var q;if((((q=i.exactMarker)==null?void 0:q.bounds)==null&&m.value)==null)return;const{x1:w,y1:S,x2:I,y2:X}=m.value||i.exactMarker.bounds;return`M${w+s.offset.x},${S+s.offset.y} L${I+s.offset.x},${S+s.offset.y} L${I+s.offset.x},${X+s.offset.y} L${w+s.offset.x},${X+s.offset.y} Z`});zt([v,()=>r.data],([w],[S])=>{y.value=r.data.nodes[w],J(xe,S)}),zt(M,()=>{o.inactivityShort&&E(M.value,xe)}),zt(()=>o.inactivityShort,()=>{a.playing&&E(M.value,xe)}),zt(()=>o.inactivityLong,()=>{a.playing&&e.name==="graph"&&e.params.type!=="graph"&&a.graphId!=null&&n.push({name:"graph",params:{type:"graph",id:a.graphId}})}),ue(()=>{p.value=Ft(d.value),x.value=Il().scaleExtent([.1,1]).on("zoom",w=>{s.transform=w.transform}).filter(w=>{if(l.mode!=="display-frame")return be(()=>o.registerActivity()),w.button===0&&!u.show}),p.value.call(x.value),J(0),G.observe(d.value)}),Fn(()=>{d.value!=null&&G.unobserve(d.value)});function J(w,S){if(y.value.type==="graph"){if(h.value=y.value.allocations,S!=null){const I=r.data.nodes[S].type==="graph"?W(r.data.nodes[S].allocations):{x:0,y:0},X=r.data.nodes[S].type==="graph"||h.value[S]==null?W(h.value):h.value[S];s.offset.x=s.offset.x+I.x-X.x,s.offset.y=s.offset.y+I.y-X.y}E(M.value,w)}else h.value=hc(v.value),O(s.offset,w)}function W(w){const S=Object.values(w),I=S.map(({x:tt})=>tt),X=S.map(({y:tt})=>tt),q=Math.min(...I),B=Math.max(...I),at=Math.min(...X),ut=Math.max(...X);return{x:(q+B)/2,y:(at+ut)/2}}function E(w,S=0){if(w==null)return;const I={x:w.x2-w.x1,y:w.y2-w.y1},X=d.value.getBoundingClientRect(),q=X.width/I.x,B=(X.height-On*2.7)/I.y,at=Math.min(q,B),ut=w.x1+I.x/2,tt=w.y1+I.y/2;p.value.transition().duration(S).call(x.value.transform,an.translate(X.width/2,X.height/2).scale(at).translate(-ut,-tt))}function O({x:w,y:S},I=0){const X=d.value.getBoundingClientRect();p.value.transition().duration(I).call(x.value.transform,an.translate(X.width/2,X.height/2).scale(1).translate(-w,-S))}const G=new ResizeObserver(w=>{for(const S of w)S.contentRect&&E(M.value,0)});function _(w){!f.edit||L.value!=="diagram"||(w.preventDefault(),u.open(gn,[{label:"add",action:S=>{S.stopPropagation(),u.open(Ve)}},{label:"log",action:()=>{console.log(s.transform,u.offset)}}],{x:w.x,y:w.y}))}function A(w){if(!(!f.edit||L.value!=="diagram"))switch(["add-entity","add-story","add-image"].includes(l.mode)&&w.stopPropagation(),l.mode){case"add-entity":u.open(Ve,{nodeType:"entity"},{x:w.x,y:w.y}),l.resetMode();break;case"add-story":u.open(Ve,{nodeType:"graph"},{x:w.x,y:w.y}),l.resetMode();break;case"add-image":u.open(Ve,{nodeType:"image"},{x:w.x,y:w.y}),l.resetMode();break}}function C(w){if(l.mode==="display-frame"){w.preventDefault(),w.stopPropagation();const S=D(w);m.value={x1:S.x-s.offset.x,y1:S.y-s.offset.y,x2:S.x-s.offset.x,y2:S.y-s.offset.y};const I=new AbortController,X=function(){console.log("reset"),I.abort(),m.value=null};window.addEventListener("keydown",q=>{q.key==="Escape"&&X()},{signal:I.signal}),window.addEventListener("mousemove",q=>{const{x:B,y:at}=D(q);m.value.x2=B-s.offset.x,m.value.y2=at-s.offset.y},{signal:I.signal}),window.addEventListener("mouseup",()=>{l.setBounds(m.value,v.value),X(),l.resetMode()},{signal:I.signal})}}function N(w){if(w.preventDefault(),!f.edit||L.value!=="diagram")return;const S=br(w.dataTransfer.getData("text/uri-list")),I=r.nodes.find(q=>q.file===br(S));if(I!=null)return z(I.id,w.x,w.y);if(/(.png|.jpe?g|.gif|.webp)$/i.test(S)){const q=crypto.randomUUID(),B={type:"image",file:S,label:{universal:S.replace(/[^:]*:\/?\/?/,"").replace(/\.[^.]+$/,"")}};r.data.nodes[q]=B,z(q,w.x,w.y)}}function z(w,S,I){r.data.nodes[r.nodeId].allocations[w]=D({x:S,y:I})}function D(w){return{x:(w.x-s.transform.x)/s.transform.k,y:(w.y-s.transform.y)/s.transform.k}}return(w,S)=>(T(),Z(ie,null,[F("main",{class:At(["graph",[`mode-${R(l).mode}`,{initializing:R(e).meta.initializeView}]]),ref_key:"zoomElement",ref:d,style:vt(j.value),onContextmenu:_,onClick:A,onMousedown:C,onDrop:N,onDragover:S[0]||(S[0]=Ht(()=>{},["prevent"])),onDragenter:S[1]||(S[1]=Ht(()=>{},["prevent"]))},[F("div",{class:"nodes",style:vt({transform:$.value})},[Q(wr,{name:"nodes"},{default:nt(()=>[(T(!0),Z(ie,null,we(U.value,I=>(T(),ot(lf,{key:I,id:I,position:h.value[I],view:L.value,graph:L.value==="diagram"&&v.value},null,8,["id","position","view","graph"]))),128))]),_:1})],4),(T(),Z("svg",null,[F("g",{style:vt({transform:$.value})},[Q(wr,{name:"edges"},{default:nt(()=>[(T(!0),Z(ie,null,we(H.value,I=>(T(),ot(wf,{key:I.id,edge:I,view:L.value},null,8,["edge","view"]))),128))]),_:1}),R(f).edit&&Y.value?(T(),Z("path",{key:0,d:Y.value,class:"display-bounds"},null,8,bf)):$t("",!0)],4)]))],38),S[2]||(S[2]=F("div",{class:"tint"},null,-1))],64))}},Lf=ht(Cf,[["__scopeId","data-v-f4ac8e94"]]),Mf={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function Sf(t,e){return T(),Z("svg",Mf,e[0]||(e[0]=[F("path",{d:"M18,15 L20,15 C20.5522847,15 21,15.4477153 21,16 L21,29 C21,29.5522847 20.5522847,30 20,30 L18,30 C17.4477153,30 17,29.5522847 17,29 L17,16 C17,15.4477153 17.4477153,15 18,15 Z M25,15 L27,15 C27.5522847,15 28,15.4477153 28,16 L28,29 C28,29.5522847 27.5522847,30 27,30 L25,30 C24.4477153,30 24,29.5522847 24,29 L24,16 C24,15.4477153 24.4477153,15 25,15 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const $f={name:"base-ControlsPause",render:Sf},Af={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function Nf(t,e){return T(),Z("svg",Af,e[0]||(e[0]=[F("polyline",{stroke:"#000000","stroke-width":"2",transform:"matrix(-1 0 0 1 43.5 0)",points:"18.5 16 25 22.5 18.5 29",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const kf={name:"base-ControlsMarkerPrevious",render:Nf},Tf={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function Ef(t,e){return T(),Z("svg",Tf,e[0]||(e[0]=[F("polyline",{stroke:"#000000","stroke-width":"2",points:"20 16 26.5 22.5 20 29",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const If={name:"base-ControlsMarkerNext",render:Ef},zf={class:"icon",width:"3",height:"45",viewBox:"0 0 3 45",xmlns:"http://www.w3.org/2000/svg"};function Df(t,e){return T(),Z("svg",zf,e[0]||(e[0]=[F("path",{d:"M2,36.5 C2,36.7761424 1.77614237,37 1.5,37 C1.22385763,37 1,36.7761424 1,36.5 L1,8.5 C1,8.22385763 1.22385763,8 1.5,8 C1.77614237,8 2,8.22385763 2,8.5 L2,36.5 Z",fill:"currentColor",opacity:".25"},null,-1)]))}const Pf={name:"base-SeperatorVertical",render:Df},Of={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function Rf(t,e){return T(),Z("svg",Of,e[0]||(e[0]=[F("g",{fill:"none","fill-rule":"evenodd"},[F("path",{d:"M18,14 C18.5522847,14 19,14.4477153 19,15 C19,15.5522847 18.5522847,16 18,16 L17,16 C16.4477153,16 16,16.4477153 16,17 L16,18 C16,18.5522847 15.5522847,19 15,19 C14.4477153,19 14,18.5522847 14,18 L14,17 C14,15.3431458 15.3431458,14 17,14 L18,14 Z M31,18 C31,18.5522847 30.5522847,19 30,19 C29.4477153,19 29,18.5522847 29,18 L29,17 C29,16.4477153 28.5522847,16 28,16 L27,16 C26.4477153,16 26,15.5522847 26,15 C26,14.4477153 26.4477153,14 27,14 L28,14 C29.6568542,14 31,15.3431458 31,17 L31,18 Z M27,31 C26.4477153,31 26,30.5522847 26,30 C26,29.4477153 26.4477153,29 27,29 L28,29 C28.5522847,29 29,28.5522847 29,28 L29,27 C29,26.4477153 29.4477153,26 30,26 C30.5522847,26 31,26.4477153 31,27 L31,28 C31,29.6568542 29.6568542,31 28,31 L27,31 Z M14,27 C14,26.4477153 14.4477153,26 15,26 C15.5522847,26 16,26.4477153 16,27 L16,28 C16,28.5522847 16.4477153,29 17,29 L18,29 C18.5522847,29 19,29.4477153 19,30 C19,30.5522847 18.5522847,31 18,31 L17,31 C15.3431458,31 14,29.6568542 14,28 L14,27 Z",fill:"currentColor","fill-rule":"nonzero"}),F("path",{d:"M23.2071068,15.2071068 L29.7928932,21.7928932 C30.1834175,22.1834175 30.1834175,22.8165825 29.7928932,23.2071068 L23.2071068,29.7928932 C22.8165825,30.1834175 22.1834175,30.1834175 21.7928932,29.7928932 L15.2071068,23.2071068 C14.8165825,22.8165825 14.8165825,22.1834175 15.2071068,21.7928932 L21.7928932,15.2071068 C22.1834175,14.8165825 22.8165825,14.8165825 23.2071068,15.2071068 Z",fill:"currentColor"})],-1)]))}const Bf={name:"base-DisplayDefaultFrame",render:Rf},Ff={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function Zf(t,e){return T(),Z("svg",Ff,e[0]||(e[0]=[F("path",{d:"M23.2071068,15.2071068 L29.7928932,21.7928932 C30.1834175,22.1834175 30.1834175,22.8165825 29.7928932,23.2071068 L23.2071068,29.7928932 C22.8165825,30.1834175 22.1834175,30.1834175 21.7928932,29.7928932 L15.2071068,23.2071068 C14.8165825,22.8165825 14.8165825,22.1834175 15.2071068,21.7928932 L21.7928932,15.2071068 C22.1834175,14.8165825 22.8165825,14.8165825 23.2071068,15.2071068 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const Ei={name:"base-DisplayDefault",render:Zf},Hf={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function Gf(t,e){return T(),Z("svg",Hf,e[0]||(e[0]=[F("path",{d:"M19,14 C19.5522847,14 20,14.4477153 20,15 C20,15.5522847 19.5522847,16 19,16 L17,16 C16.4477153,16 16,16.4477153 16,17 L16,19 C16,19.5522847 15.5522847,20 15,20 C14.4477153,20 14,19.5522847 14,19 L14,17 C14,15.3431458 15.3431458,14 17,14 L19,14 Z M31,19 C31,19.5522847 30.5522847,20 30,20 C29.4477153,20 29,19.5522847 29,19 L29,17 C29,16.4477153 28.5522847,16 28,16 L26,16 C25.4477153,16 25,15.5522847 25,15 C25,14.4477153 25.4477153,14 26,14 L28,14 C29.6568542,14 31,15.3431458 31,17 L31,19 Z M26,31 C25.4477153,31 25,30.5522847 25,30 C25,29.4477153 25.4477153,29 26,29 L28,29 C28.5522847,29 29,28.5522847 29,28 L29,26 C29,25.4477153 29.4477153,25 30,25 C30.5522847,25 31,25.4477153 31,26 L31,28 C31,29.6568542 29.6568542,31 28,31 L26,31 Z M14,26 C14,25.4477153 14.4477153,25 15,25 C15.5522847,25 16,25.4477153 16,26 L16,28 C16,28.5522847 16.4477153,29 17,29 L19,29 C19.5522847,29 20,29.4477153 20,30 C20,30.5522847 19.5522847,31 19,31 L17,31 C15.3431458,31 14,29.6568542 14,28 L14,26 Z",fill:"currentColor"},null,-1)]))}const Ii={name:"base-DisplayFrame",render:Gf},Vf={key:0,class:"markers"},Uf=["onClick","onMousemove","onContextmenu"],qf={__name:"ControlsProgress",props:{showMarkers:Boolean},setup(t){const e=K(0),n=Ct(),r=Gt(),i=$e(),o=cn(),a=P(()=>n.data.nodes[r.graphId]),s=P(()=>{const x=`${r.time/r.duration*100}%`;return`linear-gradient(to right, var(--left) ${x}, var(--right) ${x})`});function f(x,m){(m||!r.playing)&&(r.playFrom=r.time=x.offsetX/x.target.getBoundingClientRect().width*r.duration),m&&h()}function u(x){return`${x/r.duration*100}%`}function l(x,m,v){x.stopPropagation(),(v||!r.playing)&&(r.playFrom=r.time=m.time),v&&h()}function h(){e.value=r.time}function d(){r.playFrom=r.time=e.value}function p(x,m,v){x.preventDefault(),x.stopPropagation(),i.open(gn,[{label:"delete",action:()=>{n.data.nodes[r.graphId].marker=n.data.nodes[r.graphId].marker.filter((y,L)=>L!==v)}},{label:"+",remainOpen:!0,action:y=>{y.stopPropagation(),n.data.nodes[r.graphId].marker[v].time+=1}},{label:"-",remainOpen:!0,action:y=>{y.stopPropagation(),n.data.nodes[r.graphId].marker[v].time-=1}},...m.bounds!=null?[{label:"clear bounds",action:()=>{o.setBounds(null,r.graphId,m.time)}}]:[]],{x:x.x,y:x.y})}return(x,m)=>{var v;return T(),Z("div",{class:"progress",style:vt({background:s.value}),onClick:m[0]||(m[0]=y=>f(y,!0)),onMousemove:f,onMouseenter:h,onMouseleave:d},[t.showMarkers&&((v=a.value)!=null&&v.marker)?(T(),Z("div",Vf,[(T(!0),Z(ie,null,we(a.value.marker,(y,L)=>(T(),Z("div",{key:L,class:At(["marker",{active:y.time===R(r).time||y.time===e.value}]),style:vt({left:u(y.time)}),onClick:$=>l($,y,!0),onMousemove:$=>l($,y),onContextmenu:$=>p($,y,L)},[y.bounds&&y.states?(T(),ot(R(Bf),{key:0})):y.states?(T(),ot(R(Ei),{key:1})):(T(),ot(R(Ii),{key:2}))],46,Uf))),128))])):$t("",!0)],36)}}},qr=ht(qf,[["__scopeId","data-v-158acf2c"]]),Wf={__name:"TheControls",setup(t){const e=Ct(),n=Gt(),r=te(),i=P(()=>e.data.nodes[n.graphId]),o=P(()=>{var l;if(((l=i.value)==null?void 0:l.color)!=null)return{"--graph-accent":`var(--${i.value.color})`}}),a=P(()=>n.playing),s=P(()=>i.value.marker.toSorted((l,h)=>l.time-h.time));function f(){var l;n.playFrom=n.time=((l=s.value.findLast(h=>h.timeh.time>n.time))==null?void 0:l.time)??n.duration}return(l,h)=>(T(),Z("section",{class:At(["timeline",{edit:R(r).edit}]),style:vt(o.value)},[R(r).edit?(T(),ot(Yr,{key:0,class:"button-group",horizontal:""},{default:nt(()=>[Q(Ln,{"disable-padding":""},{default:nt(()=>[a.value?(T(),ot(R($f),{key:1,onClick:h[1]||(h[1]=d=>R(n).setPlaying=!1)})):(T(),ot(R(Si),{key:0,onClick:h[0]||(h[0]=d=>R(n).setPlaying=!0)}))]),_:1}),Q(Ln,{"disable-padding":""},{default:nt(()=>[Q(R(kf),{onClick:f})]),_:1}),Q(Ln,{"disable-padding":""},{default:nt(()=>[Q(R(If),{onClick:u})]),_:1}),Q(R(Pf)),Q(qr,{"show-markers":""})]),_:1})):(T(),ot(qr,{key:1}))],6))}},Yf=ht(Wf,[["__scopeId","data-v-264fb344"]]),Xf={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function Kf(t,e){return T(),Z("svg",Xf,e[0]||(e[0]=[F("path",{d:"M18.3994816,13.8517704 L28.7074921,22.4660712 C29.1312774,22.8202243 29.1877255,23.450868 28.8335723,23.8746534 C28.6860759,24.0511499 28.4822444,24.1714042 28.2564291,24.2151501 L25.5073341,24.7477155 C24.9651298,24.8527535 24.6107365,25.377447 24.7157744,25.9196512 C24.7313245,25.9999207 24.7566603,26.0779801 24.7912143,26.1520815 L26.5743353,29.9759967 C26.8077409,30.4765367 26.5911857,31.0715171 26.0906457,31.3049227 L25.184338,31.727541 C24.683798,31.9609466 24.0888175,31.7443914 23.8554119,31.2438515 L22.072291,27.4199363 C21.8388853,26.9193963 21.2439049,26.7028411 20.7433649,26.9362467 C20.6692636,26.9708008 20.5996796,27.0143123 20.5361713,27.0658068 L18.3611183,28.8294093 C17.9321324,29.1772448 17.3023942,29.1114594 16.9545587,28.6824734 C16.8096934,28.5038109 16.7308474,28.2806704 16.7313064,28.0506573 L16.7582326,14.6170974 C16.7593395,14.0648137 17.2079512,13.6179967 17.7602349,13.6191016 C17.9939596,13.6195721 18.220137,13.7018939 18.3994816,13.8517704 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const jf={name:"base-CursorDefault",render:Kf},Qf={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function Jf(t,e){return T(),Z("svg",Qf,e[0]||(e[0]=[F("path",{d:"M32,15 C33.1045695,15 34,15.8954305 34,17 L34,28 C34,29.1045695 33.1045695,30 32,30 L13,30 C11.8954305,30 11,29.1045695 11,28 L11,17 C11,15.8954305 11.8954305,15 13,15 L32,15 Z M32,16 L13,16 C12.4477153,16 12,16.4477153 12,17 L12,28 C12,28.5522847 12.4477153,29 13,29 L32,29 C32.5522847,29 33,28.5522847 33,28 L33,17 C33,16.4477153 32.5522847,16 32,16 Z M23,25 C23.5522847,25 24,25.4477153 24,26 L24,27 C24,27.5522847 23.5522847,28 23,28 L14,28 C13.4477153,28 13,27.5522847 13,27 L13,26 C13,25.4477153 13.4477153,25 14,25 L23,25 Z M31,17 C31.5522847,17 32,17.4477153 32,18 L32,23 C32,23.5522847 31.5522847,24 31,24 L14,24 C13.4477153,24 13,23.5522847 13,23 L13,18 C13,17.4477153 13.4477153,17 14,17 L31,17 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const t1={name:"base-AddEntity",render:Jf},e1={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function n1(t,e){return T(),Z("svg",e1,e[0]||(e[0]=[F("path",{d:"M32,15 C33.1045695,15 34,15.8954305 34,17 L34,28 C34,29.1045695 33.1045695,30 32,30 L13,30 C11.8954305,30 11,29.1045695 11,28 L11,17 C11,15.8954305 11.8954305,15 13,15 L32,15 Z M32,16 L13,16 C12.4477153,16 12,16.4477153 12,17 L12,28 C12,28.5522847 12.4477153,29 13,29 L32,29 C32.5522847,29 33,28.5522847 33,28 L33,17 C33,16.4477153 32.5522847,16 32,16 Z M20.1483417,19.765467 C20.4377927,19.2951091 21.0537395,19.1484551 21.5240974,19.4379061 L25.1160552,21.6483417 C25.2493757,21.730385 25.3615728,21.8425821 25.4436161,21.9759026 C25.7330671,22.4462605 25.5864131,23.0622073 25.1160552,23.3516583 L21.5240974,25.5620939 C21.3664897,25.6590832 21.1850598,25.7104356 21,25.7104356 C20.4477153,25.7104356 20,25.2627203 20,24.7104356 L20,20.2895644 C20,20.1045046 20.0513523,19.9230747 20.1483417,19.765467 Z",fill:"currentColor"},null,-1)]))}const r1={name:"base-AddStory",render:n1},i1={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function o1(t,e){return T(),Z("svg",i1,e[0]||(e[0]=[F("path",{d:"M32,15 C33.1045695,15 34,15.8954305 34,17 L34,28 C34,29.1045695 33.1045695,30 32,30 L13,30 C11.8954305,30 11,29.1045695 11,28 L11,17 C11,15.8954305 11.8954305,15 13,15 L32,15 Z M32,16 L13,16 C12.4477153,16 12,16.4477153 12,17 L12,28 C12,28.5522847 12.4477153,29 13,29 L32,29 C32.5522847,29 33,28.5522847 33,28 L33,17 C33,16.4477153 32.5522847,16 32,16 Z M26,22 C27.8346354,21.3884549 29.6692708,21.6183815 31.5040033,22.6896136 C31.8106661,22.8685631 31.9994458,23.1967019 32,23.5517578 L32,27 C32,27.5522847 31.5522847,28 31,28 L14,28 C13.4477153,28 13,27.5522847 13,27 L13,25.9687057 L13.0105961,25.8251331 C13.0818756,25.3451379 13.503213,24.9842004 14,25 L14.4403514,25.0105801 C20.8078896,25.11322 23.2067448,22.9310851 26,22 Z M16.75,18.5 C17.7164983,18.5 18.5,19.2835017 18.5,20.25 C18.5,21.2164983 17.7164983,22 16.75,22 C15.7835017,22 15,21.2164983 15,20.25 C15,19.2835017 15.7835017,18.5 16.75,18.5 Z",fill:"currentColor"},null,-1)]))}const a1={name:"base-AddImage",render:o1},s1={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function u1(t,e){return T(),Z("svg",s1,e[0]||(e[0]=[F("path",{d:"M31.0395445,14.6621019 C31.0865261,14.8343676 31.0865261,15.0160709 31.0395445,15.1883367 L29.2261258,21.8375386 C29.0808101,22.3703629 28.531069,22.6845007 27.9982446,22.539185 C27.8303497,22.4933955 27.6773109,22.4045836 27.5542552,22.281528 L25.844,20.5709684 L15.7071068,30.7071068 C15.3165825,31.0976311 14.6834175,31.0976311 14.2928932,30.7071068 C13.9023689,30.3165825 13.9023689,29.6834175 14.2928932,29.2928932 L24.429,19.1559684 L22.718472,17.4457448 C22.3279477,17.0552205 22.3279477,16.4220555 22.718472,16.0315312 C22.8415277,15.9084756 22.9945665,15.8196637 23.1624614,15.7738742 L29.8116633,13.9604555 C30.3444877,13.8151397 30.8942288,14.1292775 31.0395445,14.6621019 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const l1={name:"base-AddLink",render:u1},c1={class:"icon",width:"45",height:"3",viewBox:"0 0 45 3",xmlns:"http://www.w3.org/2000/svg"};function f1(t,e){return T(),Z("svg",c1,e[0]||(e[0]=[F("path",{d:"M36.5,1 C36.7761424,1 37,1.22385763 37,1.5 C37,1.77614237 36.7761424,2 36.5,2 L8.5,2 C8.22385763,2 8,1.77614237 8,1.5 C8,1.22385763 8.22385763,1 8.5,1 L36.5,1 Z",fill:"currentColor",opacity:".25"},null,-1)]))}const Wr={name:"base-SeperatorHorizontal",render:f1},h1={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"},d1=["id"],p1=["filter"];function g1(t,e){return T(),Z("svg",h1,[F("defs",null,[F("filter",{x:"-34.9%",y:"-34.9%",width:"169.8%",height:"169.8%",filterUnits:"objectBoundingBox",id:t.idMap.a},e[0]||(e[0]=[F("feGaussianBlur",{stdDeviation:"2",in:"SourceGraphic"},null,-1)]),8,d1)]),F("path",{d:"M22.7071068,15.7071068 L29.2928932,22.2928932 C29.6834175,22.6834175 29.6834175,23.3165825 29.2928932,23.7071068 L22.7071068,30.2928932 C22.3165825,30.6834175 21.6834175,30.6834175 21.2928932,30.2928932 L14.7071068,23.7071068 C14.3165825,23.3165825 14.3165825,22.6834175 14.7071068,22.2928932 L21.2928932,15.7071068 C21.6834175,15.3165825 22.3165825,15.3165825 22.7071068,15.7071068 Z",fill:"currentColor",filter:"url(#"+t.idMap.a+")","fill-rule":"evenodd",opacity:".832"},null,8,p1)])}const v1={name:"base-DisplayBlur",render:g1,data(){return{idMap:{a:"uicons-"+Math.random().toString(36).substr(2,10)}}}},y1={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function m1(t,e){return T(),Z("svg",y1,e[0]||(e[0]=[F("path",{d:"M17.1464466,27.1464466 L17.8535534,27.8535534 L15.3535534,30.3535534 L14.6464466,29.6464466 L17.1464466,27.1464466 Z M27.8535534,27.1464466 L30.3535534,29.6464466 L29.6464466,30.3535534 L27.1464466,27.8535534 L27.8535534,27.1464466 Z M23.2071068,15.2071068 L29.7928932,21.7928932 C30.1834175,22.1834175 30.1834175,22.8165825 29.7928932,23.2071068 L23.2071068,29.7928932 C22.8165825,30.1834175 22.1834175,30.1834175 21.7928932,29.7928932 L15.2071068,23.2071068 C14.8165825,22.8165825 14.8165825,22.1834175 15.2071068,21.7928932 L21.7928932,15.2071068 C22.1834175,14.8165825 22.8165825,14.8165825 23.2071068,15.2071068 Z M29.6464466,14.6464466 L30.3535534,15.3535534 L27.8535534,17.8535534 L27.1464466,17.1464466 L29.6464466,14.6464466 Z M15.3535534,14.6464466 L17.8535534,17.1464466 L17.1464466,17.8535534 L14.6464466,15.3535534 L15.3535534,14.6464466 Z M20.7868105,14.1744381 L19.8208847,14.4332571 L18.9058212,11.0181936 L19.871747,10.7593745 L20.7868105,14.1744381 Z M26.0941788,33.9818064 L25.128253,34.2406255 L24.2131895,30.8255619 L25.1791153,30.5667429 L26.0941788,33.9818064 Z M25.1791153,14.4332571 L24.2131895,14.1744381 L25.128253,10.7593745 L26.0941788,11.0181936 L25.1791153,14.4332571 Z M19.871747,34.2406255 L18.9058212,33.9818064 L19.8208847,30.5667429 L20.7868105,30.8255619 L19.871747,34.2406255 Z M30.8255619,20.7868105 L30.5667429,19.8208847 L33.9818064,18.9058212 L34.2406255,19.871747 L30.8255619,20.7868105 Z M11.0181936,26.0941788 L10.7593745,25.128253 L14.1744381,24.2131895 L14.4332571,25.1791153 L11.0181936,26.0941788 Z M30.5667429,25.1791153 L30.8255619,24.2131895 L34.2406255,25.128253 L33.9818064,26.0941788 L30.5667429,25.1791153 Z M10.7593745,19.871747 L11.0181936,18.9058212 L14.4332571,19.8208847 L14.1744381,20.7868105 L10.7593745,19.871747 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const _1={name:"base-DisplayHighlight",render:m1},x1={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function w1(t,e){return T(),Z("svg",x1,e[0]||(e[0]=[F("path",{d:"M30.2071068,14.7928932 C30.5976311,15.1834175 30.5976311,15.8165825 30.2071068,16.2071068 L16.2071068,30.2071068 C15.8165825,30.5976311 15.1834175,30.5976311 14.7928932,30.2071068 C14.4023689,29.8165825 14.4023689,29.1834175 14.7928932,28.7928932 L28.7928932,14.7928932 C29.1834175,14.4023689 29.8165825,14.4023689 30.2071068,14.7928932 Z M27.9142136,19.9142136 L29.7928932,21.7928932 C30.1834175,22.1834175 30.1834175,22.8165825 29.7928932,23.2071068 L23.2071068,29.7928932 C22.8165825,30.1834175 22.1834175,30.1834175 21.7928932,29.7928932 L19.9142136,27.9142136 L27.9142136,19.9142136 Z M23.2071068,15.2071068 L25.0862136,17.0862136 L17.0862136,25.0862136 L15.2071068,23.2071068 C14.8165825,22.8165825 14.8165825,22.1834175 15.2071068,21.7928932 L21.7928932,15.2071068 C22.1834175,14.8165825 22.8165825,14.8165825 23.2071068,15.2071068 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const b1={name:"base-DisplayUnset",render:w1},C1={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function L1(t,e){return T(),Z("svg",C1,e[0]||(e[0]=[F("path",{d:"M15,30 L30,30 L30,29 L15,29 L15,30 Z M23,15 L23,25.292 L26.6464466,21.6464466 L27.3535534,22.3535534 L22.5,27.2071068 L17.6464466,22.3535534 L18.3535534,21.6464466 L22,25.292 L22,15 L23,15 Z",fill:"currentColor"},null,-1)]))}const M1={name:"base-Export",render:L1},S1={class:"toolbar"},$1={__name:"TheToolbar",setup(t){const e=cn(),n=Ct();return(r,i)=>(T(),Z("section",S1,[Q(Jo,{modelValue:R(e).mode,"onUpdate:modelValue":i[0]||(i[0]=o=>R(e).mode=o),options:[{value:"default",slot:"default",tooltip:"Select"},{value:"add-entity",slot:"add-entity",tooltip:"add entity"},{value:"add-story",slot:"add-story",tooltip:"add story"},{value:"add-image",slot:"add-image",tooltip:"add image"},{value:"add-edge",slot:"add-edge",tooltip:"add edge"},{disabled:!0,slot:"seperator"},{value:"display-blur",slot:"display-blur",tooltip:"blur"},{value:"display-default",slot:"display-default",tooltip:"default"},{value:"display-highlight",slot:"display-highlight",tooltip:"highlight"},{value:"display-unset",slot:"display-unset",tooltip:"unset"},{value:"display-frame",slot:"display-frame",tooltip:"frame"},{disabled:!0,slot:"seperator2"},{value:"download",slot:"download",tooltip:"download data",action:R(n).exportProject}]},{default:nt(()=>[Q(R(jf))]),"add-entity":nt(()=>[Q(R(t1))]),"add-story":nt(()=>[Q(R(r1))]),"add-image":nt(()=>[Q(R(a1))]),"add-edge":nt(()=>[Q(R(l1))]),seperator:nt(()=>[Q(R(Wr))]),"display-blur":nt(()=>[Q(R(v1))]),"display-default":nt(()=>[Q(R(Ei))]),"display-highlight":nt(()=>[Q(R(_1))]),"display-unset":nt(()=>[Q(R(b1))]),"display-frame":nt(()=>[Q(R(Ii))]),seperator2:nt(()=>[Q(R(Wr))]),download:nt(()=>[Q(R(M1))]),_:1},8,["modelValue","options"])]))}},A1=ht($1,[["__scopeId","data-v-f9fd2ea6"]]),N1={__name:"GraphView",setup(t){const e=Gt(),n=te(),r=Se();return(i,o)=>(T(),Z("div",{class:At(["graph-view",{"split-screen":R(e).showVideo&&!R(n).pictureInPicture}]),onWheel:o[0]||(o[0]=Ht(()=>{},["prevent"]))},[R(r).meta.hideMenuBar?$t("",!0):(T(),ot(ea,{key:0})),Q(Lf),R(e).showVideo?(T(),ot(ta,{key:1})):$t("",!0),Q(Yf),R(n).edit?(T(),ot(A1,{key:2})):$t("",!0)],34))}},z1=ht(N1,[["__scopeId","data-v-bea8aeaf"]]);export{z1 as default}; diff --git a/assets/GraphView-CCykN0-Y.js b/assets/GraphView-CCykN0-Y.js new file mode 100644 index 0000000..283fc44 --- /dev/null +++ b/assets/GraphView-CCykN0-Y.js @@ -0,0 +1 @@ +import{z as Bn,m as j,b as Lt,A as Gt,B as D,_ as ht,o as A,h as ot,i as nt,c as R,F as jt,r as ae,t as be,L as Yr,C as Ce,D as le,E as Fn,e as G,k as Xr,f as O,G as $e,u as ee,H as zt,I as vt,q as Ae,J as Uo,d as Q,j as Qe,n as At,s as wt,x as qo,y as Ht,T as Wo,K as Yo,M as Kr,N as Fe,O as Xo,P as Ko,Q as jr,R as Zn,S as Ne,p as Qr,U as fn,l as jo,V as Qo,a as Jo,W as wr,X as br,Y as ta}from"./index-BLlMk6Ru.js";import{T as ea}from"./TheVideo-JWRRj9Rw.js";import{I as Mn}from"./InputButton-CxrAPq47.js";import{T as na}from"./TheHeader-DmDNvKd8.js";var ra={value:()=>{}};function hn(){for(var t=0,e=arguments.length,n={},r;t=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}We.prototype=hn.prototype={constructor:We,on:function(t,e){var n=this._,r=ia(t+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Lr.hasOwnProperty(e)?{space:Lr[e],local:t}:t}function aa(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Nn&&e.documentElement.namespaceURI===Nn?e.createElement(t):e.createElementNS(n,t)}}function sa(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Jr(t){var e=dn(t);return(e.local?sa:aa)(e)}function ua(){}function Hn(t){return t==null?ua:function(){return this.querySelector(t)}}function la(t){typeof t!="function"&&(t=Hn(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=S&&(S=L+1);!(B=m[S])&&++S=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function za(t){t||(t=Da);function e(h,d){return h&&d?t(h.__data__,d.__data__):!h-!d}for(var n=this._groups,r=n.length,i=new Array(r),o=0;oe?1:t>=e?0:NaN}function Pa(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Oa(){return Array.from(this)}function Ra(){for(var t=this._groups,e=0,n=t.length;e1?this.each((e==null?Xa:typeof e=="function"?ja:Ka)(t,e,n??"")):se(this.node(),t)}function se(t,e){return t.style.getPropertyValue(e)||ii(t).getComputedStyle(t,null).getPropertyValue(e)}function Ja(t){return function(){delete this[t]}}function ts(t,e){return function(){this[t]=e}}function es(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function ns(t,e){return arguments.length>1?this.each((e==null?Ja:typeof e=="function"?es:ts)(t,e)):this.node()[t]}function oi(t){return t.trim().split(/^|\s+/)}function Gn(t){return t.classList||new ai(t)}function ai(t){this._node=t,this._names=oi(t.getAttribute("class")||"")}ai.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function si(t,e){for(var n=Gn(t),r=-1,i=e.length;++r=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function ks(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Ze(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Ze(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Hs.exec(t))?new pt(e[1],e[2],e[3],1):(e=Gs.exec(t))?new pt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Vs.exec(t))?Ze(e[1],e[2],e[3],e[4]):(e=Us.exec(t))?Ze(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=qs.exec(t))?Tr(e[1],e[2]/100,e[3]/100,1):(e=Ws.exec(t))?Tr(e[1],e[2]/100,e[3]/100,e[4]):Mr.hasOwnProperty(t)?Ar(Mr[t]):t==="transparent"?new pt(NaN,NaN,NaN,0):null}function Ar(t){return new pt(t>>16&255,t>>8&255,t&255,1)}function Ze(t,e,n,r){return r<=0&&(t=e=n=NaN),new pt(t,e,n,r)}function Ks(t){return t instanceof Te||(t=Jt(t)),t?(t=t.rgb(),new pt(t.r,t.g,t.b,t.opacity)):new pt}function En(t,e,n,r){return arguments.length===1?Ks(t):new pt(t,e,n,r??1)}function pt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Vn(pt,En,fi(Te,{brighter(t){return t=t==null?tn:Math.pow(tn,t),new pt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Le:Math.pow(Le,t),new pt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new pt(Qt(this.r),Qt(this.g),Qt(this.b),en(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Nr,formatHex:Nr,formatHex8:js,formatRgb:kr,toString:kr}));function Nr(){return`#${Kt(this.r)}${Kt(this.g)}${Kt(this.b)}`}function js(){return`#${Kt(this.r)}${Kt(this.g)}${Kt(this.b)}${Kt((isNaN(this.opacity)?1:this.opacity)*255)}`}function kr(){const t=en(this.opacity);return`${t===1?"rgb(":"rgba("}${Qt(this.r)}, ${Qt(this.g)}, ${Qt(this.b)}${t===1?")":`, ${t})`}`}function en(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Qt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Kt(t){return t=Qt(t),(t<16?"0":"")+t.toString(16)}function Tr(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new bt(t,e,n,r)}function hi(t){if(t instanceof bt)return new bt(t.h,t.s,t.l,t.opacity);if(t instanceof Te||(t=Jt(t)),!t)return new bt;if(t instanceof bt)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,f=(o+i)/2;return s?(e===o?a=(n-r)/s+(n0&&f<1?0:a,new bt(a,s,f,t.opacity)}function Qs(t,e,n,r){return arguments.length===1?hi(t):new bt(t,e,n,r??1)}function bt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Vn(bt,Qs,fi(Te,{brighter(t){return t=t==null?tn:Math.pow(tn,t),new bt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Le:Math.pow(Le,t),new bt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new pt(Sn(t>=240?t-240:t+120,i,r),Sn(t,i,r),Sn(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new bt(Er(this.h),He(this.s),He(this.l),en(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=en(this.opacity);return`${t===1?"hsl(":"hsla("}${Er(this.h)}, ${He(this.s)*100}%, ${He(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Er(t){return t=(t||0)%360,t<0?t+360:t}function He(t){return Math.max(0,Math.min(1,t||0))}function Sn(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const Un=t=>()=>t;function Js(t,e){return function(n){return t+n*e}}function tu(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function eu(t){return(t=+t)==1?di:function(e,n){return n-e?tu(e,n,t):Un(isNaN(e)?n:e)}}function di(t,e){var n=e-t;return n?Js(t,n):Un(isNaN(t)?e:t)}const nn=function t(e){var n=eu(e);function r(i,o){var a=n((i=En(i)).r,(o=En(o)).r),s=n(i.g,o.g),f=n(i.b,o.b),u=di(i.opacity,o.opacity);return function(l){return i.r=a(l),i.g=s(l),i.b=f(l),i.opacity=u(l),i+""}}return r.gamma=t,r}(1);function nu(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;in&&(o=e.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,f.push({i:a,x:$t(r,i)})),n=$n.lastIndex;return n180?l+=360:l-u>180&&(u+=360),d.push({i:h.push(i(h)+"rotate(",null,r)-2,x:$t(u,l)})):l&&h.push(i(h)+"rotate("+l+r)}function s(u,l,h,d){u!==l?d.push({i:h.push(i(h)+"skewX(",null,r)-2,x:$t(u,l)}):l&&h.push(i(h)+"skewX("+l+r)}function f(u,l,h,d,p,x){if(u!==h||l!==d){var v=p.push(i(p)+"scale(",null,",",null,")");x.push({i:v-4,x:$t(u,h)},{i:v-2,x:$t(l,d)})}else(h!==1||d!==1)&&p.push(i(p)+"scale("+h+","+d+")")}return function(u,l){var h=[],d=[];return u=t(u),l=t(l),o(u.translateX,u.translateY,l.translateX,l.translateY,h,d),a(u.rotate,l.rotate,h,d),s(u.skewX,l.skewX,h,d),f(u.scaleX,u.scaleY,l.scaleX,l.scaleY,h,d),u=l=null,function(p){for(var x=-1,v=d.length,m;++x=0&&t._call.call(void 0,e),t=t._next;--ue}function Dr(){te=(an=Se.now())+pn,ue=ye=0;try{mu()}finally{ue=0,xu(),te=0}}function _u(){var t=Se.now(),e=t-an;e>yi&&(pn-=e,an=t)}function xu(){for(var t,e=on,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:on=n);me=t,Dn(r)}function Dn(t){if(!ue){ye&&(ye=clearTimeout(ye));var e=t-te;e>24?(t<1/0&&(ye=setTimeout(Dr,t-Se.now()-pn)),ge&&(ge=clearInterval(ge))):(ge||(an=Se.now(),ge=setInterval(_u,yi)),ue=1,mi(Dr))}}function Pr(t,e,n){var r=new sn;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var wu=hn("start","end","cancel","interrupt"),bu=[],_i=0,Or=1,Pn=2,Ye=3,Rr=4,On=5,Xe=6;function gn(t,e,n,r,i,o){var a=t.__transition;if(!a)t.__transition={};else if(n in a)return;Cu(t,n,{name:e,index:r,group:i,on:wu,tween:bu,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:_i})}function Yn(t,e){var n=Mt(t,e);if(n.state>_i)throw new Error("too late; already scheduled");return n}function kt(t,e){var n=Mt(t,e);if(n.state>Ye)throw new Error("too late; already running");return n}function Mt(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Cu(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Wn(o,0,n.time);function o(u){n.state=Or,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var l,h,d,p;if(n.state!==Or)return f();for(l in r)if(p=r[l],p.name===n.name){if(p.state===Ye)return Pr(a);p.state===Rr?(p.state=Xe,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[l]):+lPn&&r.state=0&&(e=e.slice(0,n)),!e||e==="start"})}function Ju(t,e,n){var r,i,o=Qu(e)?Yn:kt;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}function tl(t,e){var n=this._id;return arguments.length<2?Mt(this.node(),n).on.on(t):this.each(Ju(n,t,e))}function el(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function nl(){return this.on("end.remove",el(this._id))}function rl(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Hn(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a()=>t;function Al(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Dt(t,e,n){this.k=t,this.x=e,this.y=n}Dt.prototype={constructor:Dt,scale:function(t){return t===1?this:new Dt(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Dt(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var un=new Dt(1,0,0);Dt.prototype;function An(t){t.stopImmediatePropagation()}function ve(t){t.preventDefault(),t.stopImmediatePropagation()}function Nl(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function kl(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Br(){return this.__zoom||un}function Tl(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function El(){return navigator.maxTouchPoints||"ontouchstart"in this}function Il(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function zl(){var t=Nl,e=kl,n=Il,r=Tl,i=El,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,f=vu,u=hn("start","zoom","end"),l,h,d,p=500,x=150,v=0,m=10;function y(_){_.property("__zoom",Br).on("wheel.zoom",Y,{passive:!1}).on("mousedown.zoom",J).on("dblclick.zoom",W).filter(i).on("touchstart.zoom",E).on("touchmove.zoom",F).on("touchend.zoom touchcancel.zoom",V).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(_,N,C,k){var z=_.selection?_.selection():_;z.property("__zoom",Br),_!==z?B(_,N,C,k):z.interrupt().each(function(){H(this,arguments).event(k).start().zoom(null,typeof N=="function"?N.apply(this,arguments):N).end()})},y.scaleBy=function(_,N,C,k){y.scaleTo(_,function(){var z=this.__zoom.k,P=typeof N=="function"?N.apply(this,arguments):N;return z*P},C,k)},y.scaleTo=function(_,N,C,k){y.transform(_,function(){var z=e.apply(this,arguments),P=this.__zoom,w=C==null?M(z):typeof C=="function"?C.apply(this,arguments):C,$=P.invert(w),I=typeof N=="function"?N.apply(this,arguments):N;return n(S(L(P,I),w,$),z,a)},C,k)},y.translateBy=function(_,N,C,k){y.transform(_,function(){return n(this.__zoom.translate(typeof N=="function"?N.apply(this,arguments):N,typeof C=="function"?C.apply(this,arguments):C),e.apply(this,arguments),a)},null,k)},y.translateTo=function(_,N,C,k,z){y.transform(_,function(){var P=e.apply(this,arguments),w=this.__zoom,$=k==null?M(P):typeof k=="function"?k.apply(this,arguments):k;return n(un.translate($[0],$[1]).scale(w.k).translate(typeof N=="function"?-N.apply(this,arguments):-N,typeof C=="function"?-C.apply(this,arguments):-C),P,a)},k,z)};function L(_,N){return N=Math.max(o[0],Math.min(o[1],N)),N===_.k?_:new Dt(N,_.x,_.y)}function S(_,N,C){var k=N[0]-C[0]*_.k,z=N[1]-C[1]*_.k;return k===_.x&&z===_.y?_:new Dt(_.k,k,z)}function M(_){return[(+_[0][0]+ +_[1][0])/2,(+_[0][1]+ +_[1][1])/2]}function B(_,N,C,k){_.on("start.zoom",function(){H(this,arguments).event(k).start()}).on("interrupt.zoom end.zoom",function(){H(this,arguments).event(k).end()}).tween("zoom",function(){var z=this,P=arguments,w=H(z,P).event(k),$=e.apply(z,P),I=C==null?M($):typeof C=="function"?C.apply(z,P):C,X=Math.max($[1][0]-$[0][0],$[1][1]-$[0][1]),q=z.__zoom,Z=typeof N=="function"?N.apply(z,P):N,at=f(q.invert(I).concat(X/q.k),Z.invert(I).concat(X/Z.k));return function(ut){if(ut===1)ut=Z;else{var tt=at(ut),ne=X/tt[2];ut=new Dt(ne,I[0]-tt[0]*ne,I[1]-tt[1]*ne)}w.zoom(null,ut)}})}function H(_,N,C){return!C&&_.__zooming||new K(_,N)}function K(_,N){this.that=_,this.args=N,this.active=0,this.sourceEvent=null,this.extent=e.apply(_,N),this.taps=0}K.prototype={event:function(_){return _&&(this.sourceEvent=_),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(_,N){return this.mouse&&_!=="mouse"&&(this.mouse[1]=N.invert(this.mouse[0])),this.touch0&&_!=="touch"&&(this.touch0[1]=N.invert(this.touch0[0])),this.touch1&&_!=="touch"&&(this.touch1[1]=N.invert(this.touch1[0])),this.that.__zoom=N,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(_){var N=Ft(this.that).datum();u.call(_,this.that,new Al(_,{sourceEvent:this.sourceEvent,target:y,type:_,transform:this.that.__zoom,dispatch:u}),N)}};function Y(_,...N){if(!t.apply(this,arguments))return;var C=H(this,N).event(_),k=this.__zoom,z=Math.max(o[0],Math.min(o[1],k.k*Math.pow(2,r.apply(this,arguments)))),P=Xt(_);if(C.wheel)(C.mouse[0][0]!==P[0]||C.mouse[0][1]!==P[1])&&(C.mouse[1]=k.invert(C.mouse[0]=P)),clearTimeout(C.wheel);else{if(k.k===z)return;C.mouse=[P,k.invert(P)],Ke(this),C.start()}ve(_),C.wheel=setTimeout(w,x),C.zoom("mouse",n(S(L(k,z),C.mouse[0],C.mouse[1]),C.extent,a));function w(){C.wheel=null,C.end()}}function J(_,...N){if(d||!t.apply(this,arguments))return;var C=_.currentTarget,k=H(this,N,!0).event(_),z=Ft(_.view).on("mousemove.zoom",I,!0).on("mouseup.zoom",X,!0),P=Xt(_,C),w=_.clientX,$=_.clientY;Bs(_.view),An(_),k.mouse=[P,this.__zoom.invert(P)],Ke(this),k.start();function I(q){if(ve(q),!k.moved){var Z=q.clientX-w,at=q.clientY-$;k.moved=Z*Z+at*at>v}k.event(q).zoom("mouse",n(S(k.that.__zoom,k.mouse[0]=Xt(q,C),k.mouse[1]),k.extent,a))}function X(q){z.on("mousemove.zoom mouseup.zoom",null),Fs(q.view,k.moved),ve(q),k.event(q).end()}}function W(_,...N){if(t.apply(this,arguments)){var C=this.__zoom,k=Xt(_.changedTouches?_.changedTouches[0]:_,this),z=C.invert(k),P=C.k*(_.shiftKey?.5:2),w=n(S(L(C,P),k,z),e.apply(this,N),a);ve(_),s>0?Ft(this).transition().duration(s).call(B,w,k,_):Ft(this).call(y.transform,w,k,_)}}function E(_,...N){if(t.apply(this,arguments)){var C=_.touches,k=C.length,z=H(this,N,_.changedTouches.length===k).event(_),P,w,$,I;for(An(_),w=0;w{const t=j({}),e=j({x:0,y:0}),n=j({x:0,y:0,k:1});return{nodes:t,offset:e,transform:n}});function Dl(t,e){var n,r=1;t==null&&(t=0),e==null&&(e=0);function i(){var o,a=n.length,s,f=0,u=0;for(o=0;o=(h=(s+u)/2))?s=h:u=h,(m=n>=(d=(f+l)/2))?f=d:l=d,i=o,!(o=o[y=m<<1|v]))return i[y]=a,t;if(p=+t._x.call(null,o.data),x=+t._y.call(null,o.data),e===p&&n===x)return a.next=o,i?i[y]=a:t._root=a,t;do i=i?i[y]=new Array(4):t._root=new Array(4),(v=e>=(h=(s+u)/2))?s=h:u=h,(m=n>=(d=(f+l)/2))?f=d:l=d;while((y=m<<1|v)===(L=(x>=d)<<1|p>=h));return i[L]=o,i[y]=a,t}function Ol(t){var e,n,r=t.length,i,o,a=new Array(r),s=new Array(r),f=1/0,u=1/0,l=-1/0,h=-1/0;for(n=0;nl&&(l=i),oh&&(h=o));if(f>l||u>h)return this;for(this.cover(f,u).cover(l,h),n=0;nt||t>=i||r>e||e>=o;)switch(u=(el||(s=x.y0)>h||(f=x.x1)=y)<<1|t>=m)&&(x=d[d.length-1],d[d.length-1]=d[d.length-1-v],d[d.length-1-v]=x)}else{var L=t-+this._x.call(null,p.data),S=e-+this._y.call(null,p.data),M=L*L+S*S;if(M=(d=(a+f)/2))?a=d:f=d,(v=h>=(p=(s+u)/2))?s=p:u=p,e=n,!(n=n[m=v<<1|x]))return this;if(!n.length)break;(e[m+1&3]||e[m+2&3]||e[m+3&3])&&(r=e,y=m)}for(;n.data!==t;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):e?(o?e[m]=o:delete e[m],(n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length&&(r?r[y]=n:this._root=n),this):(this._root=o,this)}function Gl(t){for(var e=0,n=t.length;ed.index){var E=p-Y.x-Y.vx,F=x-Y.y-Y.vy,V=E*E+F*F;Vp+W||Hx+W||Ku.r&&(u.r=u[l].r)}function f(){if(e){var u,l=e.length,h;for(n=new Array(l),u=0;u[e(B,H,a),B])),M;for(m=0,s=new Array(y);m(t=(rc*t+ic)%Hr)/Hr}function ac(t){return t.x}function sc(t){return t.y}var uc=10,lc=Math.PI*(3-Math.sqrt(5));function cc(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,s=new Map,f=Wn(h),u=hn("tick","end"),l=oc();t==null&&(t=[]);function h(){d(),u.call("tick",e),n1?(m==null?s.delete(v):s.set(v,x(m)),e):s.get(v)},find:function(v,m,y){var L=0,S=t.length,M,B,H,K,Y;for(y==null?y=1/0:y*=y,L=0;L1?(u.on(v,m),e):u.on(v)}}}function fc(){var t,e,n,r,i=Ct(-30),o,a=1,s=1/0,f=.81;function u(p){var x,v=t.length,m=Kn(t,ac,sc).visitAfter(h);for(r=p,x=0;x=s)return;(p.data!==e||p.next)&&(y===0&&(y=Zt(n),M+=y*y),L===0&&(L=Zt(n),M+=L*L),Mh.id))].filter(h=>{var d;return["entity","predicate"].includes((d=je.data.nodes[h])==null?void 0:d.type)}),o=[...r.map(h=>{const d=n.filter(p=>p.id===h).map(({depth:p})=>p);return{id:h,depth:1-Math.max(...d)}}).map(({id:h,depth:d})=>({id:h,depth:d,...f(h)}))],a=[...je.data.edges.filter(h=>r.includes(h.nodes[0])&&r.includes(h.nodes[1])).map(h=>({source:h.nodes[0],target:h.nodes[1]}))],s=cc(o).force("link",nc(a).id(h=>h.id).distance(100)).force("collide",tc().radius(h=>{var d;return((d=je.data.nodes[h.id])==null?void 0:d.type)==="graph"?160:50})).force("charge",fc().strength(-5e3)).force("center",Dl(0,0)).force("radial",hc(h=>h.depth*550,0,0).strength(2));for(let h=0;h<1e3;h++)s.tick();return Object.fromEntries(o.filter(({proxy:h})=>!h).map(({id:h,x:d,y:p})=>[h,{x:d,y:p}]));function f(h){if(h===t)return{x:0,y:0};if(ie.nodes[h]!=null)return ie.nodes[h];const d=Math.random()*Math.PI*2;return{x:Math.cos(d)*250,y:Math.sin(d)*250}}}function Li(t,e=1){return[{id:t,depth:e},...je.data.edges.filter(n=>n.nodes.includes(t)).map(n=>{const r=n.nodes.find(i=>i!==t);return e===1?{id:r,depth:0}:Li(r,e-1)})]}const Qn=Bn("display",()=>{const t=Gt(),e=Lt(),n=D(()=>{var u,l;return((u=e.node)==null?void 0:u.marker)==null?[]:(l=e.node)==null?void 0:l.marker.filter(h=>h.time<=t.time).sort((h,d)=>h.time-d.time)}),r=D(()=>{var u,l;return(l=(u=e.node)==null?void 0:u.marker)==null?void 0:l.find(h=>h.time===t.time)}),i=D(()=>n.value.reduce((u,l)=>({...u,...l.states}),{states:{}})),o=D(()=>{var u;return(u=n.value.findLast(l=>l.bounds!=null))==null?void 0:u.bounds});function a(u){return u.includes("hide")?"hide":u.every(l=>l==="highlight")?"highlight":"default"}function s(u){const l=u.map(h=>e.data.nodes[h].inheritDisplay?f(h):i.value[h]);return a(l)}function f(u){const l=e.data.edges.filter(h=>h.nodes.includes(u)).map(h=>{const d=h.nodes.find(p=>p!==u);return i.value[d]});return a(l)}return{markers:n,exactMarker:r,states:i,bounds:o,inheritStateFromNodes:s,inheritStateFromNeighbor:f}}),pc=["onClick"],gc={__name:"ContextMenuList",props:["context"],setup(t){return(e,n)=>(A(),ot(Yr,{class:"context-menu-list"},{default:nt(()=>[(A(!0),R(jt,null,ae(t.context,(r,i)=>(A(),R("button",{key:i,onClick:r.action},be(r.label),9,pc))),128))]),_:1}))}},vn=ht(gc,[["__scopeId","data-v-5b0e52e5"]]),vc=Bn("connect",()=>{const t=Lt(),e=j(!1),n=j({x:100,y:100}),r=j(null),i=j(null),o=j(null),a=new AbortController;function s(u,l,h){e.value=!0,i.value=l,r.value=u,o.value=h,window.addEventListener("keydown",d=>{d.key==="Escape"&&(a.abort(),e.value=!1)},{signal:a.signal})}function f(u){a.abort(),e.value=!1,t.data.edges.push({nodes:[r.value,u],arrow:i.value,graph:o.value,id:crypto.randomUUID()})}return{connecting:e,offset:n,open:s,start:r,close:f}}),xe=ce();function yc(t){var r;const e=document.createRange(),n=(r=t.value)==null?void 0:r.childNodes;return n==null?0:(e.setStartBefore(n[0]),e.setEndAfter(n[n.length-1]),`${e.getBoundingClientRect().width/xe.transform.k}px`)}function Mi(t,e,n,r=0,i=0){var d;const o=document.createRange();if(((d=t.value)==null?void 0:d.childNodes)==null)return{};let s=t.value.firstElementChild;for(let p=r;p>0;p--)s=s.nextElementSibling;let f=t.value.lastElementChild;for(let p=i;p>0;p--)f=f.previousElementSibling;o.setStartBefore(s),o.setEndAfter(f);const u=o.getBoundingClientRect(),l=t.value.getBoundingClientRect().width,h={...n,width:Math.min(u.width,l)/xe.transform.k,height:u.height/xe.transform.k};return xe.nodes[e]=h,h}function Gr(t){if(t!=null)return t.getBoundingClientRect().width/xe.transform.k}const mc={class:"horizontal-slider"},_c=["disabled"],xc=["disabled"],wc={__name:"HorizontalSlider",props:{itemWidth:{type:Number,default:250},noArrows:Boolean},setup(t){const e=t,n=j(null),r=j(0),i=j(0),o=j(0),a=j(null),s=j(null),f=new ResizeObserver(p=>{for(const x of p)x.contentRect&&(a.value=`${(window.innerWidth-800)/2-30}px`,s.value=`${Math.max((window.innerWidth-800)/2-10,30)}px`,Ce(()=>{r.value=n.value.scrollWidth,i.value=n.value.offsetWidth}))}),u=D(()=>o.value>35&&!e.noArrows),l=D(()=>o.value{const m=Math.max(Math.floor(250/e.itemWidth),1);n.value.scrollBy({left:m*(e.itemWidth+10)*p,behavior:"smooth"})};return le(()=>{f.observe(n.value)}),Fn(()=>{f.unobserve(n.value)}),(p,x)=>(A(),R("div",mc,[G("button",{disabled:!u.value,tabindex:"-1",class:"arrow left",onClick:x[0]||(x[0]=v=>d(-1))}," ← ",8,_c),G("button",{disabled:!l.value,tabindex:"-1",class:"arrow right",onClick:x[1]||(x[1]=v=>d(1))}," → ",8,xc),G("div",{ref_key:"wrapper",ref:n,class:"wrapper",onScroll:h,style:{scrollPaddingInlineStart:"0px"}},[Xr(p.$slots,"default",{},void 0,!0)],544)]))}},bc=ht(wc,[["__scopeId","data-v-0b4d1e9f"]]),Cc={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function Lc(t,e){return A(),R("svg",Cc,e[0]||(e[0]=[G("path",{d:"M17,15.7895644 L17,29.2104356 C17,29.7627203 17.4477153,30.2104356 18,30.2104356 C18.1850598,30.2104356 18.3664897,30.1590832 18.5240974,30.0620939 L29.4285552,23.3516583 C29.8989131,23.0622073 30.0455671,22.4462605 29.7561161,21.9759026 C29.6740728,21.8425821 29.5618757,21.730385 29.4285552,21.6483417 L18.5240974,14.9379061 C18.0537395,14.6484551 17.4377927,14.7951091 17.1483417,15.265467 C17.0513523,15.4230747 17,15.6045046 17,15.7895644 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const Si={name:"base-ControlsPlay",render:Lc},Mc={class:"icon",width:"21",height:"21",viewBox:"0 0 21 21",xmlns:"http://www.w3.org/2000/svg"};function Sc(t,e){return A(),R("svg",Mc,e[0]||(e[0]=[G("path",{d:"M10.5,21 C16.2989899,21 21,16.2989899 21,10.5 C21,4.70101013 16.2989899,0 10.5,0 C4.70101013,0 0,4.70101013 0,10.5 C0,16.2989899 4.70101013,21 10.5,21 Z M10.5,14 C12.4329966,14 14,12.4329966 14,10.5 C14,8.56700338 12.4329966,7 10.5,7 C8.56700338,7 7,8.56700338 7,10.5 C7,12.4329966 8.56700338,14 10.5,14 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const $c={name:"base-IconPlaying",render:Sc},Ac={__name:"IconPlaying",setup(t){return(e,n)=>(A(),ot(O($c)))}},Nc=ht(Ac,[["__scopeId","data-v-aea62c91"]]),kc=["src"],Tc={key:1,class:"image-placeholder"},Ec={class:"icon"},Ic={__name:"GraphNodeGraph",props:{node:Object,id:String,position:Object},setup(t,{expose:e}){const n=t,r=$e(),i=Gt(),o=ee(),a=j(null),s=j(null),f=D(()=>r.localize(n.node.label)),u=D(()=>r.getMediaUrl(n.node.image)),l=D(()=>({"--graph-accent":`var(--${n.node.color})`})),h=D(()=>i.graphId===n.id&&i.playing),d=D(()=>i.next===n.id),p=D(()=>{if(!d.value)return;const v=i.duration-i.time;if(!(v>5))return{"--autoplay":`${100-v*20}%`}});le(()=>{x()}),zt(()=>o.lang,()=>Ce(()=>x()));function x(v){Mi(s,n.id,n.position,null,v),console.log()}return e({el:s}),(v,m)=>(A(),R("div",{class:"node-graph",ref_key:"el",ref:s,style:vt({...l.value,...p.value})},[u.value?(A(),R("img",{key:0,src:u.value,draggable:"false"},null,8,kc)):(A(),R("div",Tc)),G("div",Ec,[h.value?(A(),ot(Nc,{key:1})):(A(),ot(O(Si),{key:0}))]),G("div",{class:"text",ref_key:"textElement",ref:a},[G("span",null,[G("span",null,be(f.value),1)])],512)],4))}},$i=ht(Ic,[["__scopeId","data-v-30a3f98f"]]),zc={key:0},Dc={key:2,class:"description"},Pc={key:3,class:"urls"},Oc=["href"],Rc={__name:"GraphNodeEntity",props:{node:Object,id:String,occurances:Object,position:Object},setup(t,{expose:e}){const n=Ae(),r=t,i=Lt(),o=ee(),a=$e(),s=j(null),f=j(null),u=j(null),l=j(!1),h=j(null),d=j(null),p=D(()=>{var S;return(S=i.data.nodes[r.node.class])==null?void 0:S.label}),x=D(()=>n.params.id===r.id),v=D(()=>{if(x.value)return a.localize(r.node.description,!0)}),m=D(()=>{if(!(!x.value||r.node.url==null))return r.node.url.map(S=>({full:S,domain:new URL(S).hostname.replace(/^www\./,"")}))});le(()=>{y()}),zt(x,S=>{S&&(l.value=!0);const M=(Gr(s.value.querySelector(".label"))-250)/2;h.value={margin:`0 ${-M}px 0 ${M}px`};const B=(Gr(s.value.querySelector(".class"))-250)/2;d.value={margin:`0 ${-B}px 0 ${B}px`},Ce(()=>{y(S?0:1),S||(l.value=!0,h.value=null,d.value=null)})}),zt(()=>o.lang,()=>Ce(()=>y())),e({el:s});function y(S){const M=Mi(s,r.id,r.position,null,S);u.value=`${M.height}px`}function L(S){S.propertyName==="margin-left"&&(l.value=!1,h.value=null,d.value=null)}return(S,M)=>{const B=Uo("RouterLink");return A(),R("div",{class:At(["entity",{detail:x.value}]),ref_key:"el",ref:s,style:vt({width:f.value,height:u.value})},[G("span",{class:At(["label",{"animate-text-align":l.value}]),style:vt(h.value),onTransitionend:L},[Q(Qe,{text:t.node.label},null,8,["text"])],38),p.value?(A(),R("br",zc)):wt("",!0),p.value?(A(),R("span",{key:1,class:At(["class",{"animate-text-align":l.value}]),style:vt(d.value)},[Q(Qe,{text:p.value},null,8,["text"])],6)):wt("",!0),v.value?(A(),R("div",Dc,be(v.value),1)):wt("",!0),m.value&&!O(o).exhibition?(A(),R("div",Pc,[(A(!0),R(jt,null,ae(m.value,(H,K)=>(A(),R("span",{key:K},[G("a",{href:H.full},be(H.domain),9,Oc),M[2]||(M[2]=qo("  "))]))),128))])):wt("",!0),Q(Wo,{name:"stories"},{default:nt(()=>[x.value?(A(),ot(bc,{key:0,class:"occurances",onWheel:M[1]||(M[1]=Ht(()=>{},["stop"])),"no-arrows":l.value},{default:nt(()=>[(A(!0),R(jt,null,ae(t.occurances,H=>(A(),ot(B,{class:"occurance",onClick:M[0]||(M[0]=Ht(()=>{},["stop"])),key:H.id,to:{name:"graph",params:{type:"graph",id:H.id}}},{default:nt(()=>[Q($i,{id:H.id,node:H,class:"compact"},null,8,["id","node"])]),_:2},1032,["to"]))),128))]),_:1},8,["no-arrows"])):wt("",!0)]),_:1})],6)}}},Bc=ht(Rc,[["__scopeId","data-v-0be95d6f"]]),Fc={data(){return{count:0}},props:{node:Object},computed:{label(){return this.helperStore.localize(this.node.label??this.node.text)},...Yo($e)}},Zc={class:"entity",ref:"el"},Hc={class:"text measure-width"};function Gc(t,e,n,r,i,o){return A(),R("div",Zc,[G("span",Hc,be(o.label),1)],512)}const Vc=ht(Fc,[["render",Gc],["__scopeId","data-v-b64e33c2"]]),Uc={class:"image"},qc=["srcset"],Wc={__name:"GraphNodeImage",props:{node:Object},setup(t,{expose:e}){const n=t,r=$e(),i=j(null),o=D(()=>r.getMediaUrl(n.node.file));return e({el:i}),(a,s)=>(A(),R("div",Uc,[G("img",{ref_key:"el",ref:i,srcset:`${o.value} 2x`,draggable:"false"},null,8,qc)]))}},Yc=ht(Wc,[["__scopeId","data-v-7cbb6b98"]]),Xc={__name:"GraphNodeNote",props:{node:Object,occurances:Array},setup(t,{expose:e}){const n=t,r=$e(),i=j(null),o=j(null);D(()=>r.localize(n.node.text));const a=D(()=>{if(!(n.occurances.length!==1||n.occurances[0].color==null))return{"--graph-accent":`var(--${n.occurances[0].color})`}});return le(()=>{o.value=yc(i)}),e({el:i}),(s,f)=>(A(),R("div",{class:"note",ref_key:"el",ref:i,style:vt({...a.value,width:o.value})},null,4))}},Kc=ht(Xc,[["__scopeId","data-v-4fff4b26"]]),Vr={default:Vc,entity:Bc,graph:$i,image:Yc,note:Kc};function jc(t){return Vr[t]??Vr.default}var Qc=4,Jc=.001,tf=1e-7,ef=10,_e=11,Ue=1/(_e-1),nf=typeof Float32Array=="function";function Ai(t,e){return 1-3*e+3*t}function Ni(t,e){return 3*e-6*t}function ki(t){return 3*t}function ln(t,e,n){return((Ai(e,n)*t+Ni(e,n))*t+ki(e))*t}function Ti(t,e,n){return 3*Ai(e,n)*t*t+2*Ni(e,n)*t+ki(e)}function rf(t,e,n,r,i){var o,a,s=0;do a=e+(n-e)/2,o=ln(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>tf&&++s=Jc?of(f,p,e,r):x===0?p:rf(f,u,u+Ue,e,r)}return function(u){return u===0?0:u===1?1:ln(s(u),n,i)}};const uf=Kr(sf);var cn={exports:{}};cn.exports;(function(t,e){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",f="[object Array]",u="[object AsyncFunction]",l="[object Boolean]",h="[object Date]",d="[object Error]",p="[object Function]",x="[object GeneratorFunction]",v="[object Map]",m="[object Number]",y="[object Null]",L="[object Object]",S="[object Promise]",M="[object Proxy]",B="[object RegExp]",H="[object Set]",K="[object String]",Y="[object Symbol]",J="[object Undefined]",W="[object WeakMap]",E="[object ArrayBuffer]",F="[object DataView]",V="[object Float32Array]",_="[object Float64Array]",N="[object Int8Array]",C="[object Int16Array]",k="[object Int32Array]",z="[object Uint8Array]",P="[object Uint8ClampedArray]",w="[object Uint16Array]",$="[object Uint32Array]",I=/[\\^$.*+?()[\]{}|]/g,X=/^\[object .+?Constructor\]$/,q=/^(?:0|[1-9]\d*)$/,Z={};Z[V]=Z[_]=Z[N]=Z[C]=Z[k]=Z[z]=Z[P]=Z[w]=Z[$]=!0,Z[s]=Z[f]=Z[E]=Z[l]=Z[F]=Z[h]=Z[d]=Z[p]=Z[v]=Z[m]=Z[L]=Z[B]=Z[H]=Z[K]=Z[W]=!1;var at=typeof Fe=="object"&&Fe&&Fe.Object===Object&&Fe,ut=typeof self=="object"&&self&&self.Object===Object&&self,tt=at||ut||Function("return this")(),ne=e&&!e.nodeType&&e,Jn=ne&&!0&&t&&!t.nodeType&&t,tr=Jn&&Jn.exports===ne,yn=tr&&at.process,er=function(){try{return yn&&yn.binding&&yn.binding("util")}catch{}}(),nr=er&&er.isTypedArray;function zi(c,g){for(var b=-1,T=c==null?0:c.length,et=0,U=[];++b-1}function co(c,g){var b=this.__data__,T=De(b,c);return T<0?(++this.size,b.push([c,g])):b[T][1]=g,this}Tt.prototype.clear=ao,Tt.prototype.delete=so,Tt.prototype.get=uo,Tt.prototype.has=lo,Tt.prototype.set=co;function qt(c){var g=-1,b=c==null?0:c.length;for(this.clear();++gst))return!1;var rt=U.get(c);if(rt&&U.get(g))return rt==g;var gt=-1,xt=!0,ct=b&o?new ze:void 0;for(U.set(c,g),U.set(g,c);++gt-1&&c%1==0&&c-1&&c%1==0&&c<=a}function mr(c){var g=typeof c;return c!=null&&(g=="object"||g=="function")}function pe(c){return c!=null&&typeof c=="object"}var _r=nr?Ri(nr):Ao;function Ho(c){return Fo(c)?Lo(c):No(c)}function Go(){return[]}function Vo(){return!1}t.exports=Zo})(cn,cn.exports);var lf=cn.exports;const cf=Kr(lf),we=+getComputedStyle(document.documentElement).getPropertyValue("--transition").replace(/(.+)ms/,(t,e)=>e).replace(/(.+)s/,(t,e)=>e*1e3),Rn=+getComputedStyle(document.documentElement).getPropertyValue("--spacing").replace(/px$/,""),ff={__name:"BaseInterpolate",props:{props:Object,duration:{type:Number,default:we},delay:{type:Number,default:0}},setup(t){const e=t,n=j(e.props);let r=null;const i=uf(.25,.1,.25,1);let o=rn(null,e.props);zt(()=>e.props,(s,f)=>{cf(s,f)||(o=rn(n.value,e.props),r=null,requestAnimationFrame(a))},{deep:!1});function a(s){if(e.duration===0)return n.value={...e.props};r===null&&(r=s);const f=Math.max(Math.min((s-r-e.delay)/e.duration,1),0);n.value={...o(i(f))},f<1&&requestAnimationFrame(a)}return(s,f)=>Xr(s.$slots,"default",Xo(Ko(n.value)))}},hf={class:"node-wrapper"},df={__name:"GraphNode",props:{id:String,view:String,position:Object,graph:[String,Boolean]},setup(t){const e=t,n=jr();Ae();const r=Lt(),i=ce(),o=Qn(),a=Zn(),s=Gt(),f=ee(),u=Ne(),l=Qr(),h=vc(),d=fn(),p=j(null),x=D(()=>r.data.nodes[e.id]),v=D(()=>({transform:`translate(${e.position.x+i.offset.x}px, ${e.position.y+i.offset.y}px) translate(-50%, -50%)`})),m=D(()=>jc(x.value.type)),y=D(()=>p.value.el??p.value.$el),L=D(()=>r.graphs.filter(E=>Object.prototype.hasOwnProperty.call(E.allocations??{},e.id))),S=D(()=>x.value.inheritDisplay?o.inheritStateFromNeighbor(e.id):o.states[e.id]),M=D(()=>{var E,F,V,_;return(_=(V=(F=(E=r.data.nodes)==null?void 0:E[e.graph])==null?void 0:F.allocations)==null?void 0:V[e.id])==null?void 0:_.locked}),B=new ResizeObserver(E=>{for(const F of E)F.contentRect});function H(E){!f.edit||E.metaKey?n.push({name:"graph",params:{type:x.value.type,id:e.id}}):h.connecting?h.close(e.id):d.mode==="add-edge"?h.open(e.id,"→",e.graph):d.mode==="display-blur"?d.setDisplay(e.id,"hide",e.graph):d.mode==="display-default"?d.setDisplay(e.id,"default",e.graph):d.mode==="display-highlight"?d.setDisplay(e.id,"highlight",e.graph):d.mode==="display-unset"&&d.setDisplay(e.id,null,e.graph)}function K(){f.edit&&l.open(e.id,"node")}function Y(E){if(!f.edit||e.view!=="diagram"||E.button!==0||M.value)return;E.stopPropagation();const F={x:E.x,y:E.y},V={x:r.data.nodes[e.graph].allocations[e.id].x,y:r.data.nodes[e.graph].allocations[e.id].y},_=new AbortController;window.addEventListener("mousemove",C=>{const k={x:(C.x-F.x)/i.transform.k,y:(C.y-F.y)/i.transform.k},z=C.shiftKey?.5:20,P=Math.round((V.x+k.x)/z)*z,w=Math.round((V.y+k.y)/z)*z;r.data.nodes[e.graph].allocations[e.id].x=P,r.data.nodes[e.graph].allocations[e.id].y=w},{signal:_.signal}),window.addEventListener("mouseup",()=>{N()},{once:!0,signal:_.signal}),window.addEventListener("keydown",C=>{C.key==="Escape"&&N()},{signal:_.signal});function N(){_.abort()}}function J(E,F){return E?[F]:[]}function W(E){f.edit&&(E.preventDefault(),E.stopPropagation(),u.open(vn,[...J(e.view==="diagram",{label:"delete",action:()=>{r.deleteNode(e.id,e.graph)}}),{label:"edit",action:()=>{l.open(e.id,"node")}},...J(e.view==="diagram",{label:"→",action:()=>{e.view==="diagram"&&h.open(e.id,"→",e.graph)}}),...J(e.view==="diagram",{label:M.value?"unlock":"lock",action:()=>{r.data.nodes[e.graph].allocations[e.id].locked=!M.value}}),{label:"log",action:()=>{console.log(e.id,r.data.nodes[e.graph].allocations[e.id])}}],{x:E.x,y:E.y}))}return zt(()=>[e.position.y,e.position.x],()=>{i.nodes[e.id]={...i.nodes[e.id],x:e.position.x,y:e.position.y}}),le(()=>{B.observe(y.value)}),Fn(()=>{y.value!=null&&B.unobserve(y.value),delete i.nodes[e.id]}),(E,F)=>{var V,_;return A(),R("div",hf,[G("div",{style:vt(v.value)},[(A(),ot(jo(m.value),{ref_key:"componentRef",ref:p,id:t.id,class:At(["node",[S.value,t.view,`mode-${O(d).mode}`,{"user-active":!O(a).inactivityShort||!O(s).playing,edit:O(f).edit,locked:M.value,exact:(_=(V=O(o).exactMarker)==null?void 0:V.states)==null?void 0:_.hasOwnProperty(t.id)}]]),"no-style":v.value,node:x.value,occurances:L.value,position:t.position,onClick:H,onDblclick:Ht(K,["stop"]),onMousedown:Y,onContextmenu:W},null,40,["id","class","no-style","node","occurances","position"]))],4)])}}},pf=ht(df,[["__scopeId","data-v-3a90b1e0"]]);function Ur(t,e,n,r,i,o,a,s,f){const u=i+a,l=o+s,h=i+f,d=o+f,p=i+a-f,x=o+s-f,v=[[i,x,i,d,i,o],[h,o,p,o,u,o],[u,d,u,x,u,l],[p,l,h,l,i,l]],m=[[h,d,Math.PI,Math.PI*1.5],[p,d,Math.PI*1.5,Math.PI*2],[p,x,0,Math.PI*.5],[h,x,Math.PI*.5,Math.PI]];let y=[];return v.forEach((L,S)=>{const[M,B,H,K]=L,[Y,J,W,E]=m[S];mf(Y,J,f,t,e,n,r).filter(V=>{const _=vf(yf(Y,J,V[0],V[1]));return _>W&&_y.push({point:V,anchor:S*2+1}));const F=gf(t,e,n,r,M,B,H,K);F&&y.push({point:F,anchor:S*2})}),y}function gf(t,e,n,r,i,o,a,s){const f=(s-o)*(n-t)-(a-i)*(r-e),u=(a-i)*(e-o)-(s-o)*(t-i),l=(n-t)*(e-o)-(r-e)*(t-i);if(f===0)return void 0;const h=u/f,d=l/f;if(h>=0&&h<=1&&d>=0&&d<=1)return[t+h*(n-t),e+h*(r-e)]}function vf(t){return t-Math.PI*2*Math.floor(t/(Math.PI*2))}function yf(t,e,n,r){return Math.atan2(r-e,n-t)}function mf(t,e,n,r,i,o,a){var s,f,u,l,h,d,p,x,v=[o-r,a-i],m=[r-t,i-e];return s=v[0]*m[0]+v[1]*m[1],f=2*(v[0]*v[0]+v[1]*v[1]),s*=-2,u=Math.sqrt(s*s-2*f*(m[0]*m[0]+m[1]*m[1]-n*n)),isNaN(u)?[]:(l=(s-u)/f,h=(s+u)/f,p=[],x=[],d=[],l<=1&&l>=0&&(p[0]=r+v[0]*l,p[1]=i+v[1]*l,d[0]=p),h<=1&&h>=0&&(x[0]=r+v[0]*h,x[1]=i+v[1]*h,d[d.length]=x),d)}const _f=["id"],xf=["id"],wf=["d"],bf=["d","marker-end","marker-start"],Cf=["x","y"],Lf=["x","y"],Mf={__name:"GraphEdge",props:{edge:Object,view:String},setup(t){const e=ce(),n=Qn(),r=Zn(),i=Gt(),o=Lt(),a=ee(),s=Qr(),f=Ne(),u=Ae(),l=t,h=D(()=>u.params.type!=="graph"),d=D(()=>e.nodes[l.edge.nodes[0]]),p=D(()=>e.nodes[l.edge.nodes[1]]),x=D(()=>{var F;const E=(F=o.data.nodes[l.edge.graph])==null?void 0:F.color;return{"--graph-accent":E?`var(--${E})`:null}}),v=D(()=>n.inheritStateFromNodes(l.edge.nodes)),m=D(()=>{if(d.value==null||p.value==null)return;const E=Rn,F=Rn,V=d.value.width+E,_=d.value.height+E,N=p.value.width+E,C=p.value.height+E,k=Ur(d.value.x,d.value.y,p.value.x,p.value.y,d.value.x-V/2,d.value.y-_/2,V,_,Math.min(F,_/2-.1))[0],z=Ur(d.value.x,d.value.y,p.value.x,p.value.y,p.value.x-N/2,p.value.y-C/2,N,C,Math.min(F,C/2-.1))[0];if(k==null||z==null)return;const P={x:k.point[0]+e.offset.x,y:k.point[1]+e.offset.y},w={x:z.point[0]+e.offset.x,y:z.point[1]+e.offset.y},$={x:(P.x+w.x)/2,y:(P.y+w.y)/2};if(h.value)return[P,$,$,w];const I=[{x:-1,y:0},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:1,y:0},{x:1,y:1},{x:0,y:1},{x:-1,y:1}];return[P,{x:P.x+I[k.anchor].x*100,y:P.y+I[k.anchor].y*100},{x:w.x+I[z.anchor].x*100,y:w.y+I[z.anchor].y*100},w]}),y=D(()=>{if(m.value!=null)return`M${m.value.map((E,F)=>`${F===1?"C":""}${E.x},${E.y}`).join(" ")}`}),L=D(()=>m.value==null?[]:{x:(m.value[0].x+m.value[m.value.length-1].x)/2,y:(m.value[0].y+m.value[m.value.length-1].y)/2}),S=D(()=>l.edge.nodes.join("-")),M=D(()=>`url('#marker-${S.value}')`),B=D(()=>`url('#marker-${S.value}-alt')`),H=D(()=>(l.edge.arrow==="→"||l.edge.arrow==="↔")&&M.value),K=D(()=>(l.edge.arrow==="←"||l.edge.arrow==="↔")&&B.value);function Y(E){if(!E.metaKey)return;E.stopPropagation(),E.preventDefault();const F=[null,"→","←","↔"],V=Math.max(F.indexOf(l.edge.arrow),0);o.data.edges.find(_=>_.id===l.edge.id).arrow=F[(V+1)%F.length]}function J(E){!a.edit||E.metaKey||s.open(l.edge.id,"edge")}function W(E){a.edit&&(E.preventDefault(),E.stopPropagation(),f.open(vn,[{label:"delete",action:()=>{o.data.edges=o.data.edges.filter(F=>F.id!==l.edge.id)}},{label:"edit",action:()=>{s.open(l.edge.id,"edge")}}],{x:E.x,y:E.y}))}return(E,F)=>(A(),R("g",{class:At(["edge",[v.value,t.view,{"user-active":!O(r).inactivityShort||!O(i).playing}]]),style:vt(x.value)},[G("defs",null,[G("marker",{id:`marker-${S.value}`,markerWidth:"10",markerHeight:"20",refX:"10",refY:"10",orient:"auto"},F[0]||(F[0]=[G("path",{d:"M2,6.5 L10,10 L2,13.5"},null,-1)]),8,_f),G("marker",{id:`marker-${S.value}-alt`,markerWidth:"10",markerHeight:"20",refX:"00",refY:"10",orient:"auto"},F[1]||(F[1]=[G("path",{d:"M8,6.5 L0,10 L8,13.5"},null,-1)]),8,xf)]),Q(ff,{props:{d:y.value,...L.value},delay:0,duration:O(a).edit?0:O(we)},{default:nt(V=>[O(a).edit?(A(),R("path",{key:0,class:"edit",d:V.d,onDblclick:Ht(J,["stop"]),onContextmenu:W,onClick:Y},null,40,wf)):wt("",!0),G("path",{d:V.d,"marker-end":H.value,"marker-start":K.value},null,8,bf),G("text",{class:At(["shadow",{edit:O(a).edit}]),x:V.x,y:V.y,onDblclick:Ht(J,["stop"]),onContextmenu:W,onClick:Y},[Q(Qe,{text:t.edge.label},null,8,["text"])],42,Cf),G("text",{x:V.x,y:V.y},[Q(Qe,{text:t.edge.label},null,8,["text"])],8,Lf)]),_:1},8,["props","duration"])],6))}},Sf=ht(Mf,[["__scopeId","data-v-56a16983"]]),qe={__name:"ContextMenuSearch",props:{context:{type:Object,default:()=>({nodeType:"entity"})}},setup(t){const e=Lt(),n=Ne(),r=ce();function i(o){e.data.nodes[e.nodeId].allocations==null&&(e.data.nodes[e.nodeId].allocations={}),e.data.nodes[e.nodeId].allocations[o]={x:(n.offset.x-r.transform.x)/r.transform.k,y:(n.offset.y-r.transform.y)/r.transform.k}}return(o,a)=>(A(),ot(Qo,{onSelectItem:i,context:t.context},null,8,["context"]))}},$f=["d"],Af={__name:"TheGraph",setup(t){const e=Ae(),n=jr(),r=Lt();Jo();const i=Qn(),o=Zn(),a=Gt(),s=ce(),f=ee(),u=Ne(),l=fn(),h=j([]),d=j(null),p=j(null),x=j(null),v=j(null),m=D(()=>e.params.id),y=j(r.data.nodes[m.value]),L=D(()=>e.params.type==="graph"?"diagram":"network"),S=D(()=>`translate(${s.transform.x}px, ${s.transform.y}px) scale(${s.transform.k})`),M=D(()=>{if(h.value==null)return;if(i.bounds!=null)return{x1:i.bounds.x1+s.offset.x,y1:i.bounds.y1+s.offset.y,x2:i.bounds.x2+s.offset.x,y2:i.bounds.y2+s.offset.y};const w=Object.values(h.value),$=w.map(({x:Z})=>Z),I=w.map(({y:Z})=>Z),X=200,q=100;return{x1:Math.min(...$)-X+s.offset.x,y1:Math.min(...I)-q+s.offset.y,x2:Math.max(...$)+X+s.offset.x,y2:Math.max(...I)+q+s.offset.y}}),B=D(()=>{const w=Object.keys(h.value??{});return r.data.edges.filter($=>w.includes($.nodes[0])&&w.includes($.nodes[1])&&($.graph===m.value||y.value.type!=="graph"))}),H=D(()=>Object.keys(h.value??{}).sort()),K=D(()=>{if(y.value.color!=null)return{"--graph-accent":`var(--${y.value.color})`}}),Y=D(()=>{var q;if((((q=i.exactMarker)==null?void 0:q.bounds)==null&&v.value)==null)return;const{x1:w,y1:$,x2:I,y2:X}=v.value||i.exactMarker.bounds;return`M${w+s.offset.x},${$+s.offset.y} L${I+s.offset.x},${$+s.offset.y} L${I+s.offset.x},${X+s.offset.y} L${w+s.offset.x},${X+s.offset.y} Z`});zt([m,()=>r.data],([w],[$])=>{y.value=r.data.nodes[w],J(we,$)}),zt(M,()=>{o.inactivityShort&&E(M.value,we)}),zt(()=>o.inactivityShort,()=>{a.playing&&E(M.value,we)}),zt(()=>o.inactivityLong,()=>{a.playing&&e.name==="graph"&&e.params.type!=="graph"&&a.graphId!=null&&n.push({name:"graph",params:{type:"graph",id:a.graphId}})}),le(()=>{p.value=Ft(d.value),x.value=zl().scaleExtent([.1,1]).on("zoom",w=>{s.transform=w.transform}).filter(w=>{if(l.mode!=="display-frame")return Ce(()=>o.registerActivity()),w.button===0&&!u.show}),p.value.call(x.value),J(0),V.observe(d.value)}),Fn(()=>{d.value!=null&&V.unobserve(d.value)});function J(w,$){if(y.value.type==="graph"){if(h.value=y.value.allocations,$!=null){const I=r.data.nodes[$].type==="graph"?W(r.data.nodes[$].allocations):{x:0,y:0},X=r.data.nodes[$].type==="graph"||h.value[$]==null?W(h.value):h.value[$];s.offset.x=s.offset.x+I.x-X.x,s.offset.y=s.offset.y+I.y-X.y}E(M.value,w)}else h.value=dc(m.value),F(s.offset,w)}function W(w){const $=Object.values(w),I=$.map(({x:tt})=>tt),X=$.map(({y:tt})=>tt),q=Math.min(...I),Z=Math.max(...I),at=Math.min(...X),ut=Math.max(...X);return{x:(q+Z)/2,y:(at+ut)/2}}function E(w,$=0){if(w==null)return;const I={x:w.x2-w.x1,y:w.y2-w.y1},X=d.value.getBoundingClientRect(),q=X.width/I.x,Z=(X.height-Rn*2.7)/I.y,at=Math.min(q,Z),ut=w.x1+I.x/2,tt=w.y1+I.y/2;p.value.transition().duration($).call(x.value.transform,un.translate(X.width/2,X.height/2).scale(at).translate(-ut,-tt))}function F({x:w,y:$},I=0){const X=d.value.getBoundingClientRect();p.value.transition().duration(I).call(x.value.transform,un.translate(X.width/2,X.height/2).scale(1).translate(-w,-$))}const V=new ResizeObserver(w=>{for(const $ of w)$.contentRect&&E(M.value,0)});function _(w){!f.edit||L.value!=="diagram"||(w.preventDefault(),u.open(vn,[{label:"add",action:$=>{$.stopPropagation(),u.open(qe)}},{label:"log",action:()=>{console.log(s.transform,u.offset)}}],{x:w.x,y:w.y}))}function N(w){if(!(!f.edit||L.value!=="diagram"))switch(["add-entity","add-story","add-image"].includes(l.mode)&&w.stopPropagation(),l.mode){case"add-entity":u.open(qe,{nodeType:"entity"},{x:w.x,y:w.y}),l.resetMode();break;case"add-story":u.open(qe,{nodeType:"graph"},{x:w.x,y:w.y}),l.resetMode();break;case"add-image":u.open(qe,{nodeType:"image"},{x:w.x,y:w.y}),l.resetMode();break}}function C(w){if(l.mode==="display-frame"){w.preventDefault(),w.stopPropagation();const $=P(w);v.value={x1:$.x-s.offset.x,y1:$.y-s.offset.y,x2:$.x-s.offset.x,y2:$.y-s.offset.y};const I=new AbortController,X=function(){console.log("reset"),I.abort(),v.value=null};window.addEventListener("keydown",q=>{q.key==="Escape"&&X()},{signal:I.signal}),window.addEventListener("mousemove",q=>{const{x:Z,y:at}=P(q);v.value.x2=Z-s.offset.x,v.value.y2=at-s.offset.y},{signal:I.signal}),window.addEventListener("mouseup",()=>{l.setBounds(v.value,m.value),X(),l.resetMode()},{signal:I.signal})}}function k(w){if(w.preventDefault(),!f.edit||L.value!=="diagram")return;const $=br(w.dataTransfer.getData("text/uri-list")),I=r.nodes.find(q=>q.file===br($));if(I!=null)return z(I.id,w.x,w.y);if(/(.png|.jpe?g|.gif|.webp)$/i.test($)){const q=crypto.randomUUID(),Z={type:"image",file:$,label:{universal:$.replace(/[^:]*:\/?\/?/,"").replace(/\.[^.]+$/,"")}};r.data.nodes[q]=Z,z(q,w.x,w.y)}}function z(w,$,I){r.data.nodes[r.nodeId].allocations[w]=P({x:$,y:I})}function P(w){return{x:(w.x-s.transform.x)/s.transform.k,y:(w.y-s.transform.y)/s.transform.k}}return(w,$)=>(A(),R(jt,null,[G("main",{class:At(["graph",[`mode-${O(l).mode}`,{initializing:O(e).meta.initializeView}]]),ref_key:"zoomElement",ref:d,style:vt(K.value),onContextmenu:_,onClick:N,onMousedown:C,onDrop:k,onDragover:$[0]||($[0]=Ht(()=>{},["prevent"])),onDragenter:$[1]||($[1]=Ht(()=>{},["prevent"]))},[G("div",{class:"nodes",style:vt({transform:S.value})},[Q(wr,{name:"nodes"},{default:nt(()=>[(A(!0),R(jt,null,ae(H.value,I=>(A(),ot(pf,{key:I,id:I,position:h.value[I],view:L.value,graph:L.value==="diagram"&&m.value},null,8,["id","position","view","graph"]))),128))]),_:1})],4),(A(),R("svg",null,[G("g",{style:vt({transform:S.value})},[Q(wr,{name:"edges"},{default:nt(()=>[(A(!0),R(jt,null,ae(B.value,I=>(A(),ot(Sf,{key:I.id,edge:I,view:L.value},null,8,["edge","view"]))),128))]),_:1}),O(f).edit&&Y.value?(A(),R("path",{key:0,d:Y.value,class:"display-bounds"},null,8,$f)):wt("",!0)],4)]))],38),$[2]||($[2]=G("div",{class:"tint"},null,-1))],64))}},Nf=ht(Af,[["__scopeId","data-v-f4ac8e94"]]),kf={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function Tf(t,e){return A(),R("svg",kf,e[0]||(e[0]=[G("path",{d:"M18,15 L20,15 C20.5522847,15 21,15.4477153 21,16 L21,29 C21,29.5522847 20.5522847,30 20,30 L18,30 C17.4477153,30 17,29.5522847 17,29 L17,16 C17,15.4477153 17.4477153,15 18,15 Z M25,15 L27,15 C27.5522847,15 28,15.4477153 28,16 L28,29 C28,29.5522847 27.5522847,30 27,30 L25,30 C24.4477153,30 24,29.5522847 24,29 L24,16 C24,15.4477153 24.4477153,15 25,15 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const Ef={name:"base-ControlsPause",render:Tf},If={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function zf(t,e){return A(),R("svg",If,e[0]||(e[0]=[G("polyline",{stroke:"#000000","stroke-width":"2",transform:"matrix(-1 0 0 1 43.5 0)",points:"18.5 16 25 22.5 18.5 29",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Df={name:"base-ControlsMarkerPrevious",render:zf},Pf={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function Of(t,e){return A(),R("svg",Pf,e[0]||(e[0]=[G("polyline",{stroke:"#000000","stroke-width":"2",points:"20 16 26.5 22.5 20 29",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Rf={name:"base-ControlsMarkerNext",render:Of},Bf={class:"icon",width:"3",height:"45",viewBox:"0 0 3 45",xmlns:"http://www.w3.org/2000/svg"};function Ff(t,e){return A(),R("svg",Bf,e[0]||(e[0]=[G("path",{d:"M2,36.5 C2,36.7761424 1.77614237,37 1.5,37 C1.22385763,37 1,36.7761424 1,36.5 L1,8.5 C1,8.22385763 1.22385763,8 1.5,8 C1.77614237,8 2,8.22385763 2,8.5 L2,36.5 Z",fill:"currentColor",opacity:".25"},null,-1)]))}const Zf={name:"base-SeperatorVertical",render:Ff},Hf={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function Gf(t,e){return A(),R("svg",Hf,e[0]||(e[0]=[G("g",{fill:"none","fill-rule":"evenodd"},[G("path",{d:"M18,14 C18.5522847,14 19,14.4477153 19,15 C19,15.5522847 18.5522847,16 18,16 L17,16 C16.4477153,16 16,16.4477153 16,17 L16,18 C16,18.5522847 15.5522847,19 15,19 C14.4477153,19 14,18.5522847 14,18 L14,17 C14,15.3431458 15.3431458,14 17,14 L18,14 Z M31,18 C31,18.5522847 30.5522847,19 30,19 C29.4477153,19 29,18.5522847 29,18 L29,17 C29,16.4477153 28.5522847,16 28,16 L27,16 C26.4477153,16 26,15.5522847 26,15 C26,14.4477153 26.4477153,14 27,14 L28,14 C29.6568542,14 31,15.3431458 31,17 L31,18 Z M27,31 C26.4477153,31 26,30.5522847 26,30 C26,29.4477153 26.4477153,29 27,29 L28,29 C28.5522847,29 29,28.5522847 29,28 L29,27 C29,26.4477153 29.4477153,26 30,26 C30.5522847,26 31,26.4477153 31,27 L31,28 C31,29.6568542 29.6568542,31 28,31 L27,31 Z M14,27 C14,26.4477153 14.4477153,26 15,26 C15.5522847,26 16,26.4477153 16,27 L16,28 C16,28.5522847 16.4477153,29 17,29 L18,29 C18.5522847,29 19,29.4477153 19,30 C19,30.5522847 18.5522847,31 18,31 L17,31 C15.3431458,31 14,29.6568542 14,28 L14,27 Z",fill:"currentColor","fill-rule":"nonzero"}),G("path",{d:"M23.2071068,15.2071068 L29.7928932,21.7928932 C30.1834175,22.1834175 30.1834175,22.8165825 29.7928932,23.2071068 L23.2071068,29.7928932 C22.8165825,30.1834175 22.1834175,30.1834175 21.7928932,29.7928932 L15.2071068,23.2071068 C14.8165825,22.8165825 14.8165825,22.1834175 15.2071068,21.7928932 L21.7928932,15.2071068 C22.1834175,14.8165825 22.8165825,14.8165825 23.2071068,15.2071068 Z",fill:"currentColor"})],-1)]))}const Vf={name:"base-DisplayDefaultFrame",render:Gf},Uf={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function qf(t,e){return A(),R("svg",Uf,e[0]||(e[0]=[G("path",{d:"M23.2071068,15.2071068 L29.7928932,21.7928932 C30.1834175,22.1834175 30.1834175,22.8165825 29.7928932,23.2071068 L23.2071068,29.7928932 C22.8165825,30.1834175 22.1834175,30.1834175 21.7928932,29.7928932 L15.2071068,23.2071068 C14.8165825,22.8165825 14.8165825,22.1834175 15.2071068,21.7928932 L21.7928932,15.2071068 C22.1834175,14.8165825 22.8165825,14.8165825 23.2071068,15.2071068 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const Ei={name:"base-DisplayDefault",render:qf},Wf={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function Yf(t,e){return A(),R("svg",Wf,e[0]||(e[0]=[G("path",{d:"M19,14 C19.5522847,14 20,14.4477153 20,15 C20,15.5522847 19.5522847,16 19,16 L17,16 C16.4477153,16 16,16.4477153 16,17 L16,19 C16,19.5522847 15.5522847,20 15,20 C14.4477153,20 14,19.5522847 14,19 L14,17 C14,15.3431458 15.3431458,14 17,14 L19,14 Z M31,19 C31,19.5522847 30.5522847,20 30,20 C29.4477153,20 29,19.5522847 29,19 L29,17 C29,16.4477153 28.5522847,16 28,16 L26,16 C25.4477153,16 25,15.5522847 25,15 C25,14.4477153 25.4477153,14 26,14 L28,14 C29.6568542,14 31,15.3431458 31,17 L31,19 Z M26,31 C25.4477153,31 25,30.5522847 25,30 C25,29.4477153 25.4477153,29 26,29 L28,29 C28.5522847,29 29,28.5522847 29,28 L29,26 C29,25.4477153 29.4477153,25 30,25 C30.5522847,25 31,25.4477153 31,26 L31,28 C31,29.6568542 29.6568542,31 28,31 L26,31 Z M14,26 C14,25.4477153 14.4477153,25 15,25 C15.5522847,25 16,25.4477153 16,26 L16,28 C16,28.5522847 16.4477153,29 17,29 L19,29 C19.5522847,29 20,29.4477153 20,30 C20,30.5522847 19.5522847,31 19,31 L17,31 C15.3431458,31 14,29.6568542 14,28 L14,26 Z",fill:"currentColor"},null,-1)]))}const Ii={name:"base-DisplayFrame",render:Yf},Xf={key:0,class:"markers"},Kf=["onClick","onMousemove","onContextmenu"],jf={__name:"ControlsProgress",props:{showMarkers:Boolean},setup(t){const e=j(0),n=Lt(),r=Gt(),i=Ne(),o=fn(),a=D(()=>n.data.nodes[r.graphId]),s=D(()=>{const x=`${r.time/r.duration*100}%`;return`linear-gradient(to right, var(--left) ${x}, var(--right) ${x})`});function f(x,v){(v||!r.playing)&&(r.playFrom=r.time=x.offsetX/x.target.getBoundingClientRect().width*r.duration),v&&h()}function u(x){return`${x/r.duration*100}%`}function l(x,v,m){x.stopPropagation(),(m||!r.playing)&&(r.playFrom=r.time=v.time),m&&h()}function h(){e.value=r.time}function d(){r.playFrom=r.time=e.value}function p(x,v,m){x.preventDefault(),x.stopPropagation(),i.open(vn,[{label:"delete",action:()=>{n.data.nodes[r.graphId].marker=n.data.nodes[r.graphId].marker.filter((y,L)=>L!==m)}},{label:"+",remainOpen:!0,action:y=>{y.stopPropagation(),n.data.nodes[r.graphId].marker[m].time+=1}},{label:"-",remainOpen:!0,action:y=>{y.stopPropagation(),n.data.nodes[r.graphId].marker[m].time-=1}},...v.bounds!=null?[{label:"clear bounds",action:()=>{o.setBounds(null,r.graphId,v.time)}}]:[]],{x:x.x,y:x.y})}return(x,v)=>{var m;return A(),R("div",{class:"progress",style:vt({background:s.value}),onClick:v[0]||(v[0]=y=>f(y,!0)),onMousemove:f,onMouseenter:h,onMouseleave:d},[t.showMarkers&&((m=a.value)!=null&&m.marker)?(A(),R("div",Xf,[(A(!0),R(jt,null,ae(a.value.marker,(y,L)=>(A(),R("div",{key:L,class:At(["marker",{active:y.time===O(r).time||y.time===e.value}]),style:vt({left:u(y.time)}),onClick:S=>l(S,y,!0),onMousemove:S=>l(S,y),onContextmenu:S=>p(S,y,L)},[y.bounds&&y.states?(A(),ot(O(Vf),{key:0})):y.states?(A(),ot(O(Ei),{key:1})):(A(),ot(O(Ii),{key:2}))],46,Kf))),128))])):wt("",!0)],36)}}},qr=ht(jf,[["__scopeId","data-v-158acf2c"]]),Qf={__name:"TheControls",setup(t){const e=Lt(),n=Gt(),r=ee(),i=D(()=>e.data.nodes[n.graphId]),o=D(()=>{var l;if(((l=i.value)==null?void 0:l.color)!=null)return{"--graph-accent":`var(--${i.value.color})`}}),a=D(()=>n.playing),s=D(()=>i.value.marker.toSorted((l,h)=>l.time-h.time));function f(){var l;n.playFrom=n.time=((l=s.value.findLast(h=>h.timeh.time>n.time))==null?void 0:l.time)??n.duration}return(l,h)=>(A(),R("section",{class:At(["timeline",{edit:O(r).edit}]),style:vt(o.value)},[O(r).edit?(A(),ot(Yr,{key:0,class:"button-group",horizontal:""},{default:nt(()=>[Q(Mn,{"disable-padding":""},{default:nt(()=>[a.value?(A(),ot(O(Ef),{key:1,onClick:h[1]||(h[1]=d=>O(n).setPlaying=!1)})):(A(),ot(O(Si),{key:0,onClick:h[0]||(h[0]=d=>O(n).setPlaying=!0)}))]),_:1}),Q(Mn,{"disable-padding":""},{default:nt(()=>[Q(O(Df),{onClick:f})]),_:1}),Q(Mn,{"disable-padding":""},{default:nt(()=>[Q(O(Rf),{onClick:u})]),_:1}),Q(O(Zf)),Q(qr,{"show-markers":""})]),_:1})):(A(),ot(qr,{key:1}))],6))}},Jf=ht(Qf,[["__scopeId","data-v-264fb344"]]),t1={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function e1(t,e){return A(),R("svg",t1,e[0]||(e[0]=[G("path",{d:"M18.3994816,13.8517704 L28.7074921,22.4660712 C29.1312774,22.8202243 29.1877255,23.450868 28.8335723,23.8746534 C28.6860759,24.0511499 28.4822444,24.1714042 28.2564291,24.2151501 L25.5073341,24.7477155 C24.9651298,24.8527535 24.6107365,25.377447 24.7157744,25.9196512 C24.7313245,25.9999207 24.7566603,26.0779801 24.7912143,26.1520815 L26.5743353,29.9759967 C26.8077409,30.4765367 26.5911857,31.0715171 26.0906457,31.3049227 L25.184338,31.727541 C24.683798,31.9609466 24.0888175,31.7443914 23.8554119,31.2438515 L22.072291,27.4199363 C21.8388853,26.9193963 21.2439049,26.7028411 20.7433649,26.9362467 C20.6692636,26.9708008 20.5996796,27.0143123 20.5361713,27.0658068 L18.3611183,28.8294093 C17.9321324,29.1772448 17.3023942,29.1114594 16.9545587,28.6824734 C16.8096934,28.5038109 16.7308474,28.2806704 16.7313064,28.0506573 L16.7582326,14.6170974 C16.7593395,14.0648137 17.2079512,13.6179967 17.7602349,13.6191016 C17.9939596,13.6195721 18.220137,13.7018939 18.3994816,13.8517704 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const n1={name:"base-CursorDefault",render:e1},r1={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function i1(t,e){return A(),R("svg",r1,e[0]||(e[0]=[G("path",{d:"M32,15 C33.1045695,15 34,15.8954305 34,17 L34,28 C34,29.1045695 33.1045695,30 32,30 L13,30 C11.8954305,30 11,29.1045695 11,28 L11,17 C11,15.8954305 11.8954305,15 13,15 L32,15 Z M32,16 L13,16 C12.4477153,16 12,16.4477153 12,17 L12,28 C12,28.5522847 12.4477153,29 13,29 L32,29 C32.5522847,29 33,28.5522847 33,28 L33,17 C33,16.4477153 32.5522847,16 32,16 Z M23,25 C23.5522847,25 24,25.4477153 24,26 L24,27 C24,27.5522847 23.5522847,28 23,28 L14,28 C13.4477153,28 13,27.5522847 13,27 L13,26 C13,25.4477153 13.4477153,25 14,25 L23,25 Z M31,17 C31.5522847,17 32,17.4477153 32,18 L32,23 C32,23.5522847 31.5522847,24 31,24 L14,24 C13.4477153,24 13,23.5522847 13,23 L13,18 C13,17.4477153 13.4477153,17 14,17 L31,17 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const o1={name:"base-AddEntity",render:i1},a1={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function s1(t,e){return A(),R("svg",a1,e[0]||(e[0]=[G("path",{d:"M32,15 C33.1045695,15 34,15.8954305 34,17 L34,28 C34,29.1045695 33.1045695,30 32,30 L13,30 C11.8954305,30 11,29.1045695 11,28 L11,17 C11,15.8954305 11.8954305,15 13,15 L32,15 Z M32,16 L13,16 C12.4477153,16 12,16.4477153 12,17 L12,28 C12,28.5522847 12.4477153,29 13,29 L32,29 C32.5522847,29 33,28.5522847 33,28 L33,17 C33,16.4477153 32.5522847,16 32,16 Z M20.1483417,19.765467 C20.4377927,19.2951091 21.0537395,19.1484551 21.5240974,19.4379061 L25.1160552,21.6483417 C25.2493757,21.730385 25.3615728,21.8425821 25.4436161,21.9759026 C25.7330671,22.4462605 25.5864131,23.0622073 25.1160552,23.3516583 L21.5240974,25.5620939 C21.3664897,25.6590832 21.1850598,25.7104356 21,25.7104356 C20.4477153,25.7104356 20,25.2627203 20,24.7104356 L20,20.2895644 C20,20.1045046 20.0513523,19.9230747 20.1483417,19.765467 Z",fill:"currentColor"},null,-1)]))}const u1={name:"base-AddStory",render:s1},l1={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function c1(t,e){return A(),R("svg",l1,e[0]||(e[0]=[G("path",{d:"M32,15 C33.1045695,15 34,15.8954305 34,17 L34,28 C34,29.1045695 33.1045695,30 32,30 L13,30 C11.8954305,30 11,29.1045695 11,28 L11,17 C11,15.8954305 11.8954305,15 13,15 L32,15 Z M32,16 L13,16 C12.4477153,16 12,16.4477153 12,17 L12,28 C12,28.5522847 12.4477153,29 13,29 L32,29 C32.5522847,29 33,28.5522847 33,28 L33,17 C33,16.4477153 32.5522847,16 32,16 Z M26,22 C27.8346354,21.3884549 29.6692708,21.6183815 31.5040033,22.6896136 C31.8106661,22.8685631 31.9994458,23.1967019 32,23.5517578 L32,27 C32,27.5522847 31.5522847,28 31,28 L14,28 C13.4477153,28 13,27.5522847 13,27 L13,25.9687057 L13.0105961,25.8251331 C13.0818756,25.3451379 13.503213,24.9842004 14,25 L14.4403514,25.0105801 C20.8078896,25.11322 23.2067448,22.9310851 26,22 Z M16.75,18.5 C17.7164983,18.5 18.5,19.2835017 18.5,20.25 C18.5,21.2164983 17.7164983,22 16.75,22 C15.7835017,22 15,21.2164983 15,20.25 C15,19.2835017 15.7835017,18.5 16.75,18.5 Z",fill:"currentColor"},null,-1)]))}const f1={name:"base-AddImage",render:c1},h1={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function d1(t,e){return A(),R("svg",h1,e[0]||(e[0]=[G("path",{d:"M31.0395445,14.6621019 C31.0865261,14.8343676 31.0865261,15.0160709 31.0395445,15.1883367 L29.2261258,21.8375386 C29.0808101,22.3703629 28.531069,22.6845007 27.9982446,22.539185 C27.8303497,22.4933955 27.6773109,22.4045836 27.5542552,22.281528 L25.844,20.5709684 L15.7071068,30.7071068 C15.3165825,31.0976311 14.6834175,31.0976311 14.2928932,30.7071068 C13.9023689,30.3165825 13.9023689,29.6834175 14.2928932,29.2928932 L24.429,19.1559684 L22.718472,17.4457448 C22.3279477,17.0552205 22.3279477,16.4220555 22.718472,16.0315312 C22.8415277,15.9084756 22.9945665,15.8196637 23.1624614,15.7738742 L29.8116633,13.9604555 C30.3444877,13.8151397 30.8942288,14.1292775 31.0395445,14.6621019 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const p1={name:"base-AddLink",render:d1},g1={class:"icon",width:"45",height:"3",viewBox:"0 0 45 3",xmlns:"http://www.w3.org/2000/svg"};function v1(t,e){return A(),R("svg",g1,e[0]||(e[0]=[G("path",{d:"M36.5,1 C36.7761424,1 37,1.22385763 37,1.5 C37,1.77614237 36.7761424,2 36.5,2 L8.5,2 C8.22385763,2 8,1.77614237 8,1.5 C8,1.22385763 8.22385763,1 8.5,1 L36.5,1 Z",fill:"currentColor",opacity:".25"},null,-1)]))}const Wr={name:"base-SeperatorHorizontal",render:v1},y1={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"},m1=["id"],_1=["filter"];function x1(t,e){return A(),R("svg",y1,[G("defs",null,[G("filter",{x:"-34.9%",y:"-34.9%",width:"169.8%",height:"169.8%",filterUnits:"objectBoundingBox",id:t.idMap.a},e[0]||(e[0]=[G("feGaussianBlur",{stdDeviation:"2",in:"SourceGraphic"},null,-1)]),8,m1)]),G("path",{d:"M22.7071068,15.7071068 L29.2928932,22.2928932 C29.6834175,22.6834175 29.6834175,23.3165825 29.2928932,23.7071068 L22.7071068,30.2928932 C22.3165825,30.6834175 21.6834175,30.6834175 21.2928932,30.2928932 L14.7071068,23.7071068 C14.3165825,23.3165825 14.3165825,22.6834175 14.7071068,22.2928932 L21.2928932,15.7071068 C21.6834175,15.3165825 22.3165825,15.3165825 22.7071068,15.7071068 Z",fill:"currentColor",filter:"url(#"+t.idMap.a+")","fill-rule":"evenodd",opacity:".832"},null,8,_1)])}const w1={name:"base-DisplayBlur",render:x1,data(){return{idMap:{a:"uicons-"+Math.random().toString(36).substr(2,10)}}}},b1={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function C1(t,e){return A(),R("svg",b1,e[0]||(e[0]=[G("path",{d:"M17.1464466,27.1464466 L17.8535534,27.8535534 L15.3535534,30.3535534 L14.6464466,29.6464466 L17.1464466,27.1464466 Z M27.8535534,27.1464466 L30.3535534,29.6464466 L29.6464466,30.3535534 L27.1464466,27.8535534 L27.8535534,27.1464466 Z M23.2071068,15.2071068 L29.7928932,21.7928932 C30.1834175,22.1834175 30.1834175,22.8165825 29.7928932,23.2071068 L23.2071068,29.7928932 C22.8165825,30.1834175 22.1834175,30.1834175 21.7928932,29.7928932 L15.2071068,23.2071068 C14.8165825,22.8165825 14.8165825,22.1834175 15.2071068,21.7928932 L21.7928932,15.2071068 C22.1834175,14.8165825 22.8165825,14.8165825 23.2071068,15.2071068 Z M29.6464466,14.6464466 L30.3535534,15.3535534 L27.8535534,17.8535534 L27.1464466,17.1464466 L29.6464466,14.6464466 Z M15.3535534,14.6464466 L17.8535534,17.1464466 L17.1464466,17.8535534 L14.6464466,15.3535534 L15.3535534,14.6464466 Z M20.7868105,14.1744381 L19.8208847,14.4332571 L18.9058212,11.0181936 L19.871747,10.7593745 L20.7868105,14.1744381 Z M26.0941788,33.9818064 L25.128253,34.2406255 L24.2131895,30.8255619 L25.1791153,30.5667429 L26.0941788,33.9818064 Z M25.1791153,14.4332571 L24.2131895,14.1744381 L25.128253,10.7593745 L26.0941788,11.0181936 L25.1791153,14.4332571 Z M19.871747,34.2406255 L18.9058212,33.9818064 L19.8208847,30.5667429 L20.7868105,30.8255619 L19.871747,34.2406255 Z M30.8255619,20.7868105 L30.5667429,19.8208847 L33.9818064,18.9058212 L34.2406255,19.871747 L30.8255619,20.7868105 Z M11.0181936,26.0941788 L10.7593745,25.128253 L14.1744381,24.2131895 L14.4332571,25.1791153 L11.0181936,26.0941788 Z M30.5667429,25.1791153 L30.8255619,24.2131895 L34.2406255,25.128253 L33.9818064,26.0941788 L30.5667429,25.1791153 Z M10.7593745,19.871747 L11.0181936,18.9058212 L14.4332571,19.8208847 L14.1744381,20.7868105 L10.7593745,19.871747 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const L1={name:"base-DisplayHighlight",render:C1},M1={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function S1(t,e){return A(),R("svg",M1,e[0]||(e[0]=[G("path",{d:"M30.2071068,14.7928932 C30.5976311,15.1834175 30.5976311,15.8165825 30.2071068,16.2071068 L16.2071068,30.2071068 C15.8165825,30.5976311 15.1834175,30.5976311 14.7928932,30.2071068 C14.4023689,29.8165825 14.4023689,29.1834175 14.7928932,28.7928932 L28.7928932,14.7928932 C29.1834175,14.4023689 29.8165825,14.4023689 30.2071068,14.7928932 Z M27.9142136,19.9142136 L29.7928932,21.7928932 C30.1834175,22.1834175 30.1834175,22.8165825 29.7928932,23.2071068 L23.2071068,29.7928932 C22.8165825,30.1834175 22.1834175,30.1834175 21.7928932,29.7928932 L19.9142136,27.9142136 L27.9142136,19.9142136 Z M23.2071068,15.2071068 L25.0862136,17.0862136 L17.0862136,25.0862136 L15.2071068,23.2071068 C14.8165825,22.8165825 14.8165825,22.1834175 15.2071068,21.7928932 L21.7928932,15.2071068 C22.1834175,14.8165825 22.8165825,14.8165825 23.2071068,15.2071068 Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const $1={name:"base-DisplayUnset",render:S1},A1={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function N1(t,e){return A(),R("svg",A1,e[0]||(e[0]=[G("path",{d:"M15,30 L30,30 L30,29 L15,29 L15,30 Z M23,15 L23,25.292 L26.6464466,21.6464466 L27.3535534,22.3535534 L22.5,27.2071068 L17.6464466,22.3535534 L18.3535534,21.6464466 L22,25.292 L22,15 L23,15 Z",fill:"currentColor"},null,-1)]))}const k1={name:"base-Export",render:N1},T1={class:"toolbar"},E1={__name:"TheToolbar",setup(t){const e=fn(),n=Lt();return(r,i)=>(A(),R("section",T1,[Q(ta,{modelValue:O(e).mode,"onUpdate:modelValue":i[0]||(i[0]=o=>O(e).mode=o),options:[{value:"default",slot:"default",tooltip:"Select"},{value:"add-entity",slot:"add-entity",tooltip:"add entity"},{value:"add-story",slot:"add-story",tooltip:"add story"},{value:"add-image",slot:"add-image",tooltip:"add image"},{value:"add-edge",slot:"add-edge",tooltip:"add edge"},{disabled:!0,slot:"seperator"},{value:"display-blur",slot:"display-blur",tooltip:"blur"},{value:"display-default",slot:"display-default",tooltip:"default"},{value:"display-highlight",slot:"display-highlight",tooltip:"highlight"},{value:"display-unset",slot:"display-unset",tooltip:"unset"},{value:"display-frame",slot:"display-frame",tooltip:"frame"},{disabled:!0,slot:"seperator2"},{value:"download",slot:"download",tooltip:"download data",action:O(n).exportProject}]},{default:nt(()=>[Q(O(n1))]),"add-entity":nt(()=>[Q(O(o1))]),"add-story":nt(()=>[Q(O(u1))]),"add-image":nt(()=>[Q(O(f1))]),"add-edge":nt(()=>[Q(O(p1))]),seperator:nt(()=>[Q(O(Wr))]),"display-blur":nt(()=>[Q(O(w1))]),"display-default":nt(()=>[Q(O(Ei))]),"display-highlight":nt(()=>[Q(O(L1))]),"display-unset":nt(()=>[Q(O($1))]),"display-frame":nt(()=>[Q(O(Ii))]),seperator2:nt(()=>[Q(O(Wr))]),download:nt(()=>[Q(O(k1))]),_:1},8,["modelValue","options"])]))}},I1=ht(E1,[["__scopeId","data-v-f9fd2ea6"]]),z1={__name:"GraphView",setup(t){const e=Gt(),n=ee(),r=Ae();return(i,o)=>(A(),R("div",{class:At(["graph-view",{"split-screen":O(e).showVideo&&!O(n).pictureInPicture}]),onWheel:o[0]||(o[0]=Ht(()=>{},["prevent"]))},[O(r).meta.hideMenuBar?wt("",!0):(A(),ot(na,{key:0})),Q(Nf),O(e).showVideo?(A(),ot(ea,{key:1})):wt("",!0),Q(Jf),O(n).edit?(A(),ot(I1,{key:2})):wt("",!0)],34))}},B1=ht(z1,[["__scopeId","data-v-bea8aeaf"]]);export{B1 as default}; diff --git a/assets/GraphView-ClcaF3t2.css b/assets/GraphView-ClcaF3t2.css new file mode 100644 index 0000000..09d539e --- /dev/null +++ b/assets/GraphView-ClcaF3t2.css @@ -0,0 +1 @@ +.context-menu-list[data-v-5b0e52e5]{font-size:var(--font-size-small);min-width:150px}.context-menu-list button[data-v-5b0e52e5]{text-align:left;padding:var(--spacing-half)}.context-menu-list button[data-v-5b0e52e5]:not(:disabled):hover{color:var(--ui-accent);background-color:color-mix(in lab,currentColor,transparent 90%)}.horizontal-slider[data-v-0b4d1e9f]{position:relative;margin-left:-var(--spacing-half)}.horizontal-slider .wrapper[data-v-0b4d1e9f]{display:grid;overflow-x:scroll;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;gap:var(--spacing-half);padding:0 calc(var(--spacing) * 1.5)}.horizontal-slider .wrapper[data-v-0b4d1e9f]::-webkit-scrollbar{display:none}.horizontal-slider .wrapper[data-v-0b4d1e9f]>*{grid-row:1;scroll-snap-align:start}.horizontal-slider .arrow[data-v-0b4d1e9f]{position:absolute;z-index:1;height:100%;width:30px;padding:0;cursor:pointer;font:var(--font-ui);font-size:.8em;border:none;color:var(--color-user);transition:color .2s,font-size .2s,font-weight .2s;--button-size: 30px;background:var(--color-accent);height:var(--button-size);width:var(--button-size);top:50%;transform:translateY(-50%);transition:all var(--ui-transition);border-radius:50%}.horizontal-slider .arrow:not(:disabled)[data-v-0b4d1e9f]:hover{font-size:1em;font-weight:310}.horizontal-slider .arrow[data-v-0b4d1e9f]:disabled{transform:translateY(-50%) scale(.1);color:var(--color-accent);cursor:default}.horizontal-slider .arrow.left[data-v-0b4d1e9f]{left:calc(var(--button-size) * -.5 - var(--spacing-quart))}.horizontal-slider .arrow.right[data-v-0b4d1e9f]{right:calc(var(--button-size) * -.5 - var(--spacing-quart))}svg[data-v-aea62c91] path{animation:linear .8s alternate infinite playing-aea62c91}@keyframes playing-aea62c91{0%{d:path("M10.5,0 C16.2989899,0 21,4.70101013 21,10.5 C21,16.2989899 16.2989899,21 10.5,21 C4.70101013,21 0,16.2989899 0,10.5 C0,4.70101013 4.70101013,0 10.5,0 Z M9,6 L8,6 L8,15 L9,15 L9,6 Z M15,6 L14,6 L14,15 L15,15 L15,6 Z M7,8 L6,8 L6,13 L7,13 L7,8 Z M13,8 L12,8 L12,13 L13,13 L13,8 Z M11,9 L10,9 L10,12 L11,12 L11,9 Z")}50%{d:path("M10.5,0 C16.2989899,0 21,4.70101013 21,10.5 C21,16.2989899 16.2989899,21 10.5,21 C4.70101013,21 0,16.2989899 0,10.5 C0,4.70101013 4.70101013,0 10.5,0 Z M9,10 L8,10 L8,11 L9,11 L9,10 Z M15,7 L14,7 L14,14 L15,14 L15,7 Z M7,9 L6,9 L6,12 L7,12 L7,9 Z M13,6 L12,6 L12,15 L13,15 L13,6 Z M11,8 L10,8 L10,13 L11,13 L11,8 Z")}to{d:path("M10.5,0 C16.2989899,0 21,4.70101013 21,10.5 C21,16.2989899 16.2989899,21 10.5,21 C4.70101013,21 0,16.2989899 0,10.5 C0,4.70101013 4.70101013,0 10.5,0 Z M9,8 L8,8 L8,13 L9,13 L9,8 Z M15,9 L14,9 L14,12 L15,12 L15,9 Z M7,7 L6,7 L6,14 L7,14 L7,7 Z M13,10 L12,10 L12,11 L13,11 L13,10 Z M11,6 L10,6 L10,15 L11,15 L11,6 Z")}}.node-graph[data-v-30a3f98f]{z-index:-1;--autoplay: 0%;display:flex;flex-direction:column;outline-offset:2px;position:relative}.node-graph img[data-v-30a3f98f],.node-graph .image-placeholder[data-v-30a3f98f]{width:250px;height:150px;-o-object-fit:cover;object-fit:cover;z-index:-1;filter:grayscale(1) contrast(1.2)}.node-graph .image-placeholder[data-v-30a3f98f]{background-color:var(--color-text)}.node-graph>.icon[data-v-30a3f98f]{height:45px;width:45px;margin-top:-45px;background:var(--color-accent);color:var(--color-background)}.node-graph .text[data-v-30a3f98f]{font-weight:800;display:block;margin-top:var(--spacing-half);color:var(--color-background)}.node-graph .text>span[data-v-30a3f98f]{background:var(--color-text);padding:var(--spacing-half) calc(var(--spacing) * .75);-webkit-box-decoration-break:clone;box-decoration-break:clone}.node-graph.compact[data-v-30a3f98f]{justify-content:flex-end;height:150px;width:250px}.node-graph.compact img[data-v-30a3f98f]{height:300px;position:absolute}.node-graph.compact>.icon[data-v-30a3f98f]{background-color:var(--color-background);color:var(--color-accent)}.node-graph.compact .text[data-v-30a3f98f]{margin:var(--spacing-half) 0}.entity[data-v-0be95d6f]{font-size:var(--font-size-small);box-sizing:content-box;width:250px;padding:var(--spacing-half);--tinted: color-mix(in lab, var(--graph-accent), var(--color-text) 60%);color:var(--color-text);border-radius:var(--border-radius);transition:height var(--transition),background var(--transition),text-align var(--transition) var(--transition);text-align:center}.entity[data-v-0be95d6f]:has(.animate-text-align),.entity[data-v-0be95d6f]:not(.detail){overflow:hidden}.entity.hide[data-v-0be95d6f]{opacity:.2;filter:var(--blur)}.entity.hide.user-active[data-v-0be95d6f]{filter:none;opacity:1;color:color-mix(in lab,var(--color-text),var(--color-background) 70%)}.entity.highlight[data-v-0be95d6f]{color:var(--graph-accent)}.entity.highlight span[data-v-0be95d6f]{--highlight-color: color-mix(in lab, var(--graph-accent), transparent 80%);padding:.1em 10px;margin:-.1em -10px;border-radius:10px 2.5px 7.5px 5.5px;-webkit-box-decoration-break:clone;box-decoration-break:clone;background:linear-gradient(100deg,color-mix(in lab,var(--highlight-color),transparent 99%) 5%,color-mix(in lab,var(--highlight-color),transparent 0%) 6.2%,color-mix(in lab,var(--highlight-color),transparent 50%) 7.8%,color-mix(in lab,var(--highlight-color),transparent 80%) 93%,color-mix(in lab,var(--highlight-color),transparent 40%) 96%,color-mix(in lab,var(--highlight-color),transparent 99%) 97%),linear-gradient(195deg,color-mix(in lab,var(--highlight-color),transparent 99%),color-mix(in lab,var(--highlight-color),transparent 70%) 7.9%,color-mix(in lab,var(--highlight-color),transparent 99%) 50%)}.entity.network[data-v-0be95d6f]{color:var(--color-text)}.entity .label.animate-text-align[data-v-0be95d6f],.entity .class.animate-text-align[data-v-0be95d6f]{transition:margin var(--transition)}.entity .label[data-v-0be95d6f]{font:var(--serif);font-weight:700}.entity .class[data-v-0be95d6f]{font-size:var(--font-size-small)}.entity .description[data-v-0be95d6f]{text-align:left;margin-top:var(--spacing-quart);font:var(--serif-small);-webkit-hyphens:auto;hyphens:auto}.entity .urls[data-v-0be95d6f]{text-align:left;margin-top:var(--spacing-quart)}.entity .urls a[data-v-0be95d6f]{color:inherit}.entity .inner[data-v-0be95d6f]{display:inline}.entity.detail[data-v-0be95d6f]{max-width:none;width:250px!important;background-color:var(--graph-accent)}.entity.detail[data-v-0be95d6f]:not(:has(.animate-text-align)){text-align:left}.entity .occurances[data-v-0be95d6f]{text-align:left;margin-top:var(--spacing-half)}.entity .occurances .occurance[data-v-0be95d6f]{text-decoration:none}.entity .occurances.stories-leave-active[data-v-0be95d6f]{transition:all var(--transition)}.entity[data-v-b64e33c2]{color:var(--graph-accent);max-width:250px;padding:var(--spacing-half);width:-moz-max-content;width:max-content}.image[data-v-7cbb6b98]{pointer-events:none;z-index:-2}.image.edit[data-v-7cbb6b98]{pointer-events:initial}.image.edit[data-v-7cbb6b98]:hover{border-radius:var(--spacing-quart);overflow:hidden}.image img[data-v-7cbb6b98]{filter:grayscale(1);display:block;transform:scale(1.005)}.image .highlight[data-v-7cbb6b98]{background:transparent}.image .highlight img[data-v-7cbb6b98]{mix-blend-mode:none}.node-wrapper>div[data-v-3a90b1e0]{position:absolute;transition:transform var(--transition),opacity var(--transition),filter var(--transition)}.node[data-v-3a90b1e0]{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;transform:translate(-50%,-50%)}.node.edit:hover[data-v-3a90b1e0]:not(.locked){--light: color-mix(in lab, var(--ui-accent), transparent 70%);outline:var(--light) solid 2px;background:var(--light);border-radius:var(--spacing)}.node.edit.exact[data-v-3a90b1e0]{--light: color-mix(in lab, var(--ui-accent), transparent 70%);outline:var(--ui-accent) solid 2px;border-radius:5px}.node.hide[data-v-3a90b1e0]{opacity:.2;filter:var(--blur)}.node.hide.user-active[data-v-3a90b1e0]{opacity:1;filter:none}.node.mode-add-entity[data-v-3a90b1e0],.node.mode-add-story[data-v-3a90b1e0],.node.mode-add-image[data-v-3a90b1e0]{pointer-events:none}.node.mode-add-edge[data-v-3a90b1e0]{cursor:crosshair}.edge[data-v-56a16983]{fill:none;color:var(--color-edge);stroke:var(--color-edge)}.edge.hide[data-v-56a16983]{opacity:.2;filter:var(--blur)}.edge.hide.user-active[data-v-56a16983]{filter:none}.edge marker[data-v-56a16983]{overflow:visible}.edge marker path[data-v-56a16983]{stroke:currentColor;fill:currentColor}.edge path[data-v-56a16983]{transition:color var(--transition),opacity var(--transition)}.edge path.edit[data-v-56a16983]{opacity:0;stroke-width:20;pointer-events:all}.edge path.edit[data-v-56a16983]:hover{opacity:.1;stroke-linecap:round}.edge text[data-v-56a16983]{stroke:none;fill:currentColor;font-size:var(--font-size-small);text-anchor:middle;dominant-baseline:middle}.edge text.shadow[data-v-56a16983]{stroke-linejoin:round;stroke:var(--color-background);stroke-width:20px;fill:var(--color-background);cursor:default}.edge text.shadow[data-v-56a16983]:hover{stroke:color-mix(in lab,currentColor,var(--color-background) 90%)}.edge text.edit[data-v-56a16983]{pointer-events:all}.edge:has(path.edit:hover) text.shadow[data-v-56a16983]{stroke:color-mix(in lab,currentColor,var(--color-background) 90%)}.edge:has(text.shadow:hover) path.edit[data-v-56a16983]{opacity:.1;stroke-linecap:round}.edge.highlight[data-v-56a16983],.edge.network[data-v-56a16983]{color:var(--color-edge-highlight);stroke:var(--color-edge-highlight)}.graph[data-v-f4ac8e94]{grid-column:graph-start / graph-end;grid-row:graph-start / graph-end;position:relative;overflow:hidden}.graph.mode-add-entity[data-v-f4ac8e94]{cursor:url("data:image/svg+xml,%3csvg%20width='45'%20height='45'%20viewBox='0%200%2045%2045'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M32,15%20C33.1045695,15%2034,15.8954305%2034,17%20L34,28%20C34,29.1045695%2033.1045695,30%2032,30%20L13,30%20C11.8954305,30%2011,29.1045695%2011,28%20L11,17%20C11,15.8954305%2011.8954305,15%2013,15%20L32,15%20Z%20M32,16%20L13,16%20C12.4477153,16%2012,16.4477153%2012,17%20L12,28%20C12,28.5522847%2012.4477153,29%2013,29%20L32,29%20C32.5522847,29%2033,28.5522847%2033,28%20L33,17%20C33,16.4477153%2032.5522847,16%2032,16%20Z%20M23,25%20C23.5522847,25%2024,25.4477153%2024,26%20L24,27%20C24,27.5522847%2023.5522847,28%2023,28%20L14,28%20C13.4477153,28%2013,27.5522847%2013,27%20L13,26%20C13,25.4477153%2013.4477153,25%2014,25%20L23,25%20Z%20M31,17%20C31.5522847,17%2032,17.4477153%2032,18%20L32,23%20C32,23.5522847%2031.5522847,24%2031,24%20L14,24%20C13.4477153,24%2013,23.5522847%2013,23%20L13,18%20C13,17.4477153%2013.4477153,17%2014,17%20L31,17%20Z'%20fill='%23000000'%20fill-rule='evenodd'/%3e%3c/svg%3e") 11 15,auto}.graph.mode-add-story[data-v-f4ac8e94]{cursor:url("data:image/svg+xml,%3csvg%20width='45'%20height='45'%20viewBox='0%200%2045%2045'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M32,15%20C33.1045695,15%2034,15.8954305%2034,17%20L34,28%20C34,29.1045695%2033.1045695,30%2032,30%20L13,30%20C11.8954305,30%2011,29.1045695%2011,28%20L11,17%20C11,15.8954305%2011.8954305,15%2013,15%20L32,15%20Z%20M32,16%20L13,16%20C12.4477153,16%2012,16.4477153%2012,17%20L12,28%20C12,28.5522847%2012.4477153,29%2013,29%20L32,29%20C32.5522847,29%2033,28.5522847%2033,28%20L33,17%20C33,16.4477153%2032.5522847,16%2032,16%20Z%20M20.1483417,19.765467%20C20.4377927,19.2951091%2021.0537395,19.1484551%2021.5240974,19.4379061%20L25.1160552,21.6483417%20C25.2493757,21.730385%2025.3615728,21.8425821%2025.4436161,21.9759026%20C25.7330671,22.4462605%2025.5864131,23.0622073%2025.1160552,23.3516583%20L21.5240974,25.5620939%20C21.3664897,25.6590832%2021.1850598,25.7104356%2021,25.7104356%20C20.4477153,25.7104356%2020,25.2627203%2020,24.7104356%20L20,20.2895644%20C20,20.1045046%2020.0513523,19.9230747%2020.1483417,19.765467%20Z'%20fill='%23000000'/%3e%3c/svg%3e") 11 15,auto}.graph.mode-add-image[data-v-f4ac8e94]{cursor:url("data:image/svg+xml,%3csvg%20width='45'%20height='45'%20viewBox='0%200%2045%2045'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M32,15%20C33.1045695,15%2034,15.8954305%2034,17%20L34,28%20C34,29.1045695%2033.1045695,30%2032,30%20L13,30%20C11.8954305,30%2011,29.1045695%2011,28%20L11,17%20C11,15.8954305%2011.8954305,15%2013,15%20L32,15%20Z%20M32,16%20L13,16%20C12.4477153,16%2012,16.4477153%2012,17%20L12,28%20C12,28.5522847%2012.4477153,29%2013,29%20L32,29%20C32.5522847,29%2033,28.5522847%2033,28%20L33,17%20C33,16.4477153%2032.5522847,16%2032,16%20Z%20M26,22%20C27.8346354,21.3884549%2029.6692708,21.6183815%2031.5040033,22.6896136%20C31.8106661,22.8685631%2031.9994458,23.1967019%2032,23.5517578%20L32,27%20C32,27.5522847%2031.5522847,28%2031,28%20L14,28%20C13.4477153,28%2013,27.5522847%2013,27%20L13,25.9687057%20L13.0105961,25.8251331%20C13.0818756,25.3451379%2013.503213,24.9842004%2014,25%20L14.4403514,25.0105801%20C20.8078896,25.11322%2023.2067448,22.9310851%2026,22%20Z%20M16.75,18.5%20C17.7164983,18.5%2018.5,19.2835017%2018.5,20.25%20C18.5,21.2164983%2017.7164983,22%2016.75,22%20C15.7835017,22%2015,21.2164983%2015,20.25%20C15,19.2835017%2015.7835017,18.5%2016.75,18.5%20Z'%20fill='%23000000'/%3e%3c/svg%3e") 11 15,auto}.graph.mode-display-frame[data-v-f4ac8e94]{cursor:crosshair}.graph .nodes[data-v-f4ac8e94]{position:absolute}.graph svg[data-v-f4ac8e94]{position:absolute;width:100%;height:100%;pointer-events:none}.graph svg .display-bounds[data-v-f4ac8e94]{fill:none;stroke:var(--ui-accent);stroke-width:2;stroke-dasharray:10px 10px;vector-effect:non-scaling-stroke}.graph .nodes-enter-active[data-v-f4ac8e94]{transition:opacity var(--transition) var(--transition)}.graph .nodes-leave-active[data-v-f4ac8e94]{transition:opacity var(--transition)}.graph .edges-enter-active[data-v-f4ac8e94]{transition:opacity var(--transition) var(--transition)}.graph .edges-leave-active[data-v-f4ac8e94]{transition:opacity var(--transition)}.graph .edges-enter-from[data-v-f4ac8e94],.graph .nodes-enter-from[data-v-f4ac8e94],.graph .edges-leave-to[data-v-f4ac8e94],.graph .nodes-leave-to[data-v-f4ac8e94]{opacity:0}.graph.initializing .nodes-enter-active[data-v-f4ac8e94],.graph.initializing .edges-enter-active[data-v-f4ac8e94]{transition:opacity 0s}.tint[data-v-f4ac8e94]{transition:all var(--transition);grid-column:graph-start-x / graph-end-x;grid-row:graph-start-y / graph-end-y;background:var(--graph-accent);opacity:.05;pointer-events:none;z-index:5}.progress[data-v-158acf2c]{color:var(--accent, var(--ui-accent));align-self:center;--left: color-mix(in lab, currentColor, transparent 20%);--right: color-mix(in lab, currentColor, rgba(255, 255, 255, .5) 90%);height:5px;bottom:0;width:100%;-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);display:flex;justify-content:center;align-items:center}.progress .markers[data-v-158acf2c]{width:100%;height:40px;display:flex;justify-content:center;align-items:center}.progress .markers .marker[data-v-158acf2c]{position:absolute;transform:translate(-50%);mix-blend-mode:multiply;opacity:.2;width:14px;height:40px;display:grid;align-content:center;justify-content:center}.progress .markers .marker[data-v-158acf2c]:hover,.progress .markers .marker.active[data-v-158acf2c]{opacity:1;mix-blend-mode:normal;z-index:100}.progress .markers .marker svg[data-v-158acf2c]{display:block;pointer-events:none}.progress .markers .marker svg[data-v-158acf2c]>*{pointer-events:visible}.timeline[data-v-264fb344]{--tint: var(--accent, var(--ui-accent));position:absolute;bottom:0;width:100vw;z-index:1;display:flex;align-items:flex-start;align-items:flex-end;gap:var(--spacing-half);--accent: color-mix(in lab, var(--graph-accent), var(--color-text) 30%)}.timeline .button-group[data-v-264fb344]{margin:var(--spacing-half);width:100%}.timeline .button-group .progress[data-v-264fb344]{height:1px;margin:var(--spacing-half)}.toolbar[data-v-f9fd2ea6]{--accent: var(--ui-accent);position:absolute;left:var(--spacing-half);top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:var(--border-radius-small);align-items:center;justify-content:center}.toolbar .button[data-v-f9fd2ea6]{border-radius:var(--border-radius-small)}.graph-view[data-v-bea8aeaf]{--font-size-subtitle: 16px;grid-column:1 / -1;grid-row:1 / -1;max-height:100vh;display:grid;grid-template-columns:[graph-start controls-start header-start] 1fr [video-start] 320px [video-end] var(--spacing-half) [graph-end controls-end header-end];grid-template-rows:[graph-start header-start] var(--spacing-double) [header-end] 1fr [video-start] 180px [video-end] var(--spacing-half) [controls-start] var(--spacing-quad) [graph-end controls-end]}.graph-view.split-screen[data-v-bea8aeaf]{--font-size-subtitle: max(2vw, 40px);grid-template-columns:[graph-start controls-start header-start] 1fr [graph-end controls-end video-start header-end] 1fr [video-end];grid-template-rows:[graph-start video-start header-start] var(--spacing-double) [header-end] 1fr [controls-start] var(--spacing-double) [graph-end video-end controls-end]} diff --git a/assets/GraphView-DOPMuhbl.css b/assets/GraphView-DOPMuhbl.css deleted file mode 100644 index 1b9151b..0000000 --- a/assets/GraphView-DOPMuhbl.css +++ /dev/null @@ -1 +0,0 @@ -.context-menu-list[data-v-5b0e52e5]{font-size:var(--font-size-small);min-width:150px}.context-menu-list button[data-v-5b0e52e5]{text-align:left;padding:var(--spacing-half)}.context-menu-list button[data-v-5b0e52e5]:not(:disabled):hover{color:var(--ui-accent);background-color:color-mix(in lab,currentColor,transparent 90%)}.horizontal-slider[data-v-0b4d1e9f]{position:relative;margin-left:-var(--spacing-half)}.horizontal-slider .wrapper[data-v-0b4d1e9f]{display:grid;overflow-x:scroll;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;gap:var(--spacing-half);padding:0 calc(var(--spacing) * 1.5)}.horizontal-slider .wrapper[data-v-0b4d1e9f]::-webkit-scrollbar{display:none}.horizontal-slider .wrapper[data-v-0b4d1e9f]>*{grid-row:1;scroll-snap-align:start}.horizontal-slider .arrow[data-v-0b4d1e9f]{position:absolute;z-index:1;height:100%;width:30px;padding:0;cursor:pointer;font:var(--font-ui);font-size:.8em;border:none;color:var(--color-user);transition:color .2s,font-size .2s,font-weight .2s;--button-size: 30px;background:var(--color-accent);height:var(--button-size);width:var(--button-size);top:50%;transform:translateY(-50%);transition:all var(--ui-transition);border-radius:50%}.horizontal-slider .arrow:not(:disabled)[data-v-0b4d1e9f]:hover{font-size:1em;font-weight:310}.horizontal-slider .arrow[data-v-0b4d1e9f]:disabled{transform:translateY(-50%) scale(.1);color:var(--color-accent);cursor:default}.horizontal-slider .arrow.left[data-v-0b4d1e9f]{left:calc(var(--button-size) * -.5 - var(--spacing-quart))}.horizontal-slider .arrow.right[data-v-0b4d1e9f]{right:calc(var(--button-size) * -.5 - var(--spacing-quart))}svg[data-v-aea62c91] path{animation:linear .8s alternate infinite playing-aea62c91}@keyframes playing-aea62c91{0%{d:path("M10.5,0 C16.2989899,0 21,4.70101013 21,10.5 C21,16.2989899 16.2989899,21 10.5,21 C4.70101013,21 0,16.2989899 0,10.5 C0,4.70101013 4.70101013,0 10.5,0 Z M9,6 L8,6 L8,15 L9,15 L9,6 Z M15,6 L14,6 L14,15 L15,15 L15,6 Z M7,8 L6,8 L6,13 L7,13 L7,8 Z M13,8 L12,8 L12,13 L13,13 L13,8 Z M11,9 L10,9 L10,12 L11,12 L11,9 Z")}50%{d:path("M10.5,0 C16.2989899,0 21,4.70101013 21,10.5 C21,16.2989899 16.2989899,21 10.5,21 C4.70101013,21 0,16.2989899 0,10.5 C0,4.70101013 4.70101013,0 10.5,0 Z M9,10 L8,10 L8,11 L9,11 L9,10 Z M15,7 L14,7 L14,14 L15,14 L15,7 Z M7,9 L6,9 L6,12 L7,12 L7,9 Z M13,6 L12,6 L12,15 L13,15 L13,6 Z M11,8 L10,8 L10,13 L11,13 L11,8 Z")}to{d:path("M10.5,0 C16.2989899,0 21,4.70101013 21,10.5 C21,16.2989899 16.2989899,21 10.5,21 C4.70101013,21 0,16.2989899 0,10.5 C0,4.70101013 4.70101013,0 10.5,0 Z M9,8 L8,8 L8,13 L9,13 L9,8 Z M15,9 L14,9 L14,12 L15,12 L15,9 Z M7,7 L6,7 L6,14 L7,14 L7,7 Z M13,10 L12,10 L12,11 L13,11 L13,10 Z M11,6 L10,6 L10,15 L11,15 L11,6 Z")}}.node-graph[data-v-7ca53d01]{z-index:-1;--autoplay: 0%;display:flex;flex-direction:column;outline-offset:2px;position:relative}.node-graph img[data-v-7ca53d01]{width:250px;height:150px;-o-object-fit:cover;object-fit:cover;z-index:-1;filter:grayscale(1) contrast(1.2)}.node-graph>.icon[data-v-7ca53d01]{height:45px;width:45px;margin-top:-45px;background:var(--color-accent);color:var(--color-background)}.node-graph .text[data-v-7ca53d01]{font-weight:800;display:block;margin-top:var(--spacing-half);color:var(--color-background)}.node-graph .text>span[data-v-7ca53d01]{background:var(--color-text);padding:var(--spacing-half) calc(var(--spacing) * .75);-webkit-box-decoration-break:clone;box-decoration-break:clone}.node-graph.compact[data-v-7ca53d01]{justify-content:flex-end;height:150px;width:250px}.node-graph.compact img[data-v-7ca53d01]{height:300px;position:absolute}.node-graph.compact>.icon[data-v-7ca53d01]{background-color:var(--color-background);color:var(--color-accent)}.node-graph.compact .text[data-v-7ca53d01]{margin:var(--spacing-half) 0}.entity[data-v-8221faae]{font-size:var(--font-size-small);box-sizing:content-box;width:250px;padding:var(--spacing-half);--tinted: color-mix(in lab, var(--graph-accent), var(--color-text) 60%);color:var(--color-text);border-radius:var(--border-radius);transition:height var(--transition),background var(--transition),text-align var(--transition) var(--transition);text-align:center}.entity[data-v-8221faae]:has(.animate-text-align),.entity[data-v-8221faae]:not(.detail){overflow:hidden}.entity.hide[data-v-8221faae]{opacity:.2;filter:var(--blur)}.entity.hide.user-active[data-v-8221faae]{filter:none;opacity:1;color:color-mix(in lab,var(--color-text),var(--color-background) 70%)}.entity.highlight[data-v-8221faae]{color:var(--graph-accent)}.entity.highlight span[data-v-8221faae]{--highlight-color: color-mix(in lab, var(--graph-accent), transparent 80%);padding:.1em 10px;margin:-.1em -10px;border-radius:10px 2.5px 7.5px 5.5px;-webkit-box-decoration-break:clone;box-decoration-break:clone;background:linear-gradient(100deg,color-mix(in lab,var(--highlight-color),transparent 99%) 5%,color-mix(in lab,var(--highlight-color),transparent 0%) 6.2%,color-mix(in lab,var(--highlight-color),transparent 50%) 7.8%,color-mix(in lab,var(--highlight-color),transparent 80%) 93%,color-mix(in lab,var(--highlight-color),transparent 40%) 96%,color-mix(in lab,var(--highlight-color),transparent 99%) 97%),linear-gradient(195deg,color-mix(in lab,var(--highlight-color),transparent 99%),color-mix(in lab,var(--highlight-color),transparent 70%) 7.9%,color-mix(in lab,var(--highlight-color),transparent 99%) 50%)}.entity.network[data-v-8221faae]{color:var(--color-text)}.entity .label.animate-text-align[data-v-8221faae],.entity .class.animate-text-align[data-v-8221faae]{transition:margin var(--transition)}.entity .label[data-v-8221faae]{font:var(--serif);font-weight:700}.entity .class[data-v-8221faae]{font-size:var(--font-size-small)}.entity .inner[data-v-8221faae]{display:inline}.entity.detail[data-v-8221faae]{max-width:none;width:250px!important;background-color:var(--graph-accent)}.entity.detail[data-v-8221faae]:not(:has(.animate-text-align)){text-align:left}.entity .occurances[data-v-8221faae]{text-align:left;margin-top:var(--spacing-half)}.entity .occurances .occurance[data-v-8221faae]{text-decoration:none}.entity .occurances.stories-leave-active[data-v-8221faae]{transition:all var(--transition)}.entity[data-v-b64e33c2]{color:var(--graph-accent);max-width:250px;padding:var(--spacing-half);width:-moz-max-content;width:max-content}.image[data-v-7cbb6b98]{pointer-events:none;z-index:-2}.image.edit[data-v-7cbb6b98]{pointer-events:initial}.image.edit[data-v-7cbb6b98]:hover{border-radius:var(--spacing-quart);overflow:hidden}.image img[data-v-7cbb6b98]{filter:grayscale(1);display:block;transform:scale(1.005)}.image .highlight[data-v-7cbb6b98]{background:transparent}.image .highlight img[data-v-7cbb6b98]{mix-blend-mode:none}.node-wrapper>div[data-v-3a90b1e0]{position:absolute;transition:transform var(--transition),opacity var(--transition),filter var(--transition)}.node[data-v-3a90b1e0]{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;transform:translate(-50%,-50%)}.node.edit:hover[data-v-3a90b1e0]:not(.locked){--light: color-mix(in lab, var(--ui-accent), transparent 70%);outline:var(--light) solid 2px;background:var(--light);border-radius:var(--spacing)}.node.edit.exact[data-v-3a90b1e0]{--light: color-mix(in lab, var(--ui-accent), transparent 70%);outline:var(--ui-accent) solid 2px;border-radius:5px}.node.hide[data-v-3a90b1e0]{opacity:.2;filter:var(--blur)}.node.hide.user-active[data-v-3a90b1e0]{opacity:1;filter:none}.node.mode-add-entity[data-v-3a90b1e0],.node.mode-add-story[data-v-3a90b1e0],.node.mode-add-image[data-v-3a90b1e0]{pointer-events:none}.node.mode-add-edge[data-v-3a90b1e0]{cursor:crosshair}.edge[data-v-56a16983]{fill:none;color:var(--color-edge);stroke:var(--color-edge)}.edge.hide[data-v-56a16983]{opacity:.2;filter:var(--blur)}.edge.hide.user-active[data-v-56a16983]{filter:none}.edge marker[data-v-56a16983]{overflow:visible}.edge marker path[data-v-56a16983]{stroke:currentColor;fill:currentColor}.edge path[data-v-56a16983]{transition:color var(--transition),opacity var(--transition)}.edge path.edit[data-v-56a16983]{opacity:0;stroke-width:20;pointer-events:all}.edge path.edit[data-v-56a16983]:hover{opacity:.1;stroke-linecap:round}.edge text[data-v-56a16983]{stroke:none;fill:currentColor;font-size:var(--font-size-small);text-anchor:middle;dominant-baseline:middle}.edge text.shadow[data-v-56a16983]{stroke-linejoin:round;stroke:var(--color-background);stroke-width:20px;fill:var(--color-background);cursor:default}.edge text.shadow[data-v-56a16983]:hover{stroke:color-mix(in lab,currentColor,var(--color-background) 90%)}.edge text.edit[data-v-56a16983]{pointer-events:all}.edge:has(path.edit:hover) text.shadow[data-v-56a16983]{stroke:color-mix(in lab,currentColor,var(--color-background) 90%)}.edge:has(text.shadow:hover) path.edit[data-v-56a16983]{opacity:.1;stroke-linecap:round}.edge.highlight[data-v-56a16983],.edge.network[data-v-56a16983]{color:var(--color-edge-highlight);stroke:var(--color-edge-highlight)}.graph[data-v-f4ac8e94]{grid-column:graph-start / graph-end;grid-row:graph-start / graph-end;position:relative;overflow:hidden}.graph.mode-add-entity[data-v-f4ac8e94]{cursor:url("data:image/svg+xml,%3csvg%20width='45'%20height='45'%20viewBox='0%200%2045%2045'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M32,15%20C33.1045695,15%2034,15.8954305%2034,17%20L34,28%20C34,29.1045695%2033.1045695,30%2032,30%20L13,30%20C11.8954305,30%2011,29.1045695%2011,28%20L11,17%20C11,15.8954305%2011.8954305,15%2013,15%20L32,15%20Z%20M32,16%20L13,16%20C12.4477153,16%2012,16.4477153%2012,17%20L12,28%20C12,28.5522847%2012.4477153,29%2013,29%20L32,29%20C32.5522847,29%2033,28.5522847%2033,28%20L33,17%20C33,16.4477153%2032.5522847,16%2032,16%20Z%20M23,25%20C23.5522847,25%2024,25.4477153%2024,26%20L24,27%20C24,27.5522847%2023.5522847,28%2023,28%20L14,28%20C13.4477153,28%2013,27.5522847%2013,27%20L13,26%20C13,25.4477153%2013.4477153,25%2014,25%20L23,25%20Z%20M31,17%20C31.5522847,17%2032,17.4477153%2032,18%20L32,23%20C32,23.5522847%2031.5522847,24%2031,24%20L14,24%20C13.4477153,24%2013,23.5522847%2013,23%20L13,18%20C13,17.4477153%2013.4477153,17%2014,17%20L31,17%20Z'%20fill='%23000000'%20fill-rule='evenodd'/%3e%3c/svg%3e") 11 15,auto}.graph.mode-add-story[data-v-f4ac8e94]{cursor:url("data:image/svg+xml,%3csvg%20width='45'%20height='45'%20viewBox='0%200%2045%2045'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M32,15%20C33.1045695,15%2034,15.8954305%2034,17%20L34,28%20C34,29.1045695%2033.1045695,30%2032,30%20L13,30%20C11.8954305,30%2011,29.1045695%2011,28%20L11,17%20C11,15.8954305%2011.8954305,15%2013,15%20L32,15%20Z%20M32,16%20L13,16%20C12.4477153,16%2012,16.4477153%2012,17%20L12,28%20C12,28.5522847%2012.4477153,29%2013,29%20L32,29%20C32.5522847,29%2033,28.5522847%2033,28%20L33,17%20C33,16.4477153%2032.5522847,16%2032,16%20Z%20M20.1483417,19.765467%20C20.4377927,19.2951091%2021.0537395,19.1484551%2021.5240974,19.4379061%20L25.1160552,21.6483417%20C25.2493757,21.730385%2025.3615728,21.8425821%2025.4436161,21.9759026%20C25.7330671,22.4462605%2025.5864131,23.0622073%2025.1160552,23.3516583%20L21.5240974,25.5620939%20C21.3664897,25.6590832%2021.1850598,25.7104356%2021,25.7104356%20C20.4477153,25.7104356%2020,25.2627203%2020,24.7104356%20L20,20.2895644%20C20,20.1045046%2020.0513523,19.9230747%2020.1483417,19.765467%20Z'%20fill='%23000000'/%3e%3c/svg%3e") 11 15,auto}.graph.mode-add-image[data-v-f4ac8e94]{cursor:url("data:image/svg+xml,%3csvg%20width='45'%20height='45'%20viewBox='0%200%2045%2045'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M32,15%20C33.1045695,15%2034,15.8954305%2034,17%20L34,28%20C34,29.1045695%2033.1045695,30%2032,30%20L13,30%20C11.8954305,30%2011,29.1045695%2011,28%20L11,17%20C11,15.8954305%2011.8954305,15%2013,15%20L32,15%20Z%20M32,16%20L13,16%20C12.4477153,16%2012,16.4477153%2012,17%20L12,28%20C12,28.5522847%2012.4477153,29%2013,29%20L32,29%20C32.5522847,29%2033,28.5522847%2033,28%20L33,17%20C33,16.4477153%2032.5522847,16%2032,16%20Z%20M26,22%20C27.8346354,21.3884549%2029.6692708,21.6183815%2031.5040033,22.6896136%20C31.8106661,22.8685631%2031.9994458,23.1967019%2032,23.5517578%20L32,27%20C32,27.5522847%2031.5522847,28%2031,28%20L14,28%20C13.4477153,28%2013,27.5522847%2013,27%20L13,25.9687057%20L13.0105961,25.8251331%20C13.0818756,25.3451379%2013.503213,24.9842004%2014,25%20L14.4403514,25.0105801%20C20.8078896,25.11322%2023.2067448,22.9310851%2026,22%20Z%20M16.75,18.5%20C17.7164983,18.5%2018.5,19.2835017%2018.5,20.25%20C18.5,21.2164983%2017.7164983,22%2016.75,22%20C15.7835017,22%2015,21.2164983%2015,20.25%20C15,19.2835017%2015.7835017,18.5%2016.75,18.5%20Z'%20fill='%23000000'/%3e%3c/svg%3e") 11 15,auto}.graph.mode-display-frame[data-v-f4ac8e94]{cursor:crosshair}.graph .nodes[data-v-f4ac8e94]{position:absolute}.graph svg[data-v-f4ac8e94]{position:absolute;width:100%;height:100%;pointer-events:none}.graph svg .display-bounds[data-v-f4ac8e94]{fill:none;stroke:var(--ui-accent);stroke-width:2;stroke-dasharray:10px 10px;vector-effect:non-scaling-stroke}.graph .nodes-enter-active[data-v-f4ac8e94]{transition:opacity var(--transition) var(--transition)}.graph .nodes-leave-active[data-v-f4ac8e94]{transition:opacity var(--transition)}.graph .edges-enter-active[data-v-f4ac8e94]{transition:opacity var(--transition) var(--transition)}.graph .edges-leave-active[data-v-f4ac8e94]{transition:opacity var(--transition)}.graph .edges-enter-from[data-v-f4ac8e94],.graph .nodes-enter-from[data-v-f4ac8e94],.graph .edges-leave-to[data-v-f4ac8e94],.graph .nodes-leave-to[data-v-f4ac8e94]{opacity:0}.graph.initializing .nodes-enter-active[data-v-f4ac8e94],.graph.initializing .edges-enter-active[data-v-f4ac8e94]{transition:opacity 0s}.tint[data-v-f4ac8e94]{transition:all var(--transition);grid-column:graph-start-x / graph-end-x;grid-row:graph-start-y / graph-end-y;background:var(--graph-accent);opacity:.05;pointer-events:none;z-index:5}.progress[data-v-158acf2c]{color:var(--accent, var(--ui-accent));align-self:center;--left: color-mix(in lab, currentColor, transparent 20%);--right: color-mix(in lab, currentColor, rgba(255, 255, 255, .5) 90%);height:5px;bottom:0;width:100%;-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);display:flex;justify-content:center;align-items:center}.progress .markers[data-v-158acf2c]{width:100%;height:40px;display:flex;justify-content:center;align-items:center}.progress .markers .marker[data-v-158acf2c]{position:absolute;transform:translate(-50%);mix-blend-mode:multiply;opacity:.2;width:14px;height:40px;display:grid;align-content:center;justify-content:center}.progress .markers .marker[data-v-158acf2c]:hover,.progress .markers .marker.active[data-v-158acf2c]{opacity:1;mix-blend-mode:normal;z-index:100}.progress .markers .marker svg[data-v-158acf2c]{display:block;pointer-events:none}.progress .markers .marker svg[data-v-158acf2c]>*{pointer-events:visible}.timeline[data-v-264fb344]{--tint: var(--accent, var(--ui-accent));position:absolute;bottom:0;width:100vw;z-index:1;display:flex;align-items:flex-start;align-items:flex-end;gap:var(--spacing-half);--accent: color-mix(in lab, var(--graph-accent), var(--color-text) 30%)}.timeline .button-group[data-v-264fb344]{margin:var(--spacing-half);width:100%}.timeline .button-group .progress[data-v-264fb344]{height:1px;margin:var(--spacing-half)}.toolbar[data-v-f9fd2ea6]{--accent: var(--ui-accent);position:absolute;left:var(--spacing-half);top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:var(--border-radius-small);align-items:center;justify-content:center}.toolbar .button[data-v-f9fd2ea6]{border-radius:var(--border-radius-small)}.graph-view[data-v-bea8aeaf]{--font-size-subtitle: 16px;grid-column:1 / -1;grid-row:1 / -1;max-height:100vh;display:grid;grid-template-columns:[graph-start controls-start header-start] 1fr [video-start] 320px [video-end] var(--spacing-half) [graph-end controls-end header-end];grid-template-rows:[graph-start header-start] var(--spacing-double) [header-end] 1fr [video-start] 180px [video-end] var(--spacing-half) [controls-start] var(--spacing-quad) [graph-end controls-end]}.graph-view.split-screen[data-v-bea8aeaf]{--font-size-subtitle: max(2vw, 40px);grid-template-columns:[graph-start controls-start header-start] 1fr [graph-end controls-end video-start header-end] 1fr [video-end];grid-template-rows:[graph-start video-start header-start] var(--spacing-double) [header-end] 1fr [controls-start] var(--spacing-double) [graph-end video-end controls-end]} diff --git a/assets/InputButton-BAiGn1bm.js b/assets/InputButton-CxrAPq47.js similarity index 89% rename from assets/InputButton-BAiGn1bm.js rename to assets/InputButton-CxrAPq47.js index 6009b16..a81d979 100644 --- a/assets/InputButton-BAiGn1bm.js +++ b/assets/InputButton-CxrAPq47.js @@ -1 +1 @@ -import{_ as t,o as l,h as s,i as d,k as n,n as o,l as i}from"./index-D-1Npho3.js";const r={__name:"InputButton",props:{tag:{type:String,default:"button"},active:{type:Boolean,default:!1},primary:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disablePadding:{type:Boolean,default:!1}},setup(a){return(e,u)=>(l(),s(i(a.tag),{class:o(["button",{active:a.active,primary:a.primary,"disable-padding":a.disablePadding}]),disabled:a.disabled},{default:d(()=>[n(e.$slots,"default",{},void 0,!0)]),_:3},8,["class","disabled"]))}},f=t(r,[["__scopeId","data-v-58df8eba"]]);export{f as I}; +import{_ as t,o as l,h as s,i as d,k as n,n as o,l as i}from"./index-BLlMk6Ru.js";const r={__name:"InputButton",props:{tag:{type:String,default:"button"},active:{type:Boolean,default:!1},primary:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disablePadding:{type:Boolean,default:!1}},setup(a){return(e,u)=>(l(),s(i(a.tag),{class:o(["button",{active:a.active,primary:a.primary,"disable-padding":a.disablePadding}]),disabled:a.disabled},{default:d(()=>[n(e.$slots,"default",{},void 0,!0)]),_:3},8,["class","disabled"]))}},f=t(r,[["__scopeId","data-v-58df8eba"]]);export{f as I}; diff --git a/assets/ListView-B82gfFes.js b/assets/ListView-ShFDm1yJ.js similarity index 97% rename from assets/ListView-B82gfFes.js rename to assets/ListView-ShFDm1yJ.js index 3f73bef..f58a20b 100644 --- a/assets/ListView-B82gfFes.js +++ b/assets/ListView-ShFDm1yJ.js @@ -1 +1 @@ -import{_ as f,o as t,h as c,i as l,e as i,d as s,j as b,k as I,n as $,l as Z,c as L,m as B,f as a,b as S,p as N,u as D,q as V,L as k,s as g,F as v,r as R,x as h,y}from"./index-D-1Npho3.js";import{I as u}from"./InputButton-BAiGn1bm.js";import{T}from"./TheHeader-B4i9M5s4.js";const z={class:"left"},E={class:"label"},j={class:"meta"},q={class:"right"},F={__name:"ListItem",props:{tag:{type:String,default:"li"},label:{type:[String,Object],default:"Untitled"},meta:{type:[String,Object,Array],default:null},disabled:{type:Boolean,default:!1}},setup(n){return(e,d)=>(t(),c(Z(n.tag),{class:$(["list-item",{disabled:n.disabled}])},{default:l(()=>[i("div",z,[i("h3",E,[s(b,{text:n.label},null,8,["text"])]),i("span",j,[s(b,{text:n.meta},null,8,["text"])])]),i("div",q,[I(e.$slots,"default",{},void 0,!0)])]),_:3},8,["class"]))}},O=f(F,[["__scopeId","data-v-5f3b1885"]]),A={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function H(n,e){return t(),L("svg",A,e[0]||(e[0]=[i("path",{d:"M24.88,15.9992136 L23.88,16.9992136 L17,17 C16.4477153,17 16,17.4477153 16,18 L16,28 C16,28.5522847 16.4477153,29 17,29 L27,29 C27.5522847,29 28,28.5522847 28,28 L28,21.1202136 L29,20.1202136 L29,28 C29,29.1045695 28.1045695,30 27,30 L17,30 C15.8954305,30 15,29.1045695 15,28 L15,18 C15,16.8954305 15.8954305,16 17,16 L24.88,15.9992136 Z M29.5606602,14.8535534 L30.1464466,15.4393398 C30.732233,16.0251263 30.732233,16.9748737 30.1464466,17.5606602 L23.0204787,24.6866281 C22.8558164,24.8512904 22.6550778,24.9753537 22.4341601,25.0489929 L18.7094306,26.2905694 L19.9510071,22.5658399 C20.0246463,22.3449222 20.1487096,22.1441836 20.3133719,21.9795213 L27.4393398,14.8535534 C28.0251263,14.267767 28.9748737,14.267767 29.5606602,14.8535534 Z M28.1464466,15.5606602 L21.0204787,22.6866281 C20.9655912,22.7415156 20.9242368,22.8084284 20.8996904,22.8820676 L20.29,24.709 L22.1179324,24.1003096 C22.1670252,24.0839453 22.2131285,24.0601108 22.2546722,24.0297765 L22.3133719,23.9795213 L29.4393398,16.8535534 C29.634602,16.6582912 29.634602,16.3417088 29.4393398,16.1464466 L28.8535534,15.5606602 C28.6582912,15.365398 28.3417088,15.365398 28.1464466,15.5606602 Z",fill:"currentColor"},null,-1)]))}const U={name:"base-Edit",render:H},W={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function G(n,e){return t(),L("svg",W,e[0]||(e[0]=[i("path",{d:"M28,15 C29.1045695,15 30,15.8954305 30,17 L30,28 C30,29.1045695 29.1045695,30 28,30 L17,30 C15.8954305,30 15,29.1045695 15,28 L15,17 C15,15.8954305 15.8954305,15 17,15 L28,15 Z M28,16 L17,16 C16.4477153,16 16,16.4477153 16,17 L16,28 C16,28.5522847 16.4477153,29 17,29 L28,29 C28.5522847,29 29,28.5522847 29,28 L29,17 C29,16.4477153 28.5522847,16 28,16 Z M23,19.5 L23,22 L25.5,22 L25.5,23 L23,23 L23,25.5 L22,25.5 L22,23 L19.5,23 L19.5,22 L22,22 L22,19.5 L23,19.5 Z",fill:"currentColor"},null,-1)]))}const J={name:"base-New",render:G},K={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function P(n,e){return t(),L("svg",K,e[0]||(e[0]=[i("path",{d:"M24.822967,13.5 C25.4363239,13.5 25.987887,13.8734264 26.2156821,14.442914 L26.838,16 L31.5,16 L31.5,17 L29.393,17 L28.1914572,28.2130662 C28.0825701,29.2293454 27.2249346,30 26.2028389,30 L20.7971611,30 C19.7750654,30 18.9174299,29.2293454 18.8085428,28.2130662 L17.607,17 L15.5,17 L15.5,16 L20.161,16 L20.7843179,14.442914 C20.9945903,13.9172332 21.480736,13.5586103 22.0367052,13.5065481 L22.177033,13.5 L24.822967,13.5 Z M28.387,17 L18.612,17 L19.802852,28.1065331 C19.8531075,28.575585 20.2223565,28.9399922 20.6808197,28.9932794 L20.7971611,29 L26.2028389,29 C26.7138868,29 27.1427045,28.6146727 27.197148,28.1065331 L28.387,17 Z M24.6464466,21.1464466 L25.3535534,21.8535534 L24.207,23 L25.3535534,24.1464466 L24.6464466,24.8535534 L23.5,23.707 L22.3535534,24.8535534 L21.6464466,24.1464466 L22.793,23 L21.6464466,21.8535534 L22.3535534,21.1464466 L23.5,22.293 L24.6464466,21.1464466 Z M24.822967,14.5 L22.177033,14.5 C21.9725807,14.5 21.7887263,14.6244755 21.7127946,14.8143047 L21.238,16 L25.761,16 L25.2872054,14.8143047 C25.2221211,14.6515939 25.0777467,14.5368982 24.9090738,14.5074486 L24.822967,14.5 Z",fill:"currentColor"},null,-1)]))}const Q={name:"base-Delete",render:P},X={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function Y(n,e){return t(),L("svg",X,e[0]||(e[0]=[i("path",{d:"M18.612,17 L19.802852,28.1065331 C19.8531075,28.575585 20.2223565,28.9399922 20.6808197,28.9932794 L20.7971611,29 L26.2028389,29 C26.7138868,29 27.1427045,28.6146727 27.197148,28.1065331 L28.387,17 L29.393,17 L28.1914572,28.2130662 C28.0825701,29.2293454 27.2249346,30 26.2028389,30 L20.7971611,30 C19.7750654,30 18.9174299,29.2293454 18.8085428,28.2130662 L17.608,17 L18.612,17 Z M25.0931333,20.2093809 L25.9068667,20.7906191 L23.0638024,24.7709092 L21.1464466,22.8535534 L21.8535534,22.1464466 L22.936,23.229 L25.0931333,20.2093809 Z M20.3379115,11.5845597 L20.6302832,10.6282549 L25.0876196,11.9909994 L26.1389494,10.6841912 C26.4937281,10.2429578 27.0634827,10.0421404 27.6103803,10.1549027 L27.7464908,10.1896685 L30.2768102,10.9632648 C30.8633663,11.142593 31.2816494,11.6609639 31.3329888,12.2721684 L31.4728665,13.9431653 L35.9311593,15.3062022 L35.6387876,16.262507 L20.3379115,11.5845597 Z M29.9844384,11.9195696 L27.4541191,11.1459733 C27.2586004,11.0861972 27.0463865,11.1514799 26.918272,11.3108142 L26.1175599,12.3058838 L30.4429263,13.628281 L30.336498,12.3558708 C30.3218296,12.1812409 30.2172974,12.0293458 30.064605,11.9518678 L29.9844384,11.9195696 Z",fill:"currentColor"},null,-1)]))}const e2={name:"base-DeleteConfirm",render:Y},t2={__name:"InputButtonDelete",emits:["confirmed"],setup(n,{emit:e}){const d=e,o=B(!1);function m(){console.log(o.value),o.value?(d("confirmed"),o.value=!1):o.value=!0}return(w,_)=>(t(),c(u,{"disable-padding":"",onClick:m,class:$({activated:o.value}),onMouseout:_[0]||(_[0]=r=>o.value=!1)},{default:l(()=>[o.value?(t(),c(a(e2),{key:1})):(t(),c(a(Q),{key:0}))]),_:1},8,["class"]))}},s2=f(t2,[["__scopeId","data-v-e927bb93"]]),n2={class:"list"},a2={class:"node-list"},o2={__name:"TheList",setup(n){const e=S(),d=N(),o=D(),m=V();function w(){const _=e.createNode({type:m.params.type});d.open(_,"node")}return(_,r)=>(t(),L("main",n2,[i("nav",null,[s(k,{horizontal:"","equal-size":""},{default:l(()=>[s(u,{tag:"RouterLink",to:"graph"},{default:l(()=>r[1]||(r[1]=[h(" Stories ")])),_:1}),s(u,{tag:"RouterLink",to:"entity"},{default:l(()=>r[2]||(r[2]=[h(" Entities ")])),_:1}),s(u,{tag:"RouterLink",to:"image"},{default:l(()=>r[3]||(r[3]=[h(" Images ")])),_:1})]),_:1}),a(o).edit?(t(),c(k,{key:0,horizontal:""},{default:l(()=>[s(u,{onClick:w,"disable-padding":"",title:"new"},{default:l(()=>[s(a(J))]),_:1})]),_:1})):g("",!0)]),i("div",a2,[(t(!0),L(v,null,R(a(e).data.nodes,(C,p)=>{var x;return t(),L(v,{key:p},[C.type===a(m).params.type?(t(),c(O,{key:0,tag:"RouterLink",to:{name:"graph",params:{type:C.type,id:p}},label:C.label,meta:(x=a(e).data.nodes[C.class])==null?void 0:x.label},{default:l(()=>[a(o).edit?(t(),L(v,{key:0},[s(s2,{title:"delete",onClick:r[0]||(r[0]=y(()=>{},["prevent"])),onConfirmed:M=>a(e).deleteNode(p,null,!0)},null,8,["onConfirmed"]),s(u,{title:"edit",onClick:y(M=>a(d).open(p,"node"),["stop","prevent"]),"disable-padding":""},{default:l(()=>[s(a(U))]),_:2},1032,["onClick"])],64)):g("",!0)]),_:2},1032,["to","label","meta"])):g("",!0)],64)}),128))])]))}},l2=f(o2,[["__scopeId","data-v-e7473703"]]),i2={class:"list-view"},r2={__name:"ListView",setup(n){return(e,d)=>(t(),L("div",i2,[s(T),s(l2)]))}},c2=f(r2,[["__scopeId","data-v-38992857"]]);export{c2 as default}; +import{_ as f,o as t,h as c,i as l,e as i,d as s,j as b,k as I,n as $,l as Z,c as L,m as B,f as a,b as S,p as N,u as D,q as V,L as k,s as g,F as v,r as R,x as h,y}from"./index-BLlMk6Ru.js";import{I as u}from"./InputButton-CxrAPq47.js";import{T}from"./TheHeader-DmDNvKd8.js";const z={class:"left"},E={class:"label"},j={class:"meta"},q={class:"right"},F={__name:"ListItem",props:{tag:{type:String,default:"li"},label:{type:[String,Object],default:"Untitled"},meta:{type:[String,Object,Array],default:null},disabled:{type:Boolean,default:!1}},setup(n){return(e,d)=>(t(),c(Z(n.tag),{class:$(["list-item",{disabled:n.disabled}])},{default:l(()=>[i("div",z,[i("h3",E,[s(b,{text:n.label},null,8,["text"])]),i("span",j,[s(b,{text:n.meta},null,8,["text"])])]),i("div",q,[I(e.$slots,"default",{},void 0,!0)])]),_:3},8,["class"]))}},O=f(F,[["__scopeId","data-v-5f3b1885"]]),A={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function H(n,e){return t(),L("svg",A,e[0]||(e[0]=[i("path",{d:"M24.88,15.9992136 L23.88,16.9992136 L17,17 C16.4477153,17 16,17.4477153 16,18 L16,28 C16,28.5522847 16.4477153,29 17,29 L27,29 C27.5522847,29 28,28.5522847 28,28 L28,21.1202136 L29,20.1202136 L29,28 C29,29.1045695 28.1045695,30 27,30 L17,30 C15.8954305,30 15,29.1045695 15,28 L15,18 C15,16.8954305 15.8954305,16 17,16 L24.88,15.9992136 Z M29.5606602,14.8535534 L30.1464466,15.4393398 C30.732233,16.0251263 30.732233,16.9748737 30.1464466,17.5606602 L23.0204787,24.6866281 C22.8558164,24.8512904 22.6550778,24.9753537 22.4341601,25.0489929 L18.7094306,26.2905694 L19.9510071,22.5658399 C20.0246463,22.3449222 20.1487096,22.1441836 20.3133719,21.9795213 L27.4393398,14.8535534 C28.0251263,14.267767 28.9748737,14.267767 29.5606602,14.8535534 Z M28.1464466,15.5606602 L21.0204787,22.6866281 C20.9655912,22.7415156 20.9242368,22.8084284 20.8996904,22.8820676 L20.29,24.709 L22.1179324,24.1003096 C22.1670252,24.0839453 22.2131285,24.0601108 22.2546722,24.0297765 L22.3133719,23.9795213 L29.4393398,16.8535534 C29.634602,16.6582912 29.634602,16.3417088 29.4393398,16.1464466 L28.8535534,15.5606602 C28.6582912,15.365398 28.3417088,15.365398 28.1464466,15.5606602 Z",fill:"currentColor"},null,-1)]))}const U={name:"base-Edit",render:H},W={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function G(n,e){return t(),L("svg",W,e[0]||(e[0]=[i("path",{d:"M28,15 C29.1045695,15 30,15.8954305 30,17 L30,28 C30,29.1045695 29.1045695,30 28,30 L17,30 C15.8954305,30 15,29.1045695 15,28 L15,17 C15,15.8954305 15.8954305,15 17,15 L28,15 Z M28,16 L17,16 C16.4477153,16 16,16.4477153 16,17 L16,28 C16,28.5522847 16.4477153,29 17,29 L28,29 C28.5522847,29 29,28.5522847 29,28 L29,17 C29,16.4477153 28.5522847,16 28,16 Z M23,19.5 L23,22 L25.5,22 L25.5,23 L23,23 L23,25.5 L22,25.5 L22,23 L19.5,23 L19.5,22 L22,22 L22,19.5 L23,19.5 Z",fill:"currentColor"},null,-1)]))}const J={name:"base-New",render:G},K={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function P(n,e){return t(),L("svg",K,e[0]||(e[0]=[i("path",{d:"M24.822967,13.5 C25.4363239,13.5 25.987887,13.8734264 26.2156821,14.442914 L26.838,16 L31.5,16 L31.5,17 L29.393,17 L28.1914572,28.2130662 C28.0825701,29.2293454 27.2249346,30 26.2028389,30 L20.7971611,30 C19.7750654,30 18.9174299,29.2293454 18.8085428,28.2130662 L17.607,17 L15.5,17 L15.5,16 L20.161,16 L20.7843179,14.442914 C20.9945903,13.9172332 21.480736,13.5586103 22.0367052,13.5065481 L22.177033,13.5 L24.822967,13.5 Z M28.387,17 L18.612,17 L19.802852,28.1065331 C19.8531075,28.575585 20.2223565,28.9399922 20.6808197,28.9932794 L20.7971611,29 L26.2028389,29 C26.7138868,29 27.1427045,28.6146727 27.197148,28.1065331 L28.387,17 Z M24.6464466,21.1464466 L25.3535534,21.8535534 L24.207,23 L25.3535534,24.1464466 L24.6464466,24.8535534 L23.5,23.707 L22.3535534,24.8535534 L21.6464466,24.1464466 L22.793,23 L21.6464466,21.8535534 L22.3535534,21.1464466 L23.5,22.293 L24.6464466,21.1464466 Z M24.822967,14.5 L22.177033,14.5 C21.9725807,14.5 21.7887263,14.6244755 21.7127946,14.8143047 L21.238,16 L25.761,16 L25.2872054,14.8143047 C25.2221211,14.6515939 25.0777467,14.5368982 24.9090738,14.5074486 L24.822967,14.5 Z",fill:"currentColor"},null,-1)]))}const Q={name:"base-Delete",render:P},X={class:"icon",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"};function Y(n,e){return t(),L("svg",X,e[0]||(e[0]=[i("path",{d:"M18.612,17 L19.802852,28.1065331 C19.8531075,28.575585 20.2223565,28.9399922 20.6808197,28.9932794 L20.7971611,29 L26.2028389,29 C26.7138868,29 27.1427045,28.6146727 27.197148,28.1065331 L28.387,17 L29.393,17 L28.1914572,28.2130662 C28.0825701,29.2293454 27.2249346,30 26.2028389,30 L20.7971611,30 C19.7750654,30 18.9174299,29.2293454 18.8085428,28.2130662 L17.608,17 L18.612,17 Z M25.0931333,20.2093809 L25.9068667,20.7906191 L23.0638024,24.7709092 L21.1464466,22.8535534 L21.8535534,22.1464466 L22.936,23.229 L25.0931333,20.2093809 Z M20.3379115,11.5845597 L20.6302832,10.6282549 L25.0876196,11.9909994 L26.1389494,10.6841912 C26.4937281,10.2429578 27.0634827,10.0421404 27.6103803,10.1549027 L27.7464908,10.1896685 L30.2768102,10.9632648 C30.8633663,11.142593 31.2816494,11.6609639 31.3329888,12.2721684 L31.4728665,13.9431653 L35.9311593,15.3062022 L35.6387876,16.262507 L20.3379115,11.5845597 Z M29.9844384,11.9195696 L27.4541191,11.1459733 C27.2586004,11.0861972 27.0463865,11.1514799 26.918272,11.3108142 L26.1175599,12.3058838 L30.4429263,13.628281 L30.336498,12.3558708 C30.3218296,12.1812409 30.2172974,12.0293458 30.064605,11.9518678 L29.9844384,11.9195696 Z",fill:"currentColor"},null,-1)]))}const e2={name:"base-DeleteConfirm",render:Y},t2={__name:"InputButtonDelete",emits:["confirmed"],setup(n,{emit:e}){const d=e,o=B(!1);function m(){console.log(o.value),o.value?(d("confirmed"),o.value=!1):o.value=!0}return(w,_)=>(t(),c(u,{"disable-padding":"",onClick:m,class:$({activated:o.value}),onMouseout:_[0]||(_[0]=r=>o.value=!1)},{default:l(()=>[o.value?(t(),c(a(e2),{key:1})):(t(),c(a(Q),{key:0}))]),_:1},8,["class"]))}},s2=f(t2,[["__scopeId","data-v-e927bb93"]]),n2={class:"list"},a2={class:"node-list"},o2={__name:"TheList",setup(n){const e=S(),d=N(),o=D(),m=V();function w(){const _=e.createNode({type:m.params.type});d.open(_,"node")}return(_,r)=>(t(),L("main",n2,[i("nav",null,[s(k,{horizontal:"","equal-size":""},{default:l(()=>[s(u,{tag:"RouterLink",to:"graph"},{default:l(()=>r[1]||(r[1]=[h(" Stories ")])),_:1}),s(u,{tag:"RouterLink",to:"entity"},{default:l(()=>r[2]||(r[2]=[h(" Entities ")])),_:1}),s(u,{tag:"RouterLink",to:"image"},{default:l(()=>r[3]||(r[3]=[h(" Images ")])),_:1})]),_:1}),a(o).edit?(t(),c(k,{key:0,horizontal:""},{default:l(()=>[s(u,{onClick:w,"disable-padding":"",title:"new"},{default:l(()=>[s(a(J))]),_:1})]),_:1})):g("",!0)]),i("div",a2,[(t(!0),L(v,null,R(a(e).data.nodes,(C,p)=>{var x;return t(),L(v,{key:p},[C.type===a(m).params.type?(t(),c(O,{key:0,tag:"RouterLink",to:{name:"graph",params:{type:C.type,id:p}},label:C.label,meta:(x=a(e).data.nodes[C.class])==null?void 0:x.label},{default:l(()=>[a(o).edit?(t(),L(v,{key:0},[s(s2,{title:"delete",onClick:r[0]||(r[0]=y(()=>{},["prevent"])),onConfirmed:M=>a(e).deleteNode(p,null,!0)},null,8,["onConfirmed"]),s(u,{title:"edit",onClick:y(M=>a(d).open(p,"node"),["stop","prevent"]),"disable-padding":""},{default:l(()=>[s(a(U))]),_:2},1032,["onClick"])],64)):g("",!0)]),_:2},1032,["to","label","meta"])):g("",!0)],64)}),128))])]))}},l2=f(o2,[["__scopeId","data-v-e7473703"]]),i2={class:"list-view"},r2={__name:"ListView",setup(n){return(e,d)=>(t(),L("div",i2,[s(T),s(l2)]))}},c2=f(r2,[["__scopeId","data-v-38992857"]]);export{c2 as default}; diff --git a/assets/SettingsView-BEte1Xwh.js b/assets/SettingsView-CLpKzZs0.js similarity index 88% rename from assets/SettingsView-BEte1Xwh.js rename to assets/SettingsView-CLpKzZs0.js index b513606..a4c9fe8 100644 --- a/assets/SettingsView-BEte1Xwh.js +++ b/assets/SettingsView-CLpKzZs0.js @@ -1 +1 @@ -import{_ as u,u as d,a as p,b as c,c as r,d as m,e,w as i,v as g,f as l,F as S,r as f,g as x,o as a,t as k}from"./index-D-1Npho3.js";import{T as v}from"./TheHeader-B4i9M5s4.js";const b={class:"settings-view"},C={__name:"SettingsView",setup(V){const s=d();p();const n=c();return(w,t)=>(a(),r("div",b,[m(v),e("main",null,[e("ul",null,[e("li",null,[t[4]||(t[4]=e("span",null,"mode",-1)),i(e("select",{"onUpdate:modelValue":t[0]||(t[0]=o=>l(s).mode=o)},[(a(!0),r(S,null,f(l(s).modeOptions,o=>(a(),r("option",{key:o},k(o),1))),128))],512),[[g,l(s).mode]])]),e("li",null,[t[5]||(t[5]=e("label",{for:"pip"},"picture in picture",-1)),i(e("input",{id:"pip",type:"checkbox","onUpdate:modelValue":t[1]||(t[1]=o=>l(s).pictureInPicture=o)},null,512),[[x,l(s).pictureInPicture]])])]),e("ul",null,[e("li",null,[e("button",{onClick:t[2]||(t[2]=(...o)=>l(n).exportProject&&l(n).exportProject(...o))},"export data")]),e("li",null,[e("button",{onClick:t[3]||(t[3]=(...o)=>l(n).deleteLocalChanges&&l(n).deleteLocalChanges(...o))},"delete local changes")])])])]))}},B=u(C,[["__scopeId","data-v-c50d4e7c"]]);export{B as default}; +import{_ as u,u as d,a as p,b as c,c as r,d as m,e,w as i,v as g,f as l,F as S,r as f,g as x,o as a,t as k}from"./index-BLlMk6Ru.js";import{T as v}from"./TheHeader-DmDNvKd8.js";const b={class:"settings-view"},C={__name:"SettingsView",setup(V){const s=d();p();const n=c();return(w,t)=>(a(),r("div",b,[m(v),e("main",null,[e("ul",null,[e("li",null,[t[4]||(t[4]=e("span",null,"mode",-1)),i(e("select",{"onUpdate:modelValue":t[0]||(t[0]=o=>l(s).mode=o)},[(a(!0),r(S,null,f(l(s).modeOptions,o=>(a(),r("option",{key:o},k(o),1))),128))],512),[[g,l(s).mode]])]),e("li",null,[t[5]||(t[5]=e("label",{for:"pip"},"picture in picture",-1)),i(e("input",{id:"pip",type:"checkbox","onUpdate:modelValue":t[1]||(t[1]=o=>l(s).pictureInPicture=o)},null,512),[[x,l(s).pictureInPicture]])])]),e("ul",null,[e("li",null,[e("button",{onClick:t[2]||(t[2]=(...o)=>l(n).exportProject&&l(n).exportProject(...o))},"export data")]),e("li",null,[e("button",{onClick:t[3]||(t[3]=(...o)=>l(n).deleteLocalChanges&&l(n).deleteLocalChanges(...o))},"delete local changes")])])])]))}},B=u(C,[["__scopeId","data-v-c50d4e7c"]]);export{B as default}; diff --git a/assets/TheHeader-B4i9M5s4.js b/assets/TheHeader-DmDNvKd8.js similarity index 93% rename from assets/TheHeader-B4i9M5s4.js rename to assets/TheHeader-DmDNvKd8.js index dd8d300..4130360 100644 --- a/assets/TheHeader-B4i9M5s4.js +++ b/assets/TheHeader-DmDNvKd8.js @@ -1 +1 @@ -import{_ as c,m as _,q as f,Q as g,u as V,a as S,J as h,o as r,c as k,e as s,d as n,i as u,f as e,Y as d,h as x,s as T,t as v,x as B}from"./index-D-1Npho3.js";const C={class:"left"},N={class:"mode"},R={class:"right"},q={__name:"TheHeader",setup(y){const i=_("Wanderer"),p=f();g();const o=V(),m=S();return(z,t)=>{const l=h("RouterLink");return r(),k("header",null,[s("span",C,[n(l,{to:"/"},{default:u(()=>[s("h1",null,v(i.value),1)]),_:1}),s("div",N,[n(d,{collapse:"",modelValue:e(o).mode,"onUpdate:modelValue":t[0]||(t[0]=a=>e(o).mode=a),options:e(o).modeOptions},null,8,["modelValue","options"])])]),s("span",R,[e(p).name!=="settings"?(r(),x(l,{key:0,to:"/settings"},{default:u(()=>t[2]||(t[2]=[B(" settings ")])),_:1})):T("",!0),n(d,{horizontal:"","equal-size":"",modelValue:e(o).lang,"onUpdate:modelValue":t[1]||(t[1]=a=>e(o).lang=a),options:e(m).languages},null,8,["modelValue","options"])])])}}},I=c(q,[["__scopeId","data-v-af21fff9"]]);export{I as T}; +import{_ as c,m as _,q as f,Q as g,u as V,a as S,J as h,o as r,c as k,e as s,d as n,i as u,f as e,Y as d,h as x,s as T,t as v,x as B}from"./index-BLlMk6Ru.js";const C={class:"left"},N={class:"mode"},R={class:"right"},q={__name:"TheHeader",setup(y){const i=_("Wanderer"),p=f();g();const o=V(),m=S();return(z,t)=>{const l=h("RouterLink");return r(),k("header",null,[s("span",C,[n(l,{to:"/"},{default:u(()=>[s("h1",null,v(i.value),1)]),_:1}),s("div",N,[n(d,{collapse:"",modelValue:e(o).mode,"onUpdate:modelValue":t[0]||(t[0]=a=>e(o).mode=a),options:e(o).modeOptions},null,8,["modelValue","options"])])]),s("span",R,[e(p).name!=="settings"?(r(),x(l,{key:0,to:"/settings"},{default:u(()=>t[2]||(t[2]=[B(" settings ")])),_:1})):T("",!0),n(d,{horizontal:"","equal-size":"",modelValue:e(o).lang,"onUpdate:modelValue":t[1]||(t[1]=a=>e(o).lang=a),options:e(m).languages},null,8,["modelValue","options"])])])}}},I=c(q,[["__scopeId","data-v-af21fff9"]]);export{I as T}; diff --git a/assets/TheVideo-C4pT0RJ-.js b/assets/TheVideo-JWRRj9Rw.js similarity index 94% rename from assets/TheVideo-C4pT0RJ-.js rename to assets/TheVideo-JWRRj9Rw.js index 884abfa..e6d84f9 100644 --- a/assets/TheVideo-C4pT0RJ-.js +++ b/assets/TheVideo-JWRRj9Rw.js @@ -1 +1 @@ -import{_,A as g,G as h,Q as x,m as s,B as T,H as l,o as b,c as S,e as u,f as a,t as B}from"./index-D-1Npho3.js";const P={class:"video"},F=["autoplay","controls","src"],V={class:"subtitle"},k={__name:"TheVideo",props:{letterbox:Boolean},setup(D){const e=g(),i=h(),c=x(),o=s(null),r=s(!1),d=T(()=>i.getMediaUrl(e.video.file));function p(){var t;o.value!=null&&(e.time=((t=o.value)==null?void 0:t.currentTime)??0)}function f(t){t.target.currentTime=e.playFrom??0,e.playFrom=null}function m(){e.isExternalPlayer?e.requestNext():c.push({name:"graph",params:{type:"graph",id:e.next}})}function v(){o.value!=null&&(e.duration=o.value.duration)}return l(()=>e.playFrom,t=>{t!=null&&(o.value.currentTime=t,e.playFrom=null)}),l(()=>e.setPlaying,t=>{t!=null&&(t?o.value.play():o.value.pause(),e.setPlaying=null)}),(t,n)=>(b(),S("main",P,[u("video",{ref_key:"video",ref:o,crossorigin:"anonymous",autoplay:r.value,controls:!r.value,src:d.value,onLoadstart:f,onEnded:m,onTimeupdate:p,onPause:n[0]||(n[0]=y=>a(e).playing=!1),onPlay:n[1]||(n[1]=y=>a(e).playing=!0),onDurationchange:v},null,40,F),u("div",V,B(a(e).subtitle),1)]))}},N=_(k,[["__scopeId","data-v-3987b7b5"]]);export{N as T}; +import{_,A as g,G as h,Q as x,m as s,B as T,H as l,o as b,c as S,e as u,f as a,t as B}from"./index-BLlMk6Ru.js";const P={class:"video"},F=["autoplay","controls","src"],V={class:"subtitle"},k={__name:"TheVideo",props:{letterbox:Boolean},setup(D){const e=g(),i=h(),c=x(),o=s(null),r=s(!1),d=T(()=>i.getMediaUrl(e.video.file));function p(){var t;o.value!=null&&(e.time=((t=o.value)==null?void 0:t.currentTime)??0)}function f(t){t.target.currentTime=e.playFrom??0,e.playFrom=null}function m(){e.isExternalPlayer?e.requestNext():c.push({name:"graph",params:{type:"graph",id:e.next}})}function v(){o.value!=null&&(e.duration=o.value.duration)}return l(()=>e.playFrom,t=>{t!=null&&(o.value.currentTime=t,e.playFrom=null)}),l(()=>e.setPlaying,t=>{t!=null&&(t?o.value.play():o.value.pause(),e.setPlaying=null)}),(t,n)=>(b(),S("main",P,[u("video",{ref_key:"video",ref:o,crossorigin:"anonymous",autoplay:r.value,controls:!r.value,src:d.value,onLoadstart:f,onEnded:m,onTimeupdate:p,onPause:n[0]||(n[0]=y=>a(e).playing=!1),onPlay:n[1]||(n[1]=y=>a(e).playing=!0),onDurationchange:v},null,40,F),u("div",V,B(a(e).subtitle),1)]))}},N=_(k,[["__scopeId","data-v-3987b7b5"]]);export{N as T}; diff --git a/assets/VideoView-CjkiKEtN.js b/assets/VideoView-6I91swMc.js similarity index 70% rename from assets/VideoView-CjkiKEtN.js rename to assets/VideoView-6I91swMc.js index 8c72294..521abe0 100644 --- a/assets/VideoView-CjkiKEtN.js +++ b/assets/VideoView-6I91swMc.js @@ -1 +1 @@ -import{T as t}from"./TheVideo-C4pT0RJ-.js";import{_ as a,A as r,D as s,c,f as d,h as n,s as i,o}from"./index-D-1Npho3.js";const _={class:"video-wrapper"},p={__name:"VideoView",setup(l){const e=r();return s(()=>e.attachPlayer()),addEventListener("beforeunload",()=>{e.detachPlayer()}),(m,u)=>(o(),c("main",_,[d(e).video?(o(),n(t,{key:0,letterbox:""})):i("",!0)]))}},h=a(p,[["__scopeId","data-v-d8db2d03"]]);export{h as default}; +import{T as t}from"./TheVideo-JWRRj9Rw.js";import{_ as a,A as r,D as s,c,f as d,h as n,s as i,o}from"./index-BLlMk6Ru.js";const _={class:"video-wrapper"},p={__name:"VideoView",setup(l){const e=r();return s(()=>e.attachPlayer()),addEventListener("beforeunload",()=>{e.detachPlayer()}),(m,u)=>(o(),c("main",_,[d(e).video?(o(),n(t,{key:0,letterbox:""})):i("",!0)]))}},h=a(p,[["__scopeId","data-v-d8db2d03"]]);export{h as default}; diff --git a/assets/index-D-1Npho3.js b/assets/index-BLlMk6Ru.js similarity index 57% rename from assets/index-D-1Npho3.js rename to assets/index-BLlMk6Ru.js index c775308..288c8c1 100644 --- a/assets/index-D-1Npho3.js +++ b/assets/index-BLlMk6Ru.js @@ -1,38 +1,38 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SettingsView-BEte1Xwh.js","./TheHeader-B4i9M5s4.js","./TheHeader-C38aJpGU.css","./SettingsView-Bre7Npo1.css","./ListView-B82gfFes.js","./InputButton-BAiGn1bm.js","./InputButton-gAikVQfz.css","./ListView-RFrW4tyc.css","./GraphView-BY2yBi6p.js","./TheVideo-C4pT0RJ-.js","./TheVideo-hH7BvPIg.css","./GraphView-DOPMuhbl.css","./VideoView-CjkiKEtN.js","./VideoView-DGYTBkfm.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SettingsView-CLpKzZs0.js","./TheHeader-DmDNvKd8.js","./TheHeader-C38aJpGU.css","./SettingsView-Bre7Npo1.css","./ListView-ShFDm1yJ.js","./InputButton-CxrAPq47.js","./InputButton-gAikVQfz.css","./ListView-RFrW4tyc.css","./GraphView-CCykN0-Y.js","./TheVideo-JWRRj9Rw.js","./TheVideo-hH7BvPIg.css","./GraphView-ClcaF3t2.css","./VideoView-6I91swMc.js","./VideoView-DGYTBkfm.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/** * @vue/shared v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Gs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const he={},yn=[],pt=()=>{},Xc=()=>!1,Vr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Js=e=>e.startsWith("onUpdate:"),Ae=Object.assign,Ys=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Zc=Object.prototype.hasOwnProperty,ue=(e,t)=>Zc.call(e,t),G=Array.isArray,_n=e=>or(e)==="[object Map]",On=e=>or(e)==="[object Set]",Uo=e=>or(e)==="[object Date]",Q=e=>typeof e=="function",we=e=>typeof e=="string",lt=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",el=e=>(ge(e)||Q(e))&&Q(e.then)&&Q(e.catch),tl=Object.prototype.toString,or=e=>tl.call(e),eu=e=>or(e).slice(8,-1),nl=e=>or(e)==="[object Object]",Qs=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dn=Gs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),kr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},tu=/-(\w)/g,st=kr(e=>e.replace(tu,(t,n)=>n?n.toUpperCase():"")),nu=/\B([A-Z])/g,ln=kr(e=>e.replace(nu,"-$1").toLowerCase()),Hr=kr(e=>e.charAt(0).toUpperCase()+e.slice(1)),cs=kr(e=>e?`on${Hr(e)}`:""),kt=(e,t)=>!Object.is(e,t),xr=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Tr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ru=e=>{const t=we(e)?Number(e):NaN;return isNaN(t)?e:t};let Ko;const Br=()=>Ko||(Ko=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Sn(e){if(G(e)){const t={};for(let n=0;n{if(n){const r=n.split(ou);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Tn(e){let t="";if(we(e))t=e;else if(G(e))for(let n=0;nir(n,t))}const ol=e=>!!(e&&e.__v_isRef===!0),Ct=e=>we(e)?e:e==null?"":G(e)||ge(e)&&(e.toString===tl||!Q(e.toString))?ol(e)?Ct(e.value):JSON.stringify(e,il,2):String(e),il=(e,t)=>ol(t)?il(e,t.value):_n(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[us(r,o)+" =>"]=s,n),{})}:On(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>us(n))}:lt(t)?us(t):ge(t)&&!G(t)&&!nl(t)?String(t):t,us=(e,t="")=>{var n;return lt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**//*! #__NO_SIDE_EFFECTS__ */function Gs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const he={},bn=[],gt=()=>{},Xc=()=>!1,Vr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Js=e=>e.startsWith("onUpdate:"),Ce=Object.assign,Ys=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Zc=Object.prototype.hasOwnProperty,ue=(e,t)=>Zc.call(e,t),G=Array.isArray,wn=e=>or(e)==="[object Map]",Pn=e=>or(e)==="[object Set]",Uo=e=>or(e)==="[object Date]",Q=e=>typeof e=="function",Se=e=>typeof e=="string",lt=e=>typeof e=="symbol",me=e=>e!==null&&typeof e=="object",el=e=>(me(e)||Q(e))&&Q(e.then)&&Q(e.catch),tl=Object.prototype.toString,or=e=>tl.call(e),eu=e=>or(e).slice(8,-1),nl=e=>or(e)==="[object Object]",Qs=e=>Se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Fn=Gs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),kr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},tu=/-(\w)/g,st=kr(e=>e.replace(tu,(t,n)=>n?n.toUpperCase():"")),nu=/\B([A-Z])/g,an=kr(e=>e.replace(nu,"-$1").toLowerCase()),Hr=kr(e=>e.charAt(0).toUpperCase()+e.slice(1)),cs=kr(e=>e?`on${Hr(e)}`:""),kt=(e,t)=>!Object.is(e,t),Ar=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Tr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ru=e=>{const t=Se(e)?Number(e):NaN;return isNaN(t)?e:t};let Ko;const Br=()=>Ko||(Ko=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function An(e){if(G(e)){const t={};for(let n=0;n{if(n){const r=n.split(ou);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Rn(e){let t="";if(Se(e))t=e;else if(G(e))for(let n=0;nir(n,t))}const ol=e=>!!(e&&e.__v_isRef===!0),at=e=>Se(e)?e:e==null?"":G(e)||me(e)&&(e.toString===tl||!Q(e.toString))?ol(e)?at(e.value):JSON.stringify(e,il,2):String(e),il=(e,t)=>ol(t)?il(e,t.value):wn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[us(r,o)+" =>"]=s,n),{})}:Pn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>us(n))}:lt(t)?us(t):me(t)&&!G(t)&&!nl(t)?String(t):t,us=(e,t="")=>{var n;return lt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let He;class ll{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=He,!t&&He&&(this.index=(He.scopes||(He.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(Vn){let t=Vn;for(Vn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Fn;){let t=Fn;for(Fn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function pl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function hl(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),no(r),fu(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Cs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(gl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function gl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===qn))return;e.globalVersion=qn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Cs(e)){e.flags&=-3;return}const n=me,r=it;me=e,it=!0;try{pl(e);const s=e.fn(e._value);(t.version===0||kt(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{me=n,it=r,hl(e),e.flags&=-3}}function no(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)no(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function fu(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let it=!0;const ml=[];function Ut(){ml.push(it),it=!1}function Kt(){const e=ml.pop();it=e===void 0?!0:e}function Wo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=me;me=void 0;try{t()}finally{me=n}}}let qn=0;class du{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ro{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!me||!it||me===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==me)n=this.activeLink=new du(me,this),me.deps?(n.prevDep=me.depsTail,me.depsTail.nextDep=n,me.depsTail=n):me.deps=me.depsTail=n,vl(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=me.depsTail,n.nextDep=void 0,me.depsTail.nextDep=n,me.depsTail=n,me.deps===n&&(me.deps=r)}return n}trigger(t){this.version++,qn++,this.notify(t)}notify(t){eo();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{to()}}}function vl(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)vl(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Pr=new WeakMap,tn=Symbol(""),Os=Symbol(""),zn=Symbol("");function $e(e,t,n){if(it&&me){let r=Pr.get(e);r||Pr.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new ro),s.map=r,s.key=n),s.track()}}function Et(e,t,n,r,s,o){const i=Pr.get(e);if(!i){qn++;return}const l=a=>{a&&a.trigger()};if(eo(),t==="clear")i.forEach(l);else{const a=G(e),c=a&&Qs(n);if(a&&n==="length"){const u=Number(r);i.forEach((f,m)=>{(m==="length"||m===zn||!lt(m)&&m>=u)&&l(f)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),c&&l(i.get(zn)),t){case"add":a?c&&l(i.get("length")):(l(i.get(tn)),_n(e)&&l(i.get(Os)));break;case"delete":a||(l(i.get(tn)),_n(e)&&l(i.get(Os)));break;case"set":_n(e)&&l(i.get(tn));break}}to()}function pu(e,t){const n=Pr.get(e);return n&&n.get(t)}function pn(e){const t=oe(e);return t===e?t:($e(t,"iterate",zn),nt(e)?t:t.map(je))}function Ur(e){return $e(e=oe(e),"iterate",zn),e}const hu={__proto__:null,[Symbol.iterator](){return ds(this,Symbol.iterator,je)},concat(...e){return pn(this).concat(...e.map(t=>G(t)?pn(t):t))},entries(){return ds(this,"entries",e=>(e[1]=je(e[1]),e))},every(e,t){return yt(this,"every",e,t,void 0,arguments)},filter(e,t){return yt(this,"filter",e,t,n=>n.map(je),arguments)},find(e,t){return yt(this,"find",e,t,je,arguments)},findIndex(e,t){return yt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return yt(this,"findLast",e,t,je,arguments)},findLastIndex(e,t){return yt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return yt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ps(this,"includes",e)},indexOf(...e){return ps(this,"indexOf",e)},join(e){return pn(this).join(e)},lastIndexOf(...e){return ps(this,"lastIndexOf",e)},map(e,t){return yt(this,"map",e,t,void 0,arguments)},pop(){return Mn(this,"pop")},push(...e){return Mn(this,"push",e)},reduce(e,...t){return qo(this,"reduce",e,t)},reduceRight(e,...t){return qo(this,"reduceRight",e,t)},shift(){return Mn(this,"shift")},some(e,t){return yt(this,"some",e,t,void 0,arguments)},splice(...e){return Mn(this,"splice",e)},toReversed(){return pn(this).toReversed()},toSorted(e){return pn(this).toSorted(e)},toSpliced(...e){return pn(this).toSpliced(...e)},unshift(...e){return Mn(this,"unshift",e)},values(){return ds(this,"values",je)}};function ds(e,t,n){const r=Ur(e),s=r[t]();return r!==e&&!nt(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const gu=Array.prototype;function yt(e,t,n,r,s,o){const i=Ur(e),l=i!==e&&!nt(e),a=i[t];if(a!==gu[t]){const f=a.apply(e,o);return l?je(f):f}let c=n;i!==e&&(l?c=function(f,m){return n.call(this,je(f),m,e)}:n.length>2&&(c=function(f,m){return n.call(this,f,m,e)}));const u=a.call(i,c,r);return l&&s?s(u):u}function qo(e,t,n,r){const s=Ur(e);let o=n;return s!==e&&(nt(e)?n.length>3&&(o=function(i,l,a){return n.call(this,i,l,a,e)}):o=function(i,l,a){return n.call(this,i,je(l),a,e)}),s[t](o,...r)}function ps(e,t,n){const r=oe(e);$e(r,"iterate",zn);const s=r[t](...n);return(s===-1||s===!1)&&lo(n[0])?(n[0]=oe(n[0]),r[t](...n)):s}function Mn(e,t,n=[]){Ut(),eo();const r=oe(e)[t].apply(e,n);return to(),Kt(),r}const mu=Gs("__proto__,__v_isRef,__isVue"),yl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(lt));function vu(e){lt(e)||(e=String(e));const t=oe(this);return $e(t,"has",e),t.hasOwnProperty(e)}class _l{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?Ou:El:o?Sl:wl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=G(t);if(!s){let a;if(i&&(a=hu[n]))return a;if(n==="hasOwnProperty")return vu}const l=Reflect.get(t,n,xe(t)?t:r);return(lt(n)?yl.has(n):mu(n))||(s||$e(t,"get",n),o)?l:xe(l)?i&&Qs(n)?l:l.value:ge(l)?s?oo(l):lr(l):l}}class bl extends _l{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const a=sn(o);if(!nt(r)&&!sn(r)&&(o=oe(o),r=oe(r)),!G(t)&&xe(o)&&!xe(r))return a?!1:(o.value=r,!0)}const i=G(t)&&Qs(n)?Number(n)e,mr=e=>Reflect.getPrototypeOf(e);function Su(e,t,n){return function(...r){const s=this.__v_raw,o=oe(s),i=_n(o),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=s[e](...r),u=n?Ts:t?Ps:je;return!t&&$e(o,"iterate",a?Os:tn),{next(){const{value:f,done:m}=c.next();return m?{value:f,done:m}:{value:l?[u(f[0]),u(f[1])]:u(f),done:m}},[Symbol.iterator](){return this}}}}function vr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Eu(e,t){const n={get(s){const o=this.__v_raw,i=oe(o),l=oe(s);e||(kt(s,l)&&$e(i,"get",s),$e(i,"get",l));const{has:a}=mr(i),c=t?Ts:e?Ps:je;if(a.call(i,s))return c(o.get(s));if(a.call(i,l))return c(o.get(l));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&$e(oe(s),"iterate",tn),Reflect.get(s,"size",s)},has(s){const o=this.__v_raw,i=oe(o),l=oe(s);return e||(kt(s,l)&&$e(i,"has",s),$e(i,"has",l)),s===l?o.has(s):o.has(s)||o.has(l)},forEach(s,o){const i=this,l=i.__v_raw,a=oe(l),c=t?Ts:e?Ps:je;return!e&&$e(a,"iterate",tn),l.forEach((u,f)=>s.call(o,c(u),c(f),i))}};return Ae(n,e?{add:vr("add"),set:vr("set"),delete:vr("delete"),clear:vr("clear")}:{add(s){!t&&!nt(s)&&!sn(s)&&(s=oe(s));const o=oe(this);return mr(o).has.call(o,s)||(o.add(s),Et(o,"add",s,s)),this},set(s,o){!t&&!nt(o)&&!sn(o)&&(o=oe(o));const i=oe(this),{has:l,get:a}=mr(i);let c=l.call(i,s);c||(s=oe(s),c=l.call(i,s));const u=a.call(i,s);return i.set(s,o),c?kt(o,u)&&Et(i,"set",s,o):Et(i,"add",s,o),this},delete(s){const o=oe(this),{has:i,get:l}=mr(o);let a=i.call(o,s);a||(s=oe(s),a=i.call(o,s)),l&&l.call(o,s);const c=o.delete(s);return a&&Et(o,"delete",s,void 0),c},clear(){const s=oe(this),o=s.size!==0,i=s.clear();return o&&Et(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Su(s,e,t)}),n}function so(e,t){const n=Eu(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ue(n,s)&&s in r?n:r,s,o)}const xu={get:so(!1,!1)},Au={get:so(!1,!0)},Cu={get:so(!0,!1)};const wl=new WeakMap,Sl=new WeakMap,El=new WeakMap,Ou=new WeakMap;function Tu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Pu(e){return e.__v_skip||!Object.isExtensible(e)?0:Tu(eu(e))}function lr(e){return sn(e)?e:io(e,!1,_u,xu,wl)}function xl(e){return io(e,!1,wu,Au,Sl)}function oo(e){return io(e,!0,bu,Cu,El)}function io(e,t,n,r,s){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Pu(e);if(i===0)return e;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function Ht(e){return sn(e)?Ht(e.__v_raw):!!(e&&e.__v_isReactive)}function sn(e){return!!(e&&e.__v_isReadonly)}function nt(e){return!!(e&&e.__v_isShallow)}function lo(e){return e?!!e.__v_raw:!1}function oe(e){const t=e&&e.__v_raw;return t?oe(t):e}function ao(e){return!ue(e,"__v_skip")&&Object.isExtensible(e)&&rl(e,"__v_skip",!0),e}const je=e=>ge(e)?lr(e):e,Ps=e=>ge(e)?oo(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function ce(e){return Al(e,!1)}function co(e){return Al(e,!0)}function Al(e,t){return xe(e)?e:new Ru(e,t)}class Ru{constructor(t,n){this.dep=new ro,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:oe(t),this._value=n?t:je(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||nt(t)||sn(t);t=r?t:oe(t),kt(t,n)&&(this._rawValue=t,this._value=r?t:je(t),this.dep.trigger())}}function ne(e){return xe(e)?e.value:e}const Iu={get:(e,t,n)=>t==="__v_raw"?e:ne(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return xe(s)&&!xe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Cl(e){return Ht(e)?e:new Proxy(e,Iu)}function Mu(e){const t=G(e)?new Array(e.length):{};for(const n in e)t[n]=Lu(e,n);return t}class Nu{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return pu(oe(this._object),this._key)}}function Lu(e,t,n){const r=e[t];return xe(r)?r:new Nu(e,t,n)}class $u{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ro(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=qn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&me!==this)return dl(this,!0),!0}get value(){const t=this.dep.track();return gl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ju(e,t,n=!1){let r,s;return Q(e)?r=e:(r=e.get,s=e.set),new $u(r,s,n)}const yr={},Rr=new WeakMap;let Xt;function Du(e,t=!1,n=Xt){if(n){let r=Rr.get(n);r||Rr.set(n,r=[]),r.push(e)}}function Fu(e,t,n=he){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:l,call:a}=n,c=T=>s?T:nt(T)||s===!1||s===0?xt(T,1):xt(T);let u,f,m,h,v=!1,b=!1;if(xe(e)?(f=()=>e.value,v=nt(e)):Ht(e)?(f=()=>c(e),v=!0):G(e)?(b=!0,v=e.some(T=>Ht(T)||nt(T)),f=()=>e.map(T=>{if(xe(T))return T.value;if(Ht(T))return c(T);if(Q(T))return a?a(T,2):T()})):Q(e)?t?f=a?()=>a(e,2):e:f=()=>{if(m){Ut();try{m()}finally{Kt()}}const T=Xt;Xt=u;try{return a?a(e,3,[h]):e(h)}finally{Xt=T}}:f=pt,t&&s){const T=f,H=s===!0?1/0:s;f=()=>xt(T(),H)}const M=Zs(),P=()=>{u.stop(),M&&Ys(M.effects,u)};if(o&&t){const T=t;t=(...H)=>{T(...H),P()}}let E=b?new Array(e.length).fill(yr):yr;const D=T=>{if(!(!(u.flags&1)||!u.dirty&&!T))if(t){const H=u.run();if(s||v||(b?H.some((Z,$)=>kt(Z,E[$])):kt(H,E))){m&&m();const Z=Xt;Xt=u;try{const $=[H,E===yr?void 0:b&&E[0]===yr?[]:E,h];a?a(t,3,$):t(...$),E=H}finally{Xt=Z}}}else u.run()};return l&&l(D),u=new ul(f),u.scheduler=i?()=>i(D,!1):D,h=T=>Du(T,!1,u),m=u.onStop=()=>{const T=Rr.get(u);if(T){if(a)a(T,4);else for(const H of T)H();Rr.delete(u)}},t?r?D(!0):E=u.run():i?i(D.bind(null,!0),!0):u.run(),P.pause=u.pause.bind(u),P.resume=u.resume.bind(u),P.stop=P,P}function xt(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,xe(e))xt(e.value,t,n);else if(G(e))for(let r=0;r{xt(r,t,n)});else if(nl(e)){for(const r in e)xt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&xt(e[r],t,n)}return e}/** +**/let Ue;class ll{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ue,!t&&Ue&&(this.index=(Ue.scopes||(Ue.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(kn){let t=kn;for(kn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Vn;){let t=Vn;for(Vn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function pl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function hl(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),no(r),fu(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Cs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(gl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function gl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===zn))return;e.globalVersion=zn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Cs(e)){e.flags&=-3;return}const n=ve,r=it;ve=e,it=!0;try{pl(e);const s=e.fn(e._value);(t.version===0||kt(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ve=n,it=r,hl(e),e.flags&=-3}}function no(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)no(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function fu(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let it=!0;const ml=[];function Ut(){ml.push(it),it=!1}function Kt(){const e=ml.pop();it=e===void 0?!0:e}function Wo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ve;ve=void 0;try{t()}finally{ve=n}}}let zn=0;class du{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ro{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!ve||!it||ve===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ve)n=this.activeLink=new du(ve,this),ve.deps?(n.prevDep=ve.depsTail,ve.depsTail.nextDep=n,ve.depsTail=n):ve.deps=ve.depsTail=n,vl(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ve.depsTail,n.nextDep=void 0,ve.depsTail.nextDep=n,ve.depsTail=n,ve.deps===n&&(ve.deps=r)}return n}trigger(t){this.version++,zn++,this.notify(t)}notify(t){eo();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{to()}}}function vl(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)vl(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Pr=new WeakMap,tn=Symbol(""),Os=Symbol(""),Gn=Symbol("");function je(e,t,n){if(it&&ve){let r=Pr.get(e);r||Pr.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new ro),s.map=r,s.key=n),s.track()}}function At(e,t,n,r,s,o){const i=Pr.get(e);if(!i){zn++;return}const l=a=>{a&&a.trigger()};if(eo(),t==="clear")i.forEach(l);else{const a=G(e),c=a&&Qs(n);if(a&&n==="length"){const u=Number(r);i.forEach((f,m)=>{(m==="length"||m===Gn||!lt(m)&&m>=u)&&l(f)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),c&&l(i.get(Gn)),t){case"add":a?c&&l(i.get("length")):(l(i.get(tn)),wn(e)&&l(i.get(Os)));break;case"delete":a||(l(i.get(tn)),wn(e)&&l(i.get(Os)));break;case"set":wn(e)&&l(i.get(tn));break}}to()}function pu(e,t){const n=Pr.get(e);return n&&n.get(t)}function gn(e){const t=oe(e);return t===e?t:(je(t,"iterate",Gn),nt(e)?t:t.map(De))}function Ur(e){return je(e=oe(e),"iterate",Gn),e}const hu={__proto__:null,[Symbol.iterator](){return ds(this,Symbol.iterator,De)},concat(...e){return gn(this).concat(...e.map(t=>G(t)?gn(t):t))},entries(){return ds(this,"entries",e=>(e[1]=De(e[1]),e))},every(e,t){return _t(this,"every",e,t,void 0,arguments)},filter(e,t){return _t(this,"filter",e,t,n=>n.map(De),arguments)},find(e,t){return _t(this,"find",e,t,De,arguments)},findIndex(e,t){return _t(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return _t(this,"findLast",e,t,De,arguments)},findLastIndex(e,t){return _t(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return _t(this,"forEach",e,t,void 0,arguments)},includes(...e){return ps(this,"includes",e)},indexOf(...e){return ps(this,"indexOf",e)},join(e){return gn(this).join(e)},lastIndexOf(...e){return ps(this,"lastIndexOf",e)},map(e,t){return _t(this,"map",e,t,void 0,arguments)},pop(){return Nn(this,"pop")},push(...e){return Nn(this,"push",e)},reduce(e,...t){return qo(this,"reduce",e,t)},reduceRight(e,...t){return qo(this,"reduceRight",e,t)},shift(){return Nn(this,"shift")},some(e,t){return _t(this,"some",e,t,void 0,arguments)},splice(...e){return Nn(this,"splice",e)},toReversed(){return gn(this).toReversed()},toSorted(e){return gn(this).toSorted(e)},toSpliced(...e){return gn(this).toSpliced(...e)},unshift(...e){return Nn(this,"unshift",e)},values(){return ds(this,"values",De)}};function ds(e,t,n){const r=Ur(e),s=r[t]();return r!==e&&!nt(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const gu=Array.prototype;function _t(e,t,n,r,s,o){const i=Ur(e),l=i!==e&&!nt(e),a=i[t];if(a!==gu[t]){const f=a.apply(e,o);return l?De(f):f}let c=n;i!==e&&(l?c=function(f,m){return n.call(this,De(f),m,e)}:n.length>2&&(c=function(f,m){return n.call(this,f,m,e)}));const u=a.call(i,c,r);return l&&s?s(u):u}function qo(e,t,n,r){const s=Ur(e);let o=n;return s!==e&&(nt(e)?n.length>3&&(o=function(i,l,a){return n.call(this,i,l,a,e)}):o=function(i,l,a){return n.call(this,i,De(l),a,e)}),s[t](o,...r)}function ps(e,t,n){const r=oe(e);je(r,"iterate",Gn);const s=r[t](...n);return(s===-1||s===!1)&&lo(n[0])?(n[0]=oe(n[0]),r[t](...n)):s}function Nn(e,t,n=[]){Ut(),eo();const r=oe(e)[t].apply(e,n);return to(),Kt(),r}const mu=Gs("__proto__,__v_isRef,__isVue"),yl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(lt));function vu(e){lt(e)||(e=String(e));const t=oe(this);return je(t,"has",e),t.hasOwnProperty(e)}class _l{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?Ou:El:o?Sl:wl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=G(t);if(!s){let a;if(i&&(a=hu[n]))return a;if(n==="hasOwnProperty")return vu}const l=Reflect.get(t,n,xe(t)?t:r);return(lt(n)?yl.has(n):mu(n))||(s||je(t,"get",n),o)?l:xe(l)?i&&Qs(n)?l:l.value:me(l)?s?oo(l):lr(l):l}}class bl extends _l{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const a=sn(o);if(!nt(r)&&!sn(r)&&(o=oe(o),r=oe(r)),!G(t)&&xe(o)&&!xe(r))return a?!1:(o.value=r,!0)}const i=G(t)&&Qs(n)?Number(n)e,mr=e=>Reflect.getPrototypeOf(e);function Su(e,t,n){return function(...r){const s=this.__v_raw,o=oe(s),i=wn(o),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=s[e](...r),u=n?Ts:t?Ps:De;return!t&&je(o,"iterate",a?Os:tn),{next(){const{value:f,done:m}=c.next();return m?{value:f,done:m}:{value:l?[u(f[0]),u(f[1])]:u(f),done:m}},[Symbol.iterator](){return this}}}}function vr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Eu(e,t){const n={get(s){const o=this.__v_raw,i=oe(o),l=oe(s);e||(kt(s,l)&&je(i,"get",s),je(i,"get",l));const{has:a}=mr(i),c=t?Ts:e?Ps:De;if(a.call(i,s))return c(o.get(s));if(a.call(i,l))return c(o.get(l));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&je(oe(s),"iterate",tn),Reflect.get(s,"size",s)},has(s){const o=this.__v_raw,i=oe(o),l=oe(s);return e||(kt(s,l)&&je(i,"has",s),je(i,"has",l)),s===l?o.has(s):o.has(s)||o.has(l)},forEach(s,o){const i=this,l=i.__v_raw,a=oe(l),c=t?Ts:e?Ps:De;return!e&&je(a,"iterate",tn),l.forEach((u,f)=>s.call(o,c(u),c(f),i))}};return Ce(n,e?{add:vr("add"),set:vr("set"),delete:vr("delete"),clear:vr("clear")}:{add(s){!t&&!nt(s)&&!sn(s)&&(s=oe(s));const o=oe(this);return mr(o).has.call(o,s)||(o.add(s),At(o,"add",s,s)),this},set(s,o){!t&&!nt(o)&&!sn(o)&&(o=oe(o));const i=oe(this),{has:l,get:a}=mr(i);let c=l.call(i,s);c||(s=oe(s),c=l.call(i,s));const u=a.call(i,s);return i.set(s,o),c?kt(o,u)&&At(i,"set",s,o):At(i,"add",s,o),this},delete(s){const o=oe(this),{has:i,get:l}=mr(o);let a=i.call(o,s);a||(s=oe(s),a=i.call(o,s)),l&&l.call(o,s);const c=o.delete(s);return a&&At(o,"delete",s,void 0),c},clear(){const s=oe(this),o=s.size!==0,i=s.clear();return o&&At(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Su(s,e,t)}),n}function so(e,t){const n=Eu(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ue(n,s)&&s in r?n:r,s,o)}const Au={get:so(!1,!1)},xu={get:so(!1,!0)},Cu={get:so(!0,!1)};const wl=new WeakMap,Sl=new WeakMap,El=new WeakMap,Ou=new WeakMap;function Tu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Pu(e){return e.__v_skip||!Object.isExtensible(e)?0:Tu(eu(e))}function lr(e){return sn(e)?e:io(e,!1,_u,Au,wl)}function Al(e){return io(e,!1,wu,xu,Sl)}function oo(e){return io(e,!0,bu,Cu,El)}function io(e,t,n,r,s){if(!me(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Pu(e);if(i===0)return e;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function Ht(e){return sn(e)?Ht(e.__v_raw):!!(e&&e.__v_isReactive)}function sn(e){return!!(e&&e.__v_isReadonly)}function nt(e){return!!(e&&e.__v_isShallow)}function lo(e){return e?!!e.__v_raw:!1}function oe(e){const t=e&&e.__v_raw;return t?oe(t):e}function ao(e){return!ue(e,"__v_skip")&&Object.isExtensible(e)&&rl(e,"__v_skip",!0),e}const De=e=>me(e)?lr(e):e,Ps=e=>me(e)?oo(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function ce(e){return xl(e,!1)}function co(e){return xl(e,!0)}function xl(e,t){return xe(e)?e:new Ru(e,t)}class Ru{constructor(t,n){this.dep=new ro,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:oe(t),this._value=n?t:De(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||nt(t)||sn(t);t=r?t:oe(t),kt(t,n)&&(this._rawValue=t,this._value=r?t:De(t),this.dep.trigger())}}function ne(e){return xe(e)?e.value:e}const Iu={get:(e,t,n)=>t==="__v_raw"?e:ne(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return xe(s)&&!xe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Cl(e){return Ht(e)?e:new Proxy(e,Iu)}function Mu(e){const t=G(e)?new Array(e.length):{};for(const n in e)t[n]=Lu(e,n);return t}class Nu{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return pu(oe(this._object),this._key)}}function Lu(e,t,n){const r=e[t];return xe(r)?r:new Nu(e,t,n)}class $u{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ro(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=zn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ve!==this)return dl(this,!0),!0}get value(){const t=this.dep.track();return gl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ju(e,t,n=!1){let r,s;return Q(e)?r=e:(r=e.get,s=e.set),new $u(r,s,n)}const yr={},Rr=new WeakMap;let Xt;function Du(e,t=!1,n=Xt){if(n){let r=Rr.get(n);r||Rr.set(n,r=[]),r.push(e)}}function Fu(e,t,n=he){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:l,call:a}=n,c=T=>s?T:nt(T)||s===!1||s===0?xt(T,1):xt(T);let u,f,m,h,v=!1,b=!1;if(xe(e)?(f=()=>e.value,v=nt(e)):Ht(e)?(f=()=>c(e),v=!0):G(e)?(b=!0,v=e.some(T=>Ht(T)||nt(T)),f=()=>e.map(T=>{if(xe(T))return T.value;if(Ht(T))return c(T);if(Q(T))return a?a(T,2):T()})):Q(e)?t?f=a?()=>a(e,2):e:f=()=>{if(m){Ut();try{m()}finally{Kt()}}const T=Xt;Xt=u;try{return a?a(e,3,[h]):e(h)}finally{Xt=T}}:f=gt,t&&s){const T=f,H=s===!0?1/0:s;f=()=>xt(T(),H)}const M=Zs(),P=()=>{u.stop(),M&&Ys(M.effects,u)};if(o&&t){const T=t;t=(...H)=>{T(...H),P()}}let E=b?new Array(e.length).fill(yr):yr;const D=T=>{if(!(!(u.flags&1)||!u.dirty&&!T))if(t){const H=u.run();if(s||v||(b?H.some((Z,$)=>kt(Z,E[$])):kt(H,E))){m&&m();const Z=Xt;Xt=u;try{const $=[H,E===yr?void 0:b&&E[0]===yr?[]:E,h];a?a(t,3,$):t(...$),E=H}finally{Xt=Z}}}else u.run()};return l&&l(D),u=new ul(f),u.scheduler=i?()=>i(D,!1):D,h=T=>Du(T,!1,u),m=u.onStop=()=>{const T=Rr.get(u);if(T){if(a)a(T,4);else for(const H of T)H();Rr.delete(u)}},t?r?D(!0):E=u.run():i?i(D.bind(null,!0),!0):u.run(),P.pause=u.pause.bind(u),P.resume=u.resume.bind(u),P.stop=P,P}function xt(e,t=1/0,n){if(t<=0||!me(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,xe(e))xt(e.value,t,n);else if(G(e))for(let r=0;r{xt(r,t,n)});else if(nl(e)){for(const r in e)xt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&xt(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function ar(e,t,n,r){try{return r?e(...r):e()}catch(s){Kr(s,t,n)}}function at(e,t,n,r){if(Q(e)){const s=ar(e,t,n,r);return s&&el(s)&&s.catch(o=>{Kr(o,t,n)}),s}if(G(e)){const s=[];for(let o=0;o>>1,s=Be[r],o=Gn(s);o=Gn(n)?Be.push(e):Be.splice(ku(t),0,e),e.flags|=1,Tl()}}function Tl(){Ir||(Ir=Ol.then(Rl))}function Hu(e){G(e)?bn.push(...e):$t&&e.id===-1?$t.splice(gn+1,0,e):e.flags&1||(bn.push(e),e.flags|=1),Tl()}function zo(e,t,n=ft+1){for(;nGn(n)-Gn(r));if(bn.length=0,$t){$t.push(...t);return}for($t=t,gn=0;gn<$t.length;gn++){const n=$t[gn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}$t=null,gn=0}}const Gn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Rl(e){try{for(ft=0;ft{r._d&&ri(-1);const o=Mr(t);let i;try{i=e(...s)}finally{Mr(o),r._d&&ri(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Bu(e,t){if(Oe===null)return e;const n=Yr(Oe),r=e.dirs||(e.dirs=[]);for(let s=0;se.__isTeleport,jt=Symbol("_leaveCb"),_r=Symbol("_enterCb");function Nl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return zr(()=>{e.isMounted=!0}),Bl(()=>{e.isUnmounting=!0}),e}const tt=[Function,Array],Ll={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:tt,onEnter:tt,onAfterEnter:tt,onEnterCancelled:tt,onBeforeLeave:tt,onLeave:tt,onAfterLeave:tt,onLeaveCancelled:tt,onBeforeAppear:tt,onAppear:tt,onAfterAppear:tt,onAppearCancelled:tt},$l=e=>{const t=e.subTree;return t.component?$l(t.component):t},Ku={name:"BaseTransition",props:Ll,setup(e,{slots:t}){const n=_o(),r=Nl();return()=>{const s=t.default&&fo(t.default(),!0);if(!s||!s.length)return;const o=jl(s),i=oe(e),{mode:l}=i;if(r.isLeaving)return hs(o);const a=Go(o);if(!a)return hs(o);let c=Yn(a,i,r,n,m=>c=m);a.type!==Ue&&on(a,c);const u=n.subTree,f=u&&Go(u);if(f&&f.type!==Ue&&!en(a,f)&&$l(n).type!==Ue){const m=Yn(f,i,r,n);if(on(f,m),l==="out-in"&&a.type!==Ue)return r.isLeaving=!0,m.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete m.afterLeave},hs(o);l==="in-out"&&a.type!==Ue&&(m.delayLeave=(h,v,b)=>{const M=Dl(r,f);M[String(f.key)]=f,h[jt]=()=>{v(),h[jt]=void 0,delete c.delayedLeave},c.delayedLeave=b})}return o}}};function jl(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ue){t=n;break}}return t}const Wu=Ku;function Dl(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Yn(e,t,n,r,s){const{appear:o,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:m,onLeave:h,onAfterLeave:v,onLeaveCancelled:b,onBeforeAppear:M,onAppear:P,onAfterAppear:E,onAppearCancelled:D}=t,T=String(e.key),H=Dl(n,e),Z=(R,j)=>{R&&at(R,r,9,j)},$=(R,j)=>{const z=j[1];Z(R,j),G(R)?R.every(N=>N.length<=1)&&z():R.length<=1&&z()},U={mode:i,persisted:l,beforeEnter(R){let j=a;if(!n.isMounted)if(o)j=M||a;else return;R[jt]&&R[jt](!0);const z=H[T];z&&en(e,z)&&z.el[jt]&&z.el[jt](),Z(j,[R])},enter(R){let j=c,z=u,N=f;if(!n.isMounted)if(o)j=P||c,z=E||u,N=D||f;else return;let ee=!1;const be=R[_r]=Me=>{ee||(ee=!0,Me?Z(N,[R]):Z(z,[R]),U.delayedLeave&&U.delayedLeave(),R[_r]=void 0)};j?$(j,[R,be]):be()},leave(R,j){const z=String(e.key);if(R[_r]&&R[_r](!0),n.isUnmounting)return j();Z(m,[R]);let N=!1;const ee=R[jt]=be=>{N||(N=!0,j(),be?Z(b,[R]):Z(v,[R]),R[jt]=void 0,H[z]===e&&delete H[z])};H[z]=e,h?$(h,[R,ee]):ee()},clone(R){const j=Yn(R,t,n,r,s);return s&&s(j),j}};return U}function hs(e){if(Wr(e))return e=Bt(e),e.children=null,e}function Go(e){if(!Wr(e))return Ml(e.type)&&e.children?jl(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Q(n.default))return n.default()}}function on(e,t){e.shapeFlag&6&&e.component?(e.transition=t,on(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function fo(e,t=!1,n){let r=[],s=0;for(let o=0;o1)for(let o=0;oRs(v,t&&(G(t)?t[b]:t),n,r,s));return}if(wn(r)&&!s)return;const o=r.shapeFlag&4?Yr(r.component):r.el,i=s?null:o,{i:l,r:a}=e,c=t&&t.r,u=l.refs===he?l.refs={}:l.refs,f=l.setupState,m=oe(f),h=f===he?()=>!1:v=>ue(m,v);if(c!=null&&c!==a&&(we(c)?(u[c]=null,h(c)&&(f[c]=null)):xe(c)&&(c.value=null)),Q(a))ar(a,l,12,[i,u]);else{const v=we(a),b=xe(a);if(v||b){const M=()=>{if(e.f){const P=v?h(a)?f[a]:u[a]:a.value;s?G(P)&&Ys(P,o):G(P)?P.includes(o)||P.push(o):v?(u[a]=[o],h(a)&&(f[a]=u[a])):(a.value=[o],e.k&&(u[e.k]=a.value))}else v?(u[a]=i,h(a)&&(f[a]=i)):b&&(a.value=i,e.k&&(u[e.k]=i))};i?(M.id=-1,Qe(M,n)):M()}}}Br().requestIdleCallback;Br().cancelIdleCallback;const wn=e=>!!e.type.__asyncLoader,Wr=e=>e.type.__isKeepAlive;function qu(e,t){kl(e,"a",t)}function zu(e,t){kl(e,"da",t)}function kl(e,t,n=Pe){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(qr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Wr(s.parent.vnode)&&Gu(r,t,n,s),s=s.parent}}function Gu(e,t,n,r){const s=qr(t,e,r,!0);po(()=>{Ys(r[t],s)},n)}function qr(e,t,n=Pe,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Ut();const l=cr(n),a=at(t,n,e,i);return l(),Kt(),a});return r?s.unshift(o):s.push(o),o}}const Ot=e=>(t,n=Pe)=>{(!er||e==="sp")&&qr(e,(...r)=>t(...r),n)},Ju=Ot("bm"),zr=Ot("m"),Yu=Ot("bu"),Hl=Ot("u"),Bl=Ot("bum"),po=Ot("um"),Qu=Ot("sp"),Xu=Ot("rtg"),Zu=Ot("rtc");function ef(e,t=Pe){qr("ec",e,t)}const Ul="components";function gg(e,t){return Wl(Ul,e,!0,t)||e}const Kl=Symbol.for("v-ndc");function tf(e){return we(e)?Wl(Ul,e,!1)||e:e||Kl}function Wl(e,t,n=!0,r=!1){const s=Oe||Pe;if(s){const o=s.type;{const l=Kf(o,!1);if(l&&(l===t||l===st(t)||l===Hr(st(t))))return o}const i=Jo(s[e]||o[e],t)||Jo(s.appContext[e],t);return!i&&r?o:i}}function Jo(e,t){return e&&(e[t]||e[st(t)]||e[Hr(st(t))])}function Qn(e,t,n,r){let s;const o=n,i=G(e);if(i||we(e)){const l=i&&Ht(e);let a=!1;l&&(a=!nt(e),e=Ur(e)),s=new Array(e.length);for(let c=0,u=e.length;ct(l,a,void 0,o));else{const l=Object.keys(e);s=new Array(l.length);for(let a=0,c=l.length;aZn(t)?!(t.type===Ue||t.type===ye&&!ql(t.children)):!0)?e:null}const Is=e=>e?fa(e)?Yr(e):Is(e.parent):null,kn=Ae(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=>Is(e.parent),$root:e=>Is(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>go(e),$forceUpdate:e=>e.f||(e.f=()=>{uo(e.update)}),$nextTick:e=>e.n||(e.n=an.bind(e.proxy)),$watch:e=>Af.bind(e)}),gs=(e,t)=>e!==he&&!e.__isScriptSetup&&ue(e,t),nf={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const h=i[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(gs(r,t))return i[t]=1,r[t];if(s!==he&&ue(s,t))return i[t]=2,s[t];if((c=e.propsOptions[0])&&ue(c,t))return i[t]=3,o[t];if(n!==he&&ue(n,t))return i[t]=4,n[t];Ms&&(i[t]=0)}}const u=kn[t];let f,m;if(u)return t==="$attrs"&&$e(e.attrs,"get",""),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==he&&ue(n,t))return i[t]=4,n[t];if(m=a.config.globalProperties,ue(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return gs(s,t)?(s[t]=n,!0):r!==he&&ue(r,t)?(r[t]=n,!0):ue(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let l;return!!n[i]||e!==he&&ue(e,i)||gs(t,i)||(l=o[0])&&ue(l,i)||ue(r,i)||ue(kn,i)||ue(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ue(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Yo(e){return G(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ms=!0;function rf(e){const t=go(e),n=e.proxy,r=e.ctx;Ms=!1,t.beforeCreate&&Qo(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:m,beforeUpdate:h,updated:v,activated:b,deactivated:M,beforeDestroy:P,beforeUnmount:E,destroyed:D,unmounted:T,render:H,renderTracked:Z,renderTriggered:$,errorCaptured:U,serverPrefetch:R,expose:j,inheritAttrs:z,components:N,directives:ee,filters:be}=t;if(c&&sf(c,r,null),i)for(const X in i){const ie=i[X];Q(ie)&&(r[X]=ie.bind(n))}if(s){const X=s.call(n,n);ge(X)&&(e.data=lr(X))}if(Ms=!0,o)for(const X in o){const ie=o[X],ot=Q(ie)?ie.bind(n,n):Q(ie.get)?ie.get.bind(n,n):pt,re=!Q(ie)&&Q(ie.set)?ie.set.bind(n):pt,et=_e({get:ot,set:re});Object.defineProperty(r,X,{enumerable:!0,configurable:!0,get:()=>et.value,set:Ne=>et.value=Ne})}if(l)for(const X in l)zl(l[X],r,n,X);if(a){const X=Q(a)?a.call(n):a;Reflect.ownKeys(X).forEach(ie=>{Ar(ie,X[ie])})}u&&Qo(u,e,"c");function fe(X,ie){G(ie)?ie.forEach(ot=>X(ot.bind(n))):ie&&X(ie.bind(n))}if(fe(Ju,f),fe(zr,m),fe(Yu,h),fe(Hl,v),fe(qu,b),fe(zu,M),fe(ef,U),fe(Zu,Z),fe(Xu,$),fe(Bl,E),fe(po,T),fe(Qu,R),G(j))if(j.length){const X=e.exposed||(e.exposed={});j.forEach(ie=>{Object.defineProperty(X,ie,{get:()=>n[ie],set:ot=>n[ie]=ot})})}else e.exposed||(e.exposed={});H&&e.render===pt&&(e.render=H),z!=null&&(e.inheritAttrs=z),N&&(e.components=N),ee&&(e.directives=ee),R&&Vl(e)}function sf(e,t,n=pt){G(e)&&(e=Ns(e));for(const r in e){const s=e[r];let o;ge(s)?"default"in s?o=rt(s.from||r,s.default,!0):o=rt(s.from||r):o=rt(s),xe(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Qo(e,t,n){at(G(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function zl(e,t,n,r){let s=r.includes(".")?ia(n,r):()=>n[r];if(we(e)){const o=t[e];Q(o)&&Ie(s,o)}else if(Q(e))Ie(s,e.bind(n));else if(ge(e))if(G(e))e.forEach(o=>zl(o,t,n,r));else{const o=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(o)&&Ie(s,o,e)}}function go(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let a;return l?a=l:!s.length&&!n&&!r?a=t:(a={},s.length&&s.forEach(c=>Nr(a,c,i,!0)),Nr(a,t,i)),ge(t)&&o.set(t,a),a}function Nr(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Nr(e,o,n,!0),s&&s.forEach(i=>Nr(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const l=of[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const of={data:Xo,props:Zo,emits:Zo,methods:jn,computed:jn,beforeCreate:ke,created:ke,beforeMount:ke,mounted:ke,beforeUpdate:ke,updated:ke,beforeDestroy:ke,beforeUnmount:ke,destroyed:ke,unmounted:ke,activated:ke,deactivated:ke,errorCaptured:ke,serverPrefetch:ke,components:jn,directives:jn,watch:af,provide:Xo,inject:lf};function Xo(e,t){return t?e?function(){return Ae(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function lf(e,t){return jn(Ns(e),Ns(t))}function Ns(e){if(G(e)){const t={};for(let n=0;n1)return n&&Q(t)?t.call(r&&r.proxy):t}}function ff(){return!!(Pe||Oe||nn)}const Jl={},Yl=()=>Object.create(Jl),Ql=e=>Object.getPrototypeOf(e)===Jl;function df(e,t,n,r=!1){const s={},o=Yl();e.propsDefaults=Object.create(null),Xl(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:xl(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function pf(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,l=oe(s),[a]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{a=!0;const[m,h]=Zl(f,t,!0);Ae(i,m),h&&l.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return ge(e)&&r.set(e,yn),yn;if(G(o))for(let u=0;ue[0]==="_"||e==="$stable",mo=e=>G(e)?e.map(dt):[dt(e)],gf=(e,t,n)=>{if(t._n)return t;const r=Jn((...s)=>mo(t(...s)),n);return r._c=!1,r},ta=(e,t,n)=>{const r=e._ctx;for(const s in e){if(ea(s))continue;const o=e[s];if(Q(o))t[s]=gf(s,o,r);else if(o!=null){const i=mo(o);t[s]=()=>i}}},na=(e,t)=>{const n=mo(t);e.slots.default=()=>n},ra=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},mf=(e,t,n)=>{const r=e.slots=Yl();if(e.vnode.shapeFlag&32){const s=t._;s?(ra(r,t,n),n&&rl(r,"_",s,!0)):ta(t,r)}else t&&na(e,t)},vf=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=he;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:ra(s,t,n):(o=!t.$stable,ta(t,s)),i=t}else t&&(na(e,t),i={default:1});if(o)for(const l in s)!ea(l)&&i[l]==null&&delete s[l]},Qe=Mf;function yf(e){return _f(e)}function _f(e,t){const n=Br();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:m,setScopeId:h=pt,insertStaticContent:v}=e,b=(p,g,y,A=null,w=null,C=null,V=void 0,L=null,I=!!g.dynamicChildren)=>{if(p===g)return;p&&!en(p,g)&&(A=S(p),Ne(p,w,C,!0),p=null),g.patchFlag===-2&&(I=!1,g.dynamicChildren=null);const{type:O,ref:J,shapeFlag:F}=g;switch(O){case Jr:M(p,g,y,A);break;case Ue:P(p,g,y,A);break;case ys:p==null&&E(g,y,A,V);break;case ye:N(p,g,y,A,w,C,V,L,I);break;default:F&1?H(p,g,y,A,w,C,V,L,I):F&6?ee(p,g,y,A,w,C,V,L,I):(F&64||F&128)&&O.process(p,g,y,A,w,C,V,L,I,W)}J!=null&&w&&Rs(J,p&&p.ref,C,g||p,!g)},M=(p,g,y,A)=>{if(p==null)r(g.el=l(g.children),y,A);else{const w=g.el=p.el;g.children!==p.children&&c(w,g.children)}},P=(p,g,y,A)=>{p==null?r(g.el=a(g.children||""),y,A):g.el=p.el},E=(p,g,y,A)=>{[p.el,p.anchor]=v(p.children,g,y,A,p.el,p.anchor)},D=({el:p,anchor:g},y,A)=>{let w;for(;p&&p!==g;)w=m(p),r(p,y,A),p=w;r(g,y,A)},T=({el:p,anchor:g})=>{let y;for(;p&&p!==g;)y=m(p),s(p),p=y;s(g)},H=(p,g,y,A,w,C,V,L,I)=>{g.type==="svg"?V="svg":g.type==="math"&&(V="mathml"),p==null?Z(g,y,A,w,C,V,L,I):R(p,g,w,C,V,L,I)},Z=(p,g,y,A,w,C,V,L)=>{let I,O;const{props:J,shapeFlag:F,transition:K,dirs:Y}=p;if(I=p.el=i(p.type,C,J&&J.is,J),F&8?u(I,p.children):F&16&&U(p.children,I,null,A,w,ms(p,C),V,L),Y&&Jt(p,null,A,"created"),$(I,p,p.scopeId,V,A),J){for(const de in J)de!=="value"&&!Dn(de)&&o(I,de,null,J[de],C,A);"value"in J&&o(I,"value",null,J.value,C),(O=J.onVnodeBeforeMount)&&ut(O,A,p)}Y&&Jt(p,null,A,"beforeMount");const te=bf(w,K);te&&K.beforeEnter(I),r(I,g,y),((O=J&&J.onVnodeMounted)||te||Y)&&Qe(()=>{O&&ut(O,A,p),te&&K.enter(I),Y&&Jt(p,null,A,"mounted")},w)},$=(p,g,y,A,w)=>{if(y&&h(p,y),A)for(let C=0;C{for(let O=I;O{const L=g.el=p.el;let{patchFlag:I,dynamicChildren:O,dirs:J}=g;I|=p.patchFlag&16;const F=p.props||he,K=g.props||he;let Y;if(y&&Yt(y,!1),(Y=K.onVnodeBeforeUpdate)&&ut(Y,y,g,p),J&&Jt(g,p,y,"beforeUpdate"),y&&Yt(y,!0),(F.innerHTML&&K.innerHTML==null||F.textContent&&K.textContent==null)&&u(L,""),O?j(p.dynamicChildren,O,L,y,A,ms(g,w),C):V||ie(p,g,L,null,y,A,ms(g,w),C,!1),I>0){if(I&16)z(L,F,K,y,w);else if(I&2&&F.class!==K.class&&o(L,"class",null,K.class,w),I&4&&o(L,"style",F.style,K.style,w),I&8){const te=g.dynamicProps;for(let de=0;de{Y&&ut(Y,y,g,p),J&&Jt(g,p,y,"updated")},A)},j=(p,g,y,A,w,C,V)=>{for(let L=0;L{if(g!==y){if(g!==he)for(const C in g)!Dn(C)&&!(C in y)&&o(p,C,g[C],null,w,A);for(const C in y){if(Dn(C))continue;const V=y[C],L=g[C];V!==L&&C!=="value"&&o(p,C,L,V,w,A)}"value"in y&&o(p,"value",g.value,y.value,w)}},N=(p,g,y,A,w,C,V,L,I)=>{const O=g.el=p?p.el:l(""),J=g.anchor=p?p.anchor:l("");let{patchFlag:F,dynamicChildren:K,slotScopeIds:Y}=g;Y&&(L=L?L.concat(Y):Y),p==null?(r(O,y,A),r(J,y,A),U(g.children||[],y,J,w,C,V,L,I)):F>0&&F&64&&K&&p.dynamicChildren?(j(p.dynamicChildren,K,y,w,C,V,L),(g.key!=null||w&&g===w.subTree)&&sa(p,g,!0)):ie(p,g,y,J,w,C,V,L,I)},ee=(p,g,y,A,w,C,V,L,I)=>{g.slotScopeIds=L,p==null?g.shapeFlag&512?w.ctx.activate(g,y,A,V,I):be(g,y,A,w,C,V,I):Me(p,g,I)},be=(p,g,y,A,w,C,V)=>{const L=p.component=Vf(p,A,w);if(Wr(p)&&(L.ctx.renderer=W),kf(L,!1,V),L.asyncDep){if(w&&w.registerDep(L,fe,V),!p.el){const I=L.subTree=Ee(Ue);P(null,I,g,y)}}else fe(L,p,g,y,w,C,V)},Me=(p,g,y)=>{const A=g.component=p.component;if(Rf(p,g,y))if(A.asyncDep&&!A.asyncResolved){X(A,g,y);return}else A.next=g,A.update();else g.el=p.el,A.vnode=g},fe=(p,g,y,A,w,C,V)=>{const L=()=>{if(p.isMounted){let{next:F,bu:K,u:Y,parent:te,vnode:de}=p;{const Fe=oa(p);if(Fe){F&&(F.el=de.el,X(p,F,V)),Fe.asyncDep.then(()=>{p.isUnmounted||L()});return}}let ae=F,De;Yt(p,!1),F?(F.el=de.el,X(p,F,V)):F=de,K&&xr(K),(De=F.props&&F.props.onVnodeBeforeUpdate)&&ut(De,te,F,de),Yt(p,!0);const Te=vs(p),Ye=p.subTree;p.subTree=Te,b(Ye,Te,f(Ye.el),S(Ye),p,w,C),F.el=Te.el,ae===null&&If(p,Te.el),Y&&Qe(Y,w),(De=F.props&&F.props.onVnodeUpdated)&&Qe(()=>ut(De,te,F,de),w)}else{let F;const{el:K,props:Y}=g,{bm:te,m:de,parent:ae,root:De,type:Te}=p,Ye=wn(g);if(Yt(p,!1),te&&xr(te),!Ye&&(F=Y&&Y.onVnodeBeforeMount)&&ut(F,ae,g),Yt(p,!0),K&&ve){const Fe=()=>{p.subTree=vs(p),ve(K,p.subTree,p,w,null)};Ye&&Te.__asyncHydrate?Te.__asyncHydrate(K,p,Fe):Fe()}else{De.ce&&De.ce._injectChildStyle(Te);const Fe=p.subTree=vs(p);b(null,Fe,y,A,p,w,C),g.el=Fe.el}if(de&&Qe(de,w),!Ye&&(F=Y&&Y.onVnodeMounted)){const Fe=g;Qe(()=>ut(F,ae,Fe),w)}(g.shapeFlag&256||ae&&wn(ae.vnode)&&ae.vnode.shapeFlag&256)&&p.a&&Qe(p.a,w),p.isMounted=!0,g=y=A=null}};p.scope.on();const I=p.effect=new ul(L);p.scope.off();const O=p.update=I.run.bind(I),J=p.job=I.runIfDirty.bind(I);J.i=p,J.id=p.uid,I.scheduler=()=>uo(J),Yt(p,!0),O()},X=(p,g,y)=>{g.component=p;const A=p.vnode.props;p.vnode=g,p.next=null,pf(p,g.props,A,y),vf(p,g.children,y),Ut(),zo(p),Kt()},ie=(p,g,y,A,w,C,V,L,I=!1)=>{const O=p&&p.children,J=p?p.shapeFlag:0,F=g.children,{patchFlag:K,shapeFlag:Y}=g;if(K>0){if(K&128){re(O,F,y,A,w,C,V,L,I);return}else if(K&256){ot(O,F,y,A,w,C,V,L,I);return}}Y&8?(J&16&&qe(O,w,C),F!==O&&u(y,F)):J&16?Y&16?re(O,F,y,A,w,C,V,L,I):qe(O,w,C,!0):(J&8&&u(y,""),Y&16&&U(F,y,A,w,C,V,L,I))},ot=(p,g,y,A,w,C,V,L,I)=>{p=p||yn,g=g||yn;const O=p.length,J=g.length,F=Math.min(O,J);let K;for(K=0;KJ?qe(p,w,C,!0,!1,F):U(g,y,A,w,C,V,L,I,F)},re=(p,g,y,A,w,C,V,L,I)=>{let O=0;const J=g.length;let F=p.length-1,K=J-1;for(;O<=F&&O<=K;){const Y=p[O],te=g[O]=I?Dt(g[O]):dt(g[O]);if(en(Y,te))b(Y,te,y,null,w,C,V,L,I);else break;O++}for(;O<=F&&O<=K;){const Y=p[F],te=g[K]=I?Dt(g[K]):dt(g[K]);if(en(Y,te))b(Y,te,y,null,w,C,V,L,I);else break;F--,K--}if(O>F){if(O<=K){const Y=K+1,te=YK)for(;O<=F;)Ne(p[O],w,C,!0),O++;else{const Y=O,te=O,de=new Map;for(O=te;O<=K;O++){const Ve=g[O]=I?Dt(g[O]):dt(g[O]);Ve.key!=null&&de.set(Ve.key,O)}let ae,De=0;const Te=K-te+1;let Ye=!1,Fe=0;const Pt=new Array(Te);for(O=0;O=Te){Ne(Ve,w,C,!0);continue}let ze;if(Ve.key!=null)ze=de.get(Ve.key);else for(ae=te;ae<=K;ae++)if(Pt[ae-te]===0&&en(Ve,g[ae])){ze=ae;break}ze===void 0?Ne(Ve,w,C,!0):(Pt[ze-te]=O+1,ze>=Fe?Fe=ze:Ye=!0,b(Ve,g[ze],y,null,w,C,V,L,I),De++)}const fr=Ye?wf(Pt):yn;for(ae=fr.length-1,O=Te-1;O>=0;O--){const Ve=te+O,ze=g[Ve],Rt=Ve+1{const{el:C,type:V,transition:L,children:I,shapeFlag:O}=p;if(O&6){et(p.component.subTree,g,y,A);return}if(O&128){p.suspense.move(g,y,A);return}if(O&64){V.move(p,g,y,W);return}if(V===ye){r(C,g,y);for(let F=0;FL.enter(C),w);else{const{leave:F,delayLeave:K,afterLeave:Y}=L,te=()=>r(C,g,y),de=()=>{F(C,()=>{te(),Y&&Y()})};K?K(C,te,de):de()}else r(C,g,y)},Ne=(p,g,y,A=!1,w=!1)=>{const{type:C,props:V,ref:L,children:I,dynamicChildren:O,shapeFlag:J,patchFlag:F,dirs:K,cacheIndex:Y}=p;if(F===-2&&(w=!1),L!=null&&Rs(L,null,y,p,!0),Y!=null&&(g.renderCache[Y]=void 0),J&256){g.ctx.deactivate(p);return}const te=J&1&&K,de=!wn(p);let ae;if(de&&(ae=V&&V.onVnodeBeforeUnmount)&&ut(ae,g,p),J&6)Wt(p.component,y,A);else{if(J&128){p.suspense.unmount(y,A);return}te&&Jt(p,null,g,"beforeUnmount"),J&64?p.type.remove(p,g,y,W,A):O&&!O.hasOnce&&(C!==ye||F>0&&F&64)?qe(O,g,y,!1,!0):(C===ye&&F&384||!w&&J&16)&&qe(I,g,y),A&&Le(p)}(de&&(ae=V&&V.onVnodeUnmounted)||te)&&Qe(()=>{ae&&ut(ae,g,p),te&&Jt(p,null,g,"unmounted")},y)},Le=p=>{const{type:g,el:y,anchor:A,transition:w}=p;if(g===ye){gt(y,A);return}if(g===ys){T(p);return}const C=()=>{s(y),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(p.shapeFlag&1&&w&&!w.persisted){const{leave:V,delayLeave:L}=w,I=()=>V(y,C);L?L(p.el,C,I):I()}else C()},gt=(p,g)=>{let y;for(;p!==g;)y=m(p),s(p),p=y;s(g)},Wt=(p,g,y)=>{const{bum:A,scope:w,job:C,subTree:V,um:L,m:I,a:O}=p;ti(I),ti(O),A&&xr(A),w.stop(),C&&(C.flags|=8,Ne(V,p,g,y)),L&&Qe(L,g),Qe(()=>{p.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},qe=(p,g,y,A=!1,w=!1,C=0)=>{for(let V=C;V{if(p.shapeFlag&6)return S(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const g=m(p.anchor||p.el),y=g&&g[Uu];return y?m(y):g};let B=!1;const k=(p,g,y)=>{p==null?g._vnode&&Ne(g._vnode,null,null,!0):b(g._vnode||null,p,g,null,null,null,y),g._vnode=p,B||(B=!0,zo(),Pl(),B=!1)},W={p:b,um:Ne,m:et,r:Le,mt:be,mc:U,pc:ie,pbc:j,n:S,o:e};let le,ve;return{render:k,hydrate:le,createApp:uf(k,le)}}function ms({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Yt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function bf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function sa(e,t,n=!1){const r=e.children,s=t.children;if(G(r)&&G(s))for(let o=0;o>1,e[n[l]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function oa(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:oa(t)}function ti(e){if(e)for(let t=0;trt(Sf);function xf(e,t){return vo(e,null,t)}function Ie(e,t,n){return vo(e,t,n)}function vo(e,t,n=he){const{immediate:r,deep:s,flush:o,once:i}=n,l=Ae({},n),a=t&&r||!t&&o!=="post";let c;if(er){if(o==="sync"){const h=Ef();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!a){const h=()=>{};return h.stop=pt,h.resume=pt,h.pause=pt,h}}const u=Pe;l.call=(h,v,b)=>at(h,u,v,b);let f=!1;o==="post"?l.scheduler=h=>{Qe(h,u&&u.suspense)}:o!=="sync"&&(f=!0,l.scheduler=(h,v)=>{v?h():uo(h)}),l.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const m=Fu(e,t,l);return er&&(c?c.push(m):a&&m()),m}function Af(e,t,n){const r=this.proxy,s=we(e)?e.includes(".")?ia(r,e):()=>r[e]:e.bind(r,r);let o;Q(t)?o=t:(o=t.handler,n=t);const i=cr(this),l=vo(s,o.bind(r),n);return i(),l}function ia(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${st(t)}Modifiers`]||e[`${ln(t)}Modifiers`];function Of(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||he;let s=n;const o=t.startsWith("update:"),i=o&&Cf(r,t.slice(7));i&&(i.trim&&(s=n.map(u=>we(u)?u.trim():u)),i.number&&(s=n.map(Tr)));let l,a=r[l=cs(t)]||r[l=cs(st(t))];!a&&o&&(a=r[l=cs(ln(t))]),a&&at(a,e,6,s);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,at(c,e,6,s)}}function la(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},l=!1;if(!Q(e)){const a=c=>{const u=la(c,t,!0);u&&(l=!0,Ae(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(ge(e)&&r.set(e,null),null):(G(o)?o.forEach(a=>i[a]=null):Ae(i,o),ge(e)&&r.set(e,i),i)}function Gr(e,t){return!e||!Vr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ue(e,t[0].toLowerCase()+t.slice(1))||ue(e,ln(t))||ue(e,t))}function vs(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:l,emit:a,render:c,renderCache:u,props:f,data:m,setupState:h,ctx:v,inheritAttrs:b}=e,M=Mr(e);let P,E;try{if(n.shapeFlag&4){const T=s||r,H=T;P=dt(c.call(H,T,u,f,h,m,v)),E=l}else{const T=t;P=dt(T.length>1?T(f,{attrs:l,slots:i,emit:a}):T(f,null)),E=t.props?l:Tf(l)}}catch(T){Hn.length=0,Kr(T,e,1),P=Ee(Ue)}let D=P;if(E&&b!==!1){const T=Object.keys(E),{shapeFlag:H}=D;T.length&&H&7&&(o&&T.some(Js)&&(E=Pf(E,o)),D=Bt(D,E,!1,!0))}return n.dirs&&(D=Bt(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(n.dirs):n.dirs),n.transition&&on(D,n.transition),P=D,Mr(M),P}const Tf=e=>{let t;for(const n in e)(n==="class"||n==="style"||Vr(n))&&((t||(t={}))[n]=e[n]);return t},Pf=(e,t)=>{const n={};for(const r in e)(!Js(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Rf(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:l,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?ni(r,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;function Mf(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):Hu(e)}const ye=Symbol.for("v-fgt"),Jr=Symbol.for("v-txt"),Ue=Symbol.for("v-cmt"),ys=Symbol.for("v-stc"),Hn=[];let Xe=null;function se(e=!1){Hn.push(Xe=e?null:[])}function Nf(){Hn.pop(),Xe=Hn[Hn.length-1]||null}let Xn=1;function ri(e){Xn+=e,e<0&&Xe&&(Xe.hasOnce=!0)}function ca(e){return e.dynamicChildren=Xn>0?Xe||yn:null,Nf(),Xn>0&&Xe&&Xe.push(e),e}function Ce(e,t,n,r,s,o){return ca(We(e,t,n,r,s,o,!0))}function Ke(e,t,n,r,s){return ca(Ee(e,t,n,r,s,!0))}function Zn(e){return e?e.__v_isVNode===!0:!1}function en(e,t){return e.type===t.type&&e.key===t.key}const ua=({key:e})=>e??null,Cr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||xe(e)||Q(e)?{i:Oe,r:e,k:t,f:!!n}:e:null);function We(e,t=null,n=null,r=0,s=null,o=e===ye?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ua(t),ref:t&&Cr(t),scopeId:Il,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Oe};return l?(yo(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=we(n)?8:16),Xn>0&&!i&&Xe&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&Xe.push(a),a}const Ee=Lf;function Lf(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Kl)&&(e=Ue),Zn(e)){const l=Bt(e,t,!0);return n&&yo(l,n),Xn>0&&!o&&Xe&&(l.shapeFlag&6?Xe[Xe.indexOf(e)]=l:Xe.push(l)),l.patchFlag=-2,l}if(Wf(e)&&(e=e.__vccOpts),t){t=$f(t);let{class:l,style:a}=t;l&&!we(l)&&(t.class=Tn(l)),ge(a)&&(lo(a)&&!G(a)&&(a=Ae({},a)),t.style=Sn(a))}const i=we(e)?1:aa(e)?128:Ml(e)?64:ge(e)?4:Q(e)?2:0;return We(e,t,n,r,s,i,o,!0)}function $f(e){return e?lo(e)||Ql(e)?Ae({},e):e:null}function Bt(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:l,transition:a}=e,c=t?jf(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ua(c),ref:t&&t.ref?n&&o?G(o)?o.concat(Cr(t)):[o,Cr(t)]:Cr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ye?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Bt(e.ssContent),ssFallback:e.ssFallback&&Bt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&on(u,a.clone(u)),u}function Pn(e=" ",t=0){return Ee(Jr,null,e,t)}function Bn(e="",t=!1){return t?(se(),Ke(Ue,null,e)):Ee(Ue,null,e)}function dt(e){return e==null||typeof e=="boolean"?Ee(Ue):G(e)?Ee(ye,null,e.slice()):Zn(e)?Dt(e):Ee(Jr,null,String(e))}function Dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Bt(e)}function yo(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(G(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),yo(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ql(t)?t._ctx=Oe:s===3&&Oe&&(Oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Q(t)?(t={default:t,_ctx:Oe},n=32):(t=String(t),r&64?(n=16,t=[Pn(t)]):n=8);e.children=t,e.shapeFlag|=n}function jf(...e){const t={};for(let n=0;nPe||Oe;let Lr,$s;{const e=Br(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Lr=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),$s=t("__VUE_SSR_SETTERS__",n=>er=n)}const cr=e=>{const t=Pe;return Lr(e),e.scope.on(),()=>{e.scope.off(),Lr(t)}},si=()=>{Pe&&Pe.scope.off(),Lr(null)};function fa(e){return e.vnode.shapeFlag&4}let er=!1;function kf(e,t=!1,n=!1){t&&$s(t);const{props:r,children:s}=e.vnode,o=fa(e);df(e,r,o,t),mf(e,s,n);const i=o?Hf(e,t):void 0;return t&&$s(!1),i}function Hf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nf);const{setup:r}=n;if(r){Ut();const s=e.setupContext=r.length>1?Uf(e):null,o=cr(e),i=ar(r,e,0,[e.props,s]),l=el(i);if(Kt(),o(),(l||e.sp)&&!wn(e)&&Vl(e),l){if(i.then(si,si),t)return i.then(a=>{oi(e,a,t)}).catch(a=>{Kr(a,e,0)});e.asyncDep=i}else oi(e,i,t)}else da(e,t)}function oi(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Cl(t)),da(e,n)}let ii;function da(e,t,n){const r=e.type;if(!e.render){if(!t&&ii&&!r.render){const s=r.template||go(e).template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=r,c=Ae(Ae({isCustomElement:o,delimiters:l},i),a);r.render=ii(s,c)}}e.render=r.render||pt}{const s=cr(e);Ut();try{rf(e)}finally{Kt(),s()}}}const Bf={get(e,t){return $e(e,"get",""),e[t]}};function Uf(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Bf),slots:e.slots,emit:e.emit,expose:t}}function Yr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Cl(ao(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in kn)return kn[n](e)},has(t,n){return n in t||n in kn}})):e.proxy}function Kf(e,t=!0){return Q(e)?e.displayName||e.name:e.name||t&&e.__name}function Wf(e){return Q(e)&&"__vccOpts"in e}const _e=(e,t)=>ju(e,t,er);function bo(e,t,n){const r=arguments.length;return r===2?ge(t)&&!G(t)?Zn(t)?Ee(e,null,[t]):Ee(e,t):Ee(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Zn(n)&&(n=[n]),Ee(e,t,n))}const qf="3.5.12";/** +**/function ar(e,t,n,r){try{return r?e(...r):e()}catch(s){Kr(s,t,n)}}function ct(e,t,n,r){if(Q(e)){const s=ar(e,t,n,r);return s&&el(s)&&s.catch(o=>{Kr(o,t,n)}),s}if(G(e)){const s=[];for(let o=0;o>>1,s=Ke[r],o=Jn(s);o=Jn(n)?Ke.push(e):Ke.splice(ku(t),0,e),e.flags|=1,Tl()}}function Tl(){Ir||(Ir=Ol.then(Rl))}function Hu(e){G(e)?Sn.push(...e):$t&&e.id===-1?$t.splice(vn+1,0,e):e.flags&1||(Sn.push(e),e.flags|=1),Tl()}function zo(e,t,n=pt+1){for(;nJn(n)-Jn(r));if(Sn.length=0,$t){$t.push(...t);return}for($t=t,vn=0;vn<$t.length;vn++){const n=$t[vn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}$t=null,vn=0}}const Jn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Rl(e){try{for(pt=0;pt{r._d&&ri(-1);const o=Mr(t);let i;try{i=e(...s)}finally{Mr(o),r._d&&ri(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Bu(e,t){if(Oe===null)return e;const n=Yr(Oe),r=e.dirs||(e.dirs=[]);for(let s=0;se.__isTeleport,jt=Symbol("_leaveCb"),_r=Symbol("_enterCb");function Nl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return zr(()=>{e.isMounted=!0}),Bl(()=>{e.isUnmounting=!0}),e}const tt=[Function,Array],Ll={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:tt,onEnter:tt,onAfterEnter:tt,onEnterCancelled:tt,onBeforeLeave:tt,onLeave:tt,onAfterLeave:tt,onLeaveCancelled:tt,onBeforeAppear:tt,onAppear:tt,onAfterAppear:tt,onAppearCancelled:tt},$l=e=>{const t=e.subTree;return t.component?$l(t.component):t},Ku={name:"BaseTransition",props:Ll,setup(e,{slots:t}){const n=_o(),r=Nl();return()=>{const s=t.default&&fo(t.default(),!0);if(!s||!s.length)return;const o=jl(s),i=oe(e),{mode:l}=i;if(r.isLeaving)return hs(o);const a=Go(o);if(!a)return hs(o);let c=Qn(a,i,r,n,m=>c=m);a.type!==We&&on(a,c);const u=n.subTree,f=u&&Go(u);if(f&&f.type!==We&&!en(a,f)&&$l(n).type!==We){const m=Qn(f,i,r,n);if(on(f,m),l==="out-in"&&a.type!==We)return r.isLeaving=!0,m.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete m.afterLeave},hs(o);l==="in-out"&&a.type!==We&&(m.delayLeave=(h,v,b)=>{const M=Dl(r,f);M[String(f.key)]=f,h[jt]=()=>{v(),h[jt]=void 0,delete c.delayedLeave},c.delayedLeave=b})}return o}}};function jl(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==We){t=n;break}}return t}const Wu=Ku;function Dl(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Qn(e,t,n,r,s){const{appear:o,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:m,onLeave:h,onAfterLeave:v,onLeaveCancelled:b,onBeforeAppear:M,onAppear:P,onAfterAppear:E,onAppearCancelled:D}=t,T=String(e.key),H=Dl(n,e),Z=(R,j)=>{R&&ct(R,r,9,j)},$=(R,j)=>{const z=j[1];Z(R,j),G(R)?R.every(N=>N.length<=1)&&z():R.length<=1&&z()},U={mode:i,persisted:l,beforeEnter(R){let j=a;if(!n.isMounted)if(o)j=M||a;else return;R[jt]&&R[jt](!0);const z=H[T];z&&en(e,z)&&z.el[jt]&&z.el[jt](),Z(j,[R])},enter(R){let j=c,z=u,N=f;if(!n.isMounted)if(o)j=P||c,z=E||u,N=D||f;else return;let te=!1;const we=R[_r]=Ne=>{te||(te=!0,Ne?Z(N,[R]):Z(z,[R]),U.delayedLeave&&U.delayedLeave(),R[_r]=void 0)};j?$(j,[R,we]):we()},leave(R,j){const z=String(e.key);if(R[_r]&&R[_r](!0),n.isUnmounting)return j();Z(m,[R]);let N=!1;const te=R[jt]=we=>{N||(N=!0,j(),we?Z(b,[R]):Z(v,[R]),R[jt]=void 0,H[z]===e&&delete H[z])};H[z]=e,h?$(h,[R,te]):te()},clone(R){const j=Qn(R,t,n,r,s);return s&&s(j),j}};return U}function hs(e){if(Wr(e))return e=Bt(e),e.children=null,e}function Go(e){if(!Wr(e))return Ml(e.type)&&e.children?jl(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Q(n.default))return n.default()}}function on(e,t){e.shapeFlag&6&&e.component?(e.transition=t,on(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function fo(e,t=!1,n){let r=[],s=0;for(let o=0;o1)for(let o=0;oRs(v,t&&(G(t)?t[b]:t),n,r,s));return}if(En(r)&&!s)return;const o=r.shapeFlag&4?Yr(r.component):r.el,i=s?null:o,{i:l,r:a}=e,c=t&&t.r,u=l.refs===he?l.refs={}:l.refs,f=l.setupState,m=oe(f),h=f===he?()=>!1:v=>ue(m,v);if(c!=null&&c!==a&&(Se(c)?(u[c]=null,h(c)&&(f[c]=null)):xe(c)&&(c.value=null)),Q(a))ar(a,l,12,[i,u]);else{const v=Se(a),b=xe(a);if(v||b){const M=()=>{if(e.f){const P=v?h(a)?f[a]:u[a]:a.value;s?G(P)&&Ys(P,o):G(P)?P.includes(o)||P.push(o):v?(u[a]=[o],h(a)&&(f[a]=u[a])):(a.value=[o],e.k&&(u[e.k]=a.value))}else v?(u[a]=i,h(a)&&(f[a]=i)):b&&(a.value=i,e.k&&(u[e.k]=i))};i?(M.id=-1,Qe(M,n)):M()}}}Br().requestIdleCallback;Br().cancelIdleCallback;const En=e=>!!e.type.__asyncLoader,Wr=e=>e.type.__isKeepAlive;function qu(e,t){kl(e,"a",t)}function zu(e,t){kl(e,"da",t)}function kl(e,t,n=Pe){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(qr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Wr(s.parent.vnode)&&Gu(r,t,n,s),s=s.parent}}function Gu(e,t,n,r){const s=qr(t,e,r,!0);po(()=>{Ys(r[t],s)},n)}function qr(e,t,n=Pe,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Ut();const l=cr(n),a=ct(t,n,e,i);return l(),Kt(),a});return r?s.unshift(o):s.push(o),o}}const Ot=e=>(t,n=Pe)=>{(!er||e==="sp")&&qr(e,(...r)=>t(...r),n)},Ju=Ot("bm"),zr=Ot("m"),Yu=Ot("bu"),Hl=Ot("u"),Bl=Ot("bum"),po=Ot("um"),Qu=Ot("sp"),Xu=Ot("rtg"),Zu=Ot("rtc");function ef(e,t=Pe){qr("ec",e,t)}const Ul="components";function Sg(e,t){return Wl(Ul,e,!0,t)||e}const Kl=Symbol.for("v-ndc");function tf(e){return Se(e)?Wl(Ul,e,!1)||e:e||Kl}function Wl(e,t,n=!0,r=!1){const s=Oe||Pe;if(s){const o=s.type;{const l=Kf(o,!1);if(l&&(l===t||l===st(t)||l===Hr(st(t))))return o}const i=Jo(s[e]||o[e],t)||Jo(s.appContext[e],t);return!i&&r?o:i}}function Jo(e,t){return e&&(e[t]||e[st(t)]||e[Hr(st(t))])}function ln(e,t,n,r){let s;const o=n,i=G(e);if(i||Se(e)){const l=i&&Ht(e);let a=!1;l&&(a=!nt(e),e=Ur(e)),s=new Array(e.length);for(let c=0,u=e.length;ct(l,a,void 0,o));else{const l=Object.keys(e);s=new Array(l.length);for(let a=0,c=l.length;aZn(t)?!(t.type===We||t.type===ge&&!ql(t.children)):!0)?e:null}const Is=e=>e?fa(e)?Yr(e):Is(e.parent):null,Hn=Ce(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=>Is(e.parent),$root:e=>Is(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>go(e),$forceUpdate:e=>e.f||(e.f=()=>{uo(e.update)}),$nextTick:e=>e.n||(e.n=cn.bind(e.proxy)),$watch:e=>xf.bind(e)}),gs=(e,t)=>e!==he&&!e.__isScriptSetup&&ue(e,t),nf={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const h=i[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(gs(r,t))return i[t]=1,r[t];if(s!==he&&ue(s,t))return i[t]=2,s[t];if((c=e.propsOptions[0])&&ue(c,t))return i[t]=3,o[t];if(n!==he&&ue(n,t))return i[t]=4,n[t];Ms&&(i[t]=0)}}const u=Hn[t];let f,m;if(u)return t==="$attrs"&&je(e.attrs,"get",""),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==he&&ue(n,t))return i[t]=4,n[t];if(m=a.config.globalProperties,ue(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return gs(s,t)?(s[t]=n,!0):r!==he&&ue(r,t)?(r[t]=n,!0):ue(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let l;return!!n[i]||e!==he&&ue(e,i)||gs(t,i)||(l=o[0])&&ue(l,i)||ue(r,i)||ue(Hn,i)||ue(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ue(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Yo(e){return G(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ms=!0;function rf(e){const t=go(e),n=e.proxy,r=e.ctx;Ms=!1,t.beforeCreate&&Qo(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:m,beforeUpdate:h,updated:v,activated:b,deactivated:M,beforeDestroy:P,beforeUnmount:E,destroyed:D,unmounted:T,render:H,renderTracked:Z,renderTriggered:$,errorCaptured:U,serverPrefetch:R,expose:j,inheritAttrs:z,components:N,directives:te,filters:we}=t;if(c&&sf(c,r,null),i)for(const X in i){const ie=i[X];Q(ie)&&(r[X]=ie.bind(n))}if(s){const X=s.call(n,n);me(X)&&(e.data=lr(X))}if(Ms=!0,o)for(const X in o){const ie=o[X],ot=Q(ie)?ie.bind(n,n):Q(ie.get)?ie.get.bind(n,n):gt,se=!Q(ie)&&Q(ie.set)?ie.set.bind(n):gt,et=ye({get:ot,set:se});Object.defineProperty(r,X,{enumerable:!0,configurable:!0,get:()=>et.value,set:Le=>et.value=Le})}if(l)for(const X in l)zl(l[X],r,n,X);if(a){const X=Q(a)?a.call(n):a;Reflect.ownKeys(X).forEach(ie=>{xr(ie,X[ie])})}u&&Qo(u,e,"c");function fe(X,ie){G(ie)?ie.forEach(ot=>X(ot.bind(n))):ie&&X(ie.bind(n))}if(fe(Ju,f),fe(zr,m),fe(Yu,h),fe(Hl,v),fe(qu,b),fe(zu,M),fe(ef,U),fe(Zu,Z),fe(Xu,$),fe(Bl,E),fe(po,T),fe(Qu,R),G(j))if(j.length){const X=e.exposed||(e.exposed={});j.forEach(ie=>{Object.defineProperty(X,ie,{get:()=>n[ie],set:ot=>n[ie]=ot})})}else e.exposed||(e.exposed={});H&&e.render===gt&&(e.render=H),z!=null&&(e.inheritAttrs=z),N&&(e.components=N),te&&(e.directives=te),R&&Vl(e)}function sf(e,t,n=gt){G(e)&&(e=Ns(e));for(const r in e){const s=e[r];let o;me(s)?"default"in s?o=rt(s.from||r,s.default,!0):o=rt(s.from||r):o=rt(s),xe(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Qo(e,t,n){ct(G(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function zl(e,t,n,r){let s=r.includes(".")?ia(n,r):()=>n[r];if(Se(e)){const o=t[e];Q(o)&&Ie(s,o)}else if(Q(e))Ie(s,e.bind(n));else if(me(e))if(G(e))e.forEach(o=>zl(o,t,n,r));else{const o=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(o)&&Ie(s,o,e)}}function go(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let a;return l?a=l:!s.length&&!n&&!r?a=t:(a={},s.length&&s.forEach(c=>Nr(a,c,i,!0)),Nr(a,t,i)),me(t)&&o.set(t,a),a}function Nr(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Nr(e,o,n,!0),s&&s.forEach(i=>Nr(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const l=of[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const of={data:Xo,props:Zo,emits:Zo,methods:Dn,computed:Dn,beforeCreate:Be,created:Be,beforeMount:Be,mounted:Be,beforeUpdate:Be,updated:Be,beforeDestroy:Be,beforeUnmount:Be,destroyed:Be,unmounted:Be,activated:Be,deactivated:Be,errorCaptured:Be,serverPrefetch:Be,components:Dn,directives:Dn,watch:af,provide:Xo,inject:lf};function Xo(e,t){return t?e?function(){return Ce(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function lf(e,t){return Dn(Ns(e),Ns(t))}function Ns(e){if(G(e)){const t={};for(let n=0;n1)return n&&Q(t)?t.call(r&&r.proxy):t}}function ff(){return!!(Pe||Oe||nn)}const Jl={},Yl=()=>Object.create(Jl),Ql=e=>Object.getPrototypeOf(e)===Jl;function df(e,t,n,r=!1){const s={},o=Yl();e.propsDefaults=Object.create(null),Xl(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Al(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function pf(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,l=oe(s),[a]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{a=!0;const[m,h]=Zl(f,t,!0);Ce(i,m),h&&l.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return me(e)&&r.set(e,bn),bn;if(G(o))for(let u=0;ue[0]==="_"||e==="$stable",mo=e=>G(e)?e.map(ht):[ht(e)],gf=(e,t,n)=>{if(t._n)return t;const r=Yn((...s)=>mo(t(...s)),n);return r._c=!1,r},ta=(e,t,n)=>{const r=e._ctx;for(const s in e){if(ea(s))continue;const o=e[s];if(Q(o))t[s]=gf(s,o,r);else if(o!=null){const i=mo(o);t[s]=()=>i}}},na=(e,t)=>{const n=mo(t);e.slots.default=()=>n},ra=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},mf=(e,t,n)=>{const r=e.slots=Yl();if(e.vnode.shapeFlag&32){const s=t._;s?(ra(r,t,n),n&&rl(r,"_",s,!0)):ta(t,r)}else t&&na(e,t)},vf=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=he;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:ra(s,t,n):(o=!t.$stable,ta(t,s)),i=t}else t&&(na(e,t),i={default:1});if(o)for(const l in s)!ea(l)&&i[l]==null&&delete s[l]},Qe=Mf;function yf(e){return _f(e)}function _f(e,t){const n=Br();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:m,setScopeId:h=gt,insertStaticContent:v}=e,b=(p,g,y,x=null,w=null,C=null,V=void 0,L=null,I=!!g.dynamicChildren)=>{if(p===g)return;p&&!en(p,g)&&(x=S(p),Le(p,w,C,!0),p=null),g.patchFlag===-2&&(I=!1,g.dynamicChildren=null);const{type:O,ref:J,shapeFlag:F}=g;switch(O){case Jr:M(p,g,y,x);break;case We:P(p,g,y,x);break;case ys:p==null&&E(g,y,x,V);break;case ge:N(p,g,y,x,w,C,V,L,I);break;default:F&1?H(p,g,y,x,w,C,V,L,I):F&6?te(p,g,y,x,w,C,V,L,I):(F&64||F&128)&&O.process(p,g,y,x,w,C,V,L,I,W)}J!=null&&w&&Rs(J,p&&p.ref,C,g||p,!g)},M=(p,g,y,x)=>{if(p==null)r(g.el=l(g.children),y,x);else{const w=g.el=p.el;g.children!==p.children&&c(w,g.children)}},P=(p,g,y,x)=>{p==null?r(g.el=a(g.children||""),y,x):g.el=p.el},E=(p,g,y,x)=>{[p.el,p.anchor]=v(p.children,g,y,x,p.el,p.anchor)},D=({el:p,anchor:g},y,x)=>{let w;for(;p&&p!==g;)w=m(p),r(p,y,x),p=w;r(g,y,x)},T=({el:p,anchor:g})=>{let y;for(;p&&p!==g;)y=m(p),s(p),p=y;s(g)},H=(p,g,y,x,w,C,V,L,I)=>{g.type==="svg"?V="svg":g.type==="math"&&(V="mathml"),p==null?Z(g,y,x,w,C,V,L,I):R(p,g,w,C,V,L,I)},Z=(p,g,y,x,w,C,V,L)=>{let I,O;const{props:J,shapeFlag:F,transition:K,dirs:Y}=p;if(I=p.el=i(p.type,C,J&&J.is,J),F&8?u(I,p.children):F&16&&U(p.children,I,null,x,w,ms(p,C),V,L),Y&&Jt(p,null,x,"created"),$(I,p,p.scopeId,V,x),J){for(const de in J)de!=="value"&&!Fn(de)&&o(I,de,null,J[de],C,x);"value"in J&&o(I,"value",null,J.value,C),(O=J.onVnodeBeforeMount)&&dt(O,x,p)}Y&&Jt(p,null,x,"beforeMount");const re=bf(w,K);re&&K.beforeEnter(I),r(I,g,y),((O=J&&J.onVnodeMounted)||re||Y)&&Qe(()=>{O&&dt(O,x,p),re&&K.enter(I),Y&&Jt(p,null,x,"mounted")},w)},$=(p,g,y,x,w)=>{if(y&&h(p,y),x)for(let C=0;C{for(let O=I;O{const L=g.el=p.el;let{patchFlag:I,dynamicChildren:O,dirs:J}=g;I|=p.patchFlag&16;const F=p.props||he,K=g.props||he;let Y;if(y&&Yt(y,!1),(Y=K.onVnodeBeforeUpdate)&&dt(Y,y,g,p),J&&Jt(g,p,y,"beforeUpdate"),y&&Yt(y,!0),(F.innerHTML&&K.innerHTML==null||F.textContent&&K.textContent==null)&&u(L,""),O?j(p.dynamicChildren,O,L,y,x,ms(g,w),C):V||ie(p,g,L,null,y,x,ms(g,w),C,!1),I>0){if(I&16)z(L,F,K,y,w);else if(I&2&&F.class!==K.class&&o(L,"class",null,K.class,w),I&4&&o(L,"style",F.style,K.style,w),I&8){const re=g.dynamicProps;for(let de=0;de{Y&&dt(Y,y,g,p),J&&Jt(g,p,y,"updated")},x)},j=(p,g,y,x,w,C,V)=>{for(let L=0;L{if(g!==y){if(g!==he)for(const C in g)!Fn(C)&&!(C in y)&&o(p,C,g[C],null,w,x);for(const C in y){if(Fn(C))continue;const V=y[C],L=g[C];V!==L&&C!=="value"&&o(p,C,L,V,w,x)}"value"in y&&o(p,"value",g.value,y.value,w)}},N=(p,g,y,x,w,C,V,L,I)=>{const O=g.el=p?p.el:l(""),J=g.anchor=p?p.anchor:l("");let{patchFlag:F,dynamicChildren:K,slotScopeIds:Y}=g;Y&&(L=L?L.concat(Y):Y),p==null?(r(O,y,x),r(J,y,x),U(g.children||[],y,J,w,C,V,L,I)):F>0&&F&64&&K&&p.dynamicChildren?(j(p.dynamicChildren,K,y,w,C,V,L),(g.key!=null||w&&g===w.subTree)&&sa(p,g,!0)):ie(p,g,y,J,w,C,V,L,I)},te=(p,g,y,x,w,C,V,L,I)=>{g.slotScopeIds=L,p==null?g.shapeFlag&512?w.ctx.activate(g,y,x,V,I):we(g,y,x,w,C,V,I):Ne(p,g,I)},we=(p,g,y,x,w,C,V)=>{const L=p.component=Vf(p,x,w);if(Wr(p)&&(L.ctx.renderer=W),kf(L,!1,V),L.asyncDep){if(w&&w.registerDep(L,fe,V),!p.el){const I=L.subTree=Ae(We);P(null,I,g,y)}}else fe(L,p,g,y,w,C,V)},Ne=(p,g,y)=>{const x=g.component=p.component;if(Rf(p,g,y))if(x.asyncDep&&!x.asyncResolved){X(x,g,y);return}else x.next=g,x.update();else g.el=p.el,x.vnode=g},fe=(p,g,y,x,w,C,V)=>{const L=()=>{if(p.isMounted){let{next:F,bu:K,u:Y,parent:re,vnode:de}=p;{const ke=oa(p);if(ke){F&&(F.el=de.el,X(p,F,V)),ke.asyncDep.then(()=>{p.isUnmounted||L()});return}}let ae=F,Ve;Yt(p,!1),F?(F.el=de.el,X(p,F,V)):F=de,K&&Ar(K),(Ve=F.props&&F.props.onVnodeBeforeUpdate)&&dt(Ve,re,F,de),Yt(p,!0);const Te=vs(p),Ye=p.subTree;p.subTree=Te,b(Ye,Te,f(Ye.el),S(Ye),p,w,C),F.el=Te.el,ae===null&&If(p,Te.el),Y&&Qe(Y,w),(Ve=F.props&&F.props.onVnodeUpdated)&&Qe(()=>dt(Ve,re,F,de),w)}else{let F;const{el:K,props:Y}=g,{bm:re,m:de,parent:ae,root:Ve,type:Te}=p,Ye=En(g);if(Yt(p,!1),re&&Ar(re),!Ye&&(F=Y&&Y.onVnodeBeforeMount)&&dt(F,ae,g),Yt(p,!0),K&&_e){const ke=()=>{p.subTree=vs(p),_e(K,p.subTree,p,w,null)};Ye&&Te.__asyncHydrate?Te.__asyncHydrate(K,p,ke):ke()}else{Ve.ce&&Ve.ce._injectChildStyle(Te);const ke=p.subTree=vs(p);b(null,ke,y,x,p,w,C),g.el=ke.el}if(de&&Qe(de,w),!Ye&&(F=Y&&Y.onVnodeMounted)){const ke=g;Qe(()=>dt(F,ae,ke),w)}(g.shapeFlag&256||ae&&En(ae.vnode)&&ae.vnode.shapeFlag&256)&&p.a&&Qe(p.a,w),p.isMounted=!0,g=y=x=null}};p.scope.on();const I=p.effect=new ul(L);p.scope.off();const O=p.update=I.run.bind(I),J=p.job=I.runIfDirty.bind(I);J.i=p,J.id=p.uid,I.scheduler=()=>uo(J),Yt(p,!0),O()},X=(p,g,y)=>{g.component=p;const x=p.vnode.props;p.vnode=g,p.next=null,pf(p,g.props,x,y),vf(p,g.children,y),Ut(),zo(p),Kt()},ie=(p,g,y,x,w,C,V,L,I=!1)=>{const O=p&&p.children,J=p?p.shapeFlag:0,F=g.children,{patchFlag:K,shapeFlag:Y}=g;if(K>0){if(K&128){se(O,F,y,x,w,C,V,L,I);return}else if(K&256){ot(O,F,y,x,w,C,V,L,I);return}}Y&8?(J&16&&qe(O,w,C),F!==O&&u(y,F)):J&16?Y&16?se(O,F,y,x,w,C,V,L,I):qe(O,w,C,!0):(J&8&&u(y,""),Y&16&&U(F,y,x,w,C,V,L,I))},ot=(p,g,y,x,w,C,V,L,I)=>{p=p||bn,g=g||bn;const O=p.length,J=g.length,F=Math.min(O,J);let K;for(K=0;KJ?qe(p,w,C,!0,!1,F):U(g,y,x,w,C,V,L,I,F)},se=(p,g,y,x,w,C,V,L,I)=>{let O=0;const J=g.length;let F=p.length-1,K=J-1;for(;O<=F&&O<=K;){const Y=p[O],re=g[O]=I?Dt(g[O]):ht(g[O]);if(en(Y,re))b(Y,re,y,null,w,C,V,L,I);else break;O++}for(;O<=F&&O<=K;){const Y=p[F],re=g[K]=I?Dt(g[K]):ht(g[K]);if(en(Y,re))b(Y,re,y,null,w,C,V,L,I);else break;F--,K--}if(O>F){if(O<=K){const Y=K+1,re=YK)for(;O<=F;)Le(p[O],w,C,!0),O++;else{const Y=O,re=O,de=new Map;for(O=re;O<=K;O++){const He=g[O]=I?Dt(g[O]):ht(g[O]);He.key!=null&&de.set(He.key,O)}let ae,Ve=0;const Te=K-re+1;let Ye=!1,ke=0;const Pt=new Array(Te);for(O=0;O=Te){Le(He,w,C,!0);continue}let ze;if(He.key!=null)ze=de.get(He.key);else for(ae=re;ae<=K;ae++)if(Pt[ae-re]===0&&en(He,g[ae])){ze=ae;break}ze===void 0?Le(He,w,C,!0):(Pt[ze-re]=O+1,ze>=ke?ke=ze:Ye=!0,b(He,g[ze],y,null,w,C,V,L,I),Ve++)}const fr=Ye?wf(Pt):bn;for(ae=fr.length-1,O=Te-1;O>=0;O--){const He=re+O,ze=g[He],Rt=He+1{const{el:C,type:V,transition:L,children:I,shapeFlag:O}=p;if(O&6){et(p.component.subTree,g,y,x);return}if(O&128){p.suspense.move(g,y,x);return}if(O&64){V.move(p,g,y,W);return}if(V===ge){r(C,g,y);for(let F=0;FL.enter(C),w);else{const{leave:F,delayLeave:K,afterLeave:Y}=L,re=()=>r(C,g,y),de=()=>{F(C,()=>{re(),Y&&Y()})};K?K(C,re,de):de()}else r(C,g,y)},Le=(p,g,y,x=!1,w=!1)=>{const{type:C,props:V,ref:L,children:I,dynamicChildren:O,shapeFlag:J,patchFlag:F,dirs:K,cacheIndex:Y}=p;if(F===-2&&(w=!1),L!=null&&Rs(L,null,y,p,!0),Y!=null&&(g.renderCache[Y]=void 0),J&256){g.ctx.deactivate(p);return}const re=J&1&&K,de=!En(p);let ae;if(de&&(ae=V&&V.onVnodeBeforeUnmount)&&dt(ae,g,p),J&6)Wt(p.component,y,x);else{if(J&128){p.suspense.unmount(y,x);return}re&&Jt(p,null,g,"beforeUnmount"),J&64?p.type.remove(p,g,y,W,x):O&&!O.hasOnce&&(C!==ge||F>0&&F&64)?qe(O,g,y,!1,!0):(C===ge&&F&384||!w&&J&16)&&qe(I,g,y),x&&$e(p)}(de&&(ae=V&&V.onVnodeUnmounted)||re)&&Qe(()=>{ae&&dt(ae,g,p),re&&Jt(p,null,g,"unmounted")},y)},$e=p=>{const{type:g,el:y,anchor:x,transition:w}=p;if(g===ge){mt(y,x);return}if(g===ys){T(p);return}const C=()=>{s(y),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(p.shapeFlag&1&&w&&!w.persisted){const{leave:V,delayLeave:L}=w,I=()=>V(y,C);L?L(p.el,C,I):I()}else C()},mt=(p,g)=>{let y;for(;p!==g;)y=m(p),s(p),p=y;s(g)},Wt=(p,g,y)=>{const{bum:x,scope:w,job:C,subTree:V,um:L,m:I,a:O}=p;ti(I),ti(O),x&&Ar(x),w.stop(),C&&(C.flags|=8,Le(V,p,g,y)),L&&Qe(L,g),Qe(()=>{p.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},qe=(p,g,y,x=!1,w=!1,C=0)=>{for(let V=C;V{if(p.shapeFlag&6)return S(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const g=m(p.anchor||p.el),y=g&&g[Uu];return y?m(y):g};let B=!1;const k=(p,g,y)=>{p==null?g._vnode&&Le(g._vnode,null,null,!0):b(g._vnode||null,p,g,null,null,null,y),g._vnode=p,B||(B=!0,zo(),Pl(),B=!1)},W={p:b,um:Le,m:et,r:$e,mt:we,mc:U,pc:ie,pbc:j,n:S,o:e};let le,_e;return{render:k,hydrate:le,createApp:uf(k,le)}}function ms({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Yt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function bf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function sa(e,t,n=!1){const r=e.children,s=t.children;if(G(r)&&G(s))for(let o=0;o>1,e[n[l]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function oa(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:oa(t)}function ti(e){if(e)for(let t=0;trt(Sf);function Af(e,t){return vo(e,null,t)}function Ie(e,t,n){return vo(e,t,n)}function vo(e,t,n=he){const{immediate:r,deep:s,flush:o,once:i}=n,l=Ce({},n),a=t&&r||!t&&o!=="post";let c;if(er){if(o==="sync"){const h=Ef();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!a){const h=()=>{};return h.stop=gt,h.resume=gt,h.pause=gt,h}}const u=Pe;l.call=(h,v,b)=>ct(h,u,v,b);let f=!1;o==="post"?l.scheduler=h=>{Qe(h,u&&u.suspense)}:o!=="sync"&&(f=!0,l.scheduler=(h,v)=>{v?h():uo(h)}),l.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const m=Fu(e,t,l);return er&&(c?c.push(m):a&&m()),m}function xf(e,t,n){const r=this.proxy,s=Se(e)?e.includes(".")?ia(r,e):()=>r[e]:e.bind(r,r);let o;Q(t)?o=t:(o=t.handler,n=t);const i=cr(this),l=vo(s,o.bind(r),n);return i(),l}function ia(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${st(t)}Modifiers`]||e[`${an(t)}Modifiers`];function Of(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||he;let s=n;const o=t.startsWith("update:"),i=o&&Cf(r,t.slice(7));i&&(i.trim&&(s=n.map(u=>Se(u)?u.trim():u)),i.number&&(s=n.map(Tr)));let l,a=r[l=cs(t)]||r[l=cs(st(t))];!a&&o&&(a=r[l=cs(an(t))]),a&&ct(a,e,6,s);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ct(c,e,6,s)}}function la(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},l=!1;if(!Q(e)){const a=c=>{const u=la(c,t,!0);u&&(l=!0,Ce(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(me(e)&&r.set(e,null),null):(G(o)?o.forEach(a=>i[a]=null):Ce(i,o),me(e)&&r.set(e,i),i)}function Gr(e,t){return!e||!Vr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ue(e,t[0].toLowerCase()+t.slice(1))||ue(e,an(t))||ue(e,t))}function vs(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:l,emit:a,render:c,renderCache:u,props:f,data:m,setupState:h,ctx:v,inheritAttrs:b}=e,M=Mr(e);let P,E;try{if(n.shapeFlag&4){const T=s||r,H=T;P=ht(c.call(H,T,u,f,h,m,v)),E=l}else{const T=t;P=ht(T.length>1?T(f,{attrs:l,slots:i,emit:a}):T(f,null)),E=t.props?l:Tf(l)}}catch(T){Bn.length=0,Kr(T,e,1),P=Ae(We)}let D=P;if(E&&b!==!1){const T=Object.keys(E),{shapeFlag:H}=D;T.length&&H&7&&(o&&T.some(Js)&&(E=Pf(E,o)),D=Bt(D,E,!1,!0))}return n.dirs&&(D=Bt(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(n.dirs):n.dirs),n.transition&&on(D,n.transition),P=D,Mr(M),P}const Tf=e=>{let t;for(const n in e)(n==="class"||n==="style"||Vr(n))&&((t||(t={}))[n]=e[n]);return t},Pf=(e,t)=>{const n={};for(const r in e)(!Js(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Rf(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:l,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?ni(r,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;function Mf(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):Hu(e)}const ge=Symbol.for("v-fgt"),Jr=Symbol.for("v-txt"),We=Symbol.for("v-cmt"),ys=Symbol.for("v-stc"),Bn=[];let Xe=null;function ee(e=!1){Bn.push(Xe=e?null:[])}function Nf(){Bn.pop(),Xe=Bn[Bn.length-1]||null}let Xn=1;function ri(e){Xn+=e,e<0&&Xe&&(Xe.hasOnce=!0)}function ca(e){return e.dynamicChildren=Xn>0?Xe||bn:null,Nf(),Xn>0&&Xe&&Xe.push(e),e}function be(e,t,n,r,s,o){return ca(Me(e,t,n,r,s,o,!0))}function Fe(e,t,n,r,s){return ca(Ae(e,t,n,r,s,!0))}function Zn(e){return e?e.__v_isVNode===!0:!1}function en(e,t){return e.type===t.type&&e.key===t.key}const ua=({key:e})=>e??null,Cr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Se(e)||xe(e)||Q(e)?{i:Oe,r:e,k:t,f:!!n}:e:null);function Me(e,t=null,n=null,r=0,s=null,o=e===ge?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ua(t),ref:t&&Cr(t),scopeId:Il,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Oe};return l?(yo(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=Se(n)?8:16),Xn>0&&!i&&Xe&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&Xe.push(a),a}const Ae=Lf;function Lf(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Kl)&&(e=We),Zn(e)){const l=Bt(e,t,!0);return n&&yo(l,n),Xn>0&&!o&&Xe&&(l.shapeFlag&6?Xe[Xe.indexOf(e)]=l:Xe.push(l)),l.patchFlag=-2,l}if(Wf(e)&&(e=e.__vccOpts),t){t=$f(t);let{class:l,style:a}=t;l&&!Se(l)&&(t.class=Rn(l)),me(a)&&(lo(a)&&!G(a)&&(a=Ce({},a)),t.style=An(a))}const i=Se(e)?1:aa(e)?128:Ml(e)?64:me(e)?4:Q(e)?2:0;return Me(e,t,n,r,s,i,o,!0)}function $f(e){return e?lo(e)||Ql(e)?Ce({},e):e:null}function Bt(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:l,transition:a}=e,c=t?jf(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ua(c),ref:t&&t.ref?n&&o?G(o)?o.concat(Cr(t)):[o,Cr(t)]:Cr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Bt(e.ssContent),ssFallback:e.ssFallback&&Bt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&on(u,a.clone(u)),u}function un(e=" ",t=0){return Ae(Jr,null,e,t)}function Un(e="",t=!1){return t?(ee(),Fe(We,null,e)):Ae(We,null,e)}function ht(e){return e==null||typeof e=="boolean"?Ae(We):G(e)?Ae(ge,null,e.slice()):Zn(e)?Dt(e):Ae(Jr,null,String(e))}function Dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Bt(e)}function yo(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(G(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),yo(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ql(t)?t._ctx=Oe:s===3&&Oe&&(Oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Q(t)?(t={default:t,_ctx:Oe},n=32):(t=String(t),r&64?(n=16,t=[un(t)]):n=8);e.children=t,e.shapeFlag|=n}function jf(...e){const t={};for(let n=0;nPe||Oe;let Lr,$s;{const e=Br(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Lr=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),$s=t("__VUE_SSR_SETTERS__",n=>er=n)}const cr=e=>{const t=Pe;return Lr(e),e.scope.on(),()=>{e.scope.off(),Lr(t)}},si=()=>{Pe&&Pe.scope.off(),Lr(null)};function fa(e){return e.vnode.shapeFlag&4}let er=!1;function kf(e,t=!1,n=!1){t&&$s(t);const{props:r,children:s}=e.vnode,o=fa(e);df(e,r,o,t),mf(e,s,n);const i=o?Hf(e,t):void 0;return t&&$s(!1),i}function Hf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nf);const{setup:r}=n;if(r){Ut();const s=e.setupContext=r.length>1?Uf(e):null,o=cr(e),i=ar(r,e,0,[e.props,s]),l=el(i);if(Kt(),o(),(l||e.sp)&&!En(e)&&Vl(e),l){if(i.then(si,si),t)return i.then(a=>{oi(e,a,t)}).catch(a=>{Kr(a,e,0)});e.asyncDep=i}else oi(e,i,t)}else da(e,t)}function oi(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:me(t)&&(e.setupState=Cl(t)),da(e,n)}let ii;function da(e,t,n){const r=e.type;if(!e.render){if(!t&&ii&&!r.render){const s=r.template||go(e).template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=r,c=Ce(Ce({isCustomElement:o,delimiters:l},i),a);r.render=ii(s,c)}}e.render=r.render||gt}{const s=cr(e);Ut();try{rf(e)}finally{Kt(),s()}}}const Bf={get(e,t){return je(e,"get",""),e[t]}};function Uf(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Bf),slots:e.slots,emit:e.emit,expose:t}}function Yr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Cl(ao(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Hn)return Hn[n](e)},has(t,n){return n in t||n in Hn}})):e.proxy}function Kf(e,t=!0){return Q(e)?e.displayName||e.name:e.name||t&&e.__name}function Wf(e){return Q(e)&&"__vccOpts"in e}const ye=(e,t)=>ju(e,t,er);function bo(e,t,n){const r=arguments.length;return r===2?me(t)&&!G(t)?Zn(t)?Ae(e,null,[t]):Ae(e,t):Ae(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Zn(n)&&(n=[n]),Ae(e,t,n))}const qf="3.5.12";/** * @vue/runtime-dom v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let js;const li=typeof window<"u"&&window.trustedTypes;if(li)try{js=li.createPolicy("vue",{createHTML:e=>e})}catch{}const pa=js?e=>js.createHTML(e):e=>e,zf="http://www.w3.org/2000/svg",Gf="http://www.w3.org/1998/Math/MathML",wt=typeof document<"u"?document:null,ai=wt&&wt.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,r)=>{const s=t==="svg"?wt.createElementNS(zf,e):t==="mathml"?wt.createElementNS(Gf,e):n?wt.createElement(e,{is:n}):wt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>wt.createTextNode(e),createComment:e=>wt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{ai.innerHTML=pa(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const l=ai.content;if(r==="svg"||r==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},It="transition",Nn="animation",En=Symbol("_vtc"),ha={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ga=Ae({},Ll,ha),Yf=e=>(e.displayName="Transition",e.props=ga,e),mg=Yf((e,{slots:t})=>bo(Wu,ma(e),t)),Qt=(e,t=[])=>{G(e)?e.forEach(n=>n(...t)):e&&e(...t)},ci=e=>e?G(e)?e.some(t=>t.length>1):e.length>1:!1;function ma(e){const t={};for(const N in e)N in ha||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=o,appearActiveClass:c=i,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=Qf(s),b=v&&v[0],M=v&&v[1],{onBeforeEnter:P,onEnter:E,onEnterCancelled:D,onLeave:T,onLeaveCancelled:H,onBeforeAppear:Z=P,onAppear:$=E,onAppearCancelled:U=D}=t,R=(N,ee,be)=>{Nt(N,ee?u:l),Nt(N,ee?c:i),be&&be()},j=(N,ee)=>{N._isLeaving=!1,Nt(N,f),Nt(N,h),Nt(N,m),ee&&ee()},z=N=>(ee,be)=>{const Me=N?$:E,fe=()=>R(ee,N,be);Qt(Me,[ee,fe]),ui(()=>{Nt(ee,N?a:o),bt(ee,N?u:l),ci(Me)||fi(ee,r,b,fe)})};return Ae(t,{onBeforeEnter(N){Qt(P,[N]),bt(N,o),bt(N,i)},onBeforeAppear(N){Qt(Z,[N]),bt(N,a),bt(N,c)},onEnter:z(!1),onAppear:z(!0),onLeave(N,ee){N._isLeaving=!0;const be=()=>j(N,ee);bt(N,f),bt(N,m),ya(),ui(()=>{N._isLeaving&&(Nt(N,f),bt(N,h),ci(T)||fi(N,r,M,be))}),Qt(T,[N,be])},onEnterCancelled(N){R(N,!1),Qt(D,[N])},onAppearCancelled(N){R(N,!0),Qt(U,[N])},onLeaveCancelled(N){j(N),Qt(H,[N])}})}function Qf(e){if(e==null)return null;if(ge(e))return[_s(e.enter),_s(e.leave)];{const t=_s(e);return[t,t]}}function _s(e){return ru(e)}function bt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[En]||(e[En]=new Set)).add(t)}function Nt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[En];n&&(n.delete(t),n.size||(e[En]=void 0))}function ui(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Xf=0;function fi(e,t,n,r){const s=e._endId=++Xf,o=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:l,propCount:a}=va(e,t);if(!i)return r();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,m),o()},m=h=>{h.target===e&&++u>=a&&f()};setTimeout(()=>{u(n[v]||"").split(", "),s=r(`${It}Delay`),o=r(`${It}Duration`),i=di(s,o),l=r(`${Nn}Delay`),a=r(`${Nn}Duration`),c=di(l,a);let u=null,f=0,m=0;t===It?i>0&&(u=It,f=i,m=o.length):t===Nn?c>0&&(u=Nn,f=c,m=a.length):(f=Math.max(i,c),u=f>0?i>c?It:Nn:null,m=u?u===It?o.length:a.length:0);const h=u===It&&/\b(transform|all)(,|$)/.test(r(`${It}Property`).toString());return{type:u,timeout:f,propCount:m,hasTransform:h}}function di(e,t){for(;e.lengthpi(n)+pi(e[r])))}function pi(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ya(){return document.body.offsetHeight}function Zf(e,t,n){const r=e[En];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const hi=Symbol("_vod"),ed=Symbol("_vsh"),td=Symbol(""),nd=/(^|;)\s*display\s*:/;function rd(e,t,n){const r=e.style,s=we(n);let o=!1;if(n&&!s){if(t)if(we(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&Or(r,l,"")}else for(const i in t)n[i]==null&&Or(r,i,"");for(const i in n)i==="display"&&(o=!0),Or(r,i,n[i])}else if(s){if(t!==n){const i=r[td];i&&(n+=";"+i),r.cssText=n,o=nd.test(n)}}else t&&e.removeAttribute("style");hi in e&&(e[hi]=o?r.display:"",e[ed]&&(r.display="none"))}const gi=/\s*!important$/;function Or(e,t,n){if(G(n))n.forEach(r=>Or(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=sd(e,t);gi.test(n)?e.setProperty(ln(r),n.replace(gi,""),"important"):e[r]=n}}const mi=["Webkit","Moz","ms"],bs={};function sd(e,t){const n=bs[t];if(n)return n;let r=st(t);if(r!=="filter"&&r in e)return bs[t]=r;r=Hr(r);for(let s=0;sws||(ad.then(()=>ws=0),ws=Date.now());function ud(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;at(fd(r,n.value),t,5,[r])};return n.value=e,n.attached=cd(),n}function fd(e,t){if(G(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Si=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,dd=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?Zf(e,r,i):t==="style"?rd(e,n,r):Vr(t)?Js(t)||id(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pd(e,t,r,i))?(_i(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&yi(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!we(r))?_i(e,st(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),yi(e,t,r,i))};function pd(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Si(t)&&Q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Si(t)&&we(n)?!1:t in e}const _a=new WeakMap,ba=new WeakMap,$r=Symbol("_moveCb"),Ei=Symbol("_enterCb"),hd=e=>(delete e.props.mode,e),gd=hd({name:"TransitionGroup",props:Ae({},ga,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=_o(),r=Nl();let s,o;return Hl(()=>{if(!s.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!_d(s[0].el,n.vnode.el,i))return;s.forEach(md),s.forEach(vd);const l=s.filter(yd);ya(),l.forEach(a=>{const c=a.el,u=c.style;bt(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const f=c[$r]=m=>{m&&m.target!==c||(!m||/transform$/.test(m.propertyName))&&(c.removeEventListener("transitionend",f),c[$r]=null,Nt(c,i))};c.addEventListener("transitionend",f)})}),()=>{const i=oe(e),l=ma(i);let a=i.tag||ye;if(s=[],o)for(let c=0;c{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=va(r);return o.removeChild(r),i}const xn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return G(t)?n=>xr(t,n):t};function bd(e){e.target.composing=!0}function xi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const At=Symbol("_assign"),wd={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[At]=xn(s);const o=r||s.props&&s.props.type==="number";Vt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=Tr(l)),e[At](l)}),n&&Vt(e,"change",()=>{e.value=e.value.trim()}),t||(Vt(e,"compositionstart",bd),Vt(e,"compositionend",xi),Vt(e,"change",xi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:o}},i){if(e[At]=xn(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?Tr(e.value):e.value,a=t??"";l!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===a)||(e.value=a))}},yg={deep:!0,created(e,t,n){e[At]=xn(n),Vt(e,"change",()=>{const r=e._modelValue,s=tr(e),o=e.checked,i=e[At];if(G(r)){const l=Xs(r,s),a=l!==-1;if(o&&!a)i(r.concat(s));else if(!o&&a){const c=[...r];c.splice(l,1),i(c)}}else if(On(r)){const l=new Set(r);o?l.add(s):l.delete(s),i(l)}else i(wa(e,o))})},mounted:Ai,beforeUpdate(e,t,n){e[At]=xn(n),Ai(e,t,n)}};function Ai(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(G(t))s=Xs(t,r.props.value)>-1;else if(On(t))s=t.has(r.props.value);else{if(t===n)return;s=ir(t,wa(e,!0))}e.checked!==s&&(e.checked=s)}const _g={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=On(t);Vt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?Tr(tr(i)):tr(i));e[At](e.multiple?s?new Set(o):o:o[0]),e._assigning=!0,an(()=>{e._assigning=!1})}),e[At]=xn(r)},mounted(e,{value:t}){Ci(e,t)},beforeUpdate(e,t,n){e[At]=xn(n)},updated(e,{value:t}){e._assigning||Ci(e,t)}};function Ci(e,t){const n=e.multiple,r=G(t);if(!(n&&!r&&!On(t))){for(let s=0,o=e.options.length;sString(c)===String(l)):i.selected=Xs(t,l)>-1}else i.selected=t.has(l);else if(ir(tr(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function tr(e){return"_value"in e?e._value:e.value}function wa(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Sd=["ctrl","shift","alt","meta"],Ed={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Sd.some(n=>e[`${n}Key`]&&!t.includes(n))},Sa=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...o)=>{for(let i=0;i{const t=Ad().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Td(r);if(!s)return;const o=t._component;!Q(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,Od(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t};function Od(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Td(e){return we(e)?document.querySelector(e):e}var Pd=!1;/*! +**/let js;const li=typeof window<"u"&&window.trustedTypes;if(li)try{js=li.createPolicy("vue",{createHTML:e=>e})}catch{}const pa=js?e=>js.createHTML(e):e=>e,zf="http://www.w3.org/2000/svg",Gf="http://www.w3.org/1998/Math/MathML",St=typeof document<"u"?document:null,ai=St&&St.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,r)=>{const s=t==="svg"?St.createElementNS(zf,e):t==="mathml"?St.createElementNS(Gf,e):n?St.createElement(e,{is:n}):St.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>St.createTextNode(e),createComment:e=>St.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>St.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{ai.innerHTML=pa(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const l=ai.content;if(r==="svg"||r==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},It="transition",Ln="animation",xn=Symbol("_vtc"),ha={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ga=Ce({},Ll,ha),Yf=e=>(e.displayName="Transition",e.props=ga,e),Eg=Yf((e,{slots:t})=>bo(Wu,ma(e),t)),Qt=(e,t=[])=>{G(e)?e.forEach(n=>n(...t)):e&&e(...t)},ci=e=>e?G(e)?e.some(t=>t.length>1):e.length>1:!1;function ma(e){const t={};for(const N in e)N in ha||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=o,appearActiveClass:c=i,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=Qf(s),b=v&&v[0],M=v&&v[1],{onBeforeEnter:P,onEnter:E,onEnterCancelled:D,onLeave:T,onLeaveCancelled:H,onBeforeAppear:Z=P,onAppear:$=E,onAppearCancelled:U=D}=t,R=(N,te,we)=>{Nt(N,te?u:l),Nt(N,te?c:i),we&&we()},j=(N,te)=>{N._isLeaving=!1,Nt(N,f),Nt(N,h),Nt(N,m),te&&te()},z=N=>(te,we)=>{const Ne=N?$:E,fe=()=>R(te,N,we);Qt(Ne,[te,fe]),ui(()=>{Nt(te,N?a:o),wt(te,N?u:l),ci(Ne)||fi(te,r,b,fe)})};return Ce(t,{onBeforeEnter(N){Qt(P,[N]),wt(N,o),wt(N,i)},onBeforeAppear(N){Qt(Z,[N]),wt(N,a),wt(N,c)},onEnter:z(!1),onAppear:z(!0),onLeave(N,te){N._isLeaving=!0;const we=()=>j(N,te);wt(N,f),wt(N,m),ya(),ui(()=>{N._isLeaving&&(Nt(N,f),wt(N,h),ci(T)||fi(N,r,M,we))}),Qt(T,[N,we])},onEnterCancelled(N){R(N,!1),Qt(D,[N])},onAppearCancelled(N){R(N,!0),Qt(U,[N])},onLeaveCancelled(N){j(N),Qt(H,[N])}})}function Qf(e){if(e==null)return null;if(me(e))return[_s(e.enter),_s(e.leave)];{const t=_s(e);return[t,t]}}function _s(e){return ru(e)}function wt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[xn]||(e[xn]=new Set)).add(t)}function Nt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[xn];n&&(n.delete(t),n.size||(e[xn]=void 0))}function ui(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Xf=0;function fi(e,t,n,r){const s=e._endId=++Xf,o=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:l,propCount:a}=va(e,t);if(!i)return r();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,m),o()},m=h=>{h.target===e&&++u>=a&&f()};setTimeout(()=>{u(n[v]||"").split(", "),s=r(`${It}Delay`),o=r(`${It}Duration`),i=di(s,o),l=r(`${Ln}Delay`),a=r(`${Ln}Duration`),c=di(l,a);let u=null,f=0,m=0;t===It?i>0&&(u=It,f=i,m=o.length):t===Ln?c>0&&(u=Ln,f=c,m=a.length):(f=Math.max(i,c),u=f>0?i>c?It:Ln:null,m=u?u===It?o.length:a.length:0);const h=u===It&&/\b(transform|all)(,|$)/.test(r(`${It}Property`).toString());return{type:u,timeout:f,propCount:m,hasTransform:h}}function di(e,t){for(;e.lengthpi(n)+pi(e[r])))}function pi(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ya(){return document.body.offsetHeight}function Zf(e,t,n){const r=e[xn];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const hi=Symbol("_vod"),ed=Symbol("_vsh"),td=Symbol(""),nd=/(^|;)\s*display\s*:/;function rd(e,t,n){const r=e.style,s=Se(n);let o=!1;if(n&&!s){if(t)if(Se(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&Or(r,l,"")}else for(const i in t)n[i]==null&&Or(r,i,"");for(const i in n)i==="display"&&(o=!0),Or(r,i,n[i])}else if(s){if(t!==n){const i=r[td];i&&(n+=";"+i),r.cssText=n,o=nd.test(n)}}else t&&e.removeAttribute("style");hi in e&&(e[hi]=o?r.display:"",e[ed]&&(r.display="none"))}const gi=/\s*!important$/;function Or(e,t,n){if(G(n))n.forEach(r=>Or(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=sd(e,t);gi.test(n)?e.setProperty(an(r),n.replace(gi,""),"important"):e[r]=n}}const mi=["Webkit","Moz","ms"],bs={};function sd(e,t){const n=bs[t];if(n)return n;let r=st(t);if(r!=="filter"&&r in e)return bs[t]=r;r=Hr(r);for(let s=0;sws||(ad.then(()=>ws=0),ws=Date.now());function ud(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ct(fd(r,n.value),t,5,[r])};return n.value=e,n.attached=cd(),n}function fd(e,t){if(G(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Si=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,dd=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?Zf(e,r,i):t==="style"?rd(e,n,r):Vr(t)?Js(t)||id(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pd(e,t,r,i))?(_i(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&yi(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Se(r))?_i(e,st(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),yi(e,t,r,i))};function pd(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Si(t)&&Q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Si(t)&&Se(n)?!1:t in e}const _a=new WeakMap,ba=new WeakMap,$r=Symbol("_moveCb"),Ei=Symbol("_enterCb"),hd=e=>(delete e.props.mode,e),gd=hd({name:"TransitionGroup",props:Ce({},ga,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=_o(),r=Nl();let s,o;return Hl(()=>{if(!s.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!_d(s[0].el,n.vnode.el,i))return;s.forEach(md),s.forEach(vd);const l=s.filter(yd);ya(),l.forEach(a=>{const c=a.el,u=c.style;wt(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const f=c[$r]=m=>{m&&m.target!==c||(!m||/transform$/.test(m.propertyName))&&(c.removeEventListener("transitionend",f),c[$r]=null,Nt(c,i))};c.addEventListener("transitionend",f)})}),()=>{const i=oe(e),l=ma(i);let a=i.tag||ge;if(s=[],o)for(let c=0;c{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=va(r);return o.removeChild(r),i}const Cn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return G(t)?n=>Ar(t,n):t};function bd(e){e.target.composing=!0}function Ai(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ct=Symbol("_assign"),wd={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Ct]=Cn(s);const o=r||s.props&&s.props.type==="number";Vt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=Tr(l)),e[Ct](l)}),n&&Vt(e,"change",()=>{e.value=e.value.trim()}),t||(Vt(e,"compositionstart",bd),Vt(e,"compositionend",Ai),Vt(e,"change",Ai))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:o}},i){if(e[Ct]=Cn(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?Tr(e.value):e.value,a=t??"";l!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===a)||(e.value=a))}},xg={deep:!0,created(e,t,n){e[Ct]=Cn(n),Vt(e,"change",()=>{const r=e._modelValue,s=tr(e),o=e.checked,i=e[Ct];if(G(r)){const l=Xs(r,s),a=l!==-1;if(o&&!a)i(r.concat(s));else if(!o&&a){const c=[...r];c.splice(l,1),i(c)}}else if(Pn(r)){const l=new Set(r);o?l.add(s):l.delete(s),i(l)}else i(wa(e,o))})},mounted:xi,beforeUpdate(e,t,n){e[Ct]=Cn(n),xi(e,t,n)}};function xi(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(G(t))s=Xs(t,r.props.value)>-1;else if(Pn(t))s=t.has(r.props.value);else{if(t===n)return;s=ir(t,wa(e,!0))}e.checked!==s&&(e.checked=s)}const Cg={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Pn(t);Vt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?Tr(tr(i)):tr(i));e[Ct](e.multiple?s?new Set(o):o:o[0]),e._assigning=!0,cn(()=>{e._assigning=!1})}),e[Ct]=Cn(r)},mounted(e,{value:t}){Ci(e,t)},beforeUpdate(e,t,n){e[Ct]=Cn(n)},updated(e,{value:t}){e._assigning||Ci(e,t)}};function Ci(e,t){const n=e.multiple,r=G(t);if(!(n&&!r&&!Pn(t))){for(let s=0,o=e.options.length;sString(c)===String(l)):i.selected=Xs(t,l)>-1}else i.selected=t.has(l);else if(ir(tr(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function tr(e){return"_value"in e?e._value:e.value}function wa(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Sd=["ctrl","shift","alt","meta"],Ed={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Sd.some(n=>e[`${n}Key`]&&!t.includes(n))},Sa=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...o)=>{for(let i=0;i{const t=xd().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Td(r);if(!s)return;const o=t._component;!Q(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,Od(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t};function Od(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Td(e){return Se(e)?document.querySelector(e):e}var Pd=!1;/*! * pinia v2.2.4 * (c) 2024 Eduardo San Martin Morote * @license MIT - */let Ea;const Qr=e=>Ea=e,xa=Symbol();function Ds(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Un;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Un||(Un={}));function Rd(){const e=al(!0),t=e.run(()=>ce({}));let n=[],r=[];const s=ao({install(o){Qr(s),s._a=o,o.provide(xa,s),o.config.globalProperties.$pinia=s,r.forEach(i=>n.push(i)),r=[]},use(o){return!this._a&&!Pd?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Aa=()=>{};function Ti(e,t,n,r=Aa){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&Zs()&&cl(s),s}function hn(e,...t){e.slice().forEach(n=>{n(...t)})}const Id=e=>e(),Pi=Symbol(),Ss=Symbol();function Fs(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Ds(s)&&Ds(r)&&e.hasOwnProperty(n)&&!xe(r)&&!Ht(r)?e[n]=Fs(s,r):e[n]=r}return e}const Md=Symbol();function Nd(e){return!Ds(e)||!e.hasOwnProperty(Md)}const{assign:Lt}=Object;function Ld(e){return!!(xe(e)&&e.effect)}function $d(e,t,n,r){const{state:s,actions:o,getters:i}=t,l=n.state.value[e];let a;function c(){l||(n.state.value[e]=s?s():{});const u=Mu(n.state.value[e]);return Lt(u,o,Object.keys(i||{}).reduce((f,m)=>(f[m]=ao(_e(()=>{Qr(n);const h=n._s.get(e);return i[m].call(h,h)})),f),{}))}return a=Ca(e,c,t,n,r,!0),a}function Ca(e,t,n={},r,s,o){let i;const l=Lt({actions:{}},n),a={deep:!0};let c,u,f=[],m=[],h;const v=r.state.value[e];!o&&!v&&(r.state.value[e]={}),ce({});let b;function M(U){let R;c=u=!1,typeof U=="function"?(U(r.state.value[e]),R={type:Un.patchFunction,storeId:e,events:h}):(Fs(r.state.value[e],U),R={type:Un.patchObject,payload:U,storeId:e,events:h});const j=b=Symbol();an().then(()=>{b===j&&(c=!0)}),u=!0,hn(f,R,r.state.value[e])}const P=o?function(){const{state:R}=n,j=R?R():{};this.$patch(z=>{Lt(z,j)})}:Aa;function E(){i.stop(),f=[],m=[],r._s.delete(e)}const D=(U,R="")=>{if(Pi in U)return U[Ss]=R,U;const j=function(){Qr(r);const z=Array.from(arguments),N=[],ee=[];function be(X){N.push(X)}function Me(X){ee.push(X)}hn(m,{args:z,name:j[Ss],store:H,after:be,onError:Me});let fe;try{fe=U.apply(this&&this.$id===e?this:H,z)}catch(X){throw hn(ee,X),X}return fe instanceof Promise?fe.then(X=>(hn(N,X),X)).catch(X=>(hn(ee,X),Promise.reject(X))):(hn(N,fe),fe)};return j[Pi]=!0,j[Ss]=R,j},T={_p:r,$id:e,$onAction:Ti.bind(null,m),$patch:M,$reset:P,$subscribe(U,R={}){const j=Ti(f,U,R.detached,()=>z()),z=i.run(()=>Ie(()=>r.state.value[e],N=>{(R.flush==="sync"?u:c)&&U({storeId:e,type:Un.direct,events:h},N)},Lt({},a,R)));return j},$dispose:E},H=lr(T);r._s.set(e,H);const $=(r._a&&r._a.runWithContext||Id)(()=>r._e.run(()=>(i=al()).run(()=>t({action:D}))));for(const U in $){const R=$[U];if(xe(R)&&!Ld(R)||Ht(R))o||(v&&Nd(R)&&(xe(R)?R.value=v[U]:Fs(R,v[U])),r.state.value[e][U]=R);else if(typeof R=="function"){const j=D(R,U);$[U]=j,l.actions[U]=R}}return Lt(H,$),Lt(oe(H),$),Object.defineProperty(H,"$state",{get:()=>r.state.value[e],set:U=>{M(R=>{Lt(R,U)})}}),r._p.forEach(U=>{Lt(H,i.run(()=>U({store:H,app:r._a,pinia:r,options:l})))}),v&&o&&n.hydrate&&n.hydrate(H.$state,v),c=!0,u=!0,H}function Tt(e,t,n){let r,s;const o=typeof t=="function";typeof e=="string"?(r=e,s=o?n:t):(s=e,r=e.id);function i(l,a){const c=ff();return l=l||(c?rt(xa,null):null),l&&Qr(l),l=Ea,l._s.has(r)||(o?Ca(r,t,s,l):$d(r,s,l)),l._s.get(r)}return i.$id=r,i}let jd="Store";function bg(...e){return e.reduce((t,n)=>(t[n.$id+jd]=function(){return n(this.$pinia)},t),{})}/*! + */let Ea;const Qr=e=>Ea=e,Aa=Symbol();function Ds(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Kn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Kn||(Kn={}));function Rd(){const e=al(!0),t=e.run(()=>ce({}));let n=[],r=[];const s=ao({install(o){Qr(s),s._a=o,o.provide(Aa,s),o.config.globalProperties.$pinia=s,r.forEach(i=>n.push(i)),r=[]},use(o){return!this._a&&!Pd?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const xa=()=>{};function Ti(e,t,n,r=xa){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&Zs()&&cl(s),s}function mn(e,...t){e.slice().forEach(n=>{n(...t)})}const Id=e=>e(),Pi=Symbol(),Ss=Symbol();function Fs(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Ds(s)&&Ds(r)&&e.hasOwnProperty(n)&&!xe(r)&&!Ht(r)?e[n]=Fs(s,r):e[n]=r}return e}const Md=Symbol();function Nd(e){return!Ds(e)||!e.hasOwnProperty(Md)}const{assign:Lt}=Object;function Ld(e){return!!(xe(e)&&e.effect)}function $d(e,t,n,r){const{state:s,actions:o,getters:i}=t,l=n.state.value[e];let a;function c(){l||(n.state.value[e]=s?s():{});const u=Mu(n.state.value[e]);return Lt(u,o,Object.keys(i||{}).reduce((f,m)=>(f[m]=ao(ye(()=>{Qr(n);const h=n._s.get(e);return i[m].call(h,h)})),f),{}))}return a=Ca(e,c,t,n,r,!0),a}function Ca(e,t,n={},r,s,o){let i;const l=Lt({actions:{}},n),a={deep:!0};let c,u,f=[],m=[],h;const v=r.state.value[e];!o&&!v&&(r.state.value[e]={}),ce({});let b;function M(U){let R;c=u=!1,typeof U=="function"?(U(r.state.value[e]),R={type:Kn.patchFunction,storeId:e,events:h}):(Fs(r.state.value[e],U),R={type:Kn.patchObject,payload:U,storeId:e,events:h});const j=b=Symbol();cn().then(()=>{b===j&&(c=!0)}),u=!0,mn(f,R,r.state.value[e])}const P=o?function(){const{state:R}=n,j=R?R():{};this.$patch(z=>{Lt(z,j)})}:xa;function E(){i.stop(),f=[],m=[],r._s.delete(e)}const D=(U,R="")=>{if(Pi in U)return U[Ss]=R,U;const j=function(){Qr(r);const z=Array.from(arguments),N=[],te=[];function we(X){N.push(X)}function Ne(X){te.push(X)}mn(m,{args:z,name:j[Ss],store:H,after:we,onError:Ne});let fe;try{fe=U.apply(this&&this.$id===e?this:H,z)}catch(X){throw mn(te,X),X}return fe instanceof Promise?fe.then(X=>(mn(N,X),X)).catch(X=>(mn(te,X),Promise.reject(X))):(mn(N,fe),fe)};return j[Pi]=!0,j[Ss]=R,j},T={_p:r,$id:e,$onAction:Ti.bind(null,m),$patch:M,$reset:P,$subscribe(U,R={}){const j=Ti(f,U,R.detached,()=>z()),z=i.run(()=>Ie(()=>r.state.value[e],N=>{(R.flush==="sync"?u:c)&&U({storeId:e,type:Kn.direct,events:h},N)},Lt({},a,R)));return j},$dispose:E},H=lr(T);r._s.set(e,H);const $=(r._a&&r._a.runWithContext||Id)(()=>r._e.run(()=>(i=al()).run(()=>t({action:D}))));for(const U in $){const R=$[U];if(xe(R)&&!Ld(R)||Ht(R))o||(v&&Nd(R)&&(xe(R)?R.value=v[U]:Fs(R,v[U])),r.state.value[e][U]=R);else if(typeof R=="function"){const j=D(R,U);$[U]=j,l.actions[U]=R}}return Lt(H,$),Lt(oe(H),$),Object.defineProperty(H,"$state",{get:()=>r.state.value[e],set:U=>{M(R=>{Lt(R,U)})}}),r._p.forEach(U=>{Lt(H,i.run(()=>U({store:H,app:r._a,pinia:r,options:l})))}),v&&o&&n.hydrate&&n.hydrate(H.$state,v),c=!0,u=!0,H}function Tt(e,t,n){let r,s;const o=typeof t=="function";typeof e=="string"?(r=e,s=o?n:t):(s=e,r=e.id);function i(l,a){const c=ff();return l=l||(c?rt(Aa,null):null),l&&Qr(l),l=Ea,l._s.has(r)||(o?Ca(r,t,s,l):$d(r,s,l)),l._s.get(r)}return i.$id=r,i}let jd="Store";function Og(...e){return e.reduce((t,n)=>(t[n.$id+jd]=function(){return n(this.$pinia)},t),{})}/*! * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const mn=typeof document<"u";function Oa(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Dd(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Oa(e.default)}const pe=Object.assign;function Es(e,t){const n={};for(const r in t){const s=t[r];n[r]=ct(s)?s.map(e):e(s)}return n}const Kn=()=>{},ct=Array.isArray,Ta=/#/g,Fd=/&/g,Vd=/\//g,kd=/=/g,Hd=/\?/g,Pa=/\+/g,Bd=/%5B/g,Ud=/%5D/g,Ra=/%5E/g,Kd=/%60/g,Ia=/%7B/g,Wd=/%7C/g,Ma=/%7D/g,qd=/%20/g;function wo(e){return encodeURI(""+e).replace(Wd,"|").replace(Bd,"[").replace(Ud,"]")}function zd(e){return wo(e).replace(Ia,"{").replace(Ma,"}").replace(Ra,"^")}function Vs(e){return wo(e).replace(Pa,"%2B").replace(qd,"+").replace(Ta,"%23").replace(Fd,"%26").replace(Kd,"`").replace(Ia,"{").replace(Ma,"}").replace(Ra,"^")}function Gd(e){return Vs(e).replace(kd,"%3D")}function Jd(e){return wo(e).replace(Ta,"%23").replace(Hd,"%3F")}function Yd(e){return e==null?"":Jd(e).replace(Vd,"%2F")}function nr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Qd=/\/$/,Xd=e=>e.replace(Qd,"");function xs(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),o=t.slice(a+1,l>-1?l:t.length),s=e(o)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=np(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:nr(i)}}function Zd(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ri(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ep(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&An(t.matched[r],n.matched[s])&&Na(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function An(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Na(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!tp(e[n],t[n]))return!1;return!0}function tp(e,t){return ct(e)?Ii(e,t):ct(t)?Ii(t,e):e===t}function Ii(e,t){return ct(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function np(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const Mt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var rr;(function(e){e.pop="pop",e.push="push"})(rr||(rr={}));var Wn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Wn||(Wn={}));function rp(e){if(!e)if(mn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Xd(e)}const sp=/^[^#]+#/;function op(e,t){return e.replace(sp,"#")+t}function ip(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Xr=()=>({left:window.scrollX,top:window.scrollY});function lp(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=ip(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Mi(e,t){return(history.state?history.state.position-t:-1)+e}const ks=new Map;function ap(e,t){ks.set(e,t)}function cp(e){const t=ks.get(e);return ks.delete(e),t}let up=()=>location.protocol+"//"+location.host;function La(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let l=s.includes(e.slice(o))?e.slice(o).length:1,a=s.slice(l);return a[0]!=="/"&&(a="/"+a),Ri(a,"")}return Ri(n,e)+r+s}function fp(e,t,n,r){let s=[],o=[],i=null;const l=({state:m})=>{const h=La(e,location),v=n.value,b=t.value;let M=0;if(m){if(n.value=h,t.value=m,i&&i===v){i=null;return}M=b?m.position-b.position:0}else r(h);s.forEach(P=>{P(n.value,v,{delta:M,type:rr.pop,direction:M?M>0?Wn.forward:Wn.back:Wn.unknown})})};function a(){i=n.value}function c(m){s.push(m);const h=()=>{const v=s.indexOf(m);v>-1&&s.splice(v,1)};return o.push(h),h}function u(){const{history:m}=window;m.state&&m.replaceState(pe({},m.state,{scroll:Xr()}),"")}function f(){for(const m of o)m();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:f}}function Ni(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Xr():null}}function dp(e){const{history:t,location:n}=window,r={value:La(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(a,c,u){const f=e.indexOf("#"),m=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:up()+e+a;try{t[u?"replaceState":"pushState"](c,"",m),s.value=c}catch(h){console.error(h),n[u?"replace":"assign"](m)}}function i(a,c){const u=pe({},t.state,Ni(s.value.back,a,s.value.forward,!0),c,{position:s.value.position});o(a,u,!0),r.value=a}function l(a,c){const u=pe({},s.value,t.state,{forward:a,scroll:Xr()});o(u.current,u,!0);const f=pe({},Ni(r.value,a,null),{position:u.position+1},c);o(a,f,!1),r.value=a}return{location:r,state:s,push:l,replace:i}}function pp(e){e=rp(e);const t=dp(e),n=fp(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=pe({location:"",base:e,go:r,createHref:op.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function hp(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),pp(e)}function gp(e){return typeof e=="string"||e&&typeof e=="object"}function $a(e){return typeof e=="string"||typeof e=="symbol"}const ja=Symbol("");var Li;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Li||(Li={}));function Cn(e,t){return pe(new Error,{type:e,[ja]:!0},t)}function _t(e,t){return e instanceof Error&&ja in e&&(t==null||!!(e.type&t))}const $i="[^/]+?",mp={sensitive:!1,strict:!1,start:!0,end:!0},vp=/[.+*?^${}()[\]/\\]/g;function yp(e,t){const n=pe({},mp,t),r=[];let s=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function Da(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const bp={type:0,value:""},wp=/[a-zA-Z0-9_]/;function Sp(e){if(!e)return[[]];if(e==="/")return[[bp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let l=0,a,c="",u="";function f(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function m(){c+=a}for(;l{i(D)}:Kn}function i(f){if($a(f)){const m=r.get(f);m&&(r.delete(f),n.splice(n.indexOf(m),1),m.children.forEach(i),m.alias.forEach(i))}else{const m=n.indexOf(f);m>-1&&(n.splice(m,1),f.record.name&&r.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function l(){return n}function a(f){const m=Op(f,n);n.splice(m,0,f),f.record.name&&!Vi(f)&&r.set(f.record.name,f)}function c(f,m){let h,v={},b,M;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw Cn(1,{location:f});M=h.record.name,v=pe(Di(m.params,h.keys.filter(D=>!D.optional).concat(h.parent?h.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),f.params&&Di(f.params,h.keys.map(D=>D.name))),b=h.stringify(v)}else if(f.path!=null)b=f.path,h=n.find(D=>D.re.test(b)),h&&(v=h.parse(b),M=h.record.name);else{if(h=m.name?r.get(m.name):n.find(D=>D.re.test(m.path)),!h)throw Cn(1,{location:f,currentLocation:m});M=h.record.name,v=pe({},m.params,f.params),b=h.stringify(v)}const P=[];let E=h;for(;E;)P.unshift(E.record),E=E.parent;return{name:M,path:b,params:v,matched:P,meta:Cp(P)}}e.forEach(f=>o(f));function u(){n.length=0,r.clear()}return{addRoute:o,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:l,getRecordMatcher:s}}function Di(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Fi(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ap(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ap(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Vi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Cp(e){return e.reduce((t,n)=>pe(t,n.meta),{})}function ki(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Op(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;Da(e,t[o])<0?r=o:n=o+1}const s=Tp(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function Tp(e){let t=e;for(;t=t.parent;)if(Fa(t)&&Da(e,t)===0)return t}function Fa({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Pp(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Vs(o)):[r&&Vs(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Rp(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ct(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Ip=Symbol(""),Bi=Symbol(""),Zr=Symbol(""),So=Symbol(""),Hs=Symbol("");function Ln(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ft(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,a)=>{const c=m=>{m===!1?a(Cn(4,{from:n,to:t})):m instanceof Error?a(m):gp(m)?a(Cn(2,{from:t,to:m})):(i&&r.enterCallbacks[s]===i&&typeof m=="function"&&i.push(m),l())},u=o(()=>e.call(r&&r.instances[s],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(m=>a(m))})}function As(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Oa(a)){const u=(a.__vccOpts||a)[t];u&&o.push(Ft(u,n,r,i,l,s))}else{let c=a();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const f=Dd(u)?u.default:u;i.mods[l]=u,i.components[l]=f;const h=(f.__vccOpts||f)[t];return h&&Ft(h,n,r,i,l,s)()}))}}return o}function Ui(e){const t=rt(Zr),n=rt(So),r=_e(()=>{const a=ne(e.to);return t.resolve(a)}),s=_e(()=>{const{matched:a}=r.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const m=f.findIndex(An.bind(null,u));if(m>-1)return m;const h=Ki(a[c-2]);return c>1&&Ki(u)===h&&f[f.length-1].path!==h?f.findIndex(An.bind(null,a[c-2])):m}),o=_e(()=>s.value>-1&&$p(n.params,r.value.params)),i=_e(()=>s.value>-1&&s.value===n.matched.length-1&&Na(n.params,r.value.params));function l(a={}){return Lp(a)?t[ne(e.replace)?"replace":"push"](ne(e.to)).catch(Kn):Promise.resolve()}return{route:r,href:_e(()=>r.value.href),isActive:o,isExactActive:i,navigate:l}}const Mp=Fl({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:Ui,setup(e,{slots:t}){const n=lr(Ui(e)),{options:r}=rt(Zr),s=_e(()=>({[Wi(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Wi(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:bo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Np=Mp;function Lp(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 $p(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!ct(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function Ki(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Wi=(e,t,n)=>e??t??n,jp=Fl({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=rt(Hs),s=_e(()=>e.route||r.value),o=rt(Bi,0),i=_e(()=>{let c=ne(o);const{matched:u}=s.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=_e(()=>s.value.matched[i.value]);Ar(Bi,_e(()=>i.value+1)),Ar(Ip,l),Ar(Hs,s);const a=ce();return Ie(()=>[a.value,l.value,e.name],([c,u,f],[m,h,v])=>{u&&(u.instances[f]=c,h&&h!==u&&c&&c===m&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!An(u,h)||!m)&&(u.enterCallbacks[f]||[]).forEach(b=>b(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,f=l.value,m=f&&f.components[u];if(!m)return qi(n.default,{Component:m,route:c});const h=f.props[u],v=h?h===!0?c.params:typeof h=="function"?h(c):h:null,M=bo(m,pe({},v,t,{onVnodeUnmounted:P=>{P.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return qi(n.default,{Component:M,route:c})||M}}});function qi(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Va=jp;function Dp(e){const t=xp(e.routes,e),n=e.parseQuery||Pp,r=e.stringifyQuery||Hi,s=e.history,o=Ln(),i=Ln(),l=Ln(),a=co(Mt);let c=Mt;mn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Es.bind(null,S=>""+S),f=Es.bind(null,Yd),m=Es.bind(null,nr);function h(S,B){let k,W;return $a(S)?(k=t.getRecordMatcher(S),W=B):W=S,t.addRoute(W,k)}function v(S){const B=t.getRecordMatcher(S);B&&t.removeRoute(B)}function b(){return t.getRoutes().map(S=>S.record)}function M(S){return!!t.getRecordMatcher(S)}function P(S,B){if(B=pe({},B||a.value),typeof S=="string"){const g=xs(n,S,B.path),y=t.resolve({path:g.path},B),A=s.createHref(g.fullPath);return pe(g,y,{params:m(y.params),hash:nr(g.hash),redirectedFrom:void 0,href:A})}let k;if(S.path!=null)k=pe({},S,{path:xs(n,S.path,B.path).path});else{const g=pe({},S.params);for(const y in g)g[y]==null&&delete g[y];k=pe({},S,{params:f(g)}),B.params=f(B.params)}const W=t.resolve(k,B),le=S.hash||"";W.params=u(m(W.params));const ve=Zd(r,pe({},S,{hash:zd(le),path:W.path})),p=s.createHref(ve);return pe({fullPath:ve,hash:le,query:r===Hi?Rp(S.query):S.query||{}},W,{redirectedFrom:void 0,href:p})}function E(S){return typeof S=="string"?xs(n,S,a.value.path):pe({},S)}function D(S,B){if(c!==S)return Cn(8,{from:B,to:S})}function T(S){return $(S)}function H(S){return T(pe(E(S),{replace:!0}))}function Z(S){const B=S.matched[S.matched.length-1];if(B&&B.redirect){const{redirect:k}=B;let W=typeof k=="function"?k(S):k;return typeof W=="string"&&(W=W.includes("?")||W.includes("#")?W=E(W):{path:W},W.params={}),pe({query:S.query,hash:S.hash,params:W.path!=null?{}:S.params},W)}}function $(S,B){const k=c=P(S),W=a.value,le=S.state,ve=S.force,p=S.replace===!0,g=Z(k);if(g)return $(pe(E(g),{state:typeof g=="object"?pe({},le,g.state):le,force:ve,replace:p}),B||k);const y=k;y.redirectedFrom=B;let A;return!ve&&ep(r,W,k)&&(A=Cn(16,{to:y,from:W}),et(W,W,!0,!1)),(A?Promise.resolve(A):j(y,W)).catch(w=>_t(w)?_t(w,2)?w:re(w):ie(w,y,W)).then(w=>{if(w){if(_t(w,2))return $(pe({replace:p},E(w.to),{state:typeof w.to=="object"?pe({},le,w.to.state):le,force:ve}),B||y)}else w=N(y,W,!0,p,le);return z(y,W,w),w})}function U(S,B){const k=D(S,B);return k?Promise.reject(k):Promise.resolve()}function R(S){const B=gt.values().next().value;return B&&typeof B.runWithContext=="function"?B.runWithContext(S):S()}function j(S,B){let k;const[W,le,ve]=Fp(S,B);k=As(W.reverse(),"beforeRouteLeave",S,B);for(const g of W)g.leaveGuards.forEach(y=>{k.push(Ft(y,S,B))});const p=U.bind(null,S,B);return k.push(p),qe(k).then(()=>{k=[];for(const g of o.list())k.push(Ft(g,S,B));return k.push(p),qe(k)}).then(()=>{k=As(le,"beforeRouteUpdate",S,B);for(const g of le)g.updateGuards.forEach(y=>{k.push(Ft(y,S,B))});return k.push(p),qe(k)}).then(()=>{k=[];for(const g of ve)if(g.beforeEnter)if(ct(g.beforeEnter))for(const y of g.beforeEnter)k.push(Ft(y,S,B));else k.push(Ft(g.beforeEnter,S,B));return k.push(p),qe(k)}).then(()=>(S.matched.forEach(g=>g.enterCallbacks={}),k=As(ve,"beforeRouteEnter",S,B,R),k.push(p),qe(k))).then(()=>{k=[];for(const g of i.list())k.push(Ft(g,S,B));return k.push(p),qe(k)}).catch(g=>_t(g,8)?g:Promise.reject(g))}function z(S,B,k){l.list().forEach(W=>R(()=>W(S,B,k)))}function N(S,B,k,W,le){const ve=D(S,B);if(ve)return ve;const p=B===Mt,g=mn?history.state:{};k&&(W||p?s.replace(S.fullPath,pe({scroll:p&&g&&g.scroll},le)):s.push(S.fullPath,le)),a.value=S,et(S,B,k,p),re()}let ee;function be(){ee||(ee=s.listen((S,B,k)=>{if(!Wt.listening)return;const W=P(S),le=Z(W);if(le){$(pe(le,{replace:!0}),W).catch(Kn);return}c=W;const ve=a.value;mn&&ap(Mi(ve.fullPath,k.delta),Xr()),j(W,ve).catch(p=>_t(p,12)?p:_t(p,2)?($(p.to,W).then(g=>{_t(g,20)&&!k.delta&&k.type===rr.pop&&s.go(-1,!1)}).catch(Kn),Promise.reject()):(k.delta&&s.go(-k.delta,!1),ie(p,W,ve))).then(p=>{p=p||N(W,ve,!1),p&&(k.delta&&!_t(p,8)?s.go(-k.delta,!1):k.type===rr.pop&&_t(p,20)&&s.go(-1,!1)),z(W,ve,p)}).catch(Kn)}))}let Me=Ln(),fe=Ln(),X;function ie(S,B,k){re(S);const W=fe.list();return W.length?W.forEach(le=>le(S,B,k)):console.error(S),Promise.reject(S)}function ot(){return X&&a.value!==Mt?Promise.resolve():new Promise((S,B)=>{Me.add([S,B])})}function re(S){return X||(X=!S,be(),Me.list().forEach(([B,k])=>S?k(S):B()),Me.reset()),S}function et(S,B,k,W){const{scrollBehavior:le}=e;if(!mn||!le)return Promise.resolve();const ve=!k&&cp(Mi(S.fullPath,0))||(W||!k)&&history.state&&history.state.scroll||null;return an().then(()=>le(S,B,ve)).then(p=>p&&lp(p)).catch(p=>ie(p,S,B))}const Ne=S=>s.go(S);let Le;const gt=new Set,Wt={currentRoute:a,listening:!0,addRoute:h,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:M,getRoutes:b,resolve:P,options:e,push:T,replace:H,go:Ne,back:()=>Ne(-1),forward:()=>Ne(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:fe.add,isReady:ot,install(S){const B=this;S.component("RouterLink",Np),S.component("RouterView",Va),S.config.globalProperties.$router=B,Object.defineProperty(S.config.globalProperties,"$route",{enumerable:!0,get:()=>ne(a)}),mn&&!Le&&a.value===Mt&&(Le=!0,T(s.location).catch(le=>{}));const k={};for(const le in Mt)Object.defineProperty(k,le,{get:()=>a.value[le],enumerable:!0});S.provide(Zr,B),S.provide(So,xl(k)),S.provide(Hs,a);const W=S.unmount;gt.add(S),S.unmount=function(){gt.delete(S),gt.size<1&&(c=Mt,ee&&ee(),ee=null,a.value=Mt,Le=!1,X=!1),W()}}};function qe(S){return S.reduce((B,k)=>B.then(()=>R(k)),Promise.resolve())}return Wt}function Fp(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iAn(c,l))?r.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(c=>An(c,a))||s.push(a))}return[n,r,s]}function Vp(){return rt(Zr)}function wg(e){return rt(So)}const zi=8e3,Gi=15e3,kp=Tt("activity",()=>{const e=new AbortController;let t=document.timeline.currentTime;const n=ce(0);let r=!1;const s=ce(!1),o=ce(!1);function i(u){n.value=u-t,(n.valuezi&&!s.value)&&(s.value=!s.value),(n.valueGi&&!o.value)&&(o.value=!o.value),r&&requestAnimationFrame(i)}function l(){t=document.timeline.currentTime}function a(){r=!0,requestAnimationFrame(i);const u={signal:e.signal};window.addEventListener("wheel",l,u),window.addEventListener("mousemove",l,u),window.addEventListener("touchstart",l,u),window.addEventListener("touchmove",l,u),window.addEventListener("dragstart",l,u),window.addEventListener("touchend",l,u),window.addEventListener("keydown",l,u),window.addEventListener("touchcancel",l,u)}function c(){e.abort(),r=!0}return{startActivityTracking:a,stopActivityTracking:c,registerActivity:l,inactivityShort:s,inactivityLong:o}}),Hp=Tt("context-menu",()=>{const e=ce(!1),t=ce({x:100,y:100}),n=co(null),r=ce([{label:"A",action:()=>console.log("AAAA")},{label:"B",action:()=>console.log("BBBB")}]);function s(o,i,l){n.value=o,r.value=i,l!=null&&(t.value=l),e.value=!0;const a=new AbortController;window.addEventListener("keydown",c=>{c.key==="Escape"&&(a.abort(),e.value=!1)},{signal:a.signal}),window.addEventListener("click",()=>{a.abort(),e.value=!1},{once:!0,signal:a.signal})}return{show:e,offset:t,component:n,context:r,open:s}}),ht=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Bp={__name:"ContextMenu",setup(e){const t=Hp();return(n,r)=>(se(),Ce(ye,null,[We("div",{class:"anchor",style:Sn({left:`${ne(t).offset.x}px`,top:`${ne(t).offset.y}px`})},null,4),ne(t).show?(se(),Ke(tf(ne(t).component),{key:0,class:"context-menu",context:ne(t).context,style:Sn({"--transform":`translate(${ne(t).offset.x}px, ${ne(t).offset.y-5}px)`})},null,8,["context","style"])):Bn("",!0)],64))}},Up=ht(Bp,[["__scopeId","data-v-4bfadffb"]]),Kp={interface:{settings:{show:!0},language:{show:!0,compact:!0,options:[{audio:{label:"Original",value:"original"},interface:{label:"English",value:"en"}},{audio:{label:"Original",value:"original"},interface:{label:"Deutsch",value:"de"}},{audio:{label:"Original",value:"original"},interface:{label:"Português",value:"pt"}}]}}},ka=Tt("config",()=>{const e="https://amazoniafuturelab.fh-potsdam.de/media/xingu-entangled/".replace(/\/$/,""),t="./db.json".replace(/\/$/,""),n="https://amazoniafuturelab.fh-potsdam.de/".replace(/\/$/,""),r="en,pt,de".split(",");return{...Kp,mediaServerUrl:e,wandererStatic:t,wandererServer:n,languages:r}});function Wp(e){return Zs()?(cl(e),!0):!1}function Eo(e){return typeof e=="function"?e():ne(e)}const qp=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const zp=Object.prototype.toString,Gp=e=>zp.call(e)==="[object Object]",Jp=()=>{};function Yp(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}const Ha=e=>e();function Qp(e=Ha){const t=ce(!0);function n(){t.value=!1}function r(){t.value=!0}const s=(...o)=>{t.value&&e(...o)};return{isActive:oo(t),pause:n,resume:r,eventFilter:s}}function Xp(e){return _o()}function Zp(e,t,n={}){const{eventFilter:r=Ha,...s}=n;return Ie(e,Yp(r,t),s)}function eh(e,t,n={}){const{eventFilter:r,...s}=n,{eventFilter:o,pause:i,resume:l,isActive:a}=Qp(r);return{stop:Zp(e,t,{...s,eventFilter:o}),pause:i,resume:l,isActive:a}}function th(e,t=!0,n){Xp()?zr(e,n):t?e():an(e)}function nh(e){var t;const n=Eo(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Bs=qp?window:void 0;function Ji(...e){let t,n,r,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,s]=e,t=Bs):[t,n,r,s]=e,!t)return Jp;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],i=()=>{o.forEach(u=>u()),o.length=0},l=(u,f,m,h)=>(u.addEventListener(f,m,h),()=>u.removeEventListener(f,m,h)),a=Ie(()=>[nh(t),Eo(s)],([u,f])=>{if(i(),!u)return;const m=Gp(f)?{...f}:f;o.push(...n.flatMap(h=>r.map(v=>l(u,h,v,m))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return Wp(c),c}const br=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},wr="__vueuse_ssr_handlers__",rh=sh();function sh(){return wr in br||(br[wr]=br[wr]||{}),br[wr]}function oh(e,t){return rh[e]||t}function ih(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const lh={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Yi="vueuse-storage";function $n(e,t,n,r={}){var s;const{flush:o="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:f=Bs,eventFilter:m,onError:h=j=>{console.error(j)},initOnMounted:v}=r,b=(u?co:ce)(typeof t=="function"?t():t);if(!n)try{n=oh("getDefaultStorage",()=>{var j;return(j=Bs)==null?void 0:j.localStorage})()}catch(j){h(j)}if(!n)return b;const M=Eo(t),P=ih(M),E=(s=r.serializer)!=null?s:lh[P],{pause:D,resume:T}=eh(b,()=>Z(b.value),{flush:o,deep:i,eventFilter:m});f&&l&&th(()=>{Ji(f,"storage",U),Ji(f,Yi,R),v&&U()}),v||U();function H(j,z){f&&f.dispatchEvent(new CustomEvent(Yi,{detail:{key:e,oldValue:j,newValue:z,storageArea:n}}))}function Z(j){try{const z=n.getItem(e);if(j==null)H(z,null),n.removeItem(e);else{const N=E.write(j);z!==N&&(n.setItem(e,N),H(z,N))}}catch(z){h(z)}}function $(j){const z=j?j.newValue:n.getItem(e);if(z==null)return a&&M!=null&&n.setItem(e,E.write(M)),M;if(!j&&c){const N=E.read(z);return typeof c=="function"?c(N,M):P==="object"&&!Array.isArray(N)?{...M,...N}:N}else return typeof z!="string"?z:E.read(z)}function U(j){if(!(j&&j.storageArea!==n)){if(j&&j.key==null){b.value=M;return}if(!(j&&j.key!==e)){D();try{(j==null?void 0:j.newValue)!==E.write(b.value)&&(b.value=$(j))}catch(z){h(z)}finally{j?an(T):T()}}}}function R(j){U(j.detail)}return b}const ah=e=>e.trim().replace(/\r/g,"").split(/\n{2,3}/).map(n=>{const r={index:n.split(` + */const yn=typeof document<"u";function Oa(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Dd(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Oa(e.default)}const pe=Object.assign;function Es(e,t){const n={};for(const r in t){const s=t[r];n[r]=ut(s)?s.map(e):e(s)}return n}const Wn=()=>{},ut=Array.isArray,Ta=/#/g,Fd=/&/g,Vd=/\//g,kd=/=/g,Hd=/\?/g,Pa=/\+/g,Bd=/%5B/g,Ud=/%5D/g,Ra=/%5E/g,Kd=/%60/g,Ia=/%7B/g,Wd=/%7C/g,Ma=/%7D/g,qd=/%20/g;function wo(e){return encodeURI(""+e).replace(Wd,"|").replace(Bd,"[").replace(Ud,"]")}function zd(e){return wo(e).replace(Ia,"{").replace(Ma,"}").replace(Ra,"^")}function Vs(e){return wo(e).replace(Pa,"%2B").replace(qd,"+").replace(Ta,"%23").replace(Fd,"%26").replace(Kd,"`").replace(Ia,"{").replace(Ma,"}").replace(Ra,"^")}function Gd(e){return Vs(e).replace(kd,"%3D")}function Jd(e){return wo(e).replace(Ta,"%23").replace(Hd,"%3F")}function Yd(e){return e==null?"":Jd(e).replace(Vd,"%2F")}function nr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Qd=/\/$/,Xd=e=>e.replace(Qd,"");function As(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),o=t.slice(a+1,l>-1?l:t.length),s=e(o)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=np(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:nr(i)}}function Zd(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ri(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ep(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&On(t.matched[r],n.matched[s])&&Na(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function On(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Na(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!tp(e[n],t[n]))return!1;return!0}function tp(e,t){return ut(e)?Ii(e,t):ut(t)?Ii(t,e):e===t}function Ii(e,t){return ut(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function np(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const Mt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var rr;(function(e){e.pop="pop",e.push="push"})(rr||(rr={}));var qn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(qn||(qn={}));function rp(e){if(!e)if(yn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Xd(e)}const sp=/^[^#]+#/;function op(e,t){return e.replace(sp,"#")+t}function ip(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Xr=()=>({left:window.scrollX,top:window.scrollY});function lp(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=ip(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Mi(e,t){return(history.state?history.state.position-t:-1)+e}const ks=new Map;function ap(e,t){ks.set(e,t)}function cp(e){const t=ks.get(e);return ks.delete(e),t}let up=()=>location.protocol+"//"+location.host;function La(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let l=s.includes(e.slice(o))?e.slice(o).length:1,a=s.slice(l);return a[0]!=="/"&&(a="/"+a),Ri(a,"")}return Ri(n,e)+r+s}function fp(e,t,n,r){let s=[],o=[],i=null;const l=({state:m})=>{const h=La(e,location),v=n.value,b=t.value;let M=0;if(m){if(n.value=h,t.value=m,i&&i===v){i=null;return}M=b?m.position-b.position:0}else r(h);s.forEach(P=>{P(n.value,v,{delta:M,type:rr.pop,direction:M?M>0?qn.forward:qn.back:qn.unknown})})};function a(){i=n.value}function c(m){s.push(m);const h=()=>{const v=s.indexOf(m);v>-1&&s.splice(v,1)};return o.push(h),h}function u(){const{history:m}=window;m.state&&m.replaceState(pe({},m.state,{scroll:Xr()}),"")}function f(){for(const m of o)m();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:f}}function Ni(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Xr():null}}function dp(e){const{history:t,location:n}=window,r={value:La(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(a,c,u){const f=e.indexOf("#"),m=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:up()+e+a;try{t[u?"replaceState":"pushState"](c,"",m),s.value=c}catch(h){console.error(h),n[u?"replace":"assign"](m)}}function i(a,c){const u=pe({},t.state,Ni(s.value.back,a,s.value.forward,!0),c,{position:s.value.position});o(a,u,!0),r.value=a}function l(a,c){const u=pe({},s.value,t.state,{forward:a,scroll:Xr()});o(u.current,u,!0);const f=pe({},Ni(r.value,a,null),{position:u.position+1},c);o(a,f,!1),r.value=a}return{location:r,state:s,push:l,replace:i}}function pp(e){e=rp(e);const t=dp(e),n=fp(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=pe({location:"",base:e,go:r,createHref:op.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function hp(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),pp(e)}function gp(e){return typeof e=="string"||e&&typeof e=="object"}function $a(e){return typeof e=="string"||typeof e=="symbol"}const ja=Symbol("");var Li;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Li||(Li={}));function Tn(e,t){return pe(new Error,{type:e,[ja]:!0},t)}function bt(e,t){return e instanceof Error&&ja in e&&(t==null||!!(e.type&t))}const $i="[^/]+?",mp={sensitive:!1,strict:!1,start:!0,end:!0},vp=/[.+*?^${}()[\]/\\]/g;function yp(e,t){const n=pe({},mp,t),r=[];let s=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function Da(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const bp={type:0,value:""},wp=/[a-zA-Z0-9_]/;function Sp(e){if(!e)return[[]];if(e==="/")return[[bp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let l=0,a,c="",u="";function f(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function m(){c+=a}for(;l{i(D)}:Wn}function i(f){if($a(f)){const m=r.get(f);m&&(r.delete(f),n.splice(n.indexOf(m),1),m.children.forEach(i),m.alias.forEach(i))}else{const m=n.indexOf(f);m>-1&&(n.splice(m,1),f.record.name&&r.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function l(){return n}function a(f){const m=Op(f,n);n.splice(m,0,f),f.record.name&&!Vi(f)&&r.set(f.record.name,f)}function c(f,m){let h,v={},b,M;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw Tn(1,{location:f});M=h.record.name,v=pe(Di(m.params,h.keys.filter(D=>!D.optional).concat(h.parent?h.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),f.params&&Di(f.params,h.keys.map(D=>D.name))),b=h.stringify(v)}else if(f.path!=null)b=f.path,h=n.find(D=>D.re.test(b)),h&&(v=h.parse(b),M=h.record.name);else{if(h=m.name?r.get(m.name):n.find(D=>D.re.test(m.path)),!h)throw Tn(1,{location:f,currentLocation:m});M=h.record.name,v=pe({},m.params,f.params),b=h.stringify(v)}const P=[];let E=h;for(;E;)P.unshift(E.record),E=E.parent;return{name:M,path:b,params:v,matched:P,meta:Cp(P)}}e.forEach(f=>o(f));function u(){n.length=0,r.clear()}return{addRoute:o,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:l,getRecordMatcher:s}}function Di(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Fi(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:xp(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function xp(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Vi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Cp(e){return e.reduce((t,n)=>pe(t,n.meta),{})}function ki(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Op(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;Da(e,t[o])<0?r=o:n=o+1}const s=Tp(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function Tp(e){let t=e;for(;t=t.parent;)if(Fa(t)&&Da(e,t)===0)return t}function Fa({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Pp(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Vs(o)):[r&&Vs(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Rp(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ut(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Ip=Symbol(""),Bi=Symbol(""),Zr=Symbol(""),So=Symbol(""),Hs=Symbol("");function $n(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ft(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,a)=>{const c=m=>{m===!1?a(Tn(4,{from:n,to:t})):m instanceof Error?a(m):gp(m)?a(Tn(2,{from:t,to:m})):(i&&r.enterCallbacks[s]===i&&typeof m=="function"&&i.push(m),l())},u=o(()=>e.call(r&&r.instances[s],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(m=>a(m))})}function xs(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Oa(a)){const u=(a.__vccOpts||a)[t];u&&o.push(Ft(u,n,r,i,l,s))}else{let c=a();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const f=Dd(u)?u.default:u;i.mods[l]=u,i.components[l]=f;const h=(f.__vccOpts||f)[t];return h&&Ft(h,n,r,i,l,s)()}))}}return o}function Ui(e){const t=rt(Zr),n=rt(So),r=ye(()=>{const a=ne(e.to);return t.resolve(a)}),s=ye(()=>{const{matched:a}=r.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const m=f.findIndex(On.bind(null,u));if(m>-1)return m;const h=Ki(a[c-2]);return c>1&&Ki(u)===h&&f[f.length-1].path!==h?f.findIndex(On.bind(null,a[c-2])):m}),o=ye(()=>s.value>-1&&$p(n.params,r.value.params)),i=ye(()=>s.value>-1&&s.value===n.matched.length-1&&Na(n.params,r.value.params));function l(a={}){return Lp(a)?t[ne(e.replace)?"replace":"push"](ne(e.to)).catch(Wn):Promise.resolve()}return{route:r,href:ye(()=>r.value.href),isActive:o,isExactActive:i,navigate:l}}const Mp=Fl({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:Ui,setup(e,{slots:t}){const n=lr(Ui(e)),{options:r}=rt(Zr),s=ye(()=>({[Wi(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Wi(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:bo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Np=Mp;function Lp(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 $p(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!ut(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function Ki(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Wi=(e,t,n)=>e??t??n,jp=Fl({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=rt(Hs),s=ye(()=>e.route||r.value),o=rt(Bi,0),i=ye(()=>{let c=ne(o);const{matched:u}=s.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=ye(()=>s.value.matched[i.value]);xr(Bi,ye(()=>i.value+1)),xr(Ip,l),xr(Hs,s);const a=ce();return Ie(()=>[a.value,l.value,e.name],([c,u,f],[m,h,v])=>{u&&(u.instances[f]=c,h&&h!==u&&c&&c===m&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!On(u,h)||!m)&&(u.enterCallbacks[f]||[]).forEach(b=>b(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,f=l.value,m=f&&f.components[u];if(!m)return qi(n.default,{Component:m,route:c});const h=f.props[u],v=h?h===!0?c.params:typeof h=="function"?h(c):h:null,M=bo(m,pe({},v,t,{onVnodeUnmounted:P=>{P.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return qi(n.default,{Component:M,route:c})||M}}});function qi(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Va=jp;function Dp(e){const t=Ap(e.routes,e),n=e.parseQuery||Pp,r=e.stringifyQuery||Hi,s=e.history,o=$n(),i=$n(),l=$n(),a=co(Mt);let c=Mt;yn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Es.bind(null,S=>""+S),f=Es.bind(null,Yd),m=Es.bind(null,nr);function h(S,B){let k,W;return $a(S)?(k=t.getRecordMatcher(S),W=B):W=S,t.addRoute(W,k)}function v(S){const B=t.getRecordMatcher(S);B&&t.removeRoute(B)}function b(){return t.getRoutes().map(S=>S.record)}function M(S){return!!t.getRecordMatcher(S)}function P(S,B){if(B=pe({},B||a.value),typeof S=="string"){const g=As(n,S,B.path),y=t.resolve({path:g.path},B),x=s.createHref(g.fullPath);return pe(g,y,{params:m(y.params),hash:nr(g.hash),redirectedFrom:void 0,href:x})}let k;if(S.path!=null)k=pe({},S,{path:As(n,S.path,B.path).path});else{const g=pe({},S.params);for(const y in g)g[y]==null&&delete g[y];k=pe({},S,{params:f(g)}),B.params=f(B.params)}const W=t.resolve(k,B),le=S.hash||"";W.params=u(m(W.params));const _e=Zd(r,pe({},S,{hash:zd(le),path:W.path})),p=s.createHref(_e);return pe({fullPath:_e,hash:le,query:r===Hi?Rp(S.query):S.query||{}},W,{redirectedFrom:void 0,href:p})}function E(S){return typeof S=="string"?As(n,S,a.value.path):pe({},S)}function D(S,B){if(c!==S)return Tn(8,{from:B,to:S})}function T(S){return $(S)}function H(S){return T(pe(E(S),{replace:!0}))}function Z(S){const B=S.matched[S.matched.length-1];if(B&&B.redirect){const{redirect:k}=B;let W=typeof k=="function"?k(S):k;return typeof W=="string"&&(W=W.includes("?")||W.includes("#")?W=E(W):{path:W},W.params={}),pe({query:S.query,hash:S.hash,params:W.path!=null?{}:S.params},W)}}function $(S,B){const k=c=P(S),W=a.value,le=S.state,_e=S.force,p=S.replace===!0,g=Z(k);if(g)return $(pe(E(g),{state:typeof g=="object"?pe({},le,g.state):le,force:_e,replace:p}),B||k);const y=k;y.redirectedFrom=B;let x;return!_e&&ep(r,W,k)&&(x=Tn(16,{to:y,from:W}),et(W,W,!0,!1)),(x?Promise.resolve(x):j(y,W)).catch(w=>bt(w)?bt(w,2)?w:se(w):ie(w,y,W)).then(w=>{if(w){if(bt(w,2))return $(pe({replace:p},E(w.to),{state:typeof w.to=="object"?pe({},le,w.to.state):le,force:_e}),B||y)}else w=N(y,W,!0,p,le);return z(y,W,w),w})}function U(S,B){const k=D(S,B);return k?Promise.reject(k):Promise.resolve()}function R(S){const B=mt.values().next().value;return B&&typeof B.runWithContext=="function"?B.runWithContext(S):S()}function j(S,B){let k;const[W,le,_e]=Fp(S,B);k=xs(W.reverse(),"beforeRouteLeave",S,B);for(const g of W)g.leaveGuards.forEach(y=>{k.push(Ft(y,S,B))});const p=U.bind(null,S,B);return k.push(p),qe(k).then(()=>{k=[];for(const g of o.list())k.push(Ft(g,S,B));return k.push(p),qe(k)}).then(()=>{k=xs(le,"beforeRouteUpdate",S,B);for(const g of le)g.updateGuards.forEach(y=>{k.push(Ft(y,S,B))});return k.push(p),qe(k)}).then(()=>{k=[];for(const g of _e)if(g.beforeEnter)if(ut(g.beforeEnter))for(const y of g.beforeEnter)k.push(Ft(y,S,B));else k.push(Ft(g.beforeEnter,S,B));return k.push(p),qe(k)}).then(()=>(S.matched.forEach(g=>g.enterCallbacks={}),k=xs(_e,"beforeRouteEnter",S,B,R),k.push(p),qe(k))).then(()=>{k=[];for(const g of i.list())k.push(Ft(g,S,B));return k.push(p),qe(k)}).catch(g=>bt(g,8)?g:Promise.reject(g))}function z(S,B,k){l.list().forEach(W=>R(()=>W(S,B,k)))}function N(S,B,k,W,le){const _e=D(S,B);if(_e)return _e;const p=B===Mt,g=yn?history.state:{};k&&(W||p?s.replace(S.fullPath,pe({scroll:p&&g&&g.scroll},le)):s.push(S.fullPath,le)),a.value=S,et(S,B,k,p),se()}let te;function we(){te||(te=s.listen((S,B,k)=>{if(!Wt.listening)return;const W=P(S),le=Z(W);if(le){$(pe(le,{replace:!0}),W).catch(Wn);return}c=W;const _e=a.value;yn&&ap(Mi(_e.fullPath,k.delta),Xr()),j(W,_e).catch(p=>bt(p,12)?p:bt(p,2)?($(p.to,W).then(g=>{bt(g,20)&&!k.delta&&k.type===rr.pop&&s.go(-1,!1)}).catch(Wn),Promise.reject()):(k.delta&&s.go(-k.delta,!1),ie(p,W,_e))).then(p=>{p=p||N(W,_e,!1),p&&(k.delta&&!bt(p,8)?s.go(-k.delta,!1):k.type===rr.pop&&bt(p,20)&&s.go(-1,!1)),z(W,_e,p)}).catch(Wn)}))}let Ne=$n(),fe=$n(),X;function ie(S,B,k){se(S);const W=fe.list();return W.length?W.forEach(le=>le(S,B,k)):console.error(S),Promise.reject(S)}function ot(){return X&&a.value!==Mt?Promise.resolve():new Promise((S,B)=>{Ne.add([S,B])})}function se(S){return X||(X=!S,we(),Ne.list().forEach(([B,k])=>S?k(S):B()),Ne.reset()),S}function et(S,B,k,W){const{scrollBehavior:le}=e;if(!yn||!le)return Promise.resolve();const _e=!k&&cp(Mi(S.fullPath,0))||(W||!k)&&history.state&&history.state.scroll||null;return cn().then(()=>le(S,B,_e)).then(p=>p&&lp(p)).catch(p=>ie(p,S,B))}const Le=S=>s.go(S);let $e;const mt=new Set,Wt={currentRoute:a,listening:!0,addRoute:h,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:M,getRoutes:b,resolve:P,options:e,push:T,replace:H,go:Le,back:()=>Le(-1),forward:()=>Le(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:fe.add,isReady:ot,install(S){const B=this;S.component("RouterLink",Np),S.component("RouterView",Va),S.config.globalProperties.$router=B,Object.defineProperty(S.config.globalProperties,"$route",{enumerable:!0,get:()=>ne(a)}),yn&&!$e&&a.value===Mt&&($e=!0,T(s.location).catch(le=>{}));const k={};for(const le in Mt)Object.defineProperty(k,le,{get:()=>a.value[le],enumerable:!0});S.provide(Zr,B),S.provide(So,Al(k)),S.provide(Hs,a);const W=S.unmount;mt.add(S),S.unmount=function(){mt.delete(S),mt.size<1&&(c=Mt,te&&te(),te=null,a.value=Mt,$e=!1,X=!1),W()}}};function qe(S){return S.reduce((B,k)=>B.then(()=>R(k)),Promise.resolve())}return Wt}function Fp(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iOn(c,l))?r.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(c=>On(c,a))||s.push(a))}return[n,r,s]}function Vp(){return rt(Zr)}function Tg(e){return rt(So)}const zi=8e3,Gi=15e3,kp=Tt("activity",()=>{const e=new AbortController;let t=document.timeline.currentTime;const n=ce(0);let r=!1;const s=ce(!1),o=ce(!1);function i(u){n.value=u-t,(n.valuezi&&!s.value)&&(s.value=!s.value),(n.valueGi&&!o.value)&&(o.value=!o.value),r&&requestAnimationFrame(i)}function l(){t=document.timeline.currentTime}function a(){r=!0,requestAnimationFrame(i);const u={signal:e.signal};window.addEventListener("wheel",l,u),window.addEventListener("mousemove",l,u),window.addEventListener("touchstart",l,u),window.addEventListener("touchmove",l,u),window.addEventListener("dragstart",l,u),window.addEventListener("touchend",l,u),window.addEventListener("keydown",l,u),window.addEventListener("touchcancel",l,u)}function c(){e.abort(),r=!0}return{startActivityTracking:a,stopActivityTracking:c,registerActivity:l,inactivityShort:s,inactivityLong:o}}),Hp=Tt("context-menu",()=>{const e=ce(!1),t=ce({x:100,y:100}),n=co(null),r=ce([{label:"A",action:()=>console.log("AAAA")},{label:"B",action:()=>console.log("BBBB")}]);function s(o,i,l){n.value=o,r.value=i,l!=null&&(t.value=l),e.value=!0;const a=new AbortController;window.addEventListener("keydown",c=>{c.key==="Escape"&&(a.abort(),e.value=!1)},{signal:a.signal}),window.addEventListener("click",()=>{a.abort(),e.value=!1},{once:!0,signal:a.signal})}return{show:e,offset:t,component:n,context:r,open:s}}),ft=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Bp={__name:"ContextMenu",setup(e){const t=Hp();return(n,r)=>(ee(),be(ge,null,[Me("div",{class:"anchor",style:An({left:`${ne(t).offset.x}px`,top:`${ne(t).offset.y}px`})},null,4),ne(t).show?(ee(),Fe(tf(ne(t).component),{key:0,class:"context-menu",context:ne(t).context,style:An({"--transform":`translate(${ne(t).offset.x}px, ${ne(t).offset.y-5}px)`})},null,8,["context","style"])):Un("",!0)],64))}},Up=ft(Bp,[["__scopeId","data-v-4bfadffb"]]),Kp={interface:{settings:{show:!0},language:{show:!0,compact:!0,options:[{audio:{label:"Original",value:"original"},interface:{label:"English",value:"en"}},{audio:{label:"Original",value:"original"},interface:{label:"Deutsch",value:"de"}},{audio:{label:"Original",value:"original"},interface:{label:"Português",value:"pt"}}]}}},ka=Tt("config",()=>{const e="https://amazoniafuturelab.fh-potsdam.de/media/xingu-entangled/".replace(/\/$/,""),t="./db.json".replace(/\/$/,""),n="https://amazoniafuturelab.fh-potsdam.de/".replace(/\/$/,""),r="en,pt,de".split(",");return{...Kp,mediaServerUrl:e,wandererStatic:t,wandererServer:n,languages:r}});function Wp(e){return Zs()?(cl(e),!0):!1}function Eo(e){return typeof e=="function"?e():ne(e)}const qp=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const zp=Object.prototype.toString,Gp=e=>zp.call(e)==="[object Object]",Jp=()=>{};function Yp(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}const Ha=e=>e();function Qp(e=Ha){const t=ce(!0);function n(){t.value=!1}function r(){t.value=!0}const s=(...o)=>{t.value&&e(...o)};return{isActive:oo(t),pause:n,resume:r,eventFilter:s}}function Xp(e){return _o()}function Zp(e,t,n={}){const{eventFilter:r=Ha,...s}=n;return Ie(e,Yp(r,t),s)}function eh(e,t,n={}){const{eventFilter:r,...s}=n,{eventFilter:o,pause:i,resume:l,isActive:a}=Qp(r);return{stop:Zp(e,t,{...s,eventFilter:o}),pause:i,resume:l,isActive:a}}function th(e,t=!0,n){Xp()?zr(e,n):t?e():cn(e)}function nh(e){var t;const n=Eo(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Bs=qp?window:void 0;function Ji(...e){let t,n,r,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,s]=e,t=Bs):[t,n,r,s]=e,!t)return Jp;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],i=()=>{o.forEach(u=>u()),o.length=0},l=(u,f,m,h)=>(u.addEventListener(f,m,h),()=>u.removeEventListener(f,m,h)),a=Ie(()=>[nh(t),Eo(s)],([u,f])=>{if(i(),!u)return;const m=Gp(f)?{...f}:f;o.push(...n.flatMap(h=>r.map(v=>l(u,h,v,m))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return Wp(c),c}const br=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},wr="__vueuse_ssr_handlers__",rh=sh();function sh(){return wr in br||(br[wr]=br[wr]||{}),br[wr]}function oh(e,t){return rh[e]||t}function ih(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const lh={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Yi="vueuse-storage";function jn(e,t,n,r={}){var s;const{flush:o="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:f=Bs,eventFilter:m,onError:h=j=>{console.error(j)},initOnMounted:v}=r,b=(u?co:ce)(typeof t=="function"?t():t);if(!n)try{n=oh("getDefaultStorage",()=>{var j;return(j=Bs)==null?void 0:j.localStorage})()}catch(j){h(j)}if(!n)return b;const M=Eo(t),P=ih(M),E=(s=r.serializer)!=null?s:lh[P],{pause:D,resume:T}=eh(b,()=>Z(b.value),{flush:o,deep:i,eventFilter:m});f&&l&&th(()=>{Ji(f,"storage",U),Ji(f,Yi,R),v&&U()}),v||U();function H(j,z){f&&f.dispatchEvent(new CustomEvent(Yi,{detail:{key:e,oldValue:j,newValue:z,storageArea:n}}))}function Z(j){try{const z=n.getItem(e);if(j==null)H(z,null),n.removeItem(e);else{const N=E.write(j);z!==N&&(n.setItem(e,N),H(z,N))}}catch(z){h(z)}}function $(j){const z=j?j.newValue:n.getItem(e);if(z==null)return a&&M!=null&&n.setItem(e,E.write(M)),M;if(!j&&c){const N=E.read(z);return typeof c=="function"?c(N,M):P==="object"&&!Array.isArray(N)?{...M,...N}:N}else return typeof z!="string"?z:E.read(z)}function U(j){if(!(j&&j.storageArea!==n)){if(j&&j.key==null){b.value=M;return}if(!(j&&j.key!==e)){D();try{(j==null?void 0:j.newValue)!==E.write(b.value)&&(b.value=$(j))}catch(z){h(z)}finally{j?cn(T):T()}}}}function R(j){U(j.detail)}return b}const ah=e=>e.trim().replace(/\r/g,"").split(/\n{2,3}/).map(n=>{const r={index:n.split(` `)[0],time:n.split(` `)[1],text:n.split(` -`).filter((l,a)=>a>1).join(" ")},s=[60*60,60,1],o=r.time.replace(/ --> .*/,"").replace(/,/,".").split(":").reduce((l,a,c)=>+l+ +a*s[c]),i=r.time.replace(/.* --> /,"").replace(/,/,".").split(":").reduce((l,a,c)=>+l+ +a*s[c]);return{start:o,end:i,text:r.text.replace(/^- /,"")}}),Ba={xingu:"https://amazoniafuturelab.fh-potsdam.de/media/xingu-entangled/_/",xe:"https://amazoniafuturelab.fh-potsdam.de/media/xingu-entangled/"};function Sg(e){const t=Object.entries(Ba).find(n=>new RegExp(`^${n[1]}`).test(e));return t?e.replace(t[1],`${t[0]}:`):e}function ch(e){const t=Object.entries(Ba).find(n=>new RegExp(`^${n[0]}:`).test(e));return t?e.replace(`${t[0]}:`,t[1]):e}const es=Tt("helper",()=>{const e=ur();function t(r){return ch(r)}function n(r){return(r==null?void 0:r[e.lang])||(r==null?void 0:r.universal)||(r==null?void 0:r.en)}return{getMediaUrl:t,localize:n}}),Ua=Tt("video",()=>{const e=Rn(),t=es(),n=ur(),r=Vp(),s=new BroadcastChannel("video"),o=ce([]),i=ce(null),l=ce(0),a=ce(null),c=ce(null),u=ce(!1),f=ce(!1),m=ce(null),h=ce(!1),v=ce(1);ce(null);const b=_e(()=>{var $,U;return(U=($=e.data)==null?void 0:$.nodes[i.value])==null?void 0:U.media}),M=_e(()=>b.value!=null&&!u.value),P=_e(()=>{var $,U;return(U=($=c.value)==null?void 0:$.find(R=>R.start<=l.value&&R.end>l.value))==null?void 0:U.text});xf(async()=>{var j;const $=t.localize((j=b.value)==null?void 0:j.subtitles);if($==null)return c.value=null;const U=t.getMediaUrl($),R=await fetch(U).then(z=>z.text());c.value=ah(R)}),Ie(i,$=>{f.value||(o.value.push($),o.value.length>3&&o.value.splice(0,1),m.value=E(),u.value&&Z())}),Ie(h,$=>{f.value&&s.postMessage({action:"set_playing",value:$})}),Ie(v,$=>{f.value&&s.postMessage({action:"set_duration",value:$})}),Ie(()=>n.lang,$=>{f.value||s.postMessage({action:"set_language",value:$})}),Ie(l,$=>{f.value&&s.postMessage({action:"set_time",time:$,duration:v.value,playing:h.value})});function E(){var R,j,z;let $=Object.keys(((j=(R=e.data)==null?void 0:R.nodes[i.value])==null?void 0:j.allocations)??{}).filter(N=>e.data.nodes[N].type==="graph");$.length===0&&($=Object.keys((z=e.data)==null?void 0:z.nodes).filter(N=>e.data.nodes[N].type==="graph")),o.value.toReversed().forEach(N=>{$.length<=0||($=$.filter(ee=>ee!==N))});const U=Math.floor(Math.random()*$.length);return $[U]}function D(){f.value=!0,s.postMessage({action:"attach_player"}),setTimeout(()=>{i.value==null&&D()},500)}function T(){f.value=!1,s.postMessage({action:"detach_player",time:l.value})}function H(){s.postMessage({action:"request_next"})}function Z($=0){s.postMessage({action:"set_graph",graphId:i.value,time:$})}return s.addEventListener("message",({data:$})=>{switch($.action){case"attach_player":if(u.value)break;u.value=!0,Z(l.value);break;case"detach_player":u.value=!1,a.value=$.time;break;case"reattach_player":D();break;case"set_graph":i.value=$.graphId,a.value=$.time;break;case"set_time":l.value=$.time,v.value=$.duration,h.value=$.playing,u.value||s.postMessage({action:"reattach_player"});break;case"request_next":r.push({name:"graph",params:{type:"graph",id:m.value}});break;case"set_playing":h.value=$.value;break;case"set_duration":v.value=$.value;break;case"set_language":n.lang=$.value;break}}),{history:o,graphId:i,video:b,showVideo:M,time:l,playFrom:a,subtitles:c,subtitle:P,attachPlayer:D,detachPlayer:T,requestNext:H,isExternalPlayer:f,next:m,playing:h,duration:v}}),uh=Tt("edit",()=>{const e=Rn(),t=Ua(),n=ce("default");function r(){n.value="default"}function s(){r()}function o(a,c,u){var v,b;const f=e.data.nodes[u],m=t.time;let h=(v=f.marker)==null?void 0:v.find(M=>M.time===m);c===null?((b=h==null?void 0:h.states)==null?void 0:b[a])!==null&&(delete h.states[a],l(h,f)):(h==null&&(h={time:m},f.marker=[...f.marker??[],h]),h.states={...h.states,[a]:c})}function i(a,c,u){var E;const f=e.data.nodes[c],m=u??t.time;let h=(E=f.marker)==null?void 0:E.find(D=>D.time===m);if(a==null){if(h==null)return;delete h.bounds,l(h,f);return}h==null&&(h={time:m},f.marker=[...f.marker,h]);const{x1:v,y1:b,x2:M,y2:P}=a;h.bounds={x1:Math.min(v,M),y1:Math.min(b,P),x2:Math.max(v,M),y2:Math.max(b,P)}}function l(a,c){a.states&&Object.keys(a.states).length===0&&delete a.states,a.states==null&&a.bounds==null&&(c.marker=c.marker.filter(u=>u.time!==a.time))}return Ie(n,(a,c)=>{a==="download"&&(e.exportProject(),an(()=>n.value=c))}),{mode:n,resetMode:r,exit:s,setDisplay:o,setBounds:i}}),ur=Tt("settings",()=>{const e=uh(),t=$n("lang","en"),n=_e(()=>i.value==="edit"),r=$n("pip",!1),s=$n("server","http://localhost:3000"),o=$n("db",null),i=$n("mode","live"),l=["live","edit","preview"];return Ie(n,a=>{a||e.exit()}),Ie(i,a=>{document.querySelector(":root").style.setProperty("--color-accent",`var(--color-${a})`),a==="edit"?document.querySelector(":root").style.setProperty("--transition","0s"):document.querySelector(":root").style.removeProperty("--transition")},{immediate:!0}),{lang:t,pictureInPicture:r,edit:n,server:s,db:o,mode:i,modeOptions:l}});/*! +`).filter((l,a)=>a>1).join(" ")},s=[60*60,60,1],o=r.time.replace(/ --> .*/,"").replace(/,/,".").split(":").reduce((l,a,c)=>+l+ +a*s[c]),i=r.time.replace(/.* --> /,"").replace(/,/,".").split(":").reduce((l,a,c)=>+l+ +a*s[c]);return{start:o,end:i,text:r.text.replace(/^- /,"")}}),Ba={xingu:"https://amazoniafuturelab.fh-potsdam.de/media/xingu-entangled/_/",xe:"https://amazoniafuturelab.fh-potsdam.de/media/xingu-entangled/"};function Pg(e){const t=Object.entries(Ba).find(n=>new RegExp(`^${n[1]}`).test(e));return t?e.replace(t[1],`${t[0]}:`):e}function ch(e){const t=Object.entries(Ba).find(n=>new RegExp(`^${n[0]}:`).test(e));return t?e.replace(`${t[0]}:`,t[1]):e}const es=Tt("helper",()=>{const e=ur();function t(r){return ch(r)}function n(r,s){return s?r==null?void 0:r[e.lang]:(r==null?void 0:r[e.lang])||(r==null?void 0:r.universal)||(r==null?void 0:r.en)}return{getMediaUrl:t,localize:n}}),Ua=Tt("video",()=>{const e=In(),t=es(),n=ur(),r=Vp(),s=new BroadcastChannel("video"),o=ce([]),i=ce(null),l=ce(0),a=ce(null),c=ce(null),u=ce(!1),f=ce(!1),m=ce(null),h=ce(!1),v=ce(1);ce(null);const b=ye(()=>{var $,U;return(U=($=e.data)==null?void 0:$.nodes[i.value])==null?void 0:U.media}),M=ye(()=>b.value!=null&&!u.value),P=ye(()=>{var $,U;return(U=($=c.value)==null?void 0:$.find(R=>R.start<=l.value&&R.end>l.value))==null?void 0:U.text});Af(async()=>{var j;const $=t.localize((j=b.value)==null?void 0:j.subtitles);if($==null)return c.value=null;const U=t.getMediaUrl($),R=await fetch(U).then(z=>z.text());c.value=ah(R)}),Ie(i,$=>{f.value||(o.value.push($),o.value.length>3&&o.value.splice(0,1),m.value=E(),u.value&&Z())}),Ie(h,$=>{f.value&&s.postMessage({action:"set_playing",value:$})}),Ie(v,$=>{f.value&&s.postMessage({action:"set_duration",value:$})}),Ie(()=>n.lang,$=>{f.value||s.postMessage({action:"set_language",value:$})}),Ie(l,$=>{f.value&&s.postMessage({action:"set_time",time:$,duration:v.value,playing:h.value})});function E(){var R,j,z;let $=Object.keys(((j=(R=e.data)==null?void 0:R.nodes[i.value])==null?void 0:j.allocations)??{}).filter(N=>e.data.nodes[N].type==="graph");$.length===0&&($=Object.keys((z=e.data)==null?void 0:z.nodes).filter(N=>e.data.nodes[N].type==="graph")),o.value.toReversed().forEach(N=>{$.length<=0||($=$.filter(te=>te!==N))});const U=Math.floor(Math.random()*$.length);return $[U]}function D(){f.value=!0,s.postMessage({action:"attach_player"}),setTimeout(()=>{i.value==null&&D()},500)}function T(){f.value=!1,s.postMessage({action:"detach_player",time:l.value})}function H(){s.postMessage({action:"request_next"})}function Z($=0){s.postMessage({action:"set_graph",graphId:i.value,time:$})}return s.addEventListener("message",({data:$})=>{switch($.action){case"attach_player":if(u.value)break;u.value=!0,Z(l.value);break;case"detach_player":u.value=!1,a.value=$.time;break;case"reattach_player":D();break;case"set_graph":i.value=$.graphId,a.value=$.time;break;case"set_time":l.value=$.time,v.value=$.duration,h.value=$.playing,u.value||s.postMessage({action:"reattach_player"});break;case"request_next":r.push({name:"graph",params:{type:"graph",id:m.value}});break;case"set_playing":h.value=$.value;break;case"set_duration":v.value=$.value;break;case"set_language":n.lang=$.value;break}}),{history:o,graphId:i,video:b,showVideo:M,time:l,playFrom:a,subtitles:c,subtitle:P,attachPlayer:D,detachPlayer:T,requestNext:H,isExternalPlayer:f,next:m,playing:h,duration:v}}),uh=Tt("edit",()=>{const e=In(),t=Ua(),n=ce("default");function r(){n.value="default"}function s(){r()}function o(a,c,u){var v,b;const f=e.data.nodes[u],m=t.time;let h=(v=f.marker)==null?void 0:v.find(M=>M.time===m);c===null?((b=h==null?void 0:h.states)==null?void 0:b[a])!==null&&(delete h.states[a],l(h,f)):(h==null&&(h={time:m},f.marker=[...f.marker??[],h]),h.states={...h.states,[a]:c})}function i(a,c,u){var E;const f=e.data.nodes[c],m=u??t.time;let h=(E=f.marker)==null?void 0:E.find(D=>D.time===m);if(a==null){if(h==null)return;delete h.bounds,l(h,f);return}h==null&&(h={time:m},f.marker=[...f.marker,h]);const{x1:v,y1:b,x2:M,y2:P}=a;h.bounds={x1:Math.min(v,M),y1:Math.min(b,P),x2:Math.max(v,M),y2:Math.max(b,P)}}function l(a,c){a.states&&Object.keys(a.states).length===0&&delete a.states,a.states==null&&a.bounds==null&&(c.marker=c.marker.filter(u=>u.time!==a.time))}return Ie(n,(a,c)=>{a==="download"&&(e.exportProject(),cn(()=>n.value=c))}),{mode:n,resetMode:r,exit:s,setDisplay:o,setBounds:i}}),ur=Tt("settings",()=>{const e=uh(),t=jn("lang","en"),n=ye(()=>i.value==="edit"),r=jn("pip",!1),s=jn("server","http://localhost:3000"),o=jn("db",null),i=jn("mode","live"),l=["live","edit","preview"],a=!1;return Ie(n,c=>{c||e.exit()}),Ie(i,c=>{document.querySelector(":root").style.setProperty("--color-accent",`var(--color-${c})`),c==="edit"?document.querySelector(":root").style.setProperty("--transition","0s"):document.querySelector(":root").style.removeProperty("--transition")},{immediate:!0}),{lang:t,pictureInPicture:r,edit:n,server:s,db:o,mode:i,modeOptions:l,exhibition:a}});/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed */var fh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var o in s)s.hasOwnProperty(o)&&(r[o]=s[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),dh=Object.prototype.hasOwnProperty;function Us(e,t){return dh.call(e,t)}function Ks(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n=48&&r<=57){t++;continue}return!1}return!0}function Zt(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Ka(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function qs(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t0&&a[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&m===void 0&&(c[h]===void 0?m=a.slice(0,u).join("/"):u==f-1&&(m=t.path),m!==void 0&&v(t,0,e,m)),u++,Array.isArray(c)){if(h==="-")h=c.length;else{if(n&&!Ws(h))throw new Se("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",o,t,e);Ws(h)&&(h=~~h)}if(u>=f){if(n&&t.op==="add"&&h>c.length)throw new Se("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,t,e);var i=hh[t.op].call(t,c,h,e);if(i.test===!1)throw new Se("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return i}}else if(u>=f){var i=vn[t.op].call(t,c,h,e);if(i.test===!1)throw new Se("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return i}if(c=c[h],n&&u0)throw new Se('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Se("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Se("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&qs(e.value))throw new Se("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var s=e.path.split("/").length,o=r.split("/").length;if(s!==o+1&&s!==o)throw new Se("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new Se("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var i={op:"_get",path:e.from,value:void 0},l=qa([i],n);if(l&&l.name==="OPERATION_PATH_UNRESOLVABLE")throw new Se("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new Se("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function qa(e,t,n){try{if(!Array.isArray(e))throw new Se("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)xo(Ze(t),Ze(e),n||!0);else{n=n||Dr;for(var r=0;r0&&a[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&m===void 0&&(c[h]===void 0?m=a.slice(0,u).join("/"):u==f-1&&(m=t.path),m!==void 0&&v(t,0,e,m)),u++,Array.isArray(c)){if(h==="-")h=c.length;else{if(n&&!Ws(h))throw new Ee("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",o,t,e);Ws(h)&&(h=~~h)}if(u>=f){if(n&&t.op==="add"&&h>c.length)throw new Ee("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,t,e);var i=hh[t.op].call(t,c,h,e);if(i.test===!1)throw new Ee("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return i}}else if(u>=f){var i=_n[t.op].call(t,c,h,e);if(i.test===!1)throw new Ee("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return i}if(c=c[h],n&&u0)throw new Ee('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Ee("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Ee("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&qs(e.value))throw new Ee("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var s=e.path.split("/").length,o=r.split("/").length;if(s!==o+1&&s!==o)throw new Ee("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new Ee("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var i={op:"_get",path:e.from,value:void 0},l=qa([i],n);if(l&&l.name==="OPERATION_PATH_UNRESOLVABLE")throw new Ee("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new Ee("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function qa(e,t,n){try{if(!Array.isArray(e))throw new Ee("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)Ao(Ze(t),Ze(e),n||!0);else{n=n||Dr;for(var r=0;r0&&(e.patches=[],e.callback&&e.callback(r)),r}function Co(e,t,n,r,s){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var o=Ks(t),i=Ks(e),l=!1,a=i.length-1;a>=0;a--){var c=i[a],u=e[c];if(Us(t,c)&&!(t[c]===void 0&&u!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof u=="object"&&u!=null&&typeof f=="object"&&f!=null&&Array.isArray(u)===Array.isArray(f)?Co(u,f,n,r+"/"+Zt(c),s):u!==f&&(s&&n.push({op:"test",path:r+"/"+Zt(c),value:Ze(u)}),n.push({op:"replace",path:r+"/"+Zt(c),value:Ze(f)}))}else Array.isArray(e)===Array.isArray(t)?(s&&n.push({op:"test",path:r+"/"+Zt(c),value:Ze(u)}),n.push({op:"remove",path:r+"/"+Zt(c)}),l=!0):(s&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!l&&o.length==i.length))for(var a=0;a-1}function uc(d,_){var x=this.__data__,q=dr(x,d);return q<0?x.push([d,_]):x[q][1]=_,this}mt.prototype.clear=ic,mt.prototype.delete=lc,mt.prototype.get=ac,mt.prototype.has=cc,mt.prototype.set=uc;function cn(d){var _=-1,x=d?d.length:0;for(this.clear();++_-1&&d%1==0&&d<_}function Bc(d){var _=typeof d;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?d!=="__proto__":d===null}function Uc(d){return!!O&&O in d}function $o(d){var _=d&&d.constructor,x=typeof _=="function"&&_.prototype||L;return d===x}function Gt(d){if(d!=null){try{return J.call(d)}catch{}try{return d+""}catch{}}return""}function Kc(d){return ss(d,!0,!0)}function jo(d,_){return d===_||d!==d&&_!==_}function Wc(d){return qc(d)&&F.call(d,"callee")&&(!Ye.call(d,"callee")||K.call(d)==o)}var is=Array.isArray;function Do(d){return d!=null&&Gc(d.length)&&!Fo(d)}function qc(d){return Jc(d)&&Do(d)}var zc=fr||Qc;function Fo(d){var _=hr(d)?K.call(d):"";return _==u||_==f}function Gc(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=s}function hr(d){var _=typeof d;return!!d&&(_=="object"||_=="function")}function Jc(d){return!!d&&typeof d=="object"}function ls(d){return Do(d)?wc(d):Oc(d)}function Yc(){return[]}function Qc(){return!1}e.exports=Kc})(Fr,Fr.exports);var Oh=Fr.exports;const Th=Ch(Oh),Rn=Tt("data",()=>{const e=ka(),t=ur(),n=ce(null),r=ce(null);async function s(){if(n.value=await fetch(e.wandererStatic).then(b=>b.json()),t.mode!=="live"&&localStorage.getItem("wanderer:data")!=null){const b=JSON.parse(localStorage.getItem("wanderer:data"));n.value.exported===b.exported||!window.confirm("Your local changes are based on a dataset version that does not match the live version. Do you want to discard your local changes and make a local copy of the latest live version?")?n.value=b:localStorage.setItem("wanderer:data",JSON.stringify(n.value))}}const o=_e(()=>i.value==null||i.value.type==="graph"?{}:Object.fromEntries(Object.entries(n.value.nodes).filter(b=>b[1].type==="graph"&&Object.prototype.hasOwnProperty.call(b[1].allocations??{},r.value)))),i=_e(()=>{var b;return(b=n.value)==null?void 0:b.nodes[r.value]}),l=_e(()=>Object.entries(n.value.nodes).map(b=>({id:b[0],...b[1]}))),a=_e(()=>{if(n.value!=null)return Object.entries(n.value.nodes).filter(b=>b[1].type==="graph").map(b=>({id:b[0],...b[1]}))});Ie(()=>t.mode,()=>s());function c(b){localStorage.setItem("wanderer:data",JSON.stringify(b))}function u(){localStorage.removeItem("wanderer:data"),t.mode="live"}function f(){const b=JSON.parse(localStorage.getItem("wanderer:data"));b.exported=new Date().getTime();const M=JSON.stringify(b,null,2),P=new Blob([M],{type:"application/json"}),E=document.createElement("a");E.download="db.json",E.href=window.URL.createObjectURL(P),E.dataset.downloadurl=["text/json",E.download,E.href].join(":");const D=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});E.dispatchEvent(D),E.remove()}const m=_e(()=>Th(n.value));Ie(m,b=>{t.edit&&c(b)},{deep:!0});function h(b,M,P=!1){const E=a.value.filter(T=>{var H;return((H=T.allocations)==null?void 0:H[b])!=null}).map(({id:T})=>T);(P?E:[M]).forEach(T=>{delete n.value.nodes[T].allocations[b],n.value.edges=n.value.edges.filter(H=>H.graph!==T||!H.nodes.includes(b))}),(E.length===1&&n.value.nodes[b].type!="graph"||P)&&delete n.value.nodes[b]}function v(b){const M=crypto.randomUUID();return n.value.nodes[M]=b,M}return{init:s,data:n,dataCopy:m,node:i,nodes:l,graphs:a,nodeId:r,nodeOccurances:o,storeData:c,deleteNode:h,createNode:v,exportProject:f,deleteLocalChanges:u}}),Oo=Tt("modal",()=>{const e=ce(!1),t=Rn(),n=ce(null),r=ce(null),s=_e(()=>{switch(r.value){case"node":return t.data.nodes[n.value];case"edge":return t.data.edges.find(l=>l.id===n.value);default:return null}});function o(l,a){n.value=l,r.value=a,e.value=!0}function i(){e.value=!1}return{show:e,item:s,close:i,open:o,type:r,id:n}}),Ph={entity:{label:"dictionary",class:"entity",description:"dictionary",url:"multi-string"},note:{text:"dictionary"},graph:{label:"dictionary",image:"string","media.file":"string","media.subtitles":"dictionary"},image:{label:"dictionary",file:"string"}},Rh={class:"input-text"},Ih=["value"],Mh={__name:"InputText",props:{modelValue:String,label:String,name:String},emits:["update:modelValue"],setup(e){return(t,n)=>(se(),Ce("div",Rh,[We("label",null,[Pn(Ct(e.label)+" ",1),We("input",{type:"text",value:e.modelValue,onChange:n[0]||(n[0]=r=>t.$emit("update:modelValue",r.target.value))},null,40,Ih)])]))}},Nh=ht(Mh,[["__scopeId","data-v-a44ecce0"]]),za={__name:"LocalizeText",props:{text:{type:[String,Object,Array],default:null},separator:{type:String,default:"; "}},setup(e){const t=es(),n=e,r=_e(()=>s(n.text));function s(o){if(typeof o=="string")return o;if(o!==null){if(Array.isArray(o))return o.map(i=>s(i)).join(n.separator);if(typeof o=="object")return t.localize(o)}}return(o,i)=>Ct(r.value)}},St=new Uint32Array(65536),Lh=(e,t)=>{const n=e.length,r=t.length,s=1<{const n=t.length,r=e.length,s=[],o=[],i=Math.ceil(n/32),l=Math.ceil(r/32);for(let v=0;v>>E&1,H=s[E/32|0]>>>E&1,Z=D|v,$=((D|H)&b)+b^b|D|H;let U=v|~($|b),R=b&$;U>>>31^T&&(o[E/32|0]^=1<>>31^H&&(s[E/32|0]^=1<>>v&1,P=s[v/32|0]>>>v&1,E=b|c,D=((b|P)&u)+u^u|b|P;let T=c|~(D|u),H=u&D;h+=T>>>r-1&1,h-=H>>>r-1&1,T>>>31^M&&(o[v/32|0]^=1<>>31^P&&(s[v/32|0]^=1<{if(e.length(se(),Ce("div",{class:Tn(["list-wrapper",{horizontal:e.horizontal,"equal-size":e.equalSize,hide:e.hide}])},[ho(t.$slots,"default",{},void 0,!0)],2))}},To=ht(Dh,[["__scopeId","data-v-4cd57173"]]),Fh=["disabled"],Vh=["onClick"],kh={__name:"SearchableList",props:{context:{type:Object,default:()=>({nodeType:"entity"})}},emits:["select-item"],setup(e,{emit:t}){const n=e,r=t,s=Rn(),o=ur(),i=es(),l=ce(""),a=_e(()=>{const u=s.nodes.filter(f=>f.type===n.context.nodeType);return l.value.length===0?u:l.value.length<3?u.filter(f=>new RegExp(`^${l.value}`).test(i.localize(f.label))).sort((f,m)=>i.localize(f.label){const m=l.value,h=i.localize(f.label);return{distance:jh(m,h)/Math.max(m.length,h.length),node:f}}).filter(({distance:f})=>f<.5).sort((f,m)=>f.distance-m.distance).map(({node:f,distance:m})=>({...f,distance:m}))});function c(){const u=s.createNode({type:n.context.nodeType,label:{[o.lang]:l.value}});r("select-item",u)}return(u,f)=>(se(),Ke(To,{class:"context-menu-search"},{default:Jn(()=>[Bu(We("input",{placeholder:"search",onClick:f[0]||(f[0]=Sa(()=>{},["stop"])),"onUpdate:modelValue":f[1]||(f[1]=m=>l.value=m)},null,512),[[wd,l.value]]),We("button",{disabled:l.value==="",onClick:c},"add "+Ct(l.value),9,Fh),(se(!0),Ce(ye,null,Qn(a.value,(m,h)=>(se(),Ce("button",{key:h,onClick:v=>r("select-item",m.id)},[Ee(za,{text:m.label},null,8,["text"]),Pn(" – "+Ct(m.distance),1)],8,Vh))),128))]),_:1}))}},Hh=ht(kh,[["__scopeId","data-v-1345d679"]]),Bh={class:"value"},Uh={__name:"InputSelectNode",props:{modelValue:[String,Boolean,Number],options:Array,label:String,name:String,type:{type:String,default:"entity"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,r=Rn(),s=ce(!1);function o(i){n("update:modelValue",i),s.value=!1}return(i,l)=>{var a;return se(),Ce(ye,null,[We("button",{class:"input-select-display",onClick:l[0]||(l[0]=c=>s.value=!s.value)},[We("label",null,Ct(e.label),1),We("span",Bh,[e.modelValue?(se(),Ke(za,{key:0,text:(a=ne(r).data.nodes[e.modelValue])==null?void 0:a.label},null,8,["text"])):(se(),Ce(ye,{key:1},[Pn("–")],64))])]),s.value?(se(),Ke(Hh,{key:0,class:"input-select",onSelectItem:o})):Bn("",!0)],64)}}},Xi=ht(Uh,[["__scopeId","data-v-32ff277a"]]),Kh={class:"input-text"},Wh={class:"labels"},qh={class:"languages"},zh=["for"],Gh=["for"],Jh=["id","value","placeholder","onChange"],Yh=["id","value","placeholder"],Qh={__name:"InputDictionary",props:{modelValue:{type:Object,default:()=>({})},label:String},emits:["update:modelValue"],setup(e){ur();const t=es(),n=ka(),r=crypto.randomUUID();return(s,o)=>{var i;return se(),Ce("div",Kh,[We("span",Wh,[Pn(Ct(e.label)+" ",1),We("span",qh,[(se(!0),Ce(ye,null,Qn(ne(n).languages,l=>(se(),Ce("label",{key:l,for:`${ne(r)}-${l}`},Ct(l),9,zh))),128)),We("label",{for:`${ne(r)}-universal`}," ♥ ",8,Gh)])]),(se(!0),Ce(ye,null,Qn(ne(n).languages,l=>{var a;return se(),Ce("input",{key:l,id:`${ne(r)}-${l}`,type:"text",value:(a=e.modelValue)==null?void 0:a[l],placeholder:ne(t).localize(e.modelValue),onChange:c=>s.$emit("update:modelValue",{...e.modelValue,[l]:c.target.value})},null,40,Jh)}),128)),We("input",{id:`${ne(r)}-universal`,type:"text",value:(i=e.modelValue)==null?void 0:i.universal,placeholder:ne(t).localize(e.modelValue),onChange:o[0]||(o[0]=l=>s.$emit("update:modelValue",{...e.modelValue,universal:l.target.value}))},null,40,Yh)])}}},Ga=ht(Qh,[["__scopeId","data-v-ac6aac48"]]),Xh={__name:"ModalNode",setup(e){const t=["gray","blue-gray","blue","indigo","violet","magenta","red","orange","gold","yellow","lime","green","teal","cyan"],n=Oo(),r=_e(()=>Object.entries(Ph[n.item.type]).map(i=>({key:i[0],label:i[0].replaceAll("."," "),type:i[1],value:s(n.item,i[0])})));function s(i,l){const a=l.split(/\.(.*)/s);return a.length>1?s(i[a[0]],a[1]):i==null?void 0:i[l]}function o(i,l,a){const c=l.split(/\.(.*)/s);if(c.length>1)return i[c[0]]==null&&(i[c[0]]={}),o(i[c[0]],c[1],a);i[l]=a}return(i,l)=>(se(!0),Ce(ye,null,Qn(r.value,a=>(se(),Ce(ye,{key:a.label},[a.type==="string"?(se(),Ke(Nh,{key:0,label:a.label,"model-value":a.value,"onUpdate:modelValue":c=>o(ne(n).item,a.key,c)},null,8,["label","model-value","onUpdate:modelValue"])):a.type==="dictionary"?(se(),Ke(Ga,{key:1,label:a.label,"model-value":a.value,"onUpdate:modelValue":c=>o(ne(n).item,a.key,c)},null,8,["label","model-value","onUpdate:modelValue"])):a.type==="color"?(se(),Ke(Xi,{key:2,label:a.label,"model-value":a.value,"onUpdate:modelValue":c=>o(ne(n).item,a.key,c),options:t},null,8,["label","model-value","onUpdate:modelValue"])):(se(),Ke(Xi,{key:3,type:a.type,label:a.label,"model-value":a.value,"onUpdate:modelValue":c=>o(ne(n).item,a.key,c)},null,8,["type","label","model-value","onUpdate:modelValue"]))],64))),128))}},Zh={},eg={class:"input-segment-item"};function tg(e,t){return se(),Ce("span",eg,[ho(e.$slots,"default",{},void 0,!0)])}const ng=ht(Zh,[["render",tg],["__scopeId","data-v-3497f0b1"]]),rg=["title"],sg=["name","checked","disabled","value","onClick","onChange"],og={__name:"InputSegment",props:{modelValue:[String,Boolean,Number],options:Array,label:String,name:String,horizontal:Boolean,equalSize:Boolean,collapse:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=ce(!1),s=t;function o(l){(!r.value||n.modelValue===(l.value===void 0?l:l.value))&&(r.value=!r.value)}function i(l){s("update:modelValue",l.value===void 0?l:l.value),r.value=!1}return(l,a)=>(se(),Ke(To,{horizontal:e.horizontal,"equal-size":e.equalSize,hide:e.collapse&&!r.value},{default:Jn(()=>[(se(!0),Ce(ye,null,Qn(e.options.filter(c=>!e.collapse||r.value||(c.value===void 0?c:c.value)===e.modelValue),c=>(se(),Ce("label",{class:Tn(["label",{collapse:e.collapse}]),key:c.value===void 0?c:c.value,title:c.tooltip},[c.slot?ho(l.$slots,c.slot,{key:1},void 0,!0):(se(),Ke(ng,{key:0},{default:Jn(()=>[Pn(Ct(c.label??c.value??c),1)]),_:2},1024)),We("input",{type:"radio",name:e.name,checked:(c.value===void 0?c:c.value)===e.modelValue,disabled:c.disabled,value:c.value??c,onClick:u=>o(c),onChange:u=>i(c)},null,40,sg)],10,rg))),128))]),_:3},8,["horizontal","equal-size","hide"]))}},ig=ht(og,[["__scopeId","data-v-42cd3857"]]),lg={__name:"ModalEdge",setup(e){const t=[{label:"–",value:null},"→","←","↔"],n=Oo();return(r,s)=>(se(),Ce(ye,null,[Ee(Ga,{label:"label",modelValue:ne(n).item.label,"onUpdate:modelValue":s[0]||(s[0]=o=>ne(n).item.label=o)},null,8,["modelValue"]),Ee(ig,{label:"arrow",horizontal:"",modelValue:ne(n).item.arrow,"onUpdate:modelValue":s[1]||(s[1]=o=>ne(n).item.arrow=o),options:t,"equal-size":""},null,8,["modelValue"])],64))}},ag=ht(lg,[["__scopeId","data-v-701763ed"]]),cg={__name:"TheModal",setup(e){const t=Oo();return(n,r)=>ne(t).show?(se(),Ce("div",{key:0,class:"modal",onClick:r[1]||(r[1]=s=>ne(t).close())},[Ee(To,{onClick:r[0]||(r[0]=Sa(()=>{},["stop"]))},{default:Jn(()=>[ne(t).type==="node"?(se(),Ke(Xh,{key:0})):Bn("",!0),ne(t).type==="edge"?(se(),Ke(ag,{key:1})):Bn("",!0)]),_:1})])):Bn("",!0)}},ug=ht(cg,[["__scopeId","data-v-3775815f"]]),fg={__name:"App",setup(e){const t=kp();return zr(()=>t.startActivityTracking()),po(()=>t.stopActivityTracking()),(n,r)=>(se(),Ce(ye,null,[Ee(ne(Va)),Ee(Up),Ee(ug)],64))}},dg="modulepreload",pg=function(e,t){return new URL(e,t).href},Zi={},Er=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));s=Promise.allSettled(n.map(c=>{if(c=pg(c,r),c in Zi)return;Zi[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(!!r)for(let v=i.length-1;v>=0;v--){const b=i[v];if(b.href===c&&(!u||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${f}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":dg,u||(h.as="script"),h.crossOrigin="",h.href=c,a&&h.setAttribute("nonce",a),document.head.appendChild(h),u)return new Promise((v,b)=>{h.addEventListener("load",v),h.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return s.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},Ja=Dp({history:hp("./"),routes:[{path:"/",name:"home",redirect:{name:"list",params:{type:"graph"}}},{path:"/settings",name:"settings",component:()=>Er(()=>import("./SettingsView-BEte1Xwh.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)},{path:"/:type",name:"list",component:()=>Er(()=>import("./ListView-B82gfFes.js"),__vite__mapDeps([4,5,6,1,2,7]),import.meta.url)},{path:"/:type/:id",name:"graph",component:()=>Er(()=>import("./GraphView-BY2yBi6p.js"),__vite__mapDeps([8,9,10,5,6,1,2,11]),import.meta.url),meta:{hideMenuBar:!1}},{path:"/share/:id",name:"open"},{path:"/video",name:"video",component:()=>Er(()=>import("./VideoView-CjkiKEtN.js"),__vite__mapDeps([12,9,10,13]),import.meta.url),meta:{hideMenuBar:!0}}]});Ja.beforeEach(async(e,t,n)=>{var o,i,l,a,c,u,f,m,h,v,b,M;console.log(t);const r=Rn(),s=Ua();r.data===null&&["list","graph","video"].includes(e.name)&&await r.init(),t.name==="graph"&&((l=(i=r.data.nodes)==null?void 0:i[(o=t.params)==null?void 0:o.id])!=null&&l.style&&Object.keys((u=(c=r.data.nodes)==null?void 0:c[(a=t.params)==null?void 0:a.id])==null?void 0:u.style).forEach(P=>{document.querySelector(":root").style.removeProperty(P)}),t.params.type==="entity"&&(document.querySelector(":root").style.removeProperty("--color-background"),document.querySelector(":root").style.removeProperty("--color-text"),document.querySelector(":root").style.removeProperty("--color-edge"),document.querySelector(":root").style.removeProperty("--colorBackground"))),e.name==="graph"&&(r.nodeId=e.params.id,(h=(m=r.data.nodes)==null?void 0:m[(f=e.params)==null?void 0:f.id])!=null&&h.style?Object.entries((M=(b=r.data.nodes)==null?void 0:b[(v=e.params)==null?void 0:v.id])==null?void 0:M.style).forEach(P=>{document.querySelector(":root").style.setProperty(...P)}):e.params.type==="entity"&&(document.querySelector(":root").style.setProperty("--color-background","var(--color-network-background)"),document.querySelector(":root").style.setProperty("--color-text","var(--color-network-text)"),document.querySelector(":root").style.setProperty("--color-edge","var(--color-network-edge)"),document.querySelector(":root").style.setProperty("--colorBackground","red"))),e.params.type==="graph"&&e.name==="graph"&&(s.graphId=e.params.id),e.meta.initializeView=e.name!==t.name,n()});const Po=Cd(fg);Po.use(Rd());Po.use(Ja);Po.mount("#app");export{Ua as A,_e as B,an as C,zr as D,Bl as E,ye as F,es as G,Ie as H,Sn as I,gg as J,bg as K,To as L,Ch as M,Sr as N,hg as O,$f as P,Vp as Q,kp as R,Hp as S,mg as T,uh as U,Hh as V,vg as W,Sg as X,ig as Y,ht as _,ka as a,Rn as b,Ce as c,Ee as d,We as e,ne as f,yg as g,Ke as h,Jn as i,za as j,ho as k,tf as l,ce as m,Tn as n,se as o,Oo as p,wg as q,Qn as r,Bn as s,Ct as t,ur as u,_g as v,Bu as w,Pn as x,Sa as y,Tt as z}; + */var xo=new WeakMap,vh=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),yh=function(){function e(t,n){this.callback=t,this.observer=n}return e}();function _h(e){return xo.get(e)}function bh(e,t){return e.observers.get(t)}function wh(e,t){e.observers.delete(t.callback)}function Sh(e,t){t.unobserve()}function Eh(e,t){var n=[],r,s=_h(e);if(!s)s=new vh(e),xo.set(e,s);else{var o=bh(s,t);r=o&&o.observer}if(r)return r;if(r={},s.value=Ze(e),t){r.callback=t,r.next=null;var i=function(){zs(r)},l=function(){clearTimeout(r.next),r.next=setTimeout(i)};typeof window<"u"&&(window.addEventListener("mouseup",l),window.addEventListener("keyup",l),window.addEventListener("mousedown",l),window.addEventListener("keydown",l),window.addEventListener("change",l))}return r.patches=n,r.object=e,r.unobserve=function(){zs(r),clearTimeout(r.next),wh(s,r),typeof window<"u"&&(window.removeEventListener("mouseup",l),window.removeEventListener("keyup",l),window.removeEventListener("mousedown",l),window.removeEventListener("keydown",l),window.removeEventListener("change",l))},s.observers.set(t,new yh(t,r)),r}function zs(e,t){t===void 0&&(t=!1);var n=xo.get(e.object);Co(n.value,e.object,e.patches,"",t),e.patches.length&&Ao(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function Co(e,t,n,r,s){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var o=Ks(t),i=Ks(e),l=!1,a=i.length-1;a>=0;a--){var c=i[a],u=e[c];if(Us(t,c)&&!(t[c]===void 0&&u!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof u=="object"&&u!=null&&typeof f=="object"&&f!=null&&Array.isArray(u)===Array.isArray(f)?Co(u,f,n,r+"/"+Zt(c),s):u!==f&&(s&&n.push({op:"test",path:r+"/"+Zt(c),value:Ze(u)}),n.push({op:"replace",path:r+"/"+Zt(c),value:Ze(f)}))}else Array.isArray(e)===Array.isArray(t)?(s&&n.push({op:"test",path:r+"/"+Zt(c),value:Ze(u)}),n.push({op:"remove",path:r+"/"+Zt(c)}),l=!0):(s&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!l&&o.length==i.length))for(var a=0;a-1}function uc(d,_){var A=this.__data__,q=dr(A,d);return q<0?A.push([d,_]):A[q][1]=_,this}vt.prototype.clear=ic,vt.prototype.delete=lc,vt.prototype.get=ac,vt.prototype.has=cc,vt.prototype.set=uc;function fn(d){var _=-1,A=d?d.length:0;for(this.clear();++_-1&&d%1==0&&d<_}function Bc(d){var _=typeof d;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?d!=="__proto__":d===null}function Uc(d){return!!O&&O in d}function $o(d){var _=d&&d.constructor,A=typeof _=="function"&&_.prototype||L;return d===A}function Gt(d){if(d!=null){try{return J.call(d)}catch{}try{return d+""}catch{}}return""}function Kc(d){return ss(d,!0,!0)}function jo(d,_){return d===_||d!==d&&_!==_}function Wc(d){return qc(d)&&F.call(d,"callee")&&(!Ye.call(d,"callee")||K.call(d)==o)}var is=Array.isArray;function Do(d){return d!=null&&Gc(d.length)&&!Fo(d)}function qc(d){return Jc(d)&&Do(d)}var zc=fr||Qc;function Fo(d){var _=hr(d)?K.call(d):"";return _==u||_==f}function Gc(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=s}function hr(d){var _=typeof d;return!!d&&(_=="object"||_=="function")}function Jc(d){return!!d&&typeof d=="object"}function ls(d){return Do(d)?wc(d):Oc(d)}function Yc(){return[]}function Qc(){return!1}e.exports=Kc})(Fr,Fr.exports);var Oh=Fr.exports;const Th=Ch(Oh),In=Tt("data",()=>{const e=ka(),t=ur(),n=ce(null),r=ce(null);async function s(){if(n.value=await fetch(e.wandererStatic).then(b=>b.json()),t.mode!=="live"&&localStorage.getItem("wanderer:data")!=null){const b=JSON.parse(localStorage.getItem("wanderer:data"));n.value.exported===b.exported||!window.confirm("Your local changes are based on a dataset version that does not match the live version. Do you want to discard your local changes and make a local copy of the latest live version?")?n.value=b:localStorage.setItem("wanderer:data",JSON.stringify(n.value))}}const o=ye(()=>i.value==null||i.value.type==="graph"?{}:Object.fromEntries(Object.entries(n.value.nodes).filter(b=>b[1].type==="graph"&&Object.prototype.hasOwnProperty.call(b[1].allocations??{},r.value)))),i=ye(()=>{var b;return(b=n.value)==null?void 0:b.nodes[r.value]}),l=ye(()=>Object.entries(n.value.nodes).map(b=>({id:b[0],...b[1]}))),a=ye(()=>{if(n.value!=null)return Object.entries(n.value.nodes).filter(b=>b[1].type==="graph").map(b=>({id:b[0],...b[1]}))});Ie(()=>t.mode,()=>s());function c(b){localStorage.setItem("wanderer:data",JSON.stringify(b))}function u(){localStorage.removeItem("wanderer:data"),t.mode="live"}function f(){const b=JSON.parse(localStorage.getItem("wanderer:data"));b.exported=new Date().getTime();const M=JSON.stringify(b,null,2),P=new Blob([M],{type:"application/json"}),E=document.createElement("a");E.download="db.json",E.href=window.URL.createObjectURL(P),E.dataset.downloadurl=["text/json",E.download,E.href].join(":");const D=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});E.dispatchEvent(D),E.remove()}const m=ye(()=>Th(n.value));Ie(m,b=>{t.edit&&c(b)},{deep:!0});function h(b,M,P=!1){const E=a.value.filter(T=>{var H;return((H=T.allocations)==null?void 0:H[b])!=null}).map(({id:T})=>T);(P?E:[M]).forEach(T=>{delete n.value.nodes[T].allocations[b],n.value.edges=n.value.edges.filter(H=>H.graph!==T||!H.nodes.includes(b))}),(E.length===1&&n.value.nodes[b].type!="graph"||P)&&delete n.value.nodes[b]}function v(b){const M=crypto.randomUUID();return n.value.nodes[M]=b,M}return{init:s,data:n,dataCopy:m,node:i,nodes:l,graphs:a,nodeId:r,nodeOccurances:o,storeData:c,deleteNode:h,createNode:v,exportProject:f,deleteLocalChanges:u}}),Oo=Tt("modal",()=>{const e=ce(!1),t=In(),n=ce(null),r=ce(null),s=ye(()=>{switch(r.value){case"node":return t.data.nodes[n.value];case"edge":return t.data.edges.find(l=>l.id===n.value);default:return null}});function o(l,a){n.value=l,r.value=a,e.value=!0}function i(){e.value=!1}return{show:e,item:s,close:i,open:o,type:r,id:n}}),Ph={entity:{label:"dictionary",class:"entity",description:"dictionary",url:"multi-string"},note:{text:"dictionary"},graph:{label:"dictionary",image:"string","media.file":"string","media.subtitles":"dictionary"},image:{label:"dictionary",file:"string"}},Rh={class:"input-text"},Ih=["value"],Mh={__name:"InputText",props:{modelValue:String,label:String,name:String},emits:["update:modelValue"],setup(e){return(t,n)=>(ee(),be("div",Rh,[Me("label",null,[un(at(e.label)+" ",1),Me("input",{type:"text",value:e.modelValue,onChange:n[0]||(n[0]=r=>t.$emit("update:modelValue",r.target.value))},null,40,Ih)])]))}},Nh=ft(Mh,[["__scopeId","data-v-a44ecce0"]]),za={__name:"LocalizeText",props:{text:{type:[String,Object,Array],default:null},separator:{type:String,default:"; "},strict:{type:Boolean,default:!1}},setup(e){const t=es(),n=e,r=ye(()=>s(n.text));function s(o){if(typeof o=="string")return o;if(o!==null){if(Array.isArray(o))return o.map(i=>s(i)).join(n.separator);if(typeof o=="object")return t.localize(o,n.strict)}}return(o,i)=>at(r.value)}},Et=new Uint32Array(65536),Lh=(e,t)=>{const n=e.length,r=t.length,s=1<{const n=t.length,r=e.length,s=[],o=[],i=Math.ceil(n/32),l=Math.ceil(r/32);for(let v=0;v>>E&1,H=s[E/32|0]>>>E&1,Z=D|v,$=((D|H)&b)+b^b|D|H;let U=v|~($|b),R=b&$;U>>>31^T&&(o[E/32|0]^=1<>>31^H&&(s[E/32|0]^=1<>>v&1,P=s[v/32|0]>>>v&1,E=b|c,D=((b|P)&u)+u^u|b|P;let T=c|~(D|u),H=u&D;h+=T>>>r-1&1,h-=H>>>r-1&1,T>>>31^M&&(o[v/32|0]^=1<>>31^P&&(s[v/32|0]^=1<{if(e.length(ee(),be("div",{class:Rn(["list-wrapper",{horizontal:e.horizontal,"equal-size":e.equalSize,hide:e.hide}])},[ho(t.$slots,"default",{},void 0,!0)],2))}},To=ft(Dh,[["__scopeId","data-v-4cd57173"]]),Fh=["disabled"],Vh=["onClick"],kh={__name:"SearchableList",props:{context:{type:Object,default:()=>({nodeType:"entity"})}},emits:["select-item"],setup(e,{emit:t}){const n=e,r=t,s=In(),o=ur(),i=es(),l=ce(""),a=ye(()=>{const u=s.nodes.filter(f=>f.type===n.context.nodeType);return l.value.length===0?u:l.value.length<3?u.filter(f=>new RegExp(`^${l.value}`).test(i.localize(f.label))).sort((f,m)=>i.localize(f.label){const m=l.value,h=i.localize(f.label);return{distance:jh(m,h)/Math.max(m.length,h.length),node:f}}).filter(({distance:f})=>f<.5).sort((f,m)=>f.distance-m.distance).map(({node:f,distance:m})=>({...f,distance:m}))});function c(){const u=s.createNode({type:n.context.nodeType,label:{[o.lang]:l.value}});r("select-item",u)}return(u,f)=>(ee(),Fe(To,{class:"context-menu-search"},{default:Yn(()=>[Bu(Me("input",{placeholder:"search",onClick:f[0]||(f[0]=Sa(()=>{},["stop"])),"onUpdate:modelValue":f[1]||(f[1]=m=>l.value=m)},null,512),[[wd,l.value]]),Me("button",{disabled:l.value==="",onClick:c},"add "+at(l.value),9,Fh),(ee(!0),be(ge,null,ln(a.value,(m,h)=>(ee(),be("button",{key:h,onClick:v=>r("select-item",m.id)},[Ae(za,{text:m.label},null,8,["text"]),un(" – "+at(m.distance),1)],8,Vh))),128))]),_:1}))}},Hh=ft(kh,[["__scopeId","data-v-1345d679"]]),Bh={class:"value"},Uh={__name:"InputSelectNode",props:{modelValue:[String,Boolean,Number],options:Array,label:String,name:String,type:{type:String,default:"entity"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,r=In(),s=ce(!1);function o(i){n("update:modelValue",i),s.value=!1}return(i,l)=>{var a;return ee(),be(ge,null,[Me("button",{class:"input-select-display",onClick:l[0]||(l[0]=c=>s.value=!s.value)},[Me("label",null,at(e.label),1),Me("span",Bh,[e.modelValue?(ee(),Fe(za,{key:0,text:(a=ne(r).data.nodes[e.modelValue])==null?void 0:a.label},null,8,["text"])):(ee(),be(ge,{key:1},[un("–")],64))])]),s.value?(ee(),Fe(Hh,{key:0,class:"input-select",onSelectItem:o})):Un("",!0)],64)}}},Xi=ft(Uh,[["__scopeId","data-v-32ff277a"]]),Kh={class:"input-text"},Wh={class:"labels"},qh={class:"languages"},zh=["for"],Gh=["for"],Jh=["id","value","placeholder","onChange"],Yh=["id","value","placeholder"],Qh={__name:"InputDictionary",props:{modelValue:{type:Object,default:()=>({})},label:String},emits:["update:modelValue"],setup(e){ur();const t=es(),n=ka(),r=crypto.randomUUID();return(s,o)=>{var i;return ee(),be("div",Kh,[Me("span",Wh,[un(at(e.label)+" ",1),Me("span",qh,[(ee(!0),be(ge,null,ln(ne(n).languages,l=>(ee(),be("label",{key:l,for:`${ne(r)}-${l}`},at(l),9,zh))),128)),Me("label",{for:`${ne(r)}-universal`}," ♥ ",8,Gh)])]),(ee(!0),be(ge,null,ln(ne(n).languages,l=>{var a;return ee(),be("input",{key:l,id:`${ne(r)}-${l}`,type:"text",value:(a=e.modelValue)==null?void 0:a[l],placeholder:ne(t).localize(e.modelValue),onChange:c=>s.$emit("update:modelValue",{...e.modelValue,[l]:c.target.value})},null,40,Jh)}),128)),Me("input",{id:`${ne(r)}-universal`,type:"text",value:(i=e.modelValue)==null?void 0:i.universal,placeholder:ne(t).localize(e.modelValue),onChange:o[0]||(o[0]=l=>s.$emit("update:modelValue",{...e.modelValue,universal:l.target.value}))},null,40,Yh)])}}},Ga=ft(Qh,[["__scopeId","data-v-937644b9"]]),Xh={class:"input-text"},Zh={class:"labels"},eg={class:"languages"},tg=["for"],ng=["id","value","onInput"],rg={__name:"InputMultiString",props:{modelValue:{type:Array,default:()=>[]},label:String},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=crypto.randomUUID(),o=ye({get(){return[...n.modelValue,""]},set(l){console.log("huhu"),r("update:modelValue",l.filter(a=>a.trim()!==""))}});function i(l,a){console.log(l,a),o.value=o.value.toSpliced(l,1,a)}return(l,a)=>(ee(),be("div",Xh,[Me("span",Zh,[un(at(e.label)+" ",1),Me("span",eg,[(ee(!0),be(ge,null,ln(o.value,(c,u)=>(ee(),be("label",{key:u,for:`${ne(s)}-${u}`},at(u),9,tg))),128))])]),(ee(!0),be(ge,null,ln(o.value,(c,u)=>(ee(),be("input",{key:u,id:`${ne(s)}-${u}`,type:"text",value:c,onInput:f=>i(u,f.target.value)},null,40,ng))),128))]))}},sg=ft(rg,[["__scopeId","data-v-2f3bc058"]]),og={__name:"ModalNode",setup(e){const t=["gray","blue-gray","blue","indigo","violet","magenta","red","orange","gold","yellow","lime","green","teal","cyan"],n=Oo(),r=ye(()=>Object.entries(Ph[n.item.type]).map(i=>({key:i[0],label:i[0].replaceAll("."," "),type:i[1],value:s(n.item,i[0])})));function s(i,l){const a=l.split(/\.(.*)/s);return a.length>1?s(i[a[0]],a[1]):i==null?void 0:i[l]}function o(i,l,a){const c=l.split(/\.(.*)/s);if(c.length>1)return i[c[0]]==null&&(i[c[0]]={}),o(i[c[0]],c[1],a);i[l]=a}return(i,l)=>(ee(!0),be(ge,null,ln(r.value,a=>(ee(),be(ge,{key:a.label},[a.type==="string"?(ee(),Fe(Nh,{key:0,label:a.label,"model-value":a.value,"onUpdate:modelValue":c=>o(ne(n).item,a.key,c)},null,8,["label","model-value","onUpdate:modelValue"])):a.type==="dictionary"?(ee(),Fe(Ga,{key:1,label:a.label,"model-value":a.value,"onUpdate:modelValue":c=>o(ne(n).item,a.key,c)},null,8,["label","model-value","onUpdate:modelValue"])):a.type==="multi-string"?(ee(),Fe(sg,{key:2,label:a.label,"model-value":a.value,"onUpdate:modelValue":c=>o(ne(n).item,a.key,c)},null,8,["label","model-value","onUpdate:modelValue"])):a.type==="color"?(ee(),Fe(Xi,{key:3,label:a.label,"model-value":a.value,"onUpdate:modelValue":c=>o(ne(n).item,a.key,c),options:t},null,8,["label","model-value","onUpdate:modelValue"])):(ee(),Fe(Xi,{key:4,type:a.type,label:a.label,"model-value":a.value,"onUpdate:modelValue":c=>o(ne(n).item,a.key,c)},null,8,["type","label","model-value","onUpdate:modelValue"]))],64))),128))}},ig={},lg={class:"input-segment-item"};function ag(e,t){return ee(),be("span",lg,[ho(e.$slots,"default",{},void 0,!0)])}const cg=ft(ig,[["render",ag],["__scopeId","data-v-3497f0b1"]]),ug=["title"],fg=["name","checked","disabled","value","onClick","onChange"],dg={__name:"InputSegment",props:{modelValue:[String,Boolean,Number],options:Array,label:String,name:String,horizontal:Boolean,equalSize:Boolean,collapse:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=ce(!1),s=t;function o(l){(!r.value||n.modelValue===(l.value===void 0?l:l.value))&&(r.value=!r.value)}function i(l){s("update:modelValue",l.value===void 0?l:l.value),r.value=!1}return(l,a)=>(ee(),Fe(To,{horizontal:e.horizontal,"equal-size":e.equalSize,hide:e.collapse&&!r.value},{default:Yn(()=>[(ee(!0),be(ge,null,ln(e.options.filter(c=>!e.collapse||r.value||(c.value===void 0?c:c.value)===e.modelValue),c=>(ee(),be("label",{class:Rn(["label",{collapse:e.collapse}]),key:c.value===void 0?c:c.value,title:c.tooltip},[c.slot?ho(l.$slots,c.slot,{key:1},void 0,!0):(ee(),Fe(cg,{key:0},{default:Yn(()=>[un(at(c.label??c.value??c),1)]),_:2},1024)),Me("input",{type:"radio",name:e.name,checked:(c.value===void 0?c:c.value)===e.modelValue,disabled:c.disabled,value:c.value??c,onClick:u=>o(c),onChange:u=>i(c)},null,40,fg)],10,ug))),128))]),_:3},8,["horizontal","equal-size","hide"]))}},pg=ft(dg,[["__scopeId","data-v-42cd3857"]]),hg={__name:"ModalEdge",setup(e){const t=[{label:"–",value:null},"→","←","↔"],n=Oo();return(r,s)=>(ee(),be(ge,null,[Ae(Ga,{label:"label",modelValue:ne(n).item.label,"onUpdate:modelValue":s[0]||(s[0]=o=>ne(n).item.label=o)},null,8,["modelValue"]),Ae(pg,{label:"arrow",horizontal:"",modelValue:ne(n).item.arrow,"onUpdate:modelValue":s[1]||(s[1]=o=>ne(n).item.arrow=o),options:t,"equal-size":""},null,8,["modelValue"])],64))}},gg=ft(hg,[["__scopeId","data-v-701763ed"]]),mg={__name:"TheModal",setup(e){const t=Oo();return(n,r)=>ne(t).show?(ee(),be("div",{key:0,class:"modal",onClick:r[1]||(r[1]=s=>ne(t).close())},[Ae(To,{onClick:r[0]||(r[0]=Sa(()=>{},["stop"]))},{default:Yn(()=>[ne(t).type==="node"?(ee(),Fe(og,{key:0})):Un("",!0),ne(t).type==="edge"?(ee(),Fe(gg,{key:1})):Un("",!0)]),_:1})])):Un("",!0)}},vg=ft(mg,[["__scopeId","data-v-3775815f"]]),yg={__name:"App",setup(e){const t=kp();return zr(()=>t.startActivityTracking()),po(()=>t.stopActivityTracking()),(n,r)=>(ee(),be(ge,null,[Ae(ne(Va)),Ae(Up),Ae(vg)],64))}},_g="modulepreload",bg=function(e,t){return new URL(e,t).href},Zi={},Er=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));s=Promise.allSettled(n.map(c=>{if(c=bg(c,r),c in Zi)return;Zi[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(!!r)for(let v=i.length-1;v>=0;v--){const b=i[v];if(b.href===c&&(!u||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${f}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":_g,u||(h.as="script"),h.crossOrigin="",h.href=c,a&&h.setAttribute("nonce",a),document.head.appendChild(h),u)return new Promise((v,b)=>{h.addEventListener("load",v),h.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return s.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},Ja=Dp({history:hp("./"),routes:[{path:"/",name:"home",redirect:{name:"list",params:{type:"graph"}}},{path:"/settings",name:"settings",component:()=>Er(()=>import("./SettingsView-CLpKzZs0.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)},{path:"/:type",name:"list",component:()=>Er(()=>import("./ListView-ShFDm1yJ.js"),__vite__mapDeps([4,5,6,1,2,7]),import.meta.url)},{path:"/:type/:id",name:"graph",component:()=>Er(()=>import("./GraphView-CCykN0-Y.js"),__vite__mapDeps([8,9,10,5,6,1,2,11]),import.meta.url),meta:{hideMenuBar:!1}},{path:"/share/:id",name:"open"},{path:"/video",name:"video",component:()=>Er(()=>import("./VideoView-6I91swMc.js"),__vite__mapDeps([12,9,10,13]),import.meta.url),meta:{hideMenuBar:!0}}]});Ja.beforeEach(async(e,t,n)=>{var o,i,l,a,c,u,f,m,h,v,b,M;console.log(t);const r=In(),s=Ua();r.data===null&&["list","graph","video"].includes(e.name)&&await r.init(),t.name==="graph"&&((l=(i=r.data.nodes)==null?void 0:i[(o=t.params)==null?void 0:o.id])!=null&&l.style&&Object.keys((u=(c=r.data.nodes)==null?void 0:c[(a=t.params)==null?void 0:a.id])==null?void 0:u.style).forEach(P=>{document.querySelector(":root").style.removeProperty(P)}),t.params.type==="entity"&&(document.querySelector(":root").style.removeProperty("--color-background"),document.querySelector(":root").style.removeProperty("--color-text"),document.querySelector(":root").style.removeProperty("--color-edge"),document.querySelector(":root").style.removeProperty("--colorBackground"))),e.name==="graph"&&(r.nodeId=e.params.id,(h=(m=r.data.nodes)==null?void 0:m[(f=e.params)==null?void 0:f.id])!=null&&h.style?Object.entries((M=(b=r.data.nodes)==null?void 0:b[(v=e.params)==null?void 0:v.id])==null?void 0:M.style).forEach(P=>{document.querySelector(":root").style.setProperty(...P)}):e.params.type==="entity"&&(document.querySelector(":root").style.setProperty("--color-background","var(--color-network-background)"),document.querySelector(":root").style.setProperty("--color-text","var(--color-network-text)"),document.querySelector(":root").style.setProperty("--color-edge","var(--color-network-edge)"),document.querySelector(":root").style.setProperty("--colorBackground","red"))),e.params.type==="graph"&&e.name==="graph"&&(s.graphId=e.params.id),e.meta.initializeView=e.name!==t.name,n()});const Po=Cd(yg);Po.use(Rd());Po.use(Ja);Po.mount("#app");export{Ua as A,ye as B,cn as C,zr as D,Bl as E,ge as F,es as G,Ie as H,An as I,Sg as J,Og as K,To as L,Ch as M,Sr as N,wg as O,$f as P,Vp as Q,kp as R,Hp as S,Eg as T,uh as U,Hh as V,Ag as W,Pg as X,pg as Y,ft as _,ka as a,In as b,be as c,Ae as d,Me as e,ne as f,xg as g,Fe as h,Yn as i,za as j,ho as k,tf as l,ce as m,Rn as n,ee as o,Oo as p,Tg as q,ln as r,Un as s,at as t,ur as u,Cg as v,Bu as w,un as x,Sa as y,Tt as z}; diff --git a/assets/index-CiWSmra5.css b/assets/index-CiWSmra5.css deleted file mode 100644 index f643252..0000000 --- a/assets/index-CiWSmra5.css +++ /dev/null @@ -1 +0,0 @@ -*,*:before,*:after{box-sizing:border-box;margin:0}html{background:var(--color-background)}button{font:inherit;color:inherit;background:none;border:none;cursor:pointer;padding:0;border-radius:var(--border-radius)}button:disabled{color:color-mix(in lab,currentColor,transparent 70%)}@font-face{font-family:Inter;font-weight:100 900;font-display:swap;font-style:oblique 0deg 10deg;src:url(./Inter.var-CTiC9fjq.woff2) format("woff2")}@font-face{font-family:Redaction;src:url(./Redaction-Regular-uAie4j47.woff2) format("woff2");font-weight:400;font-style:normal}@font-face{font-family:Redaction;src:url(./Redaction-Bold-qGagJ1hN.woff2) format("woff2");font-weight:700;font-style:normal}:root{--gray: rgb(117, 117, 117);--blue-gray: rgb(113, 116, 144);--blue: rgb(71, 111, 222);--indigo: rgb(103, 91, 255);--violet: rgb(166, 65, 231);--magenta: rgb(191, 58, 187);--red: rgb(210, 58, 91);--orange: rgb(255, 91, 2);--gold: rgb(235, 166, 46);--yellow: rgb(197, 186, 44);--lime: rgb(166, 185, 50);--green: rgb(50, 134, 75);--teal: rgb(50, 129, 115);--cyan: rgb(51, 128, 132)}:root{--spacing: 20px;--spacing-quad: calc(var(--spacing) * 4);--spacing-double: calc(var(--spacing) * 2);--spacing-half: calc(var(--spacing) * .5);--spacing-quart: calc(var(--spacing) * .25);--border-radius: var(--spacing-quart);--border-radius-large: calc(var(--border-radius) * 1.5);--border-radius-small: calc(var(--border-radius) * .5);--regular: 400;--font-size: 20px;--font-size-small: 16px;--font-size-tiny: 12px;--sans: var(--regular) var(--font-size) / 1.25 "Inter", sans-serif;--serif: var(--regular) var(--font-size) / 1.25 "Redaction", sans-serif;--transition: 1s;--ui-transition: .2s;--color-background: white;--color-text: black;--graph-accent: var(--orange);--ui-accent: var(--color-accent);--color-live: var(--orange);--color-edit: var(--green);--color-preview: var(--violet);--color-accent: var(--color-live);--color-edge: black;--color-edge-highlight: var(--color-accent);--color-network-background: black;--color-network-text: white;--color-network-edge: white;--ui-shadow: 0px 0px 5px color-mix(in lab, var(--color-text), transparent 80%);--blur: blur(7px);transition:--color-background var(--transition)}@property --color-background{syntax: ""; initial-value: white; inherits: true;}html{font:var(--regular) var(--font-size) / 1.25 "Inter",sans-serif;text-rendering:geometricPrecision}html #app{display:grid;min-height:100vh}html h1{font-size:1em;font-weight:900}.anchor[data-v-4bfadffb]{display:none}@supports (anchor-name: --anchor-context-menu){.anchor[data-v-4bfadffb]{display:initial;position:absolute;anchor-name:--anchor-context-menu}}.context-menu.list-wrapper[data-v-4bfadffb]{transform:var(--transform);position:absolute;z-index:1}@supports (anchor-name: --anchor-context-menu){.context-menu.list-wrapper[data-v-4bfadffb]{position-anchor:--anchor-context-menu;transform:none;inset-area:right bottom;margin:-5px 0 0;position-try-options:flip-block,flip-inline,flip-block flip-inline}}.input-text[data-v-a44ecce0]{padding:var(--spacing-quart);-webkit-backdrop-filter:brightness(106%) saturate(10%);backdrop-filter:brightness(106%) saturate(10%)}.input-text label[data-v-a44ecce0]{display:flex;flex-direction:column;gap:var(--spacing-quart);font-size:var(--font-size-tiny);text-transform:uppercase;color:inherit}.input-text input[data-v-a44ecce0]{color:inherit;border:none;font:var(--serif);background:transparent;padding:0;outline:none}.input-text[data-v-a44ecce0]:has(input:focus-visible){outline:1px solid var(--ui-accent)}.list-wrapper[data-v-4cd57173]{--tint: var(--accent, var(--ui-accent));position:relative;display:flex;flex-direction:column;text-align:center;background:color-mix(in lab,var(--tint),rgba(255,255,255,.5) 90%);border-radius:var(--border-radius);padding:var(--border-radius-small);gap:var(--border-radius-small);color:color-mix(in lab,var(--tint),var(--color-text) 60%)}.list-wrapper.horizontal[data-v-4cd57173]{flex-direction:row}.list-wrapper.equal-size[data-v-4cd57173]{display:grid;grid-auto-rows:1fr;grid-auto-flow:rows}.list-wrapper.equal-size.horizontal[data-v-4cd57173]{grid-auto-columns:1fr;grid-auto-flow:column}.list-wrapper.hide[data-v-4cd57173]{background:none}.list-wrapper[data-v-4cd57173]>*{border-radius:var(--border-radius-small)}.list-wrapper[data-v-4cd57173]:before{content:"";position:absolute;width:100%;height:100%;-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);z-index:-1;border-radius:var(--border-radius);top:0;left:0}.context-menu-search[data-v-1345d679]{font-size:var(--font-size-small);min-width:150px;max-height:300px;overflow:auto}.context-menu-search button[data-v-1345d679]{text-align:left;padding:var(--spacing-half);max-width:250px}.context-menu-search button[data-v-1345d679]:not(:disabled):hover{color:var(--ui-accent);background-color:color-mix(in lab,currentColor,transparent 90%)}.input-select-display[data-v-32ff277a]{-webkit-backdrop-filter:brightness(106%) saturate(10%);backdrop-filter:brightness(106%) saturate(10%);padding:var(--spacing-quart);display:flex;flex-direction:column;gap:var(--spacing-quart)}.input-select-display label[data-v-32ff277a]{display:flex;flex-direction:column;gap:var(--spacing-quart);font-size:var(--font-size-tiny);text-transform:uppercase;color:inherit}.input-select-display .value[data-v-32ff277a]{font:var(--serif)}@supports (anchor-name: --anchor-input-select){.input-select-display[data-v-32ff277a]{anchor-name:--anchor-input-select}}.input-select[data-v-32ff277a]{position:absolute;z-index:10;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}@supports (anchor-name: --anchor-input-select){.input-select[data-v-32ff277a]{position-anchor:--anchor-input-select;transform:none;inset-area:bottom;position-try-options:flip-block}}.input-text[data-v-ac6aac48]{padding:var(--spacing-quart);-webkit-backdrop-filter:brightness(106%) saturate(10%);backdrop-filter:brightness(106%) saturate(10%)}.input-text .labels[data-v-ac6aac48]{display:flex;justify-content:space-between;gap:var(--spacing-quart);font-size:var(--font-size-tiny);text-transform:uppercase;color:inherit}.input-text .labels .languages[data-v-ac6aac48]{display:flex;gap:var(--spacing-quart)}.input-text input[data-v-ac6aac48]{color:inherit;border:none;font:var(--serif);background:transparent;padding:0;outline:none;width:0}.input-text input[data-v-ac6aac48]:focus{width:auto}.input-text[data-v-ac6aac48]:has(input:focus-visible){outline:1px solid var(--ui-accent)}.input-text:not(:has(input:focus)) input[data-v-ac6aac48]:first-of-type{width:auto}.input-text:not(:has(input:focus)) label[data-v-ac6aac48]:first-of-type{color:var(--ui-accent);text-decoration:underline}.input-text:has(input:nth-of-type(1):focus) label[data-v-ac6aac48]:nth-of-type(1){color:var(--ui-accent);text-decoration:underline}.input-text:has(input:nth-of-type(2):focus) label[data-v-ac6aac48]:nth-of-type(2){color:var(--ui-accent);text-decoration:underline}.input-text:has(input:nth-of-type(3):focus) label[data-v-ac6aac48]:nth-of-type(3){color:var(--ui-accent);text-decoration:underline}.input-text:has(input:nth-of-type(4):focus) label[data-v-ac6aac48]:nth-of-type(4){color:var(--ui-accent);text-decoration:underline}.input-text:has(input:nth-of-type(5):focus) label[data-v-ac6aac48]:nth-of-type(5){color:var(--ui-accent);text-decoration:underline}.input-segment-item[data-v-3497f0b1]{font-size:var(--font-size-small);padding:var(--spacing-quart) var(--spacing-half)}.label[data-v-42cd3857]{border-radius:var(--border-radius-small);display:flex;justify-content:center;align-items:center;cursor:pointer}.label.collapse[data-v-42cd3857]{align-items:flex-start;justify-content:flex-start}.label[data-v-42cd3857]:has(input:checked){background:color-mix(in lab,var(--ui-accent),transparent 70%);color:var(--ui-accent-deep)}.label[data-v-42cd3857]:hover:not(:has(input:disabled)){background:color-mix(in lab,var(--ui-accent),transparent 70%);color:var(--ui-accent-deep)}.label[data-v-42cd3857]:has(input:focus-visible){outline:1px solid currentColor;outline-offset:-1px}.label input[data-v-42cd3857]{-webkit-appearance:none;-moz-appearance:none;appearance:none}.modal[data-v-3775815f]{position:fixed;width:100vw;height:100vh;z-index:1;display:grid;grid-template-columns:1fr [modal-start] min(100% - var(--spacing),300px) [modal-end] 1fr;grid-template-rows:1fr [modal-start] auto [modal-end] 1fr}.modal>*[data-v-3775815f]{grid-column:modal-start / modal-end;grid-row:modal-start / modal-end;display:flex;flex-direction:column;text-align:start} diff --git a/assets/index-DL9cA3Cx.css b/assets/index-DL9cA3Cx.css new file mode 100644 index 0000000..6d44867 --- /dev/null +++ b/assets/index-DL9cA3Cx.css @@ -0,0 +1 @@ +*,*:before,*:after{box-sizing:border-box;margin:0}html{background:var(--color-background)}button{font:inherit;color:inherit;background:none;border:none;cursor:pointer;padding:0;border-radius:var(--border-radius)}button:disabled{color:color-mix(in lab,currentColor,transparent 70%)}@font-face{font-family:Inter;font-weight:100 900;font-display:swap;font-style:oblique 0deg 10deg;src:url(./Inter.var-CTiC9fjq.woff2) format("woff2")}@font-face{font-family:Redaction;src:url(./Redaction-Regular-uAie4j47.woff2) format("woff2");font-weight:400;font-style:normal}@font-face{font-family:Redaction;src:url(./Redaction-Bold-qGagJ1hN.woff2) format("woff2");font-weight:700;font-style:normal}:root{--gray: rgb(117, 117, 117);--blue-gray: rgb(113, 116, 144);--blue: rgb(71, 111, 222);--indigo: rgb(103, 91, 255);--violet: rgb(166, 65, 231);--magenta: rgb(191, 58, 187);--red: rgb(210, 58, 91);--orange: rgb(255, 91, 2);--gold: rgb(235, 166, 46);--yellow: rgb(197, 186, 44);--lime: rgb(166, 185, 50);--green: rgb(50, 134, 75);--teal: rgb(50, 129, 115);--cyan: rgb(51, 128, 132)}:root{--spacing: 20px;--spacing-quad: calc(var(--spacing) * 4);--spacing-double: calc(var(--spacing) * 2);--spacing-half: calc(var(--spacing) * .5);--spacing-quart: calc(var(--spacing) * .25);--border-radius: var(--spacing-quart);--border-radius-large: calc(var(--border-radius) * 1.5);--border-radius-small: calc(var(--border-radius) * .5);--regular: 400;--font-size: 20px;--font-size-small: 16px;--font-size-tiny: 12px;--sans: var(--regular) var(--font-size) / 1.25 "Inter", sans-serif;--serif: var(--regular) var(--font-size) / 1.25 "Redaction", sans-serif;--serif-small: var(--regular) var(--font-size-small) / 1.25 "Redaction", sans-serif;--transition: 1s;--ui-transition: .2s;--color-background: white;--color-text: black;--graph-accent: var(--orange);--ui-accent: var(--color-accent);--color-live: var(--orange);--color-edit: var(--green);--color-preview: var(--violet);--color-accent: var(--color-live);--color-edge: black;--color-edge-highlight: var(--color-accent);--color-network-background: black;--color-network-text: white;--color-network-edge: white;--ui-shadow: 0px 0px 5px color-mix(in lab, var(--color-text), transparent 80%);--blur: blur(7px);transition:--color-background var(--transition)}@property --color-background{syntax: ""; initial-value: white; inherits: true;}html{font:var(--regular) var(--font-size) / 1.25 "Inter",sans-serif;text-rendering:geometricPrecision}html #app{display:grid;min-height:100vh}html h1{font-size:1em;font-weight:900}.anchor[data-v-4bfadffb]{display:none}@supports (anchor-name: --anchor-context-menu){.anchor[data-v-4bfadffb]{display:initial;position:absolute;anchor-name:--anchor-context-menu}}.context-menu.list-wrapper[data-v-4bfadffb]{transform:var(--transform);position:absolute;z-index:1}@supports (anchor-name: --anchor-context-menu){.context-menu.list-wrapper[data-v-4bfadffb]{position-anchor:--anchor-context-menu;transform:none;inset-area:right bottom;margin:-5px 0 0;position-try-options:flip-block,flip-inline,flip-block flip-inline}}.input-text[data-v-a44ecce0]{padding:var(--spacing-quart);-webkit-backdrop-filter:brightness(106%) saturate(10%);backdrop-filter:brightness(106%) saturate(10%)}.input-text label[data-v-a44ecce0]{display:flex;flex-direction:column;gap:var(--spacing-quart);font-size:var(--font-size-tiny);text-transform:uppercase;color:inherit}.input-text input[data-v-a44ecce0]{color:inherit;border:none;font:var(--serif);background:transparent;padding:0;outline:none}.input-text[data-v-a44ecce0]:has(input:focus-visible){outline:1px solid var(--ui-accent)}.list-wrapper[data-v-4cd57173]{--tint: var(--accent, var(--ui-accent));position:relative;display:flex;flex-direction:column;text-align:center;background:color-mix(in lab,var(--tint),rgba(255,255,255,.5) 90%);border-radius:var(--border-radius);padding:var(--border-radius-small);gap:var(--border-radius-small);color:color-mix(in lab,var(--tint),var(--color-text) 60%)}.list-wrapper.horizontal[data-v-4cd57173]{flex-direction:row}.list-wrapper.equal-size[data-v-4cd57173]{display:grid;grid-auto-rows:1fr;grid-auto-flow:rows}.list-wrapper.equal-size.horizontal[data-v-4cd57173]{grid-auto-columns:1fr;grid-auto-flow:column}.list-wrapper.hide[data-v-4cd57173]{background:none}.list-wrapper[data-v-4cd57173]>*{border-radius:var(--border-radius-small)}.list-wrapper[data-v-4cd57173]:before{content:"";position:absolute;width:100%;height:100%;-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);z-index:-1;border-radius:var(--border-radius);top:0;left:0}.context-menu-search[data-v-1345d679]{font-size:var(--font-size-small);min-width:150px;max-height:300px;overflow:auto}.context-menu-search button[data-v-1345d679]{text-align:left;padding:var(--spacing-half);max-width:250px}.context-menu-search button[data-v-1345d679]:not(:disabled):hover{color:var(--ui-accent);background-color:color-mix(in lab,currentColor,transparent 90%)}.input-select-display[data-v-32ff277a]{-webkit-backdrop-filter:brightness(106%) saturate(10%);backdrop-filter:brightness(106%) saturate(10%);padding:var(--spacing-quart);display:flex;flex-direction:column;gap:var(--spacing-quart)}.input-select-display label[data-v-32ff277a]{display:flex;flex-direction:column;gap:var(--spacing-quart);font-size:var(--font-size-tiny);text-transform:uppercase;color:inherit}.input-select-display .value[data-v-32ff277a]{font:var(--serif)}@supports (anchor-name: --anchor-input-select){.input-select-display[data-v-32ff277a]{anchor-name:--anchor-input-select}}.input-select[data-v-32ff277a]{position:absolute;z-index:10;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}@supports (anchor-name: --anchor-input-select){.input-select[data-v-32ff277a]{position-anchor:--anchor-input-select;transform:none;inset-area:bottom;position-try-options:flip-block}}.input-text[data-v-937644b9]{padding:var(--spacing-quart);-webkit-backdrop-filter:brightness(106%) saturate(10%);backdrop-filter:brightness(106%) saturate(10%)}.input-text .labels[data-v-937644b9]{display:flex;justify-content:space-between;gap:var(--spacing-quart);font-size:var(--font-size-tiny);text-transform:uppercase;color:inherit}.input-text .labels .languages[data-v-937644b9]{display:flex;gap:var(--spacing-quart)}.input-text input[data-v-937644b9]{color:inherit;border:none;font:var(--serif);background:transparent;padding:0;outline:none;width:0}.input-text input[data-v-937644b9]:focus{width:100%}.input-text[data-v-937644b9]:has(input:focus-visible){outline:1px solid var(--ui-accent)}.input-text:not(:has(input:focus)) input[data-v-937644b9]:first-of-type{width:100%}.input-text:not(:has(input:focus)) label[data-v-937644b9]:first-of-type{color:var(--ui-accent);text-decoration:underline}.input-text:has(input:nth-of-type(1):focus) label[data-v-937644b9]:nth-of-type(1){color:var(--ui-accent);text-decoration:underline}.input-text:has(input:nth-of-type(2):focus) label[data-v-937644b9]:nth-of-type(2){color:var(--ui-accent);text-decoration:underline}.input-text:has(input:nth-of-type(3):focus) label[data-v-937644b9]:nth-of-type(3){color:var(--ui-accent);text-decoration:underline}.input-text:has(input:nth-of-type(4):focus) label[data-v-937644b9]:nth-of-type(4){color:var(--ui-accent);text-decoration:underline}.input-text:has(input:nth-of-type(5):focus) label[data-v-937644b9]:nth-of-type(5){color:var(--ui-accent);text-decoration:underline}.input-text[data-v-2f3bc058]{padding:var(--spacing-quart);-webkit-backdrop-filter:brightness(106%) saturate(10%);backdrop-filter:brightness(106%) saturate(10%)}.input-text .labels[data-v-2f3bc058]{display:flex;justify-content:space-between;gap:var(--spacing-quart);font-size:var(--font-size-tiny);text-transform:uppercase;color:inherit}.input-text .labels .languages[data-v-2f3bc058]{display:flex;gap:var(--spacing-quart)}.input-text input[data-v-2f3bc058]{color:inherit;border:none;font:var(--serif);background:transparent;padding:0;outline:none;width:0}.input-text input[data-v-2f3bc058]:focus{width:100%}.input-text[data-v-2f3bc058]:has(input:focus-visible){outline:1px solid var(--ui-accent)}.input-text:not(:has(input:focus)) input[data-v-2f3bc058]:first-of-type{width:100%}.input-text:not(:has(input:focus)) label[data-v-2f3bc058]:first-of-type{color:var(--ui-accent);text-decoration:underline}.input-text:has(input:nth-of-type(1):focus) label[data-v-2f3bc058]:nth-of-type(1){color:var(--ui-accent);text-decoration:underline}.input-text:has(input:nth-of-type(2):focus) label[data-v-2f3bc058]:nth-of-type(2){color:var(--ui-accent);text-decoration:underline}.input-text:has(input:nth-of-type(3):focus) label[data-v-2f3bc058]:nth-of-type(3){color:var(--ui-accent);text-decoration:underline}.input-text:has(input:nth-of-type(4):focus) label[data-v-2f3bc058]:nth-of-type(4){color:var(--ui-accent);text-decoration:underline}.input-text:has(input:nth-of-type(5):focus) label[data-v-2f3bc058]:nth-of-type(5){color:var(--ui-accent);text-decoration:underline}.input-segment-item[data-v-3497f0b1]{font-size:var(--font-size-small);padding:var(--spacing-quart) var(--spacing-half)}.label[data-v-42cd3857]{border-radius:var(--border-radius-small);display:flex;justify-content:center;align-items:center;cursor:pointer}.label.collapse[data-v-42cd3857]{align-items:flex-start;justify-content:flex-start}.label[data-v-42cd3857]:has(input:checked){background:color-mix(in lab,var(--ui-accent),transparent 70%);color:var(--ui-accent-deep)}.label[data-v-42cd3857]:hover:not(:has(input:disabled)){background:color-mix(in lab,var(--ui-accent),transparent 70%);color:var(--ui-accent-deep)}.label[data-v-42cd3857]:has(input:focus-visible){outline:1px solid currentColor;outline-offset:-1px}.label input[data-v-42cd3857]{-webkit-appearance:none;-moz-appearance:none;appearance:none}.modal[data-v-3775815f]{position:fixed;width:100vw;height:100vh;z-index:1;display:grid;grid-template-columns:1fr [modal-start] min(100% - var(--spacing),300px) [modal-end] 1fr;grid-template-rows:1fr [modal-start] auto [modal-end] 1fr}.modal>*[data-v-3775815f]{grid-column:modal-start / modal-end;grid-row:modal-start / modal-end;display:flex;flex-direction:column;text-align:start} diff --git a/index.html b/index.html index 74f6fca..1634b7e 100644 --- a/index.html +++ b/index.html @@ -13,8 +13,8 @@ Wanderer - - + +