@toa.io/extensions.introspection 1.0.0-alpha.316 → 1.0.0-alpha.317
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/ui/dist/_app/immutable/chunks/00t31nIL.js +6 -0
- package/ui/dist/_app/immutable/chunks/{D1mkRuv0.js → 8K1T0coR.js} +1 -1
- package/ui/dist/_app/immutable/chunks/BJp4xBnY.js +1 -0
- package/ui/dist/_app/immutable/chunks/{C5WeeR_-.js → BYnJMGmA.js} +1 -1
- package/ui/dist/_app/immutable/chunks/BZwHTGNH.js +1 -0
- package/ui/dist/_app/immutable/chunks/{CxtEVscZ.js → Bhj2XpQi.js} +1 -1
- package/ui/dist/_app/immutable/chunks/{osFvN5yl.js → BlPxpeDB.js} +1 -1
- package/ui/dist/_app/immutable/chunks/D7vojg4B.js +1 -0
- package/ui/dist/_app/immutable/chunks/{ClmJ_l8e.js → n3-CL90m.js} +1 -1
- package/ui/dist/_app/immutable/entry/{app.DhvFxhxM.js → app.D5l90dv2.js} +2 -2
- package/ui/dist/_app/immutable/entry/start.ccp7JlbP.js +1 -0
- package/ui/dist/_app/immutable/nodes/{0.TIslqCnw.js → 0.CjJPYpxz.js} +1 -1
- package/ui/dist/_app/immutable/nodes/{1.Bq0TaTKJ.js → 1.Bq-sfxeq.js} +1 -1
- package/ui/dist/_app/immutable/nodes/{2.eRZ4ro8B.js → 2.CO5dbPuG.js} +1 -1
- package/ui/dist/_app/immutable/nodes/3.-bV_YSK8.js +1 -0
- package/ui/dist/_app/immutable/nodes/4.Dl8Asw4V.js +1 -0
- package/ui/dist/_app/immutable/nodes/{5.B8GWLIAc.js → 5.ChT9sQQ4.js} +1 -1
- package/ui/dist/_app/version.json +1 -1
- package/ui/dist/index.html +12 -12
- package/ui/dist/_app/immutable/chunks/BUPUz2gM.js +0 -1
- package/ui/dist/_app/immutable/chunks/BasMzhQl.js +0 -1
- package/ui/dist/_app/immutable/chunks/CS0sVo-n.js +0 -1
- package/ui/dist/_app/immutable/chunks/CTGjXSbR.js +0 -6
- package/ui/dist/_app/immutable/entry/start.DPWLDQgO.js +0 -1
- package/ui/dist/_app/immutable/nodes/3.D4qlBNHK.js +0 -1
- package/ui/dist/_app/immutable/nodes/4.TyJtf_R4.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/extensions.introspection",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.317",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Toa Introspection",
|
|
6
6
|
"author": "temich <tema.gurtovoy@gmail.com>",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@toa.io/core": "1.0.0-alpha.315",
|
|
31
|
-
"@toa.io/definitions": "1.0.0-alpha.
|
|
31
|
+
"@toa.io/definitions": "1.0.0-alpha.317",
|
|
32
32
|
"@toa.io/generic": "1.0.0-alpha.311",
|
|
33
|
-
"@toa.io/norm": "1.0.0-alpha.
|
|
33
|
+
"@toa.io/norm": "1.0.0-alpha.317",
|
|
34
34
|
"@toa.io/schemas": "1.0.0-alpha.311",
|
|
35
35
|
"openspan": "1.0.0-alpha.305"
|
|
36
36
|
},
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"prepack": "npm run build:ui",
|
|
41
41
|
"features": "TSX_TSCONFIG_PATH=features/steps/tsconfig.json NODE_OPTIONS=--import=tsx cucumber-js --tags 'not @skip and not @shutdown' && TOA_INTROSPECTION_INTERVAL=3600 TSX_TSCONFIG_PATH=features/steps/tsconfig.json NODE_OPTIONS=--import=tsx cucumber-js --tags 'not @skip and @shutdown'"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "a88d6124557d4e2819402ae8a0b891fb3dee479c"
|
|
44
44
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{A as e,At as t,C as n,Ct as r,E as i,I as a,L as o,M as s,Mt as c,N as l,St as u,V as d,_t as f,a as p,bt as m,ct as h,d as g,dt as _,et as v,ft as y,gt as b,ht as x,i as S,j as C,jt as ee,kt as w,nt as T,o as E,tt as D,vt as O,w as te,x as k,y as ne}from"./sTot5bBi.js";import{t as re}from"./BJp4xBnY.js";import"./xihTtKlq.js";var ie=class{store;values;request;revalidate;stale;timestamp=0;constructor(e){this.store=O(null),this.values=e.values,this.request=e.get,this.revalidate=e.revalidate??oe.revalidate,this.stale=e.stale??oe.stale,e.persist!==void 0&&this.persist(e.persist),e.bind!==void 0&&this.bind(e.bind)}subscribe(e,t){return this.sync(),this.store.subscribe(e,t)}add(e){this.values?.set(e.id,e),this.store.update(t=>t===null||t instanceof Error?[e]:t.find(t=>t.id===e.id)===void 0?[e,...t]:t)}get(e,t){if(this.values===void 0)throw Error(`Collection: values is not defined`);return this.values.get(e,t)}extract(e){if(this.values===void 0)throw Error(`Collection: values is not defined`);return this.values.extract(e)}delete(e){this.values?.delete(e),this.store.update(t=>t===null||t instanceof Error?t:t.filter(t=>t.id!==e))}set(e,t){this.store.update(n=>{if(n===null||n instanceof Error)return[e];let r=n.findIndex(t=>t.id===e.id);return r===-1?t?.add===!0?[e,...n]:n:(n[r]=e,n)}),this.values?.set(e.id,e)}update(e,t,n){if(this.values===void 0)throw Error(`Collection: values is not defined`);let r=this.values.extract(e);if(r===null)return;let i=t(r)??r;this.set(i,n)}sync(){return(this.timestamp===0||this.timestamp+this.revalidate<Date.now())&&(this.stale||this.clear(),this.refresh()),this}async fetch(){return await this.refresh(),this}replace(e){let t=e;if(this.store.set(t),this.timestamp=Date.now(),this.values!==void 0)for(let e of t)this.values.set(e.id,e)}async refresh(){if(this.request===void 0)return;this.timestamp=Date.now();let e=await this.request();e instanceof Error?this.store.set(e):this.replace(e)}persist(e){if(typeof window>`u`)return;let t=this.load(e);if(t!==null&&(this.store.set(t),this.values?.persistent===!1))for(let e of t)this.values.set(e.id,e);this.store.subscribe(t=>{t instanceof Error||(t===null?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t)))})}load(e){if(typeof window>`u`)return null;let t=localStorage.getItem(e);if(t===null)return null;try{let n=JSON.parse(t);return Array.isArray(n)?n:(console.error(`Storage value for ${e} is not an array:`,n),null)}catch(t){return console.error(`Invalid storage value for ${e}`,t),null}}bind(e){e.subscribe(e=>{e===null&&this.clear()})}clear(){this.store.set(null),this.values?.clear(),this.timestamp=0}};function ae(e){return new ie(e)}var oe={revalidate:3e5,stale:!1},se=class{persistent;values={};fetch;revalidate;permanent;stale;persist;ready=!1;dumping=null;constructor(e){this.fetch=e.get,this.revalidate=e.revalidate??A.revalidate,this.permanent=e.permanent??A.permanent,this.stale=e.stale??A.stale,this.persist=e.persist,this.persistent=this.persist!==void 0,this.load(),e.bind!==void 0&&this.bind(e.bind)}set(e,t,n){let r=t,i=this.values[e]??(this.values[e]=this.create(r));return n?.stash===!0?this.stash(e):delete i.stash,i.store.set(r),!(r instanceof Error)&&this.ready&&n?.stash!==!0&&this.dump(),this.values[e].store}reset(e){let t=this.values[e]?.stash;return t===void 0?this.extract(e):(t===null?this.delete(e):this.set(e,t),t)}get(e,t){this.ready=!0;let n=this.values[e]??=this.create();return this.fetch===void 0||t?.fetch===!1||(n.timestamp===0||n.timestamp+this.revalidate<Date.now())&&(this.stale||n.store.set(null),n.timestamp=Date.now(),this.fetch(e).then(t=>this.set(e,t))),n.store}extract(e){if(this.values[e]===void 0)return null;let t=b(this.values[e].store);return t instanceof Error?null:t}delete(e){if(!(e in this.values))return;let t=this.values[e];t.store.set(null),t.timestamp=0,delete t.stash,this.dump()}clear(){for(let e of Object.keys(this.values))this.delete(e);this.ready=!1}create(e){return{store:O(e??null),timestamp:this.permanent&&e!==void 0?Date.now():0}}stash(e){let t=this.values[e];if(t.stash!==void 0){console.warn(`Stash overlap, skipping`);return}let n=this.get(e,{fetch:!1});t.stash??=b(n)}dump(e=!0){if(this.persist===void 0||typeof window>`u`)return;if(e){this.dumping??=setTimeout(()=>this.dump(!1),ce);return}this.dumping=null;let t={};for(let[e,n]of Object.entries(this.values)){let r=n.stash??b(n.store);r!==null&&!(r instanceof Error)&&(t[e]=r)}Object.keys(t).length===0?localStorage.removeItem(this.persist):localStorage.setItem(this.persist,JSON.stringify(t))}load(){if(this.persist===void 0||typeof window>`u`)return;let e=localStorage.getItem(this.persist);if(e!==null)try{let t=JSON.parse(e);if(typeof t!=`object`||!t){console.error(`Storage value for ${this.persist} is not an object:`,t);return}for(let[e,n]of Object.entries(t))this.set(e,n)}catch(e){console.error(`Invalid storage value for ${this.persist}`,e)}}bind(e){e.subscribe(e=>{e===null&&this.clear()})}},ce=100,A={revalidate:3e5,permanent:!1,stale:!1};function le(e={}){return new se(e)}var ue=class{store;default;request;revalidate;timestamp=0;constructor(e){this.default=e.default??null,this.request=e.get,this.revalidate=e.revalidate??pe.revalidate,this.store=e.persist===void 0||typeof window>`u`?O(this.default):de(e.persist,this.default,e.session),e.bind&&this.bind(e.bind)}set(e){this.store.set(e)}update(e){this.store.update(t=>e(t))}subscribe(e,t){return this.sync(),this.store.subscribe(e,t)}extract(){return b(this.store)}sync(){this.request!==void 0&&this.timestamp+this.revalidate<Date.now()&&this.refresh()}async refresh(){if(this.request===void 0)return;this.timestamp=Date.now();let e=await this.request();e instanceof Error||this.set(e)}bind(e){e.subscribe(e=>{e===null&&this.store.set(this.default)})}};function j(e={}){return new ue(e)}function de(e,t,n){let r=O(fe(e)??t),i=n?`sessionStorage`:`localStorage`;return r.subscribe(t=>{t===null?window[i].removeItem(e):window[i].setItem(e,JSON.stringify(t))}),r}function fe(e){let t=window.localStorage.getItem(e);if(t===null)return null;try{return JSON.parse(t)}catch(t){return console.error(`Invalid storage value for ${e}`,t),null}}var pe={revalidate:3e5};function me(e,t){return new Promise(n=>{let r=!1,i=null;i=e.subscribe(e=>{t(e)&&(i?.(),r=!0,n(e))}),r&&i?.()})}function he(e){return me(e,e=>e!==null&&!(e instanceof Error))}function ge(...e){return x(e,(e,t)=>{let n=e.find(e=>e instanceof Error);n?t(n):e.some(e=>e===null)?t(null):t([...e])})}var _e={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},ve=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ye=Symbol(`lucide-context`),be=()=>m(ye),xe=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`color`,`size`,`strokeWidth`,`absoluteStrokeWidth`,`iconNode`,`children`]),Se=l(`<svg><!><!></svg>`);function M(i,a){r(a,!0);let o=be()??{},s=S(a,`color`,19,()=>o.color??`currentColor`),c=S(a,`size`,19,()=>o.size??24),l=S(a,`strokeWidth`,19,()=>o.strokeWidth??2),f=S(a,`absoluteStrokeWidth`,19,()=>o.absoluteStrokeWidth??!1),m=S(a,`iconNode`,19,()=>[]),_=p(a,xe),y=h(()=>f()?Number(l())*24/Number(c()):l());var b=Se();g(b,e=>({..._e,...e,..._,width:c(),height:c(),stroke:s(),"stroke-width":d(y),class:[`lucide-icon lucide`,o.class,a.name&&`lucide-${a.name}`,a.class]}),[()=>!a.children&&!ve(_)&&{"aria-hidden":`true`}]);var x=v(b);n(x,17,m,te,(t,n)=>{var r=h(()=>ee(d(n),2));let i=()=>d(r)[0],a=()=>d(r)[1];var o=C(),s=D(o);ne(s,i,!0,(e,t)=>{g(e,()=>({...a()}))}),e(t,o)});var E=T(x);k(E,()=>a.children??t),w(b),e(i,b),u()}var Ce=new Set([`$$slots`,`$$events`,`$$legacy`]);function N(e,t){let n=p(t,Ce),r=[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`}]];M(e,E({name:`loader-circle`},()=>n,{get iconNode(){return r}}))}var we=new Set([`$$slots`,`$$events`,`$$legacy`]);function Te(e,t){let n=p(t,we),r=[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}],[`path`,{d:`M3 3v5h5`}]];M(e,E({name:`rotate-ccw`},()=>n,{get iconNode(){return r}}))}var Ee=s(`<div class="m-auto flex flex-col items-center gap-4"><span class="text-destructive">Something went terribly wrong</span> <button class="p-4 border border-muted-foreground hover:bg-muted cursor-pointer rounded-md flex items-center gap-2"><!></button></div>`);function De(t,n){let r=()=>y(n.store,`$store`,a),[a,s]=_(),c=S(n,`silent`,3,!1);var l=C(),u=D(l),d=t=>{var r=C(),a=D(r),o=t=>{var r=C(),i=D(r);k(i,()=>n.waiting),e(t,r)},s=e=>{N(e,{class:`animate-spin m-auto text-muted-foreground`})};i(a,e=>{n.waiting?e(o):c()||e(s,1)}),e(t,r)},f=t=>{var a=C(),s=D(a),l=t=>{var i=C(),a=D(i);k(a,()=>n.error,r),e(t,i)},u=t=>{var n=Ee(),r=T(v(n),2);Te(v(r),{size:16}),w(r),w(n),o(`click`,r,()=>window.location.reload()),e(t,n)};i(s,e=>{n.error?e(l):c()||e(u,1)}),e(t,a)},p=t=>{var i=C(),a=D(i);k(a,()=>n.awaited,r),e(t,i)};i(u,e=>{r()===null?e(d):r()instanceof Error?e(f,1):e(p,-1)}),e(t,l),s()}a([`click`]);var P=j({persist:`auth:account`}),F=j({persist:`auth:challenge`,bind:P}),I=j({persist:`auth:method`}),Oe=O(!1),ke=O(!1),Ae=x([F,P,Oe],([e,t,n])=>e!==null&&t!==null&&n===!1);function je(e){P.extract()?.id!==e.id&&P.set(null),P.set(e)}function L(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}var R=c((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Err=void 0,e.Err=class extends Error{code;name=`Error`;message=``;cause;constructor(e,t){super(),this.code=e,delete this.stack,Object.defineProperty(this,"name",{enumerable:!1}),typeof t==`string`?(this.message=t,Object.defineProperty(this,"cause",{enumerable:!1})):(Object.defineProperty(this,"message",{enumerable:!1}),Object.defineProperty(this,"cause",{enumerable:t!==void 0,value:t}))}}}))();async function Me(e,t){if(!e.ok||!e.body||e.bodyUsed)return e;let n=e.headers.get(`content-type`);if(!n||!~n.indexOf(`multipart/`))return e;let r=n.indexOf(`boundary=`),i=`-`;if(~r){let e=r+9,t=n.indexOf(`;`,e);i=n.slice(e,t>-1?t:void 0).trim().replace(/"/g,``)}return async function*(e,t,n){let r,i,a,o=new TextDecoder(`utf8`),s=e.getReader(),c=!n||!n.multiple,l=t.length,u=``,d=[];try{let e;e:for(;!(e=await s.read()).done;){let n=o.decode(e.value,{stream:!0});r=u.length,u+=n;let s=n.indexOf(t);for(~s?r+=s:r=u.indexOf(t),d=[];~r;){let e=u.slice(0,r),n=u.slice(r+l);if(i){let t=e.indexOf(`\r
|
|
2
|
+
\r
|
|
3
|
+
`)+4,r=e.lastIndexOf(`\r
|
|
4
|
+
`,t),i=!1,o=e.slice(t,r>-1?void 0:r),s=String(e.slice(0,t)).trim().split(`\r
|
|
5
|
+
`),l={},u=s.length;for(;a=s[--u];a=a.split(`: `),l[a.shift().toLowerCase()]=a.join(`: `));if(a=l[`content-type`],a&&~a.indexOf(`application/json`))try{o=JSON.parse(o),i=!0}catch{}if(a={headers:l,body:o,json:i},c?yield a:d.push(a),n.slice(0,2)===`--`)break e}else t=`\r
|
|
6
|
+
`+t,i=l+=2;u=n,r=u.indexOf(t)}d.length&&(yield d)}}finally{d.length&&(yield d),await s.cancel()}}(e.body,`--${i}`,t)}var Ne=Object.defineProperty,Pe=(e,t)=>{for(var n in t)Ne(e,n,{get:t[n],enumerable:!0})},Fe=Symbol(`meta`);function Ie(e){return e[Fe]??null}function Le(e,t){Object.defineProperty(e,Fe,{value:t,writable:!1,enumerable:!1,configurable:!1})}var Re=class{origin;events;sleep;fetch=fetch.bind(globalThis);challenge=null;constructor(e){this.origin=e.origin,this.events=e.events,e.sleep!==void 0&&(this.sleep=JSON.stringify(e.sleep))}async json(e,t){let n=this.setup(t),r=await this.request(e,n),i=r.headers.get(`content-type`)===`application/json`?await r.json():await r.text();return typeof i==`object`&&i&&Le(i,{status:r.status,headers:r.headers}),r.ok?(this.events.emit(`response`,{status:r.status,headers:r.headers}),i):(this.events.emit(`error`,{code:r.status,body:i}),new R.Err(r.status,i))}async multipart(e,t){let n=this.setup(t),r=await this.request(e,n);if(!r.ok)return new R.Err(r.status,{body:await r.text()});let i=await Me(r),a=await i.next();if(n.debug&&console.debug(`Multipart ACK`,{path:e,body:a.value.body}),JSON.parse(a.value.body)!==`ACK`)throw Error(`No ACK`);return(async function*(){for await(let t of i){n.debug&&console.debug(`Multipart chunk`,{path:e,body:t.body});let r=JSON.parse(t.body);if(r===`FIN`)return;yield r}})()}async octets(e,t){let n=await this.multipart(e,t);if(n instanceof Error)return n;let r=(await n.next()).value,i=L();return(async()=>{await new Promise(e=>setTimeout(e,0));for await(let r of n){let n=r.status===`completed`?r.error?new R.Err(r.error.code??`UNKNOWN`,r.error.message):r.output:new R.Err(`EXCEPTION`);t?.debug&&console.debug(`Emitting octets step`,{path:e,step:r.step,payload:n}),i.emit(r.step,n)}i.off(`*`)})(),[r,i]}authenticate(e){this.challenge=e}use(e){this.fetch=e}setup(e){if(e??={},e.headers??={},e.headers.accept??=`application/json`,this.sleep!==void 0&&(e.headers.sleep=this.sleep),e.credentials===`include`&&e.headers.authorization===void 0){if(this.challenge===null)throw Error(`Credentials must be set before sending authenticated request`);e.headers.authorization=this.challenge,delete e.credentials}return e.body!==void 0&&(e.method??=`POST`,e.body instanceof File||e.body instanceof ReadableStream?(e.duplex=`half`,e.headers[`content-type`]??=e.body.type??`application/octet-stream`):(e.body=JSON.stringify(e.body),e.headers[`content-type`]??=`application/json`)),e}async request(e,t){let n=new URL(e,this.origin),r=await this.fetch(n.href,t),i=r.headers.get(`authorization`);return i!==null&&(this.challenge=i,this.events.emit(`challenge`,i)),r}},ze=class{agent;path;init;constructor(e){this.agent=e.agent,this.path=e.path,this.init=e.init}async json(e,t){return await this.request(`json`,e,t)}async octets(e,t){return await this.request(`octets`,e,t)}async multipart(e,t){return await this.request(`multipart`,e,t)}async request(e,t,n){let r=typeof t==`string`?t:``;n=typeof t==`string`?n:t;let i=this.abs(r),a=Object.assign({},this.init,n);if(e===`json`)return await this.agent.json(i,a);if(e===`octets`)return await this.agent.octets(i,a);if(e===`multipart`)return await this.agent.multipart(i,a);throw Error(`Invalid method: ${e}`)}abs(e){let t=new URL(this.path,`https://void`),n=new URL(e,t);return n.pathname.endsWith(`/`)||(n.pathname+=`/`),n.pathname+n.search}},Be=class{events;agent;constructor(e){this.events=L(),this.agent=new Re({origin:e.origin,events:this.events,sleep:e.sleep})}resource(e,t){return new ze({agent:this.agent,path:e,init:t})}authenticate(e){this.agent.authenticate(e)}use(e){this.agent.use(e)}};function Ve(e){return typeof e==`string`&&(e={origin:e}),new Be(e)}Pe({},{format:()=>Ue,test:()=>He});function He(e){return/^[[(]\d+\.\.\d+[\])]{1}$/.test(e)}function Ue(e,t){let[n,r]=t.slice(1,-1).split(`..`);return[`${e}${t.startsWith(`(`)?`>`:`>=`}${n}`,`${e}${t.endsWith(`)`)?`<`:`<=`}${r}`]}var We={title:`Introspection`,description:`The map of a Toa application`},Ge=8e3,Ke=(()=>{if(typeof window>`u`)return``;let{protocol:e,hostname:t,origin:n}=window.location;return Ye(t)?`${e}//${t}:${Ge}`:n})(),qe=8003;function Je(e){if(typeof window>`u`)return``;let{protocol:t,hostname:n}=window.location;return`${Ye(n)?`${t}//${n}:${qe}`:``}/.configuration/${e}/`}function Ye(e){return e===`localhost`||e===`127.0.0.1`||e===`[::1]`||e.startsWith(`192.168.`)||e.startsWith(`172.16.`)||e.startsWith(`10.`)}var Xe=`1`;(()=>{let e=new Date(Number.parseInt(re)),t=e.getFullYear(),n=new Date(t,0,1).getTime(),r=new Date(t+1,0,1).getTime();return`${Xe}.${(t+(e.getTime()-n)/(r-n)).toFixed(4)}`})();var z=Ve({origin:Ke,sleep:void 0});console.info(`Origin connected`,Ke,`no sleep`);var Ze=z.resource(`/identity/`);async function B(e){let t={method:`GET`};return e!==void 0&&(t.headers={authorization:e},t.credentials=`include`),Ze.json(t)}var Qe=z.resource(`/identity/basic/`,{credentials:`include`});async function $e(e,t){return await Qe.json(e,{method:`POST`,body:t})}var et=z.resource(`/accounts/otp/`);async function V(e,t){return typeof e==`string`?await et.json(e,{method:`POST`,body:t,credentials:`include`}):await et.json({method:`POST`,body:e})}var tt=z.resource(`/identity/passkeys/`);async function nt(e,t){return typeof e==`string`?await tt.json(e,{method:`POST`,body:t,credentials:`include`}):await tt.json({method:`POST`,body:e})}var rt=z.resource(`/identity/federation/`,{credentials:`include`});async function it(e,t){return await rt.json(e,{method:`POST`,body:t})}async function H(){let e=F.extract();if(e===null)return;let t=await B(e);if(t instanceof Error)return t;je(t)}function U(e,t){return e instanceof Error?e:(je(e),I.set(t),e)}var at=j({persist:`auth:oidc:nonce`});function ot(e,t){let{client:n,endpoint:r,type:i,scope:a}=e;if(n===void 0||n===``)throw Error(`Client ID is required`);let o=st(),s=new URLSearchParams({client_id:n,redirect_uri:window.location.origin+`/`,response_type:i,response_mode:`fragment`,scope:a,state:btoa(JSON.stringify({idp:t})),nonce:o});at.set(o),window.location.href=r+`?`+s}function st(){return window.crypto?.randomUUID?.()??Math.random().toString(16).slice(2)}var ct=globalThis.__sveltekit_1w30alt.env,lt={apple:{iss:`https://appleid.apple.com`,endpoint:`https://appleid.apple.com/auth/authorize`,type:`code`,scope:`openid`,client:ct.PUBLIC_APPLE_CLIENT_ID},google:{iss:`https://accounts.google.com`,endpoint:`https://accounts.google.com/o/oauth2/v2/auth`,type:`id_token`,scope:`openid profile`,client:ct.PUBLIC_GOOGLE_CLIENT_ID}};async function ut(e){await dt();let t=await new Promise(t=>{window.google.accounts.oauth2.initCodeClient({client_id:e.client,scope:e.scope,ux_mode:`popup`,state:btoa(JSON.stringify({idp:`google`})),redirect_uri:window.location.origin+`/`,callback:async e=>{t(e)}}).requestCode()});return t?.code===void 0?Error(`NO_RESPONSE`,{cause:t}):t.code}function dt(){return new Promise((e,t)=>{if(window.google?.accounts?.oauth2!==void 0)return e(void 0);let n=document.createElement(`script`);n.src=`https://accounts.google.com/gsi/client`,n.async=!0,n.onload=()=>e(void 0),n.onerror=t,document.head.appendChild(n)})}var W=typeof window<`u`&&window;async function ft(e){await pt(e);let t=await W.AppleID.auth.signIn().catch(e=>e);return t instanceof Error?t:t?.authorization===void 0?Error(`No authentication response received`,{cause:t}):t.authorization.code}function pt(e){if(W.AppleID===void 0)return new Promise((t,n)=>{let r=document.createElement(`script`);r.src=`https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js`,r.async=!0,r.onload=()=>{W.AppleID.auth.init({clientId:e.client,scope:e.scope,redirectURI:window.location.origin,state:btoa(JSON.stringify({idp:`apple`})),usePopup:!0}),t(void 0)},r.onerror=n,document.head.appendChild(r)})}var mt={apple:ft,google:ut};async function ht(e,t){let n=await gt(e);return n instanceof Error?n:t===void 0?vt(e,n):_t(t,n)}async function gt(e){let t=mt[e]??ot,n=lt[e],r=await t(n,e);if(r instanceof Error)return console.error(`Authentication failed`,r),r;if(r===void 0)throw Error(`No authentication code received, redirect flow is not supported`);let i={code:r,iss:n.iss,for:window.location.origin};return btoa(JSON.stringify(i))}async function _t(e,t){let n=await it(e,{scheme:`code`,credentials:t});if(n instanceof Error)return n;H()}async function vt(e,t){return U(await B(`Code `+t),e)}function yt(){P.set(null)}async function bt(e,t){return U(await B(`Basic `+btoa(`${e}:${t}`)),`password`)}async function xt(e,t){return await $e(e,t)}async function St(e,t){let n=await xt(e,t);if(n instanceof Error)return n;H()}async function Ct(e){return V({email:e})}async function wt(e,t){return await V(e,{email:t})}async function Tt(e,t){return U(await B(`OTP `+btoa(`${e}:${t}`)),`password`)}var Et=z.resource(`/identity/passkeys/challenges/`);async function Dt(e,t){let n={type:e};return t===void 0?await Et.json(`.`,{method:`POST`,body:n}):await Et.json(t,{method:`POST`,body:n})}var Ot=z.resource(`/identity/passkeys/`);async function kt(e){return await Ot.json(e,{credentials:`include`})}async function At(){return await kt((await he(P)).id)}ae({get:At,persist:`identity:passkeys`,bind:P,stale:!0});function G(e){let t=(e+`=`.repeat((4-e.length%4)%4)).replace(/-/g,`+`).replace(/_/g,`/`),n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}function jt(e){return new TextEncoder().encode(e).buffer}function K(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}function Mt({id:e,transports:t}){return{id:G(e),type:`public-key`,transports:t}}async function Nt(e,t){let n={challenge:G(t.challenge),timeout:t.timeout,authenticatorSelection:t.authenticatorSelection,pubKeyCredParams:t.pubKeyCredParams,rp:{name:`app`},user:{id:jt(e.id),name:e.name,displayName:e.name},excludeCredentials:t.excludeCredentials.map(Mt)};return await navigator.credentials.create({publicKey:n}).catch(e=>e)}async function Pt(e){let t={timeout:e.timeout,challenge:G(e.challenge),allowCredentials:e.allowCredentials.map(Mt),userVerification:e.userVerification};return await navigator.credentials.get({publicKey:t})}async function Ft(e,t){let n=await Dt(`creation`,t);if(n instanceof Error)return n;let r=await Nt({id:n.identity,name:e},n);if(r instanceof Error)return r;if(r===null)throw Error(`No credential is created`);return{key:It(r,e),identity:n.identity}}function It(e,t){let n=e.response,r=n.getAuthenticatorData(),i=n.getTransports(),a=n.getPublicKeyAlgorithm(),o=n.getPublicKey(),s=e.getClientExtensionResults();if(o===null)throw Error(`No public key is created`);return{id:e.id,type:e.type,response:{attestationObject:K(n.attestationObject),clientDataJSON:K(n.clientDataJSON),authenticatorData:K(r),transports:i,publicKeyAlgorithm:a,publicKey:K(o)},authenticatorAttachment:e.authenticatorAttachment,clientExtensionResults:s,label:t}}async function Lt(e){let t=await Dt(`request`,e);if(t instanceof Error)return t;let n=Date.now(),r=await Pt(t).catch(e=>e);return r instanceof Error?r.name===`NotAllowedError`&&Date.now()-n<50?new zt:r:r===null?Error(`No credential given`):Rt(r)}function Rt(e){let t=e.response;return{id:e.id,type:e.type,response:{authenticatorData:K(t.authenticatorData),clientDataJSON:K(t.clientDataJSON),signature:K(t.signature),userHandle:t.userHandle===null?null:K(t.userHandle)},authenticatorAttachment:e.authenticatorAttachment,clientExtensionResults:e.getClientExtensionResults()}}var zt=class extends Error{constructor(){super(),this.name=this.constructor.name}},Bt=typeof window>`u`||window.PublicKeyCredential!==void 0;async function Vt(e,t){let n=await Ft(e,t);if(n instanceof Error)return console.error(`Credential creation failed`,n),n;let r=await nt(n.identity,n.key);if(r instanceof Error)return console.error(`Credential registration failed`,r),r;let i=F.extract();return i===null?Error(`Unauthenticated`):U(await B(i),`passkey`)}async function Ht(e){let t=await Lt(e);if(t instanceof Error)return console.error(`Credential request failed`,t),t;let n=await nt(t);if(n instanceof Error)return console.error(`Credential verification failed`,n),n;let r=F.extract();return r===null?Error(`Unauthenticated`):U(await B(r),`passkey`)}function Ut(e){if(document.startViewTransition===void 0)return Promise.resolve(e?.());let t=e!==void 0;return t&&Xt(),new Promise(n=>{let r=document.startViewTransition(async()=>{Kt(),n(await e?.())});r.finished.then(i,i),r.ready.catch(Wt);function i(){t&&Zt(),J()}})}function Wt(){}function Gt(e){if(!(e.type===`popstate`&&e.event.hasUAVisualTransition)&&document.startViewTransition!==void 0)return new Promise(t=>{let n=document.startViewTransition({types:[`route`],update:async()=>{Kt(),t(),await e.complete}});n.finished.then(J,J),n.ready.catch(Wt)})}var q=null;function Kt(){if(q===null)return;let e=q.el.style.viewTransitionName===q.name;q.el.style.viewTransitionName=e?``:q.name,q.el.style.viewTransitionClass=e?``:q.classes??``}function J(){q!==null&&q.el.style.viewTransitionName===q.name&&(qt(q),q=null)}function qt(e){e.el.style.viewTransitionName=``,e.el.style.viewTransitionClass=``}var Jt=O(!1),Y=new Set;function Yt(e,t){let n={node:e,options:t,original:{name:e.style.viewTransitionName,classes:e.style.viewTransitionClass}};return Y.add(n),{destroy:()=>Y.delete(n)}}function Xt(){Jt.set(!0);for(let e of Y)e.original={name:e.node.style.viewTransitionName,classes:e.node.style.viewTransitionClass},e.node.style.viewTransitionName=e.options.name,e.options.classes!==void 0&&(e.node.style.viewTransitionClass=e.options.classes)}function Zt(){for(let e of Y)e.original!==void 0&&(e.node.style.viewTransitionName=e.original.name,e.node.style.viewTransitionClass=e.original.classes);Jt.set(!1)}navigator.userAgent.toLowerCase().includes(`windows`);var Qt=/mac ?os|ios|ipad ?os/i.test(navigator.userAgentData?.platform??``)||/(Mac|iPhone|iPad|iPod)/.test(navigator.userAgent);/android/i.test(navigator.userAgent),/(iPhone|iPad|iPod)/.test(navigator.userAgent),/^((?!chrome|android).)*safari/i.test(navigator.userAgent),`ontouchstart`in window,window.matchMedia(`(display-mode: standalone)`).matches,/PWAShell/i.test(navigator.userAgent),navigator.userAgent.match(/PWAShell\/(\S+)/)?.[1];var $t=!(`ontouchstart`in window);[`en-US`,`en-LR`,`en-MM`].includes(navigator.language),[`en-US`,`en-GB`,`en-CA`,`en-AU`,`en-NZ`,`en-IE`,`en-IN`,`en-LR`,`en-MM`].includes(navigator.language);function en(e=navigator.userAgent){return[/FBAN|FBAV|FB_IAB/i,/Instagram/i,/Twitter/i,/Line/i,/LinkedIn/i,/Snapchat/i,/WhatsApp/i,/WeChat/i,/Messenger/i,/QQ/i,/Reddit/i,/Puffin/i,/TikTok/i,/musical.ly/i,/YouTube/i,/Pinterest/i,/Discord/i,/Telegram/i,/Viber/i,/Slack/i,/Signal/i,/KakaoTalk/i,/Baidu/i].some(t=>t.test(e))||(()=>{let t=RegExp(`(${[`WebView`,`(iPhone|iPod|iPad)(?!.*Safari/)`,`Android.*(wv)`,`(AppleWebKit)(?!.*Safari)`].join(`|`)})`,`ig`);return e.match(t)!==null})()||`TelegramWebviewProxy`in window||`TelegramWebviewProxyProto`in window||`TelegramWebview`in window}en(navigator.userAgent);var tn=new URLSearchParams;new URLSearchParams;function nn(e){return tn.get(e)}function rn(e,t=24){return f(e,n=>{let r=Date.now(),i=setInterval(()=>a(),1e3/t);function a(){let t=e-(Date.now()-r);t>0?n(t):(n(0),clearInterval(i))}return a(),()=>clearInterval(i)})}var an={"en-US":{native:`English`,locale:`en-US`,dir:`ltr`,nav:{list:`List`,map:`Map`,signout:`Sign out`,filter:`Filter components`,halt:`HALT`},halt:{title:`Suspend operations`,description:`All systems will be inoperative for the interval you give, then resume automatically.`,interval:`Duration`,cancel:`Cancel`,hold:`Hold to halt`,bounds:(e,t)=>`${e}–${t} seconds`,quiescence:`Quiescence`,failed:`The halt request wasn’t accepted. Try again.`}}},on=[`en-US`];function sn(e){return on.some(t=>t.startsWith(e))}function X(e){return on.find(t=>t.startsWith(e))??`en-US`}var Z=c((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.format=o,e.parse=s;var t=/^[\u0009\u0020-\u007e\u0080-\u00ff]*$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/[\\"]/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,a=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function o(e){let{type:t,parameters:r}=e;if(!t||!i.test(t))throw TypeError(`Invalid type: ${t}`);let a=t;if(r)for(let e of Object.keys(r)){if(!n.test(e))throw TypeError(`Invalid parameter name: ${e}`);a+=`; ${e}=${y(r[e])}`}return a}function s(e,t){let n=t?.comma===!0?m:65536,r=e.length,i=_(e,t?.start??0,r),o=i;i=g(e,i,r,n);let s=v(e,o,i),c=e.slice(o,s).toLowerCase();return t?.parameters===!1?{type:c,index:i,parameters:new a}:h(e,c,i,r,n)}var c=32,l=9,u=59,d=61,f=34,p=92,m=44;function h(e,t,n,r,i){let o=new a;parameter:for(;n<r&&e.charCodeAt(n)!==i;){n=_(e,n+1,r);let t=n;for(;n<r;){let a=e.charCodeAt(n);if(a===i)break parameter;if(a===u)continue parameter;if(a===d){let a=v(e,t,n),s=e.slice(t,a).toLowerCase();if(n=_(e,n+1,r),n<r&&e.charCodeAt(n)===f){n++;let t=``;for(;n<r;){let a=e.charCodeAt(n++);if(a===f){n=g(e,n,r,i),o[s]===void 0&&(o[s]=t);break}if(a===p&&n<r){t+=e[n++];continue}t+=String.fromCharCode(a)}continue parameter}let c=n;if(n=g(e,n,r,i),o[s]===void 0){let t=v(e,c,n);o[s]=e.slice(c,t)}continue parameter}n++}}return{type:t,index:n,parameters:o}}function g(e,t,n,r){for(;t<n;){let n=e.charCodeAt(t);if(n===u||n===r)break;t++}return t}function _(e,t,n){for(;t<n;){let n=e.charCodeAt(t);if(n!==c&&n!==l)break;t++}return t}function v(e,t,n){for(;n>t;){let t=e.charCodeAt(n-1);if(t!==c&&t!==l)break;n--}return n}function y(e){if(n.test(e))return e;if(t.test(e))return`"${e.replace(r,`\\$&`)}"`;throw TypeError(`Invalid parameter value: ${e}`)}})),Q=c(((e,t)=>{var n=Z();t.exports=r;function r(e){for(var t=[],r=0;r<e.length;){var a=i(e,r),o=n.parse(e,{comma:!0,start:a});o.type=e.slice(a,a+o.type.length),t.push(o),r=o.index+1}return t}function i(e,t){for(var n=t;e.charCodeAt(n)===32||e.charCodeAt(n)===9;)n++;return n}})),cn=c(((e,t)=>{var n=Q();t.exports=s,t.exports.preferredCharsets=s;function r(e){for(var t=n(e),r=0,a=0;r<t.length;r++){var o=i(t[r],r);o&&(t[a++]=o)}return t.length=a,t}function i(e,t){return e.type?{charset:e.type,q:e.parameters.q?parseFloat(e.parameters.q):1,i:t}:null}function a(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.charset.toLowerCase()===e.toLowerCase())r|=1;else if(t.charset!==`*`)return null;return{i:n,o:t.i,q:t.q,s:r}}function s(e,t){var n=r(e===void 0?`*`:e||``);if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return a(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.charset}function u(e){return e.q>0}})),ln=c(((e,t)=>{var n=Q();t.exports=s,t.exports.preferredEncodings=s;function r(e){for(var t=n(e),r=!1,a=1,s=0,c=0;s<t.length;s++){var l=i(t[s],s);l&&(t[c++]=l,r||=o(`identity`,l),a=Math.min(a,l.q||1))}return r||(t[c++]={encoding:`identity`,q:a,i:s}),t.length=c,t}function i(e,t){return e.type?{encoding:e.type,q:e.parameters.q?parseFloat(e.parameters.q):1,i:t}:null}function a(e,t,n){for(var r={encoding:e,o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.encoding.toLowerCase()===e.toLowerCase())r|=1;else if(t.encoding!==`*`)return null;return{encoding:e,i:n,o:t.i,q:t.q,s:r}}function s(e,t,n){var i=r(e||``),o=n?function(e,t){if(e.q!==t.q)return t.q-e.q;var r=n.indexOf(e.encoding),i=n.indexOf(t.encoding);return r===-1&&i===-1?t.s-e.s||e.o-t.o||e.i-t.i:r!==-1&&i!==-1?r-i:r===-1?1:-1}:c;if(!t)return i.filter(u).sort(o).map(l);var s=t.map(function(e,t){return a(e,i,t)});return s.filter(u).sort(o).map(function(e){return t[s.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i}function l(e){return e.encoding}function u(e){return e.q>0}})),un=c(((e,t)=>{var n=Z(),r=Q();t.exports=c,t.exports.preferredLanguages=c;function i(e){for(var t=r(e),n=0,i=0;n<t.length;n++){var o=a(t[n],n);o&&(t[i++]=o)}return t.length=i,t}function a(e,t){if(!e.type)return null;var n=e.type.indexOf(`-`);return{prefix:n===-1?e.type:e.type.slice(0,n),suffix:n===-1?void 0:e.type.slice(n+1),q:e.parameters.q?parseFloat(e.parameters.q):1,i:t,full:e.type}}function o(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=s(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function s(e,t,r){var i=a(n.parse(e),0);if(!i)return null;var o=0;if(t.full.toLowerCase()===i.full.toLowerCase())o|=4;else if(t.prefix.toLowerCase()===i.full.toLowerCase())o|=2;else if(t.full.toLowerCase()===i.prefix.toLowerCase())o|=1;else if(t.full!==`*`)return null;return{i:r,o:t.i,q:t.q,s:o}}function c(e,t){var n=i(e===void 0?`*`:e||``);if(!t)return n.filter(d).sort(l).map(u);var r=t.map(function(e,t){return o(e,n,t)});return r.filter(d).sort(l).map(function(e){return t[r.indexOf(e)]})}function l(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function u(e){return e.full}function d(e){return e.q>0}})),dn=c(((e,t)=>{var n=Z(),r=Q();t.exports=c,t.exports.preferredMediaTypes=c;function i(e){for(var t=r(e),n=0,i=0;n<t.length;n++){var o=a(t[n],n);o&&(t[i++]=o)}return t.length=i,t}function a(e,t){var n=e.type.indexOf(`/`);if(n===-1)return null;var r=e.parameters.q?parseFloat(e.parameters.q):1;return delete e.parameters.q,{type:e.type.slice(0,n),subtype:e.type.slice(n+1),params:e.parameters,q:r,i:t}}function o(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=s(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function s(e,t,r){var i=a(n.parse(e),0),o=0;if(!i)return null;if(t.type.toLowerCase()==i.type.toLowerCase())o|=4;else if(t.type!=`*`)return null;if(t.subtype.toLowerCase()==i.subtype.toLowerCase())o|=2;else if(t.subtype!=`*`)return null;var s=Object.keys(t.params);if(s.length>0){if(s.every(function(e){return t.params[e]==`*`||(t.params[e]||``).toLowerCase()==(i.params[e]||``).toLowerCase()}))o|=1;else return null}return{i:r,o:t.i,q:t.q,s:o}}function c(e,t){var n=i(e===void 0?`*/*`:e||``);if(!t)return n.filter(d).sort(l).map(u);var r=t.map(function(e,t){return o(e,n,t)});return r.filter(d).sort(l).map(function(e){return t[r.indexOf(e)]})}function l(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function u(e){return e.type+`/`+e.subtype}function d(e){return e.q>0}}));c(((e,t)=>{var n=cn(),r=ln(),i=un(),a=dn();t.exports=o,t.exports.Negotiator=o;function o(e){if(!(this instanceof o))return new o(e);this.request=e}o.prototype.charset=function(e){var t=this.charsets(e);return t&&t[0]},o.prototype.charsets=function(e){return n(this.request.headers[`accept-charset`],e)},o.prototype.encoding=function(e,t){var n=this.encodings(e,t);return n&&n[0]},o.prototype.encodings=function(e,t){var n=t||{};return r(this.request.headers[`accept-encoding`],e,n.preferred)},o.prototype.language=function(e){var t=this.languages(e);return t&&t[0]},o.prototype.languages=function(e){return i(this.request.headers[`accept-language`],e)},o.prototype.mediaType=function(e){var t=this.mediaTypes(e);return t&&t[0]},o.prototype.mediaTypes=function(e){return a(this.request.headers.accept,e)},o.prototype.preferredCharset=o.prototype.charset,o.prototype.preferredCharsets=o.prototype.charsets,o.prototype.preferredEncoding=o.prototype.encoding,o.prototype.preferredEncodings=o.prototype.encodings,o.prototype.preferredLanguage=o.prototype.language,o.prototype.preferredLanguages=o.prototype.languages,o.prototype.preferredMediaType=o.prototype.mediaType,o.prototype.preferredMediaTypes=o.prototype.mediaTypes}))();var fn=`en-US`,pn=j({persist:`intl:selected`}),$=x([P,pn],([e,t])=>t?X(t):mn()||(e?.locale!==void 0&&sn(e.locale)?X(e.locale):fn));x(P,e=>e?.grammar??`none`);function mn(){if(typeof navigator<`u`){for(let e of navigator.languages)if(sn(e))return X(e)}return null}var hn=x($,e=>an[e]);export{ke as A,Je as C,P as D,L as E,M as F,ge as I,j as L,Oe as M,De as N,Ae as O,N as P,le as R,z as S,Ie as T,bt as _,Qt as a,lt as b,Ut as c,Vt as d,Bt as f,St as g,Tt as h,nn as i,I as j,F as k,Yt as l,Ct as m,$ as n,$t as o,wt as p,rn as r,Gt as s,hn as t,Ht as u,yt as v,We as w,H as x,ht as y,ae as z};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as e,A as t,C as n,Ct as r,E as i,F as a,I as o,L as s,M as c,N as l,O as u,Ot as d,R as f,St as p,T as m,U as h,V as g,X as _,Y as v,_ as y,a as b,at as x,b as S,c as C,ct as w,dt as T,et as E,f as D,ft as O,h as ee,i as k,j as A,jt as j,kt as M,m as te,nt as N,o as P,p as ne,q as F,rt as re,st as ie,tt as I,vt as ae}from"./sTot5bBi.js";import{s as oe,t as se}from"./BUPUz2gM.js";import"./CS0sVo-n.js";import"./xihTtKlq.js";import{F as ce,I as le,N as ue,c as de,l as fe}from"./CTGjXSbR.js";import"./BasMzhQl.js";import{$ as pe,C as me,S as L,_ as he,_t as ge,c as _e,d as ve,et as ye,f as be,g as xe,gt as Se,h as Ce,l as we,m as Te,n as Ee,o as De,p as Oe,s as ke,t as Ae,u as je,v as Me,x as Ne,y as Pe}from"./CxtEVscZ.js";import{t as Fe}from"./C5WeeR_-.js";var Ie={value:()=>{}};function Le(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new Re(n)}function Re(e){this._=e}function ze(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}Re.prototype=Le.prototype={constructor:Re,on:function(e,t){var n=this._,r=ze(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Be(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=Ve(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Ve(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Re(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Be(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Ve(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Ie,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var He={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function Ue(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),He.hasOwnProperty(t)?{space:He[t],local:e}:e}function We(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function Ge(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ke(e){var t=Ue(e);return(t.local?Ge:We)(t)}function qe(){}function Je(e){return e==null?qe:function(){return this.querySelector(e)}}function Ye(e){typeof e!=`function`&&(e=Je(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new R(r,this._parents)}function Xe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ze(){return[]}function Qe(e){return e==null?Ze:function(){return this.querySelectorAll(e)}}function $e(e){return function(){return Xe(e.apply(this,arguments))}}function et(e){e=typeof e==`function`?$e(e):Qe(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new R(r,i)}function tt(e){return function(){return this.matches(e)}}function nt(e){return function(t){return t.matches(e)}}var rt=Array.prototype.find;function it(e){return function(){return rt.call(this.children,e)}}function at(){return this.firstElementChild}function ot(e){return this.select(e==null?at:it(typeof e==`function`?e:nt(e)))}var st=Array.prototype.filter;function ct(){return Array.from(this.children)}function lt(e){return function(){return st.call(this.children,e)}}function ut(e){return this.selectAll(e==null?ct:lt(typeof e==`function`?e:nt(e)))}function dt(e){typeof e!=`function`&&(e=tt(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new R(r,this._parents)}function ft(e){return Array(e.length)}function pt(){return new R(this._enter||this._groups.map(ft),this._parents)}function mt(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}mt.prototype={constructor:mt,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ht(e){return function(){return e}}function gt(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new mt(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function _t(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new mt(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function vt(e){return e.__data__}function yt(e,t){if(!arguments.length)return Array.from(this,vt);var n=t?_t:gt,r=this._parents,i=this._groups;typeof e!=`function`&&(e=ht(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=bt(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new R(o,r),o._enter=s,o._exit=c,o}function bt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function xt(){return new R(this._exit||this._groups.map(ft),this._parents)}function St(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Ct(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new R(s,this._parents)}function wt(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Tt(e){e||=Et;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new R(i,this._parents).order()}function Et(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Dt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Ot(){return Array.from(this)}function kt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function At(){let e=0;for(let t of this)++e;return e}function jt(){return!this.node()}function Mt(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Nt(e){return function(){this.removeAttribute(e)}}function Pt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ft(e,t){return function(){this.setAttribute(e,t)}}function It(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Lt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Rt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function zt(e,t){var n=Ue(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Pt:Nt:typeof t==`function`?n.local?Rt:Lt:n.local?It:Ft)(n,t))}function Bt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Vt(e){return function(){this.style.removeProperty(e)}}function Ht(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ut(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Wt(e,t,n){return arguments.length>1?this.each((t==null?Vt:typeof t==`function`?Ut:Ht)(e,t,n??``)):Gt(this.node(),e)}function Gt(e,t){return e.style.getPropertyValue(t)||Bt(e).getComputedStyle(e,null).getPropertyValue(t)}function Kt(e){return function(){delete this[e]}}function qt(e,t){return function(){this[e]=t}}function Jt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Yt(e,t){return arguments.length>1?this.each((t==null?Kt:typeof t==`function`?Jt:qt)(e,t)):this.node()[e]}function Xt(e){return e.trim().split(/^|\s+/)}function Zt(e){return e.classList||new Qt(e)}function Qt(e){this._node=e,this._names=Xt(e.getAttribute(`class`)||``)}Qt.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function $t(e,t){for(var n=Zt(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function en(e,t){for(var n=Zt(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function tn(e){return function(){$t(this,e)}}function nn(e){return function(){en(this,e)}}function rn(e,t){return function(){(t.apply(this,arguments)?$t:en)(this,e)}}function an(e,t){var n=Xt(e+``);if(arguments.length<2){for(var r=Zt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?rn:t?tn:nn)(n,t))}function on(){this.textContent=``}function sn(e){return function(){this.textContent=e}}function cn(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function ln(e){return arguments.length?this.each(e==null?on:(typeof e==`function`?cn:sn)(e)):this.node().textContent}function un(){this.innerHTML=``}function dn(e){return function(){this.innerHTML=e}}function fn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function pn(e){return arguments.length?this.each(e==null?un:(typeof e==`function`?fn:dn)(e)):this.node().innerHTML}function mn(){this.nextSibling&&this.parentNode.appendChild(this)}function hn(){return this.each(mn)}function gn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _n(){return this.each(gn)}function vn(e){var t=typeof e==`function`?e:Ke(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function yn(){return null}function bn(e,t){var n=typeof e==`function`?e:Ke(e),r=t==null?yn:typeof t==`function`?t:Je(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function xn(){var e=this.parentNode;e&&e.removeChild(this)}function Sn(){return this.each(xn)}function Cn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Tn(e){return this.select(e?wn:Cn)}function En(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Dn(e){return function(t){e.call(this,t,this.__data__)}}function On(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function kn(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function An(e,t,n){return function(){var r=this.__on,i,a=Dn(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function jn(e,t,n){var r=On(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?An:kn,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Mn(e,t,n){var r=Bt(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Nn(e,t){return function(){return Mn(this,e,t)}}function Pn(e,t){return function(){return Mn(this,e,t.apply(this,arguments))}}function Fn(e,t){return this.each((typeof t==`function`?Pn:Nn)(e,t))}function*In(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Ln=[null];function R(e,t){this._groups=e,this._parents=t}function Rn(){return new R([[document.documentElement]],Ln)}function zn(){return this}R.prototype=Rn.prototype={constructor:R,select:Ye,selectAll:et,selectChild:ot,selectChildren:ut,filter:dt,data:yt,enter:pt,exit:xt,join:St,merge:Ct,selection:zn,order:wt,sort:Tt,call:Dt,nodes:Ot,node:kt,size:At,empty:jt,each:Mt,attr:zt,style:Wt,property:Yt,classed:an,text:ln,html:pn,raise:hn,lower:_n,append:vn,insert:bn,remove:Sn,clone:Tn,datum:En,on:jn,dispatch:Fn,[Symbol.iterator]:In};function z(e){return typeof e==`string`?new R([[document.querySelector(e)]],[document.documentElement]):new R([[e]],Ln)}function Bn(e){let t;for(;t=e.sourceEvent;)e=t;return e}function B(e,t){if(e=Bn(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var Vn={capture:!0,passive:!1};function Hn(e){e.preventDefault(),e.stopImmediatePropagation()}function Un(e){var t=e.document.documentElement,n=z(e).on(`dragstart.drag`,Hn,Vn);`onselectstart`in t?n.on(`selectstart.drag`,Hn,Vn):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function Wn(e,t){var n=e.document.documentElement,r=z(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,Hn,Vn),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Gn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Kn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function qn(){}var Jn=.7,Yn=1/Jn,V=`\\s*([+-]?\\d+)\\s*`,Xn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,H=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Zn=/^#([0-9a-f]{3,8})$/,Qn=RegExp(`^rgb\\(${V},${V},${V}\\)$`),$n=RegExp(`^rgb\\(${H},${H},${H}\\)$`),er=RegExp(`^rgba\\(${V},${V},${V},${Xn}\\)$`),tr=RegExp(`^rgba\\(${H},${H},${H},${Xn}\\)$`),nr=RegExp(`^hsl\\(${Xn},${H},${H}\\)$`),rr=RegExp(`^hsla\\(${Xn},${H},${H},${Xn}\\)$`),ir={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gn(qn,lr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ar,formatHex:ar,formatHex8:or,formatHsl:sr,formatRgb:cr,toString:cr});function ar(){return this.rgb().formatHex()}function or(){return this.rgb().formatHex8()}function sr(){return yr(this).formatHsl()}function cr(){return this.rgb().formatRgb()}function lr(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Zn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ur(t):n===3?new U(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?dr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?dr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Qn.exec(e))?new U(t[1],t[2],t[3],1):(t=$n.exec(e))?new U(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=er.exec(e))?dr(t[1],t[2],t[3],t[4]):(t=tr.exec(e))?dr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nr.exec(e))?vr(t[1],t[2]/100,t[3]/100,1):(t=rr.exec(e))?vr(t[1],t[2]/100,t[3]/100,t[4]):ir.hasOwnProperty(e)?ur(ir[e]):e===`transparent`?new U(NaN,NaN,NaN,0):null}function ur(e){return new U(e>>16&255,e>>8&255,e&255,1)}function dr(e,t,n,r){return r<=0&&(e=t=n=NaN),new U(e,t,n,r)}function fr(e){return e instanceof qn||(e=lr(e)),e?(e=e.rgb(),new U(e.r,e.g,e.b,e.opacity)):new U}function pr(e,t,n,r){return arguments.length===1?fr(e):new U(e,t,n,r??1)}function U(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Gn(U,pr,Kn(qn,{brighter(e){return e=e==null?Yn:Yn**+e,new U(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Jn:Jn**+e,new U(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new U(W(this.r),W(this.g),W(this.b),_r(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:mr,formatHex:mr,formatHex8:hr,formatRgb:gr,toString:gr}));function mr(){return`#${G(this.r)}${G(this.g)}${G(this.b)}`}function hr(){return`#${G(this.r)}${G(this.g)}${G(this.b)}${G((isNaN(this.opacity)?1:this.opacity)*255)}`}function gr(){let e=_r(this.opacity);return`${e===1?`rgb(`:`rgba(`}${W(this.r)}, ${W(this.g)}, ${W(this.b)}${e===1?`)`:`, ${e})`}`}function _r(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function W(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function G(e){return e=W(e),(e<16?`0`:``)+e.toString(16)}function vr(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new K(e,t,n,r)}function yr(e){if(e instanceof K)return new K(e.h,e.s,e.l,e.opacity);if(e instanceof qn||(e=lr(e)),!e)return new K;if(e instanceof K)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new K(o,s,c,e.opacity)}function br(e,t,n,r){return arguments.length===1?yr(e):new K(e,t,n,r??1)}function K(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Gn(K,br,Kn(qn,{brighter(e){return e=e==null?Yn:Yn**+e,new K(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Jn:Jn**+e,new K(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new U(Cr(e>=240?e-240:e+120,i,r),Cr(e,i,r),Cr(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new K(xr(this.h),Sr(this.s),Sr(this.l),_r(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(){let e=_r(this.opacity);return`${e===1?`hsl(`:`hsla(`}${xr(this.h)}, ${Sr(this.s)*100}%, ${Sr(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function xr(e){return e=(e||0)%360,e<0?e+360:e}function Sr(e){return Math.max(0,Math.min(1,e||0))}function Cr(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var wr=e=>()=>e;function Tr(e,t){return function(n){return e+n*t}}function Er(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Dr(e){return(e=+e)==1?Or:function(t,n){return n-t?Er(t,n,e):wr(isNaN(t)?n:t)}}function Or(e,t){var n=t-e;return n?Tr(e,n):wr(isNaN(e)?t:e)}var kr=(function e(t){var n=Dr(t);function r(e,t){var r=n((e=pr(e)).r,(t=pr(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Or(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function q(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Ar=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jr=new RegExp(Ar.source,`g`);function Mr(e){return function(){return e}}function Nr(e){return function(t){return e(t)+``}}function Pr(e,t){var n=Ar.lastIndex=jr.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Ar.exec(e))&&(i=jr.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:q(r,i)})),n=jr.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Nr(c[0].x):Mr(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var Fr=180/Math.PI,Ir={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Lr(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Fr,skewX:Math.atan(c)*Fr,scaleX:o,scaleY:s}}var Rr;function zr(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Ir:Lr(t.a,t.b,t.c,t.d,t.e,t.f)}function Br(e){return e==null||(Rr||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Rr.setAttribute(`transform`,e),!(e=Rr.transform.baseVal.consolidate()))?Ir:(e=e.matrix,Lr(e.a,e.b,e.c,e.d,e.e,e.f))}function Vr(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:q(e,i)},{i:c-2,x:q(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:q(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:q(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:q(e,n)},{i:s-2,x:q(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var Hr=Vr(zr,`px, `,`px)`,`deg)`),Ur=Vr(Br,`, `,`)`,`)`),Wr=1e-12;function Gr(e){return((e=Math.exp(e))+1/e)/2}function Kr(e){return((e=Math.exp(e))-1/e)/2}function qr(e){return((e=Math.exp(2*e))-1)/(e+1)}var Jr=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<Wr)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=Gr(y),c=s/(n*g)*(i*qr(t*r+y)-Kr(y));return[a+c*d,o+c*f,s*i/Gr(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),Yr=0,Xr=0,Zr=0,Qr=1e3,$r,ei,ti=0,ni=0,ri=0,ii=typeof performance==`object`&&performance.now?performance:Date,ai=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function oi(){return ni||=(ai(si),ii.now()+ri)}function si(){ni=0}function ci(){this._call=this._time=this._next=null}ci.prototype=li.prototype={constructor:ci,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?oi():+n)+(t==null?0:+t),!this._next&&ei!==this&&(ei?ei._next=this:$r=this,ei=this),this._call=e,this._time=n,mi()},stop:function(){this._call&&(this._call=null,this._time=1/0,mi())}};function li(e,t,n){var r=new ci;return r.restart(e,t,n),r}function ui(){oi(),++Yr;for(var e=$r,t;e;)(t=ni-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Yr}function di(){ni=(ti=ii.now())+ri,Yr=Xr=0;try{ui()}finally{Yr=0,pi(),ni=0}}function fi(){var e=ii.now(),t=e-ti;t>Qr&&(ri-=t,ti=e)}function pi(){for(var e,t=$r,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:$r=n);ei=e,mi(r)}function mi(e){Yr||(Xr&&=clearTimeout(Xr),e-ni>24?(e<1/0&&(Xr=setTimeout(di,e-ii.now()-ri)),Zr&&=clearInterval(Zr)):(Zr||=(ti=ii.now(),setInterval(fi,Qr)),Yr=1,ai(di)))}function hi(e,t,n){var r=new ci;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var gi=Le(`start`,`end`,`cancel`,`interrupt`),_i=[];function vi(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;bi(e,n,{name:t,index:r,group:i,on:gi,tween:_i,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function yi(e,t){var n=Y(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function J(e,t){var n=Y(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Y(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function bi(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=li(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return hi(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(hi(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function xi(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Si(e){return this.each(function(){xi(this,e)})}function Ci(e,t){var n,r;return function(){var i=J(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function wi(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=J(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Ti(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Y(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Ci:wi)(n,e,t))}function Ei(e,t,n){var r=e._id;return e.each(function(){var e=J(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Y(e,r).value[t]}}function Di(e,t){var n;return(typeof t==`number`?q:t instanceof lr?kr:(n=lr(t))?(t=n,kr):Pr)(e,t)}function Oi(e){return function(){this.removeAttribute(e)}}function ki(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ai(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function ji(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Mi(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Ni(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Pi(e,t){var n=Ue(e),r=n===`transform`?Ur:Di;return this.attrTween(e,typeof t==`function`?(n.local?Ni:Mi)(n,r,Ei(this,`attr.`+e,t)):t==null?(n.local?ki:Oi)(n):(n.local?ji:Ai)(n,r,t))}function Fi(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Ii(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Li(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ii(e,i)),n}return i._value=t,i}function Ri(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Fi(e,i)),n}return i._value=t,i}function zi(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=Ue(e);return this.tween(n,(r.local?Li:Ri)(r,t))}function Bi(e,t){return function(){yi(this,e).delay=+t.apply(this,arguments)}}function Vi(e,t){return t=+t,function(){yi(this,e).delay=t}}function Hi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Bi:Vi)(t,e)):Y(this.node(),t).delay}function Ui(e,t){return function(){J(this,e).duration=+t.apply(this,arguments)}}function Wi(e,t){return t=+t,function(){J(this,e).duration=t}}function Gi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Ui:Wi)(t,e)):Y(this.node(),t).duration}function Ki(e,t){if(typeof t!=`function`)throw Error();return function(){J(this,e).ease=t}}function qi(e){var t=this._id;return arguments.length?this.each(Ki(t,e)):Y(this.node(),t).ease}function Ji(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();J(this,e).ease=n}}function Yi(e){if(typeof e!=`function`)throw Error();return this.each(Ji(this._id,e))}function Xi(e){typeof e!=`function`&&(e=tt(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new X(r,this._parents,this._name,this._id)}function Zi(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new X(o,this._parents,this._name,this._id)}function Qi(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function $i(e,t,n){var r,i,a=Qi(t)?yi:J;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function ea(e,t){var n=this._id;return arguments.length<2?Y(this.node(),n).on.on(e):this.each($i(n,e,t))}function ta(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function na(){return this.on(`end.remove`,ta(this._id))}function ra(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Je(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,vi(l[f],t,n,f,l,Y(u,n)));return new X(a,this._parents,t,n)}function ia(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Qe(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=Y(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&vi(p,t,n,h,f,m);a.push(f),o.push(u)}return new X(a,o,t,n)}var aa=Rn.prototype.constructor;function oa(){return new aa(this._groups,this._parents)}function sa(e,t){var n,r,i;return function(){var a=Gt(this,e),o=(this.style.removeProperty(e),Gt(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function ca(e){return function(){this.style.removeProperty(e)}}function la(e,t,n){var r,i=n+``,a;return function(){var o=Gt(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function ua(e,t,n){var r,i,a;return function(){var o=Gt(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),Gt(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function da(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=J(this,e),l=c.on,u=c.value[a]==null?s||=ca(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function fa(e,t,n){var r=(e+=``)==`transform`?Hr:Di;return t==null?this.styleTween(e,sa(e,r)).on(`end.style.`+e,ca(e)):typeof t==`function`?this.styleTween(e,ua(e,r,Ei(this,`style.`+e,t))).each(da(this._id,e)):this.styleTween(e,la(e,r,t),n).on(`end.style.`+e,null)}function pa(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function ma(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&pa(e,a,n)),r}return a._value=t,a}function ha(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,ma(e,t,n??``))}function ga(e){return function(){this.textContent=e}}function _a(e){return function(){var t=e(this);this.textContent=t??``}}function va(e){return this.tween(`text`,typeof e==`function`?_a(Ei(this,`text`,e)):ga(e==null?``:e+``))}function ya(e){return function(t){this.textContent=e.call(this,t)}}function ba(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&ya(r)),t}return r._value=e,r}function xa(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,ba(e))}function Sa(){for(var e=this._name,t=this._id,n=Ta(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=Y(c,t);vi(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new X(r,this._parents,e,n)}function Ca(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=J(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var wa=0;function X(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ta(){return++wa}var Z=Rn.prototype;X.prototype={constructor:X,select:ra,selectAll:ia,selectChild:Z.selectChild,selectChildren:Z.selectChildren,filter:Xi,merge:Zi,selection:oa,transition:Sa,call:Z.call,nodes:Z.nodes,node:Z.node,size:Z.size,empty:Z.empty,each:Z.each,on:ea,attr:Pi,attrTween:zi,style:fa,styleTween:ha,text:va,textTween:xa,remove:na,tween:Ti,delay:Hi,duration:Gi,ease:qi,easeVarying:Yi,end:Ca,[Symbol.iterator]:Z[Symbol.iterator]};function Ea(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Da={time:null,delay:0,duration:250,ease:Ea};function Oa(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function ka(e){var t,n;e instanceof X?(t=e._id,e=e._name):(t=Ta(),(n=Da).time=oi(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&vi(c,e,t,l,o,n||Oa(c,t));return new X(r,this._parents,e,t)}Rn.prototype.interrupt=Si,Rn.prototype.transition=ka;var Aa=e=>()=>e;function ja(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Q(e,t,n){this.k=e,this.x=t,this.y=n}Q.prototype={constructor:Q,scale:function(e){return e===1?this:new Q(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Q(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var Ma=new Q(1,0,0);Na.prototype=Q.prototype;function Na(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Ma;return e.__zoom}function Pa(e){e.stopImmediatePropagation()}function Fa(e){e.preventDefault(),e.stopImmediatePropagation()}function Ia(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function La(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Ra(){return this.__zoom||Ma}function za(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ba(){return navigator.maxTouchPoints||`ontouchstart`in this}function Va(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function Ha(){var e=Ia,t=La,n=Va,r=za,i=Ba,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=Jr,l=Le(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,Ra).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,E).filter(i).on(`touchstart.zoom`,D).on(`touchmove.zoom`,O).on(`touchend.zoom touchcancel.zoom`,ee).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,Ra),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(Ma.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new Q(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new Q(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new Q(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=z(this.that).datum();l.call(e,this.that,new ja(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=B(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],xi(this),s.start();Fa(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=z(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=B(t,i),l=t.clientX,u=t.clientY;Un(t.view),Pa(t),a.mouse=[c,this.__zoom.invert(c)],xi(this),a.start();function d(e){if(Fa(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=B(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),Wn(e.view,a.moved),Fa(e),a.event(e).end()}}function E(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=B(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);Fa(r),s>0?z(this).transition().duration(s).call(x,d,c,r):z(this).call(_.transform,d,c,r)}}function D(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(Pa(t),s=0;s<i;++s)c=r[s],l=B(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),xi(this),a.start())}}function O(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(Fa(e),s=0;s<a;++s)c=i[s],l=B(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function ee(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(Pa(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=B(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=z(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:Aa(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:Aa(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:Aa(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:Aa([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var Ua=[.25,2],Wa=16,Ga=(e,t)=>{let n=t.onchange,r=Ha().scaleExtent(Ua).filter(Ka).on(`zoom`,e=>n(e.transform)),i=z(e);return i.call(r).on(`dblclick.zoom`,null),e.addEventListener(`wheel`,a,{passive:!1}),t.onready?.({reset:()=>r.transform(i,Ma)}),{update:e=>{n=e.onchange},destroy:()=>{e.removeEventListener(`wheel`,a),z(e).on(`.zoom`,null)}};function a(t){if(qa(t)||Ja(t.target,`[data-scrollable]`))return;t.preventDefault();let n=t.deltaMode===WheelEvent.DOM_DELTA_LINE?Wa:1,{k:a}=Na(e);r.translateBy(i,-t.deltaX*n/a,-t.deltaY*n/a)}};function Ka(e){return e.type===`wheel`?qa(e)&&!Ja(e.target,`[data-scrollable]`):e.ctrlKey||`button`in e&&e.button!==0?!1:!Ja(e.target,`button, a, [data-scrollable]`)}function qa(e){return e.ctrlKey||e.metaKey}function Ja(e,t){return e instanceof Element&&e.closest(t)!==null}function Ya(e,t){let n=e.map(e=>({kind:`component`,id:je(e),node:e})),r=new Map,i=new Map;for(let e of t){let t=Xa(e.src),n=je(e.dst);`service`in e.src&&r.set(t,{kind:`service`,id:t,name:e.src.service});let a=i.get(`${t} ${n}`),o=+!!to(e);a===void 0?i.set(`${t} ${n}`,{id:`${t} ${n}`,from:t,to:n,calls:1,events:o}):(a.calls++,a.events+=o)}return{vertices:[...r.values(),...n],links:[...i.values()],calls:t}}function Xa(e){return`service`in e?Za+e.service:je(e)}var Za=`svc:`,Qa=`@`;function $a(e){return e.startsWith(Za)?Qa+e.slice(4):Ce(e)}function eo(e){return e.startsWith(Qa)?Za+e.slice(1):e.includes(`.`)?e:`${we}.${e}`}function to(e){return`event`in e.src}function no(e,t){return t===null?[]:e.filter(e=>e.from===t||e.to===t)}function ro(e,t){let n=new Set;if(t===null)return n;n.add(t);for(let r of e)r.from===t&&n.add(r.to),r.to===t&&n.add(r.from);return n}function io(e){return e.kind===`component`?Ce(e.id):e.name}function ao(e,t){return e.kind===`component`?Te(e.node,t)>0:ve(e.name,t)}function oo(e,t){let n=e.vertices.find(e=>e.id===t);if(n===void 0)return null;let r=new Map(e.vertices.map(e=>[e.id,e])),i=new Map,a=new Map,o=!1;for(let s of e.calls){let e=Xa(s.src),c=je(s.dst);if(e===t&&c===t){o=!0;continue}let l=c===t?`in`:e===t?`out`:null;if(l===null)continue;let u=l===`in`?e:c,d=r.get(u);if(d===void 0)continue;let f=l===`in`?{row:co(n,s),theirs:lo(s)}:{row:lo(s),theirs:co(d,s)};so(l===`in`?i:a,`${l}:${u}`,d,f,to(s))}return{vertex:n,incoming:[...i.values()].sort(uo),outgoing:[...a.values()].sort(uo),self:o}}function so(e,t,n,r,i){let a=e.get(t);a===void 0&&(a={id:t,vertex:n,wires:[]},e.set(t,a));let o={...r,id:`${t} ${r.row} ${r.theirs} ${i}`,event:i};a.wires.some(e=>e.id===o.id)||a.wires.push(o)}function co(e,t){if(e.kind!==`component`)return null;let n=t.src;if(`event`in n){let t=je(n),r=e.node.receivers.find(e=>e.source===t&&e.event===n.event);if(r!==void 0)return`receiver:${r.label}`}return`operation:${t.dst.operation}`}function lo(e){return`event`in e.src?`event:${e.src.event}`:`operation`in e.src?`operation:${e.src.operation}`:null}function uo(e,t){return e.vertex.kind===t.vertex.kind?e.vertex.id.localeCompare(t.vertex.id):e.vertex.kind===`service`?1:-1}var fo=ae(null),po=`card`,mo=`transition-spring transition-morph`;function ho(e){return`card-`+e.replace(/[^a-z0-9]+/gi,`-`)}async function go(e){fo.set(e),await h(),await se(`${oe}/${$a(e)}/`)}async function _o(){window.navigation?.canGoBack===!0?window.history.back():await se(`${oe}/`)}var vo=4,yo=(e,t)=>{let n=t,r=null;return e.addEventListener(`pointerdown`,i),e.addEventListener(`click`,a),e.addEventListener(`keydown`,o),{update:e=>n=e,destroy:()=>{e.removeEventListener(`pointerdown`,i),e.removeEventListener(`click`,a),e.removeEventListener(`keydown`,o)}};function i(e){r={x:e.clientX,y:e.clientY}}function a(t){let i=r;if(r=null,!(i!==null&&Math.hypot(t.clientX-i.x,t.clientY-i.y)>vo)){if(t.target instanceof Element){let n=t.target.closest(`button, a`);if(n!==null&&n!==e)return}n(t.shiftKey)}}function o(t){t.target===e&&(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),n(t.shiftKey))}},bo=(e,t)=>{let{into:n,id:r}=t,i=new ResizeObserver(()=>a());return i.observe(e),{update:e=>{n=e.into,r=e.id,a()},destroy:()=>i.disconnect()};function a(){n.set(r,{width:e.offsetWidth,height:e.offsetHeight})}},$={width:220,height:61,gap:32,row:20},xo={height:40},So={width:400,height:320},Co=.25,wo={height:20,prefix:`band:`},To=6,Eo=32;function Do(e,t,n=4){let r=new Map,i=e.vertices.filter(e=>e.kind===`service`),a=e.vertices.filter(e=>e.kind===`component`).sort(Mo),o={x:$.width+$.gap,y:$.height+$.row},s=[{label:`user`,of:a.filter(e=>!xe(e.node))},{label:`system`,of:a.filter(e=>xe(e.node))}].filter(e=>e.of.length>0),c=[],l=0;for(let e of s)c.push({id:wo.prefix+e.label,label:e.label,x:0,y:l,width:0}),l+=wo.height+$.row,e.of.forEach((e,t)=>r.set(e.id,{x:t%n*o.x,y:l+Math.floor(t/n)*o.y})),l+=Math.ceil(e.of.length/n)*o.y;i.forEach((e,t)=>r.set(e.id,{x:t%n*o.x,y:l+Math.floor(t/n)*(xo.height+$.row)}));let u=[...r.values()].reduce((e,t)=>Math.max(e,t.x),0)+$.width;for(let e of c)e.width=u,r.set(e.id,{x:e.x,y:e.y});let d=new Map(i.map(e=>[e.id,xo.height]));jo(r,t,e=>({width:e.startsWith(wo.prefix)?u:$.width,height:e.startsWith(wo.prefix)?wo.height:d.get(e)??$.height}));for(let e of c){let t=r.get(e.id);t!==void 0&&Object.assign(e,t),r.delete(e.id)}return{positions:r,bands:c}}function Oo(e,t,n,r=null){let i=new Map([[e.vertex.id,{x:0,y:0}]]),a=Ao(n,e.vertex.id,So).height/2;return o(e.incoming,-1),o(e.outgoing,1),jo(i,t,t=>Ao(n,t,t===e.vertex.id?So:$));function o(e,t){let o=$.width+$.gap;ko(e).forEach((e,s)=>{let c=$.gap+s*o,l=e.map(e=>Ao(n,e.id,$).height),u=l.reduce((e,t)=>e+t,0)+$.row*(e.length-1),d=a-u/2;e.forEach((e,n)=>{let a=e.id===r?So.width:$.width;i.set(e.id,{x:t<0?-(c+a):So.width+c,y:d}),d+=l[n]+$.row})})}}function ko(e){if(e.length===0)return[];if(e.length<=To)return[e];let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}function Ao(e,t,n){return e.get(t)??n}function jo(e,t,n){if(e.size===0)return e;let r={left:1/0,top:1/0,right:-1/0,bottom:-1/0};for(let[t,i]of e){let{width:e,height:a}=n(t);r.left=Math.min(r.left,i.x),r.top=Math.min(r.top,i.y),r.right=Math.max(r.right,i.x+e),r.bottom=Math.max(r.bottom,i.y+a)}let i={width:r.right-r.left,height:r.bottom-r.top},a={x:Math.max(Eo,(t.width-i.width)/2)-r.left,y:Math.max(Eo,(t.height-i.height)/2)-r.top};for(let[t,n]of e)e.set(t,{x:n.x+a.x,y:n.y+a.y});return e}function Mo(e,t){return e.id.localeCompare(t.id)}var No=new Set([`$$slots`,`$$events`,`$$legacy`]);function Po(e,t){let n=b(t,No),r=[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`}],[`circle`,{cx:`12`,cy:`12`,r:`4`}]];ce(e,P({name:`bolt`},()=>n,{get iconNode(){return r}}))}var Fo=c(`<!> <!>`,1);function Io(e,n){r(n,!0);var i=A(),o=I(i);{let e=w(()=>[`bg-muted items-center`,n.class]);S(o,()=>he,(r,i)=>{i(r,{variant:`muted`,size:`sm`,get style(){return`height: ${xo.height??``}px`},get class(){return g(e)},children:(e,r)=>{var i=Fo(),o=I(i);S(o,()=>Pe,(e,t)=>{t(e,{children:(e,t)=>{Po(e,{class:`text-muted-foreground size-4`})},$$slots:{default:!0}})});var s=N(o,2);S(s,()=>L,(e,r)=>{r(e,{children:(e,r)=>{var i=A(),o=I(i);S(o,()=>Me,(e,r)=>{r(e,{class:`gap-0`,children:(e,r)=>{d();var i=a();v(()=>u(i,n.name)),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})})}t(e,i),p()}var Lo=1/3,Ro=2/3;function zo(e,t,n){return Vo(e,t,n,Ro)}function Bo(e,t,n){return Vo(e,t,n,Lo)}function Vo(e,t,n,r){let i=t>=e.x+e.width/2,a=e.y+(n?.y??e.height*r);if(n?.x===void 0)return{x:i?e.x+e.width:e.x,y:a,away:i?1:-1};let o=e.x+n.x;return{x:o,y:a,away:t>=o?1:-1}}function Ho(e,t){let n=Math.max(40,Math.abs(t.x-e.x)/2),r={x:e.x+e.away*n,y:e.y},i={x:t.x+t.away*n,y:t.y};return`M${e.x},${e.y} C${r.x},${r.y} ${i.x},${i.y} ${t.x},${t.y}`}function Uo(e){let t=e.x+e.width/2,n=e.y+e.height;return`M${t-10},${n} C${t-28},${n+28} ${t+28},${n+28} ${t+10},${n}`}var Wo=l(`<path fill="none" stroke="currentColor" stroke-width="1.5" class="transition-opacity" marker-end="url(#map-arrow)"></path>`),Go=l(`<svg aria-hidden="true"><defs><marker id="map-arrow" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M0,0 L8,4 L0,8 z" fill="currentColor"></path></marker></defs><!></svg>`);function Ko(e,i){r(i,!0);let a=w(()=>i.arcs.map(e=>{let t=o(e.from),n=o(e.to);if(t===null||n===null)return null;let r=e.from===e.to?Uo(t):Ho(zo(t,n.x,e.out),Bo(n,t.x,e.in));return{id:e.id,d:r,dashed:e.dashed===!0,dimmed:e.dimmed===!0}}).filter(e=>e!==null));function o(e){let t=i.positions.get(e),n=i.sizes.get(e);return t===void 0||n===void 0?null:{...t,...n}}var s=Go(),c=N(E(s));n(c,17,()=>g(a),e=>e.id,(e,n)=>{var r=Wo();v(()=>{D(r,`d`,g(n).d),D(r,`stroke-dasharray`,g(n).dashed?`4 3`:void 0),D(r,`opacity`,g(n).dimmed?Co:void 0)}),t(e,r)}),M(s),v(()=>te(s,0,ee([`pointer-events-none absolute overflow-visible`,i.class]))),t(e,s),p()}var qo=c(`<span class="text-muted-foreground"> </span>`),Jo=c(`<!> `,1),Yo=c(`<!> <!>`,1),Xo=c(`<button type="button" class="text-muted-foreground hover:bg-muted hover:text-foreground -m-1 shrink-0
|
|
1
|
+
import{$ as e,A as t,C as n,Ct as r,E as i,F as a,I as o,L as s,M as c,N as l,O as u,Ot as d,R as f,St as p,T as m,U as h,V as g,X as _,Y as v,_ as y,a as b,at as x,b as S,c as C,ct as w,dt as T,et as E,f as D,ft as O,h as ee,i as k,j as A,jt as j,kt as M,m as te,nt as N,o as P,p as ne,q as F,rt as re,st as ie,tt as I,vt as ae}from"./sTot5bBi.js";import{s as oe,t as se}from"./BZwHTGNH.js";import"./BJp4xBnY.js";import"./xihTtKlq.js";import{F as ce,I as le,N as ue,c as de,l as fe}from"./00t31nIL.js";import"./D7vojg4B.js";import{$ as pe,C as me,S as L,_ as he,_t as ge,c as _e,d as ve,et as ye,f as be,g as xe,gt as Se,h as Ce,l as we,m as Te,n as Ee,o as De,p as Oe,s as ke,t as Ae,u as je,v as Me,x as Ne,y as Pe}from"./Bhj2XpQi.js";import{t as Fe}from"./BYnJMGmA.js";var Ie={value:()=>{}};function Le(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new Re(n)}function Re(e){this._=e}function ze(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}Re.prototype=Le.prototype={constructor:Re,on:function(e,t){var n=this._,r=ze(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Be(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=Ve(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Ve(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Re(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Be(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Ve(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Ie,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var He={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function Ue(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),He.hasOwnProperty(t)?{space:He[t],local:e}:e}function We(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function Ge(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ke(e){var t=Ue(e);return(t.local?Ge:We)(t)}function qe(){}function Je(e){return e==null?qe:function(){return this.querySelector(e)}}function Ye(e){typeof e!=`function`&&(e=Je(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new R(r,this._parents)}function Xe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ze(){return[]}function Qe(e){return e==null?Ze:function(){return this.querySelectorAll(e)}}function $e(e){return function(){return Xe(e.apply(this,arguments))}}function et(e){e=typeof e==`function`?$e(e):Qe(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new R(r,i)}function tt(e){return function(){return this.matches(e)}}function nt(e){return function(t){return t.matches(e)}}var rt=Array.prototype.find;function it(e){return function(){return rt.call(this.children,e)}}function at(){return this.firstElementChild}function ot(e){return this.select(e==null?at:it(typeof e==`function`?e:nt(e)))}var st=Array.prototype.filter;function ct(){return Array.from(this.children)}function lt(e){return function(){return st.call(this.children,e)}}function ut(e){return this.selectAll(e==null?ct:lt(typeof e==`function`?e:nt(e)))}function dt(e){typeof e!=`function`&&(e=tt(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new R(r,this._parents)}function ft(e){return Array(e.length)}function pt(){return new R(this._enter||this._groups.map(ft),this._parents)}function mt(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}mt.prototype={constructor:mt,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ht(e){return function(){return e}}function gt(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new mt(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function _t(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new mt(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function vt(e){return e.__data__}function yt(e,t){if(!arguments.length)return Array.from(this,vt);var n=t?_t:gt,r=this._parents,i=this._groups;typeof e!=`function`&&(e=ht(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=bt(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new R(o,r),o._enter=s,o._exit=c,o}function bt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function xt(){return new R(this._exit||this._groups.map(ft),this._parents)}function St(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Ct(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new R(s,this._parents)}function wt(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Tt(e){e||=Et;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new R(i,this._parents).order()}function Et(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Dt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Ot(){return Array.from(this)}function kt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function At(){let e=0;for(let t of this)++e;return e}function jt(){return!this.node()}function Mt(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Nt(e){return function(){this.removeAttribute(e)}}function Pt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ft(e,t){return function(){this.setAttribute(e,t)}}function It(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Lt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Rt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function zt(e,t){var n=Ue(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Pt:Nt:typeof t==`function`?n.local?Rt:Lt:n.local?It:Ft)(n,t))}function Bt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Vt(e){return function(){this.style.removeProperty(e)}}function Ht(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ut(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Wt(e,t,n){return arguments.length>1?this.each((t==null?Vt:typeof t==`function`?Ut:Ht)(e,t,n??``)):Gt(this.node(),e)}function Gt(e,t){return e.style.getPropertyValue(t)||Bt(e).getComputedStyle(e,null).getPropertyValue(t)}function Kt(e){return function(){delete this[e]}}function qt(e,t){return function(){this[e]=t}}function Jt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Yt(e,t){return arguments.length>1?this.each((t==null?Kt:typeof t==`function`?Jt:qt)(e,t)):this.node()[e]}function Xt(e){return e.trim().split(/^|\s+/)}function Zt(e){return e.classList||new Qt(e)}function Qt(e){this._node=e,this._names=Xt(e.getAttribute(`class`)||``)}Qt.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function $t(e,t){for(var n=Zt(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function en(e,t){for(var n=Zt(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function tn(e){return function(){$t(this,e)}}function nn(e){return function(){en(this,e)}}function rn(e,t){return function(){(t.apply(this,arguments)?$t:en)(this,e)}}function an(e,t){var n=Xt(e+``);if(arguments.length<2){for(var r=Zt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?rn:t?tn:nn)(n,t))}function on(){this.textContent=``}function sn(e){return function(){this.textContent=e}}function cn(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function ln(e){return arguments.length?this.each(e==null?on:(typeof e==`function`?cn:sn)(e)):this.node().textContent}function un(){this.innerHTML=``}function dn(e){return function(){this.innerHTML=e}}function fn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function pn(e){return arguments.length?this.each(e==null?un:(typeof e==`function`?fn:dn)(e)):this.node().innerHTML}function mn(){this.nextSibling&&this.parentNode.appendChild(this)}function hn(){return this.each(mn)}function gn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _n(){return this.each(gn)}function vn(e){var t=typeof e==`function`?e:Ke(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function yn(){return null}function bn(e,t){var n=typeof e==`function`?e:Ke(e),r=t==null?yn:typeof t==`function`?t:Je(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function xn(){var e=this.parentNode;e&&e.removeChild(this)}function Sn(){return this.each(xn)}function Cn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Tn(e){return this.select(e?wn:Cn)}function En(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Dn(e){return function(t){e.call(this,t,this.__data__)}}function On(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function kn(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function An(e,t,n){return function(){var r=this.__on,i,a=Dn(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function jn(e,t,n){var r=On(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?An:kn,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Mn(e,t,n){var r=Bt(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Nn(e,t){return function(){return Mn(this,e,t)}}function Pn(e,t){return function(){return Mn(this,e,t.apply(this,arguments))}}function Fn(e,t){return this.each((typeof t==`function`?Pn:Nn)(e,t))}function*In(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Ln=[null];function R(e,t){this._groups=e,this._parents=t}function Rn(){return new R([[document.documentElement]],Ln)}function zn(){return this}R.prototype=Rn.prototype={constructor:R,select:Ye,selectAll:et,selectChild:ot,selectChildren:ut,filter:dt,data:yt,enter:pt,exit:xt,join:St,merge:Ct,selection:zn,order:wt,sort:Tt,call:Dt,nodes:Ot,node:kt,size:At,empty:jt,each:Mt,attr:zt,style:Wt,property:Yt,classed:an,text:ln,html:pn,raise:hn,lower:_n,append:vn,insert:bn,remove:Sn,clone:Tn,datum:En,on:jn,dispatch:Fn,[Symbol.iterator]:In};function z(e){return typeof e==`string`?new R([[document.querySelector(e)]],[document.documentElement]):new R([[e]],Ln)}function Bn(e){let t;for(;t=e.sourceEvent;)e=t;return e}function B(e,t){if(e=Bn(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var Vn={capture:!0,passive:!1};function Hn(e){e.preventDefault(),e.stopImmediatePropagation()}function Un(e){var t=e.document.documentElement,n=z(e).on(`dragstart.drag`,Hn,Vn);`onselectstart`in t?n.on(`selectstart.drag`,Hn,Vn):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function Wn(e,t){var n=e.document.documentElement,r=z(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,Hn,Vn),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Gn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Kn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function qn(){}var Jn=.7,Yn=1/Jn,V=`\\s*([+-]?\\d+)\\s*`,Xn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,H=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Zn=/^#([0-9a-f]{3,8})$/,Qn=RegExp(`^rgb\\(${V},${V},${V}\\)$`),$n=RegExp(`^rgb\\(${H},${H},${H}\\)$`),er=RegExp(`^rgba\\(${V},${V},${V},${Xn}\\)$`),tr=RegExp(`^rgba\\(${H},${H},${H},${Xn}\\)$`),nr=RegExp(`^hsl\\(${Xn},${H},${H}\\)$`),rr=RegExp(`^hsla\\(${Xn},${H},${H},${Xn}\\)$`),ir={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gn(qn,lr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ar,formatHex:ar,formatHex8:or,formatHsl:sr,formatRgb:cr,toString:cr});function ar(){return this.rgb().formatHex()}function or(){return this.rgb().formatHex8()}function sr(){return yr(this).formatHsl()}function cr(){return this.rgb().formatRgb()}function lr(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Zn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ur(t):n===3?new U(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?dr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?dr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Qn.exec(e))?new U(t[1],t[2],t[3],1):(t=$n.exec(e))?new U(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=er.exec(e))?dr(t[1],t[2],t[3],t[4]):(t=tr.exec(e))?dr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nr.exec(e))?vr(t[1],t[2]/100,t[3]/100,1):(t=rr.exec(e))?vr(t[1],t[2]/100,t[3]/100,t[4]):ir.hasOwnProperty(e)?ur(ir[e]):e===`transparent`?new U(NaN,NaN,NaN,0):null}function ur(e){return new U(e>>16&255,e>>8&255,e&255,1)}function dr(e,t,n,r){return r<=0&&(e=t=n=NaN),new U(e,t,n,r)}function fr(e){return e instanceof qn||(e=lr(e)),e?(e=e.rgb(),new U(e.r,e.g,e.b,e.opacity)):new U}function pr(e,t,n,r){return arguments.length===1?fr(e):new U(e,t,n,r??1)}function U(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Gn(U,pr,Kn(qn,{brighter(e){return e=e==null?Yn:Yn**+e,new U(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Jn:Jn**+e,new U(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new U(W(this.r),W(this.g),W(this.b),_r(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:mr,formatHex:mr,formatHex8:hr,formatRgb:gr,toString:gr}));function mr(){return`#${G(this.r)}${G(this.g)}${G(this.b)}`}function hr(){return`#${G(this.r)}${G(this.g)}${G(this.b)}${G((isNaN(this.opacity)?1:this.opacity)*255)}`}function gr(){let e=_r(this.opacity);return`${e===1?`rgb(`:`rgba(`}${W(this.r)}, ${W(this.g)}, ${W(this.b)}${e===1?`)`:`, ${e})`}`}function _r(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function W(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function G(e){return e=W(e),(e<16?`0`:``)+e.toString(16)}function vr(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new K(e,t,n,r)}function yr(e){if(e instanceof K)return new K(e.h,e.s,e.l,e.opacity);if(e instanceof qn||(e=lr(e)),!e)return new K;if(e instanceof K)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new K(o,s,c,e.opacity)}function br(e,t,n,r){return arguments.length===1?yr(e):new K(e,t,n,r??1)}function K(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Gn(K,br,Kn(qn,{brighter(e){return e=e==null?Yn:Yn**+e,new K(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Jn:Jn**+e,new K(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new U(Cr(e>=240?e-240:e+120,i,r),Cr(e,i,r),Cr(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new K(xr(this.h),Sr(this.s),Sr(this.l),_r(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(){let e=_r(this.opacity);return`${e===1?`hsl(`:`hsla(`}${xr(this.h)}, ${Sr(this.s)*100}%, ${Sr(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function xr(e){return e=(e||0)%360,e<0?e+360:e}function Sr(e){return Math.max(0,Math.min(1,e||0))}function Cr(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var wr=e=>()=>e;function Tr(e,t){return function(n){return e+n*t}}function Er(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Dr(e){return(e=+e)==1?Or:function(t,n){return n-t?Er(t,n,e):wr(isNaN(t)?n:t)}}function Or(e,t){var n=t-e;return n?Tr(e,n):wr(isNaN(e)?t:e)}var kr=(function e(t){var n=Dr(t);function r(e,t){var r=n((e=pr(e)).r,(t=pr(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Or(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function q(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Ar=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jr=new RegExp(Ar.source,`g`);function Mr(e){return function(){return e}}function Nr(e){return function(t){return e(t)+``}}function Pr(e,t){var n=Ar.lastIndex=jr.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Ar.exec(e))&&(i=jr.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:q(r,i)})),n=jr.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Nr(c[0].x):Mr(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var Fr=180/Math.PI,Ir={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Lr(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Fr,skewX:Math.atan(c)*Fr,scaleX:o,scaleY:s}}var Rr;function zr(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Ir:Lr(t.a,t.b,t.c,t.d,t.e,t.f)}function Br(e){return e==null||(Rr||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Rr.setAttribute(`transform`,e),!(e=Rr.transform.baseVal.consolidate()))?Ir:(e=e.matrix,Lr(e.a,e.b,e.c,e.d,e.e,e.f))}function Vr(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:q(e,i)},{i:c-2,x:q(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:q(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:q(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:q(e,n)},{i:s-2,x:q(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var Hr=Vr(zr,`px, `,`px)`,`deg)`),Ur=Vr(Br,`, `,`)`,`)`),Wr=1e-12;function Gr(e){return((e=Math.exp(e))+1/e)/2}function Kr(e){return((e=Math.exp(e))-1/e)/2}function qr(e){return((e=Math.exp(2*e))-1)/(e+1)}var Jr=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<Wr)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=Gr(y),c=s/(n*g)*(i*qr(t*r+y)-Kr(y));return[a+c*d,o+c*f,s*i/Gr(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),Yr=0,Xr=0,Zr=0,Qr=1e3,$r,ei,ti=0,ni=0,ri=0,ii=typeof performance==`object`&&performance.now?performance:Date,ai=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function oi(){return ni||=(ai(si),ii.now()+ri)}function si(){ni=0}function ci(){this._call=this._time=this._next=null}ci.prototype=li.prototype={constructor:ci,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?oi():+n)+(t==null?0:+t),!this._next&&ei!==this&&(ei?ei._next=this:$r=this,ei=this),this._call=e,this._time=n,mi()},stop:function(){this._call&&(this._call=null,this._time=1/0,mi())}};function li(e,t,n){var r=new ci;return r.restart(e,t,n),r}function ui(){oi(),++Yr;for(var e=$r,t;e;)(t=ni-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Yr}function di(){ni=(ti=ii.now())+ri,Yr=Xr=0;try{ui()}finally{Yr=0,pi(),ni=0}}function fi(){var e=ii.now(),t=e-ti;t>Qr&&(ri-=t,ti=e)}function pi(){for(var e,t=$r,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:$r=n);ei=e,mi(r)}function mi(e){Yr||(Xr&&=clearTimeout(Xr),e-ni>24?(e<1/0&&(Xr=setTimeout(di,e-ii.now()-ri)),Zr&&=clearInterval(Zr)):(Zr||=(ti=ii.now(),setInterval(fi,Qr)),Yr=1,ai(di)))}function hi(e,t,n){var r=new ci;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var gi=Le(`start`,`end`,`cancel`,`interrupt`),_i=[];function vi(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;bi(e,n,{name:t,index:r,group:i,on:gi,tween:_i,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function yi(e,t){var n=Y(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function J(e,t){var n=Y(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Y(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function bi(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=li(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return hi(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(hi(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function xi(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Si(e){return this.each(function(){xi(this,e)})}function Ci(e,t){var n,r;return function(){var i=J(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function wi(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=J(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Ti(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Y(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Ci:wi)(n,e,t))}function Ei(e,t,n){var r=e._id;return e.each(function(){var e=J(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Y(e,r).value[t]}}function Di(e,t){var n;return(typeof t==`number`?q:t instanceof lr?kr:(n=lr(t))?(t=n,kr):Pr)(e,t)}function Oi(e){return function(){this.removeAttribute(e)}}function ki(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ai(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function ji(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Mi(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Ni(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Pi(e,t){var n=Ue(e),r=n===`transform`?Ur:Di;return this.attrTween(e,typeof t==`function`?(n.local?Ni:Mi)(n,r,Ei(this,`attr.`+e,t)):t==null?(n.local?ki:Oi)(n):(n.local?ji:Ai)(n,r,t))}function Fi(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Ii(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Li(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ii(e,i)),n}return i._value=t,i}function Ri(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Fi(e,i)),n}return i._value=t,i}function zi(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=Ue(e);return this.tween(n,(r.local?Li:Ri)(r,t))}function Bi(e,t){return function(){yi(this,e).delay=+t.apply(this,arguments)}}function Vi(e,t){return t=+t,function(){yi(this,e).delay=t}}function Hi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Bi:Vi)(t,e)):Y(this.node(),t).delay}function Ui(e,t){return function(){J(this,e).duration=+t.apply(this,arguments)}}function Wi(e,t){return t=+t,function(){J(this,e).duration=t}}function Gi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Ui:Wi)(t,e)):Y(this.node(),t).duration}function Ki(e,t){if(typeof t!=`function`)throw Error();return function(){J(this,e).ease=t}}function qi(e){var t=this._id;return arguments.length?this.each(Ki(t,e)):Y(this.node(),t).ease}function Ji(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();J(this,e).ease=n}}function Yi(e){if(typeof e!=`function`)throw Error();return this.each(Ji(this._id,e))}function Xi(e){typeof e!=`function`&&(e=tt(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new X(r,this._parents,this._name,this._id)}function Zi(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new X(o,this._parents,this._name,this._id)}function Qi(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function $i(e,t,n){var r,i,a=Qi(t)?yi:J;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function ea(e,t){var n=this._id;return arguments.length<2?Y(this.node(),n).on.on(e):this.each($i(n,e,t))}function ta(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function na(){return this.on(`end.remove`,ta(this._id))}function ra(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Je(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,vi(l[f],t,n,f,l,Y(u,n)));return new X(a,this._parents,t,n)}function ia(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Qe(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=Y(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&vi(p,t,n,h,f,m);a.push(f),o.push(u)}return new X(a,o,t,n)}var aa=Rn.prototype.constructor;function oa(){return new aa(this._groups,this._parents)}function sa(e,t){var n,r,i;return function(){var a=Gt(this,e),o=(this.style.removeProperty(e),Gt(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function ca(e){return function(){this.style.removeProperty(e)}}function la(e,t,n){var r,i=n+``,a;return function(){var o=Gt(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function ua(e,t,n){var r,i,a;return function(){var o=Gt(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),Gt(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function da(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=J(this,e),l=c.on,u=c.value[a]==null?s||=ca(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function fa(e,t,n){var r=(e+=``)==`transform`?Hr:Di;return t==null?this.styleTween(e,sa(e,r)).on(`end.style.`+e,ca(e)):typeof t==`function`?this.styleTween(e,ua(e,r,Ei(this,`style.`+e,t))).each(da(this._id,e)):this.styleTween(e,la(e,r,t),n).on(`end.style.`+e,null)}function pa(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function ma(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&pa(e,a,n)),r}return a._value=t,a}function ha(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,ma(e,t,n??``))}function ga(e){return function(){this.textContent=e}}function _a(e){return function(){var t=e(this);this.textContent=t??``}}function va(e){return this.tween(`text`,typeof e==`function`?_a(Ei(this,`text`,e)):ga(e==null?``:e+``))}function ya(e){return function(t){this.textContent=e.call(this,t)}}function ba(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&ya(r)),t}return r._value=e,r}function xa(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,ba(e))}function Sa(){for(var e=this._name,t=this._id,n=Ta(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=Y(c,t);vi(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new X(r,this._parents,e,n)}function Ca(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=J(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var wa=0;function X(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ta(){return++wa}var Z=Rn.prototype;X.prototype={constructor:X,select:ra,selectAll:ia,selectChild:Z.selectChild,selectChildren:Z.selectChildren,filter:Xi,merge:Zi,selection:oa,transition:Sa,call:Z.call,nodes:Z.nodes,node:Z.node,size:Z.size,empty:Z.empty,each:Z.each,on:ea,attr:Pi,attrTween:zi,style:fa,styleTween:ha,text:va,textTween:xa,remove:na,tween:Ti,delay:Hi,duration:Gi,ease:qi,easeVarying:Yi,end:Ca,[Symbol.iterator]:Z[Symbol.iterator]};function Ea(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Da={time:null,delay:0,duration:250,ease:Ea};function Oa(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function ka(e){var t,n;e instanceof X?(t=e._id,e=e._name):(t=Ta(),(n=Da).time=oi(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&vi(c,e,t,l,o,n||Oa(c,t));return new X(r,this._parents,e,t)}Rn.prototype.interrupt=Si,Rn.prototype.transition=ka;var Aa=e=>()=>e;function ja(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Q(e,t,n){this.k=e,this.x=t,this.y=n}Q.prototype={constructor:Q,scale:function(e){return e===1?this:new Q(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Q(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var Ma=new Q(1,0,0);Na.prototype=Q.prototype;function Na(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Ma;return e.__zoom}function Pa(e){e.stopImmediatePropagation()}function Fa(e){e.preventDefault(),e.stopImmediatePropagation()}function Ia(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function La(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Ra(){return this.__zoom||Ma}function za(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ba(){return navigator.maxTouchPoints||`ontouchstart`in this}function Va(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function Ha(){var e=Ia,t=La,n=Va,r=za,i=Ba,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=Jr,l=Le(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,Ra).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,E).filter(i).on(`touchstart.zoom`,D).on(`touchmove.zoom`,O).on(`touchend.zoom touchcancel.zoom`,ee).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,Ra),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(Ma.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new Q(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new Q(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new Q(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=z(this.that).datum();l.call(e,this.that,new ja(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=B(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],xi(this),s.start();Fa(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=z(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=B(t,i),l=t.clientX,u=t.clientY;Un(t.view),Pa(t),a.mouse=[c,this.__zoom.invert(c)],xi(this),a.start();function d(e){if(Fa(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=B(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),Wn(e.view,a.moved),Fa(e),a.event(e).end()}}function E(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=B(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);Fa(r),s>0?z(this).transition().duration(s).call(x,d,c,r):z(this).call(_.transform,d,c,r)}}function D(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(Pa(t),s=0;s<i;++s)c=r[s],l=B(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),xi(this),a.start())}}function O(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(Fa(e),s=0;s<a;++s)c=i[s],l=B(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function ee(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(Pa(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=B(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=z(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:Aa(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:Aa(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:Aa(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:Aa([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var Ua=[.25,2],Wa=16,Ga=(e,t)=>{let n=t.onchange,r=Ha().scaleExtent(Ua).filter(Ka).on(`zoom`,e=>n(e.transform)),i=z(e);return i.call(r).on(`dblclick.zoom`,null),e.addEventListener(`wheel`,a,{passive:!1}),t.onready?.({reset:()=>r.transform(i,Ma)}),{update:e=>{n=e.onchange},destroy:()=>{e.removeEventListener(`wheel`,a),z(e).on(`.zoom`,null)}};function a(t){if(qa(t)||Ja(t.target,`[data-scrollable]`))return;t.preventDefault();let n=t.deltaMode===WheelEvent.DOM_DELTA_LINE?Wa:1,{k:a}=Na(e);r.translateBy(i,-t.deltaX*n/a,-t.deltaY*n/a)}};function Ka(e){return e.type===`wheel`?qa(e)&&!Ja(e.target,`[data-scrollable]`):e.ctrlKey||`button`in e&&e.button!==0?!1:!Ja(e.target,`button, a, [data-scrollable]`)}function qa(e){return e.ctrlKey||e.metaKey}function Ja(e,t){return e instanceof Element&&e.closest(t)!==null}function Ya(e,t){let n=e.map(e=>({kind:`component`,id:je(e),node:e})),r=new Map,i=new Map;for(let e of t){let t=Xa(e.src),n=je(e.dst);`service`in e.src&&r.set(t,{kind:`service`,id:t,name:e.src.service});let a=i.get(`${t} ${n}`),o=+!!to(e);a===void 0?i.set(`${t} ${n}`,{id:`${t} ${n}`,from:t,to:n,calls:1,events:o}):(a.calls++,a.events+=o)}return{vertices:[...r.values(),...n],links:[...i.values()],calls:t}}function Xa(e){return`service`in e?Za+e.service:je(e)}var Za=`svc:`,Qa=`@`;function $a(e){return e.startsWith(Za)?Qa+e.slice(4):Ce(e)}function eo(e){return e.startsWith(Qa)?Za+e.slice(1):e.includes(`.`)?e:`${we}.${e}`}function to(e){return`event`in e.src}function no(e,t){return t===null?[]:e.filter(e=>e.from===t||e.to===t)}function ro(e,t){let n=new Set;if(t===null)return n;n.add(t);for(let r of e)r.from===t&&n.add(r.to),r.to===t&&n.add(r.from);return n}function io(e){return e.kind===`component`?Ce(e.id):e.name}function ao(e,t){return e.kind===`component`?Te(e.node,t)>0:ve(e.name,t)}function oo(e,t){let n=e.vertices.find(e=>e.id===t);if(n===void 0)return null;let r=new Map(e.vertices.map(e=>[e.id,e])),i=new Map,a=new Map,o=!1;for(let s of e.calls){let e=Xa(s.src),c=je(s.dst);if(e===t&&c===t){o=!0;continue}let l=c===t?`in`:e===t?`out`:null;if(l===null)continue;let u=l===`in`?e:c,d=r.get(u);if(d===void 0)continue;let f=l===`in`?{row:co(n,s),theirs:lo(s)}:{row:lo(s),theirs:co(d,s)};so(l===`in`?i:a,`${l}:${u}`,d,f,to(s))}return{vertex:n,incoming:[...i.values()].sort(uo),outgoing:[...a.values()].sort(uo),self:o}}function so(e,t,n,r,i){let a=e.get(t);a===void 0&&(a={id:t,vertex:n,wires:[]},e.set(t,a));let o={...r,id:`${t} ${r.row} ${r.theirs} ${i}`,event:i};a.wires.some(e=>e.id===o.id)||a.wires.push(o)}function co(e,t){if(e.kind!==`component`)return null;let n=t.src;if(`event`in n){let t=je(n),r=e.node.receivers.find(e=>e.source===t&&e.event===n.event);if(r!==void 0)return`receiver:${r.label}`}return`operation:${t.dst.operation}`}function lo(e){return`event`in e.src?`event:${e.src.event}`:`operation`in e.src?`operation:${e.src.operation}`:null}function uo(e,t){return e.vertex.kind===t.vertex.kind?e.vertex.id.localeCompare(t.vertex.id):e.vertex.kind===`service`?1:-1}var fo=ae(null),po=`card`,mo=`transition-spring transition-morph`;function ho(e){return`card-`+e.replace(/[^a-z0-9]+/gi,`-`)}async function go(e){fo.set(e),await h(),await se(`${oe}/${$a(e)}/`)}async function _o(){window.navigation?.canGoBack===!0?window.history.back():await se(`${oe}/`)}var vo=4,yo=(e,t)=>{let n=t,r=null;return e.addEventListener(`pointerdown`,i),e.addEventListener(`click`,a),e.addEventListener(`keydown`,o),{update:e=>n=e,destroy:()=>{e.removeEventListener(`pointerdown`,i),e.removeEventListener(`click`,a),e.removeEventListener(`keydown`,o)}};function i(e){r={x:e.clientX,y:e.clientY}}function a(t){let i=r;if(r=null,!(i!==null&&Math.hypot(t.clientX-i.x,t.clientY-i.y)>vo)){if(t.target instanceof Element){let n=t.target.closest(`button, a`);if(n!==null&&n!==e)return}n(t.shiftKey)}}function o(t){t.target===e&&(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),n(t.shiftKey))}},bo=(e,t)=>{let{into:n,id:r}=t,i=new ResizeObserver(()=>a());return i.observe(e),{update:e=>{n=e.into,r=e.id,a()},destroy:()=>i.disconnect()};function a(){n.set(r,{width:e.offsetWidth,height:e.offsetHeight})}},$={width:220,height:61,gap:32,row:20},xo={height:40},So={width:400,height:320},Co=.25,wo={height:20,prefix:`band:`},To=6,Eo=32;function Do(e,t,n=4){let r=new Map,i=e.vertices.filter(e=>e.kind===`service`),a=e.vertices.filter(e=>e.kind===`component`).sort(Mo),o={x:$.width+$.gap,y:$.height+$.row},s=[{label:`user`,of:a.filter(e=>!xe(e.node))},{label:`system`,of:a.filter(e=>xe(e.node))}].filter(e=>e.of.length>0),c=[],l=0;for(let e of s)c.push({id:wo.prefix+e.label,label:e.label,x:0,y:l,width:0}),l+=wo.height+$.row,e.of.forEach((e,t)=>r.set(e.id,{x:t%n*o.x,y:l+Math.floor(t/n)*o.y})),l+=Math.ceil(e.of.length/n)*o.y;i.forEach((e,t)=>r.set(e.id,{x:t%n*o.x,y:l+Math.floor(t/n)*(xo.height+$.row)}));let u=[...r.values()].reduce((e,t)=>Math.max(e,t.x),0)+$.width;for(let e of c)e.width=u,r.set(e.id,{x:e.x,y:e.y});let d=new Map(i.map(e=>[e.id,xo.height]));jo(r,t,e=>({width:e.startsWith(wo.prefix)?u:$.width,height:e.startsWith(wo.prefix)?wo.height:d.get(e)??$.height}));for(let e of c){let t=r.get(e.id);t!==void 0&&Object.assign(e,t),r.delete(e.id)}return{positions:r,bands:c}}function Oo(e,t,n,r=null){let i=new Map([[e.vertex.id,{x:0,y:0}]]),a=Ao(n,e.vertex.id,So).height/2;return o(e.incoming,-1),o(e.outgoing,1),jo(i,t,t=>Ao(n,t,t===e.vertex.id?So:$));function o(e,t){let o=$.width+$.gap;ko(e).forEach((e,s)=>{let c=$.gap+s*o,l=e.map(e=>Ao(n,e.id,$).height),u=l.reduce((e,t)=>e+t,0)+$.row*(e.length-1),d=a-u/2;e.forEach((e,n)=>{let a=e.id===r?So.width:$.width;i.set(e.id,{x:t<0?-(c+a):So.width+c,y:d}),d+=l[n]+$.row})})}}function ko(e){if(e.length===0)return[];if(e.length<=To)return[e];let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}function Ao(e,t,n){return e.get(t)??n}function jo(e,t,n){if(e.size===0)return e;let r={left:1/0,top:1/0,right:-1/0,bottom:-1/0};for(let[t,i]of e){let{width:e,height:a}=n(t);r.left=Math.min(r.left,i.x),r.top=Math.min(r.top,i.y),r.right=Math.max(r.right,i.x+e),r.bottom=Math.max(r.bottom,i.y+a)}let i={width:r.right-r.left,height:r.bottom-r.top},a={x:Math.max(Eo,(t.width-i.width)/2)-r.left,y:Math.max(Eo,(t.height-i.height)/2)-r.top};for(let[t,n]of e)e.set(t,{x:n.x+a.x,y:n.y+a.y});return e}function Mo(e,t){return e.id.localeCompare(t.id)}var No=new Set([`$$slots`,`$$events`,`$$legacy`]);function Po(e,t){let n=b(t,No),r=[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`}],[`circle`,{cx:`12`,cy:`12`,r:`4`}]];ce(e,P({name:`bolt`},()=>n,{get iconNode(){return r}}))}var Fo=c(`<!> <!>`,1);function Io(e,n){r(n,!0);var i=A(),o=I(i);{let e=w(()=>[`bg-muted items-center`,n.class]);S(o,()=>he,(r,i)=>{i(r,{variant:`muted`,size:`sm`,get style(){return`height: ${xo.height??``}px`},get class(){return g(e)},children:(e,r)=>{var i=Fo(),o=I(i);S(o,()=>Pe,(e,t)=>{t(e,{children:(e,t)=>{Po(e,{class:`text-muted-foreground size-4`})},$$slots:{default:!0}})});var s=N(o,2);S(s,()=>L,(e,r)=>{r(e,{children:(e,r)=>{var i=A(),o=I(i);S(o,()=>Me,(e,r)=>{r(e,{class:`gap-0`,children:(e,r)=>{d();var i=a();v(()=>u(i,n.name)),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})})}t(e,i),p()}var Lo=1/3,Ro=2/3;function zo(e,t,n){return Vo(e,t,n,Ro)}function Bo(e,t,n){return Vo(e,t,n,Lo)}function Vo(e,t,n,r){let i=t>=e.x+e.width/2,a=e.y+(n?.y??e.height*r);if(n?.x===void 0)return{x:i?e.x+e.width:e.x,y:a,away:i?1:-1};let o=e.x+n.x;return{x:o,y:a,away:t>=o?1:-1}}function Ho(e,t){let n=Math.max(40,Math.abs(t.x-e.x)/2),r={x:e.x+e.away*n,y:e.y},i={x:t.x+t.away*n,y:t.y};return`M${e.x},${e.y} C${r.x},${r.y} ${i.x},${i.y} ${t.x},${t.y}`}function Uo(e){let t=e.x+e.width/2,n=e.y+e.height;return`M${t-10},${n} C${t-28},${n+28} ${t+28},${n+28} ${t+10},${n}`}var Wo=l(`<path fill="none" stroke="currentColor" stroke-width="1.5" class="transition-opacity" marker-end="url(#map-arrow)"></path>`),Go=l(`<svg aria-hidden="true"><defs><marker id="map-arrow" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M0,0 L8,4 L0,8 z" fill="currentColor"></path></marker></defs><!></svg>`);function Ko(e,i){r(i,!0);let a=w(()=>i.arcs.map(e=>{let t=o(e.from),n=o(e.to);if(t===null||n===null)return null;let r=e.from===e.to?Uo(t):Ho(zo(t,n.x,e.out),Bo(n,t.x,e.in));return{id:e.id,d:r,dashed:e.dashed===!0,dimmed:e.dimmed===!0}}).filter(e=>e!==null));function o(e){let t=i.positions.get(e),n=i.sizes.get(e);return t===void 0||n===void 0?null:{...t,...n}}var s=Go(),c=N(E(s));n(c,17,()=>g(a),e=>e.id,(e,n)=>{var r=Wo();v(()=>{D(r,`d`,g(n).d),D(r,`stroke-dasharray`,g(n).dashed?`4 3`:void 0),D(r,`opacity`,g(n).dimmed?Co:void 0)}),t(e,r)}),M(s),v(()=>te(s,0,ee([`pointer-events-none absolute overflow-visible`,i.class]))),t(e,s),p()}var qo=c(`<span class="text-muted-foreground"> </span>`),Jo=c(`<!> `,1),Yo=c(`<!> <!>`,1),Xo=c(`<button type="button" class="text-muted-foreground hover:bg-muted hover:text-foreground -m-1 shrink-0
|
|
2
2
|
cursor-pointer rounded-md p-1 transition-colors"><!></button>`),Zo=c(`<div class="flex items-start gap-2"><!> <!></div> <!>`,1);function Qo(e,n){r(n,!0);let a=()=>O(_e,`$dict`,o),[o,c]=T(),l=k(n,`open`,3,!1);var d=A(),f=I(d);{let e=w(()=>[`bg-card flex-col items-stretch gap-0`,n.class]);S(f,()=>he,(r,o)=>{o(r,{variant:`outline`,size:`sm`,get class(){return g(e)},children:(e,r)=>{var o=Zo(),c=I(o),d=E(c);S(d,()=>L,(e,r)=>{r(e,{class:`min-w-0`,children:(e,r)=>{var a=Yo(),o=I(a);S(o,()=>Me,(e,r)=>{r(e,{class:`gap-0`,children:(e,r)=>{var a=Jo(),o=I(a),s=e=>{var r=qo(),i=E(r);M(r),v(()=>u(i,`${n.node.namespace??``}.`)),t(e,r)};i(o,e=>{n.node.namespace!=="default"&&e(s)});var c=N(o,1,!0);v(()=>u(c,n.node.component)),t(e,a)},$$slots:{default:!0}})});var s=N(o,2);S(s,()=>Ne,(e,t)=>{t(e,{class:`text-xs line-clamp-none`,children:(e,t)=>{De(e,{get node(){return n.node}})},$$slots:{default:!0}})}),t(e,a)},$$slots:{default:!0}})});var f=N(d,2),p=e=>{var r=Xo(),i=E(r);{let e=w(()=>[`size-4 transition-transform`,l()&&`rotate-180`]);ke(i,{get class(){return g(e)}})}M(r),v(()=>{D(r,`aria-expanded`,l()),D(r,`aria-label`,a().map.expand)}),s(`click`,r,function(...e){n.ontoggle?.apply(this,e)}),t(e,r)};i(f,e=>{n.ontoggle!==void 0&&e(p)}),M(c);var m=N(c,2),h=e=>{Ee(e,{get node(){return n.node},class:`pt-3`})};i(m,e=>{l()&&e(h)}),t(e,o)},$$slots:{default:!0}})})}t(e,d),p(),c()}o([`click`]);var $o=c(`<div class="text-muted-foreground absolute top-0 left-0 flex items-center gap-3"><span class="text-xs font-medium tracking-wide uppercase"> </span> <!></div>`),es=c(`<div class="absolute top-0 left-0 cursor-pointer transition-opacity" role="button" tabindex="0"><!></div>`),ts=c(`<!> <!> <!>`,1);function ns(e,a){r(a,!0);let o=()=>O(Oe,`$query`,l),s=()=>O(_e,`$dict`,l),c=()=>O(fo,`$flying`,l),[l,d]=T(),m=new pe,h=ie(null),b=w(()=>Do(a.graph,a.view)),S=w(()=>g(b).positions),C=w(()=>ro(a.graph.links,g(h))),ee=w(()=>no(a.graph.links,g(h)).map(e=>({id:e.id,from:e.from,to:e.to,dashed:e.events===e.calls})));_(()=>{let e=a.graph.vertices.filter(e=>ao(e,o())),t=e.length===1?e[0].id:null;return be.set(t===null?null:()=>void go(t)),()=>be.set(null)});function k(e){return ao(e,o())?g(h)===null||g(C).has(e.id):!1}var A=ts(),j=I(A);Ko(j,{class:`text-muted-foreground/50`,get arcs(){return g(ee)},get positions(){return g(S)},get sizes(){return m}});var te=N(j,2);n(te,17,()=>g(b).bands,e=>e.id,(e,n)=>{var r=$o();let i;var a=E(r),o=E(a,!0);M(a);var c=N(a,2);me(c,{class:`flex-1`}),M(r),v(()=>{i=ne(r,``,i,{translate:`${g(n).x??``}px ${g(n).y??``}px`,width:`${g(n).width??``}px`,height:`${wo.height??``}px`}),u(o,s().space[g(n).label])}),t(e,r)});var P=N(te,2);n(P,17,()=>a.graph.vertices,e=>e.id,(e,n)=>{let r=w(()=>g(S).get(g(n).id)??{x:0,y:0});var a=es();let o;var s=E(a),l=e=>{Qo(e,{get node(){return g(n).node}})},u=e=>{Io(e,{get name(){return g(n).name}})};i(s,e=>{g(n).kind===`component`?e(l):e(u,-1)}),M(a),y(a,(e,t)=>bo?.(e,t),()=>({into:m,id:g(n).id})),y(a,(e,t)=>yo?.(e,t),()=>()=>void go(g(n).id)),v((e,t)=>{D(a,`aria-label`,e),o=ne(a,``,o,t)},[()=>io(g(n)),()=>({translate:`${g(r).x??``}px ${g(r).y??``}px`,width:`${$.width??``}px`,opacity:k(g(n))?1:Co,"view-transition-name":c()===g(n).id?po:void 0,"view-transition-class":c()===g(n).id?mo:void 0})]),f(`mouseenter`,a,()=>x(h,g(n).id,!0)),f(`mouseleave`,a,()=>x(h,null)),t(e,a)}),t(e,A),p(),d()}var rs=(e,t)=>{let n=new ResizeObserver(()=>s()),r=new MutationObserver(()=>s()),{into:i,of:a}=t,o=new Set;return n.observe(e),r.observe(e,{childList:!0,subtree:!0}),s(),{update:e=>{i=e.into,a=e.of,s()},destroy:()=>{n.disconnect(),r.disconnect();for(let e of o)i.delete(e)}};function s(){let t=new Set;for(let n of e.querySelectorAll(`[data-row]`)){if(n.dataset.row===void 0)continue;let e=`${a} ${n.dataset.row}`;t.add(e);let r={top:l(n).top,height:n.offsetHeight,right:c(n)},o=i.get(e);(o===void 0||o.top!==r.top||o.height!==r.height||o.right!==r.right)&&i.set(e,r)}for(let e of o)t.has(e)||i.delete(e);o=t}function c(e){let t=0;for(let n of e.children)n instanceof HTMLElement&&(t=Math.max(t,l(n).left+n.offsetWidth));return t===0?l(e).left+e.offsetWidth:t}function l(t){let n={top:0,left:0},r=t;for(;r!==null&&r!==e;)n.top+=r.offsetTop,n.left+=r.offsetLeft,r=r.offsetParent;return n}},is=(e,t)=>{let n=t;return e.addEventListener(`mouseover`,r),e.addEventListener(`mouseleave`,i),e.addEventListener(`focusin`,r),e.addEventListener(`focusout`,i),{update:e=>n=e,destroy:()=>{e.removeEventListener(`mouseover`,r),e.removeEventListener(`mouseleave`,i),e.removeEventListener(`focusin`,r),e.removeEventListener(`focusout`,i)}};function r(e){let t=e.target instanceof Element?e.target.closest(`[data-row]`):null;n(t?.getAttribute(`data-row`)??null)}function i(){n(null)}},as=c(`<div class="pointer-events-none absolute inset-y-0 end-2 flex items-center"><!></div>`),os=c(`<div role="button" tabindex="0"><div class="transition-opacity"><!></div> <!></div>`),ss=c(`<!> <!> <div class="absolute top-0 left-0"><!></div>`,1);function cs(e,o){r(o,!0);let s=()=>O(fo,`$flying`,m),c=()=>O(Oe,`$query`,m),l=()=>O(_e,`$dict`,m),[m,h]=T();_(()=>fo.set(o.id));let b=new pe,S=new pe,C=ie(null),k=ie(null),j=w(()=>oo(o.graph,o.id));function P(){return(g(j)?.incoming??[]).filter(e=>e.vertex.kind===`service`).map(e=>e.id)}let F=new ye(P()),re=w(()=>g(j)===null?new Map:Oo(g(j),o.view,b,g(C))),ae=w(()=>{if(g(j)===null)return[];let e=[];for(let t of g(j).incoming)if(!F.has(t.id))for(let n of t.wires)e.push({id:n.id,from:t.id,to:g(j).vertex.id,out:ce(t.id,n.theirs,8),in:ce(g(j).vertex.id,n.row),dashed:n.event,dimmed:!oe(t,n)});for(let t of g(j).outgoing)if(!F.has(t.id))for(let n of t.wires)e.push({id:n.id,from:g(j).vertex.id,to:t.id,out:ce(g(j).vertex.id,n.row,8),in:ce(t.id,n.theirs),dashed:n.event,dimmed:!oe(t,n)});return g(j).self&&e.push({id:`self`,from:g(j).vertex.id,to:g(j).vertex.id,dimmed:g(k)!==null}),e});function oe(e,t){return g(k)===null?!0:g(k).of===`card`?g(k).id===e.id:g(k).id===t.row}function se(e){return g(k)===null?!0:g(k).of===`card`?g(k).id===e.id:e.wires.some(e=>e.row===g(k)?.id)}function ce(e,t,n){if(t===null)return;let r=S.get(`${e} ${t}`);if(r!==void 0)return{y:r.top+r.height/2,x:n===void 0?void 0:r.right+n}}function le(e){de(()=>{x(C,g(C)===e.id?null:e.id,!0)})}function ue(e,t){t?F.has(e.id)?F.delete(e.id):F.add(e.id):go(e.vertex.id)}let me=w(()=>[...g(j)?.incoming??[],...g(j)?.outgoing??[]].find(e=>e.vertex.id===s())?.id??null);function L(e){return g(re).get(e)??{x:0,y:0}}var he=A(),ge=I(he),ve=e=>{var r=ss(),o=I(r);Ko(o,{class:`text-muted-foreground/50 z-10`,get arcs(){return g(ae)},get positions(){return g(re)},get sizes(){return b}});var p=N(o,2);n(p,17,()=>[...g(j).incoming,...g(j).outgoing],e=>e.id,(e,n)=>{var r=os();let o;var s=E(r);let p;var m=E(s),h=e=>{{let t=w(()=>g(C)===g(n).id);Qo(e,{get node(){return g(n).vertex.node},get open(){return g(t)},ontoggle:()=>le(g(n))})}},_=e=>{Io(e,{get name(){return g(n).vertex.name}})};i(m,e=>{g(n).vertex.kind===`component`?e(h):e(_,-1)}),M(s);var T=N(s,2),O=e=>{var n=as(),r=E(n);Fe(r,{children:(e,n)=>{d();var r=a();v(()=>u(r,l().map.restore)),t(e,r)},$$slots:{default:!0}}),M(n),t(e,n)},A=w(()=>F.has(g(n).id)&&g(n).vertex.kind===`service`);i(T,e=>{g(A)&&e(O)}),M(r),y(r,(e,t)=>bo?.(e,t),()=>({into:b,id:g(n).id})),y(r,(e,t)=>rs?.(e,t),()=>({into:S,of:g(n).id})),y(r,(e,t)=>fe?.(e,t),()=>({name:ho(g(n).id),classes:mo})),y(r,(e,t)=>yo?.(e,t),()=>e=>ue(g(n),e)),v((e,t,i)=>{te(r,1,ee([`absolute top-0 left-0 cursor-pointer`,g(C)===g(n).id?`z-0`:`z-20`])),D(r,`aria-label`,e),o=ne(r,``,o,t),p=ne(s,``,p,i)},[()=>io(g(n).vertex),()=>({translate:`${L(g(n).id).x??``}px ${L(g(n).id).y??``}px`,width:`${(g(C)===g(n).id?So.width:$.width)??``}px`,"view-transition-name":g(me)===g(n).id?po:void 0,"view-transition-class":g(me)===g(n).id?mo:void 0}),()=>({opacity:ao(g(n).vertex,c())&&se(g(n))&&!F.has(g(n).id)?1:Co})]),f(`mouseenter`,r,()=>x(k,F.has(g(n).id)?null:{of:`card`,id:g(n).id},!0)),f(`mouseleave`,r,()=>x(k,null)),t(e,r)});var m=N(p,2);let h;var _=E(m),T=e=>{Ae(e,{class:`bg-card`,get node(){return g(j).vertex.node},collapsible:!1})},O=e=>{Io(e,{get name(){return g(j).vertex.name}})};i(_,e=>{g(j).vertex.kind===`component`?e(T):e(O,-1)}),M(m),y(m,(e,t)=>bo?.(e,t),()=>({into:b,id:g(j).vertex.id})),y(m,(e,t)=>rs?.(e,t),()=>({into:S,of:g(j).vertex.id})),y(m,(e,t)=>is?.(e,t),()=>e=>x(k,e===null?null:{of:`row`,id:e},!0)),v(e=>h=ne(m,``,h,e),[()=>({translate:`${L(g(j).vertex.id).x??``}px ${L(g(j).vertex.id).y??``}px`,width:`${So.width??``}px`,"view-transition-name":s()===g(j).vertex.id?po:void 0,"view-transition-class":s()===g(j).vertex.id?mo:void 0})]),t(e,r)};i(ge,e=>{g(j)!==null&&e(ve)}),t(e,he),p(),h()}var ls=c(`<p class="text-muted-foreground absolute inset-x-0 top-4 text-center text-sm"> </p>`),us=c(`<!> <div class="absolute top-0 left-0 origin-top-left"><!></div>`,1),ds=c(`<div><!></div>`);function fs(n,a){r(a,!0);let o=()=>O(_e,`$dict`,s),[s,c]=T(),l=k(a,`focus`,3,null),d=ie(re(Ma)),h=ie(null),b=re({width:0,height:0});_(()=>S(l()));function S(e){g(h)?.reset()}function D(e){e.key===`Escape`&&l()!==null&&_o()}var P=ds();f(`keydown`,e,D);var ae=E(P);{let e=(e,n)=>{var r=w(()=>j(n?.(),2));let a=()=>g(r)[0],s=()=>g(r)[1],c=w(()=>Ya(a(),s()));var f=us(),p=I(f),h=e=>{var n=ls(),r=E(n,!0);M(n),v(()=>u(r,o().map.empty)),t(e,n)};i(p,e=>{g(c).links.length===0&&e(h)});var _=N(p,2);let y;var x=E(_),S=e=>{ns(e,{get graph(){return g(c)},get view(){return b}})},C=e=>{var n=A(),r=I(n);m(r,l,e=>{cs(e,{get graph(){return g(c)},get view(){return b},get id(){return l()}})}),t(e,n)};i(x,e=>{l()===null?e(S):e(C,-1)}),M(_),v(()=>y=ne(_,``,y,{translate:`${g(d).x??``}px ${g(d).y??``}px`,scale:g(d).k})),t(e,f)},n=w(()=>le(ge,Se));ue(ae,{get store(){return g(n)},awaited:e,$$slots:{awaited:!0}})}M(P),F(()=>C(P,`clientWidth`,e=>b.width=e)),F(()=>C(P,`clientHeight`,e=>b.height=e)),y(P,(e,t)=>Ga?.(e,t),()=>({onchange:e=>x(d,e,!0),onready:e=>x(h,e,!0)})),v(()=>te(P,1,ee([`bg-muted/30 relative touch-none overflow-hidden`,a.class]))),t(n,P),p(),c()}export{eo as n,fs as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./sTot5bBi.js";var e=`1790195869504`;export{e as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,At as t,Ct as n,M as r,St as i,a,d as o,et as s,i as c,kt as l,s as u,x as d}from"./sTot5bBi.js";import"./xihTtKlq.js";import{O as f}from"./
|
|
1
|
+
import{A as e,At as t,Ct as n,M as r,St as i,a,d as o,et as s,i as c,kt as l,s as u,x as d}from"./sTot5bBi.js";import"./xihTtKlq.js";import{O as f}from"./Bhj2XpQi.js";var p=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),m=r(`<kbd><!></kbd>`);function h(r,h){n(h,!0);let g=c(h,`ref`,15,null),_=a(h,p);var v=m();o(v,e=>({"data-slot":`kbd`,class:e,..._}),[()=>f(`h-5 w-fit min-w-5 gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none`,h.class)]);var y=s(v);d(y,()=>h.children??t),l(v),u(v,e=>g(e),()=>g()),e(r,v),i()}export{h as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{H as e,U as t,V as n,at as r,n as i,st as a,t as o,vt as s}from"./sTot5bBi.js";import{t as c}from"./BJp4xBnY.js";var l=class{constructor(e,t){this.status=e,this.body=typeof t==`string`?{message:t}:t||{message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},u=class{constructor(e,t){try{new Headers({location:t})}catch{throw Error(`Invalid redirect location ${JSON.stringify(t)}: this string contains characters that cannot be used in HTTP headers`)}this.status=e,this.location=t}},d=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function f(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function p(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function ee(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function h(){}function g(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder;function _(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var te=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(b(e)),te(e,t));var v=new Map;function y(e,t){let n=b(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent);r.getAttribute(`data-b64`)!==null&&(e=_(e));let i=r.getAttribute(`data-ttl`);return i&&v.set(n,{body:e,init:t,ttl:1e3*Number(i)}),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function ne(e,t,n){if(v.size>0){let t=b(e,n),r=v.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);v.delete(t)}}return window.fetch(t,n)}function b(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${g(...e)}"]`}return n}var re=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,ie=/^\/\((?:[^)]+)\)$/;function ae(e){let t=[];return{pattern:e===`/`||ie.test(e)?/^\/$/:RegExp(`^${se(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return le(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return le(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=re.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return le(e)}).join(``)}).join(``)}/?$`),params:t}}function oe(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function se(e){return e.slice(1).split(`/`).filter(oe)}function ce(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0){if(s.rest)c=``;else continue}if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function le(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}function ue({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=ae(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return ce(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function de(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function fe(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var x=globalThis.__sveltekit_1w30alt?.base??`/.introspection`,pe=globalThis.__sveltekit_1w30alt?.assets??x??``,me=`sveltekit:snapshot`,he=`sveltekit:scroll`,ge=`sveltekit:states`,S=`sveltekit:history`,C=`sveltekit:navigation`,w={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},_e=location.origin;function ve(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function T(){return{x:pageXOffset,y:pageYOffset}}function E(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var ye={...w,"":w.hover};function be(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function xe(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=be(e)}}function Se(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||O(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===_e&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function D(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=E(s,`preload-code`)),i===null&&(i=E(s,`preload-data`)),t===null&&(t=E(s,`keepfocus`)),n===null&&(n=E(s,`noscroll`)),a===null&&(a=E(s,`reload`)),o===null&&(o=E(s,`replacestate`)),s=be(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:ye[r??`off`],preload_data:ye[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function Ce(e){let t=s(e),n=!0;function r(){n=!0,t.update(e=>e)}function i(e){n=!1,t.set(e)}function a(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:r,set:i,subscribe:a}}var we={v:h};function Te(){let{set:e,subscribe:t}=s(!1),n;async function r(){clearTimeout(n);try{let t=await fetch(`${pe}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let r=(await t.json()).version!==c;return r&&(e(!0),we.v(),clearTimeout(n)),r}catch{return!1}}return{subscribe:t,check:r}}function O(e,t,n){return e.origin!==_e||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Ee(e){}var De=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);[...De],[...new Set([...De])];function Oe(e){return e.filter(e=>e!=null)}function k(e,t){return e+`/`+t}function ke(e){return e instanceof l||e instanceof d?e.status:500}function Ae(e){return e instanceof d?e.text:`Internal Error`}var A,j,je,Me=i.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(i.toString()),Ne=`a:`;Me?(A={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Ne)},j={current:null},je={current:!1}):(A=new class{#e=a({});get data(){return n(this.#e)}set data(e){r(this.#e,e)}#t=a(null);get form(){return n(this.#t)}set form(e){r(this.#t,e)}#n=a(null);get error(){return n(this.#n)}set error(e){r(this.#n,e)}#r=a({});get params(){return n(this.#r)}set params(e){r(this.#r,e)}#i=a({id:null});get route(){return n(this.#i)}set route(e){r(this.#i,e)}#a=a({});get state(){return n(this.#a)}set state(e){r(this.#a,e)}#o=a(-1);get status(){return n(this.#o)}set status(e){r(this.#o,e)}#s=a(new URL(Ne));get url(){return n(this.#s)}set url(e){r(this.#s,e)}},j=new class{#e=a(null);get current(){return n(this.#e)}set current(e){r(this.#e,e)}},je=new class{#e=a(!1);get current(){return n(this.#e)}set current(e){r(this.#e,e)}},we.v=()=>je.current=!0);function Pe(e){Object.assign(A,e)}var{onMount:Fe,tick:Ie}=o,Le=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),M=null,N=de(`sveltekit:scroll`)??{},P=de(`sveltekit:snapshot`)??{},F={url:Ce({}),page:Ce({}),navigating:s(null),updated:Te()};function Re(e){N[e]=T()}function ze(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;P[n];)delete P[n],n+=1}function I(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(h)}async function Be(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(x||`/`);e&&await e.update()}}var Ve,He,L,R,Ue,z,We={},Ge={},B=[],V=[],H=null;function U(){H?.fork?.then(e=>e?.discard()),H=null,Q={element:void 0,href:void 0}}var Ke=new Map,qe=new Set,Je=new Set,W=new Set,G={branch:[],error:null,url:null,nav:null},Ye=!1,Xe=!1,Ze=!0,K=!1,q=!1,Qe=!1,$e=!1,et,J,Y,X,tt=new Set,nt=new Map,rt=new Map;async function it(e,t,n){if(globalThis.__sveltekit_1w30alt.data){let{q:e={},p:t={},l:n={},f:r={}}=globalThis.__sveltekit_1w30alt.data;for(let t in e)We[t]=e[t];for(let e in n)We[e]=n[e];for(let e in r)We[e]=r[e];for(let e in t)Ge[e]=t[e]}document.URL!==location.href&&(location.href=location.href),z=e,await e.hooks.init?.(),Ve=ue(e),R=document.documentElement,Ue=t,He=e.nodes[0],L=e.nodes[1],He(),L(),J=history.state?.[S],Y=history.state?.[C],J||(J=Y=Date.now(),history.replaceState({...history.state,[S]:J,[C]:Y},``));let r=N[J];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await Ft(Ue,n)):(await Z({type:`enter`,url:ve(z.hash?Vt(new URL(location.href)):location.href),replace_state:!0}),i()),Pt()}function at(){B.length=0,$e=!1}function ot(e){V.some(e=>e?.snapshot)&&(P[e]=V.map(e=>e?.snapshot?.capture()))}function st(e){P[e]?.forEach((e,t)=>{V[t]?.snapshot?.restore(e)})}function ct(){Re(J),fe(he,N),ot(Y),fe(me,P)}async function lt(e,n,r,i){let a,o;n.invalidateAll&&U(),await Z({type:`goto`,url:ve(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:r,nav_token:i,accept:()=>{if(n.invalidateAll){$e=!0,a=new Set;for(let[e,t]of nt)for(let[n,r]of t)r.resource?.reset(),a.add(k(e,n));o=new Set;for(let[e,t]of rt)for(let n of t.keys())o.add(k(e,n))}n.invalidate&&n.invalidate.forEach(Nt)}}),n.invalidateAll&&t().then(t).then(()=>{for(let[e,t]of nt)for(let[n,{resource:r}]of t)a?.has(k(e,n))&&r.start();for(let[e,t]of rt)for(let[n,{resource:r}]of t)o?.has(k(e,n))&&r.reconnect()})}async function ut(e){if(e.id!==H?.id){U();let t={};tt.add(t),H={id:e.id,token:t,promise:bt({...e,preload:t}).then(e=>(tt.delete(t),e.type===`loaded`&&e.state.error&&U(),e)),fork:null}}return H.promise}async function dt(e){let t=(await wt(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function ft(e,t,n){let r={params:G.params,route:{id:G.route?.id??null},url:new URL(location.href)};if(G={...e.state,nav:r},Pe(e.props.page),et=new z.root({target:t,props:{...e.props,stores:F,components:V},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){let e={from:null,to:{...r,scroll:N[J]??T()},willUnload:!1,type:`enter`,complete:Promise.resolve()};W.forEach(t=>t(e))}st(Y),Xe=!0}async function pt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(x&&(e.pathname===x||e.pathname===x+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=f(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Oe(n).map(e=>e.node.component),page:Bt(A)}};s!==void 0&&(l.props.form=s);let u={},d=!A,p=0;for(let e=0;e<Math.max(n.length,G.branch.length);e+=1){let t=n[e],r=G.branch[e];t?.data!==r?.data&&(d=!0),t&&(u={...u,...t.data},d&&(l.props[`data_${p}`]=u),p+=1)}return(!G.url||e.href!==G.url.href||G.error!==a||s!==void 0&&s!==A.form||d)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:d?u:A.data}),l}async function mt({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},s=await e();return{node:s,loader:e,server:a,universal:s.universal?.load?{type:`data`,data:null,uses:o}:null,data:a?.data??null,slash:s.universal?.trailingSlash??a?.slash}}function ht(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:Xe?ne(r,i.href,t):y(r,t)}}function gt(e,t,n,r,i,a){if($e)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==G.params[e])return!0;for(let e of i.dependencies)if(B.some(t=>t(new URL(e))))return!0;return!1}function _t(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function vt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function yt({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Bt(A),constructors:[]}}}async function bt({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(H?.id===e)return tt.delete(H.token),H.promise;let{errors:o,layouts:s,leaf:c}=i,d=[...s,c];o.forEach(e=>e?.().catch(h)),d.forEach(e=>e?.[1]().catch(h));let f=G.url?e!==Et(G.url):!1,p=G.route?i.id!==G.route.id:!1,ee=vt(G.url,n),m=!1,g=d.map(async(e,t)=>{if(!e)return;let a=G.branch[t];return e[1]===a?.loader&&!gt(m,p,f,ee,a.universal?.uses,r)?a:(m=!0,mt({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await g[n])?.data);return e},server_data_node:_t(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of g)e.catch(h);let _=[];for(let e=0;e<d.length;e+=1)if(d[e])try{_.push(await g[e])}catch(t){if(t instanceof u)return{type:`redirect`,location:t.location};if(a&&tt.has(a))return yt({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=ke(t),c;if(t instanceof l)c=t.body;else{if(await F.updated.check())return await Be(),await I(n);c=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await xt(e,_,o);return d?pt({url:n,params:r,branch:_.slice(0,d.idx).concat(d.node),errors:o,status:s,error:c,route:i}):await Ot(n,{id:i.id},c,s)}else _.push(void 0);return pt({url:n,params:r,branch:_,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function xt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function St({status:e,error:t,url:n,route:r}){let i={};try{return pt({url:n,params:i,branch:[await mt({loader:He,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:_t(null)}),{node:await L(),loader:L,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(t){if(t instanceof u){await lt(new URL(t.location,location.href),{},0);return}let a=await z.get_error_template(),o=await $(t,{url:n,params:i,route:r}),s=a({status:e,message:String(o?.message??``).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}),c=new DOMParser().parseFromString(s,`text/html`);throw document.documentElement.replaceChild(document.adoptNode(c.head),document.head),document.documentElement.replaceChild(document.adoptNode(c.body),document.body),t}}async function Ct(e){let t=e.href;if(Ke.has(t))return Ke.get(t);let n;try{let r=(async()=>{let t=await z.hooks.reroute({url:new URL(e),fetch:async(t,n)=>ht(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);z.hash?n.hash=t:n.pathname=t,t=n}return t})();Ke.set(t,r),n=await r}catch{Ke.delete(t);return}return n}async function wt(e,t){if(e&&!O(e,x,z.hash)){let n=await Ct(e);if(!n)return;let r=Tt(n);for(let n of Ve){let i=n.exec(r);if(i)return{id:Et(e),invalidating:t,route:n,params:ee(i),url:e}}}}function Tt(e){return p(z.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(x.length))||`/`}function Et(e){return(z.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Dt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=zt(G,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return K||qe.forEach(e=>e(c)),o?null:s}async function Z({type:n,url:r,popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c={},redirect_count:l=0,nav_token:u={},accept:f=h,block:p=h,event:ee}){let m=X;X=u;let g=await wt(r,!1),_=n===`enter`?zt(G,g,r,n):Dt({url:r,type:n,delta:i?.delta,intent:g,scroll:i?.scroll,event:ee});if(!_){p(),X===u&&(X=m);return}let te=J,v=Y;f(),K=!0,Xe&&_.navigation.type!==`enter`&&F.navigating.set(j.current=_.navigation);let y=g&&await bt(g);if(!y){if(O(r,x,z.hash))return await I(r,s);y=await Ot(r,{id:null},await $(new d(404,`Not Found`,`Not found: ${r.pathname}`),{url:r,params:{},route:{id:null}}),404,s)}if(r=g?.url||r,X!==u){_.reject(Error(`navigation aborted`));return}if(!y)return;if(y.type===`redirect`){if(l<20){await Z({type:n,url:new URL(y.location,r),popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c,redirect_count:l+1,nav_token:u}),_.fulfil(void 0);return}if(y=await St({status:500,error:await $(Error(`Redirect loop`),{url:r,params:{},route:{id:null}}),url:r,route:{id:null}}),!y)return}else if(y.props.page.status>=400&&await F.updated.check())return await Be(),await I(r,s);if(at(),Re(te),ot(v),y.props.page.url.pathname!==r.pathname&&(r.pathname=y.props.page.url.pathname),c=i?i.state:c,!i){let e=+!s,t={[S]:J+=e,[C]:Y+=e,[ge]:c};(s?history.replaceState:history.pushState).call(history,t,``,r),s||ze(J,Y)}let ne=g&&H?.id===g.id?H.fork:null;H?.fork&&!ne?U():(H=null,Q={element:void 0,href:void 0}),y.props.page.state=c;let b;if(Xe){let t=(await Promise.all(Array.from(Je,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(t.length>0){function e(){t.forEach(e=>{W.delete(e)})}t.push(e),t.forEach(e=>{W.add(e)})}let n=_.navigation.to;G={...y.state,nav:{params:n.params,route:n.route,url:n.url}},y.props.page&&(y.props.page.url=r),!a&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();let i=ne&&await ne;i?b=i.commit():(M=null,et.$set(y.props),M&&Object.assign(y.props.page,M),Pe(y.props.page),b=e?.()),Qe=!0}else await ft(y,Ue,!1);let{activeElement:re}=document;if(await b,await t(),await t(),X!==u){_.reject(Error(`navigation aborted`));return}y.props.page&&M&&Object.assign(y.props.page,M);let ie=null;if(Ze){let e=i?i.scroll:o?T():null;e?scrollTo(e.x,e.y):(ie=r.hash&&document.getElementById(Ht(r)))?ie.scrollIntoView():scrollTo(0,0)}let ae=document.activeElement!==re&&document.activeElement!==document.body;!a&&!ae&&Rt(r,!ie),Ze=!0,K=!1,_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=T()),W.forEach(e=>e(_.navigation)),n===`popstate`&&st(Y),F.navigating.set(j.current=null)}async function Ot(e,t,n,r,i){return e.origin===_e&&e.pathname===location.pathname&&!Ye?await St({status:r,error:n,url:e,route:t}):await I(e,i)}var Q={element:void 0,href:void 0};function kt(){let e,t;R.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{i(n,w.hover)},20)});function n(e){e.defaultPrevented||i(e.composedPath()[0],w.tap)}R.addEventListener(`mousedown`,n),R.addEventListener(`touchstart`,n,{passive:!0});let r=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(dt(new URL(t.target.href)),r.unobserve(t.target))},{threshold:0});async function i(e,n){let r=xe(e,R),i=r===Q.element&&r?.href===Q.href&&n>=t;if(!r||i)return;let{url:a,external:o,download:s}=Se(r,x,z.hash);if(o||s)return;let c=D(r),l=a&&Et(G.url)===Et(a);if(!(c.reload||l)){if(n<=c.preload_data){Q={element:r,href:r.href},t=w.tap;let e=await wt(a,!1);if(!e)return;ut(e)}else n<=c.preload_code&&(Q={element:r,href:r.href},t=n,dt(a))}}function a(){r.disconnect();for(let e of R.querySelectorAll(`a`)){let{url:t,external:n,download:i}=Se(e,x,z.hash);if(n||i)continue;let a=D(e);a.reload||(a.preload_code===w.viewport&&r.observe(e),a.preload_code===w.eager&&dt(t))}}W.add(a),a()}function $(e,t){if(e instanceof l)return e.body;let n=ke(e),r=Ae(e);return z.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function At(e,t){Fe(()=>(e.add(t),()=>{e.delete(t)}))}function jt(e){At(Je,e)}function Mt(e,t={}){return e=new URL(ve(e)),e.origin===_e?lt(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function Nt(e){if(typeof e==`function`)B.push(e);else{let{href:t}=new URL(e,location.href);B.push(e=>e.href===t)}}function Pt(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(ct(),!K){let e=zt(G,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};qe.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&ct()}),navigator.connection?.saveData||kt(),R.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=xe(t.composedPath()[0],R);if(!n)return;let{url:r,external:i,target:a,download:o}=Se(n,x,z.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=D(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&r.protocol!==`https:`&&r.protocol!==`http:`||o)return;let[c,l]=(z.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){Dt({url:r,type:`link`,event:t})?K=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=G.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(q=!0,Re(J),e(r),!s.replace_state)return;q=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Z({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),R.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(O(r,x,!1))return;let i=e.target,a=D(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Z({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Lt){if(t.state?.[`sveltekit:history`]){let n=t.state[S];if(X={},n===J)return;let r=N[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[C],s=G.url?m(location)===m(G.url):!1;if(o===Y&&(Qe||s)){i!==A.state&&(A.state=i),e(a),N[J]=T(),r&&scrollTo(r.x,r.y),J=n;return}let c=n-J;await Z({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{J=n,Y=o},block:()=>{history.go(-c)},nav_token:X,event:t})}else q||(e(new URL(location.href)),z.hash&&location.reload())}}),addEventListener(`hashchange`,()=>{q&&(q=!1,history.replaceState({...history.state,[S]:++J,[C]:Y},``,location.href))});for(let e of document.querySelectorAll(`link`))Le.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&F.navigating.set(j.current=null)});function e(e){G.url=A.url=e,F.page.set(Bt(A)),F.page.notify()}}async function Ft(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){Ye=!0;let l=new URL(location.href),d;({params:i={},route:a={id:null}}=await wt(l,!1)||{}),d=Ve.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=It(r.uses)),mt({loader:z.nodes[t],url:l,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:_t(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await pt({url:l,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof u)return await I(new URL(t.location,location.href));f=await St({status:ke(t),error:await $(t,{url:l,params:i,route:a}),url:l,route:a}),e.textContent=``,p=!1}f&&(f.props.page&&(f.props.page.state={}),await ft(f,e,p))}function It(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}var Lt=!1;function Rt(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=Ht(e);if(n&&document.getElementById(n)){let{x:r,y:i}=T();setTimeout(()=>{let a=history.state;Lt=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Lt=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function zt(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(h),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:T()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function Bt(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Vt(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Ht(e){let t;if(z.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{A as a,j as i,jt as n,Ee as o,it as r,x as s,Mt as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as e,At as t,B as n,C as r,Ct as i,E as a,F as o,G as s,M as c,O as l,Ot as u,P as d,St as f,U as p,V as m,W as h,X as g,Y as _,Z as v,a as y,at as b,b as x,bt as ee,ct as S,d as C,dt as w,et as T,f as te,ft as E,g as ne,h as D,ht as O,i as k,it as A,j,kt as M,lt as N,m as P,nt as F,o as I,ot as re,p as L,rt as R,s as z,st as B,tt as V,vt as ie,w as ae,wt as oe,x as H,xt as se,y as ce,z as le}from"./sTot5bBi.js";import"./
|
|
1
|
+
import{A as e,At as t,B as n,C as r,Ct as i,E as a,F as o,G as s,M as c,O as l,Ot as u,P as d,St as f,U as p,V as m,W as h,X as g,Y as _,Z as v,a as y,at as b,b as x,bt as ee,ct as S,d as C,dt as w,et as T,f as te,ft as E,g as ne,h as D,ht as O,i as k,it as A,j,kt as M,lt as N,m as P,nt as F,o as I,ot as re,p as L,rt as R,s as z,st as B,tt as V,vt as ie,w as ae,wt as oe,x as H,xt as se,y as ce,z as le}from"./sTot5bBi.js";import"./BJp4xBnY.js";import"./xihTtKlq.js";import{C as ue,D as de,F as fe,L as pe,P as me,R as he,S as ge,c as _e,n as ve,z as ye}from"./00t31nIL.js";var be=ge.resource(`/introspection/nodes/`),xe=ge.resource(`/introspection/edges/`),Se=ge.resource(`/introspection/signals/`,{credentials:`include`}),Ce=6e4,we=1440*Ce,Te=75*Ce,Ee=7*we;async function De(){return await be.json(je(Te),{credentials:`include`})}async function Oe(){return await xe.json(je(Ee),{credentials:`include`})}async function ke(){return await Se.json()}async function Ae(e,t){let n=await Se.json({method:`POST`,body:{type:`halt`,seconds:e,quiescence:t}});return n instanceof Error?n:void 0}function je(e){return`?${new URLSearchParams({criteria:`UPDATED>${Date.now()-e}`}).toString()}`}var Me=ye({get:De,values:he(),persist:`introspection:nodes`,bind:de,stale:!0}),Ne=ye({get:Oe,values:he(),persist:`introspection:edges`,bind:de,stale:!0}),Pe=pe({get:ke,bind:de});async function Fe(e,t){return await Ae(e,t)}function Ie(e){return typeof e==`function`}function Le(e){return typeof e==`object`&&!!e}var Re=[`string`,`number`,`bigint`,`boolean`];function ze(e){return e==null||Re.includes(typeof e)?!0:Array.isArray(e)?e.every(e=>ze(e)):typeof e==`object`&&Object.getPrototypeOf(e)===Object.prototype}var Be=Symbol(`box`),Ve=Symbol(`is-writable`);function U(e,t){let n=S(e);return t?{[Be]:!0,[Ve]:!0,get current(){return m(n)},set current(e){t(e)}}:{[Be]:!0,get current(){return e()}}}function He(e){return Le(e)&&Be in e}function Ue(e){return He(e)&&Ve in e}function We(e){return He(e)?e:Ie(e)?U(e):qe(e)}function Ge(e){return Object.entries(e).reduce((e,[t,n])=>He(n)?(Ue(n)?Object.defineProperty(e,t,{get(){return n.current},set(e){n.current=e}}):Object.defineProperty(e,t,{get(){return n.current}}),e):Object.assign(e,{[t]:n}),{})}function Ke(e){return Ue(e)?{[Be]:!0,get current(){return e.current}}:e}function qe(e){let t=B(R(e));return{[Be]:!0,[Ve]:!0,get current(){return m(t)},set current(e){b(t,e,!0)}}}function Je(...e){return function(t){for(let n of e)if(n){if(t.defaultPrevented)return;typeof n==`function`?n.call(this,t):n.current?.call(this,t)}}}var Ye=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Xe=/\n/g,Ze=/^\s*/,Qe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$e=/^:\s*/,et=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,tt=/^[;\s]*/,nt=/^\s+|\s+$/g,rt=`
|
|
2
2
|
`,it=`/`,at=`*`,ot=``,st=`comment`,ct=`declaration`;function lt(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(Xe);t&&(n+=t.length);var i=e.lastIndexOf(rt);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(Ze)}function u(e){var t;for(e||=[];t=d();)t!==!1&&e.push(t);return e}function d(){var t=a();if(it==e.charAt(0)&&at==e.charAt(1)){for(var n=2;ot!=e.charAt(n)&&(at!=e.charAt(n)||it!=e.charAt(n+1));)++n;if(n+=2,ot===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:st,comment:o})}}function f(){var e=a(),t=c(Qe);if(t){if(d(),!c($e))return s(`property missing ':'`);var n=c(et),r=e({type:ct,property:ut(t[0].replace(Ye,ot)),value:n?ut(n[0].replace(Ye,ot)):ot});return c(tt),r}}function p(){var e=[];u(e);for(var t;t=f();)t!==!1&&(e.push(t),u(e));return e}return l(),p()}function ut(e){return e?e.replace(nt,ot):ot}function dt(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=lt(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n||={},n[r]=a)}),n}var ft=/\d/,pt=[`-`,`_`,`/`,`.`];function mt(e=``){if(!ft.test(e))return e!==e.toLowerCase()}function ht(e){let t=[],n=``,r,i;for(let a of e){let e=pt.includes(a);if(e===!0){t.push(n),n=``,r=void 0;continue}let o=mt(a);if(i===!1){if(r===!1&&o===!0){t.push(n),n=a,r=o;continue}if(r===!0&&o===!1&&n.length>1){let e=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=e+a,r=o;continue}}n+=a,r=o,i=e}return t.push(n),t}function gt(e){return e?ht(e).map(e=>vt(e)).join(``):``}function _t(e){return yt(gt(e||``))}function vt(e){return e?e[0].toUpperCase()+e.slice(1):``}function yt(e){return e?e[0].toLowerCase()+e.slice(1):``}function bt(e){if(!e)return{};let t={};function n(e,n){if(e.startsWith(`-moz-`)||e.startsWith(`-webkit-`)||e.startsWith(`-ms-`)||e.startsWith(`-o-`)){t[gt(e)]=n;return}if(e.startsWith(`--`)){t[e]=n;return}t[_t(e)]=n}return dt(e,n),t}function xt(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function St(e,t){let n=RegExp(e,`g`);return e=>{if(typeof e!=`string`)throw TypeError(`expected an argument of type string, but got ${typeof e}`);return e.match(n)?e.replace(n,t):e}}var Ct=St(/[A-Z]/,e=>`-${e.toLowerCase()}`);function wt(e){if(!e||typeof e!=`object`||Array.isArray(e))throw TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${Ct(t)}: ${e[t]};`).join(`
|
|
3
3
|
`)}function Tt(e={}){return wt(e).replace(`
|
|
4
4
|
`,` `)}var Et=new Set(`onabort.onanimationcancel.onanimationend.onanimationiteration.onanimationstart.onauxclick.onbeforeinput.onbeforetoggle.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncompositionend.oncompositionstart.oncompositionupdate.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onfocusin.onfocusout.onformdata.ongotpointercapture.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onload.onloadeddata.onloadedmetadata.onloadstart.onlostpointercapture.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onpaste.onpause.onplay.onplaying.onpointercancel.onpointerdown.onpointerenter.onpointerleave.onpointermove.onpointerout.onpointerover.onpointerup.onprogress.onratechange.onreset.onresize.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onselectionchange.onselectstart.onslotchange.onstalled.onsubmit.onsuspend.ontimeupdate.ontoggle.ontouchcancel.ontouchend.ontouchmove.ontouchstart.ontransitioncancel.ontransitionend.ontransitionrun.ontransitionstart.onvolumechange.onwaiting.onwebkitanimationend.onwebkitanimationiteration.onwebkitanimationstart.onwebkittransitionend.onwheel`.split(`.`));function Dt(e){return Et.has(e)}function Ot(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];if(r){for(let e of Object.keys(r)){let n=t[e],i=r[e],a=typeof n==`function`,o=typeof i==`function`;if(a&&typeof o&&Dt(e))t[e]=Je(n,i);else if(a&&o)t[e]=xt(n,i);else if(e===`class`){let r=ze(n),a=ze(i);r&&a?t[e]=ne(n,i):r?t[e]=ne(n):a&&(t[e]=ne(i))}else if(e===`style`){let r=typeof n==`object`,a=typeof i==`object`,o=typeof n==`string`,s=typeof i==`string`;if(r&&a)t[e]={...n,...i};else if(r&&s){let r=bt(i);t[e]={...n,...r}}else if(o&&a)t[e]={...bt(n),...i};else if(o&&s){let r=bt(n),a=bt(i);t[e]={...r,...a}}else r?t[e]=n:a?t[e]=i:o?t[e]=n:s&&(t[e]=i)}else t[e]=i===void 0?n:i}for(let e of Object.getOwnPropertySymbols(r)){let n=t[e],i=r[e];t[e]=i===void 0?n:i}}}return typeof t.style==`object`&&(t.style=Tt(t.style).replaceAll(`
|